[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:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]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:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]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:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00: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:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]OFD Sender: No OFD packet to send [04:31:47]OFD Sender: No OFD packet to send [04:31:52]OFD Sender: No OFD packet to send [04:31:57]OFD Sender: No OFD packet to send [04:32:02]OFD Sender: No OFD packet to send [04:32:07]OFD Sender: No OFD packet to send [04:32:12]OFD Sender: No OFD packet to send [04:32:17]OFD Sender: No OFD packet to send [04:32:22]OFD Sender: No OFD packet to send [04:32:27]OFD Sender: No OFD packet to send [04:32:32]OFD Sender: No OFD packet to send [04:32:37]OFD Sender: No OFD packet to send [04:32:42]OFD Sender: No OFD packet to send [04:32:47]OFD Sender: No OFD packet to send [04:32:52]OFD Sender: No OFD packet to send [04:32:57]OFD Sender: No OFD packet to send [04:33:02]OFD Sender: No OFD packet to send [04:33:07]OFD Sender: No OFD packet to send [04:33:12]OFD Sender: No OFD packet to send [04:33:17]OFD Sender: No OFD packet to send [04:33:22]OFD Sender: No OFD packet to send [04:33:27]OFD Sender: No OFD packet to send [04:33:32]OFD Sender: No OFD packet to send [04:33:37]OFD Sender: No OFD packet to send [04:33:42]OFD Sender: No OFD packet to send [04:33:47]OFD Sender: No OFD packet to send [04:33:52]OFD Sender: No OFD packet to send [04:33:57]OFD Sender: No OFD packet to send [04:34:02]OFD Sender: No OFD packet to send [04:34:07]OFD Sender: No OFD packet to send [04:34:12]OFD Sender: No OFD packet to send [04:34:17]OFD Sender: No OFD packet to send [04:34:22]OFD Sender: No OFD packet to send [04:34:27]OFD Sender: No OFD packet to send [04:34:32]OFD Sender: No OFD packet to send [04:34:37]OFD Sender: No OFD packet to send [04:34:42]OFD Sender: No OFD packet to send [04:34:47]OFD Sender: No OFD packet to send [04:34:52]OFD Sender: No OFD packet to send [04:34:57]OFD Sender: No OFD packet to send [04:35:02]OFD Sender: No OFD packet to send [04:35:07]OFD Sender: No OFD packet to send [04:35:12]OFD Sender: No OFD packet to send [04:35:17]OFD Sender: No OFD packet to send [04:35:22]OFD Sender: No OFD packet to send [04:35:27]OFD Sender: No OFD packet to send [04:35:32]OFD Sender: No OFD packet to send [04:35:37]OFD Sender: No OFD packet to send [04:35:42]OFD Sender: No OFD packet to send [04:35:47]OFD Sender: No OFD packet to send [04:35:52]OFD Sender: No OFD packet to send [04:35:57]OFD Sender: No OFD packet to send [04:36:02]OFD Sender: No OFD packet to send [04:36:07]OFD Sender: No OFD packet to send [04:36:12]OFD Sender: No OFD packet to send [04:36:17]OFD Sender: No OFD packet to send [04:36:22]OFD Sender: No OFD packet to send [04:36:27]OFD Sender: No OFD packet to send [04:36:32]OFD Sender: No OFD packet to send [04:36:37]OFD Sender: No OFD packet to send [04:36:42]OFD Sender: No OFD packet to send [04:36:47]OFD Sender: No OFD packet to send [04:36:52]OFD Sender: No OFD packet to send [04:36:57]OFD Sender: No OFD packet to send [04:37:02]OFD Sender: No OFD packet to send [04:37:07]OFD Sender: No OFD packet to send [04:37:12]OFD Sender: No OFD packet to send [04:37:17]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:38]OFD Sender: No OFD packet to send [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:18]OFD Sender: No OFD packet to send [04:44:23]OFD Sender: No OFD packet to send [04:44:28]OFD Sender: No OFD packet to send [04:44:33]OFD Sender: No OFD packet to send [04:44:38]OFD Sender: No OFD packet to send [04:44:43]OFD Sender: No OFD packet to send [04:44:48]OFD Sender: No OFD packet to send [04:44:53]OFD Sender: No OFD packet to send [04:44:58]OFD Sender: No OFD packet to send [04:45:03]OFD Sender: No OFD packet to send [04:45:08]OFD Sender: No OFD packet to send [04:45:13]OFD Sender: No OFD packet to send [04:45:18]OFD Sender: No OFD packet to send [04:45:23]OFD Sender: No OFD packet to send [04:45:28]OFD Sender: No OFD packet to send [04:45:33]OFD Sender: No OFD packet to send [04:45:38]OFD Sender: No OFD packet to send [04:45:43]OFD Sender: No OFD packet to send [04:45:48]OFD Sender: No OFD packet to send [04:45:53]OFD Sender: No OFD packet to send [04:45:58]OFD Sender: No OFD packet to send [04:46:03]OFD Sender: No OFD packet to send [04:46:08]OFD Sender: No OFD packet to send [04:46:13]OFD Sender: No OFD packet to send [04:46:18]OFD Sender: No OFD packet to send [04:46:23]OFD Sender: No OFD packet to send [04:46:28]OFD Sender: No OFD packet to send [04:46:33]OFD Sender: No OFD packet to send [04:46:38]OFD Sender: No OFD packet to send [04:46:43]OFD Sender: No OFD packet to send [04:46:48]OFD Sender: No OFD packet to send [04:46:53]OFD Sender: No OFD packet to send [04:46:58]OFD Sender: No OFD packet to send [04:47:03]OFD Sender: No OFD packet to send [04:47:08]OFD Sender: No OFD packet to send [04:47:13]OFD Sender: No OFD packet to send [04:47:18]OFD Sender: No OFD packet to send [04:47:23]OFD Sender: No OFD packet to send [04:47:28]OFD Sender: No OFD packet to send [04:47:33]OFD Sender: No OFD packet to send [04:47:38]OFD Sender: No OFD packet to send [04:47:43]OFD Sender: No OFD packet to send [04:47:48]OFD Sender: No OFD packet to send [04:47:53]OFD Sender: No OFD packet to send [04:47:58]OFD Sender: No OFD packet to send [04:48:03]OFD Sender: No OFD packet to send [04:48:08]OFD Sender: No OFD packet to send [04:48:13]OFD Sender: No OFD packet to send [04:48:18]OFD Sender: No OFD packet to send [04:48:23]OFD Sender: No OFD packet to send [04:48:28]OFD Sender: No OFD packet to send [04:48:33]OFD Sender: No OFD packet to send [04:48:38]OFD Sender: No OFD packet to send [04:48:43]OFD Sender: No OFD packet to send [04:48:48]OFD Sender: No OFD packet to send [04:48:53]OFD Sender: No OFD packet to send [04:48:58]OFD Sender: No OFD packet to send [04:49:03]OFD Sender: No OFD packet to send [04:49:08]OFD Sender: No OFD packet to send [04:49:13]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49: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:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]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:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:24]accept exits with 5 [05:17:24]New connection [05:17:24]New thread 3066776932 created [05:17:24]Thread 3066920292 joined [05:17:24]Waiting for new connection... [05:17:24] Sock 5.Parse request [05:17:24]Sock 5.Check first char [05:17:24]Sock 5.First char is OK [05:17:24]request: POST /json_proto HTTP/1.0 [05:17:24]Method: POST [05:17:24]URL: /json_proto [05:17:24]Method is POST - this is cgi request [05:17:24]url: /json_proto [05:17:24]query_string will be loaded in cgi processing [05:17:24]execute_cgi json_proto POST (null) [05:17:24]execute_cgi path=json_proto method=POST [05:17:24]POST find Content-Length [05:17:24]Host: 172.17.53.195:8080 [05:17:24]Content-Length: 678 [05:17:24]Content-Type: application/json [05:17:24] [05:17:24]POST finish read [05:17:24]Found Content-Length = 678 [05:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:17:24]execute_script... [05: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)220464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:17:24]POST & json_proto [05:17:24]process_json_proto [05:17:24]json parsed OK: [05:17:24]protocol is kg_v1.0 [05:17:24]action value=close_receipt [05:17:24]process_action close_receipt [05:17:24]cmd_close_receipt [05:17:24]MH_GetDate [05:17:24]Write to MH i2c: F0 00 00 84 2B 9E [05:17:24]Write i2c OK [05:17:24]MH_I2C_Read... [05:17:24]Read from MH i2c: F0 [05:17:24]MH_I2C_Read... [05:17:24]Read from MH i2c: F0 09 00 [05:17:24]MH_I2C_Read... [05:17:24]Read from MH i2c: F0 09 00 84 2B 00 F4 E3 15 67 21 48 4A 65 12 [05:17:24]GetLastDocTimeStamp 1729479740 [05:17:24]current date 1729487860 [05:17:24]FM_GetShiftState [05:17:24]SAM_PROTO_GetShiftState [05:17:24]wFMCommunicate request_size=4 [05:17:24]MH_SAM_APDU [05:17:24]CAPDU: 80 13 01 00 [05:17:24]Write to MH i2c: E2 08 00 85 2B 80 13 01 00 00 00 00 00 2D [05:17:24]Write i2c OK [05:17:24]MH_I2C_Read... [05:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:17:24]Read from MH i2c: E2 [05:17:24]MH_I2C_Read... [05:17:24]Read from MH i2c: E2 0E 00 [05:17:24]MH_I2C_Read... [05:17:24]Read from MH i2c: E2 0E 00 85 2B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 36 [05:17:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [05:17:24]wFMCommunicate OK [05:17:24]SAM_PROTO_GetShiftState done [05:17:24]FM_GetShiftState done [05:17:24]opened in 1729470944 [05:17:24]opened+sec_in_day 1729557344 [05:17:24]quantity*price = 80012 [05:17:24]sum+1 = 80013 [05:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 8 21.10.2024 05:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165897 ФПД: 211204732668763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T051740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165897&fm=211204732668763&tin=02508201610067®Number=0000000000091764&sum=80000 [05:17:25]StoreToDocumentArchive [05:17:25]shift 535 fd 165897 [05:17:25]save to /storage/0535/doc_00165897 [05:17:25]save last doc name /storage/0535/doc_00165897 to /storage/kkm_last_doc_name [05:17:25]save OK [05:17:25]Clear old archive folders... [05:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:17:25]tlvbuf is 0190C2A0 [05:17:25]SAM_PROTO_ClearQueue [05:17:25]wFMCommunicate request_size=4 [05:17:25]MH_SAM_APDU [05:17:25]CAPDU: 80 09 00 00 [05:17:25]Write to MH i2c: E2 08 00 92 2B 80 09 00 00 00 00 00 00 2F [05:17:25]Write i2c OK [05:17:25]MH_I2C_Read... [05:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:17:25]Read from MH i2c: E2 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 92 2B 00 90 00 31 [05:17:25]RAPDU: 90 00 [05:17:25]wFMCommunicate OK [05:17:25]SAM_PROTO_ClearQueue done [05:17:25]KKMCreateOFDPacket [05:17:25]OFDProtocolAddRootSTLVToBuf [05:17:25]FM_MakeSignedData [05:17:25]FM_MakeSignedData [05:17:25]SAM_PROTO_SignData [05:17:25]wFMCommunicate request_size=4 [05:17:25]MH_SAM_APDU [05:17:25]CAPDU: 80 0D 01 02 [05:17:25]Write to MH i2c: E2 08 00 93 2B 80 0D 01 02 00 00 00 00 37 [05:17:25]Write i2c OK [05:17:25]MH_I2C_Read... [05:17:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:17:25]Read from MH i2c: E2 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 93 2B 00 90 00 32 [05:17:25]RAPDU: 90 00 [05:17:25]wFMCommunicate OK [05:17:25]wFMCommunicate request_size=255 [05:17:25]MH_SAM_APDU [05:17: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 E3 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 88 02 00 35 04 06 00 C0 [05:17:25]Write to MH i2c: E2 02 01 94 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 E3 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 88 02 00 35 04 06 00 C0 00 00 80 [05:17:25]Write i2c OK [05:17:25]MH_I2C_Read... [05:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:17:25]Read from MH i2c: E2 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 94 2B 00 90 00 33 [05:17:25]RAPDU: 90 00 [05:17:25]wFMCommunicate OK [05:17:25]wFMCommunicate request_size=10 [05:17:25]MH_SAM_APDU [05:17:25]CAPDU: 80 0D 02 02 05 16 EF 10 CB 5B [05:17:25]Write to MH i2c: E2 0D 00 95 2B 80 0D 02 02 05 00 16 EF 10 CB 5B 00 00 7F [05:17:25]Write i2c OK [05:17:25]MH_I2C_Read... [05:17:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:17:25]Read from MH i2c: E2 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 03 00 95 2B 00 90 00 34 [05:17:25]RAPDU: 90 00 [05:17:25]wFMCommunicate OK [05:17:25]wFMCommunicate request_size=4 [05:17:25]MH_SAM_APDU [05:17:25]CAPDU: 80 0D 03 02 [05:17:25]Write to MH i2c: E2 08 00 96 2B 80 0D 03 02 00 00 00 00 3C [05:17:25]Write i2c OK [05:17:25]MH_I2C_Read... [05:17:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:17:25]Read from MH i2c: E2 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 0B 00 [05:17:25]MH_I2C_Read... [05:17:25]Read from MH i2c: E2 0B 00 96 2B 00 87 0C E2 32 EA 96 44 79 90 00 21 [05:17:25]RAPDU: 87 0C E2 32 EA 96 44 79 90 00 [05:17:25]wFMCommunicate OK [05:17:25]SAM_PROTO_SignData done [05:17:25]FM_MakeSignedData done [05:17:25]CreateOFDProtocolMessage [05:17:25]wFMCommunicate request_size=4 [05:17:25]MH_SAM_APDU [05:17:25]CAPDU: 80 11 00 00 [05:17:25]Write to MH i2c: E2 08 00 97 2B 80 11 00 00 00 00 00 00 3C [05:17:25]Write i2c OK [05:17:25]MH_I2C_Read... [05:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:17:26]Read from MH i2c: E2 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: E2 17 00 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: E2 17 00 97 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [05:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:17:26]wFMCommunicate OK [05:17:26]CreateOFDProtocolMessage done [05:17:26]OFDSenderStorePacket 165897 [05:17:26]StoreOFDPacket docnum=165897 [05:17:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 B4 07 01 D6 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 E3 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 88 02 00 35 04 06 00 C0 16 EF 10 CB 5B 87 0C E2 32 EA 96 44 79 [05:17:26]CheckFolder [05:17:26]dirname=/storage/ofd_packets [05:17:26]CheckFolder done [05:17:26]ProducePacketName [05:17:26]name=ofd_packets/00165897 [05:17:26]NVStorageSaveData ofd_packets/00165897 [05:17:26]File name is /storage/ofd_packets/00165897 [05:17:26]Write 301 bytes [05:17:26]NVStorageSaveData done [05:17:26]OFDSenderStorePacket done [05:17:26]KKMCreateOFDPacket done [05:17:26]NVStorageSaveData kkm_last_timestamp [05:17:26]File name is /storage/kkm_last_timestamp [05:17:26]Write 4 bytes [05:17:26]NVStorageSaveData done [05:17:26]ExternCall_PrintAddStr [05:17:26]wPrintStart [05:17:26]Write to MH i2c: 01 00 00 98 2B C3 [05:17:26]Write i2c OK [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: 01 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: 01 07 00 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: 01 07 00 98 2B 00 00 00 00 00 FF 0F D8 [05:17:26]RasterBufferAndPrint [05:17:26]line Счет N : (1)220464 [05:17:26]line ИНН: 02508201610067 [05:17:26]line Контрольно-Кассовый Чек [05:17:26]line ПРОДАЖА [05:17:26]line ТРК (МРК, ГНК) : 23 [05:17:26]line Товар: 2710124130 [05:17:26]line Аи-92-К-5 [05:17:26]line 11.960 * 66.90 [05:17:26]line = 800.12 [05:17:26]line НДС 12% НСП 1% [05:17:26]line > о реализуемом товаре [05:17:26]line ОКРУГЛЕНИЕ: -0.12 [05:17:26]line ИТОГО: 800.00 [05:17:26]line Внесено: 800.00 [05:17:26]line СДАЧА: 0.00 [05:17:26]line НСП 1% : 7.08 [05:17:26]line НДС 12% : 84.97 [05:17:26]line Наличными: 800.00 [05:17:26]line Безнал.: 0.00 [05:17:26]line Место: АЗС № 161 "Партнер Нефть" [05:17:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [05:17:26]line СНО: Общий режим [05:17:26]line Чек 8 21.10.2024 05:17 [05:17:26]line Смена: 535 ФФД: 1.0 [05:17:26]line ЗНМ: 0300000104 [05:17:26]line РНМ: 0000000000091764 [05:17:26]line Версия ККМ: 001 [05:17:26]line ФМ: 0000000000871759 [05:17:26]line ФД: 165897 [05:17:26]line ФПД: 211204732668763 [05:17:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T051740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165897&fm=211204732668763&tin=02508201610067®Number=0000000000091764&sum=80000 [05:17:26]OFD Sender: Processing packet 165897 [packets to send 48, broken 47] [05:17:26]ProducePacketName [05:17:26]name=ofd_packets/00165897 [05:17:26]OFD Sender: To server: pG, [05:17:26]CommunicateWithHost lk.salyk.kg:30040 [05:17:26]ConnectInit lk.salyk.kg [05:17:26]written 0, free lines is 4095 [05:17:26]Connected sock=7 [05:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 B4 07 01 D6 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 F4 E3 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 88 02 00 35 04 06 00 C0 16 EF 10 CB 5B 87 0C E2 32 EA 96 44 79 [05:17:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A4 23 47 00 81 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 88 02 00 F4 03 04 00 64 8A 15 67 B6 04 01 00 00 C1 1A 99 AA 8B 7C 43 C3 [05:17:26]CommunicateWithHost err = 0 [05:17:26]CheckOFDResponse [05:17:26]1017 (14) - 77093643461234 [05:17:26]1041 (16) - 0000000000871759 [05:17:26]1040 (4) - 165897 [05:17:26]1012 (4) - 20.10.2024 22:55 [05:17:26]1206 (1) - 0 [05:17:26]OFD Sender: Remove packet 165897 [05:17:26]ProducePacketName [05:17:26]name=ofd_packets/00165897 [05:17:26]NVStorageDeleteData [05:17:26]Write to MH i2c: 01 00 00 C3 2B EE [05:17:26]Write i2c OK [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: 01 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: 01 07 00 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: 01 07 00 C3 2B 00 00 00 00 00 A1 0C A2 [05:17:26]RasterBufferAndPrint [05:17:26]line [05:17:26]line [05:17:26]line [05:17:26]line [05:17:26]line [05:17:26]written 0, free lines is 3241 [05:17:26]MH_Cut [05:17:26]Write to MH i2c: D1 01 00 CA 2B 01 C7 [05:17:26]Write i2c OK [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: D1 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: D1 01 00 [05:17:26]MH_I2C_Read... [05:17:26]Read from MH i2c: D1 01 00 CA 2B 00 C6 [05:17:26]Write to MH i2c: 01 00 00 CB 2B F6 [05:17:26]Write i2c OK [05:17:26]MH_I2C_Read... [05:17:27]OFD Sender: No OFD packet to send [05:17:27]*** Cut start [05:17:27]*** Partial cut [05:17:27]*** CUTSNS_PIN = 1 [05:17:27]*** CUTSNS_PIN = 0 [05:17:27]*** Brake cut motor [05:17:28]Read from MH i2c: 01 [05:17:28]MH_I2C_Read... [05:17:28]*** Stop cut motor [05:17:28]*** Cut end [05:17:28]Read from MH i2c: 01 07 00 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: 01 07 00 CB 2B 00 00 00 00 00 FF 0F 0B [05:17:28]process_action close_receipt done [05:17:28]requested_data is exist [05:17:28]produce_requested_data [05:17:28]requested_item fm.sn is exist - process it [05:17:28]wFMCommunicate request_size=4 [05:17:28]MH_SAM_APDU [05:17:28]CAPDU: 80 11 00 00 [05:17:28]Write to MH i2c: E2 08 00 CC 2B 80 11 00 00 00 00 00 00 71 [05:17:28]Write i2c OK [05:17:28]MH_I2C_Read... [05:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:17:28]Read from MH i2c: E2 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: E2 17 00 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: E2 17 00 CC 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [05:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [05:17:28]wFMCommunicate OK [05:17:28]requested_item fd.num is exist - process it [05:17:28]SAM_PROTO_GetFieldsCounters [05:17:28]wFMCommunicate request_size=4 [05:17:28]MH_SAM_APDU [05:17:28]CAPDU: 80 13 00 00 [05:17:28]Write to MH i2c: E2 08 00 CD 2B 80 13 00 00 00 00 00 00 74 [05:17:28]Write i2c OK [05:17:28]MH_I2C_Read... [05:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:17:28]Read from MH i2c: E2 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: E2 62 00 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: E2 62 00 CD 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [05:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:17:28]wFMCommunicate OK [05:17:28]SAM_PROTO_GetFieldsCounters done [05:17:28]requested_item shift.num is exist - process it [05:17:28]requested_item shift.opened is exist - process it [05:17:28]req_shift_opened [05:17:28]FM_GetShiftState [05:17:28]SAM_PROTO_GetShiftState [05:17:28]wFMCommunicate request_size=4 [05:17:28]MH_SAM_APDU [05:17:28]CAPDU: 80 13 01 00 [05:17:28]Write to MH i2c: E2 08 00 CE 2B 80 13 01 00 00 00 00 00 76 [05:17:28]Write i2c OK [05:17:28]MH_I2C_Read... [05:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:17:28]Read from MH i2c: E2 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: E2 0E 00 [05:17:28]MH_I2C_Read... [05:17:28]Read from MH i2c: E2 0E 00 CE 2B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7F [05:17:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [05:17:28]wFMCommunicate OK [05:17:28]SAM_PROTO_GetShiftState done [05:17:28]FM_GetShiftState done [05:17:28]req_shift_opened done [05:17:28]requested_item shift.open_date is exist - process it [05:17:28]req_shift_open_date [05:17:28]req_shift_open_date done [05:17:28]produce_requested_data done [05:17:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165897,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [05:17:28]process_action_free close_receipt [05:17:28]json_value_free [05:17:28]json_value_free done [05:17:28]process_json_proto returns [05:17:28]Send response to host [05:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165897,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [05:17:28]free response buf [05:17:28]execute_script done [05:17:28]execute_script returns [05:17:28]free content buf [05:17:28]Sock 5.Close socket [05:17:28]Sock 5.Thread stoped [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]OFD Sender: No OFD packet to send [05:36:33]OFD Sender: No OFD packet to send [05:36:38]OFD Sender: No OFD packet to send [05:36:43]OFD Sender: No OFD packet to send [05:36:48]OFD Sender: No OFD packet to send [05:36:53]OFD Sender: No OFD packet to send [05:36:58]OFD Sender: No OFD packet to send [05:37:03]OFD Sender: No OFD packet to send [05:37:08]OFD Sender: No OFD packet to send [05:37:13]OFD Sender: No OFD packet to send [05:37:18]OFD Sender: No OFD packet to send [05:37:23]OFD Sender: No OFD packet to send [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:19]OFD Sender: No OFD packet to send [05:50:24]OFD Sender: No OFD packet to send [05:50:29]OFD Sender: No OFD packet to send [05:50:34]OFD Sender: No OFD packet to send [05:50:39]OFD Sender: No OFD packet to send [05:50:44]OFD Sender: No OFD packet to send [05:50:49]OFD Sender: No OFD packet to send [05:50:54]OFD Sender: No OFD packet to send [05:50:59]OFD Sender: No OFD packet to send [05:51:04]OFD Sender: No OFD packet to send [05:51:09]OFD Sender: No OFD packet to send [05:51:14]OFD Sender: No OFD packet to send [05:51:19]OFD Sender: No OFD packet to send [05:51:24]OFD Sender: No OFD packet to send [05:51:29]OFD Sender: No OFD packet to send [05:51:34]OFD Sender: No OFD packet to send [05:51:39]OFD Sender: No OFD packet to send [05:51:44]OFD Sender: No OFD packet to send [05:51:49]OFD Sender: No OFD packet to send [05:51:54]OFD Sender: No OFD packet to send [05:51:59]OFD Sender: No OFD packet to send [05:52:04]OFD Sender: No OFD packet to send [05:52:09]OFD Sender: No OFD packet to send [05:52:14]OFD Sender: No OFD packet to send [05:52:19]OFD Sender: No OFD packet to send [05:52:24]OFD Sender: No OFD packet to send [05:52:29]OFD Sender: No OFD packet to send [05:52:34]OFD Sender: No OFD packet to send [05:52:39]OFD Sender: No OFD packet to send [05:52:44]OFD Sender: No OFD packet to send [05:52:49]OFD Sender: No OFD packet to send [05:52:54]OFD Sender: No OFD packet to send [05:52:59]OFD Sender: No OFD packet to send [05:53:04]OFD Sender: No OFD packet to send [05:53:09]OFD Sender: No OFD packet to send [05:53:14]OFD Sender: No OFD packet to send [05:53:19]OFD Sender: No OFD packet to send [05:53:24]OFD Sender: No OFD packet to send [05:53:29]OFD Sender: No OFD packet to send [05:53:34]OFD Sender: No OFD packet to send [05:53:39]OFD Sender: No OFD packet to send [05:53:44]OFD Sender: No OFD packet to send [05:53:49]OFD Sender: No OFD packet to send [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:39]OFD Sender: No OFD packet to send [05:59:44]OFD Sender: No OFD packet to send [05:59:49]OFD Sender: No OFD packet to send [05:59:54]OFD Sender: No OFD packet to send [05:59:59]OFD Sender: No OFD packet to send [06:00:04]OFD Sender: No OFD packet to send [06:00:09]OFD Sender: No OFD packet to send [06:00:14]OFD Sender: No OFD packet to send [06:00:19]OFD Sender: No OFD packet to send [06:00:24]OFD Sender: No OFD packet to send [06:00:29]OFD Sender: No OFD packet to send [06:00:34]OFD Sender: No OFD packet to send [06:00:39]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:40]OFD Sender: No OFD packet to send [06:08:45]OFD Sender: No OFD packet to send [06:08:50]OFD Sender: No OFD packet to send [06:08:55]OFD Sender: No OFD packet to send [06:09:00]OFD Sender: No OFD packet to send [06:09:05]OFD Sender: No OFD packet to send [06:09:10]OFD Sender: No OFD packet to send [06:09:15]OFD Sender: No OFD packet to send [06:09:20]OFD Sender: No OFD packet to send [06:09:25]OFD Sender: No OFD packet to send [06:09:30]OFD Sender: No OFD packet to send [06:09:35]OFD Sender: No OFD packet to send [06:09:40]OFD Sender: No OFD packet to send [06:09:45]OFD Sender: No OFD packet to send [06:09:50]OFD Sender: No OFD packet to send [06:09:55]OFD Sender: No OFD packet to send [06:10:00]OFD Sender: No OFD packet to send [06:10:05]OFD Sender: No OFD packet to send [06:10:10]OFD Sender: No OFD packet to send [06:10:15]OFD Sender: No OFD packet to send [06:10:20]OFD Sender: No OFD packet to send [06:10:25]OFD Sender: No OFD packet to send [06:10:30]OFD Sender: No OFD packet to send [06:10:35]OFD Sender: No OFD packet to send [06:10:40]OFD Sender: No OFD packet to send [06:10:45]OFD Sender: No OFD packet to send [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19:10]OFD Sender: No OFD packet to send [06:19:15]OFD Sender: No OFD packet to send [06:19:20]OFD Sender: No OFD packet to send [06:19:25]OFD Sender: No OFD packet to send [06:19:30]OFD Sender: No OFD packet to send [06:19:35]OFD Sender: No OFD packet to send [06:19:40]OFD Sender: No OFD packet to send [06:19:45]OFD Sender: No OFD packet to send [06:19:50]OFD Sender: No OFD packet to send [06:19:55]OFD Sender: No OFD packet to send [06:20:00]OFD Sender: No OFD packet to send [06:20:05]OFD Sender: No OFD packet to send [06:20:10]OFD Sender: No OFD packet to send [06:20:15]OFD Sender: No OFD packet to send [06:20:20]OFD Sender: No OFD packet to send [06:20:25]OFD Sender: No OFD packet to send [06:20:30]OFD Sender: No OFD packet to send [06:20:35]OFD Sender: No OFD packet to send [06:20:40]OFD Sender: No OFD packet to send [06:20:45]OFD Sender: No OFD packet to send [06:20:50]OFD Sender: No OFD packet to send [06:20:55]OFD Sender: No OFD packet to send [06:21:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]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:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:35:01]OFD Sender: No OFD packet to send [06:35:06]OFD Sender: No OFD packet to send [06:35:11]OFD Sender: No OFD packet to send [06:35:16]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:41]OFD Sender: No OFD packet to send [06:35:46]OFD Sender: No OFD packet to send [06:35:51]OFD Sender: No OFD packet to send [06:35:56]OFD Sender: No OFD packet to send [06:36:01]OFD Sender: No OFD packet to send [06:36:06]OFD Sender: No OFD packet to send [06:36:11]OFD Sender: No OFD packet to send [06:36:16]OFD Sender: No OFD packet to send [06:36:21]OFD Sender: No OFD packet to send [06:36:26]OFD Sender: No OFD packet to send [06:36:31]OFD Sender: No OFD packet to send [06:36:36]OFD Sender: No OFD packet to send [06:36:41]OFD Sender: No OFD packet to send [06:36:46]OFD Sender: No OFD packet to send [06:36:51]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:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:10]accept exits with 6 [06:49:10]New connection [06:49:10]New thread 3066920292 created [06:49:10]Thread 3066776932 joined [06:49:10]Waiting for new connection... [06:49:10] Sock 6.Parse request [06:49:10]Sock 6.Check first char [06:49:10]Sock 6.First char is OK [06:49:10]request: POST /json_proto HTTP/1.0 [06:49:10]Method: POST [06:49:10]URL: /json_proto [06:49:10]Method is POST - this is cgi request [06:49:10]url: /json_proto [06:49:10]query_string will be loaded in cgi processing [06:49:10]execute_cgi json_proto POST (null) [06:49:10]execute_cgi path=json_proto method=POST [06:49:10]POST find Content-Length [06:49:10]Host: 172.17.53.195:8080 [06:49:10]Content-Length: 682 [06:49:10]Content-Type: application/json [06:49:10] [06:49:10]POST finish read [06:49:10]Found Content-Length = 682 [06:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:10]execute_script... [06:49: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)220465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:49:10]POST & json_proto [06:49:10]process_json_proto [06:49:10]json parsed OK: [06:49:10]protocol is kg_v1.0 [06:49:10]action value=close_receipt [06:49:10]process_action close_receipt [06:49:10]cmd_close_receipt [06:49:10]MH_GetDate [06:49:10]Write to MH i2c: F0 00 00 CF 2B E9 [06:49:10]Write i2c OK [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: F0 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: F0 09 00 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: F0 09 00 CF 2B 00 77 F9 15 67 21 48 4A 65 F6 [06:49:10]GetLastDocTimeStamp 1729487860 [06:49:10]current date 1729493367 [06:49:10]FM_GetShiftState [06:49:10]SAM_PROTO_GetShiftState [06:49:10]wFMCommunicate request_size=4 [06:49:10]MH_SAM_APDU [06:49:10]CAPDU: 80 13 01 00 [06:49:10]Write to MH i2c: E2 08 00 D0 2B 80 13 01 00 00 00 00 00 78 [06:49:10]Write i2c OK [06:49:10]MH_I2C_Read... [06:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:10]Read from MH i2c: E2 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: E2 0E 00 [06:49:10]MH_I2C_Read... [06:49:10]Read from MH i2c: E2 0E 00 D0 2B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 81 [06:49:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [06:49:10]wFMCommunicate OK [06:49:10]SAM_PROTO_GetShiftState done [06:49:10]FM_GetShiftState done [06:49:10]opened in 1729470944 [06:49:10]opened+sec_in_day 1729557344 [06:49:10]quantity*price = 200031 [06:49:10]sum+1 = 200032 [06:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 9 21.10.2024 06:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165898 ФПД: 81586016732188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064927&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165898&fm=81586016732188&tin=02508201610067®Number=0000000000091764&sum=200000 [06:49:11]StoreToDocumentArchive [06:49:11]shift 535 fd 165898 [06:49:11]save to /storage/0535/doc_00165898 [06:49:11]save last doc name /storage/0535/doc_00165898 to /storage/kkm_last_doc_name [06:49:11]save OK [06:49:11]Clear old archive folders... [06:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:49:11]tlvbuf is 01522BB0 [06:49:11]SAM_PROTO_ClearQueue [06:49:11]wFMCommunicate request_size=4 [06:49:11]MH_SAM_APDU [06:49:11]CAPDU: 80 09 00 00 [06:49:11]Write to MH i2c: E2 08 00 DD 2B 80 09 00 00 00 00 00 00 7A [06:49:11]Write i2c OK [06:49:11]MH_I2C_Read... [06:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:11]Read from MH i2c: E2 [06:49:11]MH_I2C_Read... [06:49:11]Read from MH i2c: E2 03 00 [06:49:11]MH_I2C_Read... [06:49:11]Read from MH i2c: E2 03 00 DD 2B 00 90 00 7C [06:49:11]RAPDU: 90 00 [06:49:11]wFMCommunicate OK [06:49:11]SAM_PROTO_ClearQueue done [06:49:11]KKMCreateOFDPacket [06:49:11]OFDProtocolAddRootSTLVToBuf [06:49:11]FM_MakeSignedData [06:49:11]FM_MakeSignedData [06:49:11]SAM_PROTO_SignData [06:49:11]wFMCommunicate request_size=4 [06:49:11]MH_SAM_APDU [06:49:11]CAPDU: 80 0D 01 02 [06:49:11]Write to MH i2c: E2 08 00 DE 2B 80 0D 01 02 00 00 00 00 82 [06:49:11]Write i2c OK [06:49:11]MH_I2C_Read... [06:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:11]Read from MH i2c: E2 [06:49:11]MH_I2C_Read... [06:49:11]Read from MH i2c: E2 03 00 [06:49:11]MH_I2C_Read... [06:49:11]Read from MH i2c: E2 03 00 DE 2B 00 90 00 7D [06:49:11]RAPDU: 90 00 [06:49:11]wFMCommunicate OK [06:49:11]wFMCommunicate request_size=255 [06:49:11]MH_SAM_APDU [06:49:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 77 F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 88 02 00 35 04 06 00 4A [06:49:11]Write to MH i2c: E2 02 01 DF 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 77 F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 88 02 00 35 04 06 00 4A 00 00 46 [06:49:11]Write i2c OK [06:49:11]MH_I2C_Read... [06:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:12]Read from MH i2c: E2 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 03 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 03 00 DF 2B 00 90 00 7E [06:49:12]RAPDU: 90 00 [06:49:12]wFMCommunicate OK [06:49:12]wFMCommunicate request_size=10 [06:49:12]MH_SAM_APDU [06:49:12]CAPDU: 80 0D 02 02 05 33 B9 8B C4 1C [06:49:12]Write to MH i2c: E2 0D 00 E0 2B 80 0D 02 02 05 00 33 B9 8B C4 1C 00 00 E6 [06:49:12]Write i2c OK [06:49:12]MH_I2C_Read... [06:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:12]Read from MH i2c: E2 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 03 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 03 00 E0 2B 00 90 00 7F [06:49:12]RAPDU: 90 00 [06:49:12]wFMCommunicate OK [06:49:12]wFMCommunicate request_size=4 [06:49:12]MH_SAM_APDU [06:49:12]CAPDU: 80 0D 03 02 [06:49:12]Write to MH i2c: E2 08 00 E1 2B 80 0D 03 02 00 00 00 00 87 [06:49:12]Write i2c OK [06:49:12]MH_I2C_Read... [06:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:12]Read from MH i2c: E2 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 0B 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 0B 00 E1 2B 00 98 0F A6 CF 86 55 EB F2 90 00 5C [06:49:12]RAPDU: 98 0F A6 CF 86 55 EB F2 90 00 [06:49:12]wFMCommunicate OK [06:49:12]SAM_PROTO_SignData done [06:49:12]FM_MakeSignedData done [06:49:12]CreateOFDProtocolMessage [06:49:12]wFMCommunicate request_size=4 [06:49:12]MH_SAM_APDU [06:49:12]CAPDU: 80 11 00 00 [06:49:12]Write to MH i2c: E2 08 00 E2 2B 80 11 00 00 00 00 00 00 87 [06:49:12]Write i2c OK [06:49:12]MH_I2C_Read... [06:49:12]OFD Sender: No OFD packet to send [06:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:12]Read from MH i2c: E2 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 17 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: E2 17 00 E2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [06:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:49:12]wFMCommunicate OK [06:49:12]CreateOFDProtocolMessage done [06:49:12]OFDSenderStorePacket 165898 [06:49:12]StoreOFDPacket docnum=165898 [06:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 B8 07 01 DF 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 77 F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 88 02 00 35 04 06 00 4A 33 B9 8B C4 1C 98 0F A6 CF 86 55 EB F2 [06:49:12]CheckFolder [06:49:12]dirname=/storage/ofd_packets [06:49:12]CheckFolder done [06:49:12]ProducePacketName [06:49:12]name=ofd_packets/00165898 [06:49:12]NVStorageSaveData ofd_packets/00165898 [06:49:12]File name is /storage/ofd_packets/00165898 [06:49:12]Write 301 bytes [06:49:12]NVStorageSaveData done [06:49:12]OFDSenderStorePacket done [06:49:12]KKMCreateOFDPacket done [06:49:12]NVStorageSaveData kkm_last_timestamp [06:49:12]File name is /storage/kkm_last_timestamp [06:49:12]Write 4 bytes [06:49:12]NVStorageSaveData done [06:49:12]ExternCall_PrintAddStr [06:49:12]wPrintStart [06:49:12]Write to MH i2c: 01 00 00 E3 2B 0E [06:49:12]Write i2c OK [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: 01 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: 01 07 00 [06:49:12]MH_I2C_Read... [06:49:12]Read from MH i2c: 01 07 00 E3 2B 00 00 00 00 00 FF 0F 23 [06:49:12]RasterBufferAndPrint [06:49:12]line Счет N : (1)220465 [06:49:12]line ИНН: 02508201610067 [06:49:12]line Контрольно-Кассовый Чек [06:49:12]line ПРОДАЖА [06:49:12]line ТРК (МРК, ГНК) : 13 [06:49:12]line Товар: 2710124130 [06:49:12]line Аи-92-К-5 [06:49:12]line 29.900 * 66.90 [06:49:12]line = 2000.31 [06:49:12]line НДС 12% НСП 1% [06:49:12]line > о реализуемом товаре [06:49:12]line ОКРУГЛЕНИЕ: -0.31 [06:49:12]line ИТОГО: 2000.00 [06:49:12]line Внесено: 2000.00 [06:49:12]line СДАЧА: 0.00 [06:49:12]line НСП 1% : 17.70 [06:49:12]line НДС 12% : 212.42 [06:49:12]line Наличными: 2000.00 [06:49:12]line Безнал.: 0.00 [06:49:12]line Место: АЗС № 161 "Партнер Нефть" [06:49:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:49:12]line СНО: Общий режим [06:49:12]line Чек 9 21.10.2024 06:49 [06:49:12]line Смена: 535 ФФД: 1.0 [06:49:12]line ЗНМ: 0300000104 [06:49:12]line РНМ: 0000000000091764 [06:49:12]line Версия ККМ: 001 [06:49:12]line ФМ: 0000000000871759 [06:49:12]line ФД: 165898 [06:49:12]line ФПД: 81586016732188 [06:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T064927&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165898&fm=81586016732188&tin=02508201610067®Number=0000000000091764&sum=200000 [06:49:12]OFD Sender: Processing packet 165898 [packets to send 48, broken 47] [06:49:12]ProducePacketName [06:49:12]name=ofd_packets/00165898 [06:49:12]OFD Sender: To server: pG, [06:49:12]CommunicateWithHost lk.salyk.kg:30040 [06:49:12]ConnectInit lk.salyk.kg [06:49:12]written 0, free lines is 4095 [06:49:12]Connected sock=7 [06:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 59 B8 07 01 DF 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 77 F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 88 02 00 35 04 06 00 4A 33 B9 8B C4 1C 98 0F A6 CF 86 55 EB F2 [06:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 65 47 00 B0 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 88 02 00 F4 03 04 00 E6 9F 15 67 B6 04 01 00 00 C7 D8 FA F7 A0 0C 3D 77 [06:49:12]CommunicateWithHost err = 0 [06:49:12]CheckOFDResponse [06:49:12]1017 (14) - 77093643461234 [06:49:12]1041 (16) - 0000000000871759 [06:49:12]1040 (4) - 165898 [06:49:12]1012 (4) - 21.10.2024 00:27 [06:49:12]1206 (1) - 0 [06:49:12]OFD Sender: Remove packet 165898 [06:49:12]ProducePacketName [06:49:12]name=ofd_packets/00165898 [06:49:12]NVStorageDeleteData [06:49:13]Write to MH i2c: 01 00 00 0E 2C 3A [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: 01 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: 01 07 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: 01 07 00 0E 2C 00 00 00 00 00 C4 0C 11 [06:49:13]RasterBufferAndPrint [06:49:13]line [06:49:13]line [06:49:13]line [06:49:13]line [06:49:13]line [06:49:13]written 0, free lines is 3274 [06:49:13]MH_Cut [06:49:13]Write to MH i2c: D1 01 00 15 2C 01 13 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: D1 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: D1 01 00 [06:49:13]MH_I2C_Read... [06:49:13]Read from MH i2c: D1 01 00 15 2C 00 12 [06:49:13]Write to MH i2c: 01 00 00 16 2C 42 [06:49:13]Write i2c OK [06:49:13]MH_I2C_Read... [06:49:13]OFD Sender: No OFD packet to send [06:49:13]*** Cut start [06:49:13]*** Partial cut [06:49:13]*** CUTSNS_PIN = 1 [06:49:13]*** CUTSNS_PIN = 0 [06:49:14]*** Brake cut motor [06:49:14]Read from MH i2c: 01 [06:49:14]MH_I2C_Read... [06:49:14]*** Stop cut motor [06:49:14]*** Cut end [06:49:14]Read from MH i2c: 01 07 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: 01 07 00 16 2C 00 00 00 00 00 FF 0F 57 [06:49:14]process_action close_receipt done [06:49:14]requested_data is exist [06:49:14]produce_requested_data [06:49:14]requested_item fm.sn is exist - process it [06:49:14]wFMCommunicate request_size=4 [06:49:14]MH_SAM_APDU [06:49:14]CAPDU: 80 11 00 00 [06:49:14]Write to MH i2c: E2 08 00 17 2C 80 11 00 00 00 00 00 00 BD [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:14]Read from MH i2c: E2 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 17 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 17 00 17 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [06:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:49:14]wFMCommunicate OK [06:49:14]requested_item fd.num is exist - process it [06:49:14]SAM_PROTO_GetFieldsCounters [06:49:14]wFMCommunicate request_size=4 [06:49:14]MH_SAM_APDU [06:49:14]CAPDU: 80 13 00 00 [06:49:14]Write to MH i2c: E2 08 00 18 2C 80 13 00 00 00 00 00 00 C0 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:14]Read from MH i2c: E2 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 62 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 62 00 18 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [06:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:49:14]wFMCommunicate OK [06:49:14]SAM_PROTO_GetFieldsCounters done [06:49:14]requested_item shift.num is exist - process it [06:49:14]requested_item shift.opened is exist - process it [06:49:14]req_shift_opened [06:49:14]FM_GetShiftState [06:49:14]SAM_PROTO_GetShiftState [06:49:14]wFMCommunicate request_size=4 [06:49:14]MH_SAM_APDU [06:49:14]CAPDU: 80 13 01 00 [06:49:14]Write to MH i2c: E2 08 00 19 2C 80 13 01 00 00 00 00 00 C2 [06:49:14]Write i2c OK [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 [06:49:14]MH_I2C_Read... [06:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:14]Read from MH i2c: E2 0E 00 [06:49:14]MH_I2C_Read... [06:49:14]Read from MH i2c: E2 0E 00 19 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CB [06:49:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [06:49:14]wFMCommunicate OK [06:49:14]SAM_PROTO_GetShiftState done [06:49:14]FM_GetShiftState done [06:49:14]req_shift_opened done [06:49:14]requested_item shift.open_date is exist - process it [06:49:14]req_shift_open_date [06:49:14]req_shift_open_date done [06:49:14]produce_requested_data done [06:49:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165898,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [06:49:14]process_action_free close_receipt [06:49:14]json_value_free [06:49:14]json_value_free done [06:49:14]process_json_proto returns [06:49:14]Send response to host [06:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165898,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [06:49:14]free response buf [06:49:14]execute_script done [06:49:14]execute_script returns [06:49:14]free content buf [06:49:14]Sock 6.Close socket [06:49:14]Sock 6.Thread stoped [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:07]accept exits with 5 [06:51:07]New connection [06:51:07]New thread 3066776932 created [06:51:07]Thread 3066920292 joined [06:51:07]Waiting for new connection... [06:51:07] Sock 5.Parse request [06:51:07]Sock 5.Check first char [06:51:07]Sock 5.First char is OK [06:51:07]request: POST /json_proto HTTP/1.0 [06:51:07]Method: POST [06:51:07]URL: /json_proto [06:51:07]Method is POST - this is cgi request [06:51:07]url: /json_proto [06:51:07]query_string will be loaded in cgi processing [06:51:07]execute_cgi json_proto POST (null) [06:51:07]execute_cgi path=json_proto method=POST [06:51:07]POST find Content-Length [06:51:07]Host: 172.17.53.195:8080 [06:51:07]Content-Length: 682 [06:51:07]Content-Type: application/json [06:51:07] [06:51:07]POST finish read [06:51:07]Found Content-Length = 682 [06:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.040, "sum" : 2599.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2599.00, "payments": [ { "type": 0, "sum" : 2599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:07]execute_script... [06:51: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)220466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.040, "sum" : 2599.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2599.00, "payments": [ { "type": 0, "sum" : 2599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:07]POST & json_proto [06:51:07]process_json_proto [06:51:07]json parsed OK: [06:51:07]protocol is kg_v1.0 [06:51:07]action value=close_receipt [06:51:07]process_action close_receipt [06:51:07]cmd_close_receipt [06:51:07]MH_GetDate [06:51:07]Write to MH i2c: F0 00 00 1A 2C 35 [06:51:07]Write i2c OK [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: F0 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: F0 09 00 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: F0 09 00 1A 2C 00 EB F9 15 67 21 48 4A 65 B6 [06:51:07]GetLastDocTimeStamp 1729493367 [06:51:07]current date 1729493483 [06:51:07]FM_GetShiftState [06:51:07]SAM_PROTO_GetShiftState [06:51:07]wFMCommunicate request_size=4 [06:51:07]MH_SAM_APDU [06:51:07]CAPDU: 80 13 01 00 [06:51:07]Write to MH i2c: E2 08 00 1B 2C 80 13 01 00 00 00 00 00 C4 [06:51:07]Write i2c OK [06:51:07]MH_I2C_Read... [06:51:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:07]Read from MH i2c: E2 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: E2 0E 00 [06:51:07]MH_I2C_Read... [06:51:07]Read from MH i2c: E2 0E 00 1B 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [06:51:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [06:51:07]wFMCommunicate OK [06:51:07]SAM_PROTO_GetShiftState done [06:51:07]FM_GetShiftState done [06:51:07]opened in 1729470944 [06:51:07]opened+sec_in_day 1729557344 [06:51:07]quantity*price = 259996 [06:51:07]sum+1 = 259998 [06:51:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 2599.00 Внесено: 5000.00 СДАЧА: 2401.00 НСП 1% : 23.01 НДС 12% : 276.10 Наличными: 2599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 10 21.10.2024 06:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165899 ФПД: 233684414818432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065123&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165899&fm=233684414818432&tin=02508201610067®Number=0000000000091764&sum=259900 [06:51:08]StoreToDocumentArchive [06:51:08]shift 535 fd 165899 [06:51:08]save to /storage/0535/doc_00165899 [06:51:08]save last doc name /storage/0535/doc_00165899 to /storage/kkm_last_doc_name [06:51:08]save OK [06:51:08]Clear old archive folders... [06:51:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:51:08]tlvbuf is 01599800 [06:51:08]SAM_PROTO_ClearQueue [06:51:08]wFMCommunicate request_size=4 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 09 00 00 [06:51:08]Write to MH i2c: E2 08 00 28 2C 80 09 00 00 00 00 00 00 C6 [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 28 2C 00 90 00 C8 [06:51:08]RAPDU: 90 00 [06:51:08]wFMCommunicate OK [06:51:08]SAM_PROTO_ClearQueue done [06:51:08]KKMCreateOFDPacket [06:51:08]OFDProtocolAddRootSTLVToBuf [06:51:08]FM_MakeSignedData [06:51:08]FM_MakeSignedData [06:51:08]SAM_PROTO_SignData [06:51:08]wFMCommunicate request_size=4 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 0D 01 02 [06:51:08]Write to MH i2c: E2 08 00 29 2C 80 0D 01 02 00 00 00 00 CE [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 29 2C 00 90 00 C9 [06:51:08]RAPDU: 90 00 [06:51:08]wFMCommunicate OK [06:51:08]wFMCommunicate request_size=255 [06:51:08]MH_SAM_APDU [06:51: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 E0 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EB F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 88 02 00 35 04 06 00 D4 [06:51:08]Write to MH i2c: E2 02 01 2A 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E0 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EB F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 88 02 00 35 04 06 00 D4 00 00 9C [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]OFD Sender: No OFD packet to send [06:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 2A 2C 00 90 00 CA [06:51:08]RAPDU: 90 00 [06:51:08]wFMCommunicate OK [06:51:08]wFMCommunicate request_size=10 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 0D 02 02 05 88 E4 88 E8 80 [06:51:08]Write to MH i2c: E2 0D 00 2B 2C 80 0D 02 02 05 00 88 E4 88 E8 80 00 00 37 [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 03 00 2B 2C 00 90 00 CB [06:51:08]RAPDU: 90 00 [06:51:08]wFMCommunicate OK [06:51:08]wFMCommunicate request_size=4 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 0D 03 02 [06:51:08]Write to MH i2c: E2 08 00 2C 2C 80 0D 03 02 00 00 00 00 D3 [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 0B 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 0B 00 2C 2C 00 75 41 66 64 78 3D CB 1B 90 00 EF [06:51:08]RAPDU: 75 41 66 64 78 3D CB 1B 90 00 [06:51:08]wFMCommunicate OK [06:51:08]SAM_PROTO_SignData done [06:51:08]FM_MakeSignedData done [06:51:08]CreateOFDProtocolMessage [06:51:08]wFMCommunicate request_size=4 [06:51:08]MH_SAM_APDU [06:51:08]CAPDU: 80 11 00 00 [06:51:08]Write to MH i2c: E2 08 00 2D 2C 80 11 00 00 00 00 00 00 D3 [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:08]Read from MH i2c: E2 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 17 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: E2 17 00 2D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [06:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:51:08]wFMCommunicate OK [06:51:08]CreateOFDProtocolMessage done [06:51:08]OFDSenderStorePacket 165899 [06:51:08]StoreOFDPacket docnum=165899 [06:51:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 BD 07 01 8F 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 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 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EB F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 88 02 00 35 04 06 00 D4 88 E4 88 E8 80 75 41 66 64 78 3D CB 1B [06:51:08]CheckFolder [06:51:08]dirname=/storage/ofd_packets [06:51:08]CheckFolder done [06:51:08]ProducePacketName [06:51:08]name=ofd_packets/00165899 [06:51:08]NVStorageSaveData ofd_packets/00165899 [06:51:08]File name is /storage/ofd_packets/00165899 [06:51:08]Write 301 bytes [06:51:08]NVStorageSaveData done [06:51:08]OFDSenderStorePacket done [06:51:08]KKMCreateOFDPacket done [06:51:08]NVStorageSaveData kkm_last_timestamp [06:51:08]File name is /storage/kkm_last_timestamp [06:51:08]Write 4 bytes [06:51:08]NVStorageSaveData done [06:51:08]ExternCall_PrintAddStr [06:51:08]wPrintStart [06:51:08]Write to MH i2c: 01 00 00 2E 2C 5A [06:51:08]Write i2c OK [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: 01 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: 01 07 00 [06:51:08]MH_I2C_Read... [06:51:08]Read from MH i2c: 01 07 00 2E 2C 00 00 00 00 00 FF 0F 6F [06:51:08]RasterBufferAndPrint [06:51:08]line Счет N : (1)220466 [06:51:08]line ИНН: 02508201610067 [06:51:08]line Контрольно-Кассовый Чек [06:51:08]line ПРОДАЖА [06:51:08]line ТРК (МРК, ГНК) : 24 [06:51:08]line Товар: 2710124500 [06:51:08]line Аи-95-К-5 [06:51:08]line 35.040 * 74.20 [06:51:08]line = 2599.97 [06:51:08]line НДС 12% НСП 1% [06:51:08]line > о реализуемом товаре [06:51:08]line ОКРУГЛЕНИЕ: -0.97 [06:51:08]line ИТОГО: 2599.00 [06:51:08]line Внесено: 5000.00 [06:51:08]line СДАЧА: 2401.00 [06:51:08]line НСП 1% : 23.01 [06:51:08]line НДС 12% : 276.10 [06:51:08]line Наличными: 2599.00 [06:51:08]line Безнал.: 0.00 [06:51:08]line Место: АЗС № 161 "Партнер Нефть" [06:51:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:51:08]line СНО: Общий режим [06:51:08]line Чек 10 21.10.2024 06:51 [06:51:08]line Смена: 535 ФФД: 1.0 [06:51:08]line ЗНМ: 0300000104 [06:51:08]line РНМ: 0000000000091764 [06:51:08]line Версия ККМ: 001 [06:51:08]line ФМ: 0000000000871759 [06:51:08]line ФД: 165899 [06:51:08]line ФПД: 233684414818432 [06:51:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065123&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165899&fm=233684414818432&tin=02508201610067®Number=0000000000091764&sum=259900 [06:51:09]OFD Sender: Processing packet 165899 [packets to send 48, broken 47] [06:51:09]ProducePacketName [06:51:09]name=ofd_packets/00165899 [06:51:09]OFD Sender: To server: pG, [06:51:09]CommunicateWithHost lk.salyk.kg:30040 [06:51:09]ConnectInit lk.salyk.kg [06:51:09]written 0, free lines is 4095 [06:51:09]Connected sock=7 [06:51:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 BD 07 01 8F 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 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 88 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D F7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C F7 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FD 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DA 6B 00 00 00 00 07 04 06 00 3C F7 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 EB F9 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 88 02 00 35 04 06 00 D4 88 E4 88 E8 80 75 41 66 64 78 3D CB 1B [06:51:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6C C0 47 00 8D 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 88 02 00 F4 03 04 00 5B A0 15 67 B6 04 01 00 00 84 94 88 72 06 F7 5A 8C [06:51:09]CommunicateWithHost err = 0 [06:51:09]CheckOFDResponse [06:51:09]1017 (14) - 77093643461234 [06:51:09]1041 (16) - 0000000000871759 [06:51:09]1040 (4) - 165899 [06:51:09]1012 (4) - 21.10.2024 00:29 [06:51:09]1206 (1) - 0 [06:51:09]OFD Sender: Remove packet 165899 [06:51:09]ProducePacketName [06:51:09]name=ofd_packets/00165899 [06:51:09]NVStorageDeleteData [06:51:09]Write to MH i2c: 01 00 00 59 2C 85 [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: 01 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: 01 07 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: 01 07 00 59 2C 00 00 00 00 00 C0 0C 58 [06:51:09]RasterBufferAndPrint [06:51:09]line [06:51:09]line [06:51:09]line [06:51:09]line [06:51:09]line [06:51:09]written 0, free lines is 3271 [06:51:09]MH_Cut [06:51:09]Write to MH i2c: D1 01 00 60 2C 01 5E [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: D1 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: D1 01 00 [06:51:09]MH_I2C_Read... [06:51:09]Read from MH i2c: D1 01 00 60 2C 00 5D [06:51:09]Write to MH i2c: 01 00 00 61 2C 8D [06:51:09]Write i2c OK [06:51:09]MH_I2C_Read... [06:51:09]OFD Sender: No OFD packet to send [06:51:10]*** Cut start [06:51:10]*** Partial cut [06:51:10]*** CUTSNS_PIN = 1 [06:51:10]*** CUTSNS_PIN = 0 [06:51:10]*** Brake cut motor [06:51:11]Read from MH i2c: 01 [06:51:11]MH_I2C_Read... [06:51:11]*** Stop cut motor [06:51:11]*** Cut end [06:51:11]Read from MH i2c: 01 07 00 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: 01 07 00 61 2C 00 00 00 00 00 FF 0F A2 [06:51:11]process_action close_receipt done [06:51:11]requested_data is exist [06:51:11]produce_requested_data [06:51:11]requested_item fm.sn is exist - process it [06:51:11]wFMCommunicate request_size=4 [06:51:11]MH_SAM_APDU [06:51:11]CAPDU: 80 11 00 00 [06:51:11]Write to MH i2c: E2 08 00 62 2C 80 11 00 00 00 00 00 00 08 [06:51:11]Write i2c OK [06:51:11]MH_I2C_Read... [06:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:11]Read from MH i2c: E2 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 17 00 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 17 00 62 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [06:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:51:11]wFMCommunicate OK [06:51:11]requested_item fd.num is exist - process it [06:51:11]SAM_PROTO_GetFieldsCounters [06:51:11]wFMCommunicate request_size=4 [06:51:11]MH_SAM_APDU [06:51:11]CAPDU: 80 13 00 00 [06:51:11]Write to MH i2c: E2 08 00 63 2C 80 13 00 00 00 00 00 00 0B [06:51:11]Write i2c OK [06:51:11]MH_I2C_Read... [06:51:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:11]Read from MH i2c: E2 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 62 00 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 62 00 63 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [06:51:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:11]wFMCommunicate OK [06:51:11]SAM_PROTO_GetFieldsCounters done [06:51:11]requested_item shift.num is exist - process it [06:51:11]requested_item shift.opened is exist - process it [06:51:11]req_shift_opened [06:51:11]FM_GetShiftState [06:51:11]SAM_PROTO_GetShiftState [06:51:11]wFMCommunicate request_size=4 [06:51:11]MH_SAM_APDU [06:51:11]CAPDU: 80 13 01 00 [06:51:11]Write to MH i2c: E2 08 00 64 2C 80 13 01 00 00 00 00 00 0D [06:51:11]Write i2c OK [06:51:11]MH_I2C_Read... [06:51:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:11]Read from MH i2c: E2 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 0E 00 [06:51:11]MH_I2C_Read... [06:51:11]Read from MH i2c: E2 0E 00 64 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 16 [06:51:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [06:51:11]wFMCommunicate OK [06:51:11]SAM_PROTO_GetShiftState done [06:51:11]FM_GetShiftState done [06:51:11]req_shift_opened done [06:51:11]requested_item shift.open_date is exist - process it [06:51:11]req_shift_open_date [06:51:11]req_shift_open_date done [06:51:11]produce_requested_data done [06:51:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165899,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [06:51:11]process_action_free close_receipt [06:51:11]json_value_free [06:51:11]json_value_free done [06:51:11]process_json_proto returns [06:51:11]Send response to host [06:51:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165899,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [06:51:11]free response buf [06:51:11]execute_script done [06:51:11]execute_script returns [06:51:11]free content buf [06:51:11]Sock 5.Close socket [06:51:11]Sock 5.Thread stoped [06:51:14]OFD Sender: No OFD packet to send [06:51:19]OFD Sender: No OFD packet to send [06:51:24]OFD Sender: No OFD packet to send [06:51:29]OFD Sender: No OFD packet to send [06:51:34]OFD Sender: No OFD packet to send [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:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]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:35]accept exits with 6 [06:56:35]New connection [06:56:35]New thread 3066920292 created [06:56:35]Thread 3066776932 joined [06:56:35]Waiting for new connection... [06:56:35] Sock 6.Parse request [06:56:35]Sock 6.Check first char [06:56:35]Sock 6.First char is OK [06:56:35]request: POST /json_proto HTTP/1.0 [06:56:35]Method: POST [06:56:35]URL: /json_proto [06:56:35]Method is POST - this is cgi request [06:56:35]url: /json_proto [06:56:35]query_string will be loaded in cgi processing [06:56:35]execute_cgi json_proto POST (null) [06:56:35]execute_cgi path=json_proto method=POST [06:56:35]POST find Content-Length [06:56:35]Host: 172.17.53.195:8080 [06:56:35]Content-Length: 679 [06:56:35]Content-Type: application/json [06:56:35] [06:56:35]POST finish read [06:56:35]Found Content-Length = 679 [06:56:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 48.560, "sum" : 3700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:35]execute_script... [06:56: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)220467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 48.560, "sum" : 3700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:56:35]POST & json_proto [06:56:35]process_json_proto [06:56:35]json parsed OK: [06:56:35]protocol is kg_v1.0 [06:56:35]action value=close_receipt [06:56:35]process_action close_receipt [06:56:35]cmd_close_receipt [06:56:35]MH_GetDate [06:56:35]Write to MH i2c: F0 00 00 65 2C 80 [06:56:35]Write i2c OK [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: F0 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: F0 09 00 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: F0 09 00 65 2C 00 34 FB 15 67 21 48 4A 65 4C [06:56:35]GetLastDocTimeStamp 1729493483 [06:56:35]current date 1729493812 [06:56:35]FM_GetShiftState [06:56:35]SAM_PROTO_GetShiftState [06:56:35]wFMCommunicate request_size=4 [06:56:35]MH_SAM_APDU [06:56:35]CAPDU: 80 13 01 00 [06:56:35]Write to MH i2c: E2 08 00 66 2C 80 13 01 00 00 00 00 00 0F [06:56:35]Write i2c OK [06:56:35]MH_I2C_Read... [06:56:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:35]Read from MH i2c: E2 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: E2 0E 00 [06:56:35]MH_I2C_Read... [06:56:35]Read from MH i2c: E2 0E 00 66 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 18 [06:56:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [06:56:35]wFMCommunicate OK [06:56:35]SAM_PROTO_GetShiftState done [06:56:35]FM_GetShiftState done [06:56:35]opened in 1729470944 [06:56:35]opened+sec_in_day 1729557344 [06:56:35]quantity*price = 370027 [06:56:35]sum+1 = 370028 [06:56:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 3700.00 Внесено: 3700.00 СДАЧА: 0.00 НСП 1% : 32.75 НДС 12% : 392.95 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 11 21.10.2024 06:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165900 ФПД: 17343493452447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165900&fm=17343493452447&tin=02508201610067®Number=0000000000091764&sum=370000 [06:56:36]StoreToDocumentArchive [06:56:36]shift 535 fd 165900 [06:56:36]save to /storage/0535/doc_00165900 [06:56:36]save last doc name /storage/0535/doc_00165900 to /storage/kkm_last_doc_name [06:56:36]save OK [06:56:36]Clear old archive folders... [06:56:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [06:56:36]tlvbuf is 016AB930 [06:56:36]SAM_PROTO_ClearQueue [06:56:36]wFMCommunicate request_size=4 [06:56:36]MH_SAM_APDU [06:56:36]CAPDU: 80 09 00 00 [06:56:36]Write to MH i2c: E2 08 00 73 2C 80 09 00 00 00 00 00 00 11 [06:56:36]Write i2c OK [06:56:36]MH_I2C_Read... [06:56:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:56:36]Read from MH i2c: E2 [06:56:36]MH_I2C_Read... [06:56:36]Read from MH i2c: E2 03 00 [06:56:36]MH_I2C_Read... [06:56:36]Read from MH i2c: E2 03 00 73 2C 00 90 00 13 [06:56:36]RAPDU: 90 00 [06:56:36]wFMCommunicate OK [06:56:36]SAM_PROTO_ClearQueue done [06:56:36]KKMCreateOFDPacket [06:56:36]OFDProtocolAddRootSTLVToBuf [06:56:36]FM_MakeSignedData [06:56:36]FM_MakeSignedData [06:56:36]SAM_PROTO_SignData [06:56:36]wFMCommunicate request_size=4 [06:56:36]MH_SAM_APDU [06:56:36]CAPDU: 80 0D 01 02 [06:56:36]Write to MH i2c: E2 08 00 74 2C 80 0D 01 02 00 00 00 00 19 [06:56:36]Write i2c OK [06:56:36]MH_I2C_Read... [06:56:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:56:36]Read from MH i2c: E2 [06:56:36]MH_I2C_Read... [06:56:36]Read from MH i2c: E2 03 00 [06:56:36]MH_I2C_Read... [06:56:36]Read from MH i2c: E2 03 00 74 2C 00 90 00 14 [06:56:36]RAPDU: 90 00 [06:56:36]wFMCommunicate OK [06:56:36]wFMCommunicate request_size=255 [06:56:36]MH_SAM_APDU [06:56:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 34 FB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 88 02 00 35 04 06 00 0F C6 18 C4 [06:56:36]Write to MH i2c: E2 02 01 75 2C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 34 FB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 88 02 00 35 04 06 00 0F C6 18 C4 00 00 D9 [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 03 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 03 00 75 2C 00 90 00 15 [06:56:37]RAPDU: 90 00 [06:56:37]wFMCommunicate OK [06:56:37]wFMCommunicate request_size=7 [06:56:37]MH_SAM_APDU [06:56:37]CAPDU: 80 0D 02 02 02 32 9F [06:56:37]Write to MH i2c: E2 0A 00 76 2C 80 0D 02 02 02 00 32 9F 00 00 F1 [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 03 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 03 00 76 2C 00 90 00 16 [06:56:37]RAPDU: 90 00 [06:56:37]wFMCommunicate OK [06:56:37]wFMCommunicate request_size=4 [06:56:37]MH_SAM_APDU [06:56:37]CAPDU: 80 0D 03 02 [06:56:37]Write to MH i2c: E2 08 00 77 2C 80 0D 03 02 00 00 00 00 1E [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 0B 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 0B 00 77 2C 00 DC D0 05 58 4A 31 34 3F 90 00 16 [06:56:37]RAPDU: DC D0 05 58 4A 31 34 3F 90 00 [06:56:37]wFMCommunicate OK [06:56:37]SAM_PROTO_SignData done [06:56:37]FM_MakeSignedData done [06:56:37]CreateOFDProtocolMessage [06:56:37]wFMCommunicate request_size=4 [06:56:37]MH_SAM_APDU [06:56:37]CAPDU: 80 11 00 00 [06:56:37]Write to MH i2c: E2 08 00 78 2C 80 11 00 00 00 00 00 00 1E [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:37]Read from MH i2c: E2 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 17 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: E2 17 00 78 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [06:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:56:37]wFMCommunicate OK [06:56:37]CreateOFDProtocolMessage done [06:56:37]OFDSenderStorePacket 165900 [06:56:37]StoreOFDPacket docnum=165900 [06:56:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3A 3A 04 01 60 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 34 FB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 88 02 00 35 04 06 00 0F C6 18 C4 32 9F DC D0 05 58 4A 31 34 3F [06:56:37]CheckFolder [06:56:37]dirname=/storage/ofd_packets [06:56:37]CheckFolder done [06:56:37]ProducePacketName [06:56:37]name=ofd_packets/00165900 [06:56:37]NVStorageSaveData ofd_packets/00165900 [06:56:37]File name is /storage/ofd_packets/00165900 [06:56:37]Write 298 bytes [06:56:37]NVStorageSaveData done [06:56:37]OFDSenderStorePacket done [06:56:37]KKMCreateOFDPacket done [06:56:37]NVStorageSaveData kkm_last_timestamp [06:56:37]File name is /storage/kkm_last_timestamp [06:56:37]Write 4 bytes [06:56:37]NVStorageSaveData done [06:56:37]ExternCall_PrintAddStr [06:56:37]wPrintStart [06:56:37]Write to MH i2c: 01 00 00 79 2C A5 [06:56:37]Write i2c OK [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: 01 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: 01 07 00 [06:56:37]MH_I2C_Read... [06:56:37]Read from MH i2c: 01 07 00 79 2C 00 00 00 00 00 FF 0F BA [06:56:37]RasterBufferAndPrint [06:56:37]line Счет N : (1)220467 [06:56:37]line ИНН: 02508201610067 [06:56:37]line Контрольно-Кассовый Чек [06:56:37]line ПРОДАЖА [06:56:37]line ТРК (МРК, ГНК) : 21 [06:56:37]line Товар: 2710194210 [06:56:37]line ДТ-К-5 [06:56:37]line 48.560 * 76.20 [06:56:37]line = 3700.27 [06:56:37]line НДС 12% НСП 1% [06:56:37]line > о реализуемом товаре [06:56:37]line ОКРУГЛЕНИЕ: -0.27 [06:56:37]line ИТОГО: 3700.00 [06:56:37]line Внесено: 3700.00 [06:56:37]line СДАЧА: 0.00 [06:56:37]line НСП 1% : 32.75 [06:56:37]line НДС 12% : 392.95 [06:56:37]line Наличными: 3700.00 [06:56:37]line Безнал.: 0.00 [06:56:37]line Место: АЗС № 161 "Партнер Нефть" [06:56:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [06:56:37]line СНО: Общий режим [06:56:37]line Чек 11 21.10.2024 06:56 [06:56:37]line Смена: 535 ФФД: 1.0 [06:56:37]line ЗНМ: 0300000104 [06:56:37]line РНМ: 0000000000091764 [06:56:37]line Версия ККМ: 001 [06:56:37]line ФМ: 0000000000871759 [06:56:37]line ФД: 165900 [06:56:37]line ФПД: 17343493452447 [06:56:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T065652&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165900&fm=17343493452447&tin=02508201610067®Number=0000000000091764&sum=370000 [06:56:37]OFD Sender: Processing packet 165900 [packets to send 48, broken 47] [06:56:37]ProducePacketName [06:56:37]name=ofd_packets/00165900 [06:56:37]OFD Sender: To server: pG, [06:56:37]CommunicateWithHost lk.salyk.kg:30040 [06:56:37]ConnectInit lk.salyk.kg [06:56:37]written 0, free lines is 4095 [06:56:37]Connected sock=7 [06:56:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3A 3A 04 01 60 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 34 FB 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 88 02 00 35 04 06 00 0F C6 18 C4 32 9F DC D0 05 58 4A 31 34 3F [06:56:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 56 50 47 00 2D 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 88 02 00 F4 03 04 00 A3 A1 15 67 B6 04 01 00 00 97 99 0D 03 19 33 E9 4B [06:56:38]CommunicateWithHost err = 0 [06:56:38]CheckOFDResponse [06:56:38]1017 (14) - 77093643461234 [06:56:38]1041 (16) - 0000000000871759 [06:56:38]1040 (4) - 165900 [06:56:38]1012 (4) - 21.10.2024 00:34 [06:56:38]1206 (1) - 0 [06:56:38]OFD Sender: Remove packet 165900 [06:56:38]ProducePacketName [06:56:38]name=ofd_packets/00165900 [06:56:38]NVStorageDeleteData [06:56:38]Write to MH i2c: 01 00 00 A4 2C D0 [06:56:38]Write i2c OK [06:56:38]MH_I2C_Read... [06:56:38]Read from MH i2c: 01 [06:56:38]MH_I2C_Read... [06:56:38]Read from MH i2c: 01 07 00 [06:56:38]MH_I2C_Read... [06:56:38]Read from MH i2c: 01 07 00 A4 2C 00 00 00 00 00 C5 0C A8 [06:56:38]RasterBufferAndPrint [06:56:38]line [06:56:38]line [06:56:38]line [06:56:38]line [06:56:38]line [06:56:38]written 0, free lines is 3278 [06:56:38]MH_Cut [06:56:38]Write to MH i2c: D1 01 00 AB 2C 01 A9 [06:56:38]Write i2c OK [06:56:38]MH_I2C_Read... [06:56:38]Read from MH i2c: D1 [06:56:38]MH_I2C_Read... [06:56:38]Read from MH i2c: D1 01 00 [06:56:38]MH_I2C_Read... [06:56:38]Read from MH i2c: D1 01 00 AB 2C 00 A8 [06:56:38]Write to MH i2c: 01 00 00 AC 2C D8 [06:56:38]Write i2c OK [06:56:38]MH_I2C_Read... [06:56:38]OFD Sender: No OFD packet to send [06:56:39]*** Cut start [06:56:39]*** Partial cut [06:56:39]*** CUTSNS_PIN = 1 [06:56:39]*** CUTSNS_PIN = 0 [06:56:39]*** Brake cut motor [06:56:39]Read from MH i2c: 01 [06:56:39]MH_I2C_Read... [06:56:39]*** Stop cut motor [06:56:39]*** Cut end [06:56:39]Read from MH i2c: 01 07 00 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: 01 07 00 AC 2C 00 00 00 00 00 FF 0F ED [06:56:39]process_action close_receipt done [06:56:39]requested_data is exist [06:56:39]produce_requested_data [06:56:39]requested_item fm.sn is exist - process it [06:56:39]wFMCommunicate request_size=4 [06:56:39]MH_SAM_APDU [06:56:39]CAPDU: 80 11 00 00 [06:56:39]Write to MH i2c: E2 08 00 AD 2C 80 11 00 00 00 00 00 00 53 [06:56:39]Write i2c OK [06:56:39]MH_I2C_Read... [06:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:56:39]Read from MH i2c: E2 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: E2 17 00 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: E2 17 00 AD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [06:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [06:56:39]wFMCommunicate OK [06:56:39]requested_item fd.num is exist - process it [06:56:39]SAM_PROTO_GetFieldsCounters [06:56:39]wFMCommunicate request_size=4 [06:56:39]MH_SAM_APDU [06:56:39]CAPDU: 80 13 00 00 [06:56:39]Write to MH i2c: E2 08 00 AE 2C 80 13 00 00 00 00 00 00 56 [06:56:39]Write i2c OK [06:56:39]MH_I2C_Read... [06:56:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:56:39]Read from MH i2c: E2 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: E2 62 00 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: E2 62 00 AE 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [06:56:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:56:39]wFMCommunicate OK [06:56:39]SAM_PROTO_GetFieldsCounters done [06:56:39]requested_item shift.num is exist - process it [06:56:39]requested_item shift.opened is exist - process it [06:56:39]req_shift_opened [06:56:39]FM_GetShiftState [06:56:39]SAM_PROTO_GetShiftState [06:56:39]wFMCommunicate request_size=4 [06:56:39]MH_SAM_APDU [06:56:39]CAPDU: 80 13 01 00 [06:56:39]Write to MH i2c: E2 08 00 AF 2C 80 13 01 00 00 00 00 00 58 [06:56:39]Write i2c OK [06:56:39]MH_I2C_Read... [06:56:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:56:39]Read from MH i2c: E2 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: E2 0E 00 [06:56:39]MH_I2C_Read... [06:56:39]Read from MH i2c: E2 0E 00 AF 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 61 [06:56:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [06:56:39]wFMCommunicate OK [06:56:39]SAM_PROTO_GetShiftState done [06:56:39]FM_GetShiftState done [06:56:39]req_shift_opened done [06:56:39]requested_item shift.open_date is exist - process it [06:56:39]req_shift_open_date [06:56:39]req_shift_open_date done [06:56:39]produce_requested_data done [06:56:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165900,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [06:56:39]process_action_free close_receipt [06:56:39]json_value_free [06:56:39]json_value_free done [06:56:39]process_json_proto returns [06:56:39]Send response to host [06:56:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165900,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [06:56:39]free response buf [06:56:39]execute_script done [06:56:39]execute_script returns [06:56:39]free content buf [06:56:39]Sock 6.Close socket [06:56:39]Sock 6.Thread stoped [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:25]accept exits with 5 [07:01:25]New connection [07:01:25]New thread 3066776932 created [07:01:25]Thread 3066920292 joined [07:01:25]Waiting for new connection... [07:01:25] Sock 5.Parse request [07:01:25]Sock 5.Check first char [07:01:25]Sock 5.First char is OK [07:01:25]request: POST /json_proto HTTP/1.0 [07:01:25]Method: POST [07:01:25]URL: /json_proto [07:01:25]Method is POST - this is cgi request [07:01:25]url: /json_proto [07:01:25]query_string will be loaded in cgi processing [07:01:25]execute_cgi json_proto POST (null) [07:01:25]execute_cgi path=json_proto method=POST [07:01:25]POST find Content-Length [07:01:25]Host: 172.17.53.195:8080 [07:01:25]Content-Length: 682 [07:01:25]Content-Type: application/json [07:01:25] [07:01:25]POST finish read [07:01:25]Found Content-Length = 682 [07:01:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:25]execute_script... [07:01: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)220468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:25]POST & json_proto [07:01:25]process_json_proto [07:01:25]json parsed OK: [07:01:25]protocol is kg_v1.0 [07:01:25]action value=close_receipt [07:01:25]process_action close_receipt [07:01:25]cmd_close_receipt [07:01:25]MH_GetDate [07:01:25]Write to MH i2c: F0 00 00 B0 2C CB [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: F0 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: F0 09 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: F0 09 00 B0 2C 00 55 FC 15 67 21 48 4A 65 B9 [07:01:25]GetLastDocTimeStamp 1729493812 [07:01:25]current date 1729494101 [07:01:25]FM_GetShiftState [07:01:25]SAM_PROTO_GetShiftState [07:01:25]wFMCommunicate request_size=4 [07:01:25]MH_SAM_APDU [07:01:25]CAPDU: 80 13 01 00 [07:01:25]Write to MH i2c: E2 08 00 B1 2C 80 13 01 00 00 00 00 00 5A [07:01:25]Write i2c OK [07:01:25]MH_I2C_Read... [07:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:25]Read from MH i2c: E2 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 0E 00 [07:01:25]MH_I2C_Read... [07:01:25]Read from MH i2c: E2 0E 00 B1 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 63 [07:01:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:01:25]wFMCommunicate OK [07:01:25]SAM_PROTO_GetShiftState done [07:01:25]FM_GetShiftState done [07:01:25]opened in 1729470944 [07:01:25]opened+sec_in_day 1729557344 [07:01:25]quantity*price = 120055 [07:01:25]sum+1 = 120057 [07:01:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 12 21.10.2024 07:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165901 ФПД: 2665837848125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070141&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165901&fm=2665837848125&tin=02508201610067®Number=0000000000091764&sum=120000 [07:01:26]StoreToDocumentArchive [07:01:26]shift 535 fd 165901 [07:01:26]save to /storage/0535/doc_00165901 [07:01:26]save last doc name /storage/0535/doc_00165901 to /storage/kkm_last_doc_name [07:01:26]save OK [07:01:26]Clear old archive folders... [07:01:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:26]tlvbuf is 01599E30 [07:01:26]SAM_PROTO_ClearQueue [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 09 00 00 [07:01:26]Write to MH i2c: E2 08 00 BE 2C 80 09 00 00 00 00 00 00 5C [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 BE 2C 00 90 00 5E [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]SAM_PROTO_ClearQueue done [07:01:26]KKMCreateOFDPacket [07:01:26]OFDProtocolAddRootSTLVToBuf [07:01:26]FM_MakeSignedData [07:01:26]FM_MakeSignedData [07:01:26]SAM_PROTO_SignData [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 01 02 [07:01:26]Write to MH i2c: E2 08 00 BF 2C 80 0D 01 02 00 00 00 00 64 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 BF 2C 00 90 00 5F [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]wFMCommunicate request_size=255 [07:01:26]MH_SAM_APDU [07:01: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 FC 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 88 02 00 35 04 06 00 02 [07:01:26]Write to MH i2c: E2 02 01 C0 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 FC 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 88 02 00 35 04 06 00 02 00 00 AE [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 C0 2C 00 90 00 60 [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]wFMCommunicate request_size=10 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 02 02 05 6C B0 51 66 3D [07:01:26]Write to MH i2c: E2 0D 00 C1 2C 80 0D 02 02 05 00 6C B0 51 66 3D 00 00 81 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 03 00 C1 2C 00 90 00 61 [07:01:26]RAPDU: 90 00 [07:01:26]wFMCommunicate OK [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 0D 03 02 [07:01:26]Write to MH i2c: E2 08 00 C2 2C 80 0D 03 02 00 00 00 00 69 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 0B 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 0B 00 C2 2C 00 01 2A 4B 5B E6 4E 0E 0C 90 00 89 [07:01:26]RAPDU: 01 2A 4B 5B E6 4E 0E 0C 90 00 [07:01:26]wFMCommunicate OK [07:01:26]SAM_PROTO_SignData done [07:01:26]FM_MakeSignedData done [07:01:26]CreateOFDProtocolMessage [07:01:26]wFMCommunicate request_size=4 [07:01:26]MH_SAM_APDU [07:01:26]CAPDU: 80 11 00 00 [07:01:26]Write to MH i2c: E2 08 00 C3 2C 80 11 00 00 00 00 00 00 69 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:26]Read from MH i2c: E2 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 17 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: E2 17 00 C3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [07:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:01:26]wFMCommunicate OK [07:01:26]CreateOFDProtocolMessage done [07:01:26]OFDSenderStorePacket 165901 [07:01:26]StoreOFDPacket docnum=165901 [07:01:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 51 07 01 9B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 FC 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 88 02 00 35 04 06 00 02 6C B0 51 66 3D 01 2A 4B 5B E6 4E 0E 0C [07:01:26]CheckFolder [07:01:26]dirname=/storage/ofd_packets [07:01:26]CheckFolder done [07:01:26]ProducePacketName [07:01:26]name=ofd_packets/00165901 [07:01:26]NVStorageSaveData ofd_packets/00165901 [07:01:26]File name is /storage/ofd_packets/00165901 [07:01:26]Write 301 bytes [07:01:26]NVStorageSaveData done [07:01:26]OFDSenderStorePacket done [07:01:26]KKMCreateOFDPacket done [07:01:26]NVStorageSaveData kkm_last_timestamp [07:01:26]File name is /storage/kkm_last_timestamp [07:01:26]Write 4 bytes [07:01:26]NVStorageSaveData done [07:01:26]ExternCall_PrintAddStr [07:01:26]wPrintStart [07:01:26]Write to MH i2c: 01 00 00 C4 2C F0 [07:01:26]Write i2c OK [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: 01 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: 01 07 00 [07:01:26]MH_I2C_Read... [07:01:26]Read from MH i2c: 01 07 00 C4 2C 00 00 00 00 00 FF 0F 05 [07:01:26]RasterBufferAndPrint [07:01:26]line Счет N : (1)220468 [07:01:26]line ИНН: 02508201610067 [07:01:26]line Контрольно-Кассовый Чек [07:01:26]line ПРОДАЖА [07:01:26]line ТРК (МРК, ГНК) : 14 [07:01:26]line Товар: 2710124500 [07:01:26]line Аи-95-К-5 [07:01:26]line 16.180 * 74.20 [07:01:26]line = 1200.56 [07:01:26]line НДС 12% НСП 1% [07:01:26]line > о реализуемом товаре [07:01:26]line ОКРУГЛЕНИЕ: -0.56 [07:01:26]line ИТОГО: 1200.00 [07:01:26]line Внесено: 1200.00 [07:01:26]line СДАЧА: 0.00 [07:01:26]line НСП 1% : 10.62 [07:01:26]line НДС 12% : 127.49 [07:01:26]line Наличными: 1200.00 [07:01:26]line Безнал.: 0.00 [07:01:26]line Место: АЗС № 161 "Партнер Нефть" [07:01:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:01:26]line СНО: Общий режим [07:01:26]line Чек 12 21.10.2024 07:01 [07:01:26]line Смена: 535 ФФД: 1.0 [07:01:26]line ЗНМ: 0300000104 [07:01:26]line РНМ: 0000000000091764 [07:01:26]line Версия ККМ: 001 [07:01:26]line ФМ: 0000000000871759 [07:01:26]line ФД: 165901 [07:01:26]line ФПД: 2665837848125 [07:01:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070141&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165901&fm=2665837848125&tin=02508201610067®Number=0000000000091764&sum=120000 [07:01:27]OFD Sender: Processing packet 165901 [packets to send 48, broken 47] [07:01:27]ProducePacketName [07:01:27]name=ofd_packets/00165901 [07:01:27]OFD Sender: To server: pG, [07:01:27]CommunicateWithHost lk.salyk.kg:30040 [07:01:27]ConnectInit lk.salyk.kg [07:01:27]written 0, free lines is 4095 [07:01:27]Connected sock=7 [07:01:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 51 07 01 9B 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 55 FC 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 88 02 00 35 04 06 00 02 6C B0 51 66 3D 01 2A 4B 5B E6 4E 0E 0C [07:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F9 53 47 00 2A 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 88 02 00 F4 03 04 00 C5 A2 15 67 B6 04 01 00 00 CC 0C 08 DB 85 C5 20 A2 [07:01:27]CommunicateWithHost err = 0 [07:01:27]CheckOFDResponse [07:01:27]1017 (14) - 77093643461234 [07:01:27]1041 (16) - 0000000000871759 [07:01:27]1040 (4) - 165901 [07:01:27]1012 (4) - 21.10.2024 00:39 [07:01:27]1206 (1) - 0 [07:01:27]OFD Sender: Remove packet 165901 [07:01:27]ProducePacketName [07:01:27]name=ofd_packets/00165901 [07:01:27]NVStorageDeleteData [07:01:27]Write to MH i2c: 01 00 00 EF 2C 1B [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 07 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: 01 07 00 EF 2C 00 00 00 00 00 B7 0C E5 [07:01:27]RasterBufferAndPrint [07:01:27]line [07:01:27]line [07:01:27]line [07:01:27]line [07:01:27]line [07:01:27]written 0, free lines is 3263 [07:01:27]MH_Cut [07:01:27]Write to MH i2c: D1 01 00 F6 2C 01 F4 [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: D1 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: D1 01 00 [07:01:27]MH_I2C_Read... [07:01:27]Read from MH i2c: D1 01 00 F6 2C 00 F3 [07:01:27]Write to MH i2c: 01 00 00 F7 2C 23 [07:01:27]Write i2c OK [07:01:27]MH_I2C_Read... [07:01:27]OFD Sender: No OFD packet to send [07:01:28]*** Cut start [07:01:28]*** Partial cut [07:01:28]*** CUTSNS_PIN = 1 [07:01:28]*** CUTSNS_PIN = 0 [07:01:28]*** Brake cut motor [07:01:29]Read from MH i2c: 01 [07:01:29]MH_I2C_Read... [07:01:29]*** Stop cut motor [07:01:29]*** Cut end [07:01:29]Read from MH i2c: 01 07 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: 01 07 00 F7 2C 00 00 00 00 00 FF 0F 38 [07:01:29]process_action close_receipt done [07:01:29]requested_data is exist [07:01:29]produce_requested_data [07:01:29]requested_item fm.sn is exist - process it [07:01:29]wFMCommunicate request_size=4 [07:01:29]MH_SAM_APDU [07:01:29]CAPDU: 80 11 00 00 [07:01:29]Write to MH i2c: E2 08 00 F8 2C 80 11 00 00 00 00 00 00 9E [07:01:29]Write i2c OK [07:01:29]MH_I2C_Read... [07:01:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:29]Read from MH i2c: E2 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 17 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 17 00 F8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F6 [07:01:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:01:29]wFMCommunicate OK [07:01:29]requested_item fd.num is exist - process it [07:01:29]SAM_PROTO_GetFieldsCounters [07:01:29]wFMCommunicate request_size=4 [07:01:29]MH_SAM_APDU [07:01:29]CAPDU: 80 13 00 00 [07:01:29]Write to MH i2c: E2 08 00 F9 2C 80 13 00 00 00 00 00 00 A1 [07:01:29]Write i2c OK [07:01:29]MH_I2C_Read... [07:01:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:29]Read from MH i2c: E2 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 62 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 62 00 F9 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [07:01:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:29]wFMCommunicate OK [07:01:29]SAM_PROTO_GetFieldsCounters done [07:01:29]requested_item shift.num is exist - process it [07:01:29]requested_item shift.opened is exist - process it [07:01:29]req_shift_opened [07:01:29]FM_GetShiftState [07:01:29]SAM_PROTO_GetShiftState [07:01:29]wFMCommunicate request_size=4 [07:01:29]MH_SAM_APDU [07:01:29]CAPDU: 80 13 01 00 [07:01:29]Write to MH i2c: E2 08 00 FA 2C 80 13 01 00 00 00 00 00 A3 [07:01:29]Write i2c OK [07:01:29]MH_I2C_Read... [07:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:29]Read from MH i2c: E2 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 0E 00 [07:01:29]MH_I2C_Read... [07:01:29]Read from MH i2c: E2 0E 00 FA 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AC [07:01:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:01:29]wFMCommunicate OK [07:01:29]SAM_PROTO_GetShiftState done [07:01:29]FM_GetShiftState done [07:01:29]req_shift_opened done [07:01:29]requested_item shift.open_date is exist - process it [07:01:29]req_shift_open_date [07:01:29]req_shift_open_date done [07:01:29]produce_requested_data done [07:01:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165901,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:01:29]process_action_free close_receipt [07:01:29]json_value_free [07:01:29]json_value_free done [07:01:29]process_json_proto returns [07:01:29]Send response to host [07:01:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165901,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:01:29]free response buf [07:01:29]execute_script done [07:01:29]execute_script returns [07:01:29]free content buf [07:01:29]Sock 5.Close socket [07:01:29]Sock 5.Thread stoped [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:42]accept exits with 6 [07:09:42]New connection [07:09:42]New thread 3066920292 created [07:09:42]Thread 3066776932 joined [07:09:42]Waiting for new connection... [07:09:42] Sock 6.Parse request [07:09:42]Sock 6.Check first char [07:09:42]Sock 6.First char is OK [07:09:42]request: POST /json_proto HTTP/1.0 [07:09:42]Method: POST [07:09:42]URL: /json_proto [07:09:42]Method is POST - this is cgi request [07:09:42]url: /json_proto [07:09:42]query_string will be loaded in cgi processing [07:09:42]execute_cgi json_proto POST (null) [07:09:42]execute_cgi path=json_proto method=POST [07:09:42]POST find Content-Length [07:09:42]Host: 172.17.53.195:8080 [07:09:42]Content-Length: 682 [07:09:42]Content-Type: application/json [07:09:42] [07:09:42]POST finish read [07:09:42]Found Content-Length = 682 [07:09:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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:09:42]execute_script... [07:09:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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:09:42]POST & json_proto [07:09:42]process_json_proto [07:09:42]json parsed OK: [07:09:42]protocol is kg_v1.0 [07:09:42]action value=close_receipt [07:09:42]process_action close_receipt [07:09:42]cmd_close_receipt [07:09:42]MH_GetDate [07:09:42]Write to MH i2c: F0 00 00 FB 2C 16 [07:09:42]Write i2c OK [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: F0 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: F0 09 00 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: F0 09 00 FB 2C 00 47 FE 15 67 21 48 4A 65 F8 [07:09:42]GetLastDocTimeStamp 1729494101 [07:09:42]current date 1729494599 [07:09:42]FM_GetShiftState [07:09:42]SAM_PROTO_GetShiftState [07:09:42]wFMCommunicate request_size=4 [07:09:42]MH_SAM_APDU [07:09:42]CAPDU: 80 13 01 00 [07:09:42]Write to MH i2c: E2 08 00 FC 2C 80 13 01 00 00 00 00 00 A5 [07:09:42]Write i2c OK [07:09:42]MH_I2C_Read... [07:09:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:42]Read from MH i2c: E2 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 0E 00 [07:09:42]MH_I2C_Read... [07:09:42]Read from MH i2c: E2 0E 00 FC 2C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AE [07:09:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:09:42]wFMCommunicate OK [07:09:42]SAM_PROTO_GetShiftState done [07:09:42]FM_GetShiftState done [07:09:42]opened in 1729470944 [07:09:42]opened+sec_in_day 1729557344 [07:09:42]quantity*price = 100021 [07:09:42]sum+1 = 100023 [07:09: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 13 21.10.2024 07:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165902 ФПД: 54936757229535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070959&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165902&fm=54936757229535&tin=02508201610067®Number=0000000000091764&sum=100000 [07:09:43]StoreToDocumentArchive [07:09:43]shift 535 fd 165902 [07:09:43]save to /storage/0535/doc_00165902 [07:09:43]save last doc name /storage/0535/doc_00165902 to /storage/kkm_last_doc_name [07:09:43]save OK [07:09:43]Clear old archive folders... [07:09:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:09:43]tlvbuf is 0190C420 [07:09:43]SAM_PROTO_ClearQueue [07:09:43]wFMCommunicate request_size=4 [07:09:43]MH_SAM_APDU [07:09:43]CAPDU: 80 09 00 00 [07:09:43]Write to MH i2c: E2 08 00 09 2D 80 09 00 00 00 00 00 00 A8 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:43]Read from MH i2c: E2 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 03 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 03 00 09 2D 00 90 00 AA [07:09:43]RAPDU: 90 00 [07:09:43]wFMCommunicate OK [07:09:43]SAM_PROTO_ClearQueue done [07:09:43]KKMCreateOFDPacket [07:09:43]OFDProtocolAddRootSTLVToBuf [07:09:43]FM_MakeSignedData [07:09:43]FM_MakeSignedData [07:09:43]SAM_PROTO_SignData [07:09:43]wFMCommunicate request_size=4 [07:09:43]MH_SAM_APDU [07:09:43]CAPDU: 80 0D 01 02 [07:09:43]Write to MH i2c: E2 08 00 0A 2D 80 0D 01 02 00 00 00 00 B0 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:43]Read from MH i2c: E2 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 03 00 [07:09:43]MH_I2C_Read... [07:09:43]Read from MH i2c: E2 03 00 0A 2D 00 90 00 AB [07:09:43]RAPDU: 90 00 [07:09:43]wFMCommunicate OK [07:09:43]wFMCommunicate request_size=255 [07:09:43]MH_SAM_APDU [07:09:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 F4 03 04 00 47 FE 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 88 02 00 35 04 06 00 31 [07:09:43]Write to MH i2c: E2 02 01 0B 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 00 00 00 F4 03 04 00 47 FE 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 88 02 00 35 04 06 00 31 00 00 13 [07:09:43]Write i2c OK [07:09:43]MH_I2C_Read... [07:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:44]Read from MH i2c: E2 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 03 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 03 00 0B 2D 00 90 00 AC [07:09:44]RAPDU: 90 00 [07:09:44]wFMCommunicate OK [07:09:44]wFMCommunicate request_size=10 [07:09:44]MH_SAM_APDU [07:09:44]CAPDU: 80 0D 02 02 05 F6 F5 E6 57 DF [07:09:44]Write to MH i2c: E2 0D 00 0C 2D 80 0D 02 02 05 00 F6 F5 E6 57 DF 00 00 C4 [07:09:44]Write i2c OK [07:09:44]MH_I2C_Read... [07:09:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:44]Read from MH i2c: E2 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 03 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 03 00 0C 2D 00 90 00 AD [07:09:44]RAPDU: 90 00 [07:09:44]wFMCommunicate OK [07:09:44]wFMCommunicate request_size=4 [07:09:44]MH_SAM_APDU [07:09:44]CAPDU: 80 0D 03 02 [07:09:44]Write to MH i2c: E2 08 00 0D 2D 80 0D 03 02 00 00 00 00 B5 [07:09:44]Write i2c OK [07:09:44]MH_I2C_Read... [07:09:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:44]Read from MH i2c: E2 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 0B 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 0B 00 0D 2D 00 CD 81 47 C2 31 A3 E0 6A 90 00 2B [07:09:44]RAPDU: CD 81 47 C2 31 A3 E0 6A 90 00 [07:09:44]wFMCommunicate OK [07:09:44]SAM_PROTO_SignData done [07:09:44]FM_MakeSignedData done [07:09:44]CreateOFDProtocolMessage [07:09:44]wFMCommunicate request_size=4 [07:09:44]MH_SAM_APDU [07:09:44]CAPDU: 80 11 00 00 [07:09:44]Write to MH i2c: E2 08 00 0E 2D 80 11 00 00 00 00 00 00 B5 [07:09:44]Write i2c OK [07:09:44]MH_I2C_Read... [07:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:44]Read from MH i2c: E2 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 17 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: E2 17 00 0E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [07:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:09:44]wFMCommunicate OK [07:09:44]CreateOFDProtocolMessage done [07:09:44]OFDSenderStorePacket 165902 [07:09:44]StoreOFDPacket docnum=165902 [07:09:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 12 F3 07 01 B2 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 0D 00 00 00 F4 03 04 00 47 FE 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 88 02 00 35 04 06 00 31 F6 F5 E6 57 DF CD 81 47 C2 31 A3 E0 6A [07:09:44]CheckFolder [07:09:44]dirname=/storage/ofd_packets [07:09:44]CheckFolder done [07:09:44]ProducePacketName [07:09:44]name=ofd_packets/00165902 [07:09:44]NVStorageSaveData ofd_packets/00165902 [07:09:44]File name is /storage/ofd_packets/00165902 [07:09:44]Write 301 bytes [07:09:44]NVStorageSaveData done [07:09:44]OFDSenderStorePacket done [07:09:44]KKMCreateOFDPacket done [07:09:44]NVStorageSaveData kkm_last_timestamp [07:09:44]File name is /storage/kkm_last_timestamp [07:09:44]Write 4 bytes [07:09:44]NVStorageSaveData done [07:09:44]ExternCall_PrintAddStr [07:09:44]wPrintStart [07:09:44]Write to MH i2c: 01 00 00 0F 2D 3C [07:09:44]Write i2c OK [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: 01 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: 01 07 00 [07:09:44]MH_I2C_Read... [07:09:44]Read from MH i2c: 01 07 00 0F 2D 00 00 00 00 00 FF 0F 51 [07:09:44]RasterBufferAndPrint [07:09:44]line Счет N : (1)220469 [07:09:44]line ИНН: 02508201610067 [07:09:44]line Контрольно-Кассовый Чек [07:09:44]line ПРОДАЖА [07:09:44]line ТРК (МРК, ГНК) : 24 [07:09:44]line Товар: 2710124500 [07:09:44]line Аи-95-К-5 [07:09:44]line 13.480 * 74.20 [07:09:44]line = 1000.22 [07:09:44]line НДС 12% НСП 1% [07:09:44]line > о реализуемом товаре [07:09:44]line ОКРУГЛЕНИЕ: -0.22 [07:09:44]line ИТОГО: 1000.00 [07:09:44]line Внесено: 1000.00 [07:09:44]line СДАЧА: 0.00 [07:09:44]line НСП 1% : 8.85 [07:09:44]line НДС 12% : 106.22 [07:09:44]line Наличными: 1000.00 [07:09:44]line Безнал.: 0.00 [07:09:44]line Место: АЗС № 161 "Партнер Нефть" [07:09:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:09:44]line СНО: Общий режим [07:09:44]line Чек 13 21.10.2024 07:09 [07:09:44]line Смена: 535 ФФД: 1.0 [07:09:44]line ЗНМ: 0300000104 [07:09:44]line РНМ: 0000000000091764 [07:09:44]line Версия ККМ: 001 [07:09:44]line ФМ: 0000000000871759 [07:09:44]line ФД: 165902 [07:09:44]line ФПД: 54936757229535 [07:09:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T070959&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165902&fm=54936757229535&tin=02508201610067®Number=0000000000091764&sum=100000 [07:09:44]OFD Sender: Processing packet 165902 [packets to send 48, broken 47] [07:09:44]ProducePacketName [07:09:44]name=ofd_packets/00165902 [07:09:44]OFD Sender: To server: pG, [07:09:44]CommunicateWithHost lk.salyk.kg:30040 [07:09:44]ConnectInit lk.salyk.kg [07:09:44]written 0, free lines is 4095 [07:09:44]Connected sock=7 [07:09:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 12 F3 07 01 B2 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 0D 00 00 00 F4 03 04 00 47 FE 15 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 88 02 00 35 04 06 00 31 F6 F5 E6 57 DF CD 81 47 C2 31 A3 E0 6A [07:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D7 4B 47 00 86 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 88 02 00 F4 03 04 00 B6 A4 15 67 B6 04 01 00 00 10 C4 51 2D 7A 4F 17 DA [07:09:44]CommunicateWithHost err = 0 [07:09:44]CheckOFDResponse [07:09:44]1017 (14) - 77093643461234 [07:09:44]1041 (16) - 0000000000871759 [07:09:44]1040 (4) - 165902 [07:09:44]1012 (4) - 21.10.2024 00:47 [07:09:44]1206 (1) - 0 [07:09:44]OFD Sender: Remove packet 165902 [07:09:44]ProducePacketName [07:09:44]name=ofd_packets/00165902 [07:09:44]NVStorageDeleteData [07:09:45]Write to MH i2c: 01 00 00 3A 2D 67 [07:09:45]Write i2c OK [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: 01 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: 01 07 00 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: 01 07 00 3A 2D 00 00 00 00 00 C1 0C 3B [07:09:45]RasterBufferAndPrint [07:09:45]line [07:09:45]line [07:09:45]line [07:09:45]line [07:09:45]line [07:09:45]written 0, free lines is 3272 [07:09:45]MH_Cut [07:09:45]Write to MH i2c: D1 01 00 41 2D 01 40 [07:09:45]Write i2c OK [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: D1 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: D1 01 00 [07:09:45]MH_I2C_Read... [07:09:45]Read from MH i2c: D1 01 00 41 2D 00 3F [07:09:45]Write to MH i2c: 01 00 00 42 2D 6F [07:09:45]Write i2c OK [07:09:45]MH_I2C_Read... [07:09:45]OFD Sender: No OFD packet to send [07:09:45]*** Cut start [07:09:45]*** Partial cut [07:09:45]*** CUTSNS_PIN = 1 [07:09:45]*** CUTSNS_PIN = 0 [07:09:46]*** Brake cut motor [07:09:46]Read from MH i2c: 01 [07:09:46]MH_I2C_Read... [07:09:46]*** Stop cut motor [07:09:46]*** Cut end [07:09:46]Read from MH i2c: 01 07 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: 01 07 00 42 2D 00 00 00 00 00 FF 0F 84 [07:09:46]process_action close_receipt done [07:09:46]requested_data is exist [07:09:46]produce_requested_data [07:09:46]requested_item fm.sn is exist - process it [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 11 00 00 [07:09:46]Write to MH i2c: E2 08 00 43 2D 80 11 00 00 00 00 00 00 EA [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 17 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 17 00 43 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [07:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:09:46]wFMCommunicate OK [07:09:46]requested_item fd.num is exist - process it [07:09:46]SAM_PROTO_GetFieldsCounters [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 13 00 00 [07:09:46]Write to MH i2c: E2 08 00 44 2D 80 13 00 00 00 00 00 00 ED [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 62 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 62 00 44 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [07:09:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:46]wFMCommunicate OK [07:09:46]SAM_PROTO_GetFieldsCounters done [07:09:46]requested_item shift.num is exist - process it [07:09:46]requested_item shift.opened is exist - process it [07:09:46]req_shift_opened [07:09:46]FM_GetShiftState [07:09:46]SAM_PROTO_GetShiftState [07:09:46]wFMCommunicate request_size=4 [07:09:46]MH_SAM_APDU [07:09:46]CAPDU: 80 13 01 00 [07:09:46]Write to MH i2c: E2 08 00 45 2D 80 13 01 00 00 00 00 00 EF [07:09:46]Write i2c OK [07:09:46]MH_I2C_Read... [07:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:46]Read from MH i2c: E2 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 0E 00 [07:09:46]MH_I2C_Read... [07:09:46]Read from MH i2c: E2 0E 00 45 2D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F8 [07:09:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:09:46]wFMCommunicate OK [07:09:46]SAM_PROTO_GetShiftState done [07:09:46]FM_GetShiftState done [07:09:46]req_shift_opened done [07:09:46]requested_item shift.open_date is exist - process it [07:09:46]req_shift_open_date [07:09:46]req_shift_open_date done [07:09:46]produce_requested_data done [07:09:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165902,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:09:46]process_action_free close_receipt [07:09:46]json_value_free [07:09:46]json_value_free done [07:09:46]process_json_proto returns [07:09:46]Send response to host [07:09:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165902,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:09:46]free response buf [07:09:46]execute_script done [07:09:46]execute_script returns [07:09:46]free content buf [07:09:46]Sock 6.Close socket [07:09:46]Sock 6.Thread stoped [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:20]OFD Sender: No OFD packet to send [07:18:25]OFD Sender: No OFD packet to send [07:18:30]OFD Sender: No OFD packet to send [07:18:35]OFD Sender: No OFD packet to send [07:18:40]OFD Sender: No OFD packet to send [07:18:45]OFD Sender: No OFD packet to send [07:18:50]OFD Sender: No OFD packet to send [07:18:55]OFD Sender: No OFD packet to send [07:19:00]OFD Sender: No OFD packet to send [07:19:05]OFD Sender: No OFD packet to send [07:19:10]OFD Sender: No OFD packet to send [07:19:15]OFD Sender: No OFD packet to send [07:19:20]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22: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:23]accept exits with 5 [07:23:23]New connection [07:23:23]New thread 3066776932 created [07:23:23]Thread 3066920292 joined [07:23:23]Waiting for new connection... [07:23:23] Sock 5.Parse request [07:23:23]Sock 5.Check first char [07:23:23]Sock 5.First char is OK [07:23:23]request: POST /json_proto HTTP/1.0 [07:23:23]Method: POST [07:23:23]URL: /json_proto [07:23:23]Method is POST - this is cgi request [07:23:23]url: /json_proto [07:23:23]query_string will be loaded in cgi processing [07:23:23]execute_cgi json_proto POST (null) [07:23:23]execute_cgi path=json_proto method=POST [07:23:23]POST find Content-Length [07:23:23]Host: 172.17.53.195:8080 [07:23:23]Content-Length: 682 [07:23:23]Content-Type: application/json [07:23:23] [07:23:23]POST finish read [07:23:23]Found Content-Length = 682 [07:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 28.310, "sum" : 2100.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:23]execute_script... [07:23: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)220470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 28.310, "sum" : 2100.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:23]POST & json_proto [07:23:23]process_json_proto [07:23:23]json parsed OK: [07:23:23]protocol is kg_v1.0 [07:23:23]action value=close_receipt [07:23:23]process_action close_receipt [07:23:23]cmd_close_receipt [07:23:23]MH_GetDate [07:23:23]Write to MH i2c: F0 00 00 46 2D 62 [07:23:23]Write i2c OK [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: F0 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: F0 09 00 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: F0 09 00 46 2D 00 7C 01 16 67 21 48 4A 65 7D [07:23:23]GetLastDocTimeStamp 1729494599 [07:23:23]current date 1729495420 [07:23:23]FM_GetShiftState [07:23:23]SAM_PROTO_GetShiftState [07:23:23]wFMCommunicate request_size=4 [07:23:23]MH_SAM_APDU [07:23:23]CAPDU: 80 13 01 00 [07:23:23]Write to MH i2c: E2 08 00 47 2D 80 13 01 00 00 00 00 00 F1 [07:23:23]Write i2c OK [07:23:23]MH_I2C_Read... [07:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:23]Read from MH i2c: E2 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: E2 0E 00 [07:23:23]MH_I2C_Read... [07:23:23]Read from MH i2c: E2 0E 00 47 2D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FA [07:23:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:23:23]wFMCommunicate OK [07:23:23]SAM_PROTO_GetShiftState done [07:23:23]FM_GetShiftState done [07:23:23]opened in 1729470944 [07:23:23]opened+sec_in_day 1729557344 [07:23:23]quantity*price = 210060 [07:23:23]sum+1 = 210061 [07:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.07 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 14 21.10.2024 07:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165903 ФПД: 55045924424809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T072340&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165903&fm=55045924424809&tin=02508201610067®Number=0000000000091764&sum=210000 [07:23:24]StoreToDocumentArchive [07:23:24]shift 535 fd 165903 [07:23:24]save to /storage/0535/doc_00165903 [07:23:24]save last doc name /storage/0535/doc_00165903 to /storage/kkm_last_doc_name [07:23:24]save OK [07:23:24]Clear old archive folders... [07:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:23:24]tlvbuf is 0177AD50 [07:23:24]SAM_PROTO_ClearQueue [07:23:24]wFMCommunicate request_size=4 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 09 00 00 [07:23:24]Write to MH i2c: E2 08 00 54 2D 80 09 00 00 00 00 00 00 F3 [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 54 2D 00 90 00 F5 [07:23:24]RAPDU: 90 00 [07:23:24]wFMCommunicate OK [07:23:24]SAM_PROTO_ClearQueue done [07:23:24]KKMCreateOFDPacket [07:23:24]OFDProtocolAddRootSTLVToBuf [07:23:24]FM_MakeSignedData [07:23:24]FM_MakeSignedData [07:23:24]SAM_PROTO_SignData [07:23:24]wFMCommunicate request_size=4 [07:23:24]MH_SAM_APDU [07:23:24]CAPDU: 80 0D 01 02 [07:23:24]Write to MH i2c: E2 08 00 55 2D 80 0D 01 02 00 00 00 00 FB [07:23:24]Write i2c OK [07:23:24]MH_I2C_Read... [07:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:24]Read from MH i2c: E2 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 [07:23:24]MH_I2C_Read... [07:23:24]Read from MH i2c: E2 03 00 55 2D 00 90 00 F6 [07:23:24]RAPDU: 90 00 [07:23:24]wFMCommunicate OK [07:23:24]wFMCommunicate request_size=255 [07:23:24]MH_SAM_APDU [07:23: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 96 6E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 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 7C 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 88 02 00 35 04 06 00 32 [07:23:24]Write to MH i2c: E2 02 01 56 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 96 6E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 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 7C 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 88 02 00 35 04 06 00 32 00 00 AD [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:25]Read from MH i2c: E2 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 03 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 03 00 56 2D 00 90 00 F7 [07:23:25]RAPDU: 90 00 [07:23:25]wFMCommunicate OK [07:23:25]wFMCommunicate request_size=10 [07:23:25]MH_SAM_APDU [07:23:25]CAPDU: 80 0D 02 02 05 10 60 C5 8C 69 [07:23:25]Write to MH i2c: E2 0D 00 57 2D 80 0D 02 02 05 00 10 60 C5 8C 69 00 00 32 [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:25]Read from MH i2c: E2 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 03 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 03 00 57 2D 00 90 00 F8 [07:23:25]RAPDU: 90 00 [07:23:25]wFMCommunicate OK [07:23:25]wFMCommunicate request_size=4 [07:23:25]MH_SAM_APDU [07:23:25]CAPDU: 80 0D 03 02 [07:23:25]Write to MH i2c: E2 08 00 58 2D 80 0D 03 02 00 00 00 00 00 [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:25]Read from MH i2c: E2 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 0B 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 0B 00 58 2D 00 98 01 65 15 2A 42 80 9F 90 00 9F [07:23:25]RAPDU: 98 01 65 15 2A 42 80 9F 90 00 [07:23:25]wFMCommunicate OK [07:23:25]SAM_PROTO_SignData done [07:23:25]FM_MakeSignedData done [07:23:25]CreateOFDProtocolMessage [07:23:25]wFMCommunicate request_size=4 [07:23:25]MH_SAM_APDU [07:23:25]CAPDU: 80 11 00 00 [07:23:25]Write to MH i2c: E2 08 00 59 2D 80 11 00 00 00 00 00 00 00 [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:25]Read from MH i2c: E2 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 17 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: E2 17 00 59 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [07:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:23:25]wFMCommunicate OK [07:23:25]CreateOFDProtocolMessage done [07:23:25]OFDSenderStorePacket 165903 [07:23:25]StoreOFDPacket docnum=165903 [07:23:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 52 07 01 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 6E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 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 7C 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 88 02 00 35 04 06 00 32 10 60 C5 8C 69 98 01 65 15 2A 42 80 9F [07:23:25]CheckFolder [07:23:25]dirname=/storage/ofd_packets [07:23:25]CheckFolder done [07:23:25]ProducePacketName [07:23:25]name=ofd_packets/00165903 [07:23:25]NVStorageSaveData ofd_packets/00165903 [07:23:25]File name is /storage/ofd_packets/00165903 [07:23:25]Write 301 bytes [07:23:25]NVStorageSaveData done [07:23:25]OFDSenderStorePacket done [07:23:25]KKMCreateOFDPacket done [07:23:25]NVStorageSaveData kkm_last_timestamp [07:23:25]File name is /storage/kkm_last_timestamp [07:23:25]Write 4 bytes [07:23:25]NVStorageSaveData done [07:23:25]ExternCall_PrintAddStr [07:23:25]wPrintStart [07:23:25]Write to MH i2c: 01 00 00 5A 2D 87 [07:23:25]Write i2c OK [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: 01 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: 01 07 00 [07:23:25]MH_I2C_Read... [07:23:25]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 FF 0F 9C [07:23:25]RasterBufferAndPrint [07:23:25]line Счет N : (1)220470 [07:23:25]line ИНН: 02508201610067 [07:23:25]line Контрольно-Кассовый Чек [07:23:25]line ПРОДАЖА [07:23:25]line ТРК (МРК, ГНК) : 34 [07:23:25]line Товар: 2710124500 [07:23:25]line Аи-95-К-5 [07:23:25]line 28.310 * 74.20 [07:23:25]line = 2100.60 [07:23:25]line НДС 12% НСП 1% [07:23:25]line > о реализуемом товаре [07:23:25]line ОКРУГЛЕНИЕ: -0.60 [07:23:25]line ИТОГО: 2100.00 [07:23:25]line Внесено: 2100.00 [07:23:25]line СДАЧА: 0.00 [07:23:25]line НСП 1% : 18.59 [07:23:25]line НДС 12% : 223.07 [07:23:25]line Наличными: 2100.00 [07:23:25]line Безнал.: 0.00 [07:23:25]line Место: АЗС № 161 "Партнер Нефть" [07:23:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:23:25]line СНО: Общий режим [07:23:25]line Чек 14 21.10.2024 07:23 [07:23:25]line Смена: 535 ФФД: 1.0 [07:23:25]line ЗНМ: 0300000104 [07:23:25]line РНМ: 0000000000091764 [07:23:25]line Версия ККМ: 001 [07:23:25]line ФМ: 0000000000871759 [07:23:25]line ФД: 165903 [07:23:25]line ФПД: 55045924424809 [07:23:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T072340&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165903&fm=55045924424809&tin=02508201610067®Number=0000000000091764&sum=210000 [07:23:25]OFD Sender: Processing packet 165903 [packets to send 48, broken 47] [07:23:25]ProducePacketName [07:23:25]name=ofd_packets/00165903 [07:23:25]OFD Sender: To server: pG, [07:23:25]CommunicateWithHost lk.salyk.kg:30040 [07:23:25]ConnectInit lk.salyk.kg [07:23:25]written 0, free lines is 4095 [07:23:25]Connected sock=7 [07:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 52 07 01 C6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 96 6E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 8C 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 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 7C 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 88 02 00 35 04 06 00 32 10 60 C5 8C 69 98 01 65 15 2A 42 80 9F [07: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 35 39 4F 00 00 00 5C DE 47 00 68 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 88 02 00 F4 03 04 00 EB A7 15 67 B6 04 01 00 00 96 57 35 4D A6 D0 C2 F4 [07:23:26]CommunicateWithHost err = 0 [07:23:26]CheckOFDResponse [07:23:26]1017 (14) - 77093643461234 [07:23:26]1041 (16) - 0000000000871759 [07:23:26]1040 (4) - 165903 [07:23:26]1012 (4) - 21.10.2024 01:01 [07:23:26]1206 (1) - 0 [07:23:26]OFD Sender: Remove packet 165903 [07:23:26]ProducePacketName [07:23:26]name=ofd_packets/00165903 [07:23:26]NVStorageDeleteData [07:23:26]Write to MH i2c: 01 00 00 85 2D B2 [07:23:26]Write i2c OK [07:23:26]MH_I2C_Read... [07:23:26]Read from MH i2c: 01 [07:23:26]MH_I2C_Read... [07:23:26]Read from MH i2c: 01 07 00 [07:23:26]MH_I2C_Read... [07:23:26]Read from MH i2c: 01 07 00 85 2D 00 00 00 00 00 BC 0C 81 [07:23:26]RasterBufferAndPrint [07:23:26]line [07:23:26]line [07:23:26]line [07:23:26]line [07:23:26]line [07:23:26]written 0, free lines is 3266 [07:23:26]MH_Cut [07:23:26]Write to MH i2c: D1 01 00 8C 2D 01 8B [07:23:26]Write i2c OK [07:23:26]MH_I2C_Read... [07:23:26]Read from MH i2c: D1 [07:23:26]MH_I2C_Read... [07:23:26]Read from MH i2c: D1 01 00 [07:23:26]MH_I2C_Read... [07:23:26]Read from MH i2c: D1 01 00 8C 2D 00 8A [07:23:26]Write to MH i2c: 01 00 00 8D 2D BA [07:23:26]Write i2c OK [07:23:26]MH_I2C_Read... [07:23:26]OFD Sender: No OFD packet to send [07:23:27]*** Cut start [07:23:27]*** Partial cut [07:23:27]*** CUTSNS_PIN = 1 [07:23:27]*** CUTSNS_PIN = 0 [07:23:27]*** Brake cut motor [07:23:27]Read from MH i2c: 01 [07:23:27]MH_I2C_Read... [07:23:27]*** Stop cut motor [07:23:27]*** Cut end [07:23:27]Read from MH i2c: 01 07 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: 01 07 00 8D 2D 00 00 00 00 00 FF 0F CF [07:23:27]process_action close_receipt done [07:23:27]requested_data is exist [07:23:27]produce_requested_data [07:23:27]requested_item fm.sn is exist - process it [07:23:27]wFMCommunicate request_size=4 [07:23:27]MH_SAM_APDU [07:23:27]CAPDU: 80 11 00 00 [07:23:27]Write to MH i2c: E2 08 00 8E 2D 80 11 00 00 00 00 00 00 35 [07:23:27]Write i2c OK [07:23:27]MH_I2C_Read... [07:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:27]Read from MH i2c: E2 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 17 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 17 00 8E 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [07:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:23:27]wFMCommunicate OK [07:23:27]requested_item fd.num is exist - process it [07:23:27]SAM_PROTO_GetFieldsCounters [07:23:27]wFMCommunicate request_size=4 [07:23:27]MH_SAM_APDU [07:23:27]CAPDU: 80 13 00 00 [07:23:27]Write to MH i2c: E2 08 00 8F 2D 80 13 00 00 00 00 00 00 38 [07:23:27]Write i2c OK [07:23:27]MH_I2C_Read... [07:23:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:27]Read from MH i2c: E2 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 62 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 62 00 8F 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [07:23:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:23:27]wFMCommunicate OK [07:23:27]SAM_PROTO_GetFieldsCounters done [07:23:27]requested_item shift.num is exist - process it [07:23:27]requested_item shift.opened is exist - process it [07:23:27]req_shift_opened [07:23:27]FM_GetShiftState [07:23:27]SAM_PROTO_GetShiftState [07:23:27]wFMCommunicate request_size=4 [07:23:27]MH_SAM_APDU [07:23:27]CAPDU: 80 13 01 00 [07:23:27]Write to MH i2c: E2 08 00 90 2D 80 13 01 00 00 00 00 00 3A [07:23:27]Write i2c OK [07:23:27]MH_I2C_Read... [07:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:27]Read from MH i2c: E2 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 0E 00 [07:23:27]MH_I2C_Read... [07:23:27]Read from MH i2c: E2 0E 00 90 2D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 43 [07:23:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:23:27]wFMCommunicate OK [07:23:27]SAM_PROTO_GetShiftState done [07:23:27]FM_GetShiftState done [07:23:27]req_shift_opened done [07:23:27]requested_item shift.open_date is exist - process it [07:23:27]req_shift_open_date [07:23:27]req_shift_open_date done [07:23:27]produce_requested_data done [07:23:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165903,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:23:27]process_action_free close_receipt [07:23:27]json_value_free [07:23:27]json_value_free done [07:23:27]process_json_proto returns [07:23:27]Send response to host [07:23:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165903,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:23:27]free response buf [07:23:27]execute_script done [07:23:27]execute_script returns [07:23:27]free content buf [07:23:27]Sock 5.Close socket [07:23:27]Sock 5.Thread stoped [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:47]accept exits with 6 [07:23:47]New connection [07:23:47]New thread 3066920292 created [07:23:47]Thread 3066776932 joined [07:23:47]Waiting for new connection... [07:23:47] Sock 6.Parse request [07:23:47]Sock 6.Check first char [07:23:47]Sock 6.First char is OK [07:23:47]request: POST /json_proto HTTP/1.0 [07:23:47]Method: POST [07:23:47]URL: /json_proto [07:23:47]Method is POST - this is cgi request [07:23:47]url: /json_proto [07:23:47]query_string will be loaded in cgi processing [07:23:47]execute_cgi json_proto POST (null) [07:23:47]execute_cgi path=json_proto method=POST [07:23:47]POST find Content-Length [07:23:47]Host: 172.17.53.195:8080 [07:23:47]Content-Length: 682 [07:23:47]Content-Type: application/json [07:23:47] [07:23:47]POST finish read [07:23:47]Found Content-Length = 682 [07:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.440, "sum" : 1099.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1099.00, "payments": [ { "type": 0, "sum" : 1099.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:47]execute_script... [07:23: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)220471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 16.440, "sum" : 1099.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1099.00, "payments": [ { "type": 0, "sum" : 1099.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:47]POST & json_proto [07:23:47]process_json_proto [07:23:47]json parsed OK: [07:23:47]protocol is kg_v1.0 [07:23:47]action value=close_receipt [07:23:47]process_action close_receipt [07:23:47]cmd_close_receipt [07:23:47]MH_GetDate [07:23:47]Write to MH i2c: F0 00 00 91 2D AD [07:23:47]Write i2c OK [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: F0 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: F0 09 00 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: F0 09 00 91 2D 00 93 01 16 67 21 48 4A 65 DF [07:23:47]GetLastDocTimeStamp 1729495420 [07:23:47]current date 1729495443 [07:23:47]FM_GetShiftState [07:23:47]SAM_PROTO_GetShiftState [07:23:47]wFMCommunicate request_size=4 [07:23:47]MH_SAM_APDU [07:23:47]CAPDU: 80 13 01 00 [07:23:47]Write to MH i2c: E2 08 00 92 2D 80 13 01 00 00 00 00 00 3C [07:23:47]Write i2c OK [07:23:47]MH_I2C_Read... [07:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:47]Read from MH i2c: E2 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: E2 0E 00 [07:23:47]MH_I2C_Read... [07:23:47]Read from MH i2c: E2 0E 00 92 2D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 45 [07:23:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:23:47]wFMCommunicate OK [07:23:47]SAM_PROTO_GetShiftState done [07:23:47]FM_GetShiftState done [07:23:47]opened in 1729470944 [07:23:47]opened+sec_in_day 1729557344 [07:23:47]quantity*price = 109983 [07:23:47]sum+1 = 109985 [07:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 1099.00 Внесено: 1100.00 СДАЧА: 1.00 НСП 1% : 9.73 НДС 12% : 116.80 Наличными: 1099.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 15 21.10.2024 07:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165904 ФПД: 268421537175463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T072403&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165904&fm=268421537175463&tin=02508201610067®Number=0000000000091764&sum=109900 [07:23:48]StoreToDocumentArchive [07:23:48]shift 535 fd 165904 [07:23:48]save to /storage/0535/doc_00165904 [07:23:48]save last doc name /storage/0535/doc_00165904 to /storage/kkm_last_doc_name [07:23:48]save OK [07:23:48]Clear old archive folders... [07:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:23:48]tlvbuf is 0186B2E0 [07:23:48]SAM_PROTO_ClearQueue [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 09 00 00 [07:23:48]Write to MH i2c: E2 08 00 9F 2D 80 09 00 00 00 00 00 00 3E [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 9F 2D 00 90 00 40 [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]SAM_PROTO_ClearQueue done [07:23:48]KKMCreateOFDPacket [07:23:48]OFDProtocolAddRootSTLVToBuf [07:23:48]FM_MakeSignedData [07:23:48]FM_MakeSignedData [07:23:48]SAM_PROTO_SignData [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 01 02 [07:23:48]Write to MH i2c: E2 08 00 A0 2D 80 0D 01 02 00 00 00 00 46 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 A0 2D 00 90 00 41 [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]wFMCommunicate request_size=255 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 2D 00 00 00 00 07 04 06 00 4C 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 0F 00 00 00 F4 03 04 00 93 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 88 02 00 35 04 06 00 F4 [07:23:48]Write to MH i2c: E2 02 01 A1 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 38 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 2D 00 00 00 00 07 04 06 00 4C 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 0F 00 00 00 F4 03 04 00 93 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 88 02 00 35 04 06 00 F4 00 00 B1 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 A1 2D 00 90 00 42 [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]wFMCommunicate request_size=10 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 02 02 05 20 C2 5F 97 A7 [07:23:48]Write to MH i2c: E2 0D 00 A2 2D 80 0D 02 02 05 00 20 C2 5F 97 A7 00 00 D2 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 03 00 A2 2D 00 90 00 43 [07:23:48]RAPDU: 90 00 [07:23:48]wFMCommunicate OK [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 0D 03 02 [07:23:48]Write to MH i2c: E2 08 00 A3 2D 80 0D 03 02 00 00 00 00 4B [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 0B 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 0B 00 A3 2D 00 3F 3B 49 96 FF EB 82 5D 90 00 6E [07:23:48]RAPDU: 3F 3B 49 96 FF EB 82 5D 90 00 [07:23:48]wFMCommunicate OK [07:23:48]SAM_PROTO_SignData done [07:23:48]FM_MakeSignedData done [07:23:48]CreateOFDProtocolMessage [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 11 00 00 [07:23:48]Write to MH i2c: E2 08 00 A4 2D 80 11 00 00 00 00 00 00 4B [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 17 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 17 00 A4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [07:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:23:48]wFMCommunicate OK [07:23:48]CreateOFDProtocolMessage done [07:23:48]OFDSenderStorePacket 165904 [07:23:48]StoreOFDPacket docnum=165904 [07:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC 7C 07 01 43 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 38 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 2D 00 00 00 00 07 04 06 00 4C 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 0F 00 00 00 F4 03 04 00 93 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 88 02 00 35 04 06 00 F4 20 C2 5F 97 A7 3F 3B 49 96 FF EB 82 5D [07:23:48]CheckFolder [07:23:48]dirname=/storage/ofd_packets [07:23:48]CheckFolder done [07:23:48]ProducePacketName [07:23:48]name=ofd_packets/00165904 [07:23:48]NVStorageSaveData ofd_packets/00165904 [07:23:48]File name is /storage/ofd_packets/00165904 [07:23:48]Write 301 bytes [07:23:48]NVStorageSaveData done [07:23:48]OFDSenderStorePacket done [07:23:48]KKMCreateOFDPacket done [07:23:48]NVStorageSaveData kkm_last_timestamp [07:23:48]File name is /storage/kkm_last_timestamp [07:23:48]Write 4 bytes [07:23:48]NVStorageSaveData done [07:23:48]ExternCall_PrintAddStr [07:23:48]wPrintStart [07:23:48]Write to MH i2c: 01 00 00 A5 2D D2 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: 01 [07:23:48]MH_I2C_Read... [07:23:48]OFD Sender: Processing packet 165904 [packets to send 48, broken 47] [07:23:48]ProducePacketName [07:23:48]name=ofd_packets/00165904 [07:23:48]OFD Sender: To server: pG, [07:23:48]CommunicateWithHost lk.salyk.kg:30040 [07:23:48]ConnectInit lk.salyk.kg [07:23:48]Read from MH i2c: 01 07 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 FF 0F E7 [07:23:48]RasterBufferAndPrint [07:23:48]line Счет N : (1)220471 [07:23:48]line ИНН: 02508201610067 [07:23:48]line Контрольно-Кассовый Чек [07:23:48]line ПРОДАЖА [07:23:48]line ТРК (МРК, ГНК) : 43 [07:23:48]line Товар: 2710124130 [07:23:48]line Аи-92-К-5 [07:23:48]line 16.440 * 66.90 [07:23:48]line = 1099.84 [07:23:48]line НДС 12% НСП 1% [07:23:48]line > о реализуемом товаре [07:23:48]line ОКРУГЛЕНИЕ: -0.84 [07:23:48]line ИТОГО: 1099.00 [07:23:48]line Внесено: 1100.00 [07:23:48]line СДАЧА: 1.00 [07:23:48]line НСП 1% : 9.73 [07:23:48]line НДС 12% : 116.80 [07:23:48]line Наличными: 1099.00 [07:23:48]line Безнал.: 0.00 [07:23:48]line Место: АЗС № 161 "Партнер Нефть" [07:23:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:23:48]line СНО: Общий режим [07:23:48]line Чек 15 21.10.2024 07:24 [07:23:48]line Смена: 535 ФФД: 1.0 [07:23:48]line ЗНМ: 0300000104 [07:23:48]line РНМ: 0000000000091764 [07:23:48]line Версия ККМ: 001 [07:23:48]line ФМ: 0000000000871759 [07:23:48]line ФД: 165904 [07:23:48]line ФПД: 268421537175463 [07:23:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T072403&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165904&fm=268421537175463&tin=02508201610067®Number=0000000000091764&sum=109900 [07:23:48]written 0, free lines is 4095 [07:23:48]Connected sock=5 [07:23:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC 7C 07 01 43 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 38 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A0 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 2D 00 00 00 00 07 04 06 00 4C 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 0F 00 00 00 F4 03 04 00 93 01 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 88 02 00 35 04 06 00 F4 20 C2 5F 97 A7 3F 3B 49 96 FF EB 82 5D [07:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 34 B6 47 00 22 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 88 02 00 F4 03 04 00 02 A8 15 67 B6 04 01 00 00 CF 96 40 BF FC 6F DB D5 [07:23:49]CommunicateWithHost err = 0 [07:23:49]CheckOFDResponse [07:23:49]1017 (14) - 77093643461234 [07:23:49]1041 (16) - 0000000000871759 [07:23:49]1040 (4) - 165904 [07:23:49]1012 (4) - 21.10.2024 01:01 [07:23:49]1206 (1) - 0 [07:23:49]OFD Sender: Remove packet 165904 [07:23:49]ProducePacketName [07:23:49]name=ofd_packets/00165904 [07:23:49]NVStorageDeleteData [07:23:49]Write to MH i2c: 01 00 00 D0 2D FD [07:23:49]Write i2c OK [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: 01 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: 01 07 00 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: 01 07 00 D0 2D 00 00 00 00 00 CA 0C DA [07:23:49]RasterBufferAndPrint [07:23:49]line [07:23:49]line [07:23:49]line [07:23:49]line [07:23:49]line [07:23:49]written 0, free lines is 3281 [07:23:49]MH_Cut [07:23:49]Write to MH i2c: D1 01 00 D7 2D 01 D6 [07:23:49]Write i2c OK [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: D1 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: D1 01 00 [07:23:49]MH_I2C_Read... [07:23:49]Read from MH i2c: D1 01 00 D7 2D 00 D5 [07:23:49]Write to MH i2c: 01 00 00 D8 2D 05 [07:23:49]Write i2c OK [07:23:49]MH_I2C_Read... [07:23:49]OFD Sender: No OFD packet to send [07:23:50]*** Cut start [07:23:50]*** Partial cut [07:23:50]*** CUTSNS_PIN = 1 [07:23:50]*** CUTSNS_PIN = 0 [07:23:50]*** Brake cut motor [07:23:50]Read from MH i2c: 01 [07:23:50]MH_I2C_Read... [07:23:50]*** Stop cut motor [07:23:50]*** Cut end [07:23:50]Read from MH i2c: 01 07 00 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: 01 07 00 D8 2D 00 00 00 00 00 FF 0F 1A [07:23:50]process_action close_receipt done [07:23:50]requested_data is exist [07:23:50]produce_requested_data [07:23:50]requested_item fm.sn is exist - process it [07:23:50]wFMCommunicate request_size=4 [07:23:50]MH_SAM_APDU [07:23:50]CAPDU: 80 11 00 00 [07:23:50]Write to MH i2c: E2 08 00 D9 2D 80 11 00 00 00 00 00 00 80 [07:23:50]Write i2c OK [07:23:50]MH_I2C_Read... [07:23:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:50]Read from MH i2c: E2 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: E2 17 00 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: E2 17 00 D9 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [07:23:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:23:50]wFMCommunicate OK [07:23:50]requested_item fd.num is exist - process it [07:23:50]SAM_PROTO_GetFieldsCounters [07:23:50]wFMCommunicate request_size=4 [07:23:50]MH_SAM_APDU [07:23:50]CAPDU: 80 13 00 00 [07:23:50]Write to MH i2c: E2 08 00 DA 2D 80 13 00 00 00 00 00 00 83 [07:23:50]Write i2c OK [07:23:50]MH_I2C_Read... [07:23:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:50]Read from MH i2c: E2 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: E2 62 00 [07:23:50]MH_I2C_Read... [07:23:50]Read from MH i2c: E2 62 00 DA 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [07:23:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:23:50]wFMCommunicate OK [07:23:50]SAM_PROTO_GetFieldsCounters done [07:23:50]requested_item shift.num is exist - process it [07:23:50]requested_item shift.opened is exist - process it [07:23:50]req_shift_opened [07:23:50]FM_GetShiftState [07:23:50]SAM_PROTO_GetShiftState [07:23:50]wFMCommunicate request_size=4 [07:23:50]MH_SAM_APDU [07:23:50]CAPDU: 80 13 01 00 [07:23:50]Write to MH i2c: E2 08 00 DB 2D 80 13 01 00 00 00 00 00 85 [07:23:50]Write i2c OK [07:23:50]MH_I2C_Read... [07:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:51]Read from MH i2c: E2 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 0E 00 [07:23:51]MH_I2C_Read... [07:23:51]Read from MH i2c: E2 0E 00 DB 2D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8E [07:23:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:23:51]wFMCommunicate OK [07:23:51]SAM_PROTO_GetShiftState done [07:23:51]FM_GetShiftState done [07:23:51]req_shift_opened done [07:23:51]requested_item shift.open_date is exist - process it [07:23:51]req_shift_open_date [07:23:51]req_shift_open_date done [07:23:51]produce_requested_data done [07:23:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165904,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:23:51]process_action_free close_receipt [07:23:51]json_value_free [07:23:51]json_value_free done [07:23:51]process_json_proto returns [07:23:51]Send response to host [07:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165904,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:23:51]free response buf [07:23:51]execute_script done [07:23:51]execute_script returns [07:23:51]free content buf [07:23:51]Sock 6.Close socket [07:23:51]Sock 6.Thread stoped [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:05]OFD Sender: No OFD packet to send [07:31:10]OFD Sender: No OFD packet to send [07:31:15]OFD Sender: No OFD packet to send [07:31:20]OFD Sender: No OFD packet to send [07:31:25]OFD Sender: No OFD packet to send [07:31:30]OFD Sender: No OFD packet to send [07:31:35]OFD Sender: No OFD packet to send [07:31:40]OFD Sender: No OFD packet to send [07:31:45]OFD Sender: No OFD packet to send [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:55]OFD Sender: No OFD packet to send [07:33:00]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:39:56]accept exits with 7 [07:39:56]New connection [07:39:56]New thread 3066776932 created [07:39:56]Thread 3066920292 joined [07:39:56]Waiting for new connection... [07:39:56] Sock 7.Parse request [07:39:56]Sock 7.Check first char [07:39:56]Sock 7.First char is OK [07:39:56]request: POST /json_proto HTTP/1.0 [07:39:56]Method: POST [07:39:56]URL: /json_proto [07:39:56]Method is POST - this is cgi request [07:39:56]url: /json_proto [07:39:56]query_string will be loaded in cgi processing [07:39:56]execute_cgi json_proto POST (null) [07:39:56]execute_cgi path=json_proto method=POST [07:39:56]POST find Content-Length [07:39:56]Host: 172.17.53.195:8080 [07:39:56]Content-Length: 678 [07:39:56]Content-Type: application/json [07:39:56] [07:39:56]POST finish read [07:39:56]Found Content-Length = 678 [07:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:56]execute_script... [07:39: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)220472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:39:56]POST & json_proto [07:39:56]process_json_proto [07:39:56]json parsed OK: [07:39:56]protocol is kg_v1.0 [07:39:56]action value=close_receipt [07:39:56]process_action close_receipt [07:39:56]cmd_close_receipt [07:39:56]MH_GetDate [07:39:56]Write to MH i2c: F0 00 00 DC 2D F8 [07:39:56]Write i2c OK [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: F0 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: F0 09 00 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: F0 09 00 DC 2D 00 5D 05 16 67 21 48 4A 65 F8 [07:39:56]GetLastDocTimeStamp 1729495443 [07:39:56]current date 1729496413 [07:39:56]FM_GetShiftState [07:39:56]SAM_PROTO_GetShiftState [07:39:56]wFMCommunicate request_size=4 [07:39:56]MH_SAM_APDU [07:39:56]CAPDU: 80 13 01 00 [07:39:56]Write to MH i2c: E2 08 00 DD 2D 80 13 01 00 00 00 00 00 87 [07:39:56]Write i2c OK [07:39:56]MH_I2C_Read... [07:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:56]Read from MH i2c: E2 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: E2 0E 00 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: E2 0E 00 DD 2D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 90 [07:39:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:39:56]wFMCommunicate OK [07:39:56]SAM_PROTO_GetShiftState done [07:39:56]FM_GetShiftState done [07:39:56]opened in 1729470944 [07:39:56]opened+sec_in_day 1729557344 [07:39:56]quantity*price = 80012 [07:39:56]sum+1 = 80013 [07:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 16 21.10.2024 07:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165905 ФПД: 87081306380624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074013&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165905&fm=87081306380624&tin=02508201610067®Number=0000000000091764&sum=80000 [07:39:57]StoreToDocumentArchive [07:39:57]shift 535 fd 165905 [07:39:57]save to /storage/0535/doc_00165905 [07:39:57]save last doc name /storage/0535/doc_00165905 to /storage/kkm_last_doc_name [07:39:57]save OK [07:39:57]Clear old archive folders... [07:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:39:57]tlvbuf is 014DA7B0 [07:39:57]SAM_PROTO_ClearQueue [07:39:57]wFMCommunicate request_size=4 [07:39:57]MH_SAM_APDU [07:39:57]CAPDU: 80 09 00 00 [07:39:57]Write to MH i2c: E2 08 00 EA 2D 80 09 00 00 00 00 00 00 89 [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:57]Read from MH i2c: E2 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 EA 2D 00 90 00 8B [07:39:57]RAPDU: 90 00 [07:39:57]wFMCommunicate OK [07:39:57]SAM_PROTO_ClearQueue done [07:39:57]KKMCreateOFDPacket [07:39:57]OFDProtocolAddRootSTLVToBuf [07:39:57]FM_MakeSignedData [07:39:57]FM_MakeSignedData [07:39:57]SAM_PROTO_SignData [07:39:57]wFMCommunicate request_size=4 [07:39:57]MH_SAM_APDU [07:39:57]CAPDU: 80 0D 01 02 [07:39:57]Write to MH i2c: E2 08 00 EB 2D 80 0D 01 02 00 00 00 00 91 [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:57]Read from MH i2c: E2 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 EB 2D 00 90 00 8C [07:39:57]RAPDU: 90 00 [07:39:57]wFMCommunicate OK [07:39:57]wFMCommunicate request_size=255 [07:39:57]MH_SAM_APDU [07:39: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D 05 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 88 02 00 35 04 06 00 4F [07:39:57]Write to MH i2c: E2 02 01 EC 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D 05 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 88 02 00 35 04 06 00 4F 00 00 05 [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:57]Read from MH i2c: E2 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 EC 2D 00 90 00 8D [07:39:57]RAPDU: 90 00 [07:39:57]wFMCommunicate OK [07:39:57]wFMCommunicate request_size=10 [07:39:57]MH_SAM_APDU [07:39:57]CAPDU: 80 0D 02 02 05 33 32 55 59 50 [07:39:57]Write to MH i2c: E2 0D 00 ED 2D 80 0D 02 02 05 00 33 32 55 59 50 00 00 01 [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:57]Read from MH i2c: E2 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 03 00 ED 2D 00 90 00 8E [07:39:57]RAPDU: 90 00 [07:39:57]wFMCommunicate OK [07:39:57]wFMCommunicate request_size=4 [07:39:57]MH_SAM_APDU [07:39:57]CAPDU: 80 0D 03 02 [07:39:57]Write to MH i2c: E2 08 00 EE 2D 80 0D 03 02 00 00 00 00 96 [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:57]Read from MH i2c: E2 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 0B 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 0B 00 EE 2D 00 AF 9A 6B 08 44 AC 78 3F 90 00 FA [07:39:57]RAPDU: AF 9A 6B 08 44 AC 78 3F 90 00 [07:39:57]wFMCommunicate OK [07:39:57]SAM_PROTO_SignData done [07:39:57]FM_MakeSignedData done [07:39:57]CreateOFDProtocolMessage [07:39:57]wFMCommunicate request_size=4 [07:39:57]MH_SAM_APDU [07:39:57]CAPDU: 80 11 00 00 [07:39:57]Write to MH i2c: E2 08 00 EF 2D 80 11 00 00 00 00 00 00 96 [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:57]Read from MH i2c: E2 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 17 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: E2 17 00 EF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [07:39:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:39:57]wFMCommunicate OK [07:39:57]CreateOFDProtocolMessage done [07:39:57]OFDSenderStorePacket 165905 [07:39:57]StoreOFDPacket docnum=165905 [07:39:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 31 54 07 01 FC 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D 05 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 88 02 00 35 04 06 00 4F 33 32 55 59 50 AF 9A 6B 08 44 AC 78 3F [07:39:57]CheckFolder [07:39:57]dirname=/storage/ofd_packets [07:39:57]CheckFolder done [07:39:57]ProducePacketName [07:39:57]name=ofd_packets/00165905 [07:39:57]NVStorageSaveData ofd_packets/00165905 [07:39:57]File name is /storage/ofd_packets/00165905 [07:39:57]Write 301 bytes [07:39:57]NVStorageSaveData done [07:39:57]OFDSenderStorePacket done [07:39:57]KKMCreateOFDPacket done [07:39:57]NVStorageSaveData kkm_last_timestamp [07:39:57]File name is /storage/kkm_last_timestamp [07:39:57]Write 4 bytes [07:39:57]NVStorageSaveData done [07:39:57]ExternCall_PrintAddStr [07:39:57]wPrintStart [07:39:57]Write to MH i2c: 01 00 00 F0 2D 1D [07:39:57]Write i2c OK [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: 01 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: 01 07 00 [07:39:57]MH_I2C_Read... [07:39:57]Read from MH i2c: 01 07 00 F0 2D 00 00 00 00 00 FF 0F 32 [07:39:57]RasterBufferAndPrint [07:39:57]line Счет N : (1)220472 [07:39:57]line ИНН: 02508201610067 [07:39:57]line Контрольно-Кассовый Чек [07:39:57]line ПРОДАЖА [07:39:57]line ТРК (МРК, ГНК) : 23 [07:39:57]line Товар: 2710124130 [07:39:57]line Аи-92-К-5 [07:39:57]line 11.960 * 66.90 [07:39:57]line = 800.12 [07:39:57]line НДС 12% НСП 1% [07:39:57]line > о реализуемом товаре [07:39:57]line ОКРУГЛЕНИЕ: -0.12 [07:39:57]line ИТОГО: 800.00 [07:39:57]line Внесено: 800.00 [07:39:57]line СДАЧА: 0.00 [07:39:57]line НСП 1% : 7.08 [07:39:57]line НДС 12% : 84.97 [07:39:57]line Наличными: 800.00 [07:39:57]line Безнал.: 0.00 [07:39:57]line Место: АЗС № 161 "Партнер Нефть" [07:39:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:39:57]line СНО: Общий режим [07:39:57]line Чек 16 21.10.2024 07:40 [07:39:57]line Смена: 535 ФФД: 1.0 [07:39:57]line ЗНМ: 0300000104 [07:39:57]line РНМ: 0000000000091764 [07:39:57]line Версия ККМ: 001 [07:39:57]line ФМ: 0000000000871759 [07:39:57]line ФД: 165905 [07:39:57]line ФПД: 87081306380624 [07:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074013&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165905&fm=87081306380624&tin=02508201610067®Number=0000000000091764&sum=80000 [07:39:58]OFD Sender: Processing packet 165905 [packets to send 48, broken 47] [07:39:58]ProducePacketName [07:39:58]name=ofd_packets/00165905 [07:39:58]OFD Sender: To server: pG, [07:39:58]CommunicateWithHost lk.salyk.kg:30040 [07:39:58]ConnectInit lk.salyk.kg [07:39:58]written 0, free lines is 4095 [07:39:58]Connected sock=6 [07:39:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 31 54 07 01 FC 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 5D 05 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 88 02 00 35 04 06 00 4F 33 32 55 59 50 AF 9A 6B 08 44 AC 78 3F [07:39:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 77 D7 47 00 19 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 35 39 10 04 04 00 11 88 02 00 F4 03 04 00 CC AB 15 67 B6 04 01 00 00 8B 13 3C C2 12 AF 5B 50 [07:39:58]CommunicateWithHost err = 0 [07:39:58]CheckOFDResponse [07:39:58]1017 (14) - 77093643461234 [07:39:58]1041 (16) - 0000000000871759 [07:39:58]1040 (4) - 165905 [07:39:58]1012 (4) - 21.10.2024 01:18 [07:39:58]1206 (1) - 0 [07:39:58]OFD Sender: Remove packet 165905 [07:39:58]ProducePacketName [07:39:58]name=ofd_packets/00165905 [07:39:58]NVStorageDeleteData [07:39:58]Write to MH i2c: 01 00 00 1B 2E 49 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: 01 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: 01 07 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 C7 0C 23 [07:39:58]RasterBufferAndPrint [07:39:58]line [07:39:58]line [07:39:58]line [07:39:58]line [07:39:58]line [07:39:58]written 0, free lines is 3281 [07:39:58]MH_Cut [07:39:58]Write to MH i2c: D1 01 00 22 2E 01 22 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: D1 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: D1 01 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: D1 01 00 22 2E 00 21 [07:39:58]Write to MH i2c: 01 00 00 23 2E 51 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]OFD Sender: No OFD packet to send [07:39:59]*** Cut start [07:39:59]*** Partial cut [07:39:59]*** CUTSNS_PIN = 1 [07:39:59]*** CUTSNS_PIN = 0 [07:39:59]*** Brake cut motor [07:40:00]Read from MH i2c: 01 [07:40:00]MH_I2C_Read... [07:40:00]*** Stop cut motor [07:40:00]*** Cut end [07:40:00]Read from MH i2c: 01 07 00 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: 01 07 00 23 2E 00 00 00 00 00 FF 0F 66 [07:40:00]process_action close_receipt done [07:40:00]requested_data is exist [07:40:00]produce_requested_data [07:40:00]requested_item fm.sn is exist - process it [07:40:00]wFMCommunicate request_size=4 [07:40:00]MH_SAM_APDU [07:40:00]CAPDU: 80 11 00 00 [07:40:00]Write to MH i2c: E2 08 00 24 2E 80 11 00 00 00 00 00 00 CC [07:40:00]Write i2c OK [07:40:00]MH_I2C_Read... [07:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:00]Read from MH i2c: E2 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: E2 17 00 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: E2 17 00 24 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [07:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:40:00]wFMCommunicate OK [07:40:00]requested_item fd.num is exist - process it [07:40:00]SAM_PROTO_GetFieldsCounters [07:40:00]wFMCommunicate request_size=4 [07:40:00]MH_SAM_APDU [07:40:00]CAPDU: 80 13 00 00 [07:40:00]Write to MH i2c: E2 08 00 25 2E 80 13 00 00 00 00 00 00 CF [07:40:00]Write i2c OK [07:40:00]MH_I2C_Read... [07:40:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:00]Read from MH i2c: E2 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: E2 62 00 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: E2 62 00 25 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [07:40:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:40:00]wFMCommunicate OK [07:40:00]SAM_PROTO_GetFieldsCounters done [07:40:00]requested_item shift.num is exist - process it [07:40:00]requested_item shift.opened is exist - process it [07:40:00]req_shift_opened [07:40:00]FM_GetShiftState [07:40:00]SAM_PROTO_GetShiftState [07:40:00]wFMCommunicate request_size=4 [07:40:00]MH_SAM_APDU [07:40:00]CAPDU: 80 13 01 00 [07:40:00]Write to MH i2c: E2 08 00 26 2E 80 13 01 00 00 00 00 00 D1 [07:40:00]Write i2c OK [07:40:00]MH_I2C_Read... [07:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:00]Read from MH i2c: E2 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: E2 0E 00 [07:40:00]MH_I2C_Read... [07:40:00]Read from MH i2c: E2 0E 00 26 2E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DA [07:40:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:40:00]wFMCommunicate OK [07:40:00]SAM_PROTO_GetShiftState done [07:40:00]FM_GetShiftState done [07:40:00]req_shift_opened done [07:40:00]requested_item shift.open_date is exist - process it [07:40:00]req_shift_open_date [07:40:00]req_shift_open_date done [07:40:00]produce_requested_data done [07:40:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165905,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:40:00]process_action_free close_receipt [07:40:00]json_value_free [07:40:00]json_value_free done [07:40:00]process_json_proto returns [07:40:00]Send response to host [07:40:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165905,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:40:00]free response buf [07:40:00]execute_script done [07:40:00]execute_script returns [07:40:00]free content buf [07:40:00]Sock 7.Close socket [07:40:00]Sock 7.Thread stoped [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:43:59]accept exits with 5 [07:43:59]New connection [07:43:59]New thread 3066920292 created [07:43:59]Thread 3066776932 joined [07:43:59]Waiting for new connection... [07:43:59] Sock 5.Parse request [07:43:59]Sock 5.Check first char [07:43:59]Sock 5.First char is OK [07:43:59]request: POST /json_proto HTTP/1.0 [07:43:59]Method: POST [07:43:59]URL: /json_proto [07:43:59]Method is POST - this is cgi request [07:43:59]url: /json_proto [07:43:59]query_string will be loaded in cgi processing [07:43:59]execute_cgi json_proto POST (null) [07:43:59]execute_cgi path=json_proto method=POST [07:43:59]POST find Content-Length [07:43:59]Host: 172.17.53.195:8080 [07:43:59]Content-Length: 800 [07:43:59]Content-Type: application/json [07:43:59] [07:43:59]POST finish read [07:43:59]Found Content-Length = 800 [07:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:59]execute_script... [07:43: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)220473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220245", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:59]POST & json_proto [07:43:59]process_json_proto [07:43:59]json parsed OK: [07:43:59]protocol is kg_v1.0 [07:43:59]action value=close_receipt [07:43:59]process_action close_receipt [07:43:59]cmd_close_receipt [07:43:59]MH_GetDate [07:43:59]Write to MH i2c: F0 00 00 27 2E 44 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: F0 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: F0 09 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: F0 09 00 27 2E 00 50 06 16 67 21 48 4A 65 38 [07:43:59]GetLastDocTimeStamp 1729496413 [07:43:59]current date 1729496656 [07:43:59]FM_GetShiftState [07:43:59]SAM_PROTO_GetShiftState [07:43:59]wFMCommunicate request_size=4 [07:43:59]MH_SAM_APDU [07:43:59]CAPDU: 80 13 01 00 [07:43:59]Write to MH i2c: E2 08 00 28 2E 80 13 01 00 00 00 00 00 D3 [07:43:59]Write i2c OK [07:43:59]MH_I2C_Read... [07:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:59]Read from MH i2c: E2 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0E 00 [07:43:59]MH_I2C_Read... [07:43:59]Read from MH i2c: E2 0E 00 28 2E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [07:43:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:43:59]wFMCommunicate OK [07:43:59]SAM_PROTO_GetShiftState done [07:43:59]FM_GetShiftState done [07:43:59]opened in 1729470944 [07:43:59]opened+sec_in_day 1729557344 [07:43:59]quantity*price = 0 [07:43:59]sum+1 = 1 [07:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 17 21.10.2024 07:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220245 ФМ: 0000000000871759 ФД: 165906 ФПД: 99859138573377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074416&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165906&fm=99859138573377&tin=02508201610067®Number=0000000000091764&sum=0 [07:44:00]StoreToDocumentArchive [07:44:00]shift 535 fd 165906 [07:44:00]save to /storage/0535/doc_00165906 [07:44:00]save last doc name /storage/0535/doc_00165906 to /storage/kkm_last_doc_name [07:44:00]save OK [07:44:00]Clear old archive folders... [07:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:44:00]tlvbuf is 014ECD90 [07:44:00]SAM_PROTO_ClearQueue [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 09 00 00 [07:44:00]Write to MH i2c: E2 08 00 35 2E 80 09 00 00 00 00 00 00 D5 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 35 2E 00 90 00 D7 [07:44:00]RAPDU: 90 00 [07:44:00]wFMCommunicate OK [07:44:00]SAM_PROTO_ClearQueue done [07:44:00]KKMCreateOFDPacket [07:44:00]OFDProtocolAddRootSTLVToBuf [07:44:00]FM_MakeSignedData [07:44:00]FM_MakeSignedData [07:44:00]SAM_PROTO_SignData [07:44:00]wFMCommunicate request_size=4 [07:44:00]MH_SAM_APDU [07:44:00]CAPDU: 80 0D 01 02 [07:44:00]Write to MH i2c: E2 08 00 36 2E 80 0D 01 02 00 00 00 00 DD [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:44:00]Read from MH i2c: E2 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 [07:44:00]MH_I2C_Read... [07:44:00]Read from MH i2c: E2 03 00 36 2E 00 90 00 D8 [07:44:00]RAPDU: 90 00 [07:44:00]wFMCommunicate OK [07:44:00]wFMCommunicate request_size=255 [07:44:00]MH_SAM_APDU [07:44: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 06 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 88 02 00 35 04 06 00 5A [07:44:00]Write to MH i2c: E2 02 01 37 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 06 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 88 02 00 35 04 06 00 5A 00 00 86 [07:44:00]Write i2c OK [07:44:00]MH_I2C_Read... [07:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:01]Read from MH i2c: E2 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 03 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 03 00 37 2E 00 90 00 D9 [07:44:01]RAPDU: 90 00 [07:44:01]wFMCommunicate OK [07:44:01]wFMCommunicate request_size=10 [07:44:01]MH_SAM_APDU [07:44:01]CAPDU: 80 0D 02 02 05 D2 44 7B 74 41 [07:44:01]Write to MH i2c: E2 0D 00 38 2E 80 0D 02 02 05 00 D2 44 7B 74 41 00 00 30 [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:44:01]Read from MH i2c: E2 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 03 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 03 00 38 2E 00 90 00 DA [07:44:01]RAPDU: 90 00 [07:44:01]wFMCommunicate OK [07:44:01]wFMCommunicate request_size=4 [07:44:01]MH_SAM_APDU [07:44:01]CAPDU: 80 0D 03 02 [07:44:01]Write to MH i2c: E2 08 00 39 2E 80 0D 03 02 00 00 00 00 E2 [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:44:01]Read from MH i2c: E2 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 0B 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 0B 00 39 2E 00 29 80 D3 C3 7E F5 1E F1 90 00 A4 [07:44:01]RAPDU: 29 80 D3 C3 7E F5 1E F1 90 00 [07:44:01]wFMCommunicate OK [07:44:01]SAM_PROTO_SignData done [07:44:01]FM_MakeSignedData done [07:44:01]CreateOFDProtocolMessage [07:44:01]wFMCommunicate request_size=4 [07:44:01]MH_SAM_APDU [07:44:01]CAPDU: 80 11 00 00 [07:44:01]Write to MH i2c: E2 08 00 3A 2E 80 11 00 00 00 00 00 00 E2 [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:01]Read from MH i2c: E2 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 17 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: E2 17 00 3A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [07:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:44:01]wFMCommunicate OK [07:44:01]CreateOFDProtocolMessage done [07:44:01]OFDSenderStorePacket 165906 [07:44:01]StoreOFDPacket docnum=165906 [07:44:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AE 73 07 01 53 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 06 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 88 02 00 35 04 06 00 5A D2 44 7B 74 41 29 80 D3 C3 7E F5 1E F1 [07:44:01]CheckFolder [07:44:01]dirname=/storage/ofd_packets [07:44:01]CheckFolder done [07:44:01]ProducePacketName [07:44:01]name=ofd_packets/00165906 [07:44:01]NVStorageSaveData ofd_packets/00165906 [07:44:01]File name is /storage/ofd_packets/00165906 [07:44:01]Write 301 bytes [07:44:01]NVStorageSaveData done [07:44:01]OFDSenderStorePacket done [07:44:01]KKMCreateOFDPacket done [07:44:01]NVStorageSaveData kkm_last_timestamp [07:44:01]File name is /storage/kkm_last_timestamp [07:44:01]Write 4 bytes [07:44:01]NVStorageSaveData done [07:44:01]ExternCall_PrintAddStr [07:44:01]wPrintStart [07:44:01]Write to MH i2c: 01 00 00 3B 2E 69 [07:44:01]Write i2c OK [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: 01 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: 01 07 00 [07:44:01]MH_I2C_Read... [07:44:01]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 FF 0F 7E [07:44:01]RasterBufferAndPrint [07:44:01]line Счет N : (1)220473 [07:44:01]line ИНН: 02508201610067 [07:44:01]line Контрольно-Кассовый Чек [07:44:01]line ПРОДАЖА [07:44:01]line ТРК (МРК, ГНК) : 13 [07:44:01]line Товар: 2710124130 [07:44:01]line Аи-92-К-5 [07:44:01]line 30.000 * 0.00 [07:44:01]line = 0.00 [07:44:01]line НДС 12% НСП 1% [07:44:01]line > о реализуемом товаре [07:44:01]line ИТОГО: 0.00 [07:44:01]line НСП 1% : 0.00 [07:44:01]line НДС 12% : 0.00 [07:44:01]line Наличными: 0.00 [07:44:01]line Безнал.: 0.00 [07:44:01]line Место: АЗС № 161 "Партнер Нефть" [07:44:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:44:01]line СНО: Общий режим [07:44:01]line Чек 17 21.10.2024 07:44 [07:44:01]line Смена: 535 ФФД: 1.0 [07:44:01]line ЗНМ: 0300000104 [07:44:01]line РНМ: 0000000000091764 [07:44:01]line Версия ККМ: 001 [07:44:01]line Талоны: Топливные Талоны [07:44:01]line 4220245 [07:44:01]line ФМ: 0000000000871759 [07:44:01]line ФД: 165906 [07:44:01]line ФПД: 99859138573377 [07:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T074416&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165906&fm=99859138573377&tin=02508201610067®Number=0000000000091764&sum=0 [07:44:01]written 0, free lines is 4095 [07:44:01]OFD Sender: Processing packet 165906 [packets to send 48, broken 47] [07:44:01]ProducePacketName [07:44:01]name=ofd_packets/00165906 [07:44:01]OFD Sender: To server: pG, [07:44:01]CommunicateWithHost lk.salyk.kg:30040 [07:44:01]ConnectInit lk.salyk.kg [07:44:01]Connected sock=7 [07:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AE 73 07 01 53 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 50 06 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 88 02 00 35 04 06 00 5A D2 44 7B 74 41 29 80 D3 C3 7E F5 1E F1 [07:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 44 77 47 00 EE C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 88 02 00 F4 03 04 00 BF AC 15 67 B6 04 01 00 00 60 4A 82 AD 04 BB EF B8 [07:44:01]CommunicateWithHost err = 0 [07:44:01]CheckOFDResponse [07:44:01]1017 (14) - 77093643461234 [07:44:01]1041 (16) - 0000000000871759 [07:44:01]1040 (4) - 165906 [07:44:01]1012 (4) - 21.10.2024 01:22 [07:44:01]1206 (1) - 0 [07:44:01]OFD Sender: Remove packet 165906 [07:44:01]ProducePacketName [07:44:01]name=ofd_packets/00165906 [07:44:01]NVStorageDeleteData [07:44:02]Write to MH i2c: 01 00 00 65 2E 93 [07:44:02]Write i2c OK [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: 01 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: 01 07 00 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: 01 07 00 65 2E 00 00 00 00 00 C2 0C 68 [07:44:02]RasterBufferAndPrint [07:44:02]line [07:44:02]line [07:44:02]line [07:44:02]line [07:44:02]line [07:44:02]written 0, free lines is 3272 [07:44:02]MH_Cut [07:44:02]Write to MH i2c: D1 01 00 6C 2E 01 6C [07:44:02]Write i2c OK [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: D1 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: D1 01 00 [07:44:02]MH_I2C_Read... [07:44:02]Read from MH i2c: D1 01 00 6C 2E 00 6B [07:44:02]Write to MH i2c: 01 00 00 6D 2E 9B [07:44:02]Write i2c OK [07:44:02]MH_I2C_Read... [07:44:02]OFD Sender: No OFD packet to send [07:44:02]*** Cut start [07:44:02]*** Partial cut [07:44:02]*** CUTSNS_PIN = 1 [07:44:02]*** CUTSNS_PIN = 0 [07:44:03]*** Brake cut motor [07:44:03]Read from MH i2c: 01 [07:44:03]MH_I2C_Read... [07:44:03]*** Stop cut motor [07:44:03]*** Cut end [07:44:03]Read from MH i2c: 01 07 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: 01 07 00 6D 2E 00 00 00 00 00 FF 0F B0 [07:44:03]process_action close_receipt done [07:44:03]requested_data is exist [07:44:03]produce_requested_data [07:44:03]requested_item fm.sn is exist - process it [07:44:03]wFMCommunicate request_size=4 [07:44:03]MH_SAM_APDU [07:44:03]CAPDU: 80 11 00 00 [07:44:03]Write to MH i2c: E2 08 00 6E 2E 80 11 00 00 00 00 00 00 16 [07:44:03]Write i2c OK [07:44:03]MH_I2C_Read... [07:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:44:03]Read from MH i2c: E2 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 17 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 17 00 6E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [07:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:44:03]wFMCommunicate OK [07:44:03]requested_item fd.num is exist - process it [07:44:03]SAM_PROTO_GetFieldsCounters [07:44:03]wFMCommunicate request_size=4 [07:44:03]MH_SAM_APDU [07:44:03]CAPDU: 80 13 00 00 [07:44:03]Write to MH i2c: E2 08 00 6F 2E 80 13 00 00 00 00 00 00 19 [07:44:03]Write i2c OK [07:44:03]MH_I2C_Read... [07:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:44:03]Read from MH i2c: E2 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 62 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 62 00 6F 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [07:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:44:03]wFMCommunicate OK [07:44:03]SAM_PROTO_GetFieldsCounters done [07:44:03]requested_item shift.num is exist - process it [07:44:03]requested_item shift.opened is exist - process it [07:44:03]req_shift_opened [07:44:03]FM_GetShiftState [07:44:03]SAM_PROTO_GetShiftState [07:44:03]wFMCommunicate request_size=4 [07:44:03]MH_SAM_APDU [07:44:03]CAPDU: 80 13 01 00 [07:44:03]Write to MH i2c: E2 08 00 70 2E 80 13 01 00 00 00 00 00 1B [07:44:03]Write i2c OK [07:44:03]MH_I2C_Read... [07:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:44:03]Read from MH i2c: E2 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 0E 00 [07:44:03]MH_I2C_Read... [07:44:03]Read from MH i2c: E2 0E 00 70 2E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 24 [07:44:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:44:03]wFMCommunicate OK [07:44:03]SAM_PROTO_GetShiftState done [07:44:03]FM_GetShiftState done [07:44:03]req_shift_opened done [07:44:03]requested_item shift.open_date is exist - process it [07:44:03]req_shift_open_date [07:44:03]req_shift_open_date done [07:44:03]produce_requested_data done [07:44:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165906,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:44:03]process_action_free close_receipt [07:44:03]json_value_free [07:44:03]json_value_free done [07:44:03]process_json_proto returns [07:44:03]Send response to host [07:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165906,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:44:03]free response buf [07:44:03]execute_script done [07:44:03]execute_script returns [07:44:03]free content buf [07:44:03]Sock 5.Close socket [07:44:03]Sock 5.Thread stoped [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:47]OFD Sender: No OFD packet to send [07:47:52]OFD Sender: No OFD packet to send [07:47:57]OFD Sender: No OFD packet to send [07:48:02]OFD Sender: No OFD packet to send [07:48:07]OFD Sender: No OFD packet to send [07:48:12]OFD Sender: No OFD packet to send [07:48:17]OFD Sender: No OFD packet to send [07:48:22]OFD Sender: No OFD packet to send [07:48:27]OFD Sender: No OFD packet to send [07:48:32]OFD Sender: No OFD packet to send [07:48:37]OFD Sender: No OFD packet to send [07:48:42]OFD Sender: No OFD packet to send [07:48:47]OFD Sender: No OFD packet to send [07:48:52]OFD Sender: No OFD packet to send [07:48:57]OFD Sender: No OFD packet to send [07:49:02]OFD Sender: No OFD packet to send [07:49:07]OFD Sender: No OFD packet to send [07:49:12]OFD Sender: No OFD packet to send [07:49:17]OFD Sender: No OFD packet to send [07:49:22]OFD Sender: No OFD packet to send [07:49:27]OFD Sender: No OFD packet to send [07:49:32]OFD Sender: No OFD packet to send [07:49:37]OFD Sender: No OFD packet to send [07:49:42]OFD Sender: No OFD packet to send [07:49:47]OFD Sender: No OFD packet to send [07:49:52]OFD Sender: No OFD packet to send [07:49:57]OFD Sender: No OFD packet to send [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:22]OFD Sender: No OFD packet to send [07:50:27]OFD Sender: No OFD packet to send [07:50:32]OFD Sender: No OFD packet to send [07:50:37]OFD Sender: No OFD packet to send [07:50:42]OFD Sender: No OFD packet to send [07:50:47]OFD Sender: No OFD packet to send [07:50:52]OFD Sender: No OFD packet to send [07:50:57]OFD Sender: No OFD packet to send [07:51:02]OFD Sender: No OFD packet to send [07:51:07]OFD Sender: No OFD packet to send [07:51:12]OFD Sender: No OFD packet to send [07:51:17]OFD Sender: No OFD packet to send [07:51:22]OFD Sender: No OFD packet to send [07:51:27]OFD Sender: No OFD packet to send [07:51:32]OFD Sender: No OFD packet to send [07:51:37]OFD Sender: No OFD packet to send [07:51:42]OFD Sender: No OFD packet to send [07:51:47]OFD Sender: No OFD packet to send [07:51:52]OFD Sender: No OFD packet to send [07:51:57]OFD Sender: No OFD packet to send [07:52:02]OFD Sender: No OFD packet to send [07:52:07]OFD Sender: No OFD packet to send [07:52:12]OFD Sender: No OFD packet to send [07:52:17]OFD Sender: No OFD packet to send [07:52:22]OFD Sender: No OFD packet to send [07:52:27]OFD Sender: No OFD packet to send [07:52:31]accept exits with 6 [07:52:31]New connection [07:52:31]New thread 3066776932 created [07:52:31]Thread 3066920292 joined [07:52:31]Waiting for new connection... [07:52:31] Sock 6.Parse request [07:52:31]Sock 6.Check first char [07:52:31]Sock 6.First char is OK [07:52:31]request: POST /json_proto HTTP/1.0 [07:52:31]Method: POST [07:52:31]URL: /json_proto [07:52:31]Method is POST - this is cgi request [07:52:31]url: /json_proto [07:52:31]query_string will be loaded in cgi processing [07:52:31]execute_cgi json_proto POST (null) [07:52:31]execute_cgi path=json_proto method=POST [07:52:31]POST find Content-Length [07:52:31]Host: 172.17.53.195:8080 [07:52:31]Content-Length: 677 [07:52:31]Content-Type: application/json [07:52:31] [07:52:31]POST finish read [07:52:31]Found Content-Length = 677 [07:52:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:31]execute_script... [07:52:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:52:31]POST & json_proto [07:52:31]process_json_proto [07:52:31]json parsed OK: [07:52:31]protocol is kg_v1.0 [07:52:31]action value=close_receipt [07:52:31]process_action close_receipt [07:52:31]cmd_close_receipt [07:52:31]MH_GetDate [07:52:31]Write to MH i2c: F0 00 00 71 2E 8E [07:52:31]Write i2c OK [07:52:31]MH_I2C_Read... [07:52:31]Read from MH i2c: F0 [07:52:31]MH_I2C_Read... [07:52:31]Read from MH i2c: F0 09 00 [07:52:31]MH_I2C_Read... [07:52:31]Read from MH i2c: F0 09 00 71 2E 00 50 08 16 67 21 48 4A 65 84 [07:52:31]GetLastDocTimeStamp 1729496656 [07:52:31]current date 1729497168 [07:52:31]FM_GetShiftState [07:52:31]SAM_PROTO_GetShiftState [07:52:31]wFMCommunicate request_size=4 [07:52:31]MH_SAM_APDU [07:52:31]CAPDU: 80 13 01 00 [07:52:31]Write to MH i2c: E2 08 00 72 2E 80 13 01 00 00 00 00 00 1D [07:52:31]Write i2c OK [07:52:31]MH_I2C_Read... [07:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:31]Read from MH i2c: E2 [07:52:31]MH_I2C_Read... [07:52:31]Read from MH i2c: E2 0E 00 [07:52:31]MH_I2C_Read... [07:52:31]Read from MH i2c: E2 0E 00 72 2E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 26 [07:52:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:52:31]wFMCommunicate OK [07:52:31]SAM_PROTO_GetShiftState done [07:52:31]FM_GetShiftState done [07:52:31]opened in 1729470944 [07:52:31]opened+sec_in_day 1729557344 [07:52:31]quantity*price = 40006 [07:52:31]sum+1 = 40007 [07:52:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 18 21.10.2024 07:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165907 ФПД: 45639975537239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075248&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165907&fm=45639975537239&tin=02508201610067®Number=0000000000091764&sum=40000 [07:52:32]StoreToDocumentArchive [07:52:32]shift 535 fd 165907 [07:52:32]save to /storage/0535/doc_00165907 [07:52:32]save last doc name /storage/0535/doc_00165907 to /storage/kkm_last_doc_name [07:52:32]save OK [07:52:32]Clear old archive folders... [07:52:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:32]tlvbuf is 018B06F0 [07:52:32]SAM_PROTO_ClearQueue [07:52:32]wFMCommunicate request_size=4 [07:52:32]MH_SAM_APDU [07:52:32]CAPDU: 80 09 00 00 [07:52:32]Write to MH i2c: E2 08 00 7F 2E 80 09 00 00 00 00 00 00 1F [07:52:32]Write i2c OK [07:52:32]MH_I2C_Read... [07:52:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:32]Read from MH i2c: E2 [07:52:32]MH_I2C_Read... [07:52:32]Read from MH i2c: E2 03 00 [07:52:32]MH_I2C_Read... [07:52:32]Read from MH i2c: E2 03 00 7F 2E 00 90 00 21 [07:52:32]RAPDU: 90 00 [07:52:32]wFMCommunicate OK [07:52:32]SAM_PROTO_ClearQueue done [07:52:32]KKMCreateOFDPacket [07:52:32]OFDProtocolAddRootSTLVToBuf [07:52:32]FM_MakeSignedData [07:52:32]FM_MakeSignedData [07:52:32]SAM_PROTO_SignData [07:52:32]wFMCommunicate request_size=4 [07:52:32]MH_SAM_APDU [07:52:32]CAPDU: 80 0D 01 02 [07:52:32]Write to MH i2c: E2 08 00 80 2E 80 0D 01 02 00 00 00 00 27 [07:52:32]Write i2c OK [07:52:32]MH_I2C_Read... [07:52:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:32]Read from MH i2c: E2 [07:52:32]MH_I2C_Read... [07:52:32]Read from MH i2c: E2 03 00 [07:52:32]MH_I2C_Read... [07:52:32]Read from MH i2c: E2 03 00 80 2E 00 90 00 22 [07:52:32]RAPDU: 90 00 [07:52:32]wFMCommunicate OK [07:52:32]wFMCommunicate request_size=255 [07:52:32]MH_SAM_APDU [07:52:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 50 08 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 88 02 00 35 04 06 00 29 [07:52:32]Write to MH i2c: E2 02 01 81 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 50 08 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 88 02 00 35 04 06 00 29 00 00 52 [07:52:32]Write i2c OK [07:52:32]MH_I2C_Read... [07:52:32]OFD Sender: No OFD packet to send [07:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:33]Read from MH i2c: E2 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 03 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 03 00 81 2E 00 90 00 23 [07:52:33]RAPDU: 90 00 [07:52:33]wFMCommunicate OK [07:52:33]wFMCommunicate request_size=10 [07:52:33]MH_SAM_APDU [07:52:33]CAPDU: 80 0D 02 02 05 82 62 87 8A 57 [07:52:33]Write to MH i2c: E2 0D 00 82 2E 80 0D 02 02 05 00 82 62 87 8A 57 00 00 80 [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:33]Read from MH i2c: E2 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 03 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 03 00 82 2E 00 90 00 24 [07:52:33]RAPDU: 90 00 [07:52:33]wFMCommunicate OK [07:52:33]wFMCommunicate request_size=4 [07:52:33]MH_SAM_APDU [07:52:33]CAPDU: 80 0D 03 02 [07:52:33]Write to MH i2c: E2 08 00 83 2E 80 0D 03 02 00 00 00 00 2C [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:33]Read from MH i2c: E2 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 0B 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 0B 00 83 2E 00 F8 B4 90 29 07 51 85 FC 90 00 6B [07:52:33]RAPDU: F8 B4 90 29 07 51 85 FC 90 00 [07:52:33]wFMCommunicate OK [07:52:33]SAM_PROTO_SignData done [07:52:33]FM_MakeSignedData done [07:52:33]CreateOFDProtocolMessage [07:52:33]wFMCommunicate request_size=4 [07:52:33]MH_SAM_APDU [07:52:33]CAPDU: 80 11 00 00 [07:52:33]Write to MH i2c: E2 08 00 84 2E 80 11 00 00 00 00 00 00 2C [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:33]Read from MH i2c: E2 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 17 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: E2 17 00 84 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [07:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:52:33]wFMCommunicate OK [07:52:33]CreateOFDProtocolMessage done [07:52:33]OFDSenderStorePacket 165907 [07:52:33]StoreOFDPacket docnum=165907 [07:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 71 07 01 EF 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 50 08 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 88 02 00 35 04 06 00 29 82 62 87 8A 57 F8 B4 90 29 07 51 85 FC [07:52:33]CheckFolder [07:52:33]dirname=/storage/ofd_packets [07:52:33]CheckFolder done [07:52:33]ProducePacketName [07:52:33]name=ofd_packets/00165907 [07:52:33]NVStorageSaveData ofd_packets/00165907 [07:52:33]File name is /storage/ofd_packets/00165907 [07:52:33]Write 301 bytes [07:52:33]NVStorageSaveData done [07:52:33]OFDSenderStorePacket done [07:52:33]KKMCreateOFDPacket done [07:52:33]NVStorageSaveData kkm_last_timestamp [07:52:33]File name is /storage/kkm_last_timestamp [07:52:33]Write 4 bytes [07:52:33]NVStorageSaveData done [07:52:33]ExternCall_PrintAddStr [07:52:33]wPrintStart [07:52:33]Write to MH i2c: 01 00 00 85 2E B3 [07:52:33]Write i2c OK [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 [07:52:33]MH_I2C_Read... [07:52:33]Read from MH i2c: 01 07 00 85 2E 00 00 00 00 00 FF 0F C8 [07:52:33]RasterBufferAndPrint [07:52:33]line Счет N : (1)220474 [07:52:33]line ИНН: 02508201610067 [07:52:33]line Контрольно-Кассовый Чек [07:52:33]line ПРОДАЖА [07:52:33]line ТРК (МРК, ГНК) : 13 [07:52:33]line Товар: 2710124130 [07:52:33]line Аи-92-К-5 [07:52:33]line 5.980 * 66.90 [07:52:33]line = 400.06 [07:52:33]line НДС 12% НСП 1% [07:52:33]line > о реализуемом товаре [07:52:33]line ОКРУГЛЕНИЕ: -0.06 [07:52:33]line ИТОГО: 400.00 [07:52:33]line Внесено: 400.00 [07:52:33]line СДАЧА: 0.00 [07:52:33]line НСП 1% : 3.54 [07:52:33]line НДС 12% : 42.48 [07:52:33]line Наличными: 400.00 [07:52:33]line Безнал.: 0.00 [07:52:33]line Место: АЗС № 161 "Партнер Нефть" [07:52:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:52:33]line СНО: Общий режим [07:52:33]line Чек 18 21.10.2024 07:52 [07:52:33]line Смена: 535 ФФД: 1.0 [07:52:33]line ЗНМ: 0300000104 [07:52:33]line РНМ: 0000000000091764 [07:52:33]line Версия ККМ: 001 [07:52:33]line ФМ: 0000000000871759 [07:52:33]line ФД: 165907 [07:52:33]line ФПД: 45639975537239 [07:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075248&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165907&fm=45639975537239&tin=02508201610067®Number=0000000000091764&sum=40000 [07:52:33]OFD Sender: Processing packet 165907 [packets to send 48, broken 47] [07:52:33]ProducePacketName [07:52:33]name=ofd_packets/00165907 [07:52:33]OFD Sender: To server: pG, [07:52:33]CommunicateWithHost lk.salyk.kg:30040 [07:52:33]ConnectInit lk.salyk.kg [07:52:33]written 0, free lines is 4095 [07:52:33]Connected sock=7 [07:52:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 71 07 01 EF 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 50 08 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 88 02 00 35 04 06 00 29 82 62 87 8A 57 F8 B4 90 29 07 51 85 FC [07:52:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 B1 47 00 8E C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 88 02 00 F4 03 04 00 BF AE 15 67 B6 04 01 00 00 F5 50 8E C3 19 3F BD 01 [07:52:33]CommunicateWithHost err = 0 [07:52:33]CheckOFDResponse [07:52:33]1017 (14) - 77093643461234 [07:52:33]1041 (16) - 0000000000871759 [07:52:33]1040 (4) - 165907 [07:52:33]1012 (4) - 21.10.2024 01:30 [07:52:33]1206 (1) - 0 [07:52:33]OFD Sender: Remove packet 165907 [07:52:33]ProducePacketName [07:52:33]name=ofd_packets/00165907 [07:52:33]NVStorageDeleteData [07:52:34]Write to MH i2c: 01 00 00 B0 2E DE [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: 01 07 00 B0 2E 00 00 00 00 00 AA 0C 9B [07:52:34]RasterBufferAndPrint [07:52:34]line [07:52:34]line [07:52:34]line [07:52:34]line [07:52:34]line [07:52:34]written 0, free lines is 3248 [07:52:34]MH_Cut [07:52:34]Write to MH i2c: D1 01 00 B7 2E 01 B7 [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: D1 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: D1 01 00 [07:52:34]MH_I2C_Read... [07:52:34]Read from MH i2c: D1 01 00 B7 2E 00 B6 [07:52:34]Write to MH i2c: 01 00 00 B8 2E E6 [07:52:34]Write i2c OK [07:52:34]MH_I2C_Read... [07:52:34]OFD Sender: No OFD packet to send [07:52:34]*** Cut start [07:52:34]*** Partial cut [07:52:34]*** CUTSNS_PIN = 1 [07:52:34]*** CUTSNS_PIN = 0 [07:52:35]*** Brake cut motor [07:52:35]Read from MH i2c: 01 [07:52:35]MH_I2C_Read... [07:52:35]*** Stop cut motor [07:52:35]*** Cut end [07:52:35]Read from MH i2c: 01 07 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: 01 07 00 B8 2E 00 00 00 00 00 FF 0F FB [07:52:35]process_action close_receipt done [07:52:35]requested_data is exist [07:52:35]produce_requested_data [07:52:35]requested_item fm.sn is exist - process it [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 11 00 00 [07:52:35]Write to MH i2c: E2 08 00 B9 2E 80 11 00 00 00 00 00 00 61 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 17 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 17 00 B9 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [07:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:52:35]wFMCommunicate OK [07:52:35]requested_item fd.num is exist - process it [07:52:35]SAM_PROTO_GetFieldsCounters [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 13 00 00 [07:52:35]Write to MH i2c: E2 08 00 BA 2E 80 13 00 00 00 00 00 00 64 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 62 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 62 00 BA 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [07:52:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:35]wFMCommunicate OK [07:52:35]SAM_PROTO_GetFieldsCounters done [07:52:35]requested_item shift.num is exist - process it [07:52:35]requested_item shift.opened is exist - process it [07:52:35]req_shift_opened [07:52:35]FM_GetShiftState [07:52:35]SAM_PROTO_GetShiftState [07:52:35]wFMCommunicate request_size=4 [07:52:35]MH_SAM_APDU [07:52:35]CAPDU: 80 13 01 00 [07:52:35]Write to MH i2c: E2 08 00 BB 2E 80 13 01 00 00 00 00 00 66 [07:52:35]Write i2c OK [07:52:35]MH_I2C_Read... [07:52:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:35]Read from MH i2c: E2 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 0E 00 [07:52:35]MH_I2C_Read... [07:52:35]Read from MH i2c: E2 0E 00 BB 2E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [07:52:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:52:35]wFMCommunicate OK [07:52:35]SAM_PROTO_GetShiftState done [07:52:35]FM_GetShiftState done [07:52:35]req_shift_opened done [07:52:35]requested_item shift.open_date is exist - process it [07:52:35]req_shift_open_date [07:52:35]req_shift_open_date done [07:52:35]produce_requested_data done [07:52:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165907,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:52:35]process_action_free close_receipt [07:52:35]json_value_free [07:52:35]json_value_free done [07:52:35]process_json_proto returns [07:52:35]Send response to host [07:52:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165907,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:52:35]free response buf [07:52:35]execute_script done [07:52:35]execute_script returns [07:52:35]free content buf [07:52:35]Sock 6.Close socket [07:52:35]Sock 6.Thread stoped [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:44]accept exits with 5 [07:58:44]New connection [07:58:44]New thread 3066920292 created [07:58:44]Thread 3066776932 joined [07:58:44]Waiting for new connection... [07:58:44] Sock 5.Parse request [07:58:44]Sock 5.Check first char [07:58:44]Sock 5.First char is OK [07:58:44]request: POST /json_proto HTTP/1.0 [07:58:44]Method: POST [07:58:44]URL: /json_proto [07:58:44]Method is POST - this is cgi request [07:58:44]url: /json_proto [07:58:44]query_string will be loaded in cgi processing [07:58:44]execute_cgi json_proto POST (null) [07:58:44]execute_cgi path=json_proto method=POST [07:58:44]POST find Content-Length [07:58:44]Host: 172.17.53.195:8080 [07:58:44]Content-Length: 682 [07:58:44]Content-Type: application/json [07:58:44] [07:58:44]POST finish read [07:58:44]Found Content-Length = 682 [07:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:44]execute_script... [07:58: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)220475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 26.950, "sum" : 1999.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:58:44]POST & json_proto [07:58:44]process_json_proto [07:58:44]json parsed OK: [07:58:44]protocol is kg_v1.0 [07:58:44]action value=close_receipt [07:58:44]process_action close_receipt [07:58:44]cmd_close_receipt [07:58:44]MH_GetDate [07:58:44]Write to MH i2c: F0 00 00 BC 2E D9 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: F0 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: F0 09 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: F0 09 00 BC 2E 00 C5 09 16 67 21 48 4A 65 45 [07:58:44]GetLastDocTimeStamp 1729497168 [07:58:44]current date 1729497541 [07:58:44]FM_GetShiftState [07:58:44]SAM_PROTO_GetShiftState [07:58:44]wFMCommunicate request_size=4 [07:58:44]MH_SAM_APDU [07:58:44]CAPDU: 80 13 01 00 [07:58:44]Write to MH i2c: E2 08 00 BD 2E 80 13 01 00 00 00 00 00 68 [07:58:44]Write i2c OK [07:58:44]MH_I2C_Read... [07:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:44]Read from MH i2c: E2 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 0E 00 [07:58:44]MH_I2C_Read... [07:58:44]Read from MH i2c: E2 0E 00 BD 2E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 71 [07:58:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:58:44]wFMCommunicate OK [07:58:44]SAM_PROTO_GetShiftState done [07:58:44]FM_GetShiftState done [07:58:44]opened in 1729470944 [07:58:44]opened+sec_in_day 1729557344 [07:58:44]quantity*price = 199969 [07:58:44]sum+1 = 199970 [07:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.36 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 19 21.10.2024 07:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165908 ФПД: 133234157911154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075902&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165908&fm=133234157911154&tin=02508201610067®Number=0000000000091764&sum=199900 [07:58:46]StoreToDocumentArchive [07:58:46]shift 535 fd 165908 [07:58:46]save to /storage/0535/doc_00165908 [07:58:46]save last doc name /storage/0535/doc_00165908 to /storage/kkm_last_doc_name [07:58:46]save OK [07:58:46]Clear old archive folders... [07:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:46]tlvbuf is 015BD270 [07:58:46]SAM_PROTO_ClearQueue [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 09 00 00 [07:58:46]Write to MH i2c: E2 08 00 CA 2E 80 09 00 00 00 00 00 00 6A [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 CA 2E 00 90 00 6C [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]SAM_PROTO_ClearQueue done [07:58:46]KKMCreateOFDPacket [07:58:46]OFDProtocolAddRootSTLVToBuf [07:58:46]FM_MakeSignedData [07:58:46]FM_MakeSignedData [07:58:46]SAM_PROTO_SignData [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 01 02 [07:58:46]Write to MH i2c: E2 08 00 CB 2E 80 0D 01 02 00 00 00 00 72 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 CB 2E 00 90 00 6D [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]wFMCommunicate request_size=255 [07:58:46]MH_SAM_APDU [07:58: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 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C6 09 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 88 02 00 35 04 06 00 79 [07:58:46]Write to MH i2c: E2 02 01 CC 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 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C6 09 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 88 02 00 35 04 06 00 79 00 00 1A [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 CC 2E 00 90 00 6E [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]wFMCommunicate request_size=10 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 02 02 05 2C FE A7 7C 72 [07:58:46]Write to MH i2c: E2 0D 00 CD 2E 80 0D 02 02 05 00 2C FE A7 7C 72 00 00 3E [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 03 00 CD 2E 00 90 00 6F [07:58:46]RAPDU: 90 00 [07:58:46]wFMCommunicate OK [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 0D 03 02 [07:58:46]Write to MH i2c: E2 08 00 CE 2E 80 0D 03 02 00 00 00 00 77 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 0B 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 0B 00 CE 2E 00 69 E6 DE 23 A7 5F BE 11 90 00 9D [07:58:46]RAPDU: 69 E6 DE 23 A7 5F BE 11 90 00 [07:58:46]wFMCommunicate OK [07:58:46]SAM_PROTO_SignData done [07:58:46]FM_MakeSignedData done [07:58:46]CreateOFDProtocolMessage [07:58:46]wFMCommunicate request_size=4 [07:58:46]MH_SAM_APDU [07:58:46]CAPDU: 80 11 00 00 [07:58:46]Write to MH i2c: E2 08 00 CF 2E 80 11 00 00 00 00 00 00 77 [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:46]Read from MH i2c: E2 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 17 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: E2 17 00 CF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [07:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:58:46]wFMCommunicate OK [07:58:46]CreateOFDProtocolMessage done [07:58:46]OFDSenderStorePacket 165908 [07:58:46]StoreOFDPacket docnum=165908 [07:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 C1 07 01 13 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C6 09 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 88 02 00 35 04 06 00 79 2C FE A7 7C 72 69 E6 DE 23 A7 5F BE 11 [07:58:46]CheckFolder [07:58:46]dirname=/storage/ofd_packets [07:58:46]CheckFolder done [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00165908 [07:58:46]NVStorageSaveData ofd_packets/00165908 [07:58:46]File name is /storage/ofd_packets/00165908 [07:58:46]Write 301 bytes [07:58:46]NVStorageSaveData done [07:58:46]OFDSenderStorePacket done [07:58:46]KKMCreateOFDPacket done [07:58:46]NVStorageSaveData kkm_last_timestamp [07:58:46]File name is /storage/kkm_last_timestamp [07:58:46]Write 4 bytes [07:58:46]NVStorageSaveData done [07:58:46]ExternCall_PrintAddStr [07:58:46]wPrintStart [07:58:46]Write to MH i2c: 01 00 00 D0 2E FE [07:58:46]Write i2c OK [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 [07:58:46]MH_I2C_Read... [07:58:46]Read from MH i2c: 01 07 00 D0 2E 00 00 00 00 00 FF 0F 13 [07:58:46]RasterBufferAndPrint [07:58:46]line Счет N : (1)220475 [07:58:46]line ИНН: 02508201610067 [07:58:46]line Контрольно-Кассовый Чек [07:58:46]line ПРОДАЖА [07:58:46]line ТРК (МРК, ГНК) : 44 [07:58:46]line Товар: 2710124500 [07:58:46]line Аи-95-К-5 [07:58:46]line 26.950 * 74.20 [07:58:46]line = 1999.69 [07:58:46]line НДС 12% НСП 1% [07:58:46]line > о реализуемом товаре [07:58:46]line ОКРУГЛЕНИЕ: -0.69 [07:58:46]line ИТОГО: 1999.00 [07:58:46]line Внесено: 2000.00 [07:58:46]line СДАЧА: 1.00 [07:58:46]line НСП 1% : 17.70 [07:58:46]line НДС 12% : 212.36 [07:58:46]line Наличными: 1999.00 [07:58:46]line Безнал.: 0.00 [07:58:46]line Место: АЗС № 161 "Партнер Нефть" [07:58:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [07:58:46]line СНО: Общий режим [07:58:46]line Чек 19 21.10.2024 07:59 [07:58:46]line Смена: 535 ФФД: 1.0 [07:58:46]line ЗНМ: 0300000104 [07:58:46]line РНМ: 0000000000091764 [07:58:46]line Версия ККМ: 001 [07:58:46]line ФМ: 0000000000871759 [07:58:46]line ФД: 165908 [07:58:46]line ФПД: 133234157911154 [07:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T075902&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165908&fm=133234157911154&tin=02508201610067®Number=0000000000091764&sum=199900 [07:58:46]written 0, free lines is 4095 [07:58:46]OFD Sender: Processing packet 165908 [packets to send 48, broken 47] [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00165908 [07:58:46]OFD Sender: To server: pG, [07:58:46]CommunicateWithHost lk.salyk.kg:30040 [07:58:46]ConnectInit lk.salyk.kg [07:58:46]Connected sock=7 [07:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 C1 07 01 13 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 46 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F4 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C6 09 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 88 02 00 35 04 06 00 79 2C FE A7 7C 72 69 E6 DE 23 A7 5F BE 11 [07:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 0C 47 00 A8 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 88 02 00 F4 03 04 00 34 B0 15 67 B6 04 01 00 00 36 6E 33 A7 AC DF 44 C4 [07:58:46]CommunicateWithHost err = 0 [07:58:46]CheckOFDResponse [07:58:46]1017 (14) - 77093643461234 [07:58:46]1041 (16) - 0000000000871759 [07:58:46]1040 (4) - 165908 [07:58:46]1012 (4) - 21.10.2024 01:36 [07:58:46]1206 (1) - 0 [07:58:46]OFD Sender: Remove packet 165908 [07:58:46]ProducePacketName [07:58:46]name=ofd_packets/00165908 [07:58:46]NVStorageDeleteData [07:58:47]Write to MH i2c: 01 00 00 FB 2E 29 [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 07 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: 01 07 00 FB 2E 00 00 00 00 00 C9 0C 05 [07:58:47]RasterBufferAndPrint [07:58:47]line [07:58:47]line [07:58:47]line [07:58:47]line [07:58:47]line [07:58:47]written 0, free lines is 3279 [07:58:47]MH_Cut [07:58:47]Write to MH i2c: D1 01 00 02 2F 01 03 [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: D1 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: D1 01 00 [07:58:47]MH_I2C_Read... [07:58:47]Read from MH i2c: D1 01 00 02 2F 00 02 [07:58:47]Write to MH i2c: 01 00 00 03 2F 32 [07:58:47]Write i2c OK [07:58:47]MH_I2C_Read... [07:58:47]OFD Sender: No OFD packet to send [07:58:47]*** Cut start [07:58:47]*** Partial cut [07:58:47]*** CUTSNS_PIN = 1 [07:58:47]*** CUTSNS_PIN = 0 [07:58:48]*** Brake cut motor [07:58:48]Read from MH i2c: 01 [07:58:48]MH_I2C_Read... [07:58:48]*** Stop cut motor [07:58:48]*** Cut end [07:58:48]Read from MH i2c: 01 07 00 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: 01 07 00 03 2F 00 00 00 00 00 FF 0F 47 [07:58:48]process_action close_receipt done [07:58:48]requested_data is exist [07:58:48]produce_requested_data [07:58:48]requested_item fm.sn is exist - process it [07:58:48]wFMCommunicate request_size=4 [07:58:48]MH_SAM_APDU [07:58:48]CAPDU: 80 11 00 00 [07:58:48]Write to MH i2c: E2 08 00 04 2F 80 11 00 00 00 00 00 00 AD [07:58:48]Write i2c OK [07:58:48]MH_I2C_Read... [07:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:48]Read from MH i2c: E2 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 17 00 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 17 00 04 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [07:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [07:58:48]wFMCommunicate OK [07:58:48]requested_item fd.num is exist - process it [07:58:48]SAM_PROTO_GetFieldsCounters [07:58:48]wFMCommunicate request_size=4 [07:58:48]MH_SAM_APDU [07:58:48]CAPDU: 80 13 00 00 [07:58:48]Write to MH i2c: E2 08 00 05 2F 80 13 00 00 00 00 00 00 B0 [07:58:48]Write i2c OK [07:58:48]MH_I2C_Read... [07:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:48]Read from MH i2c: E2 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 62 00 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 62 00 05 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [07:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:58:48]wFMCommunicate OK [07:58:48]SAM_PROTO_GetFieldsCounters done [07:58:48]requested_item shift.num is exist - process it [07:58:48]requested_item shift.opened is exist - process it [07:58:48]req_shift_opened [07:58:48]FM_GetShiftState [07:58:48]SAM_PROTO_GetShiftState [07:58:48]wFMCommunicate request_size=4 [07:58:48]MH_SAM_APDU [07:58:48]CAPDU: 80 13 01 00 [07:58:48]Write to MH i2c: E2 08 00 06 2F 80 13 01 00 00 00 00 00 B2 [07:58:48]Write i2c OK [07:58:48]MH_I2C_Read... [07:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:48]Read from MH i2c: E2 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 0E 00 [07:58:48]MH_I2C_Read... [07:58:48]Read from MH i2c: E2 0E 00 06 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BB [07:58:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [07:58:48]wFMCommunicate OK [07:58:48]SAM_PROTO_GetShiftState done [07:58:48]FM_GetShiftState done [07:58:48]req_shift_opened done [07:58:48]requested_item shift.open_date is exist - process it [07:58:48]req_shift_open_date [07:58:48]req_shift_open_date done [07:58:48]produce_requested_data done [07:58:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165908,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [07:58:48]process_action_free close_receipt [07:58:48]json_value_free [07:58:48]json_value_free done [07:58:48]process_json_proto returns [07:58:48]Send response to host [07:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165908,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [07:58:48]free response buf [07:58:48]execute_script done [07:58:48]execute_script returns [07:58:48]free content buf [07:58:48]Sock 5.Close socket [07:58:48]Sock 5.Thread stoped [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:52]OFD Sender: No OFD packet to send [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]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:29]accept exits with 6 [08:09:29]New connection [08:09:29]New thread 3066776932 created [08:09:29]Thread 3066920292 joined [08:09:29]Waiting for new connection... [08:09:29] Sock 6.Parse request [08:09:29]Sock 6.Check first char [08:09:29]Sock 6.First char is OK [08:09:29]request: POST /json_proto HTTP/1.0 [08:09:29]Method: POST [08:09:29]URL: /json_proto [08:09:29]Method is POST - this is cgi request [08:09:29]url: /json_proto [08:09:29]query_string will be loaded in cgi processing [08:09:29]execute_cgi json_proto POST (null) [08:09:29]execute_cgi path=json_proto method=POST [08:09:29]POST find Content-Length [08:09:29]Host: 172.17.53.195:8080 [08:09:29]Content-Length: 677 [08:09:29]Content-Type: application/json [08:09:29] [08:09:29]POST finish read [08:09:29]Found Content-Length = 677 [08:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:29]execute_script... [08:09:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:29]POST & json_proto [08:09:29]process_json_proto [08:09:29]json parsed OK: [08:09:29]protocol is kg_v1.0 [08:09:29]action value=close_receipt [08:09:29]process_action close_receipt [08:09:29]cmd_close_receipt [08:09:29]MH_GetDate [08:09:29]Write to MH i2c: F0 00 00 07 2F 25 [08:09:29]Write i2c OK [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 09 00 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 09 00 07 2F 00 4A 0C 16 67 21 48 4A 65 19 [08:09:29]GetLastDocTimeStamp 1729497542 [08:09:29]current date 1729498186 [08:09:29]FM_GetShiftState [08:09:29]SAM_PROTO_GetShiftState [08:09:29]wFMCommunicate request_size=4 [08:09:29]MH_SAM_APDU [08:09:29]CAPDU: 80 13 01 00 [08:09:29]Write to MH i2c: E2 08 00 08 2F 80 13 01 00 00 00 00 00 B4 [08:09:29]Write i2c OK [08:09:29]MH_I2C_Read... [08:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:29]Read from MH i2c: E2 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: E2 0E 00 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: E2 0E 00 08 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BD [08:09:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:09:29]wFMCommunicate OK [08:09:29]SAM_PROTO_GetShiftState done [08:09:29]FM_GetShiftState done [08:09:29]opened in 1729470944 [08:09:29]opened+sec_in_day 1729557344 [08:09:29]quantity*price = 50041 [08:09:29]sum+1 = 50042 [08:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 20 21.10.2024 08:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165909 ФПД: 203344251775254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080946&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165909&fm=203344251775254&tin=02508201610067®Number=0000000000091764&sum=50000 [08:09:30]StoreToDocumentArchive [08:09:30]shift 535 fd 165909 [08:09:30]save to /storage/0535/doc_00165909 [08:09:30]save last doc name /storage/0535/doc_00165909 to /storage/kkm_last_doc_name [08:09:30]save OK [08:09:30]Clear old archive folders... [08:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:30]tlvbuf is 01456DC0 [08:09:30]SAM_PROTO_ClearQueue [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 09 00 00 [08:09:30]Write to MH i2c: E2 08 00 15 2F 80 09 00 00 00 00 00 00 B6 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 15 2F 00 90 00 B8 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]SAM_PROTO_ClearQueue done [08:09:30]KKMCreateOFDPacket [08:09:30]OFDProtocolAddRootSTLVToBuf [08:09:30]FM_MakeSignedData [08:09:30]FM_MakeSignedData [08:09:30]SAM_PROTO_SignData [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 01 02 [08:09:30]Write to MH i2c: E2 08 00 16 2F 80 0D 01 02 00 00 00 00 BE [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 16 2F 00 90 00 B9 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=255 [08:09:30]MH_SAM_APDU [08:09: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 88 02 00 35 04 06 00 B8 [08:09:30]Write to MH i2c: E2 02 01 17 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 88 02 00 35 04 06 00 B8 00 00 AB [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 17 2F 00 90 00 BA [08:09:31]RAPDU: 90 00 [08:09:31]wFMCommunicate OK [08:09:31]wFMCommunicate request_size=10 [08:09:31]MH_SAM_APDU [08:09:31]CAPDU: 80 0D 02 02 05 F0 C5 E4 E9 16 [08:09:31]Write to MH i2c: E2 0D 00 18 2F 80 0D 02 02 05 00 F0 C5 E4 E9 16 00 00 63 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 03 00 18 2F 00 90 00 BB [08:09:31]RAPDU: 90 00 [08:09:31]wFMCommunicate OK [08:09:31]wFMCommunicate request_size=4 [08:09:31]MH_SAM_APDU [08:09:31]CAPDU: 80 0D 03 02 [08:09:31]Write to MH i2c: E2 08 00 19 2F 80 0D 03 02 00 00 00 00 C3 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 0B 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 0B 00 19 2F 00 9A BA 86 AD 98 F8 CC 92 90 00 39 [08:09:31]RAPDU: 9A BA 86 AD 98 F8 CC 92 90 00 [08:09:31]wFMCommunicate OK [08:09:31]SAM_PROTO_SignData done [08:09:31]FM_MakeSignedData done [08:09:31]CreateOFDProtocolMessage [08:09:31]wFMCommunicate request_size=4 [08:09:31]MH_SAM_APDU [08:09:31]CAPDU: 80 11 00 00 [08:09:31]Write to MH i2c: E2 08 00 1A 2F 80 11 00 00 00 00 00 00 C3 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 17 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 17 00 1A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [08:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:09:31]wFMCommunicate OK [08:09:31]CreateOFDProtocolMessage done [08:09:31]OFDSenderStorePacket 165909 [08:09:31]StoreOFDPacket docnum=165909 [08:09:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 AB 07 01 38 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 88 02 00 35 04 06 00 B8 F0 C5 E4 E9 16 9A BA 86 AD 98 F8 CC 92 [08:09:31]CheckFolder [08:09:31]dirname=/storage/ofd_packets [08:09:31]CheckFolder done [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00165909 [08:09:31]NVStorageSaveData ofd_packets/00165909 [08:09:31]File name is /storage/ofd_packets/00165909 [08:09:31]Write 301 bytes [08:09:31]NVStorageSaveData done [08:09:31]OFDSenderStorePacket done [08:09:31]KKMCreateOFDPacket done [08:09:31]NVStorageSaveData kkm_last_timestamp [08:09:31]File name is /storage/kkm_last_timestamp [08:09:31]Write 4 bytes [08:09:31]NVStorageSaveData done [08:09:31]ExternCall_PrintAddStr [08:09:31]wPrintStart [08:09:31]Write to MH i2c: 01 00 00 1B 2F 4A [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 1B 2F 00 00 00 00 00 FF 0F 5F [08:09:31]RasterBufferAndPrint [08:09:31]line Счет N : (1)220476 [08:09:31]line ИНН: 02508201610067 [08:09:31]line Контрольно-Кассовый Чек [08:09:31]line ПРОДАЖА [08:09:31]line ТРК (МРК, ГНК) : 33 [08:09:31]line Товар: 2710124130 [08:09:31]line Аи-92-К-5 [08:09:31]line 7.480 * 66.90 [08:09:31]line = 500.41 [08:09:31]line НДС 12% НСП 1% [08:09:31]line > о реализуемом товаре [08:09:31]line ОКРУГЛЕНИЕ: -0.41 [08:09:31]line ИТОГО: 500.00 [08:09:31]line Внесено: 500.00 [08:09:31]line СДАЧА: 0.00 [08:09:31]line НСП 1% : 4.43 [08:09:31]line НДС 12% : 53.14 [08:09:31]line Наличными: 500.00 [08:09:31]line Безнал.: 0.00 [08:09:31]line Место: АЗС № 161 "Партнер Нефть" [08:09:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:09:31]line СНО: Общий режим [08:09:31]line Чек 20 21.10.2024 08:09 [08:09:31]line Смена: 535 ФФД: 1.0 [08:09:31]line ЗНМ: 0300000104 [08:09:31]line РНМ: 0000000000091764 [08:09:31]line Версия ККМ: 001 [08:09:31]line ФМ: 0000000000871759 [08:09:31]line ФД: 165909 [08:09:31]line ФПД: 203344251775254 [08:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T080946&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165909&fm=203344251775254&tin=02508201610067®Number=0000000000091764&sum=50000 [08:09:31]OFD Sender: Processing packet 165909 [packets to send 48, broken 47] [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00165909 [08:09:31]OFD Sender: To server: pG, [08:09:31]CommunicateWithHost lk.salyk.kg:30040 [08:09:31]ConnectInit lk.salyk.kg [08:09:31]written 0, free lines is 4095 [08:09:31]Connected sock=7 [08:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 AB 07 01 38 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 4A 0C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 88 02 00 35 04 06 00 B8 F0 C5 E4 E9 16 9A BA 86 AD 98 F8 CC 92 [08:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD CD 47 00 1D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 88 02 00 F4 03 04 00 B9 B2 15 67 B6 04 01 00 00 D3 09 7D 30 65 41 07 DF [08:09:31]CommunicateWithHost err = 0 [08:09:31]CheckOFDResponse [08:09:31]1017 (14) - 77093643461234 [08:09:31]1041 (16) - 0000000000871759 [08:09:31]1040 (4) - 165909 [08:09:31]1012 (4) - 21.10.2024 01:47 [08:09:31]1206 (1) - 0 [08:09:31]OFD Sender: Remove packet 165909 [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00165909 [08:09:31]NVStorageDeleteData [08:09:32]Write to MH i2c: 01 00 00 46 2F 75 [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: 01 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: 01 07 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: 01 07 00 46 2F 00 00 00 00 00 B0 0C 38 [08:09:32]RasterBufferAndPrint [08:09:32]line [08:09:32]line [08:09:32]line [08:09:32]line [08:09:32]line [08:09:32]written 0, free lines is 3256 [08:09:32]MH_Cut [08:09:32]Write to MH i2c: D1 01 00 4D 2F 01 4E [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: D1 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: D1 01 00 [08:09:32]MH_I2C_Read... [08:09:32]Read from MH i2c: D1 01 00 4D 2F 00 4D [08:09:32]Write to MH i2c: 01 00 00 4E 2F 7D [08:09:32]Write i2c OK [08:09:32]MH_I2C_Read... [08:09:32]OFD Sender: No OFD packet to send [08:09:32]*** Cut start [08:09:32]*** Partial cut [08:09:32]*** CUTSNS_PIN = 1 [08:09:32]*** CUTSNS_PIN = 0 [08:09:33]*** Brake cut motor [08:09:33]Read from MH i2c: 01 [08:09:33]MH_I2C_Read... [08:09:33]*** Stop cut motor [08:09:33]*** Cut end [08:09:33]Read from MH i2c: 01 07 00 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: 01 07 00 4E 2F 00 00 00 00 00 FF 0F 92 [08:09:33]process_action close_receipt done [08:09:33]requested_data is exist [08:09:33]produce_requested_data [08:09:33]requested_item fm.sn is exist - process it [08:09:33]wFMCommunicate request_size=4 [08:09:33]MH_SAM_APDU [08:09:33]CAPDU: 80 11 00 00 [08:09:33]Write to MH i2c: E2 08 00 4F 2F 80 11 00 00 00 00 00 00 F8 [08:09:33]Write i2c OK [08:09:33]MH_I2C_Read... [08:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:33]Read from MH i2c: E2 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: E2 17 00 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: E2 17 00 4F 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [08:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:09:33]wFMCommunicate OK [08:09:33]requested_item fd.num is exist - process it [08:09:33]SAM_PROTO_GetFieldsCounters [08:09:33]wFMCommunicate request_size=4 [08:09:33]MH_SAM_APDU [08:09:33]CAPDU: 80 13 00 00 [08:09:33]Write to MH i2c: E2 08 00 50 2F 80 13 00 00 00 00 00 00 FB [08:09:33]Write i2c OK [08:09:33]MH_I2C_Read... [08:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:33]Read from MH i2c: E2 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: E2 62 00 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: E2 62 00 50 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [08:09:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:33]wFMCommunicate OK [08:09:33]SAM_PROTO_GetFieldsCounters done [08:09:33]requested_item shift.num is exist - process it [08:09:33]requested_item shift.opened is exist - process it [08:09:33]req_shift_opened [08:09:33]FM_GetShiftState [08:09:33]SAM_PROTO_GetShiftState [08:09:33]wFMCommunicate request_size=4 [08:09:33]MH_SAM_APDU [08:09:33]CAPDU: 80 13 01 00 [08:09:33]Write to MH i2c: E2 08 00 51 2F 80 13 01 00 00 00 00 00 FD [08:09:33]Write i2c OK [08:09:33]MH_I2C_Read... [08:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:33]Read from MH i2c: E2 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: E2 0E 00 [08:09:33]MH_I2C_Read... [08:09:33]Read from MH i2c: E2 0E 00 51 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 06 [08:09:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:09:33]wFMCommunicate OK [08:09:33]SAM_PROTO_GetShiftState done [08:09:33]FM_GetShiftState done [08:09:33]req_shift_opened done [08:09:33]requested_item shift.open_date is exist - process it [08:09:33]req_shift_open_date [08:09:33]req_shift_open_date done [08:09:33]produce_requested_data done [08:09:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165909,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:09:33]process_action_free close_receipt [08:09:33]json_value_free [08:09:33]json_value_free done [08:09:33]process_json_proto returns [08:09:33]Send response to host [08:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165909,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:09:33]free response buf [08:09:33]execute_script done [08:09:33]execute_script returns [08:09:33]free content buf [08:09:33]Sock 6.Close socket [08:09:33]Sock 6.Thread stoped [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [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:43]accept exits with 5 [08:13:43]New connection [08:13:43]New thread 3066920292 created [08:13:43]Thread 3066776932 joined [08:13:43]Waiting for new connection... [08:13:43] Sock 5.Parse request [08:13:43]Sock 5.Check first char [08:13:43]Sock 5.First char is OK [08:13:43]request: POST /json_proto HTTP/1.0 [08:13:43]Method: POST [08:13:43]URL: /json_proto [08:13:43]Method is POST - this is cgi request [08:13:43]url: /json_proto [08:13:43]query_string will be loaded in cgi processing [08:13:43]execute_cgi json_proto POST (null) [08:13:43]execute_cgi path=json_proto method=POST [08:13:43]POST find Content-Length [08:13:43]Host: 172.17.53.195:8080 [08:13:43]Content-Length: 677 [08:13:43]Content-Type: application/json [08:13:43] [08:13:43]POST finish read [08:13:43]Found Content-Length = 677 [08:13:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.730, "sum" : 499.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:43]execute_script... [08:13: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)220478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.730, "sum" : 499.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:43]POST & json_proto [08:13:43]process_json_proto [08:13:43]json parsed OK: [08:13:43]protocol is kg_v1.0 [08:13:43]action value=close_receipt [08:13:43]process_action close_receipt [08:13:43]cmd_close_receipt [08:13:43]MH_GetDate [08:13:43]Write to MH i2c: F0 00 00 52 2F 70 [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: F0 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: F0 09 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: F0 09 00 52 2F 00 48 0D 16 67 21 48 4A 65 63 [08:13:43]GetLastDocTimeStamp 1729498186 [08:13:43]current date 1729498440 [08:13:43]FM_GetShiftState [08:13:43]SAM_PROTO_GetShiftState [08:13:43]wFMCommunicate request_size=4 [08:13:43]MH_SAM_APDU [08:13:43]CAPDU: 80 13 01 00 [08:13:43]Write to MH i2c: E2 08 00 53 2F 80 13 01 00 00 00 00 00 FF [08:13:43]Write i2c OK [08:13:43]MH_I2C_Read... [08:13:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:43]Read from MH i2c: E2 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 [08:13:43]MH_I2C_Read... [08:13:43]Read from MH i2c: E2 0E 00 53 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 08 [08:13:43]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:13:43]wFMCommunicate OK [08:13:43]SAM_PROTO_GetShiftState done [08:13:43]FM_GetShiftState done [08:13:43]opened in 1729470944 [08:13:43]opened+sec_in_day 1729557344 [08:13:43]quantity*price = 49936 [08:13:43]sum+1 = 49938 [08:13:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.03 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 21 21.10.2024 08:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165910 ФПД: 201666561970964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081400&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165910&fm=201666561970964&tin=02508201610067®Number=0000000000091764&sum=49900 [08:13:44]StoreToDocumentArchive [08:13:44]shift 535 fd 165910 [08:13:44]save to /storage/0535/doc_00165910 [08:13:44]save last doc name /storage/0535/doc_00165910 to /storage/kkm_last_doc_name [08:13:44]save OK [08:13:44]Clear old archive folders... [08:13:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:44]tlvbuf is 015BD370 [08:13:44]SAM_PROTO_ClearQueue [08:13:44]wFMCommunicate request_size=4 [08:13:44]MH_SAM_APDU [08:13:44]CAPDU: 80 09 00 00 [08:13:44]Write to MH i2c: E2 08 00 60 2F 80 09 00 00 00 00 00 00 01 [08:13:44]Write i2c OK [08:13:44]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 60 2F 00 90 00 03 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]SAM_PROTO_ClearQueue done [08:13:45]KKMCreateOFDPacket [08:13:45]OFDProtocolAddRootSTLVToBuf [08:13:45]FM_MakeSignedData [08:13:45]FM_MakeSignedData [08:13:45]SAM_PROTO_SignData [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 01 02 [08:13:45]Write to MH i2c: E2 08 00 61 2F 80 0D 01 02 00 00 00 00 09 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 61 2F 00 90 00 04 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=255 [08:13:45]MH_SAM_APDU [08:13: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 88 02 00 35 04 06 00 B7 [08:13:45]Write to MH i2c: E2 02 01 62 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 88 02 00 35 04 06 00 B7 00 00 A7 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 62 2F 00 90 00 05 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=10 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 02 02 05 6A 27 CA 13 14 [08:13:45]Write to MH i2c: E2 0D 00 63 2F 80 0D 02 02 05 00 6A 27 CA 13 14 00 00 98 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 03 00 63 2F 00 90 00 06 [08:13:45]RAPDU: 90 00 [08:13:45]wFMCommunicate OK [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 0D 03 02 [08:13:45]Write to MH i2c: E2 08 00 64 2F 80 0D 03 02 00 00 00 00 0E [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 0B 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 0B 00 64 2F 00 C7 FB C6 C3 B0 BD CB AF 90 00 41 [08:13:45]RAPDU: C7 FB C6 C3 B0 BD CB AF 90 00 [08:13:45]wFMCommunicate OK [08:13:45]SAM_PROTO_SignData done [08:13:45]FM_MakeSignedData done [08:13:45]CreateOFDProtocolMessage [08:13:45]wFMCommunicate request_size=4 [08:13:45]MH_SAM_APDU [08:13:45]CAPDU: 80 11 00 00 [08:13:45]Write to MH i2c: E2 08 00 65 2F 80 11 00 00 00 00 00 00 0E [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:45]Read from MH i2c: E2 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 17 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: E2 17 00 65 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [08:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:13:45]wFMCommunicate OK [08:13:45]CreateOFDProtocolMessage done [08:13:45]OFDSenderStorePacket 165910 [08:13:45]StoreOFDPacket docnum=165910 [08:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 2A 07 01 9C 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 88 02 00 35 04 06 00 B7 6A 27 CA 13 14 C7 FB C6 C3 B0 BD CB AF [08:13:45]CheckFolder [08:13:45]dirname=/storage/ofd_packets [08:13:45]CheckFolder done [08:13:45]ProducePacketName [08:13:45]name=ofd_packets/00165910 [08:13:45]NVStorageSaveData ofd_packets/00165910 [08:13:45]File name is /storage/ofd_packets/00165910 [08:13:45]Write 301 bytes [08:13:45]NVStorageSaveData done [08:13:45]OFDSenderStorePacket done [08:13:45]KKMCreateOFDPacket done [08:13:45]NVStorageSaveData kkm_last_timestamp [08:13:45]File name is /storage/kkm_last_timestamp [08:13:45]Write 4 bytes [08:13:45]NVStorageSaveData done [08:13:45]ExternCall_PrintAddStr [08:13:45]wPrintStart [08:13:45]Write to MH i2c: 01 00 00 66 2F 95 [08:13:45]Write i2c OK [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: 01 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: 01 07 00 [08:13:45]MH_I2C_Read... [08:13:45]Read from MH i2c: 01 07 00 66 2F 00 00 00 00 00 FF 0F AA [08:13:45]RasterBufferAndPrint [08:13:45]line Счет N : (1)220478 [08:13:45]line ИНН: 02508201610067 [08:13:45]line Контрольно-Кассовый Чек [08:13:45]line ПРОДАЖА [08:13:45]line ТРК (МРК, ГНК) : 14 [08:13:45]line Товар: 2710124500 [08:13:45]line Аи-95-К-5 [08:13:45]line 6.730 * 74.20 [08:13:45]line = 499.37 [08:13:45]line НДС 12% НСП 1% [08:13:45]line > о реализуемом товаре [08:13:45]line ОКРУГЛЕНИЕ: -0.37 [08:13:45]line ИТОГО: 499.00 [08:13:45]line Внесено: 500.00 [08:13:45]line СДАЧА: 1.00 [08:13:45]line НСП 1% : 4.42 [08:13:45]line НДС 12% : 53.03 [08:13:45]line Наличными: 499.00 [08:13:45]line Безнал.: 0.00 [08:13:45]line Место: АЗС № 161 "Партнер Нефть" [08:13:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:13:45]line СНО: Общий режим [08:13:45]line Чек 21 21.10.2024 08:14 [08:13:45]line Смена: 535 ФФД: 1.0 [08:13:45]line ЗНМ: 0300000104 [08:13:45]line РНМ: 0000000000091764 [08:13:45]line Версия ККМ: 001 [08:13:45]line ФМ: 0000000000871759 [08:13:45]line ФД: 165910 [08:13:45]line ФПД: 201666561970964 [08:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081400&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165910&fm=201666561970964&tin=02508201610067®Number=0000000000091764&sum=49900 [08:13:45]OFD Sender: Processing packet 165910 [packets to send 48, broken 47] [08:13:45]ProducePacketName [08:13:45]name=ofd_packets/00165910 [08:13:45]OFD Sender: To server: pG, [08:13:45]CommunicateWithHost lk.salyk.kg:30040 [08:13:45]ConnectInit lk.salyk.kg [08:13:45]written 0, free lines is 4095 [08:13:45]Connected sock=7 [08:13:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 2A 07 01 9C 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 48 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 88 02 00 35 04 06 00 B7 6A 27 CA 13 14 C7 FB C6 C3 B0 BD CB AF [08:13:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 A8 47 00 DC EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 88 02 00 F4 03 04 00 B8 B3 15 67 B6 04 01 00 00 D7 62 D9 A8 E9 14 59 D6 [08:13:46]CommunicateWithHost err = 0 [08:13:46]CheckOFDResponse [08:13:46]1017 (14) - 77093643461234 [08:13:46]1041 (16) - 0000000000871759 [08:13:46]1040 (4) - 165910 [08:13:46]1012 (4) - 21.10.2024 01:51 [08:13:46]1206 (1) - 0 [08:13:46]OFD Sender: Remove packet 165910 [08:13:46]ProducePacketName [08:13:46]name=ofd_packets/00165910 [08:13:46]NVStorageDeleteData [08:13:46]Write to MH i2c: 01 00 00 91 2F C0 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: 01 07 00 91 2F 00 00 00 00 00 C2 0C 95 [08:13:46]RasterBufferAndPrint [08:13:46]line [08:13:46]line [08:13:46]line [08:13:46]line [08:13:46]line [08:13:46]written 0, free lines is 3274 [08:13:46]MH_Cut [08:13:46]Write to MH i2c: D1 01 00 98 2F 01 99 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: D1 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: D1 01 00 [08:13:46]MH_I2C_Read... [08:13:46]Read from MH i2c: D1 01 00 98 2F 00 98 [08:13:46]Write to MH i2c: 01 00 00 99 2F C8 [08:13:46]Write i2c OK [08:13:46]MH_I2C_Read... [08:13:46]OFD Sender: No OFD packet to send [08:13:47]*** Cut start [08:13:47]*** Partial cut [08:13:47]*** CUTSNS_PIN = 1 [08:13:47]*** CUTSNS_PIN = 0 [08:13:47]*** Brake cut motor [08:13:47]Read from MH i2c: 01 [08:13:47]MH_I2C_Read... [08:13:47]*** Stop cut motor [08:13:47]*** Cut end [08:13:47]Read from MH i2c: 01 07 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: 01 07 00 99 2F 00 00 00 00 00 FF 0F DD [08:13:47]process_action close_receipt done [08:13:47]requested_data is exist [08:13:47]produce_requested_data [08:13:47]requested_item fm.sn is exist - process it [08:13:47]wFMCommunicate request_size=4 [08:13:47]MH_SAM_APDU [08:13:47]CAPDU: 80 11 00 00 [08:13:47]Write to MH i2c: E2 08 00 9A 2F 80 11 00 00 00 00 00 00 43 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:47]Read from MH i2c: E2 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 17 00 [08:13:47]MH_I2C_Read... [08:13:47]Read from MH i2c: E2 17 00 9A 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [08:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:13:47]wFMCommunicate OK [08:13:47]requested_item fd.num is exist - process it [08:13:47]SAM_PROTO_GetFieldsCounters [08:13:47]wFMCommunicate request_size=4 [08:13:47]MH_SAM_APDU [08:13:47]CAPDU: 80 13 00 00 [08:13:47]Write to MH i2c: E2 08 00 9B 2F 80 13 00 00 00 00 00 00 46 [08:13:47]Write i2c OK [08:13:47]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 62 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 62 00 9B 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [08:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetFieldsCounters done [08:13:48]requested_item shift.num is exist - process it [08:13:48]requested_item shift.opened is exist - process it [08:13:48]req_shift_opened [08:13:48]FM_GetShiftState [08:13:48]SAM_PROTO_GetShiftState [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 01 00 [08:13:48]Write to MH i2c: E2 08 00 9C 2F 80 13 01 00 00 00 00 00 48 [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 9C 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 51 [08:13:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetShiftState done [08:13:48]FM_GetShiftState done [08:13:48]req_shift_opened done [08:13:48]requested_item shift.open_date is exist - process it [08:13:48]req_shift_open_date [08:13:48]req_shift_open_date done [08:13:48]produce_requested_data done [08:13:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165910,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:13:48]process_action_free close_receipt [08:13:48]json_value_free [08:13:48]json_value_free done [08:13:48]process_json_proto returns [08:13:48]Send response to host [08:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165910,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:13:48]free response buf [08:13:48]execute_script done [08:13:48]execute_script returns [08:13:48]free content buf [08:13:48]Sock 5.Close socket [08:13:48]Sock 5.Thread stoped [08:13:48]accept exits with 6 [08:13:48]New connection [08:13:48]New thread 3066776932 created [08:13:48]Thread 3066920292 joined [08:13:48]Waiting for new connection... [08:13:48] Sock 6.Parse request [08:13:48]Sock 6.Check first char [08:13:48]Sock 6.First char is OK [08:13:48]request: POST /json_proto HTTP/1.0 [08:13:48]Method: POST [08:13:48]URL: /json_proto [08:13:48]Method is POST - this is cgi request [08:13:48]url: /json_proto [08:13:48]query_string will be loaded in cgi processing [08:13:48]execute_cgi json_proto POST (null) [08:13:48]execute_cgi path=json_proto method=POST [08:13:48]POST find Content-Length [08:13:48]Host: 172.17.53.195:8080 [08:13:48]Content-Length: 677 [08:13:48]Content-Type: application/json [08:13:48] [08:13:48]POST finish read [08:13:48]Found Content-Length = 677 [08:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:48]execute_script... [08:13: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)220477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:48]POST & json_proto [08:13:48]process_json_proto [08:13:48]json parsed OK: [08:13:48]protocol is kg_v1.0 [08:13:48]action value=close_receipt [08:13:48]process_action close_receipt [08:13:48]cmd_close_receipt [08:13:48]MH_GetDate [08:13:48]Write to MH i2c: F0 00 00 9D 2F BB [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: F0 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: F0 09 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: F0 09 00 9D 2F 00 4D 0D 16 67 21 48 4A 65 B3 [08:13:48]GetLastDocTimeStamp 1729498440 [08:13:48]current date 1729498445 [08:13:48]FM_GetShiftState [08:13:48]SAM_PROTO_GetShiftState [08:13:48]wFMCommunicate request_size=4 [08:13:48]MH_SAM_APDU [08:13:48]CAPDU: 80 13 01 00 [08:13:48]Write to MH i2c: E2 08 00 9E 2F 80 13 01 00 00 00 00 00 4A [08:13:48]Write i2c OK [08:13:48]MH_I2C_Read... [08:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:48]Read from MH i2c: E2 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 [08:13:48]MH_I2C_Read... [08:13:48]Read from MH i2c: E2 0E 00 9E 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 53 [08:13:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:13:48]wFMCommunicate OK [08:13:48]SAM_PROTO_GetShiftState done [08:13:48]FM_GetShiftState done [08:13:48]opened in 1729470944 [08:13:48]opened+sec_in_day 1729557344 [08:13:48]quantity*price = 50041 [08:13:48]sum+1 = 50042 [08:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 22 21.10.2024 08:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165911 ФПД: 57080736745752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165911&fm=57080736745752&tin=02508201610067®Number=0000000000091764&sum=50000 [08:13:49]StoreToDocumentArchive [08:13:49]shift 535 fd 165911 [08:13:49]save to /storage/0535/doc_00165911 [08:13:49]save last doc name /storage/0535/doc_00165911 to /storage/kkm_last_doc_name [08:13:49]save OK [08:13:49]Clear old archive folders... [08:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:13:49]tlvbuf is 01897370 [08:13:49]SAM_PROTO_ClearQueue [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 09 00 00 [08:13:49]Write to MH i2c: E2 08 00 AB 2F 80 09 00 00 00 00 00 00 4C [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 03 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 03 00 AB 2F 00 90 00 4E [08:13:49]RAPDU: 90 00 [08:13:49]wFMCommunicate OK [08:13:49]SAM_PROTO_ClearQueue done [08:13:49]KKMCreateOFDPacket [08:13:49]OFDProtocolAddRootSTLVToBuf [08:13:49]FM_MakeSignedData [08:13:49]FM_MakeSignedData [08:13:49]SAM_PROTO_SignData [08:13:49]wFMCommunicate request_size=4 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 0D 01 02 [08:13:49]Write to MH i2c: E2 08 00 AC 2F 80 0D 01 02 00 00 00 00 54 [08:13:49]Write i2c OK [08:13:49]MH_I2C_Read... [08:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:49]Read from MH i2c: E2 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 03 00 [08:13:49]MH_I2C_Read... [08:13:49]Read from MH i2c: E2 03 00 AC 2F 00 90 00 4F [08:13:49]RAPDU: 90 00 [08:13:49]wFMCommunicate OK [08:13:49]wFMCommunicate request_size=255 [08:13:49]MH_SAM_APDU [08:13:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 4D 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 88 02 00 35 04 06 00 33 [08:13:50]Write to MH i2c: E2 02 01 AD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4D 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 88 02 00 35 04 06 00 33 00 00 C4 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 AD 2F 00 90 00 50 [08:13:50]RAPDU: 90 00 [08:13:50]wFMCommunicate OK [08:13:50]wFMCommunicate request_size=10 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 0D 02 02 05 EA 25 09 89 18 [08:13:50]Write to MH i2c: E2 0D 00 AE 2F 80 0D 02 02 05 00 EA 25 09 89 18 00 00 1A [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 03 00 AE 2F 00 90 00 51 [08:13:50]RAPDU: 90 00 [08:13:50]wFMCommunicate OK [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 0D 03 02 [08:13:50]Write to MH i2c: E2 08 00 AF 2F 80 0D 03 02 00 00 00 00 59 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0B 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 0B 00 AF 2F 00 68 64 59 9A 5E 73 2C 78 90 00 8E [08:13:50]RAPDU: 68 64 59 9A 5E 73 2C 78 90 00 [08:13:50]wFMCommunicate OK [08:13:50]SAM_PROTO_SignData done [08:13:50]FM_MakeSignedData done [08:13:50]CreateOFDProtocolMessage [08:13:50]wFMCommunicate request_size=4 [08:13:50]MH_SAM_APDU [08:13:50]CAPDU: 80 11 00 00 [08:13:50]Write to MH i2c: E2 08 00 B0 2F 80 11 00 00 00 00 00 00 59 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:50]Read from MH i2c: E2 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 17 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: E2 17 00 B0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [08:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:13:50]wFMCommunicate OK [08:13:50]CreateOFDProtocolMessage done [08:13:50]OFDSenderStorePacket 165911 [08:13:50]StoreOFDPacket docnum=165911 [08:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 50 07 01 42 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4D 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 88 02 00 35 04 06 00 33 EA 25 09 89 18 68 64 59 9A 5E 73 2C 78 [08:13:50]CheckFolder [08:13:50]dirname=/storage/ofd_packets [08:13:50]CheckFolder done [08:13:50]ProducePacketName [08:13:50]name=ofd_packets/00165911 [08:13:50]NVStorageSaveData ofd_packets/00165911 [08:13:50]File name is /storage/ofd_packets/00165911 [08:13:50]Write 301 bytes [08:13:50]NVStorageSaveData done [08:13:50]OFDSenderStorePacket done [08:13:50]KKMCreateOFDPacket done [08:13:50]NVStorageSaveData kkm_last_timestamp [08:13:50]File name is /storage/kkm_last_timestamp [08:13:50]Write 4 bytes [08:13:50]NVStorageSaveData done [08:13:50]OFD Sender: Processing packet 165911 [packets to send 48, broken 47] [08:13:50]ProducePacketName [08:13:50]name=ofd_packets/00165911 [08:13:50]OFD Sender: To server: pG, [08:13:50]CommunicateWithHost lk.salyk.kg:30040 [08:13:50]ConnectInit lk.salyk.kg [08:13:50]ExternCall_PrintAddStr [08:13:50]wPrintStart [08:13:50]Write to MH i2c: 01 00 00 B1 2F E0 [08:13:50]Write i2c OK [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: 01 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: 01 07 00 [08:13:50]MH_I2C_Read... [08:13:50]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 FF 0F F5 [08:13:50]RasterBufferAndPrint [08:13:50]line Счет N : (1)220477 [08:13:50]line ИНН: 02508201610067 [08:13:50]line Контрольно-Кассовый Чек [08:13:50]line ПРОДАЖА [08:13:50]line ТРК (МРК, ГНК) : 23 [08:13:50]line Товар: 2710124130 [08:13:50]line Аи-92-К-5 [08:13:50]line 7.480 * 66.90 [08:13:50]line = 500.41 [08:13:50]line НДС 12% НСП 1% [08:13:50]line > о реализуемом товаре [08:13:50]line ОКРУГЛЕНИЕ: -0.41 [08:13:50]line ИТОГО: 500.00 [08:13:50]line Внесено: 500.00 [08:13:50]line СДАЧА: 0.00 [08:13:50]line НСП 1% : 4.43 [08:13:50]line НДС 12% : 53.14 [08:13:50]line Наличными: 500.00 [08:13:50]line Безнал.: 0.00 [08:13:50]line Место: АЗС № 161 "Партнер Нефть" [08:13:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:13:50]line СНО: Общий режим [08:13:50]line Чек 22 21.10.2024 08:14 [08:13:50]line Смена: 535 ФФД: 1.0 [08:13:50]line ЗНМ: 0300000104 [08:13:50]line РНМ: 0000000000091764 [08:13:50]line Версия ККМ: 001 [08:13:50]line ФМ: 0000000000871759 [08:13:50]line ФД: 165911 [08:13:50]line ФПД: 57080736745752 [08:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165911&fm=57080736745752&tin=02508201610067®Number=0000000000091764&sum=50000 [08:13:50]Connected sock=9 [08:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 50 07 01 42 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 4D 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 88 02 00 35 04 06 00 33 EA 25 09 89 18 68 64 59 9A 5E 73 2C 78 [08:13:51]written 0, free lines is 4095 [08:13:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 BF 47 00 CC 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 88 02 00 F4 03 04 00 BD B3 15 67 B6 04 01 00 00 CE 07 9E D2 DD AE 34 D1 [08:13:51]CommunicateWithHost err = 0 [08:13:51]CheckOFDResponse [08:13:51]1017 (14) - 77093643461234 [08:13:51]1041 (16) - 0000000000871759 [08:13:51]1040 (4) - 165911 [08:13:51]1012 (4) - 21.10.2024 01:51 [08:13:51]1206 (1) - 0 [08:13:51]OFD Sender: Remove packet 165911 [08:13:51]ProducePacketName [08:13:51]name=ofd_packets/00165911 [08:13:51]NVStorageDeleteData [08:13:51]Write to MH i2c: 01 00 00 DC 2F 0B [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: 01 07 00 DC 2F 00 00 00 00 00 B8 0C D6 [08:13:51]RasterBufferAndPrint [08:13:51]line [08:13:51]line [08:13:51]line [08:13:51]line [08:13:51]line [08:13:51]written 0, free lines is 3272 [08:13:51]MH_Cut [08:13:51]Write to MH i2c: D1 01 00 E3 2F 01 E4 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: D1 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: D1 01 00 [08:13:51]MH_I2C_Read... [08:13:51]Read from MH i2c: D1 01 00 E3 2F 00 E3 [08:13:51]Write to MH i2c: 01 00 00 E4 2F 13 [08:13:51]Write i2c OK [08:13:51]MH_I2C_Read... [08:13:51]OFD Sender: No OFD packet to send [08:13:52]*** Cut start [08:13:52]*** Partial cut [08:13:52]*** CUTSNS_PIN = 1 [08:13:52]*** CUTSNS_PIN = 0 [08:13:52]*** Brake cut motor [08:13:52]Read from MH i2c: 01 [08:13:52]MH_I2C_Read... [08:13:52]*** Stop cut motor [08:13:53]*** Cut end [08:13:53]Read from MH i2c: 01 07 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: 01 07 00 E4 2F 00 00 00 00 00 FF 0F 28 [08:13:53]process_action close_receipt done [08:13:53]requested_data is exist [08:13:53]produce_requested_data [08:13:53]requested_item fm.sn is exist - process it [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 11 00 00 [08:13:53]Write to MH i2c: E2 08 00 E5 2F 80 11 00 00 00 00 00 00 8E [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 17 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 17 00 E5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [08:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:13:53]wFMCommunicate OK [08:13:53]requested_item fd.num is exist - process it [08:13:53]SAM_PROTO_GetFieldsCounters [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 00 00 [08:13:53]Write to MH i2c: E2 08 00 E6 2F 80 13 00 00 00 00 00 00 91 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:53]Read from MH i2c: E2 62 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 62 00 E6 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [08:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetFieldsCounters done [08:13:53]requested_item shift.num is exist - process it [08:13:53]requested_item shift.opened is exist - process it [08:13:53]req_shift_opened [08:13:53]FM_GetShiftState [08:13:53]SAM_PROTO_GetShiftState [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 13 01 00 [08:13:53]Write to MH i2c: E2 08 00 E7 2F 80 13 01 00 00 00 00 00 93 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0E 00 E7 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9C [08:13:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_GetShiftState done [08:13:53]FM_GetShiftState done [08:13:53]req_shift_opened done [08:13:53]requested_item shift.open_date is exist - process it [08:13:53]req_shift_open_date [08:13:53]req_shift_open_date done [08:13:53]produce_requested_data done [08:13:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165911,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:13:53]process_action_free close_receipt [08:13:53]json_value_free [08:13:53]json_value_free done [08:13:53]process_json_proto returns [08:13:53]Send response to host [08:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165911,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:13:53]free response buf [08:13:53]execute_script done [08:13:53]execute_script returns [08:13:53]free content buf [08:13:53]Sock 6.Close socket [08:13:53]Sock 6.Thread stoped [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:22]accept exits with 5 [08:16:22]New connection [08:16:22]New thread 3066920292 created [08:16:22]Thread 3066776932 joined [08:16:22]Waiting for new connection... [08:16:22] Sock 5.Parse request [08:16:22]Sock 5.Check first char [08:16:22]Sock 5.First char is OK [08:16:22]request: POST /json_proto HTTP/1.0 [08:16:22]Method: POST [08:16:22]URL: /json_proto [08:16:22]Method is POST - this is cgi request [08:16:22]url: /json_proto [08:16:22]query_string will be loaded in cgi processing [08:16:22]execute_cgi json_proto POST (null) [08:16:22]execute_cgi path=json_proto method=POST [08:16:22]POST find Content-Length [08:16:22]Host: 172.17.53.195:8080 [08:16:22]Content-Length: 682 [08:16:22]Content-Type: application/json [08:16:22] [08:16:22]POST finish read [08:16:22]Found Content-Length = 682 [08:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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:16:22]execute_script... [08:16: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)220479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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:16:22]POST & json_proto [08:16:22]process_json_proto [08:16:22]json parsed OK: [08:16:22]protocol is kg_v1.0 [08:16:22]action value=close_receipt [08:16:22]process_action close_receipt [08:16:22]cmd_close_receipt [08:16:22]MH_GetDate [08:16:22]Write to MH i2c: F0 00 00 E8 2F 06 [08:16:22]Write i2c OK [08:16:22]MH_I2C_Read... [08:16:22]Read from MH i2c: F0 [08:16:22]MH_I2C_Read... [08:16:22]Read from MH i2c: F0 09 00 [08:16:22]MH_I2C_Read... [08:16:22]Read from MH i2c: F0 09 00 E8 2F 00 E7 0D 16 67 21 48 4A 65 98 [08:16:22]GetLastDocTimeStamp 1729498445 [08:16:22]current date 1729498599 [08:16:22]FM_GetShiftState [08:16:22]SAM_PROTO_GetShiftState [08:16:22]wFMCommunicate request_size=4 [08:16:22]MH_SAM_APDU [08:16:22]CAPDU: 80 13 01 00 [08:16:22]Write to MH i2c: E2 08 00 E9 2F 80 13 01 00 00 00 00 00 95 [08:16:22]Write i2c OK [08:16:22]MH_I2C_Read... [08:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:22]Read from MH i2c: E2 [08:16:22]MH_I2C_Read... [08:16:22]Read from MH i2c: E2 0E 00 [08:16:22]MH_I2C_Read... [08:16:22]Read from MH i2c: E2 0E 00 E9 2F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9E [08:16:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:16:22]wFMCommunicate OK [08:16:22]SAM_PROTO_GetShiftState done [08:16:22]FM_GetShiftState done [08:16:22]opened in 1729470944 [08:16:22]opened+sec_in_day 1729557344 [08:16:22]quantity*price = 100021 [08:16:22]sum+1 = 100023 [08:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 23 21.10.2024 08:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165912 ФПД: 271779195454025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165912&fm=271779195454025&tin=02508201610067®Number=0000000000091764&sum=100000 [08:16:23]StoreToDocumentArchive [08:16:23]shift 535 fd 165912 [08:16:23]save to /storage/0535/doc_00165912 [08:16:23]save last doc name /storage/0535/doc_00165912 to /storage/kkm_last_doc_name [08:16:23]save OK [08:16:23]Clear old archive folders... [08:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:16:23]tlvbuf is 016AB750 [08:16:23]SAM_PROTO_ClearQueue [08:16:23]wFMCommunicate request_size=4 [08:16:23]MH_SAM_APDU [08:16:23]CAPDU: 80 09 00 00 [08:16:23]Write to MH i2c: E2 08 00 F6 2F 80 09 00 00 00 00 00 00 97 [08:16:23]Write i2c OK [08:16:23]MH_I2C_Read... [08:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:23]Read from MH i2c: E2 [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: E2 03 00 [08:16:23]MH_I2C_Read... [08:16:23]Read from MH i2c: E2 03 00 F6 2F 00 90 00 99 [08:16:23]RAPDU: 90 00 [08:16:23]wFMCommunicate OK [08:16:23]SAM_PROTO_ClearQueue done [08:16:23]KKMCreateOFDPacket [08:16:23]OFDProtocolAddRootSTLVToBuf [08:16:23]FM_MakeSignedData [08:16:23]FM_MakeSignedData [08:16:23]SAM_PROTO_SignData [08:16:23]wFMCommunicate request_size=4 [08:16:23]MH_SAM_APDU [08:16:23]CAPDU: 80 0D 01 02 [08:16:23]Write to MH i2c: E2 08 00 F7 2F 80 0D 01 02 00 00 00 00 9F [08:16:23]Write i2c OK [08:16:23]MH_I2C_Read... [08:16:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:24]Read from MH i2c: E2 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 03 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 03 00 F7 2F 00 90 00 9A [08:16:24]RAPDU: 90 00 [08:16:24]wFMCommunicate OK [08:16:24]wFMCommunicate request_size=255 [08:16:24]MH_SAM_APDU [08: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 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 17 00 00 00 F4 03 04 00 E7 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 88 02 00 35 04 06 00 F7 [08:16:24]Write to MH i2c: E2 02 01 F8 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 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 17 00 00 00 F4 03 04 00 E7 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 88 02 00 35 04 06 00 F7 00 00 8C [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:24]Read from MH i2c: E2 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 03 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 03 00 F8 2F 00 90 00 9B [08:16:24]RAPDU: 90 00 [08:16:24]wFMCommunicate OK [08:16:24]wFMCommunicate request_size=10 [08:16:24]MH_SAM_APDU [08:16:24]CAPDU: 80 0D 02 02 05 2E 86 67 02 49 [08:16:24]Write to MH i2c: E2 0D 00 F9 2F 80 0D 02 02 05 00 2E 86 67 02 49 00 00 12 [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:24]Read from MH i2c: E2 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 03 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 03 00 F9 2F 00 90 00 9C [08:16:24]RAPDU: 90 00 [08:16:24]wFMCommunicate OK [08:16:24]wFMCommunicate request_size=4 [08:16:24]MH_SAM_APDU [08:16:24]CAPDU: 80 0D 03 02 [08:16:24]Write to MH i2c: E2 08 00 FA 2F 80 0D 03 02 00 00 00 00 A4 [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:24]Read from MH i2c: E2 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 0B 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 0B 00 FA 2F 00 B6 66 58 7D D0 9F 9A C8 90 00 67 [08:16:24]RAPDU: B6 66 58 7D D0 9F 9A C8 90 00 [08:16:24]wFMCommunicate OK [08:16:24]SAM_PROTO_SignData done [08:16:24]FM_MakeSignedData done [08:16:24]CreateOFDProtocolMessage [08:16:24]wFMCommunicate request_size=4 [08:16:24]MH_SAM_APDU [08:16:24]CAPDU: 80 11 00 00 [08:16:24]Write to MH i2c: E2 08 00 FB 2F 80 11 00 00 00 00 00 00 A4 [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:24]Read from MH i2c: E2 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 17 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: E2 17 00 FB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [08:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:16:24]wFMCommunicate OK [08:16:24]CreateOFDProtocolMessage done [08:16:24]OFDSenderStorePacket 165912 [08:16:24]StoreOFDPacket docnum=165912 [08:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 61 07 01 31 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 17 00 00 00 F4 03 04 00 E7 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 88 02 00 35 04 06 00 F7 2E 86 67 02 49 B6 66 58 7D D0 9F 9A C8 [08:16:24]CheckFolder [08:16:24]dirname=/storage/ofd_packets [08:16:24]CheckFolder done [08:16:24]ProducePacketName [08:16:24]name=ofd_packets/00165912 [08:16:24]NVStorageSaveData ofd_packets/00165912 [08:16:24]File name is /storage/ofd_packets/00165912 [08:16:24]Write 301 bytes [08:16:24]NVStorageSaveData done [08:16:24]OFDSenderStorePacket done [08:16:24]KKMCreateOFDPacket done [08:16:24]NVStorageSaveData kkm_last_timestamp [08:16:24]File name is /storage/kkm_last_timestamp [08:16:24]Write 4 bytes [08:16:24]NVStorageSaveData done [08:16:24]ExternCall_PrintAddStr [08:16:24]wPrintStart [08:16:24]Write to MH i2c: 01 00 00 FC 2F 2B [08:16:24]Write i2c OK [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: 01 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: 01 07 00 [08:16:24]MH_I2C_Read... [08:16:24]Read from MH i2c: 01 07 00 FC 2F 00 00 00 00 00 FF 0F 40 [08:16:24]RasterBufferAndPrint [08:16:24]line Счет N : (1)220479 [08:16:24]line ИНН: 02508201610067 [08:16:24]line Контрольно-Кассовый Чек [08:16:24]line ПРОДАЖА [08:16:24]line ТРК (МРК, ГНК) : 24 [08:16:24]line Товар: 2710124500 [08:16:24]line Аи-95-К-5 [08:16:24]line 13.480 * 74.20 [08:16:24]line = 1000.22 [08:16:24]line НДС 12% НСП 1% [08:16:24]line > о реализуемом товаре [08:16:24]line ОКРУГЛЕНИЕ: -0.22 [08:16:24]line ИТОГО: 1000.00 [08:16:24]line Внесено: 1000.00 [08:16:24]line СДАЧА: 0.00 [08:16:24]line НСП 1% : 8.85 [08:16:24]line НДС 12% : 106.22 [08:16:24]line Наличными: 1000.00 [08:16:24]line Безнал.: 0.00 [08:16:24]line Место: АЗС № 161 "Партнер Нефть" [08:16:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:16:24]line СНО: Общий режим [08:16:24]line Чек 23 21.10.2024 08:16 [08:16:24]line Смена: 535 ФФД: 1.0 [08:16:24]line ЗНМ: 0300000104 [08:16:24]line РНМ: 0000000000091764 [08:16:24]line Версия ККМ: 001 [08:16:24]line ФМ: 0000000000871759 [08:16:24]line ФД: 165912 [08:16:24]line ФПД: 271779195454025 [08:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T081639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165912&fm=271779195454025&tin=02508201610067®Number=0000000000091764&sum=100000 [08:16:24]OFD Sender: Processing packet 165912 [packets to send 48, broken 47] [08:16:24]ProducePacketName [08:16:24]name=ofd_packets/00165912 [08:16:24]OFD Sender: To server: pG, [08:16:24]CommunicateWithHost lk.salyk.kg:30040 [08:16:24]ConnectInit lk.salyk.kg [08:16:24]written 0, free lines is 4095 [08:16:24]Connected sock=7 [08:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 61 07 01 31 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 17 00 00 00 F4 03 04 00 E7 0D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 88 02 00 35 04 06 00 F7 2E 86 67 02 49 B6 66 58 7D D0 9F 9A C8 [08: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 35 39 4F 00 00 00 F4 20 47 00 D0 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 88 02 00 F4 03 04 00 57 B4 15 67 B6 04 01 00 00 E1 61 9C 63 77 C4 10 8D [08:16:25]CommunicateWithHost err = 0 [08:16:25]CheckOFDResponse [08:16:25]1017 (14) - 77093643461234 [08:16:25]1041 (16) - 0000000000871759 [08:16:25]1040 (4) - 165912 [08:16:25]1012 (4) - 21.10.2024 01:54 [08:16:25]1206 (1) - 0 [08:16:25]OFD Sender: Remove packet 165912 [08:16:25]ProducePacketName [08:16:25]name=ofd_packets/00165912 [08:16:25]NVStorageDeleteData [08:16:25]Write to MH i2c: 01 00 00 27 30 57 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: 01 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: 01 07 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: 01 07 00 27 30 00 00 00 00 00 BB 0C 25 [08:16:25]RasterBufferAndPrint [08:16:25]line [08:16:25]line [08:16:25]line [08:16:25]line [08:16:25]line [08:16:25]written 0, free lines is 3266 [08:16:25]MH_Cut [08:16:25]Write to MH i2c: D1 01 00 2E 30 01 30 [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: D1 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: D1 01 00 [08:16:25]MH_I2C_Read... [08:16:25]Read from MH i2c: D1 01 00 2E 30 00 2F [08:16:25]Write to MH i2c: 01 00 00 2F 30 5F [08:16:25]Write i2c OK [08:16:25]MH_I2C_Read... [08:16:25]OFD Sender: No OFD packet to send [08:16:26]*** Cut start [08:16:26]*** Partial cut [08:16:26]*** CUTSNS_PIN = 1 [08:16:26]*** CUTSNS_PIN = 0 [08:16:26]*** Brake cut motor [08:16:26]Read from MH i2c: 01 [08:16:26]MH_I2C_Read... [08:16:26]*** Stop cut motor [08:16:26]*** Cut end [08:16:26]Read from MH i2c: 01 07 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: 01 07 00 2F 30 00 00 00 00 00 FF 0F 74 [08:16:26]process_action close_receipt done [08:16:26]requested_data is exist [08:16:26]produce_requested_data [08:16:26]requested_item fm.sn is exist - process it [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 11 00 00 [08:16:26]Write to MH i2c: E2 08 00 30 30 80 11 00 00 00 00 00 00 DA [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 17 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 17 00 30 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [08:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:16:26]wFMCommunicate OK [08:16:26]requested_item fd.num is exist - process it [08:16:26]SAM_PROTO_GetFieldsCounters [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 13 00 00 [08:16:26]Write to MH i2c: E2 08 00 31 30 80 13 00 00 00 00 00 00 DD [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:26]Read from MH i2c: E2 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 62 00 [08:16:26]MH_I2C_Read... [08:16:26]Read from MH i2c: E2 62 00 31 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [08:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:26]wFMCommunicate OK [08:16:26]SAM_PROTO_GetFieldsCounters done [08:16:26]requested_item shift.num is exist - process it [08:16:26]requested_item shift.opened is exist - process it [08:16:26]req_shift_opened [08:16:26]FM_GetShiftState [08:16:26]SAM_PROTO_GetShiftState [08:16:26]wFMCommunicate request_size=4 [08:16:26]MH_SAM_APDU [08:16:26]CAPDU: 80 13 01 00 [08:16:26]Write to MH i2c: E2 08 00 32 30 80 13 01 00 00 00 00 00 DF [08:16:26]Write i2c OK [08:16:26]MH_I2C_Read... [08:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:27]Read from MH i2c: E2 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 32 30 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E8 [08:16:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:16:27]wFMCommunicate OK [08:16:27]SAM_PROTO_GetShiftState done [08:16:27]FM_GetShiftState done [08:16:27]req_shift_opened done [08:16:27]requested_item shift.open_date is exist - process it [08:16:27]req_shift_open_date [08:16:27]req_shift_open_date done [08:16:27]produce_requested_data done [08:16:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165912,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:16:27]process_action_free close_receipt [08:16:27]json_value_free [08:16:27]json_value_free done [08:16:27]process_json_proto returns [08:16:27]Send response to host [08:16:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165912,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:16:27]free response buf [08:16:27]execute_script done [08:16:27]execute_script returns [08:16:27]free content buf [08:16:27]Sock 5.Close socket [08:16:27]Sock 5.Thread stoped [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [08:24:01]OFD Sender: No OFD packet to send [08:24:06]OFD Sender: No OFD packet to send [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:46]OFD Sender: No OFD packet to send [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:35]accept exits with 6 [08:27:35]New connection [08:27:35]New thread 3066776932 created [08:27:35]Thread 3066920292 joined [08:27:35]Waiting for new connection... [08:27:35] Sock 6.Parse request [08:27:35]Sock 6.Check first char [08:27:35]Sock 6.First char is OK [08:27:35]request: POST /json_proto HTTP/1.0 [08:27:35]Method: POST [08:27:35]URL: /json_proto [08:27:35]Method is POST - this is cgi request [08:27:35]url: /json_proto [08:27:35]query_string will be loaded in cgi processing [08:27:35]execute_cgi json_proto POST (null) [08:27:35]execute_cgi path=json_proto method=POST [08:27:35]POST find Content-Length [08:27:35]Host: 172.17.53.195:8080 [08:27:35]Content-Length: 766 [08:27:35]Content-Type: application/json [08:27:35] [08:27:35]POST finish read [08:27:35]Found Content-Length = 766 [08:27:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:35]execute_script... [08:27: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)220480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:35]POST & json_proto [08:27:35]process_json_proto [08:27:35]json parsed OK: [08:27:35]protocol is kg_v1.0 [08:27:35]action value=close_receipt [08:27:35]process_action close_receipt [08:27:35]cmd_close_receipt [08:27:35]MH_GetDate [08:27:35]Write to MH i2c: F0 00 00 33 30 52 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: F0 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: F0 09 00 [08:27:35]MH_I2C_Read... [08:27:35]Read from MH i2c: F0 09 00 33 30 00 89 10 16 67 21 48 4A 65 89 [08:27:35]GetLastDocTimeStamp 1729498599 [08:27:35]current date 1729499273 [08:27:35]FM_GetShiftState [08:27:35]SAM_PROTO_GetShiftState [08:27:35]wFMCommunicate request_size=4 [08:27:35]MH_SAM_APDU [08:27:35]CAPDU: 80 13 01 00 [08:27:35]Write to MH i2c: E2 08 00 34 30 80 13 01 00 00 00 00 00 E1 [08:27:35]Write i2c OK [08:27:35]MH_I2C_Read... [08:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:36]Read from MH i2c: E2 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 0E 00 [08:27:36]MH_I2C_Read... [08:27:36]Read from MH i2c: E2 0E 00 34 30 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EA [08:27:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:27:36]wFMCommunicate OK [08:27:36]SAM_PROTO_GetShiftState done [08:27:36]FM_GetShiftState done [08:27:36]opened in 1729470944 [08:27:36]opened+sec_in_day 1729557344 [08:27:36]quantity*price = 30038 [08:27:36]sum+1 = 30039 [08:27:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 24 21.10.2024 08:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165913 ФПД: 91292477526467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082753&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165913&fm=91292477526467&tin=02508201610067®Number=0000000000091764&sum=30038 [08:27:37]StoreToDocumentArchive [08:27:37]shift 535 fd 165913 [08:27:37]save to /storage/0535/doc_00165913 [08:27:37]save last doc name /storage/0535/doc_00165913 to /storage/kkm_last_doc_name [08:27:37]save OK [08:27:37]Clear old archive folders... [08:27:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:27:37]tlvbuf is 014B80E0 [08:27:37]SAM_PROTO_ClearQueue [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 09 00 00 [08:27:37]Write to MH i2c: E2 08 00 41 30 80 09 00 00 00 00 00 00 E3 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 41 30 00 90 00 E5 [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_ClearQueue done [08:27:37]KKMCreateOFDPacket [08:27:37]OFDProtocolAddRootSTLVToBuf [08:27:37]FM_MakeSignedData [08:27:37]FM_MakeSignedData [08:27:37]SAM_PROTO_SignData [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 0D 01 02 [08:27:37]Write to MH i2c: E2 08 00 42 30 80 0D 01 02 00 00 00 00 EB [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 42 30 00 90 00 E6 [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]wFMCommunicate request_size=255 [08:27:37]MH_SAM_APDU [08:27: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 89 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 88 02 00 35 04 06 00 53 [08:27:37]Write to MH i2c: E2 02 01 43 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 89 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 88 02 00 35 04 06 00 53 00 00 FE [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 43 30 00 90 00 E7 [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]wFMCommunicate request_size=10 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 0D 02 02 05 07 AF B1 91 C3 [08:27:37]Write to MH i2c: E2 0D 00 44 30 80 0D 02 02 05 00 07 AF B1 91 C3 00 00 B3 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 03 00 44 30 00 90 00 E8 [08:27:37]RAPDU: 90 00 [08:27:37]wFMCommunicate OK [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 0D 03 02 [08:27:37]Write to MH i2c: E2 08 00 45 30 80 0D 03 02 00 00 00 00 F0 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0B 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 0B 00 45 30 00 40 66 11 8D 5B D2 0B 37 90 00 A4 [08:27:37]RAPDU: 40 66 11 8D 5B D2 0B 37 90 00 [08:27:37]wFMCommunicate OK [08:27:37]SAM_PROTO_SignData done [08:27:37]FM_MakeSignedData done [08:27:37]CreateOFDProtocolMessage [08:27:37]wFMCommunicate request_size=4 [08:27:37]MH_SAM_APDU [08:27:37]CAPDU: 80 11 00 00 [08:27:37]Write to MH i2c: E2 08 00 46 30 80 11 00 00 00 00 00 00 F0 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:37]Read from MH i2c: E2 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: E2 17 00 46 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 48 [08:27:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:27:37]wFMCommunicate OK [08:27:37]CreateOFDProtocolMessage done [08:27:37]OFDSenderStorePacket 165913 [08:27:37]StoreOFDPacket docnum=165913 [08:27:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E3 43 07 01 B8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 89 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 88 02 00 35 04 06 00 53 07 AF B1 91 C3 40 66 11 8D 5B D2 0B 37 [08:27:37]CheckFolder [08:27:37]dirname=/storage/ofd_packets [08:27:37]CheckFolder done [08:27:37]ProducePacketName [08:27:37]name=ofd_packets/00165913 [08:27:37]NVStorageSaveData ofd_packets/00165913 [08:27:37]File name is /storage/ofd_packets/00165913 [08:27:37]Write 301 bytes [08:27:37]NVStorageSaveData done [08:27:37]OFDSenderStorePacket done [08:27:37]KKMCreateOFDPacket done [08:27:37]NVStorageSaveData kkm_last_timestamp [08:27:37]File name is /storage/kkm_last_timestamp [08:27:37]Write 4 bytes [08:27:37]NVStorageSaveData done [08:27:37]ExternCall_PrintAddStr [08:27:37]wPrintStart [08:27:37]Write to MH i2c: 01 00 00 47 30 77 [08:27:37]Write i2c OK [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 07 00 [08:27:37]MH_I2C_Read... [08:27:37]Read from MH i2c: 01 07 00 47 30 00 00 00 00 00 FF 0F 8C [08:27:37]RasterBufferAndPrint [08:27:37]line Счет N : (1)220480 [08:27:37]line ИНН: 02508201610067 [08:27:37]line Контрольно-Кассовый Чек [08:27:37]line ПРОДАЖА [08:27:37]line ТРК (МРК, ГНК) : 23 [08:27:37]line Товар: 2710124130 [08:27:37]line Аи-92-К-5 [08:27:37]line 4.490 * 66.90 [08:27:37]line = 300.38 [08:27:37]line НДС 12% НСП 1% [08:27:37]line > о реализуемом товаре [08:27:37]line ИТОГО: 300.38 [08:27:37]line НСП 1% : 2.66 [08:27:37]line НДС 12% : 31.90 [08:27:37]line Наличными: 0.00 [08:27:37]line Безнал.: 300.38 [08:27:37]line Место: АЗС № 161 "Партнер Нефть" [08:27:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:27:37]line СНО: Общий режим [08:27:37]line Чек 24 21.10.2024 08:27 [08:27:37]line Смена: 535 ФФД: 1.0 [08:27:37]line ЗНМ: 0300000104 [08:27:37]line РНМ: 0000000000091764 [08:27:37]line Версия ККМ: 001 [08:27:37]line Платежная система: Mbank [08:27:37]line ФМ: 0000000000871759 [08:27:37]line ФД: 165913 [08:27:37]line ФПД: 91292477526467 [08:27:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082753&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165913&fm=91292477526467&tin=02508201610067®Number=0000000000091764&sum=30038 [08:27:38]OFD Sender: Processing packet 165913 [packets to send 48, broken 47] [08:27:38]ProducePacketName [08:27:38]name=ofd_packets/00165913 [08:27:38]OFD Sender: To server: pG, [08:27:38]CommunicateWithHost lk.salyk.kg:30040 [08:27:38]ConnectInit lk.salyk.kg [08:27:38]written 0, free lines is 4095 [08:27:38]Connected sock=7 [08:27:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E3 43 07 01 B8 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 89 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 88 02 00 35 04 06 00 53 07 AF B1 91 C3 40 66 11 8D 5B D2 0B 37 [08:27:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 49 04 47 00 14 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 88 02 00 F4 03 04 00 F8 B6 15 67 B6 04 01 00 00 FB 6B 9D E4 12 76 95 2D [08:27:38]CommunicateWithHost err = 0 [08:27:38]CheckOFDResponse [08:27:38]1017 (14) - 77093643461234 [08:27:38]1041 (16) - 0000000000871759 [08:27:38]1040 (4) - 165913 [08:27:38]1012 (4) - 21.10.2024 02:05 [08:27:38]1206 (1) - 0 [08:27:38]OFD Sender: Remove packet 165913 [08:27:38]ProducePacketName [08:27:38]name=ofd_packets/00165913 [08:27:38]NVStorageDeleteData [08:27:38]Write to MH i2c: 01 00 00 70 30 A0 [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: 01 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: 01 07 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 E3 0C 96 [08:27:38]RasterBufferAndPrint [08:27:38]line [08:27:38]line [08:27:38]line [08:27:38]line [08:27:38]line [08:27:38]written 0, free lines is 3305 [08:27:38]MH_Cut [08:27:38]Write to MH i2c: D1 01 00 77 30 01 79 [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: D1 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: D1 01 00 [08:27:38]MH_I2C_Read... [08:27:38]Read from MH i2c: D1 01 00 77 30 00 78 [08:27:38]Write to MH i2c: 01 00 00 78 30 A8 [08:27:38]Write i2c OK [08:27:38]MH_I2C_Read... [08:27:38]OFD Sender: No OFD packet to send [08:27:39]*** Cut start [08:27:39]*** Partial cut [08:27:39]*** CUTSNS_PIN = 1 [08:27:39]*** CUTSNS_PIN = 0 [08:27:39]*** Brake cut motor [08:27:39]Read from MH i2c: 01 [08:27:39]MH_I2C_Read... [08:27:39]*** Stop cut motor [08:27:39]*** Cut end [08:27:39]Read from MH i2c: 01 07 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: 01 07 00 78 30 00 00 00 00 00 FF 0F BD [08:27:39]process_action close_receipt done [08:27:39]requested_data is exist [08:27:39]produce_requested_data [08:27:39]requested_item fm.sn is exist - process it [08:27:39]wFMCommunicate request_size=4 [08:27:39]MH_SAM_APDU [08:27:39]CAPDU: 80 11 00 00 [08:27:39]Write to MH i2c: E2 08 00 79 30 80 11 00 00 00 00 00 00 23 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:39]Read from MH i2c: E2 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 17 00 [08:27:39]MH_I2C_Read... [08:27:39]Read from MH i2c: E2 17 00 79 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7B [08:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:27:39]wFMCommunicate OK [08:27:39]requested_item fd.num is exist - process it [08:27:39]SAM_PROTO_GetFieldsCounters [08:27:39]wFMCommunicate request_size=4 [08:27:39]MH_SAM_APDU [08:27:39]CAPDU: 80 13 00 00 [08:27:39]Write to MH i2c: E2 08 00 7A 30 80 13 00 00 00 00 00 00 26 [08:27:39]Write i2c OK [08:27:39]MH_I2C_Read... [08:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:40]Read from MH i2c: E2 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 62 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 62 00 7A 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [08:27:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:40]wFMCommunicate OK [08:27:40]SAM_PROTO_GetFieldsCounters done [08:27:40]requested_item shift.num is exist - process it [08:27:40]requested_item shift.opened is exist - process it [08:27:40]req_shift_opened [08:27:40]FM_GetShiftState [08:27:40]SAM_PROTO_GetShiftState [08:27:40]wFMCommunicate request_size=4 [08:27:40]MH_SAM_APDU [08:27:40]CAPDU: 80 13 01 00 [08:27:40]Write to MH i2c: E2 08 00 7B 30 80 13 01 00 00 00 00 00 28 [08:27:40]Write i2c OK [08:27:40]MH_I2C_Read... [08:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:40]Read from MH i2c: E2 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 0E 00 [08:27:40]MH_I2C_Read... [08:27:40]Read from MH i2c: E2 0E 00 7B 30 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 31 [08:27:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:27:40]wFMCommunicate OK [08:27:40]SAM_PROTO_GetShiftState done [08:27:40]FM_GetShiftState done [08:27:40]req_shift_opened done [08:27:40]requested_item shift.open_date is exist - process it [08:27:40]req_shift_open_date [08:27:40]req_shift_open_date done [08:27:40]produce_requested_data done [08:27:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165913,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:27:40]process_action_free close_receipt [08:27:40]json_value_free [08:27:40]json_value_free done [08:27:40]process_json_proto returns [08:27:40]Send response to host [08:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165913,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:27:40]free response buf [08:27:40]execute_script done [08:27:40]execute_script returns [08:27:40]free content buf [08:27:40]Sock 6.Close socket [08:27:40]Sock 6.Thread stoped [08:27:43]OFD Sender: No OFD packet to send [08:27:48]OFD Sender: No OFD packet to send [08:27:53]OFD Sender: No OFD packet to send [08:27:58]OFD Sender: No OFD packet to send [08:28:03]OFD Sender: No OFD packet to send [08:28:08]OFD Sender: No OFD packet to send [08:28:13]OFD Sender: No OFD packet to send [08:28:18]OFD Sender: No OFD packet to send [08:28:23]OFD Sender: No OFD packet to send [08:28:27]accept exits with 5 [08:28:27]New connection [08:28:27]New thread 3066920292 created [08:28:27]Thread 3066776932 joined [08:28:27]Waiting for new connection... [08:28:27] Sock 5.Parse request [08:28:27]Sock 5.Check first char [08:28:27]Sock 5.First char is OK [08:28:27]request: POST /json_proto HTTP/1.0 [08:28:27]Method: POST [08:28:27]URL: /json_proto [08:28:27]Method is POST - this is cgi request [08:28:27]url: /json_proto [08:28:27]query_string will be loaded in cgi processing [08:28:27]execute_cgi json_proto POST (null) [08:28:27]execute_cgi path=json_proto method=POST [08:28:27]POST find Content-Length [08:28:27]Host: 172.17.53.195:8080 [08:28:27]Content-Length: 677 [08:28:27]Content-Type: application/json [08:28:27] [08:28:27]POST finish read [08:28:27]Found Content-Length = 677 [08:28:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.570, "sum" : 506.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 506.00, "total" : 506.00, "payments": [ { "type": 0, "sum" : 506.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:27]execute_script... [08:28: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)220481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.570, "sum" : 506.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 506.00, "total" : 506.00, "payments": [ { "type": 0, "sum" : 506.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:27]POST & json_proto [08:28:27]process_json_proto [08:28:27]json parsed OK: [08:28:27]protocol is kg_v1.0 [08:28:27]action value=close_receipt [08:28:27]process_action close_receipt [08:28:27]cmd_close_receipt [08:28:27]MH_GetDate [08:28:27]Write to MH i2c: F0 00 00 7C 30 9B [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: F0 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: F0 09 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: F0 09 00 7C 30 00 BD 10 16 67 21 48 4A 65 06 [08:28:27]GetLastDocTimeStamp 1729499273 [08:28:27]current date 1729499325 [08:28:27]FM_GetShiftState [08:28:27]SAM_PROTO_GetShiftState [08:28:27]wFMCommunicate request_size=4 [08:28:27]MH_SAM_APDU [08:28:27]CAPDU: 80 13 01 00 [08:28:27]Write to MH i2c: E2 08 00 7D 30 80 13 01 00 00 00 00 00 2A [08:28:27]Write i2c OK [08:28:27]MH_I2C_Read... [08:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:27]Read from MH i2c: E2 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 0E 00 [08:28:27]MH_I2C_Read... [08:28:27]Read from MH i2c: E2 0E 00 7D 30 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 33 [08:28:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:28:27]wFMCommunicate OK [08:28:27]SAM_PROTO_GetShiftState done [08:28:27]FM_GetShiftState done [08:28:27]opened in 1729470944 [08:28:27]opened+sec_in_day 1729557344 [08:28:27]quantity*price = 50643 [08:28:27]sum+1 = 50644 [08:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 506.00 Внесено: 506.00 СДАЧА: 0.00 НСП 1% : 4.48 НДС 12% : 53.78 Наличными: 506.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 25 21.10.2024 08:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165914 ФПД: 30497627032372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165914&fm=30497627032372&tin=02508201610067®Number=0000000000091764&sum=50600 [08:28:28]StoreToDocumentArchive [08:28:28]shift 535 fd 165914 [08:28:28]save to /storage/0535/doc_00165914 [08:28:28]save last doc name /storage/0535/doc_00165914 to /storage/kkm_last_doc_name [08:28:28]save OK [08:28:28]Clear old archive folders... [08:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:28]tlvbuf is 0177AD80 [08:28:28]SAM_PROTO_ClearQueue [08:28:28]wFMCommunicate request_size=4 [08:28:28]MH_SAM_APDU [08:28:28]CAPDU: 80 09 00 00 [08:28:28]Write to MH i2c: E2 08 00 8A 30 80 09 00 00 00 00 00 00 2C [08:28:28]Write i2c OK [08:28:28]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 8A 30 00 90 00 2E [08:28:29]RAPDU: 90 00 [08:28:29]wFMCommunicate OK [08:28:29]SAM_PROTO_ClearQueue done [08:28:29]KKMCreateOFDPacket [08:28:29]OFDProtocolAddRootSTLVToBuf [08:28:29]FM_MakeSignedData [08:28:29]FM_MakeSignedData [08:28:29]SAM_PROTO_SignData [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 0D 01 02 [08:28:29]Write to MH i2c: E2 08 00 8B 30 80 0D 01 02 00 00 00 00 34 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 8B 30 00 90 00 2F [08:28:29]RAPDU: 90 00 [08:28:29]wFMCommunicate OK [08:28:29]wFMCommunicate request_size=255 [08:28:29]MH_SAM_APDU [08:28: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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BD 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 88 02 00 35 04 06 00 1B [08:28:29]Write to MH i2c: E2 02 01 8C 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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BD 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 88 02 00 35 04 06 00 1B 00 00 B5 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 8C 30 00 90 00 30 [08:28:29]RAPDU: 90 00 [08:28:29]wFMCommunicate OK [08:28:29]wFMCommunicate request_size=10 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 0D 02 02 05 BC C8 39 CB 34 [08:28:29]Write to MH i2c: E2 0D 00 8D 30 80 0D 02 02 05 00 BC C8 39 CB 34 00 00 FD [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 03 00 8D 30 00 90 00 31 [08:28:29]RAPDU: 90 00 [08:28:29]wFMCommunicate OK [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 0D 03 02 [08:28:29]Write to MH i2c: E2 08 00 8E 30 80 0D 03 02 00 00 00 00 39 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 0B 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 0B 00 8E 30 00 BE 93 B2 99 F4 80 9C 7A 90 00 60 [08:28:29]RAPDU: BE 93 B2 99 F4 80 9C 7A 90 00 [08:28:29]wFMCommunicate OK [08:28:29]SAM_PROTO_SignData done [08:28:29]FM_MakeSignedData done [08:28:29]CreateOFDProtocolMessage [08:28:29]wFMCommunicate request_size=4 [08:28:29]MH_SAM_APDU [08:28:29]CAPDU: 80 11 00 00 [08:28:29]Write to MH i2c: E2 08 00 8F 30 80 11 00 00 00 00 00 00 39 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:29]Read from MH i2c: E2 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 17 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: E2 17 00 8F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [08:28:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:28:29]wFMCommunicate OK [08:28:29]CreateOFDProtocolMessage done [08:28:29]OFDSenderStorePacket 165914 [08:28:29]StoreOFDPacket docnum=165914 [08:28:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AE 97 07 01 6F 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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BD 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 88 02 00 35 04 06 00 1B BC C8 39 CB 34 BE 93 B2 99 F4 80 9C 7A [08:28:29]CheckFolder [08:28:29]dirname=/storage/ofd_packets [08:28:29]CheckFolder done [08:28:29]ProducePacketName [08:28:29]name=ofd_packets/00165914 [08:28:29]NVStorageSaveData ofd_packets/00165914 [08:28:29]File name is /storage/ofd_packets/00165914 [08:28:29]Write 301 bytes [08:28:29]NVStorageSaveData done [08:28:29]OFDSenderStorePacket done [08:28:29]KKMCreateOFDPacket done [08:28:29]NVStorageSaveData kkm_last_timestamp [08:28:29]File name is /storage/kkm_last_timestamp [08:28:29]Write 4 bytes [08:28:29]NVStorageSaveData done [08:28:29]ExternCall_PrintAddStr [08:28:29]wPrintStart [08:28:29]Write to MH i2c: 01 00 00 90 30 C0 [08:28:29]Write i2c OK [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: 01 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: 01 07 00 [08:28:29]MH_I2C_Read... [08:28:29]Read from MH i2c: 01 07 00 90 30 00 00 00 00 00 FF 0F D5 [08:28:29]RasterBufferAndPrint [08:28:29]line Счет N : (1)220481 [08:28:29]line ИНН: 02508201610067 [08:28:29]line Контрольно-Кассовый Чек [08:28:29]line ПРОДАЖА [08:28:29]line ТРК (МРК, ГНК) : 33 [08:28:29]line Товар: 2710124130 [08:28:29]line Аи-92-К-5 [08:28:29]line 7.570 * 66.90 [08:28:29]line = 506.43 [08:28:29]line НДС 12% НСП 1% [08:28:29]line > о реализуемом товаре [08:28:29]line ОКРУГЛЕНИЕ: -0.43 [08:28:29]line ИТОГО: 506.00 [08:28:29]line Внесено: 506.00 [08:28:29]line СДАЧА: 0.00 [08:28:29]line НСП 1% : 4.48 [08:28:29]line НДС 12% : 53.78 [08:28:29]line Наличными: 506.00 [08:28:29]line Безнал.: 0.00 [08:28:29]line Место: АЗС № 161 "Партнер Нефть" [08:28:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:28:29]line СНО: Общий режим [08:28:29]line Чек 25 21.10.2024 08:28 [08:28:29]line Смена: 535 ФФД: 1.0 [08:28:29]line ЗНМ: 0300000104 [08:28:29]line РНМ: 0000000000091764 [08:28:29]line Версия ККМ: 001 [08:28:29]line ФМ: 0000000000871759 [08:28:29]line ФД: 165914 [08:28:29]line ФПД: 30497627032372 [08:28:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T082845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165914&fm=30497627032372&tin=02508201610067®Number=0000000000091764&sum=50600 [08:28:29]written 0, free lines is 4095 [08:28:29]OFD Sender: Processing packet 165914 [packets to send 48, broken 47] [08:28:29]ProducePacketName [08:28:29]name=ofd_packets/00165914 [08:28:29]OFD Sender: To server: pG, [08:28:29]CommunicateWithHost lk.salyk.kg:30040 [08:28:29]ConnectInit lk.salyk.kg [08:28:29]Connected sock=9 [08:28:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AE 97 07 01 6F 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 92 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 C5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 C5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 15 00 00 00 00 07 04 06 00 A8 C5 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 BD 10 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 88 02 00 35 04 06 00 1B BC C8 39 CB 34 BE 93 B2 99 F4 80 9C 7A [08:28:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B5 8A 47 00 59 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 35 39 10 04 04 00 1A 88 02 00 F4 03 04 00 2B B7 15 67 B6 04 01 00 00 84 26 48 8C FD 5B DF 81 [08:28:29]CommunicateWithHost err = 0 [08:28:29]CheckOFDResponse [08:28:29]1017 (14) - 77093643461234 [08:28:29]1041 (16) - 0000000000871759 [08:28:29]1040 (4) - 165914 [08:28:29]1012 (4) - 21.10.2024 02:06 [08:28:29]1206 (1) - 0 [08:28:29]OFD Sender: Remove packet 165914 [08:28:29]ProducePacketName [08:28:29]name=ofd_packets/00165914 [08:28:29]NVStorageDeleteData [08:28:30]Write to MH i2c: 01 00 00 BB 30 EB [08:28:30]Write i2c OK [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: 01 [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: 01 07 00 [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 C7 0C C5 [08:28:30]RasterBufferAndPrint [08:28:30]line [08:28:30]line [08:28:30]line [08:28:30]line [08:28:30]line [08:28:30]written 0, free lines is 3277 [08:28:30]MH_Cut [08:28:30]Write to MH i2c: D1 01 00 C2 30 01 C4 [08:28:30]Write i2c OK [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: D1 [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: D1 01 00 [08:28:30]MH_I2C_Read... [08:28:30]Read from MH i2c: D1 01 00 C2 30 00 C3 [08:28:30]Write to MH i2c: 01 00 00 C3 30 F3 [08:28:30]Write i2c OK [08:28:30]MH_I2C_Read... [08:28:30]OFD Sender: No OFD packet to send [08:28:30]*** Cut start [08:28:30]*** Partial cut [08:28:30]*** CUTSNS_PIN = 1 [08:28:30]*** CUTSNS_PIN = 0 [08:28:31]*** Brake cut motor [08:28:31]Read from MH i2c: 01 [08:28:31]MH_I2C_Read... [08:28:31]*** Stop cut motor [08:28:31]*** Cut end [08:28:31]Read from MH i2c: 01 07 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: 01 07 00 C3 30 00 00 00 00 00 FF 0F 08 [08:28:31]process_action close_receipt done [08:28:31]requested_data is exist [08:28:31]produce_requested_data [08:28:31]requested_item fm.sn is exist - process it [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 11 00 00 [08:28:31]Write to MH i2c: E2 08 00 C4 30 80 11 00 00 00 00 00 00 6E [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 17 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 17 00 C4 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [08:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:28:31]wFMCommunicate OK [08:28:31]requested_item fd.num is exist - process it [08:28:31]SAM_PROTO_GetFieldsCounters [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 13 00 00 [08:28:31]Write to MH i2c: E2 08 00 C5 30 80 13 00 00 00 00 00 00 71 [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 62 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 62 00 C5 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [08:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:31]wFMCommunicate OK [08:28:31]SAM_PROTO_GetFieldsCounters done [08:28:31]requested_item shift.num is exist - process it [08:28:31]requested_item shift.opened is exist - process it [08:28:31]req_shift_opened [08:28:31]FM_GetShiftState [08:28:31]SAM_PROTO_GetShiftState [08:28:31]wFMCommunicate request_size=4 [08:28:31]MH_SAM_APDU [08:28:31]CAPDU: 80 13 01 00 [08:28:31]Write to MH i2c: E2 08 00 C6 30 80 13 01 00 00 00 00 00 73 [08:28:31]Write i2c OK [08:28:31]MH_I2C_Read... [08:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:31]Read from MH i2c: E2 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 0E 00 [08:28:31]MH_I2C_Read... [08:28:31]Read from MH i2c: E2 0E 00 C6 30 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7C [08:28:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:28:31]wFMCommunicate OK [08:28:31]SAM_PROTO_GetShiftState done [08:28:31]FM_GetShiftState done [08:28:31]req_shift_opened done [08:28:31]requested_item shift.open_date is exist - process it [08:28:31]req_shift_open_date [08:28:31]req_shift_open_date done [08:28:31]produce_requested_data done [08:28:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165914,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:28:31]process_action_free close_receipt [08:28:31]json_value_free [08:28:31]json_value_free done [08:28:31]process_json_proto returns [08:28:31]Send response to host [08:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165914,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:28:31]free response buf [08:28:31]execute_script done [08:28:31]execute_script returns [08:28:31]free content buf [08:28:31]Sock 5.Close socket [08:28:31]Sock 5.Thread stoped [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:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:51]accept exits with 6 [08:32:51]New connection [08:32:51]New thread 3066776932 created [08:32:51]Thread 3066920292 joined [08:32:51]Waiting for new connection... [08:32:51] Sock 6.Parse request [08:32:51]Sock 6.Check first char [08:32:51]Sock 6.First char is OK [08:32:51]request: POST /json_proto HTTP/1.0 [08:32:51]Method: POST [08:32:51]URL: /json_proto [08:32:51]Method is POST - this is cgi request [08:32:51]url: /json_proto [08:32:51]query_string will be loaded in cgi processing [08:32:51]execute_cgi json_proto POST (null) [08:32:51]execute_cgi path=json_proto method=POST [08:32:51]POST find Content-Length [08:32:51]Host: 172.17.53.195:8080 [08:32:51]Content-Length: 677 [08:32:51]Content-Type: application/json [08:32:51] [08:32:51]POST finish read [08:32:51]Found Content-Length = 677 [08:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:51]execute_script... [08:32: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)220482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:32:51]POST & json_proto [08:32:51]process_json_proto [08:32:51]json parsed OK: [08:32:51]protocol is kg_v1.0 [08:32:51]action value=close_receipt [08:32:51]process_action close_receipt [08:32:51]cmd_close_receipt [08:32:51]MH_GetDate [08:32:51]Write to MH i2c: F0 00 00 C7 30 E6 [08:32:51]Write i2c OK [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: F0 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: F0 09 00 [08:32:51]MH_I2C_Read... [08:32:51]Read from MH i2c: F0 09 00 C7 30 00 C5 11 16 67 21 48 4A 65 5A [08:32:51]GetLastDocTimeStamp 1729499325 [08:32:51]current date 1729499589 [08:32:51]FM_GetShiftState [08:32:51]SAM_PROTO_GetShiftState [08:32:51]wFMCommunicate request_size=4 [08:32:51]MH_SAM_APDU [08:32:51]CAPDU: 80 13 01 00 [08:32:51]Write to MH i2c: E2 08 00 C8 30 80 13 01 00 00 00 00 00 75 [08:32:51]Write i2c OK [08:32:51]MH_I2C_Read... [08:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:52]Read from MH i2c: E2 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: E2 0E 00 [08:32:52]MH_I2C_Read... [08:32:52]Read from MH i2c: E2 0E 00 C8 30 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7E [08:32:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:32:52]wFMCommunicate OK [08:32:52]SAM_PROTO_GetShiftState done [08:32:52]FM_GetShiftState done [08:32:52]opened in 1729470944 [08:32:52]opened+sec_in_day 1729557344 [08:32:52]quantity*price = 29971 [08:32:52]sum+1 = 29972 [08:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 26 21.10.2024 08:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165915 ФПД: 29066771110263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083309&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165915&fm=29066771110263&tin=02508201610067®Number=0000000000091764&sum=29900 [08:32:53]StoreToDocumentArchive [08:32:53]shift 535 fd 165915 [08:32:53]save to /storage/0535/doc_00165915 [08:32:53]save last doc name /storage/0535/doc_00165915 to /storage/kkm_last_doc_name [08:32:53]save OK [08:32:53]Clear old archive folders... [08:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:32:53]tlvbuf is 014DA750 [08:32:53]SAM_PROTO_ClearQueue [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 09 00 00 [08:32:53]Write to MH i2c: E2 08 00 D5 30 80 09 00 00 00 00 00 00 77 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 D5 30 00 90 00 79 [08:32:53]RAPDU: 90 00 [08:32:53]wFMCommunicate OK [08:32:53]SAM_PROTO_ClearQueue done [08:32:53]KKMCreateOFDPacket [08:32:53]OFDProtocolAddRootSTLVToBuf [08:32:53]FM_MakeSignedData [08:32:53]FM_MakeSignedData [08:32:53]SAM_PROTO_SignData [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 0D 01 02 [08:32:53]Write to MH i2c: E2 08 00 D6 30 80 0D 01 02 00 00 00 00 7F [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 D6 30 00 90 00 7A [08:32:53]RAPDU: 90 00 [08:32:53]wFMCommunicate OK [08:32:53]wFMCommunicate request_size=255 [08:32:53]MH_SAM_APDU [08:32: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 11 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 88 02 00 35 04 06 00 1A [08:32:53]Write to MH i2c: E2 02 01 D7 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 11 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 88 02 00 35 04 06 00 1A 00 00 2F [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 D7 30 00 90 00 7B [08:32:53]RAPDU: 90 00 [08:32:53]wFMCommunicate OK [08:32:53]wFMCommunicate request_size=10 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 0D 02 02 05 6F A2 91 19 77 [08:32:53]Write to MH i2c: E2 0D 00 D8 30 80 0D 02 02 05 00 6F A2 91 19 77 00 00 BE [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 03 00 D8 30 00 90 00 7C [08:32:53]RAPDU: 90 00 [08:32:53]wFMCommunicate OK [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 0D 03 02 [08:32:53]Write to MH i2c: E2 08 00 D9 30 80 0D 03 02 00 00 00 00 84 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 0B 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 0B 00 D9 30 00 0A B5 C4 A8 F3 87 D0 50 90 00 4A [08:32:53]RAPDU: 0A B5 C4 A8 F3 87 D0 50 90 00 [08:32:53]wFMCommunicate OK [08:32:53]SAM_PROTO_SignData done [08:32:53]FM_MakeSignedData done [08:32:53]CreateOFDProtocolMessage [08:32:53]wFMCommunicate request_size=4 [08:32:53]MH_SAM_APDU [08:32:53]CAPDU: 80 11 00 00 [08:32:53]Write to MH i2c: E2 08 00 DA 30 80 11 00 00 00 00 00 00 84 [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:53]Read from MH i2c: E2 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 17 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: E2 17 00 DA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [08:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:32:53]wFMCommunicate OK [08:32:53]CreateOFDProtocolMessage done [08:32:53]OFDSenderStorePacket 165915 [08:32:53]StoreOFDPacket docnum=165915 [08:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 1A 07 01 DF A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 11 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 88 02 00 35 04 06 00 1A 6F A2 91 19 77 0A B5 C4 A8 F3 87 D0 50 [08:32:53]CheckFolder [08:32:53]dirname=/storage/ofd_packets [08:32:53]CheckFolder done [08:32:53]ProducePacketName [08:32:53]name=ofd_packets/00165915 [08:32:53]NVStorageSaveData ofd_packets/00165915 [08:32:53]File name is /storage/ofd_packets/00165915 [08:32:53]Write 301 bytes [08:32:53]NVStorageSaveData done [08:32:53]OFDSenderStorePacket done [08:32:53]KKMCreateOFDPacket done [08:32:53]NVStorageSaveData kkm_last_timestamp [08:32:53]File name is /storage/kkm_last_timestamp [08:32:53]Write 4 bytes [08:32:53]NVStorageSaveData done [08:32:53]ExternCall_PrintAddStr [08:32:53]wPrintStart [08:32:53]Write to MH i2c: 01 00 00 DB 30 0B [08:32:53]Write i2c OK [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 07 00 [08:32:53]MH_I2C_Read... [08:32:53]Read from MH i2c: 01 07 00 DB 30 00 00 00 00 00 FF 0F 20 [08:32:53]RasterBufferAndPrint [08:32:53]line Счет N : (1)220482 [08:32:53]line ИНН: 02508201610067 [08:32:53]line Контрольно-Кассовый Чек [08:32:53]line ПРОДАЖА [08:32:53]line ТРК (МРК, ГНК) : 13 [08:32:53]line Товар: 2710124130 [08:32:53]line Аи-92-К-5 [08:32:53]line 4.480 * 66.90 [08:32:53]line = 299.71 [08:32:53]line НДС 12% НСП 1% [08:32:53]line > о реализуемом товаре [08:32:53]line ОКРУГЛЕНИЕ: -0.71 [08:32:53]line ИТОГО: 299.00 [08:32:53]line Внесено: 300.00 [08:32:53]line СДАЧА: 1.00 [08:32:53]line НСП 1% : 2.65 [08:32:53]line НДС 12% : 31.83 [08:32:53]line Наличными: 299.00 [08:32:53]line Безнал.: 0.00 [08:32:53]line Место: АЗС № 161 "Партнер Нефть" [08:32:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:32:53]line СНО: Общий режим [08:32:53]line Чек 26 21.10.2024 08:33 [08:32:53]line Смена: 535 ФФД: 1.0 [08:32:53]line ЗНМ: 0300000104 [08:32:53]line РНМ: 0000000000091764 [08:32:53]line Версия ККМ: 001 [08:32:53]line ФМ: 0000000000871759 [08:32:53]line ФД: 165915 [08:32:53]line ФПД: 29066771110263 [08:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083309&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165915&fm=29066771110263&tin=02508201610067®Number=0000000000091764&sum=29900 [08:32:54]OFD Sender: Processing packet 165915 [packets to send 48, broken 47] [08:32:54]ProducePacketName [08:32:54]name=ofd_packets/00165915 [08:32:54]OFD Sender: To server: pG, [08:32:54]CommunicateWithHost lk.salyk.kg:30040 [08:32:54]ConnectInit lk.salyk.kg [08:32:54]written 0, free lines is 4095 [08:32:54]Connected sock=7 [08:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 1A 07 01 DF A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 C5 11 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 88 02 00 35 04 06 00 1A 6F A2 91 19 77 0A B5 C4 A8 F3 87 D0 50 [08:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F8 16 47 00 C5 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 88 02 00 F4 03 04 00 34 B8 15 67 B6 04 01 00 00 A4 3D 3F 51 20 42 49 8F [08:32:54]CommunicateWithHost err = 0 [08:32:54]CheckOFDResponse [08:32:54]1017 (14) - 77093643461234 [08:32:54]1041 (16) - 0000000000871759 [08:32:54]1040 (4) - 165915 [08:32:54]1012 (4) - 21.10.2024 02:11 [08:32:54]1206 (1) - 0 [08:32:54]OFD Sender: Remove packet 165915 [08:32:54]ProducePacketName [08:32:54]name=ofd_packets/00165915 [08:32:54]NVStorageDeleteData [08:32:54]Write to MH i2c: 01 00 00 06 31 37 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 07 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 B0 0C FA [08:32:54]RasterBufferAndPrint [08:32:54]line [08:32:54]line [08:32:54]line [08:32:54]line [08:32:54]line [08:32:54]written 0, free lines is 3254 [08:32:54]MH_Cut [08:32:54]Write to MH i2c: D1 01 00 0D 31 01 10 [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: D1 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: D1 01 00 [08:32:54]MH_I2C_Read... [08:32:54]Read from MH i2c: D1 01 00 0D 31 00 0F [08:32:54]Write to MH i2c: 01 00 00 0E 31 3F [08:32:54]Write i2c OK [08:32:54]MH_I2C_Read... [08:32:54]OFD Sender: No OFD packet to send [08:32:55]*** Cut start [08:32:55]*** Partial cut [08:32:55]*** CUTSNS_PIN = 1 [08:32:55]*** CUTSNS_PIN = 0 [08:32:55]*** Brake cut motor [08:32:55]Read from MH i2c: 01 [08:32:55]MH_I2C_Read... [08:32:55]*** Stop cut motor [08:32:55]*** Cut end [08:32:55]Read from MH i2c: 01 07 00 [08:32:55]MH_I2C_Read... [08:32:55]Read from MH i2c: 01 07 00 0E 31 00 00 00 00 00 FF 0F 54 [08:32:55]process_action close_receipt done [08:32:55]requested_data is exist [08:32:55]produce_requested_data [08:32:55]requested_item fm.sn is exist - process it [08:32:55]wFMCommunicate request_size=4 [08:32:55]MH_SAM_APDU [08:32:55]CAPDU: 80 11 00 00 [08:32:55]Write to MH i2c: E2 08 00 0F 31 80 11 00 00 00 00 00 00 BA [08:32:55]Write i2c OK [08:32:55]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 17 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 17 00 0F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 12 [08:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:32:56]wFMCommunicate OK [08:32:56]requested_item fd.num is exist - process it [08:32:56]SAM_PROTO_GetFieldsCounters [08:32:56]wFMCommunicate request_size=4 [08:32:56]MH_SAM_APDU [08:32:56]CAPDU: 80 13 00 00 [08:32:56]Write to MH i2c: E2 08 00 10 31 80 13 00 00 00 00 00 00 BD [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 62 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 62 00 10 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [08:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:32:56]wFMCommunicate OK [08:32:56]SAM_PROTO_GetFieldsCounters done [08:32:56]requested_item shift.num is exist - process it [08:32:56]requested_item shift.opened is exist - process it [08:32:56]req_shift_opened [08:32:56]FM_GetShiftState [08:32:56]SAM_PROTO_GetShiftState [08:32:56]wFMCommunicate request_size=4 [08:32:56]MH_SAM_APDU [08:32:56]CAPDU: 80 13 01 00 [08:32:56]Write to MH i2c: E2 08 00 11 31 80 13 01 00 00 00 00 00 BF [08:32:56]Write i2c OK [08:32:56]MH_I2C_Read... [08:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:32:56]Read from MH i2c: E2 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 0E 00 [08:32:56]MH_I2C_Read... [08:32:56]Read from MH i2c: E2 0E 00 11 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C8 [08:32:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:32:56]wFMCommunicate OK [08:32:56]SAM_PROTO_GetShiftState done [08:32:56]FM_GetShiftState done [08:32:56]req_shift_opened done [08:32:56]requested_item shift.open_date is exist - process it [08:32:56]req_shift_open_date [08:32:56]req_shift_open_date done [08:32:56]produce_requested_data done [08:32:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165915,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:32:56]process_action_free close_receipt [08:32:56]json_value_free [08:32:56]json_value_free done [08:32:56]process_json_proto returns [08:32:56]Send response to host [08:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165915,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:32:56]free response buf [08:32:56]execute_script done [08:32:56]execute_script returns [08:32:56]free content buf [08:32:56]Sock 6.Close socket [08:32:56]Sock 6.Thread stoped [08:32:59]OFD Sender: No OFD packet to send [08:33:04]OFD Sender: No OFD packet to send [08:33:09]OFD Sender: No OFD packet to send [08:33:14]OFD Sender: No OFD packet to send [08:33:19]OFD Sender: No OFD packet to send [08:33:24]OFD Sender: No OFD packet to send [08:33:29]OFD Sender: No OFD packet to send [08:33:34]OFD Sender: No OFD packet to send [08:33:39]OFD Sender: No OFD packet to send [08:33:44]OFD Sender: No OFD packet to send [08:33:49]OFD Sender: No OFD packet to send [08:33:54]OFD Sender: No OFD packet to send [08:33:59]OFD Sender: No OFD packet to send [08:34:04]OFD Sender: No OFD packet to send [08:34:09]OFD Sender: No OFD packet to send [08:34:14]OFD Sender: No OFD packet to send [08:34:19]OFD Sender: No OFD packet to send [08:34:24]OFD Sender: No OFD packet to send [08:34:29]OFD Sender: No OFD packet to send [08:34:34]OFD Sender: No OFD packet to send [08:34:39]OFD Sender: No OFD packet to send [08:34:44]OFD Sender: No OFD packet to send [08:34:49]OFD Sender: No OFD packet to send [08:34:54]OFD Sender: No OFD packet to send [08:34:59]OFD Sender: No OFD packet to send [08:35:04]OFD Sender: No OFD packet to send [08:35:09]OFD Sender: No OFD packet to send [08:35:11]accept exits with 5 [08:35:11]New connection [08:35:11]New thread 3066920292 created [08:35:11]Thread 3066776932 joined [08:35:11]Waiting for new connection... [08:35:11] Sock 5.Parse request [08:35:11]Sock 5.Check first char [08:35:11]Sock 5.First char is OK [08:35:11]request: POST /json_proto HTTP/1.0 [08:35:11]Method: POST [08:35:11]URL: /json_proto [08:35:11]Method is POST - this is cgi request [08:35:11]url: /json_proto [08:35:11]query_string will be loaded in cgi processing [08:35:11]execute_cgi json_proto POST (null) [08:35:11]execute_cgi path=json_proto method=POST [08:35:11]POST find Content-Length [08:35:11]Host: 172.17.53.195:8080 [08:35:11]Content-Length: 766 [08:35:11]Content-Type: application/json [08:35:11] [08:35:11]POST finish read [08:35:11]Found Content-Length = 766 [08:35:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:11]execute_script... [08:35: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)220483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.15 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:11]POST & json_proto [08:35:11]process_json_proto [08:35:11]json parsed OK: [08:35:11]protocol is kg_v1.0 [08:35:11]action value=close_receipt [08:35:11]process_action close_receipt [08:35:11]cmd_close_receipt [08:35:11]MH_GetDate [08:35:11]Write to MH i2c: F0 00 00 12 31 32 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: F0 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: F0 09 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: F0 09 00 12 31 00 50 12 16 67 21 48 4A 65 32 [08:35:11]GetLastDocTimeStamp 1729499589 [08:35:11]current date 1729499728 [08:35:11]FM_GetShiftState [08:35:11]SAM_PROTO_GetShiftState [08:35:11]wFMCommunicate request_size=4 [08:35:11]MH_SAM_APDU [08:35:11]CAPDU: 80 13 01 00 [08:35:11]Write to MH i2c: E2 08 00 13 31 80 13 01 00 00 00 00 00 C1 [08:35:11]Write i2c OK [08:35:11]MH_I2C_Read... [08:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:11]Read from MH i2c: E2 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 0E 00 [08:35:11]MH_I2C_Read... [08:35:11]Read from MH i2c: E2 0E 00 13 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CA [08:35:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:35:11]wFMCommunicate OK [08:35:11]SAM_PROTO_GetShiftState done [08:35:11]FM_GetShiftState done [08:35:11]opened in 1729470944 [08:35:11]opened+sec_in_day 1729557344 [08:35:11]quantity*price = 120015 [08:35:11]sum+1 = 120016 [08:35:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.15 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.15 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 27 21.10.2024 08:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165916 ФПД: 228759893537325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083528&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165916&fm=228759893537325&tin=02508201610067®Number=0000000000091764&sum=120015 [08:35:12]StoreToDocumentArchive [08:35:12]shift 535 fd 165916 [08:35:12]save to /storage/0535/doc_00165916 [08:35:12]save last doc name /storage/0535/doc_00165916 to /storage/kkm_last_doc_name [08:35:12]save OK [08:35:12]Clear old archive folders... [08:35:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:35:12]tlvbuf is 0190C320 [08:35:12]SAM_PROTO_ClearQueue [08:35:12]wFMCommunicate request_size=4 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 09 00 00 [08:35:12]Write to MH i2c: E2 08 00 20 31 80 09 00 00 00 00 00 00 C3 [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 20 31 00 90 00 C5 [08:35:12]RAPDU: 90 00 [08:35:12]wFMCommunicate OK [08:35:12]SAM_PROTO_ClearQueue done [08:35:12]KKMCreateOFDPacket [08:35:12]OFDProtocolAddRootSTLVToBuf [08:35:12]FM_MakeSignedData [08:35:12]FM_MakeSignedData [08:35:12]SAM_PROTO_SignData [08:35:12]wFMCommunicate request_size=4 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 0D 01 02 [08:35:12]Write to MH i2c: E2 08 00 21 31 80 0D 01 02 00 00 00 00 CB [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 21 31 00 90 00 C6 [08:35:12]RAPDU: 90 00 [08:35:12]wFMCommunicate OK [08:35:12]wFMCommunicate request_size=255 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 50 12 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 88 02 00 35 04 06 00 D0 0E 50 31 [08:35:12]Write to MH i2c: E2 02 01 22 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 50 12 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 88 02 00 35 04 06 00 D0 0E 50 31 00 00 FB [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 22 31 00 90 00 C7 [08:35:12]RAPDU: 90 00 [08:35:12]wFMCommunicate OK [08:35:12]wFMCommunicate request_size=7 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 0D 02 02 02 72 2D [08:35:12]Write to MH i2c: E2 0A 00 23 31 80 0D 02 02 02 00 72 2D 00 00 71 [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 03 00 23 31 00 90 00 C8 [08:35:12]RAPDU: 90 00 [08:35:12]wFMCommunicate OK [08:35:12]wFMCommunicate request_size=4 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 0D 03 02 [08:35:12]Write to MH i2c: E2 08 00 24 31 80 0D 03 02 00 00 00 00 D0 [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 0B 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 0B 00 24 31 00 23 E6 15 55 CA 42 CA F8 90 00 12 [08:35:12]RAPDU: 23 E6 15 55 CA 42 CA F8 90 00 [08:35:12]wFMCommunicate OK [08:35:12]SAM_PROTO_SignData done [08:35:12]FM_MakeSignedData done [08:35:12]CreateOFDProtocolMessage [08:35:12]wFMCommunicate request_size=4 [08:35:12]MH_SAM_APDU [08:35:12]CAPDU: 80 11 00 00 [08:35:12]Write to MH i2c: E2 08 00 25 31 80 11 00 00 00 00 00 00 D0 [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:12]Read from MH i2c: E2 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 17 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: E2 17 00 25 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 28 [08:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:35:12]wFMCommunicate OK [08:35:12]CreateOFDProtocolMessage done [08:35:12]OFDSenderStorePacket 165916 [08:35:12]StoreOFDPacket docnum=165916 [08:35:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EC 54 04 01 DB 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 50 12 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 88 02 00 35 04 06 00 D0 0E 50 31 72 2D 23 E6 15 55 CA 42 CA F8 [08:35:12]CheckFolder [08:35:12]dirname=/storage/ofd_packets [08:35:12]CheckFolder done [08:35:12]ProducePacketName [08:35:12]name=ofd_packets/00165916 [08:35:12]NVStorageSaveData ofd_packets/00165916 [08:35:12]File name is /storage/ofd_packets/00165916 [08:35:12]Write 298 bytes [08:35:12]NVStorageSaveData done [08:35:12]OFDSenderStorePacket done [08:35:12]KKMCreateOFDPacket done [08:35:12]NVStorageSaveData kkm_last_timestamp [08:35:12]File name is /storage/kkm_last_timestamp [08:35:12]Write 4 bytes [08:35:12]NVStorageSaveData done [08:35:12]ExternCall_PrintAddStr [08:35:12]wPrintStart [08:35:12]Write to MH i2c: 01 00 00 26 31 57 [08:35:12]Write i2c OK [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: 01 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: 01 07 00 [08:35:12]MH_I2C_Read... [08:35:12]Read from MH i2c: 01 07 00 26 31 00 00 00 00 00 FF 0F 6C [08:35:12]RasterBufferAndPrint [08:35:12]line Счет N : (1)220483 [08:35:12]line ИНН: 02508201610067 [08:35:12]line Контрольно-Кассовый Чек [08:35:12]line ПРОДАЖА [08:35:12]line ТРК (МРК, ГНК) : 31 [08:35:12]line Товар: 2710194210 [08:35:12]line ДТ-К-5 [08:35:12]line 15.750 * 76.20 [08:35:12]line = 1200.15 [08:35:12]line НДС 12% НСП 1% [08:35:12]line > о реализуемом товаре [08:35:12]line ИТОГО: 1200.15 [08:35:12]line НСП 1% : 10.62 [08:35:12]line НДС 12% : 127.45 [08:35:12]line Наличными: 0.00 [08:35:12]line Безнал.: 1200.15 [08:35:12]line Место: АЗС № 161 "Партнер Нефть" [08:35:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:35:12]line СНО: Общий режим [08:35:12]line Чек 27 21.10.2024 08:35 [08:35:12]line Смена: 535 ФФД: 1.0 [08:35:12]line ЗНМ: 0300000104 [08:35:12]line РНМ: 0000000000091764 [08:35:12]line Версия ККМ: 001 [08:35:12]line Платежная система: Mbank [08:35:12]line ФМ: 0000000000871759 [08:35:12]line ФД: 165916 [08:35:12]line ФПД: 228759893537325 [08:35:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T083528&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165916&fm=228759893537325&tin=02508201610067®Number=0000000000091764&sum=120015 [08:35:13]OFD Sender: Processing packet 165916 [packets to send 48, broken 47] [08:35:13]ProducePacketName [08:35:13]name=ofd_packets/00165916 [08:35:13]OFD Sender: To server: pG, [08:35:13]CommunicateWithHost lk.salyk.kg:30040 [08:35:13]ConnectInit lk.salyk.kg [08:35:13]written 0, free lines is 4095 [08:35:13]Connected sock=6 [08:35:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 EC 54 04 01 DB 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 50 12 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 88 02 00 35 04 06 00 D0 0E 50 31 72 2D 23 E6 15 55 CA 42 CA F8 [08: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 35 39 4F 00 00 00 45 51 47 00 2D E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 88 02 00 F4 03 04 00 BF B8 15 67 B6 04 01 00 00 EC 5C B5 7E 0C 6E 2E 62 [08:35:13]CommunicateWithHost err = 0 [08:35:13]CheckOFDResponse [08:35:13]1017 (14) - 77093643461234 [08:35:13]1041 (16) - 0000000000871759 [08:35:13]1040 (4) - 165916 [08:35:13]1012 (4) - 21.10.2024 02:13 [08:35:13]1206 (1) - 0 [08:35:13]OFD Sender: Remove packet 165916 [08:35:13]ProducePacketName [08:35:13]name=ofd_packets/00165916 [08:35:13]NVStorageDeleteData [08:35:13]Write to MH i2c: 01 00 00 4F 31 80 [08:35:13]Write i2c OK [08:35:13]MH_I2C_Read... [08:35:13]Read from MH i2c: 01 [08:35:13]MH_I2C_Read... [08:35:13]Read from MH i2c: 01 07 00 [08:35:13]MH_I2C_Read... [08:35:13]Read from MH i2c: 01 07 00 4F 31 00 00 00 00 00 E1 0C 74 [08:35:13]RasterBufferAndPrint [08:35:13]line [08:35:13]line [08:35:13]line [08:35:13]line [08:35:13]line [08:35:13]written 0, free lines is 3305 [08:35:13]MH_Cut [08:35:13]Write to MH i2c: D1 01 00 56 31 01 59 [08:35:13]Write i2c OK [08:35:13]MH_I2C_Read... [08:35:13]Read from MH i2c: D1 [08:35:13]MH_I2C_Read... [08:35:13]Read from MH i2c: D1 01 00 [08:35:13]MH_I2C_Read... [08:35:13]Read from MH i2c: D1 01 00 56 31 00 58 [08:35:13]Write to MH i2c: 01 00 00 57 31 88 [08:35:13]Write i2c OK [08:35:13]MH_I2C_Read... [08:35:14]OFD Sender: No OFD packet to send [08:35:14]*** Cut start [08:35:14]*** Partial cut [08:35:14]*** CUTSNS_PIN = 1 [08:35:14]*** CUTSNS_PIN = 0 [08:35:14]*** Brake cut motor [08:35:15]Read from MH i2c: 01 [08:35:15]MH_I2C_Read... [08:35:15]*** Stop cut motor [08:35:15]*** Cut end [08:35:15]Read from MH i2c: 01 07 00 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: 01 07 00 57 31 00 00 00 00 00 FF 0F 9D [08:35:15]process_action close_receipt done [08:35:15]requested_data is exist [08:35:15]produce_requested_data [08:35:15]requested_item fm.sn is exist - process it [08:35:15]wFMCommunicate request_size=4 [08:35:15]MH_SAM_APDU [08:35:15]CAPDU: 80 11 00 00 [08:35:15]Write to MH i2c: E2 08 00 58 31 80 11 00 00 00 00 00 00 03 [08:35:15]Write i2c OK [08:35:15]MH_I2C_Read... [08:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:15]Read from MH i2c: E2 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: E2 17 00 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: E2 17 00 58 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [08:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:35:15]wFMCommunicate OK [08:35:15]requested_item fd.num is exist - process it [08:35:15]SAM_PROTO_GetFieldsCounters [08:35:15]wFMCommunicate request_size=4 [08:35:15]MH_SAM_APDU [08:35:15]CAPDU: 80 13 00 00 [08:35:15]Write to MH i2c: E2 08 00 59 31 80 13 00 00 00 00 00 00 06 [08:35:15]Write i2c OK [08:35:15]MH_I2C_Read... [08:35:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:15]Read from MH i2c: E2 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: E2 62 00 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: E2 62 00 59 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [08:35:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:15]wFMCommunicate OK [08:35:15]SAM_PROTO_GetFieldsCounters done [08:35:15]requested_item shift.num is exist - process it [08:35:15]requested_item shift.opened is exist - process it [08:35:15]req_shift_opened [08:35:15]FM_GetShiftState [08:35:15]SAM_PROTO_GetShiftState [08:35:15]wFMCommunicate request_size=4 [08:35:15]MH_SAM_APDU [08:35:15]CAPDU: 80 13 01 00 [08:35:15]Write to MH i2c: E2 08 00 5A 31 80 13 01 00 00 00 00 00 08 [08:35:15]Write i2c OK [08:35:15]MH_I2C_Read... [08:35:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:15]Read from MH i2c: E2 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: E2 0E 00 [08:35:15]MH_I2C_Read... [08:35:15]Read from MH i2c: E2 0E 00 5A 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 11 [08:35:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:35:15]wFMCommunicate OK [08:35:15]SAM_PROTO_GetShiftState done [08:35:15]FM_GetShiftState done [08:35:15]req_shift_opened done [08:35:15]requested_item shift.open_date is exist - process it [08:35:15]req_shift_open_date [08:35:15]req_shift_open_date done [08:35:15]produce_requested_data done [08:35:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165916,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:35:15]process_action_free close_receipt [08:35:15]json_value_free [08:35:15]json_value_free done [08:35:15]process_json_proto returns [08:35:15]Send response to host [08:35:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165916,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:35:15]free response buf [08:35:15]execute_script done [08:35:15]execute_script returns [08:35:15]free content buf [08:35:15]Sock 5.Close socket [08:35:15]Sock 5.Thread stoped [08:35:19]OFD Sender: No OFD packet to send [08:35:24]OFD Sender: No OFD packet to send [08:35:29]OFD Sender: No OFD packet to send [08:35:34]OFD Sender: No OFD packet to send [08:35:39]OFD Sender: No OFD packet to send [08:35:44]OFD Sender: No OFD packet to send [08:35:49]OFD Sender: No OFD packet to send [08:35:54]OFD Sender: No OFD packet to send [08:35:59]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:24]OFD Sender: No OFD packet to send [08:36:29]OFD Sender: No OFD packet to send [08:36:34]OFD Sender: No OFD packet to send [08:36:39]OFD Sender: No OFD packet to send [08:36:44]OFD Sender: No OFD packet to send [08:36:49]OFD Sender: No OFD packet to send [08:36:54]OFD Sender: No OFD packet to send [08:36:59]OFD Sender: No OFD packet to send [08:37:04]OFD Sender: No OFD packet to send [08:37:09]OFD Sender: No OFD packet to send [08:37:14]OFD Sender: No OFD packet to send [08:37:19]OFD Sender: No OFD packet to send [08:37:24]OFD Sender: No OFD packet to send [08:37:29]OFD Sender: No OFD packet to send [08:37:34]OFD Sender: No OFD packet to send [08:37:39]OFD Sender: No OFD packet to send [08:37:44]OFD Sender: No OFD packet to send [08:37:49]OFD Sender: No OFD packet to send [08:37:54]OFD Sender: No OFD packet to send [08:37:59]OFD Sender: No OFD packet to send [08:38:04]OFD Sender: No OFD packet to send [08:38:09]OFD Sender: No OFD packet to send [08:38:14]OFD Sender: No OFD packet to send [08:38:19]OFD Sender: No OFD packet to send [08:38:24]OFD Sender: No OFD packet to send [08:38:29]OFD Sender: No OFD packet to send [08:38:34]OFD Sender: No OFD packet to send [08:38:39]OFD Sender: No OFD packet to send [08:38:44]OFD Sender: No OFD packet to send [08:38:49]OFD Sender: No OFD packet to send [08:38:54]OFD Sender: No OFD packet to send [08:38:59]OFD Sender: No OFD packet to send [08:39:04]OFD Sender: No OFD packet to send [08:39:09]OFD Sender: No OFD packet to send [08:39:14]OFD Sender: No OFD packet to send [08:39:19]OFD Sender: No OFD packet to send [08:39:24]OFD Sender: No OFD packet to send [08:39:29]OFD Sender: No OFD packet to send [08:39:34]OFD Sender: No OFD packet to send [08:39:39]OFD Sender: No OFD packet to send [08:39:44]OFD Sender: No OFD packet to send [08:39:49]OFD Sender: No OFD packet to send [08:39:54]OFD Sender: No OFD packet to send [08:39:59]OFD Sender: No OFD packet to send [08:40:04]OFD Sender: No OFD packet to send [08:40:09]OFD Sender: No OFD packet to send [08:40:14]OFD Sender: No OFD packet to send [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40:39]OFD Sender: No OFD packet to send [08:40:44]OFD Sender: No OFD packet to send [08:40:49]OFD Sender: No OFD packet to send [08:40:54]OFD Sender: No OFD packet to send [08:40:59]OFD Sender: No OFD packet to send [08:41:04]OFD Sender: No OFD packet to send [08:41:09]OFD Sender: No OFD packet to send [08:41:14]OFD Sender: No OFD packet to send [08:41:19]OFD Sender: No OFD packet to send [08:41:24]OFD Sender: No OFD packet to send [08:41:29]OFD Sender: No OFD packet to send [08:41:34]OFD Sender: No OFD packet to send [08:41:39]OFD Sender: No OFD packet to send [08:41:44]OFD Sender: No OFD packet to send [08:41:49]OFD Sender: No OFD packet to send [08:41:54]OFD Sender: No OFD packet to send [08:41:59]OFD Sender: No OFD packet to send [08:42:04]OFD Sender: No OFD packet to send [08:42:09]OFD Sender: No OFD packet to send [08:42:14]OFD Sender: No OFD packet to send [08:42:19]OFD Sender: No OFD packet to send [08:42:24]OFD Sender: No OFD packet to send [08:42:29]OFD Sender: No OFD packet to send [08:42:34]OFD Sender: No OFD packet to send [08:42:39]OFD Sender: No OFD packet to send [08:42:44]OFD Sender: No OFD packet to send [08:42:49]OFD Sender: No OFD packet to send [08:42:54]OFD Sender: No OFD packet to send [08:42:59]OFD Sender: No OFD packet to send [08:43:04]OFD Sender: No OFD packet to send [08:43:09]OFD Sender: No OFD packet to send [08:43:14]OFD Sender: No OFD packet to send [08:43:19]OFD Sender: No OFD packet to send [08:43:24]OFD Sender: No OFD packet to send [08:43:29]OFD Sender: No OFD packet to send [08:43:34]OFD Sender: No OFD packet to send [08:43:39]OFD Sender: No OFD packet to send [08:43:44]OFD Sender: No OFD packet to send [08:43:49]OFD Sender: No OFD packet to send [08:43:54]OFD Sender: No OFD packet to send [08:43:59]OFD Sender: No OFD packet to send [08:44:04]OFD Sender: No OFD packet to send [08:44:09]OFD Sender: No OFD packet to send [08:44:14]OFD Sender: No OFD packet to send [08:44:19]OFD Sender: No OFD packet to send [08:44:24]OFD Sender: No OFD packet to send [08:44:29]OFD Sender: No OFD packet to send [08:44:34]OFD Sender: No OFD packet to send [08:44:39]OFD Sender: No OFD packet to send [08:44:44]OFD Sender: No OFD packet to send [08:44:49]OFD Sender: No OFD packet to send [08:44:54]OFD Sender: No OFD packet to send [08:44:59]OFD Sender: No OFD packet to send [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47: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:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:17]accept exits with 7 [08:50:17]New connection [08:50:17]New thread 3066776932 created [08:50:17]Thread 3066920292 joined [08:50:17]Waiting for new connection... [08:50:17] Sock 7.Parse request [08:50:17]Sock 7.Check first char [08:50:17]Sock 7.First char is OK [08:50:17]request: POST /json_proto HTTP/1.0 [08:50:17]Method: POST [08:50:17]URL: /json_proto [08:50:17]Method is POST - this is cgi request [08:50:17]url: /json_proto [08:50:17]query_string will be loaded in cgi processing [08:50:17]execute_cgi json_proto POST (null) [08:50:17]execute_cgi path=json_proto method=POST [08:50:17]POST find Content-Length [08:50:17]Host: 172.17.53.195:8080 [08:50:17]Content-Length: 677 [08:50:17]Content-Type: application/json [08:50:17] [08:50:17]POST finish read [08:50:17]Found Content-Length = 677 [08:50:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:17]execute_script... [08:50:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:17]POST & json_proto [08:50:17]process_json_proto [08:50:17]json parsed OK: [08:50:17]protocol is kg_v1.0 [08:50:17]action value=close_receipt [08:50:17]process_action close_receipt [08:50:17]cmd_close_receipt [08:50:17]MH_GetDate [08:50:17]Write to MH i2c: F0 00 00 5B 31 7B [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: F0 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: F0 09 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: F0 09 00 5B 31 00 DA 15 16 67 21 48 4A 65 08 [08:50:17]GetLastDocTimeStamp 1729499728 [08:50:17]current date 1729500634 [08:50:17]FM_GetShiftState [08:50:17]SAM_PROTO_GetShiftState [08:50:17]wFMCommunicate request_size=4 [08:50:17]MH_SAM_APDU [08:50:17]CAPDU: 80 13 01 00 [08:50:17]Write to MH i2c: E2 08 00 5C 31 80 13 01 00 00 00 00 00 0A [08:50:17]Write i2c OK [08:50:17]MH_I2C_Read... [08:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:17]Read from MH i2c: E2 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 0E 00 [08:50:17]MH_I2C_Read... [08:50:17]Read from MH i2c: E2 0E 00 5C 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 13 [08:50:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:50:17]wFMCommunicate OK [08:50:17]SAM_PROTO_GetShiftState done [08:50:17]FM_GetShiftState done [08:50:17]opened in 1729470944 [08:50:17]opened+sec_in_day 1729557344 [08:50:17]quantity*price = 30038 [08:50:17]sum+1 = 30039 [08:50:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 28 21.10.2024 08:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165917 ФПД: 71871855534540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085034&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165917&fm=71871855534540&tin=02508201610067®Number=0000000000091764&sum=30000 [08:50:18]StoreToDocumentArchive [08:50:18]shift 535 fd 165917 [08:50:18]save to /storage/0535/doc_00165917 [08:50:18]save last doc name /storage/0535/doc_00165917 to /storage/kkm_last_doc_name [08:50:18]save OK [08:50:18]Clear old archive folders... [08:50:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:18]tlvbuf is 015BD400 [08:50:18]SAM_PROTO_ClearQueue [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 09 00 00 [08:50:18]Write to MH i2c: E2 08 00 69 31 80 09 00 00 00 00 00 00 0C [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 69 31 00 90 00 0E [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]SAM_PROTO_ClearQueue done [08:50:18]KKMCreateOFDPacket [08:50:18]OFDProtocolAddRootSTLVToBuf [08:50:18]FM_MakeSignedData [08:50:18]FM_MakeSignedData [08:50:18]SAM_PROTO_SignData [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 01 02 [08:50:18]Write to MH i2c: E2 08 00 6A 31 80 0D 01 02 00 00 00 00 14 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 6A 31 00 90 00 0F [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=255 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA 15 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 88 02 00 35 04 06 00 41 [08:50:18]Write to MH i2c: E2 02 01 6B 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA 15 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 88 02 00 35 04 06 00 41 00 00 27 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 6B 31 00 90 00 10 [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=10 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 02 02 05 5D F8 6B 21 CC [08:50:18]Write to MH i2c: E2 0D 00 6C 31 80 0D 02 02 05 00 5D F8 6B 21 CC 00 00 CE [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 03 00 6C 31 00 90 00 11 [08:50:18]RAPDU: 90 00 [08:50:18]wFMCommunicate OK [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 0D 03 02 [08:50:18]Write to MH i2c: E2 08 00 6D 31 80 0D 03 02 00 00 00 00 19 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0B 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0B 00 6D 31 00 DD E7 ED E1 BE 25 E7 3D 90 00 B3 [08:50:18]RAPDU: DD E7 ED E1 BE 25 E7 3D 90 00 [08:50:18]wFMCommunicate OK [08:50:18]SAM_PROTO_SignData done [08:50:18]FM_MakeSignedData done [08:50:18]CreateOFDProtocolMessage [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 11 00 00 [08:50:18]Write to MH i2c: E2 08 00 6E 31 80 11 00 00 00 00 00 00 19 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 17 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 17 00 6E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 71 [08:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:50:18]wFMCommunicate OK [08:50:18]CreateOFDProtocolMessage done [08:50:18]OFDSenderStorePacket 165917 [08:50:18]StoreOFDPacket docnum=165917 [08:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 33 07 01 31 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA 15 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 88 02 00 35 04 06 00 41 5D F8 6B 21 CC DD E7 ED E1 BE 25 E7 3D [08:50:18]CheckFolder [08:50:18]dirname=/storage/ofd_packets [08:50:18]CheckFolder done [08:50:18]ProducePacketName [08:50:18]name=ofd_packets/00165917 [08:50:18]NVStorageSaveData ofd_packets/00165917 [08:50:18]File name is /storage/ofd_packets/00165917 [08:50:18]Write 301 bytes [08:50:18]NVStorageSaveData done [08:50:18]OFDSenderStorePacket done [08:50:18]KKMCreateOFDPacket done [08:50:18]NVStorageSaveData kkm_last_timestamp [08:50:18]File name is /storage/kkm_last_timestamp [08:50:18]Write 4 bytes [08:50:18]NVStorageSaveData done [08:50:18]ExternCall_PrintAddStr [08:50:18]wPrintStart [08:50:18]Write to MH i2c: 01 00 00 6F 31 A0 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 07 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: 01 07 00 6F 31 00 00 00 00 00 FF 0F B5 [08:50:18]RasterBufferAndPrint [08:50:18]line Счет N : (1)220484 [08:50:18]line ИНН: 02508201610067 [08:50:18]line Контрольно-Кассовый Чек [08:50:18]line ПРОДАЖА [08:50:18]line ТРК (МРК, ГНК) : 33 [08:50:18]line Товар: 2710124130 [08:50:18]line Аи-92-К-5 [08:50:18]line 4.490 * 66.90 [08:50:18]line = 300.38 [08:50:18]line НДС 12% НСП 1% [08:50:18]line > о реализуемом товаре [08:50:18]line ОКРУГЛЕНИЕ: -0.38 [08:50:18]line ИТОГО: 300.00 [08:50:18]line Внесено: 300.00 [08:50:18]line СДАЧА: 0.00 [08:50:18]line НСП 1% : 2.66 [08:50:18]line НДС 12% : 31.90 [08:50:18]line Наличными: 300.00 [08:50:18]line Безнал.: 0.00 [08:50:18]line Место: АЗС № 161 "Партнер Нефть" [08:50:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:50:18]line СНО: Общий режим [08:50:18]line Чек 28 21.10.2024 08:50 [08:50:18]line Смена: 535 ФФД: 1.0 [08:50:18]line ЗНМ: 0300000104 [08:50:18]line РНМ: 0000000000091764 [08:50:18]line Версия ККМ: 001 [08:50:18]line ФМ: 0000000000871759 [08:50:18]line ФД: 165917 [08:50:18]line ФПД: 71871855534540 [08:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085034&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165917&fm=71871855534540&tin=02508201610067®Number=0000000000091764&sum=30000 [08:50:19]OFD Sender: Processing packet 165917 [packets to send 48, broken 47] [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00165917 [08:50:19]OFD Sender: To server: pG, [08:50:19]CommunicateWithHost lk.salyk.kg:30040 [08:50:19]ConnectInit lk.salyk.kg [08:50:19]written 0, free lines is 4095 [08:50:19]Connected sock=6 [08:50:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 35 33 07 01 31 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 DA 15 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 88 02 00 35 04 06 00 41 5D F8 6B 21 CC DD E7 ED E1 BE 25 E7 3D [08:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 02 47 00 82 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 88 02 00 F4 03 04 00 49 BC 15 67 B6 04 01 00 00 21 C9 E5 7D 13 1E F1 66 [08:50:19]CommunicateWithHost err = 0 [08:50:19]CheckOFDResponse [08:50:19]1017 (14) - 77093643461234 [08:50:19]1041 (16) - 0000000000871759 [08:50:19]1040 (4) - 165917 [08:50:19]1012 (4) - 21.10.2024 02:28 [08:50:19]1206 (1) - 0 [08:50:19]OFD Sender: Remove packet 165917 [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00165917 [08:50:19]NVStorageDeleteData [08:50:19]Write to MH i2c: 01 00 00 9A 31 CB [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 9A 31 00 00 00 00 00 A6 0C 84 [08:50:19]RasterBufferAndPrint [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]line [08:50:19]written 0, free lines is 3246 [08:50:19]MH_Cut [08:50:19]Write to MH i2c: D1 01 00 A1 31 01 A4 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 01 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: D1 01 00 A1 31 00 A3 [08:50:19]Write to MH i2c: 01 00 00 A2 31 D3 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]OFD Sender: No OFD packet to send [08:50:20]*** Cut start [08:50:20]*** Partial cut [08:50:20]*** CUTSNS_PIN = 1 [08:50:20]*** CUTSNS_PIN = 0 [08:50:20]*** Brake cut motor [08:50:21]Read from MH i2c: 01 [08:50:21]MH_I2C_Read... [08:50:21]*** Stop cut motor [08:50:21]*** Cut end [08:50:21]Read from MH i2c: 01 07 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: 01 07 00 A2 31 00 00 00 00 00 FF 0F E8 [08:50:21]process_action close_receipt done [08:50:21]requested_data is exist [08:50:21]produce_requested_data [08:50:21]requested_item fm.sn is exist - process it [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 11 00 00 [08:50:21]Write to MH i2c: E2 08 00 A3 31 80 11 00 00 00 00 00 00 4E [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 17 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 17 00 A3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [08:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:50:21]wFMCommunicate OK [08:50:21]requested_item fd.num is exist - process it [08:50:21]SAM_PROTO_GetFieldsCounters [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 13 00 00 [08:50:21]Write to MH i2c: E2 08 00 A4 31 80 13 00 00 00 00 00 00 51 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 62 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 62 00 A4 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [08:50:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_GetFieldsCounters done [08:50:21]requested_item shift.num is exist - process it [08:50:21]requested_item shift.opened is exist - process it [08:50:21]req_shift_opened [08:50:21]FM_GetShiftState [08:50:21]SAM_PROTO_GetShiftState [08:50:21]wFMCommunicate request_size=4 [08:50:21]MH_SAM_APDU [08:50:21]CAPDU: 80 13 01 00 [08:50:21]Write to MH i2c: E2 08 00 A5 31 80 13 01 00 00 00 00 00 53 [08:50:21]Write i2c OK [08:50:21]MH_I2C_Read... [08:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:21]Read from MH i2c: E2 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0E 00 [08:50:21]MH_I2C_Read... [08:50:21]Read from MH i2c: E2 0E 00 A5 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5C [08:50:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:50:21]wFMCommunicate OK [08:50:21]SAM_PROTO_GetShiftState done [08:50:21]FM_GetShiftState done [08:50:21]req_shift_opened done [08:50:21]requested_item shift.open_date is exist - process it [08:50:21]req_shift_open_date [08:50:21]req_shift_open_date done [08:50:21]produce_requested_data done [08:50:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165917,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:50:21]process_action_free close_receipt [08:50:21]json_value_free [08:50:21]json_value_free done [08:50:21]process_json_proto returns [08:50:21]Send response to host [08:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165917,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:50:21]free response buf [08:50:21]execute_script done [08:50:21]execute_script returns [08:50:21]free content buf [08:50:21]Sock 7.Close socket [08:50:21]Sock 7.Thread stoped [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:20]OFD Sender: No OFD packet to send [08:51:25]OFD Sender: No OFD packet to send [08:51:30]OFD Sender: No OFD packet to send [08:51:35]OFD Sender: No OFD packet to send [08:51:40]OFD Sender: No OFD packet to send [08:51:45]OFD Sender: No OFD packet to send [08:51:50]OFD Sender: No OFD packet to send [08:51:55]OFD Sender: No OFD packet to send [08:52:00]OFD Sender: No OFD packet to send [08:52:05]OFD Sender: No OFD packet to send [08:52:10]OFD Sender: No OFD packet to send [08:52:15]OFD Sender: No OFD packet to send [08:52:20]OFD Sender: No OFD packet to send [08:52:25]OFD Sender: No OFD packet to send [08:52:30]OFD Sender: No OFD packet to send [08:52:35]OFD Sender: No OFD packet to send [08:52:40]OFD Sender: No OFD packet to send [08:52:45]OFD Sender: No OFD packet to send [08:52:50]OFD Sender: No OFD packet to send [08:52:55]OFD Sender: No OFD packet to send [08:53:00]OFD Sender: No OFD packet to send [08:53:05]OFD Sender: No OFD packet to send [08:53:10]OFD Sender: No OFD packet to send [08:53:15]OFD Sender: No OFD packet to send [08:53:20]OFD Sender: No OFD packet to send [08:53:25]OFD Sender: No OFD packet to send [08:53:30]OFD Sender: No OFD packet to send [08:53:35]OFD Sender: No OFD packet to send [08:53:40]OFD Sender: No OFD packet to send [08:53:45]OFD Sender: No OFD packet to send [08:53:50]OFD Sender: No OFD packet to send [08:53:55]OFD Sender: No OFD packet to send [08:54:00]OFD Sender: No OFD packet to send [08:54:05]OFD Sender: No OFD packet to send [08:54:10]OFD Sender: No OFD packet to send [08:54:15]OFD Sender: No OFD packet to send [08:54:20]OFD Sender: No OFD packet to send [08:54:25]OFD Sender: No OFD packet to send [08:54:30]OFD Sender: No OFD packet to send [08:54:35]OFD Sender: No OFD packet to send [08:54:40]OFD Sender: No OFD packet to send [08:54:45]OFD Sender: No OFD packet to send [08:54:50]OFD Sender: No OFD packet to send [08:54:55]OFD Sender: No OFD packet to send [08:55:00]OFD Sender: No OFD packet to send [08:55:05]OFD Sender: No OFD packet to send [08:55:10]OFD Sender: No OFD packet to send [08:55:15]OFD Sender: No OFD packet to send [08:55:20]OFD Sender: No OFD packet to send [08:55:25]OFD Sender: No OFD packet to send [08:55:30]OFD Sender: No OFD packet to send [08:55:35]OFD Sender: No OFD packet to send [08:55:40]OFD Sender: No OFD packet to send [08:55:45]OFD Sender: No OFD packet to send [08:55:50]OFD Sender: No OFD packet to send [08:55:55]OFD Sender: No OFD packet to send [08:56:00]OFD Sender: No OFD packet to send [08:56:05]OFD Sender: No OFD packet to send [08:56:08]accept exits with 5 [08:56:08]New connection [08:56:08]New thread 3066920292 created [08:56:08]Thread 3066776932 joined [08:56:08]Waiting for new connection... [08:56:08] Sock 5.Parse request [08:56:08]Sock 5.Check first char [08:56:08]Sock 5.First char is OK [08:56:08]request: POST /json_proto HTTP/1.0 [08:56:08]Method: POST [08:56:08]URL: /json_proto [08:56:08]Method is POST - this is cgi request [08:56:08]url: /json_proto [08:56:08]query_string will be loaded in cgi processing [08:56:08]execute_cgi json_proto POST (null) [08:56:08]execute_cgi path=json_proto method=POST [08:56:08]POST find Content-Length [08:56:08]Host: 172.17.53.195:8080 [08:56:08]Content-Length: 677 [08:56:08]Content-Type: application/json [08:56:08] [08:56:08]POST finish read [08:56:08]Found Content-Length = 677 [08:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:08]execute_script... [08:56: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)220485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:08]POST & json_proto [08:56:08]process_json_proto [08:56:08]json parsed OK: [08:56:08]protocol is kg_v1.0 [08:56:08]action value=close_receipt [08:56:08]process_action close_receipt [08:56:08]cmd_close_receipt [08:56:08]MH_GetDate [08:56:08]Write to MH i2c: F0 00 00 A6 31 C6 [08:56:08]Write i2c OK [08:56:08]MH_I2C_Read... [08:56:08]Read from MH i2c: F0 [08:56:08]MH_I2C_Read... [08:56:08]Read from MH i2c: F0 09 00 [08:56:08]MH_I2C_Read... [08:56:08]Read from MH i2c: F0 09 00 A6 31 00 39 17 16 67 21 48 4A 65 B4 [08:56:08]GetLastDocTimeStamp 1729500634 [08:56:08]current date 1729500985 [08:56:08]FM_GetShiftState [08:56:08]SAM_PROTO_GetShiftState [08:56:08]wFMCommunicate request_size=4 [08:56:08]MH_SAM_APDU [08:56:08]CAPDU: 80 13 01 00 [08:56:08]Write to MH i2c: E2 08 00 A7 31 80 13 01 00 00 00 00 00 55 [08:56:08]Write i2c OK [08:56:08]MH_I2C_Read... [08:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:08]Read from MH i2c: E2 [08:56:08]MH_I2C_Read... [08:56:08]Read from MH i2c: E2 0E 00 [08:56:08]MH_I2C_Read... [08:56:08]Read from MH i2c: E2 0E 00 A7 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5E [08:56:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:56:08]wFMCommunicate OK [08:56:08]SAM_PROTO_GetShiftState done [08:56:08]FM_GetShiftState done [08:56:08]opened in 1729470944 [08:56:08]opened+sec_in_day 1729557344 [08:56:08]quantity*price = 49974 [08:56:08]sum+1 = 49975 [08:56:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 29 21.10.2024 08:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165918 ФПД: 236244557548716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085625&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165918&fm=236244557548716&tin=02508201610067®Number=0000000000091764&sum=49900 [08:56:09]StoreToDocumentArchive [08:56:09]shift 535 fd 165918 [08:56:09]save to /storage/0535/doc_00165918 [08:56:09]save last doc name /storage/0535/doc_00165918 to /storage/kkm_last_doc_name [08:56:09]save OK [08:56:09]Clear old archive folders... [08:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:09]tlvbuf is 0186AE10 [08:56:09]SAM_PROTO_ClearQueue [08:56:09]wFMCommunicate request_size=4 [08:56:09]MH_SAM_APDU [08:56:09]CAPDU: 80 09 00 00 [08:56:09]Write to MH i2c: E2 08 00 B4 31 80 09 00 00 00 00 00 00 57 [08:56:09]Write i2c OK [08:56:09]MH_I2C_Read... [08:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:09]Read from MH i2c: E2 [08:56:09]MH_I2C_Read... [08:56:09]Read from MH i2c: E2 03 00 [08:56:09]MH_I2C_Read... [08:56:09]Read from MH i2c: E2 03 00 B4 31 00 90 00 59 [08:56:09]RAPDU: 90 00 [08:56:09]wFMCommunicate OK [08:56:09]SAM_PROTO_ClearQueue done [08:56:09]KKMCreateOFDPacket [08:56:09]OFDProtocolAddRootSTLVToBuf [08:56:09]FM_MakeSignedData [08:56:09]FM_MakeSignedData [08:56:09]SAM_PROTO_SignData [08:56:09]wFMCommunicate request_size=4 [08:56:09]MH_SAM_APDU [08:56:09]CAPDU: 80 0D 01 02 [08:56:09]Write to MH i2c: E2 08 00 B5 31 80 0D 01 02 00 00 00 00 5F [08:56:09]Write i2c OK [08:56:09]MH_I2C_Read... [08:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:09]Read from MH i2c: E2 [08:56:09]MH_I2C_Read... [08:56:09]Read from MH i2c: E2 03 00 [08:56:09]MH_I2C_Read... [08:56:09]Read from MH i2c: E2 03 00 B5 31 00 90 00 5A [08:56:09]RAPDU: 90 00 [08:56:09]wFMCommunicate OK [08:56:09]wFMCommunicate request_size=255 [08:56:09]MH_SAM_APDU [08:56: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 39 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 88 02 00 35 04 06 00 D6 [08:56:09]Write to MH i2c: E2 02 01 B6 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 39 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 88 02 00 35 04 06 00 D6 00 00 57 [08:56:09]Write i2c OK [08:56:09]MH_I2C_Read... [08:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:09]Read from MH i2c: E2 [08:56:09]MH_I2C_Read... [08:56:09]Read from MH i2c: E2 03 00 [08:56:09]MH_I2C_Read... [08:56:09]Read from MH i2c: E2 03 00 B6 31 00 90 00 5B [08:56:09]RAPDU: 90 00 [08:56:09]wFMCommunicate OK [08:56:09]wFMCommunicate request_size=10 [08:56:09]MH_SAM_APDU [08:56:09]CAPDU: 80 0D 02 02 05 DC F8 EE CC AC [08:56:09]Write to MH i2c: E2 0D 00 B7 31 80 0D 02 02 05 00 DC F8 EE CC AC 00 00 A6 [08:56:09]Write i2c OK [08:56:09]MH_I2C_Read... [08:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 03 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 03 00 B7 31 00 90 00 5C [08:56:10]RAPDU: 90 00 [08:56:10]wFMCommunicate OK [08:56:10]wFMCommunicate request_size=4 [08:56:10]MH_SAM_APDU [08:56:10]CAPDU: 80 0D 03 02 [08:56:10]Write to MH i2c: E2 08 00 B8 31 80 0D 03 02 00 00 00 00 64 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 0B 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 0B 00 B8 31 00 2C F4 7F B4 12 92 F8 59 90 00 AD [08:56:10]RAPDU: 2C F4 7F B4 12 92 F8 59 90 00 [08:56:10]wFMCommunicate OK [08:56:10]SAM_PROTO_SignData done [08:56:10]FM_MakeSignedData done [08:56:10]CreateOFDProtocolMessage [08:56:10]wFMCommunicate request_size=4 [08:56:10]MH_SAM_APDU [08:56:10]CAPDU: 80 11 00 00 [08:56:10]Write to MH i2c: E2 08 00 B9 31 80 11 00 00 00 00 00 00 64 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:10]Read from MH i2c: E2 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 17 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: E2 17 00 B9 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [08:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:56:10]wFMCommunicate OK [08:56:10]CreateOFDProtocolMessage done [08:56:10]OFDSenderStorePacket 165918 [08:56:10]StoreOFDPacket docnum=165918 [08:56:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EB 78 07 01 65 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 39 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 88 02 00 35 04 06 00 D6 DC F8 EE CC AC 2C F4 7F B4 12 92 F8 59 [08:56:10]CheckFolder [08:56:10]dirname=/storage/ofd_packets [08:56:10]CheckFolder done [08:56:10]ProducePacketName [08:56:10]name=ofd_packets/00165918 [08:56:10]NVStorageSaveData ofd_packets/00165918 [08:56:10]File name is /storage/ofd_packets/00165918 [08:56:10]Write 301 bytes [08:56:10]NVStorageSaveData done [08:56:10]OFDSenderStorePacket done [08:56:10]KKMCreateOFDPacket done [08:56:10]NVStorageSaveData kkm_last_timestamp [08:56:10]File name is /storage/kkm_last_timestamp [08:56:10]Write 4 bytes [08:56:10]NVStorageSaveData done [08:56:10]ExternCall_PrintAddStr [08:56:10]wPrintStart [08:56:10]Write to MH i2c: 01 00 00 BA 31 EB [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 07 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 07 00 BA 31 00 00 00 00 00 FF 0F 00 [08:56:10]RasterBufferAndPrint [08:56:10]line Счет N : (1)220485 [08:56:10]line ИНН: 02508201610067 [08:56:10]line Контрольно-Кассовый Чек [08:56:10]line ПРОДАЖА [08:56:10]line ТРК (МРК, ГНК) : 43 [08:56:10]line Товар: 2710124130 [08:56:10]line Аи-92-К-5 [08:56:10]line 7.470 * 66.90 [08:56:10]line = 499.74 [08:56:10]line НДС 12% НСП 1% [08:56:10]line > о реализуемом товаре [08:56:10]line ОКРУГЛЕНИЕ: -0.74 [08:56:10]line ИТОГО: 499.00 [08:56:10]line Внесено: 500.00 [08:56:10]line СДАЧА: 1.00 [08:56:10]line НСП 1% : 4.42 [08:56:10]line НДС 12% : 53.07 [08:56:10]line Наличными: 499.00 [08:56:10]line Безнал.: 0.00 [08:56:10]line Место: АЗС № 161 "Партнер Нефть" [08:56:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:56:10]line СНО: Общий режим [08:56:10]line Чек 29 21.10.2024 08:56 [08:56:10]line Смена: 535 ФФД: 1.0 [08:56:10]line ЗНМ: 0300000104 [08:56:10]line РНМ: 0000000000091764 [08:56:10]line Версия ККМ: 001 [08:56:10]line ФМ: 0000000000871759 [08:56:10]line ФД: 165918 [08:56:10]line ФПД: 236244557548716 [08:56:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085625&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165918&fm=236244557548716&tin=02508201610067®Number=0000000000091764&sum=49900 [08:56:10]OFD Sender: Processing packet 165918 [packets to send 48, broken 47] [08:56:10]ProducePacketName [08:56:10]name=ofd_packets/00165918 [08:56:10]OFD Sender: To server: pG, [08:56:10]CommunicateWithHost lk.salyk.kg:30040 [08:56:10]ConnectInit lk.salyk.kg [08:56:10]written 0, free lines is 4095 [08:56:10]Connected sock=7 [08:56:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EB 78 07 01 65 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 39 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 88 02 00 35 04 06 00 D6 DC F8 EE CC AC 2C F4 7F B4 12 92 F8 59 [08:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 60 2B 47 00 02 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 35 39 10 04 04 00 1E 88 02 00 F4 03 04 00 A8 BD 15 67 B6 04 01 00 00 B2 EA A4 34 C3 D7 A1 79 [08:56:10]CommunicateWithHost err = 0 [08:56:10]CheckOFDResponse [08:56:10]1017 (14) - 77093643461234 [08:56:10]1041 (16) - 0000000000871759 [08:56:10]1040 (4) - 165918 [08:56:10]1012 (4) - 21.10.2024 02:34 [08:56:10]1206 (1) - 0 [08:56:10]OFD Sender: Remove packet 165918 [08:56:10]ProducePacketName [08:56:10]name=ofd_packets/00165918 [08:56:10]NVStorageDeleteData [08:56:10]Write to MH i2c: 01 00 00 E5 31 16 [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 07 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: 01 07 00 E5 31 00 00 00 00 00 AF 0C D8 [08:56:10]RasterBufferAndPrint [08:56:10]line [08:56:10]line [08:56:10]line [08:56:10]line [08:56:10]line [08:56:10]written 0, free lines is 3253 [08:56:10]MH_Cut [08:56:10]Write to MH i2c: D1 01 00 EC 31 01 EF [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: D1 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: D1 01 00 [08:56:10]MH_I2C_Read... [08:56:10]Read from MH i2c: D1 01 00 EC 31 00 EE [08:56:10]Write to MH i2c: 01 00 00 ED 31 1E [08:56:10]Write i2c OK [08:56:10]MH_I2C_Read... [08:56:11]OFD Sender: No OFD packet to send [08:56:11]*** Cut start [08:56:11]*** Partial cut [08:56:11]*** CUTSNS_PIN = 1 [08:56:11]*** CUTSNS_PIN = 0 [08:56:12]*** Brake cut motor [08:56:12]Read from MH i2c: 01 [08:56:12]MH_I2C_Read... [08:56:12]*** Stop cut motor [08:56:12]*** Cut end [08:56:12]Read from MH i2c: 01 07 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: 01 07 00 ED 31 00 00 00 00 00 FF 0F 33 [08:56:12]process_action close_receipt done [08:56:12]requested_data is exist [08:56:12]produce_requested_data [08:56:12]requested_item fm.sn is exist - process it [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 11 00 00 [08:56:12]Write to MH i2c: E2 08 00 EE 31 80 11 00 00 00 00 00 00 99 [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 17 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 17 00 EE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [08:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:56:12]wFMCommunicate OK [08:56:12]requested_item fd.num is exist - process it [08:56:12]SAM_PROTO_GetFieldsCounters [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 13 00 00 [08:56:12]Write to MH i2c: E2 08 00 EF 31 80 13 00 00 00 00 00 00 9C [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 62 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 62 00 EF 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [08:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:12]wFMCommunicate OK [08:56:12]SAM_PROTO_GetFieldsCounters done [08:56:12]requested_item shift.num is exist - process it [08:56:12]requested_item shift.opened is exist - process it [08:56:12]req_shift_opened [08:56:12]FM_GetShiftState [08:56:12]SAM_PROTO_GetShiftState [08:56:12]wFMCommunicate request_size=4 [08:56:12]MH_SAM_APDU [08:56:12]CAPDU: 80 13 01 00 [08:56:12]Write to MH i2c: E2 08 00 F0 31 80 13 01 00 00 00 00 00 9E [08:56:12]Write i2c OK [08:56:12]MH_I2C_Read... [08:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:12]Read from MH i2c: E2 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0E 00 [08:56:12]MH_I2C_Read... [08:56:12]Read from MH i2c: E2 0E 00 F0 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A7 [08:56:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:56:12]wFMCommunicate OK [08:56:12]SAM_PROTO_GetShiftState done [08:56:12]FM_GetShiftState done [08:56:12]req_shift_opened done [08:56:12]requested_item shift.open_date is exist - process it [08:56:12]req_shift_open_date [08:56:12]req_shift_open_date done [08:56:12]produce_requested_data done [08:56:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165918,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:56:12]process_action_free close_receipt [08:56:12]json_value_free [08:56:12]json_value_free done [08:56:12]process_json_proto returns [08:56:12]Send response to host [08:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165918,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:56:12]free response buf [08:56:12]execute_script done [08:56:12]execute_script returns [08:56:12]free content buf [08:56:12]Sock 5.Close socket [08:56:12]Sock 5.Thread stoped [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:27]accept exits with 6 [08:57:27]New connection [08:57:27]New thread 3066776932 created [08:57:27]Thread 3066920292 joined [08:57:27]Waiting for new connection... [08:57:27] Sock 6.Parse request [08:57:27]Sock 6.Check first char [08:57:27]Sock 6.First char is OK [08:57:27]request: POST /json_proto HTTP/1.0 [08:57:27]Method: POST [08:57:27]URL: /json_proto [08:57:27]Method is POST - this is cgi request [08:57:27]url: /json_proto [08:57:27]query_string will be loaded in cgi processing [08:57:27]execute_cgi json_proto POST (null) [08:57:27]execute_cgi path=json_proto method=POST [08:57:27]POST find Content-Length [08:57:27]Host: 172.17.53.195:8080 [08:57:27]Content-Length: 678 [08:57:27]Content-Type: application/json [08:57:27] [08:57:27]POST finish read [08:57:27]Found Content-Length = 678 [08:57:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:27]execute_script... [08:57: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)220486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:27]POST & json_proto [08:57:27]process_json_proto [08:57:27]json parsed OK: [08:57:27]protocol is kg_v1.0 [08:57:27]action value=close_receipt [08:57:27]process_action close_receipt [08:57:27]cmd_close_receipt [08:57:27]MH_GetDate [08:57:27]Write to MH i2c: F0 00 00 F1 31 11 [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: F0 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: F0 09 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: F0 09 00 F1 31 00 88 17 16 67 21 48 4A 65 4E [08:57:27]GetLastDocTimeStamp 1729500985 [08:57:27]current date 1729501064 [08:57:27]FM_GetShiftState [08:57:27]SAM_PROTO_GetShiftState [08:57:27]wFMCommunicate request_size=4 [08:57:27]MH_SAM_APDU [08:57:27]CAPDU: 80 13 01 00 [08:57:27]Write to MH i2c: E2 08 00 F2 31 80 13 01 00 00 00 00 00 A0 [08:57:27]Write i2c OK [08:57:27]MH_I2C_Read... [08:57:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:27]Read from MH i2c: E2 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 0E 00 [08:57:27]MH_I2C_Read... [08:57:27]Read from MH i2c: E2 0E 00 F2 31 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A9 [08:57:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:57:27]wFMCommunicate OK [08:57:27]SAM_PROTO_GetShiftState done [08:57:27]FM_GetShiftState done [08:57:27]opened in 1729470944 [08:57:27]opened+sec_in_day 1729557344 [08:57:27]quantity*price = 70044 [08:57:27]sum+1 = 70045 [08:57:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 30 21.10.2024 08:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165919 ФПД: 135416298148415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085744&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165919&fm=135416298148415&tin=02508201610067®Number=0000000000091764&sum=70000 [08:57:28]StoreToDocumentArchive [08:57:28]shift 535 fd 165919 [08:57:28]save to /storage/0535/doc_00165919 [08:57:28]save last doc name /storage/0535/doc_00165919 to /storage/kkm_last_doc_name [08:57:28]save OK [08:57:28]Clear old archive folders... [08:57:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:28]tlvbuf is 0179A2F0 [08:57:28]SAM_PROTO_ClearQueue [08:57:28]wFMCommunicate request_size=4 [08:57:28]MH_SAM_APDU [08:57:28]CAPDU: 80 09 00 00 [08:57:28]Write to MH i2c: E2 08 00 FF 31 80 09 00 00 00 00 00 00 A2 [08:57:28]Write i2c OK [08:57:28]MH_I2C_Read... [08:57:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:28]Read from MH i2c: E2 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 FF 31 00 90 00 A4 [08:57:28]RAPDU: 90 00 [08:57:28]wFMCommunicate OK [08:57:28]SAM_PROTO_ClearQueue done [08:57:28]KKMCreateOFDPacket [08:57:28]OFDProtocolAddRootSTLVToBuf [08:57:28]FM_MakeSignedData [08:57:28]FM_MakeSignedData [08:57:28]SAM_PROTO_SignData [08:57:28]wFMCommunicate request_size=4 [08:57:28]MH_SAM_APDU [08:57:28]CAPDU: 80 0D 01 02 [08:57:28]Write to MH i2c: E2 08 00 00 32 80 0D 01 02 00 00 00 00 AB [08:57:28]Write i2c OK [08:57:28]MH_I2C_Read... [08:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:28]Read from MH i2c: E2 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 00 32 00 90 00 A6 [08:57:28]RAPDU: 90 00 [08:57:28]wFMCommunicate OK [08:57:28]wFMCommunicate request_size=255 [08:57:28]MH_SAM_APDU [08:57: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 88 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 88 02 00 35 04 06 00 7B [08:57:28]Write to MH i2c: E2 02 01 01 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 88 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 88 02 00 35 04 06 00 7B 00 00 C8 [08:57:28]Write i2c OK [08:57:28]MH_I2C_Read... [08:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:28]Read from MH i2c: E2 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 01 32 00 90 00 A7 [08:57:28]RAPDU: 90 00 [08:57:28]wFMCommunicate OK [08:57:28]wFMCommunicate request_size=10 [08:57:28]MH_SAM_APDU [08:57:28]CAPDU: 80 0D 02 02 05 29 10 59 12 3F [08:57:28]Write to MH i2c: E2 0D 00 02 32 80 0D 02 02 05 00 29 10 59 12 3F 00 00 9B [08:57:28]Write i2c OK [08:57:28]MH_I2C_Read... [08:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:28]Read from MH i2c: E2 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 [08:57:28]MH_I2C_Read... [08:57:28]Read from MH i2c: E2 03 00 02 32 00 90 00 A8 [08:57:28]RAPDU: 90 00 [08:57:28]wFMCommunicate OK [08:57:28]wFMCommunicate request_size=4 [08:57:28]MH_SAM_APDU [08:57:28]CAPDU: 80 0D 03 02 [08:57:28]Write to MH i2c: E2 08 00 03 32 80 0D 03 02 00 00 00 00 B0 [08:57:28]Write i2c OK [08:57:28]MH_I2C_Read... [08:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:29]Read from MH i2c: E2 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: E2 0B 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: E2 0B 00 03 32 00 1A 09 32 58 B7 30 63 D4 90 00 7C [08:57:29]RAPDU: 1A 09 32 58 B7 30 63 D4 90 00 [08:57:29]wFMCommunicate OK [08:57:29]SAM_PROTO_SignData done [08:57:29]FM_MakeSignedData done [08:57:29]CreateOFDProtocolMessage [08:57:29]wFMCommunicate request_size=4 [08:57:29]MH_SAM_APDU [08:57:29]CAPDU: 80 11 00 00 [08:57:29]Write to MH i2c: E2 08 00 04 32 80 11 00 00 00 00 00 00 B0 [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:29]Read from MH i2c: E2 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: E2 17 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: E2 17 00 04 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [08:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:57:29]wFMCommunicate OK [08:57:29]CreateOFDProtocolMessage done [08:57:29]OFDSenderStorePacket 165919 [08:57:29]StoreOFDPacket docnum=165919 [08:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3D 5B 07 01 48 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 88 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 88 02 00 35 04 06 00 7B 29 10 59 12 3F 1A 09 32 58 B7 30 63 D4 [08:57:29]CheckFolder [08:57:29]dirname=/storage/ofd_packets [08:57:29]CheckFolder done [08:57:29]ProducePacketName [08:57:29]name=ofd_packets/00165919 [08:57:29]NVStorageSaveData ofd_packets/00165919 [08:57:29]File name is /storage/ofd_packets/00165919 [08:57:29]Write 301 bytes [08:57:29]NVStorageSaveData done [08:57:29]OFDSenderStorePacket done [08:57:29]KKMCreateOFDPacket done [08:57:29]NVStorageSaveData kkm_last_timestamp [08:57:29]File name is /storage/kkm_last_timestamp [08:57:29]Write 4 bytes [08:57:29]NVStorageSaveData done [08:57:29]ExternCall_PrintAddStr [08:57:29]wPrintStart [08:57:29]Write to MH i2c: 01 00 00 05 32 37 [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 05 32 00 00 00 00 00 FF 0F 4C [08:57:29]RasterBufferAndPrint [08:57:29]line Счет N : (1)220486 [08:57:29]line ИНН: 02508201610067 [08:57:29]line Контрольно-Кассовый Чек [08:57:29]line ПРОДАЖА [08:57:29]line ТРК (МРК, ГНК) : 23 [08:57:29]line Товар: 2710124130 [08:57:29]line Аи-92-К-5 [08:57:29]line 10.470 * 66.90 [08:57:29]line = 700.44 [08:57:29]line НДС 12% НСП 1% [08:57:29]line > о реализуемом товаре [08:57:29]line ОКРУГЛЕНИЕ: -0.44 [08:57:29]line ИТОГО: 700.00 [08:57:29]line Внесено: 700.00 [08:57:29]line СДАЧА: 0.00 [08:57:29]line НСП 1% : 6.20 [08:57:29]line НДС 12% : 74.38 [08:57:29]line Наличными: 700.00 [08:57:29]line Безнал.: 0.00 [08:57:29]line Место: АЗС № 161 "Партнер Нефть" [08:57:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:57:29]line СНО: Общий режим [08:57:29]line Чек 30 21.10.2024 08:57 [08:57:29]line Смена: 535 ФФД: 1.0 [08:57:29]line ЗНМ: 0300000104 [08:57:29]line РНМ: 0000000000091764 [08:57:29]line Версия ККМ: 001 [08:57:29]line ФМ: 0000000000871759 [08:57:29]line ФД: 165919 [08:57:29]line ФПД: 135416298148415 [08:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085744&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165919&fm=135416298148415&tin=02508201610067®Number=0000000000091764&sum=70000 [08:57:29]OFD Sender: Processing packet 165919 [packets to send 48, broken 47] [08:57:29]ProducePacketName [08:57:29]name=ofd_packets/00165919 [08:57:29]OFD Sender: To server: pG, [08:57:29]CommunicateWithHost lk.salyk.kg:30040 [08:57:29]ConnectInit lk.salyk.kg [08:57:29]written 0, free lines is 4095 [08:57:29]Connected sock=7 [08:57:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3D 5B 07 01 48 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 88 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 88 02 00 35 04 06 00 7B 29 10 59 12 3F 1A 09 32 58 B7 30 63 D4 [08:57:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FC 69 47 00 3C DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 88 02 00 F4 03 04 00 F7 BD 15 67 B6 04 01 00 00 2E 03 AE 31 8F CD 9A 9D [08:57:29]CommunicateWithHost err = 0 [08:57:29]CheckOFDResponse [08:57:29]1017 (14) - 77093643461234 [08:57:29]1041 (16) - 0000000000871759 [08:57:29]1040 (4) - 165919 [08:57:29]1012 (4) - 21.10.2024 02:35 [08:57:29]1206 (1) - 0 [08:57:29]OFD Sender: Remove packet 165919 [08:57:29]ProducePacketName [08:57:29]name=ofd_packets/00165919 [08:57:29]NVStorageDeleteData [08:57:29]Write to MH i2c: 01 00 00 30 32 62 [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: 01 07 00 30 32 00 00 00 00 00 B2 0C 27 [08:57:29]RasterBufferAndPrint [08:57:29]line [08:57:29]line [08:57:29]line [08:57:29]line [08:57:29]line [08:57:29]written 0, free lines is 3257 [08:57:29]MH_Cut [08:57:29]Write to MH i2c: D1 01 00 37 32 01 3B [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: D1 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: D1 01 00 [08:57:29]MH_I2C_Read... [08:57:29]Read from MH i2c: D1 01 00 37 32 00 3A [08:57:29]Write to MH i2c: 01 00 00 38 32 6A [08:57:29]Write i2c OK [08:57:29]MH_I2C_Read... [08:57:30]OFD Sender: No OFD packet to send [08:57:30]*** Cut start [08:57:30]*** Partial cut [08:57:30]*** CUTSNS_PIN = 1 [08:57:30]*** CUTSNS_PIN = 0 [08:57:31]*** Brake cut motor [08:57:31]Read from MH i2c: 01 [08:57:31]MH_I2C_Read... [08:57:31]*** Stop cut motor [08:57:31]*** Cut end [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 38 32 00 00 00 00 00 FF 0F 7F [08:57:31]process_action close_receipt done [08:57:31]requested_data is exist [08:57:31]produce_requested_data [08:57:31]requested_item fm.sn is exist - process it [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 11 00 00 [08:57:31]Write to MH i2c: E2 08 00 39 32 80 11 00 00 00 00 00 00 E5 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 17 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 17 00 39 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [08:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:57:31]wFMCommunicate OK [08:57:31]requested_item fd.num is exist - process it [08:57:31]SAM_PROTO_GetFieldsCounters [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 13 00 00 [08:57:31]Write to MH i2c: E2 08 00 3A 32 80 13 00 00 00 00 00 00 E8 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 62 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 62 00 3A 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [08:57:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:31]wFMCommunicate OK [08:57:31]SAM_PROTO_GetFieldsCounters done [08:57:31]requested_item shift.num is exist - process it [08:57:31]requested_item shift.opened is exist - process it [08:57:31]req_shift_opened [08:57:31]FM_GetShiftState [08:57:31]SAM_PROTO_GetShiftState [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 13 01 00 [08:57:31]Write to MH i2c: E2 08 00 3B 32 80 13 01 00 00 00 00 00 EA [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 0E 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 0E 00 3B 32 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F3 [08:57:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:57:31]wFMCommunicate OK [08:57:31]SAM_PROTO_GetShiftState done [08:57:31]FM_GetShiftState done [08:57:31]req_shift_opened done [08:57:31]requested_item shift.open_date is exist - process it [08:57:31]req_shift_open_date [08:57:31]req_shift_open_date done [08:57:31]produce_requested_data done [08:57:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165919,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:57:31]process_action_free close_receipt [08:57:31]json_value_free [08:57:31]json_value_free done [08:57:31]process_json_proto returns [08:57:31]Send response to host [08:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165919,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:57:31]free response buf [08:57:31]execute_script done [08:57:31]execute_script returns [08:57:31]free content buf [08:57:31]Sock 6.Close socket [08:57:31]Sock 6.Thread stoped [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:41]accept exits with 5 [08:57:41]New connection [08:57:41]New thread 3066920292 created [08:57:41]Thread 3066776932 joined [08:57:41]Waiting for new connection... [08:57:41] Sock 5.Parse request [08:57:41]Sock 5.Check first char [08:57:41]Sock 5.First char is OK [08:57:41]request: POST /json_proto HTTP/1.0 [08:57:41]Method: POST [08:57:41]URL: /json_proto [08:57:41]Method is POST - this is cgi request [08:57:41]url: /json_proto [08:57:41]query_string will be loaded in cgi processing [08:57:41]execute_cgi json_proto POST (null) [08:57:41]execute_cgi path=json_proto method=POST [08:57:41]POST find Content-Length [08:57:41]Host: 172.17.53.195:8080 [08:57:41]Content-Length: 789 [08:57:41]Content-Type: application/json [08:57:41] [08:57:41]POST finish read [08:57:41]Found Content-Length = 789 [08:57:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:41]execute_script... [08:57:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:41]POST & json_proto [08:57:41]process_json_proto [08:57:41]json parsed OK: [08:57:41]protocol is kg_v1.0 [08:57:41]action value=close_receipt [08:57:41]process_action close_receipt [08:57:41]cmd_close_receipt [08:57:41]MH_GetDate [08:57:41]Write to MH i2c: F0 00 00 3C 32 5D [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: F0 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: F0 09 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: F0 09 00 3C 32 00 96 17 16 67 21 48 4A 65 A8 [08:57:41]GetLastDocTimeStamp 1729501064 [08:57:41]current date 1729501078 [08:57:41]FM_GetShiftState [08:57:41]SAM_PROTO_GetShiftState [08:57:41]wFMCommunicate request_size=4 [08:57:41]MH_SAM_APDU [08:57:41]CAPDU: 80 13 01 00 [08:57:41]Write to MH i2c: E2 08 00 3D 32 80 13 01 00 00 00 00 00 EC [08:57:41]Write i2c OK [08:57:41]MH_I2C_Read... [08:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:41]Read from MH i2c: E2 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0E 00 [08:57:41]MH_I2C_Read... [08:57:41]Read from MH i2c: E2 0E 00 3D 32 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F5 [08:57:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:57:41]wFMCommunicate OK [08:57:41]SAM_PROTO_GetShiftState done [08:57:41]FM_GetShiftState done [08:57:41]opened in 1729470944 [08:57:41]opened+sec_in_day 1729557344 [08:57:41]quantity*price = 0 [08:57:41]sum+1 = 1 [08:57:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 31 21.10.2024 08:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165920 ФПД: 69063905176797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165920&fm=69063905176797&tin=02508201610067®Number=0000000000091764&sum=0 [08:57:42]StoreToDocumentArchive [08:57:42]shift 535 fd 165920 [08:57:42]save to /storage/0535/doc_00165920 [08:57:42]save last doc name /storage/0535/doc_00165920 to /storage/kkm_last_doc_name [08:57:42]save OK [08:57:42]Clear old archive folders... [08:57:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:57:42]tlvbuf is 015DD5F0 [08:57:42]SAM_PROTO_ClearQueue [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 09 00 00 [08:57:42]Write to MH i2c: E2 08 00 4A 32 80 09 00 00 00 00 00 00 EE [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 4A 32 00 90 00 F0 [08:57:42]RAPDU: 90 00 [08:57:42]wFMCommunicate OK [08:57:42]SAM_PROTO_ClearQueue done [08:57:42]KKMCreateOFDPacket [08:57:42]OFDProtocolAddRootSTLVToBuf [08:57:42]FM_MakeSignedData [08:57:42]FM_MakeSignedData [08:57:42]SAM_PROTO_SignData [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 0D 01 02 [08:57:42]Write to MH i2c: E2 08 00 4B 32 80 0D 01 02 00 00 00 00 F6 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 4B 32 00 90 00 F1 [08:57:42]RAPDU: 90 00 [08:57:42]wFMCommunicate OK [08:57:42]wFMCommunicate request_size=255 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 88 02 00 35 04 06 00 3E D0 31 88 [08:57:42]Write to MH i2c: E2 02 01 4C 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 88 02 00 35 04 06 00 3E D0 31 88 00 00 F0 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 4C 32 00 90 00 F2 [08:57:42]RAPDU: 90 00 [08:57:42]wFMCommunicate OK [08:57:42]wFMCommunicate request_size=7 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 0D 02 02 02 EC DD [08:57:42]Write to MH i2c: E2 0A 00 4D 32 80 0D 02 02 02 00 EC DD 00 00 C6 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 03 00 4D 32 00 90 00 F3 [08:57:42]RAPDU: 90 00 [08:57:42]wFMCommunicate OK [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 0D 03 02 [08:57:42]Write to MH i2c: E2 08 00 4E 32 80 0D 03 02 00 00 00 00 FB [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 0B 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 0B 00 4E 32 00 F0 C1 3C CB 05 BC FD BF 90 00 31 [08:57:42]RAPDU: F0 C1 3C CB 05 BC FD BF 90 00 [08:57:42]wFMCommunicate OK [08:57:42]SAM_PROTO_SignData done [08:57:42]FM_MakeSignedData done [08:57:42]CreateOFDProtocolMessage [08:57:42]wFMCommunicate request_size=4 [08:57:42]MH_SAM_APDU [08:57:42]CAPDU: 80 11 00 00 [08:57:42]Write to MH i2c: E2 08 00 4F 32 80 11 00 00 00 00 00 00 FB [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:42]Read from MH i2c: E2 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 17 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: E2 17 00 4F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [08:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:57:42]wFMCommunicate OK [08:57:42]CreateOFDProtocolMessage done [08:57:42]OFDSenderStorePacket 165920 [08:57:42]StoreOFDPacket docnum=165920 [08:57:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6C EE 04 01 DF 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 88 02 00 35 04 06 00 3E D0 31 88 EC DD F0 C1 3C CB 05 BC FD BF [08:57:42]CheckFolder [08:57:42]dirname=/storage/ofd_packets [08:57:42]CheckFolder done [08:57:42]ProducePacketName [08:57:42]name=ofd_packets/00165920 [08:57:42]NVStorageSaveData ofd_packets/00165920 [08:57:42]File name is /storage/ofd_packets/00165920 [08:57:42]Write 298 bytes [08:57:42]NVStorageSaveData done [08:57:42]OFDSenderStorePacket done [08:57:42]KKMCreateOFDPacket done [08:57:42]NVStorageSaveData kkm_last_timestamp [08:57:42]File name is /storage/kkm_last_timestamp [08:57:42]Write 4 bytes [08:57:42]NVStorageSaveData done [08:57:42]ExternCall_PrintAddStr [08:57:42]wPrintStart [08:57:42]Write to MH i2c: 01 00 00 50 32 82 [08:57:42]Write i2c OK [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 07 00 [08:57:42]MH_I2C_Read... [08:57:42]Read from MH i2c: 01 07 00 50 32 00 00 00 00 00 FF 0F 97 [08:57:42]RasterBufferAndPrint [08:57:42]line Счет N : (1)220487 [08:57:42]line ИНН: 02508201610067 [08:57:42]line Контрольно-Кассовый Чек [08:57:42]line ПРОДАЖА [08:57:42]line ТРК (МРК, ГНК) : 31 [08:57:42]line Товар: 2710194210 [08:57:42]line ДТ-К-5 [08:57:42]line 15.750 * 0.00 [08:57:42]line = 0.00 [08:57:42]line НДС 12% НСП 1% [08:57:42]line > о реализуемом товаре [08:57:42]line ИТОГО: 0.00 [08:57:42]line НСП 1% : 0.00 [08:57:42]line НДС 12% : 0.00 [08:57:42]line Наличными: 0.00 [08:57:42]line Безнал.: 0.00 [08:57:42]line Место: АЗС № 161 "Партнер Нефть" [08:57:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:57:42]line СНО: Общий режим [08:57:42]line Чек 31 21.10.2024 08:57 [08:57:42]line Смена: 535 ФФД: 1.0 [08:57:42]line ЗНМ: 0300000104 [08:57:42]line РНМ: 0000000000091764 [08:57:42]line Версия ККМ: 001 [08:57:42]line Талоны: Топливная Карта [08:57:42]line 38866 [08:57:42]line ФМ: 0000000000871759 [08:57:42]line ФД: 165920 [08:57:42]line ФПД: 69063905176797 [08:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085758&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165920&fm=69063905176797&tin=02508201610067®Number=0000000000091764&sum=0 [08:57:43]OFD Sender: Processing packet 165920 [packets to send 48, broken 47] [08:57:43]ProducePacketName [08:57:43]name=ofd_packets/00165920 [08:57:43]OFD Sender: To server: pG, [08:57:43]CommunicateWithHost lk.salyk.kg:30040 [08:57:43]ConnectInit lk.salyk.kg [08:57:43]written 0, free lines is 4095 [08:57:43]Connected sock=7 [08:57:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6C EE 04 01 DF 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 96 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 88 02 00 35 04 06 00 3E D0 31 88 EC DD F0 C1 3C CB 05 BC FD BF [08:57:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 38 1A 47 00 86 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 35 39 10 04 04 00 20 88 02 00 F4 03 04 00 05 BE 15 67 B6 04 01 00 00 75 C3 73 31 84 66 23 C9 [08:57:43]CommunicateWithHost err = 0 [08:57:43]CheckOFDResponse [08:57:43]1017 (14) - 77093643461234 [08:57:43]1041 (16) - 0000000000871759 [08:57:43]1040 (4) - 165920 [08:57:43]1012 (4) - 21.10.2024 02:35 [08:57:43]1206 (1) - 0 [08:57:43]OFD Sender: Remove packet 165920 [08:57:43]ProducePacketName [08:57:43]name=ofd_packets/00165920 [08:57:43]NVStorageDeleteData [08:57:43]Write to MH i2c: 01 00 00 7A 32 AC [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: 01 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: 01 07 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: 01 07 00 7A 32 00 00 00 00 00 D1 0C 90 [08:57:43]RasterBufferAndPrint [08:57:43]line [08:57:43]line [08:57:43]line [08:57:43]line [08:57:43]line [08:57:43]written 0, free lines is 3288 [08:57:43]MH_Cut [08:57:43]Write to MH i2c: D1 01 00 81 32 01 85 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: D1 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: D1 01 00 [08:57:43]MH_I2C_Read... [08:57:43]Read from MH i2c: D1 01 00 81 32 00 84 [08:57:43]Write to MH i2c: 01 00 00 82 32 B4 [08:57:43]Write i2c OK [08:57:43]MH_I2C_Read... [08:57:44]OFD Sender: No OFD packet to send [08:57:44]*** Cut start [08:57:44]*** Partial cut [08:57:44]*** CUTSNS_PIN = 1 [08:57:44]*** CUTSNS_PIN = 0 [08:57:44]*** Brake cut motor [08:57:45]Read from MH i2c: 01 [08:57:45]MH_I2C_Read... [08:57:45]*** Stop cut motor [08:57:45]*** Cut end [08:57:45]Read from MH i2c: 01 07 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: 01 07 00 82 32 00 00 00 00 00 FF 0F C9 [08:57:45]process_action close_receipt done [08:57:45]requested_data is exist [08:57:45]produce_requested_data [08:57:45]requested_item fm.sn is exist - process it [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 11 00 00 [08:57:45]Write to MH i2c: E2 08 00 83 32 80 11 00 00 00 00 00 00 2F [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 17 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 17 00 83 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [08:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:57:45]wFMCommunicate OK [08:57:45]requested_item fd.num is exist - process it [08:57:45]SAM_PROTO_GetFieldsCounters [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 13 00 00 [08:57:45]Write to MH i2c: E2 08 00 84 32 80 13 00 00 00 00 00 00 32 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 62 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 62 00 84 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [08:57:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:45]wFMCommunicate OK [08:57:45]SAM_PROTO_GetFieldsCounters done [08:57:45]requested_item shift.num is exist - process it [08:57:45]requested_item shift.opened is exist - process it [08:57:45]req_shift_opened [08:57:45]FM_GetShiftState [08:57:45]SAM_PROTO_GetShiftState [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 13 01 00 [08:57:45]Write to MH i2c: E2 08 00 85 32 80 13 01 00 00 00 00 00 34 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 0E 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 0E 00 85 32 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3D [08:57:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:57:45]wFMCommunicate OK [08:57:45]SAM_PROTO_GetShiftState done [08:57:45]FM_GetShiftState done [08:57:45]req_shift_opened done [08:57:45]requested_item shift.open_date is exist - process it [08:57:45]req_shift_open_date [08:57:45]req_shift_open_date done [08:57:45]produce_requested_data done [08:57:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165920,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:57:45]process_action_free close_receipt [08:57:45]json_value_free [08:57:45]json_value_free done [08:57:45]process_json_proto returns [08:57:45]Send response to host [08:57:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165920,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:57:45]free response buf [08:57:45]execute_script done [08:57:45]execute_script returns [08:57:45]free content buf [08:57:45]Sock 5.Close socket [08:57:45]Sock 5.Thread stoped [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:57]accept exits with 6 [08:57:57]New connection [08:57:57]New thread 3066776932 created [08:57:57]Thread 3066920292 joined [08:57:57]Waiting for new connection... [08:57:57] Sock 6.Parse request [08:57:57]Sock 6.Check first char [08:57:57]Sock 6.First char is OK [08:57:57]request: POST /json_proto HTTP/1.0 [08:57:57]Method: POST [08:57:57]URL: /json_proto [08:57:57]Method is POST - this is cgi request [08:57:57]url: /json_proto [08:57:57]query_string will be loaded in cgi processing [08:57:57]execute_cgi json_proto POST (null) [08:57:57]execute_cgi path=json_proto method=POST [08:57:57]POST find Content-Length [08:57:57]Host: 172.17.53.195:8080 [08:57:57]Content-Length: 677 [08:57:57]Content-Type: application/json [08:57:57] [08:57:57]POST finish read [08:57:57]Found Content-Length = 677 [08:57:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:57]execute_script... [08:57: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)220488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:57]POST & json_proto [08:57:57]process_json_proto [08:57:57]json parsed OK: [08:57:57]protocol is kg_v1.0 [08:57:57]action value=close_receipt [08:57:57]process_action close_receipt [08:57:57]cmd_close_receipt [08:57:57]MH_GetDate [08:57:57]Write to MH i2c: F0 00 00 86 32 A7 [08:57:57]Write i2c OK [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: F0 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: F0 09 00 [08:57:57]MH_I2C_Read... [08:57:57]Read from MH i2c: F0 09 00 86 32 00 A6 17 16 67 21 48 4A 65 02 [08:57:57]GetLastDocTimeStamp 1729501078 [08:57:57]current date 1729501094 [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 87 32 80 13 01 00 00 00 00 00 36 [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 87 32 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3F [08:57:57]RAPDU: 09 00 01 E0 A1 15 67 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]opened in 1729470944 [08:57:57]opened+sec_in_day 1729557344 [08:57:57]quantity*price = 30038 [08:57:57]sum+1 = 30039 [08:57:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 32 21.10.2024 08:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165921 ФПД: 120061135019560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085814&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165921&fm=120061135019560&tin=02508201610067®Number=0000000000091764&sum=30000 [08:57:58]StoreToDocumentArchive [08:57:58]shift 535 fd 165921 [08:57:58]save to /storage/0535/doc_00165921 [08:57:58]save last doc name /storage/0535/doc_00165921 to /storage/kkm_last_doc_name [08:57:58]save OK [08:57:58]Clear old archive folders... [08:57:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:58]tlvbuf is 0162C5D0 [08:57:58]SAM_PROTO_ClearQueue [08:57:58]wFMCommunicate request_size=4 [08:57:58]MH_SAM_APDU [08:57:58]CAPDU: 80 09 00 00 [08:57:58]Write to MH i2c: E2 08 00 94 32 80 09 00 00 00 00 00 00 38 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:58]Read from MH i2c: E2 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 94 32 00 90 00 3A [08:57:58]RAPDU: 90 00 [08:57:58]wFMCommunicate OK [08:57:58]SAM_PROTO_ClearQueue done [08:57:58]KKMCreateOFDPacket [08:57:58]OFDProtocolAddRootSTLVToBuf [08:57:58]FM_MakeSignedData [08:57:58]FM_MakeSignedData [08:57:58]SAM_PROTO_SignData [08:57:58]wFMCommunicate request_size=4 [08:57:58]MH_SAM_APDU [08:57:58]CAPDU: 80 0D 01 02 [08:57:58]Write to MH i2c: E2 08 00 95 32 80 0D 01 02 00 00 00 00 40 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:58]Read from MH i2c: E2 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 95 32 00 90 00 3B [08:57:58]RAPDU: 90 00 [08:57:58]wFMCommunicate OK [08:57:58]wFMCommunicate request_size=255 [08:57:58]MH_SAM_APDU [08:57:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A6 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 88 02 00 35 04 06 00 6D [08:57:58]Write to MH i2c: E2 02 01 96 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A6 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 88 02 00 35 04 06 00 6D 00 00 55 [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:58]Read from MH i2c: E2 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 96 32 00 90 00 3C [08:57:58]RAPDU: 90 00 [08:57:58]wFMCommunicate OK [08:57:58]wFMCommunicate request_size=10 [08:57:58]MH_SAM_APDU [08:57:58]CAPDU: 80 0D 02 02 05 31 E9 4D DE 28 [08:57:58]Write to MH i2c: E2 0D 00 97 32 80 0D 02 02 05 00 31 E9 4D DE 28 00 00 BA [08:57:58]Write i2c OK [08:57:58]MH_I2C_Read... [08:57:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:58]Read from MH i2c: E2 [08:57:58]MH_I2C_Read... [08:57:58]Read from MH i2c: E2 03 00 [08:57:58]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 03 00 97 32 00 90 00 3D [08:57:59]RAPDU: 90 00 [08:57:59]wFMCommunicate OK [08:57:59]wFMCommunicate request_size=4 [08:57:59]MH_SAM_APDU [08:57:59]CAPDU: 80 0D 03 02 [08:57:59]Write to MH i2c: E2 08 00 98 32 80 0D 03 02 00 00 00 00 45 [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:59]Read from MH i2c: E2 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 0B 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 0B 00 98 32 00 80 19 8F AD DB 25 C5 3F 90 00 1F [08:57:59]RAPDU: 80 19 8F AD DB 25 C5 3F 90 00 [08:57:59]wFMCommunicate OK [08:57:59]SAM_PROTO_SignData done [08:57:59]FM_MakeSignedData done [08:57:59]CreateOFDProtocolMessage [08:57:59]wFMCommunicate request_size=4 [08:57:59]MH_SAM_APDU [08:57:59]CAPDU: 80 11 00 00 [08:57:59]Write to MH i2c: E2 08 00 99 32 80 11 00 00 00 00 00 00 45 [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:59]Read from MH i2c: E2 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 17 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: E2 17 00 99 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [08:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:57:59]wFMCommunicate OK [08:57:59]CreateOFDProtocolMessage done [08:57:59]OFDSenderStorePacket 165921 [08:57:59]StoreOFDPacket docnum=165921 [08:57:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E7 1B 07 01 4D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A6 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 88 02 00 35 04 06 00 6D 31 E9 4D DE 28 80 19 8F AD DB 25 C5 3F [08:57:59]CheckFolder [08:57:59]dirname=/storage/ofd_packets [08:57:59]CheckFolder done [08:57:59]ProducePacketName [08:57:59]name=ofd_packets/00165921 [08:57:59]NVStorageSaveData ofd_packets/00165921 [08:57:59]File name is /storage/ofd_packets/00165921 [08:57:59]Write 301 bytes [08:57:59]NVStorageSaveData done [08:57:59]OFDSenderStorePacket done [08:57:59]KKMCreateOFDPacket done [08:57:59]NVStorageSaveData kkm_last_timestamp [08:57:59]File name is /storage/kkm_last_timestamp [08:57:59]Write 4 bytes [08:57:59]NVStorageSaveData done [08:57:59]ExternCall_PrintAddStr [08:57:59]wPrintStart [08:57:59]Write to MH i2c: 01 00 00 9A 32 CC [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 07 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 07 00 9A 32 00 00 00 00 00 FF 0F E1 [08:57:59]RasterBufferAndPrint [08:57:59]line Счет N : (1)220488 [08:57:59]line ИНН: 02508201610067 [08:57:59]line Контрольно-Кассовый Чек [08:57:59]line ПРОДАЖА [08:57:59]line ТРК (МРК, ГНК) : 13 [08:57:59]line Товар: 2710124130 [08:57:59]line Аи-92-К-5 [08:57:59]line 4.490 * 66.90 [08:57:59]line = 300.38 [08:57:59]line НДС 12% НСП 1% [08:57:59]line > о реализуемом товаре [08:57:59]line ОКРУГЛЕНИЕ: -0.38 [08:57:59]line ИТОГО: 300.00 [08:57:59]line Внесено: 300.00 [08:57:59]line СДАЧА: 0.00 [08:57:59]line НСП 1% : 2.66 [08:57:59]line НДС 12% : 31.90 [08:57:59]line Наличными: 300.00 [08:57:59]line Безнал.: 0.00 [08:57:59]line Место: АЗС № 161 "Партнер Нефть" [08:57:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [08:57:59]line СНО: Общий режим [08:57:59]line Чек 32 21.10.2024 08:58 [08:57:59]line Смена: 535 ФФД: 1.0 [08:57:59]line ЗНМ: 0300000104 [08:57:59]line РНМ: 0000000000091764 [08:57:59]line Версия ККМ: 001 [08:57:59]line ФМ: 0000000000871759 [08:57:59]line ФД: 165921 [08:57:59]line ФПД: 120061135019560 [08:57:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T085814&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165921&fm=120061135019560&tin=02508201610067®Number=0000000000091764&sum=30000 [08:57:59]written 0, free lines is 4095 [08:57:59]OFD Sender: Processing packet 165921 [packets to send 48, broken 47] [08:57:59]ProducePacketName [08:57:59]name=ofd_packets/00165921 [08:57:59]OFD Sender: To server: pG, [08:57:59]CommunicateWithHost lk.salyk.kg:30040 [08:57:59]ConnectInit lk.salyk.kg [08:57:59]Connected sock=9 [08:57:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E7 1B 07 01 4D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 A6 17 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 88 02 00 35 04 06 00 6D 31 E9 4D DE 28 80 19 8F AD DB 25 C5 3F [08:57:59]Write to MH i2c: 01 00 00 C5 32 F7 [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 07 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: 01 07 00 C5 32 00 00 00 00 00 C5 0C CF [08:57:59]RasterBufferAndPrint [08:57:59]line [08:57:59]line [08:57:59]line [08:57:59]line [08:57:59]line [08:57:59]written 0, free lines is 3275 [08:57:59]MH_Cut [08:57:59]Write to MH i2c: D1 01 00 CC 32 01 D0 [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: D1 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: D1 01 00 [08:57:59]MH_I2C_Read... [08:57:59]Read from MH i2c: D1 01 00 CC 32 00 CF [08:57:59]Write to MH i2c: 01 00 00 CD 32 FF [08:57:59]Write i2c OK [08:57:59]MH_I2C_Read... [08:57:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 02 B6 47 00 51 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 88 02 00 F4 03 04 00 15 BE 15 67 B6 04 01 00 00 45 6B 86 47 64 28 12 8D [08:57:59]CommunicateWithHost err = 0 [08:57:59]CheckOFDResponse [08:57:59]1017 (14) - 77093643461234 [08:57:59]1041 (16) - 0000000000871759 [08:57:59]1040 (4) - 165921 [08:57:59]1012 (4) - 21.10.2024 02:36 [08:57:59]1206 (1) - 0 [08:57:59]OFD Sender: Remove packet 165921 [08:57:59]ProducePacketName [08:57:59]name=ofd_packets/00165921 [08:57:59]NVStorageDeleteData [08:58:00]OFD Sender: No OFD packet to send [08:58:00]*** Cut start [08:58:00]*** Partial cut [08:58:00]*** CUTSNS_PIN = 1 [08:58:00]*** CUTSNS_PIN = 0 [08:58:00]*** Brake cut motor [08:58:01]Read from MH i2c: 01 [08:58:01]MH_I2C_Read... [08:58:01]*** Stop cut motor [08:58:01]*** Cut end [08:58:01]Read from MH i2c: 01 07 00 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: 01 07 00 CD 32 00 00 00 00 00 FF 0F 14 [08:58:01]process_action close_receipt done [08:58:01]requested_data is exist [08:58:01]produce_requested_data [08:58:01]requested_item fm.sn is exist - process it [08:58:01]wFMCommunicate request_size=4 [08:58:01]MH_SAM_APDU [08:58:01]CAPDU: 80 11 00 00 [08:58:01]Write to MH i2c: E2 08 00 CE 32 80 11 00 00 00 00 00 00 7A [08:58:01]Write i2c OK [08:58:01]MH_I2C_Read... [08:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:01]Read from MH i2c: E2 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: E2 17 00 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: E2 17 00 CE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D2 [08:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [08:58:01]wFMCommunicate OK [08:58:01]requested_item fd.num is exist - process it [08:58:01]SAM_PROTO_GetFieldsCounters [08:58:01]wFMCommunicate request_size=4 [08:58:01]MH_SAM_APDU [08:58:01]CAPDU: 80 13 00 00 [08:58:01]Write to MH i2c: E2 08 00 CF 32 80 13 00 00 00 00 00 00 7D [08:58:01]Write i2c OK [08:58:01]MH_I2C_Read... [08:58:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:01]Read from MH i2c: E2 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: E2 62 00 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: E2 62 00 CF 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [08:58:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:01]wFMCommunicate OK [08:58:01]SAM_PROTO_GetFieldsCounters done [08:58:01]requested_item shift.num is exist - process it [08:58:01]requested_item shift.opened is exist - process it [08:58:01]req_shift_opened [08:58:01]FM_GetShiftState [08:58:01]SAM_PROTO_GetShiftState [08:58:01]wFMCommunicate request_size=4 [08:58:01]MH_SAM_APDU [08:58:01]CAPDU: 80 13 01 00 [08:58:01]Write to MH i2c: E2 08 00 D0 32 80 13 01 00 00 00 00 00 7F [08:58:01]Write i2c OK [08:58:01]MH_I2C_Read... [08:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:01]Read from MH i2c: E2 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: E2 0E 00 [08:58:01]MH_I2C_Read... [08:58:01]Read from MH i2c: E2 0E 00 D0 32 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 88 [08:58:01]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [08:58:01]wFMCommunicate OK [08:58:01]SAM_PROTO_GetShiftState done [08:58:01]FM_GetShiftState done [08:58:01]req_shift_opened done [08:58:01]requested_item shift.open_date is exist - process it [08:58:01]req_shift_open_date [08:58:01]req_shift_open_date done [08:58:01]produce_requested_data done [08:58:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165921,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [08:58:01]process_action_free close_receipt [08:58:01]json_value_free [08:58:01]json_value_free done [08:58:01]process_json_proto returns [08:58:01]Send response to host [08:58:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165921,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [08:58:01]free response buf [08:58:01]execute_script done [08:58:01]execute_script returns [08:58:01]free content buf [08:58:01]Sock 6.Close socket [08:58:01]Sock 6.Thread stoped [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:17]accept exits with 5 [09:06:17]New connection [09:06:17]New thread 3066920292 created [09:06:17]Thread 3066776932 joined [09:06:17]Waiting for new connection... [09:06:17] Sock 5.Parse request [09:06:17]Sock 5.Check first char [09:06:17]Sock 5.First char is OK [09:06:17]request: POST /json_proto HTTP/1.0 [09:06:17]Method: POST [09:06:17]URL: /json_proto [09:06:17]Method is POST - this is cgi request [09:06:17]url: /json_proto [09:06:17]query_string will be loaded in cgi processing [09:06:17]execute_cgi json_proto POST (null) [09:06:17]execute_cgi path=json_proto method=POST [09:06:17]POST find Content-Length [09:06:17]Host: 172.17.53.195:8080 [09:06:17]Content-Length: 677 [09:06:17]Content-Type: application/json [09:06:17] [09:06:17]POST finish read [09:06:17]Found Content-Length = 677 [09:06:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:17]execute_script... [09:06: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)220489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:17]POST & json_proto [09:06:17]process_json_proto [09:06:17]json parsed OK: [09:06:17]protocol is kg_v1.0 [09:06:17]action value=close_receipt [09:06:17]process_action close_receipt [09:06:17]cmd_close_receipt [09:06:17]MH_GetDate [09:06:17]Write to MH i2c: F0 00 00 D1 32 F2 [09:06:17]Write i2c OK [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: F0 [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: F0 09 00 [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: F0 09 00 D1 32 00 9A 19 16 67 21 48 4A 65 43 [09:06:17]GetLastDocTimeStamp 1729501094 [09:06:17]current date 1729501594 [09:06:17]FM_GetShiftState [09:06:17]SAM_PROTO_GetShiftState [09:06:17]wFMCommunicate request_size=4 [09:06:17]MH_SAM_APDU [09:06:17]CAPDU: 80 13 01 00 [09:06:17]Write to MH i2c: E2 08 00 D2 32 80 13 01 00 00 00 00 00 81 [09:06:17]Write i2c OK [09:06:17]MH_I2C_Read... [09:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:17]Read from MH i2c: E2 [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: E2 0E 00 [09:06:17]MH_I2C_Read... [09:06:17]Read from MH i2c: E2 0E 00 D2 32 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8A [09:06:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:06:17]wFMCommunicate OK [09:06:17]SAM_PROTO_GetShiftState done [09:06:17]FM_GetShiftState done [09:06:17]opened in 1729470944 [09:06:17]opened+sec_in_day 1729557344 [09:06:17]quantity*price = 50041 [09:06:17]sum+1 = 50042 [09:06:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 33 21.10.2024 09:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165922 ФПД: 226844655056769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090634&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165922&fm=226844655056769&tin=02508201610067®Number=0000000000091764&sum=50000 [09:06:18]StoreToDocumentArchive [09:06:18]shift 535 fd 165922 [09:06:18]save to /storage/0535/doc_00165922 [09:06:18]save last doc name /storage/0535/doc_00165922 to /storage/kkm_last_doc_name [09:06:18]save OK [09:06:18]Clear old archive folders... [09:06:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:06:18]tlvbuf is 014DA750 [09:06:18]SAM_PROTO_ClearQueue [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 09 00 00 [09:06:18]Write to MH i2c: E2 08 00 DF 32 80 09 00 00 00 00 00 00 83 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 DF 32 00 90 00 85 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]SAM_PROTO_ClearQueue done [09:06:18]KKMCreateOFDPacket [09:06:18]OFDProtocolAddRootSTLVToBuf [09:06:18]FM_MakeSignedData [09:06:18]FM_MakeSignedData [09:06:18]SAM_PROTO_SignData [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 01 02 [09:06:18]Write to MH i2c: E2 08 00 E0 32 80 0D 01 02 00 00 00 00 8B [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 E0 32 00 90 00 86 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]wFMCommunicate request_size=255 [09:06:18]MH_SAM_APDU [09:06: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 88 02 00 35 04 06 00 CE [09:06:18]Write to MH i2c: E2 02 01 E1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 88 02 00 35 04 06 00 CE 00 00 05 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 E1 32 00 90 00 87 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]wFMCommunicate request_size=10 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 02 02 05 50 63 15 77 81 [09:06:18]Write to MH i2c: E2 0D 00 E2 32 80 0D 02 02 05 00 50 63 15 77 81 00 00 58 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:18]Read from MH i2c: E2 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 [09:06:18]MH_I2C_Read... [09:06:18]Read from MH i2c: E2 03 00 E2 32 00 90 00 88 [09:06:18]RAPDU: 90 00 [09:06:18]wFMCommunicate OK [09:06:18]wFMCommunicate request_size=4 [09:06:18]MH_SAM_APDU [09:06:18]CAPDU: 80 0D 03 02 [09:06:18]Write to MH i2c: E2 08 00 E3 32 80 0D 03 02 00 00 00 00 90 [09:06:18]Write i2c OK [09:06:18]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0B 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 0B 00 E3 32 00 27 A6 AF A6 D9 3B 84 03 90 00 4E [09:06:19]RAPDU: 27 A6 AF A6 D9 3B 84 03 90 00 [09:06:19]wFMCommunicate OK [09:06:19]SAM_PROTO_SignData done [09:06:19]FM_MakeSignedData done [09:06:19]CreateOFDProtocolMessage [09:06:19]wFMCommunicate request_size=4 [09:06:19]MH_SAM_APDU [09:06:19]CAPDU: 80 11 00 00 [09:06:19]Write to MH i2c: E2 08 00 E4 32 80 11 00 00 00 00 00 00 90 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:19]Read from MH i2c: E2 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 17 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: E2 17 00 E4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [09:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:06:19]wFMCommunicate OK [09:06:19]CreateOFDProtocolMessage done [09:06:19]OFDSenderStorePacket 165922 [09:06:19]StoreOFDPacket docnum=165922 [09:06:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 92 07 01 95 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 88 02 00 35 04 06 00 CE 50 63 15 77 81 27 A6 AF A6 D9 3B 84 03 [09:06:19]CheckFolder [09:06:19]dirname=/storage/ofd_packets [09:06:19]CheckFolder done [09:06:19]ProducePacketName [09:06:19]name=ofd_packets/00165922 [09:06:19]NVStorageSaveData ofd_packets/00165922 [09:06:19]File name is /storage/ofd_packets/00165922 [09:06:19]Write 301 bytes [09:06:19]NVStorageSaveData done [09:06:19]OFDSenderStorePacket done [09:06:19]KKMCreateOFDPacket done [09:06:19]NVStorageSaveData kkm_last_timestamp [09:06:19]File name is /storage/kkm_last_timestamp [09:06:19]Write 4 bytes [09:06:19]NVStorageSaveData done [09:06:19]ExternCall_PrintAddStr [09:06:19]wPrintStart [09:06:19]Write to MH i2c: 01 00 00 E5 32 17 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 07 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 07 00 E5 32 00 00 00 00 00 FF 0F 2C [09:06:19]RasterBufferAndPrint [09:06:19]line Счет N : (1)220489 [09:06:19]line ИНН: 02508201610067 [09:06:19]line Контрольно-Кассовый Чек [09:06:19]line ПРОДАЖА [09:06:19]line ТРК (МРК, ГНК) : 23 [09:06:19]line Товар: 2710124130 [09:06:19]line Аи-92-К-5 [09:06:19]line 7.480 * 66.90 [09:06:19]line = 500.41 [09:06:19]line НДС 12% НСП 1% [09:06:19]line > о реализуемом товаре [09:06:19]line ОКРУГЛЕНИЕ: -0.41 [09:06:19]line ИТОГО: 500.00 [09:06:19]line Внесено: 500.00 [09:06:19]line СДАЧА: 0.00 [09:06:19]line НСП 1% : 4.43 [09:06:19]line НДС 12% : 53.14 [09:06:19]line Наличными: 500.00 [09:06:19]line Безнал.: 0.00 [09:06:19]line Место: АЗС № 161 "Партнер Нефть" [09:06:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:06:19]line СНО: Общий режим [09:06:19]line Чек 33 21.10.2024 09:06 [09:06:19]line Смена: 535 ФФД: 1.0 [09:06:19]line ЗНМ: 0300000104 [09:06:19]line РНМ: 0000000000091764 [09:06:19]line Версия ККМ: 001 [09:06:19]line ФМ: 0000000000871759 [09:06:19]line ФД: 165922 [09:06:19]line ФПД: 226844655056769 [09:06:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090634&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165922&fm=226844655056769&tin=02508201610067®Number=0000000000091764&sum=50000 [09:06:19]OFD Sender: Processing packet 165922 [packets to send 48, broken 47] [09:06:19]ProducePacketName [09:06:19]name=ofd_packets/00165922 [09:06:19]OFD Sender: To server: pG, [09:06:19]CommunicateWithHost lk.salyk.kg:30040 [09:06:19]ConnectInit lk.salyk.kg [09:06:19]written 0, free lines is 4095 [09:06:19]Connected sock=7 [09:06:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 92 07 01 95 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 9A 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 88 02 00 35 04 06 00 CE 50 63 15 77 81 27 A6 AF A6 D9 3B 84 03 [09:06:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 24 C0 47 00 A4 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 88 02 00 F4 03 04 00 09 C0 15 67 B6 04 01 00 00 94 B4 4C 93 0D 51 49 ED [09:06:19]CommunicateWithHost err = 0 [09:06:19]CheckOFDResponse [09:06:19]1017 (14) - 77093643461234 [09:06:19]1041 (16) - 0000000000871759 [09:06:19]1040 (4) - 165922 [09:06:19]1012 (4) - 21.10.2024 02:44 [09:06:19]1206 (1) - 0 [09:06:19]OFD Sender: Remove packet 165922 [09:06:19]ProducePacketName [09:06:19]name=ofd_packets/00165922 [09:06:19]NVStorageDeleteData [09:06:19]Write to MH i2c: 01 00 00 10 33 43 [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 07 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: 01 07 00 10 33 00 00 00 00 00 C5 0C 1B [09:06:19]RasterBufferAndPrint [09:06:19]line [09:06:19]line [09:06:19]line [09:06:19]line [09:06:19]line [09:06:19]written 0, free lines is 3278 [09:06:19]MH_Cut [09:06:19]Write to MH i2c: D1 01 00 17 33 01 1C [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: D1 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: D1 01 00 [09:06:19]MH_I2C_Read... [09:06:19]Read from MH i2c: D1 01 00 17 33 00 1B [09:06:19]Write to MH i2c: 01 00 00 18 33 4B [09:06:19]Write i2c OK [09:06:19]MH_I2C_Read... [09:06:20]OFD Sender: No OFD packet to send [09:06:20]*** Cut start [09:06:20]*** Partial cut [09:06:20]*** CUTSNS_PIN = 1 [09:06:20]*** CUTSNS_PIN = 0 [09:06:20]*** Brake cut motor [09:06:21]Read from MH i2c: 01 [09:06:21]MH_I2C_Read... [09:06:21]*** Stop cut motor [09:06:21]*** Cut end [09:06:21]Read from MH i2c: 01 07 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: 01 07 00 18 33 00 00 00 00 00 FF 0F 60 [09:06:21]process_action close_receipt done [09:06:21]requested_data is exist [09:06:21]produce_requested_data [09:06:21]requested_item fm.sn is exist - process it [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 11 00 00 [09:06:21]Write to MH i2c: E2 08 00 19 33 80 11 00 00 00 00 00 00 C6 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 17 00 19 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [09:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:06:21]wFMCommunicate OK [09:06:21]requested_item fd.num is exist - process it [09:06:21]SAM_PROTO_GetFieldsCounters [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 13 00 00 [09:06:21]Write to MH i2c: E2 08 00 1A 33 80 13 00 00 00 00 00 00 C9 [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 62 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 62 00 1A 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [09:06:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_GetFieldsCounters done [09:06:21]requested_item shift.num is exist - process it [09:06:21]requested_item shift.opened is exist - process it [09:06:21]req_shift_opened [09:06:21]FM_GetShiftState [09:06:21]SAM_PROTO_GetShiftState [09:06:21]wFMCommunicate request_size=4 [09:06:21]MH_SAM_APDU [09:06:21]CAPDU: 80 13 01 00 [09:06:21]Write to MH i2c: E2 08 00 1B 33 80 13 01 00 00 00 00 00 CB [09:06:21]Write i2c OK [09:06:21]MH_I2C_Read... [09:06:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:21]Read from MH i2c: E2 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 [09:06:21]MH_I2C_Read... [09:06:21]Read from MH i2c: E2 0E 00 1B 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D4 [09:06:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:06:21]wFMCommunicate OK [09:06:21]SAM_PROTO_GetShiftState done [09:06:21]FM_GetShiftState done [09:06:21]req_shift_opened done [09:06:21]requested_item shift.open_date is exist - process it [09:06:21]req_shift_open_date [09:06:21]req_shift_open_date done [09:06:21]produce_requested_data done [09:06:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165922,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:06:21]process_action_free close_receipt [09:06:21]json_value_free [09:06:21]json_value_free done [09:06:21]process_json_proto returns [09:06:21]Send response to host [09:06:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165922,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:06:21]free response buf [09:06:21]execute_script done [09:06:21]execute_script returns [09:06:21]free content buf [09:06:21]Sock 5.Close socket [09:06:21]Sock 5.Thread stoped [09:06:25]OFD Sender: No OFD packet to send [09:06:29]accept exits with 6 [09:06:29]New connection [09:06:29]New thread 3066776932 created [09:06:29]Thread 3066920292 joined [09:06:29]Waiting for new connection... [09:06:29] Sock 6.Parse request [09:06:29]Sock 6.Check first char [09:06:29]Sock 6.First char is OK [09:06:29]request: POST /json_proto HTTP/1.0 [09:06:29]Method: POST [09:06:29]URL: /json_proto [09:06:29]Method is POST - this is cgi request [09:06:29]url: /json_proto [09:06:29]query_string will be loaded in cgi processing [09:06:29]execute_cgi json_proto POST (null) [09:06:29]execute_cgi path=json_proto method=POST [09:06:29]POST find Content-Length [09:06:29]Host: 172.17.53.195:8080 [09:06:29]Content-Length: 797 [09:06:29]Content-Type: application/json [09:06:29] [09:06:29]POST finish read [09:06:29]Found Content-Length = 797 [09:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A4381935", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:29]execute_script... [09:06: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)220490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A4381935", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:29]POST & json_proto [09:06:29]process_json_proto [09:06:29]json parsed OK: [09:06:29]protocol is kg_v1.0 [09:06:29]action value=close_receipt [09:06:29]process_action close_receipt [09:06:29]cmd_close_receipt [09:06:29]MH_GetDate [09:06:29]Write to MH i2c: F0 00 00 1C 33 3E [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: F0 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: F0 09 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: F0 09 00 1C 33 00 A7 19 16 67 21 48 4A 65 9C [09:06:29]GetLastDocTimeStamp 1729501594 [09:06:29]current date 1729501607 [09:06:29]FM_GetShiftState [09:06:29]SAM_PROTO_GetShiftState [09:06:29]wFMCommunicate request_size=4 [09:06:29]MH_SAM_APDU [09:06:29]CAPDU: 80 13 01 00 [09:06:29]Write to MH i2c: E2 08 00 1D 33 80 13 01 00 00 00 00 00 CD [09:06:29]Write i2c OK [09:06:29]MH_I2C_Read... [09:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:29]Read from MH i2c: E2 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 0E 00 [09:06:29]MH_I2C_Read... [09:06:29]Read from MH i2c: E2 0E 00 1D 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D6 [09:06:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:06:29]wFMCommunicate OK [09:06:29]SAM_PROTO_GetShiftState done [09:06:29]FM_GetShiftState done [09:06:29]opened in 1729470944 [09:06:29]opened+sec_in_day 1729557344 [09:06:29]quantity*price = 0 [09:06:29]sum+1 = 1 [09:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 34 21.10.2024 09:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4381935 ФМ: 0000000000871759 ФД: 165923 ФПД: 273034641733798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090647&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165923&fm=273034641733798&tin=02508201610067®Number=0000000000091764&sum=0 [09:06:30]StoreToDocumentArchive [09:06:30]shift 535 fd 165923 [09:06:30]save to /storage/0535/doc_00165923 [09:06:30]save last doc name /storage/0535/doc_00165923 to /storage/kkm_last_doc_name [09:06:30]save OK [09:06:30]Clear old archive folders... [09:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:06:30]tlvbuf is 014DA470 [09:06:30]SAM_PROTO_ClearQueue [09:06:30]wFMCommunicate request_size=4 [09:06:30]MH_SAM_APDU [09:06:30]CAPDU: 80 09 00 00 [09:06:30]Write to MH i2c: E2 08 00 2A 33 80 09 00 00 00 00 00 00 CF [09:06:30]Write i2c OK [09:06:30]MH_I2C_Read... [09:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:30]Read from MH i2c: E2 [09:06:30]MH_I2C_Read... [09:06:30]Read from MH i2c: E2 03 00 [09:06:30]MH_I2C_Read... [09:06:30]Read from MH i2c: E2 03 00 2A 33 00 90 00 D1 [09:06:30]RAPDU: 90 00 [09:06:30]wFMCommunicate OK [09:06:30]SAM_PROTO_ClearQueue done [09:06:30]KKMCreateOFDPacket [09:06:30]OFDProtocolAddRootSTLVToBuf [09:06:30]FM_MakeSignedData [09:06:30]FM_MakeSignedData [09:06:30]SAM_PROTO_SignData [09:06:30]wFMCommunicate request_size=4 [09:06:30]MH_SAM_APDU [09:06:30]CAPDU: 80 0D 01 02 [09:06:30]Write to MH i2c: E2 08 00 2B 33 80 0D 01 02 00 00 00 00 D7 [09:06:30]Write i2c OK [09:06:30]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 03 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 03 00 2B 33 00 90 00 D2 [09:06:31]RAPDU: 90 00 [09:06:31]wFMCommunicate OK [09:06:31]wFMCommunicate request_size=255 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 A7 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 88 02 00 35 04 06 00 F8 52 D4 D4 [09:06:31]Write to MH i2c: E2 02 01 2C 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 A7 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 88 02 00 35 04 06 00 F8 52 D4 D4 00 00 C0 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 03 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 03 00 2C 33 00 90 00 D3 [09:06:31]RAPDU: 90 00 [09:06:31]wFMCommunicate OK [09:06:31]wFMCommunicate request_size=7 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 0D 02 02 02 F8 A6 [09:06:31]Write to MH i2c: E2 0A 00 2D 33 80 0D 02 02 02 00 F8 A6 00 00 7C [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 03 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 03 00 2D 33 00 90 00 D4 [09:06:31]RAPDU: 90 00 [09:06:31]wFMCommunicate OK [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 0D 03 02 [09:06:31]Write to MH i2c: E2 08 00 2E 33 80 0D 03 02 00 00 00 00 DC [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0B 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 0B 00 2E 33 00 EB CD C8 E8 E9 C5 26 B1 90 00 CA [09:06:31]RAPDU: EB CD C8 E8 E9 C5 26 B1 90 00 [09:06:31]wFMCommunicate OK [09:06:31]SAM_PROTO_SignData done [09:06:31]FM_MakeSignedData done [09:06:31]CreateOFDProtocolMessage [09:06:31]wFMCommunicate request_size=4 [09:06:31]MH_SAM_APDU [09:06:31]CAPDU: 80 11 00 00 [09:06:31]Write to MH i2c: E2 08 00 2F 33 80 11 00 00 00 00 00 00 DC [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:31]Read from MH i2c: E2 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 17 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: E2 17 00 2F 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [09:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:06:31]wFMCommunicate OK [09:06:31]CreateOFDProtocolMessage done [09:06:31]OFDSenderStorePacket 165923 [09:06:31]StoreOFDPacket docnum=165923 [09:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC BF 04 01 C7 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 A7 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 88 02 00 35 04 06 00 F8 52 D4 D4 F8 A6 EB CD C8 E8 E9 C5 26 B1 [09:06:31]CheckFolder [09:06:31]dirname=/storage/ofd_packets [09:06:31]CheckFolder done [09:06:31]ProducePacketName [09:06:31]name=ofd_packets/00165923 [09:06:31]NVStorageSaveData ofd_packets/00165923 [09:06:31]File name is /storage/ofd_packets/00165923 [09:06:31]Write 298 bytes [09:06:31]NVStorageSaveData done [09:06:31]OFDSenderStorePacket done [09:06:31]KKMCreateOFDPacket done [09:06:31]NVStorageSaveData kkm_last_timestamp [09:06:31]File name is /storage/kkm_last_timestamp [09:06:31]Write 4 bytes [09:06:31]NVStorageSaveData done [09:06:31]ExternCall_PrintAddStr [09:06:31]wPrintStart [09:06:31]Write to MH i2c: 01 00 00 30 33 63 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 07 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 07 00 30 33 00 00 00 00 00 FF 0F 78 [09:06:31]RasterBufferAndPrint [09:06:31]line Счет N : (1)220490 [09:06:31]line ИНН: 02508201610067 [09:06:31]line Контрольно-Кассовый Чек [09:06:31]line ПРОДАЖА [09:06:31]line ТРК (МРК, ГНК) : 11 [09:06:31]line Товар: 2710194210 [09:06:31]line ДТ-К-5 [09:06:31]line 20.000 * 0.00 [09:06:31]line = 0.00 [09:06:31]line НДС 12% НСП 1% [09:06:31]line > о реализуемом товаре [09:06:31]line ИТОГО: 0.00 [09:06:31]line НСП 1% : 0.00 [09:06:31]line НДС 12% : 0.00 [09:06:31]line Наличными: 0.00 [09:06:31]line Безнал.: 0.00 [09:06:31]line Место: АЗС № 161 "Партнер Нефть" [09:06:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:06:31]line СНО: Общий режим [09:06:31]line Чек 34 21.10.2024 09:06 [09:06:31]line Смена: 535 ФФД: 1.0 [09:06:31]line ЗНМ: 0300000104 [09:06:31]line РНМ: 0000000000091764 [09:06:31]line Версия ККМ: 001 [09:06:31]line Талоны: Топливные Талоны [09:06:31]line 4381935 [09:06:31]line ФМ: 0000000000871759 [09:06:31]line ФД: 165923 [09:06:31]line ФПД: 273034641733798 [09:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T090647&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165923&fm=273034641733798&tin=02508201610067®Number=0000000000091764&sum=0 [09:06:31]written 0, free lines is 4095 [09:06:31]OFD Sender: Processing packet 165923 [packets to send 48, broken 47] [09:06:31]ProducePacketName [09:06:31]name=ofd_packets/00165923 [09:06:31]OFD Sender: To server: pG, [09:06:31]CommunicateWithHost lk.salyk.kg:30040 [09:06:31]ConnectInit lk.salyk.kg [09:06:31]Connected sock=7 [09:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC BF 04 01 C7 C2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 22 00 00 00 F4 03 04 00 A7 19 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 88 02 00 35 04 06 00 F8 52 D4 D4 F8 A6 EB CD C8 E8 E9 C5 26 B1 [09:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 77 1D 47 00 3F B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 88 02 00 F4 03 04 00 15 C0 15 67 B6 04 01 00 00 1D 9D 4E 7F 1A B9 29 DD [09:06:31]CommunicateWithHost err = 0 [09:06:31]CheckOFDResponse [09:06:31]1017 (14) - 77093643461234 [09:06:31]1041 (16) - 0000000000871759 [09:06:31]1040 (4) - 165923 [09:06:31]1012 (4) - 21.10.2024 02:44 [09:06:31]1206 (1) - 0 [09:06:31]OFD Sender: Remove packet 165923 [09:06:31]ProducePacketName [09:06:31]name=ofd_packets/00165923 [09:06:31]NVStorageDeleteData [09:06:31]Write to MH i2c: 01 00 00 5A 33 8D [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 07 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: 01 07 00 5A 33 00 00 00 00 00 D7 0C 77 [09:06:31]RasterBufferAndPrint [09:06:31]line [09:06:31]line [09:06:31]line [09:06:31]line [09:06:31]line [09:06:31]written 0, free lines is 3293 [09:06:31]MH_Cut [09:06:31]Write to MH i2c: D1 01 00 61 33 01 66 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: D1 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: D1 01 00 [09:06:31]MH_I2C_Read... [09:06:31]Read from MH i2c: D1 01 00 61 33 00 65 [09:06:31]Write to MH i2c: 01 00 00 62 33 95 [09:06:31]Write i2c OK [09:06:31]MH_I2C_Read... [09:06:32]OFD Sender: No OFD packet to send [09:06:32]*** Cut start [09:06:32]*** Partial cut [09:06:32]*** CUTSNS_PIN = 1 [09:06:32]*** CUTSNS_PIN = 0 [09:06:33]*** Brake cut motor [09:06:33]Read from MH i2c: 01 [09:06:33]MH_I2C_Read... [09:06:33]*** Stop cut motor [09:06:33]*** Cut end [09:06:33]Read from MH i2c: 01 07 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: 01 07 00 62 33 00 00 00 00 00 FF 0F AA [09:06:33]process_action close_receipt done [09:06:33]requested_data is exist [09:06:33]produce_requested_data [09:06:33]requested_item fm.sn is exist - process it [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 11 00 00 [09:06:33]Write to MH i2c: E2 08 00 63 33 80 11 00 00 00 00 00 00 10 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 17 00 63 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [09:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:06:33]wFMCommunicate OK [09:06:33]requested_item fd.num is exist - process it [09:06:33]SAM_PROTO_GetFieldsCounters [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 13 00 00 [09:06:33]Write to MH i2c: E2 08 00 64 33 80 13 00 00 00 00 00 00 13 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 62 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 62 00 64 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [09:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:33]wFMCommunicate OK [09:06:33]SAM_PROTO_GetFieldsCounters done [09:06:33]requested_item shift.num is exist - process it [09:06:33]requested_item shift.opened is exist - process it [09:06:33]req_shift_opened [09:06:33]FM_GetShiftState [09:06:33]SAM_PROTO_GetShiftState [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 13 01 00 [09:06:33]Write to MH i2c: E2 08 00 65 33 80 13 01 00 00 00 00 00 15 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:33]Read from MH i2c: E2 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0E 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: E2 0E 00 65 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1E [09:06:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:06:33]wFMCommunicate OK [09:06:33]SAM_PROTO_GetShiftState done [09:06:33]FM_GetShiftState done [09:06:33]req_shift_opened done [09:06:33]requested_item shift.open_date is exist - process it [09:06:33]req_shift_open_date [09:06:33]req_shift_open_date done [09:06:33]produce_requested_data done [09:06:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165923,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:06:33]process_action_free close_receipt [09:06:33]json_value_free [09:06:33]json_value_free done [09:06:33]process_json_proto returns [09:06:33]Send response to host [09:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165923,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:06:33]free response buf [09:06:33]execute_script done [09:06:33]execute_script returns [09:06:33]free content buf [09:06:33]Sock 6.Close socket [09:06:33]Sock 6.Thread stoped [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:09:59]accept exits with 5 [09:09:59]New connection [09:09:59]New thread 3066920292 created [09:09:59]Thread 3066776932 joined [09:09:59]Waiting for new connection... [09:09:59] Sock 5.Parse request [09:09:59]Sock 5.Check first char [09:09:59]Sock 5.First char is OK [09:09:59]request: POST /json_proto HTTP/1.0 [09:09:59]Method: POST [09:09:59]URL: /json_proto [09:09:59]Method is POST - this is cgi request [09:09:59]url: /json_proto [09:09:59]query_string will be loaded in cgi processing [09:09:59]execute_cgi json_proto POST (null) [09:09:59]execute_cgi path=json_proto method=POST [09:09:59]POST find Content-Length [09:09:59]Host: 172.17.53.195:8080 [09:09:59]Content-Length: 767 [09:09:59]Content-Type: application/json [09:09:59] [09:09:59]POST finish read [09:09:59]Found Content-Length = 767 [09:09:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:59]execute_script... [09: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)220491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 900.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:59]POST & json_proto [09:09:59]process_json_proto [09:09:59]json parsed OK: [09:09:59]protocol is kg_v1.0 [09:09:59]action value=close_receipt [09:09:59]process_action close_receipt [09:09:59]cmd_close_receipt [09:09:59]MH_GetDate [09:09:59]Write to MH i2c: F0 00 00 66 33 88 [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: F0 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: F0 09 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: F0 09 00 66 33 00 78 1A 16 67 21 48 4A 65 B8 [09:09:59]GetLastDocTimeStamp 1729501607 [09:09:59]current date 1729501816 [09:09:59]FM_GetShiftState [09:09:59]SAM_PROTO_GetShiftState [09:09:59]wFMCommunicate request_size=4 [09:09:59]MH_SAM_APDU [09:09:59]CAPDU: 80 13 01 00 [09:09:59]Write to MH i2c: E2 08 00 67 33 80 13 01 00 00 00 00 00 17 [09:09:59]Write i2c OK [09:09:59]MH_I2C_Read... [09:09:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:59]Read from MH i2c: E2 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 0E 00 [09:09:59]MH_I2C_Read... [09:09:59]Read from MH i2c: E2 0E 00 67 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 20 [09:09:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:09:59]wFMCommunicate OK [09:09:59]SAM_PROTO_GetShiftState done [09:09:59]FM_GetShiftState done [09:09:59]opened in 1729470944 [09:09:59]opened+sec_in_day 1729557344 [09:09:59]quantity*price = 90047 [09:09:59]sum+1 = 90048 [09:09:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 900.47 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 0.00 Безнал.: 900.47 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 35 21.10.2024 09:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165924 ФПД: 8890203823499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091016&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165924&fm=8890203823499&tin=02508201610067®Number=0000000000091764&sum=90047 [09:10:00]StoreToDocumentArchive [09:10:00]shift 535 fd 165924 [09:10:00]save to /storage/0535/doc_00165924 [09:10:00]save last doc name /storage/0535/doc_00165924 to /storage/kkm_last_doc_name [09:10:00]save OK [09:10:00]Clear old archive folders... [09:10:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:00]tlvbuf is 015E9410 [09:10:00]SAM_PROTO_ClearQueue [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 09 00 00 [09:10:00]Write to MH i2c: E2 08 00 74 33 80 09 00 00 00 00 00 00 19 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 74 33 00 90 00 1B [09:10:00]RAPDU: 90 00 [09:10:00]wFMCommunicate OK [09:10:00]SAM_PROTO_ClearQueue done [09:10:00]KKMCreateOFDPacket [09:10:00]OFDProtocolAddRootSTLVToBuf [09:10:00]FM_MakeSignedData [09:10:00]FM_MakeSignedData [09:10:00]SAM_PROTO_SignData [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 0D 01 02 [09:10:00]Write to MH i2c: E2 08 00 75 33 80 0D 01 02 00 00 00 00 21 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 75 33 00 90 00 1C [09:10:00]RAPDU: 90 00 [09:10:00]wFMCommunicate OK [09:10:00]wFMCommunicate request_size=255 [09:10:00]MH_SAM_APDU [09: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 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 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 88 02 00 35 04 06 00 08 [09:10:00]Write to MH i2c: E2 02 01 76 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 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 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 88 02 00 35 04 06 00 08 00 00 33 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 76 33 00 90 00 1D [09:10:00]RAPDU: 90 00 [09:10:00]wFMCommunicate OK [09:10:00]wFMCommunicate request_size=10 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 0D 02 02 05 15 E9 70 DD 8B [09:10:00]Write to MH i2c: E2 0D 00 77 33 80 0D 02 02 05 00 15 E9 70 DD 8B 00 00 04 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 03 00 77 33 00 90 00 1E [09:10:00]RAPDU: 90 00 [09:10:00]wFMCommunicate OK [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 0D 03 02 [09:10:00]Write to MH i2c: E2 08 00 78 33 80 0D 03 02 00 00 00 00 26 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 0B 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 0B 00 78 33 00 E8 E1 8B 06 CE 5B DA E5 90 00 69 [09:10:00]RAPDU: E8 E1 8B 06 CE 5B DA E5 90 00 [09:10:00]wFMCommunicate OK [09:10:00]SAM_PROTO_SignData done [09:10:00]FM_MakeSignedData done [09:10:00]CreateOFDProtocolMessage [09:10:00]wFMCommunicate request_size=4 [09:10:00]MH_SAM_APDU [09:10:00]CAPDU: 80 11 00 00 [09:10:00]Write to MH i2c: E2 08 00 79 33 80 11 00 00 00 00 00 00 26 [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:00]Read from MH i2c: E2 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 17 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: E2 17 00 79 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [09:10:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:10:00]wFMCommunicate OK [09:10:00]CreateOFDProtocolMessage done [09:10:00]OFDSenderStorePacket 165924 [09:10:00]StoreOFDPacket docnum=165924 [09:10:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 66 07 01 79 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 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 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 88 02 00 35 04 06 00 08 15 E9 70 DD 8B E8 E1 8B 06 CE 5B DA E5 [09:10:00]CheckFolder [09:10:00]dirname=/storage/ofd_packets [09:10:00]CheckFolder done [09:10:00]ProducePacketName [09:10:00]name=ofd_packets/00165924 [09:10:00]NVStorageSaveData ofd_packets/00165924 [09:10:00]File name is /storage/ofd_packets/00165924 [09:10:00]Write 301 bytes [09:10:00]NVStorageSaveData done [09:10:00]OFDSenderStorePacket done [09:10:00]KKMCreateOFDPacket done [09:10:00]NVStorageSaveData kkm_last_timestamp [09:10:00]File name is /storage/kkm_last_timestamp [09:10:00]Write 4 bytes [09:10:00]NVStorageSaveData done [09:10:00]ExternCall_PrintAddStr [09:10:00]wPrintStart [09:10:00]Write to MH i2c: 01 00 00 7A 33 AD [09:10:00]Write i2c OK [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: 01 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: 01 07 00 [09:10:00]MH_I2C_Read... [09:10:00]Read from MH i2c: 01 07 00 7A 33 00 00 00 00 00 FF 0F C2 [09:10:00]RasterBufferAndPrint [09:10:00]line Счет N : (1)220491 [09:10:00]line ИНН: 02508201610067 [09:10:00]line Контрольно-Кассовый Чек [09:10:00]line ПРОДАЖА [09:10:00]line ТРК (МРК, ГНК) : 33 [09:10:00]line Товар: 2710124130 [09:10:00]line Аи-92-К-5 [09:10:00]line 13.460 * 66.90 [09:10:00]line = 900.47 [09:10:00]line НДС 12% НСП 1% [09:10:00]line > о реализуемом товаре [09:10:00]line ИТОГО: 900.47 [09:10:00]line НСП 1% : 7.97 [09:10:00]line НДС 12% : 95.62 [09:10:00]line Наличными: 0.00 [09:10:00]line Безнал.: 900.47 [09:10:00]line Место: АЗС № 161 "Партнер Нефть" [09:10:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:10:00]line СНО: Общий режим [09:10:00]line Чек 35 21.10.2024 09:10 [09:10:00]line Смена: 535 ФФД: 1.0 [09:10:00]line ЗНМ: 0300000104 [09:10:00]line РНМ: 0000000000091764 [09:10:00]line Версия ККМ: 001 [09:10:00]line Платежная система: Mbank [09:10:00]line ФМ: 0000000000871759 [09:10:00]line ФД: 165924 [09:10:00]line ФПД: 8890203823499 [09:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091016&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165924&fm=8890203823499&tin=02508201610067®Number=0000000000091764&sum=90047 [09:10:00]OFD Sender: Processing packet 165924 [packets to send 48, broken 47] [09:10:00]ProducePacketName [09:10:00]name=ofd_packets/00165924 [09:10:00]OFD Sender: To server: pG, [09:10:01]CommunicateWithHost lk.salyk.kg:30040 [09:10:01]ConnectInit lk.salyk.kg [09:10:01]written 0, free lines is 4095 [09:10:01]Connected sock=7 [09: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 35 39 0F 01 00 00 FA 66 07 01 79 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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BF 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 00 00 00 00 00 00 39 04 06 00 BF 5F 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 78 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 88 02 00 35 04 06 00 08 15 E9 70 DD 8B E8 E1 8B 06 CE 5B DA E5 [09: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 35 39 4F 00 00 00 2F D6 47 00 94 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 88 02 00 F4 03 04 00 E7 C0 15 67 B6 04 01 00 00 45 8E AB 45 52 47 24 9A [09:10:01]CommunicateWithHost err = 0 [09:10:01]CheckOFDResponse [09:10:01]1017 (14) - 77093643461234 [09:10:01]1041 (16) - 0000000000871759 [09:10:01]1040 (4) - 165924 [09:10:01]1012 (4) - 21.10.2024 02:48 [09:10:01]1206 (1) - 0 [09:10:01]OFD Sender: Remove packet 165924 [09:10:01]ProducePacketName [09:10:01]name=ofd_packets/00165924 [09:10:01]NVStorageDeleteData [09:10:01]Write to MH i2c: 01 00 00 A3 33 D6 [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: 01 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: 01 07 00 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: 01 07 00 A3 33 00 00 00 00 00 DD 0C C6 [09:10:01]RasterBufferAndPrint [09:10:01]line [09:10:01]line [09:10:01]line [09:10:01]line [09:10:01]line [09:10:01]written 0, free lines is 3302 [09:10:01]MH_Cut [09:10:01]Write to MH i2c: D1 01 00 AA 33 01 AF [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: D1 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: D1 01 00 [09:10:01]MH_I2C_Read... [09:10:01]Read from MH i2c: D1 01 00 AA 33 00 AE [09:10:01]Write to MH i2c: 01 00 00 AB 33 DE [09:10:01]Write i2c OK [09:10:01]MH_I2C_Read... [09:10:01]OFD Sender: No OFD packet to send [09:10:02]*** Cut start [09:10:02]*** Partial cut [09:10:02]*** CUTSNS_PIN = 1 [09:10:02]*** CUTSNS_PIN = 0 [09:10:02]*** Brake cut motor [09:10:03]Read from MH i2c: 01 [09:10:03]MH_I2C_Read... [09:10:03]*** Stop cut motor [09:10:03]*** Cut end [09:10:03]Read from MH i2c: 01 07 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: 01 07 00 AB 33 00 00 00 00 00 FF 0F F3 [09:10:03]process_action close_receipt done [09:10:03]requested_data is exist [09:10:03]produce_requested_data [09:10:03]requested_item fm.sn is exist - process it [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 11 00 00 [09:10:03]Write to MH i2c: E2 08 00 AC 33 80 11 00 00 00 00 00 00 59 [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 17 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 17 00 AC 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [09:10:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:10:03]wFMCommunicate OK [09:10:03]requested_item fd.num is exist - process it [09:10:03]SAM_PROTO_GetFieldsCounters [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 13 00 00 [09:10:03]Write to MH i2c: E2 08 00 AD 33 80 13 00 00 00 00 00 00 5C [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 62 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 62 00 AD 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:10:03]wFMCommunicate OK [09:10:03]SAM_PROTO_GetFieldsCounters done [09:10:03]requested_item shift.num is exist - process it [09:10:03]requested_item shift.opened is exist - process it [09:10:03]req_shift_opened [09:10:03]FM_GetShiftState [09:10:03]SAM_PROTO_GetShiftState [09:10:03]wFMCommunicate request_size=4 [09:10:03]MH_SAM_APDU [09:10:03]CAPDU: 80 13 01 00 [09:10:03]Write to MH i2c: E2 08 00 AE 33 80 13 01 00 00 00 00 00 5E [09:10:03]Write i2c OK [09:10:03]MH_I2C_Read... [09:10:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:03]Read from MH i2c: E2 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 0E 00 [09:10:03]MH_I2C_Read... [09:10:03]Read from MH i2c: E2 0E 00 AE 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 67 [09:10:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:10:03]wFMCommunicate OK [09:10:03]SAM_PROTO_GetShiftState done [09:10:03]FM_GetShiftState done [09:10:03]req_shift_opened done [09:10:03]requested_item shift.open_date is exist - process it [09:10:03]req_shift_open_date [09:10:03]req_shift_open_date done [09:10:03]produce_requested_data done [09:10:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165924,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:10:03]process_action_free close_receipt [09:10:03]json_value_free [09:10:03]json_value_free done [09:10:03]process_json_proto returns [09:10:03]Send response to host [09:10:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165924,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:10:03]free response buf [09:10:03]execute_script done [09:10:03]execute_script returns [09:10:03]free content buf [09:10:03]Sock 5.Close socket [09:10:03]Sock 5.Thread stoped [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:22]accept exits with 6 [09:11:22]New connection [09:11:22]New thread 3066776932 created [09:11:22]Thread 3066920292 joined [09:11:22]Waiting for new connection... [09:11:22] Sock 6.Parse request [09:11:22]Sock 6.Check first char [09:11:22]Sock 6.First char is OK [09:11:22]request: POST /json_proto HTTP/1.0 [09:11:22]Method: POST [09:11:22]URL: /json_proto [09:11:22]Method is POST - this is cgi request [09:11:22]url: /json_proto [09:11:22]query_string will be loaded in cgi processing [09:11:22]execute_cgi json_proto POST (null) [09:11:22]execute_cgi path=json_proto method=POST [09:11:22]POST find Content-Length [09:11:22]Host: 172.17.53.195:8080 [09:11:22]Content-Length: 674 [09:11:22]Content-Type: application/json [09:11:22] [09:11:22]POST finish read [09:11:22]Found Content-Length = 674 [09:11:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:22]execute_script... [09:11: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)220493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:22]POST & json_proto [09:11:22]process_json_proto [09:11:22]json parsed OK: [09:11:22]protocol is kg_v1.0 [09:11:22]action value=close_receipt [09:11:22]process_action close_receipt [09:11:22]cmd_close_receipt [09:11:22]MH_GetDate [09:11:22]Write to MH i2c: F0 00 00 AF 33 D1 [09:11:22]Write i2c OK [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: F0 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: F0 09 00 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: F0 09 00 AF 33 00 CC 1A 16 67 21 48 4A 65 55 [09:11:22]GetLastDocTimeStamp 1729501816 [09:11:22]current date 1729501900 [09:11:22]FM_GetShiftState [09:11:22]SAM_PROTO_GetShiftState [09:11:22]wFMCommunicate request_size=4 [09:11:22]MH_SAM_APDU [09:11:22]CAPDU: 80 13 01 00 [09:11:22]Write to MH i2c: E2 08 00 B0 33 80 13 01 00 00 00 00 00 60 [09:11:22]Write i2c OK [09:11:22]MH_I2C_Read... [09:11:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:22]Read from MH i2c: E2 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 0E 00 [09:11:22]MH_I2C_Read... [09:11:22]Read from MH i2c: E2 0E 00 B0 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 69 [09:11:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:11:22]wFMCommunicate OK [09:11:22]SAM_PROTO_GetShiftState done [09:11:22]FM_GetShiftState done [09:11:22]opened in 1729470944 [09:11:22]opened+sec_in_day 1729557344 [09:11:22]quantity*price = 50063 [09:11:22]sum+1 = 50064 [09:11:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 36 21.10.2024 09:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165925 ФПД: 87306951799405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091140&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165925&fm=87306951799405&tin=02508201610067®Number=0000000000091764&sum=50000 [09:11:23]StoreToDocumentArchive [09:11:23]shift 535 fd 165925 [09:11:23]save to /storage/0535/doc_00165925 [09:11:23]save last doc name /storage/0535/doc_00165925 to /storage/kkm_last_doc_name [09:11:23]save OK [09:11:23]Clear old archive folders... [09:11:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:11:23]tlvbuf is 0157EA10 [09:11:23]SAM_PROTO_ClearQueue [09:11:23]wFMCommunicate request_size=4 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 09 00 00 [09:11:23]Write to MH i2c: E2 08 00 BD 33 80 09 00 00 00 00 00 00 62 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 BD 33 00 90 00 64 [09:11:23]RAPDU: 90 00 [09:11:23]wFMCommunicate OK [09:11:23]SAM_PROTO_ClearQueue done [09:11:23]KKMCreateOFDPacket [09:11:23]OFDProtocolAddRootSTLVToBuf [09:11:23]FM_MakeSignedData [09:11:23]FM_MakeSignedData [09:11:23]SAM_PROTO_SignData [09:11:23]wFMCommunicate request_size=4 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 0D 01 02 [09:11:23]Write to MH i2c: E2 08 00 BE 33 80 0D 01 02 00 00 00 00 6A [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:23]Read from MH i2c: E2 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 [09:11:23]MH_I2C_Read... [09:11:23]Read from MH i2c: E2 03 00 BE 33 00 90 00 65 [09:11:23]RAPDU: 90 00 [09:11:23]wFMCommunicate OK [09:11:23]wFMCommunicate request_size=255 [09:11:23]MH_SAM_APDU [09:11:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 00 00 00 F4 03 04 00 CC 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 88 02 00 35 04 06 00 4F 67 BB D9 [09:11:23]Write to MH i2c: E2 02 01 BF 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 CC 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 88 02 00 35 04 06 00 4F 67 BB D9 00 00 17 [09:11:23]Write i2c OK [09:11:23]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 03 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 03 00 BF 33 00 90 00 66 [09:11:24]RAPDU: 90 00 [09:11:24]wFMCommunicate OK [09:11:24]wFMCommunicate request_size=7 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 0D 02 02 02 32 6D [09:11:24]Write to MH i2c: E2 0A 00 C0 33 80 0D 02 02 02 00 32 6D 00 00 10 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 03 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 03 00 C0 33 00 90 00 67 [09:11:24]RAPDU: 90 00 [09:11:24]wFMCommunicate OK [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 0D 03 02 [09:11:24]Write to MH i2c: E2 08 00 C1 33 80 0D 03 02 00 00 00 00 6F [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 0B 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 0B 00 C1 33 00 F7 3A 65 33 A9 54 7E 7F 90 00 33 [09:11:24]RAPDU: F7 3A 65 33 A9 54 7E 7F 90 00 [09:11:24]wFMCommunicate OK [09:11:24]SAM_PROTO_SignData done [09:11:24]FM_MakeSignedData done [09:11:24]CreateOFDProtocolMessage [09:11:24]wFMCommunicate request_size=4 [09:11:24]MH_SAM_APDU [09:11:24]CAPDU: 80 11 00 00 [09:11:24]Write to MH i2c: E2 08 00 C2 33 80 11 00 00 00 00 00 00 6F [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:24]Read from MH i2c: E2 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 17 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: E2 17 00 C2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C7 [09:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:11:24]wFMCommunicate OK [09:11:24]CreateOFDProtocolMessage done [09:11:24]OFDSenderStorePacket 165925 [09:11:24]StoreOFDPacket docnum=165925 [09:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 04 FD 04 01 75 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 CC 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 88 02 00 35 04 06 00 4F 67 BB D9 32 6D F7 3A 65 33 A9 54 7E 7F [09:11:24]CheckFolder [09:11:24]dirname=/storage/ofd_packets [09:11:24]CheckFolder done [09:11:24]ProducePacketName [09:11:24]name=ofd_packets/00165925 [09:11:24]NVStorageSaveData ofd_packets/00165925 [09:11:24]File name is /storage/ofd_packets/00165925 [09:11:24]Write 298 bytes [09:11:24]NVStorageSaveData done [09:11:24]OFDSenderStorePacket done [09:11:24]KKMCreateOFDPacket done [09:11:24]NVStorageSaveData kkm_last_timestamp [09:11:24]File name is /storage/kkm_last_timestamp [09:11:24]Write 4 bytes [09:11:24]NVStorageSaveData done [09:11:24]ExternCall_PrintAddStr [09:11:24]wPrintStart [09:11:24]Write to MH i2c: 01 00 00 C3 33 F6 [09:11:24]Write i2c OK [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 07 00 [09:11:24]MH_I2C_Read... [09:11:24]Read from MH i2c: 01 07 00 C3 33 00 00 00 00 00 FF 0F 0B [09:11:24]RasterBufferAndPrint [09:11:24]line Счет N : (1)220493 [09:11:24]line ИНН: 02508201610067 [09:11:24]line Контрольно-Кассовый Чек [09:11:24]line ПРОДАЖА [09:11:24]line ТРК (МРК, ГНК) : 21 [09:11:24]line Товар: 2710194210 [09:11:24]line ДТ-К-5 [09:11:24]line 6.570 * 76.20 [09:11:24]line = 500.63 [09:11:24]line НДС 12% НСП 1% [09:11:24]line > о реализуемом товаре [09:11:24]line ОКРУГЛЕНИЕ: -0.63 [09:11:24]line ИТОГО: 500.00 [09:11:24]line Внесено: 500.00 [09:11:24]line СДАЧА: 0.00 [09:11:24]line НСП 1% : 4.43 [09:11:24]line НДС 12% : 53.16 [09:11:24]line Наличными: 500.00 [09:11:24]line Безнал.: 0.00 [09:11:24]line Место: АЗС № 161 "Партнер Нефть" [09:11:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:11:24]line СНО: Общий режим [09:11:24]line Чек 36 21.10.2024 09:11 [09:11:24]line Смена: 535 ФФД: 1.0 [09:11:24]line ЗНМ: 0300000104 [09:11:24]line РНМ: 0000000000091764 [09:11:24]line Версия ККМ: 001 [09:11:24]line ФМ: 0000000000871759 [09:11:24]line ФД: 165925 [09:11:24]line ФПД: 87306951799405 [09:11:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091140&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165925&fm=87306951799405&tin=02508201610067®Number=0000000000091764&sum=50000 [09:11:24]OFD Sender: Processing packet 165925 [packets to send 48, broken 47] [09:11:24]ProducePacketName [09:11:24]name=ofd_packets/00165925 [09:11:24]OFD Sender: To server: pG, [09:11:24]CommunicateWithHost lk.salyk.kg:30040 [09:11:24]ConnectInit lk.salyk.kg [09:11:24]written 0, free lines is 4095 [09:11:24]Connected sock=7 [09:11:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 04 FD 04 01 75 E5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 CC 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 88 02 00 35 04 06 00 4F 67 BB D9 32 6D F7 3A 65 33 A9 54 7E 7F [09:11:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4D D2 47 00 A1 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 88 02 00 F4 03 04 00 3A C1 15 67 B6 04 01 00 00 4D C9 A7 FF 47 02 80 8D [09:11:24]CommunicateWithHost err = 0 [09:11:24]CheckOFDResponse [09:11:24]1017 (14) - 77093643461234 [09:11:24]1041 (16) - 0000000000871759 [09:11:24]1040 (4) - 165925 [09:11:24]1012 (4) - 21.10.2024 02:49 [09:11:24]1206 (1) - 0 [09:11:24]OFD Sender: Remove packet 165925 [09:11:24]ProducePacketName [09:11:24]name=ofd_packets/00165925 [09:11:24]NVStorageDeleteData [09:11:25]Write to MH i2c: 01 00 00 EE 33 21 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: 01 07 00 EE 33 00 00 00 00 00 A9 0C DD [09:11:25]RasterBufferAndPrint [09:11:25]line [09:11:25]line [09:11:25]line [09:11:25]line [09:11:25]line [09:11:25]written 0, free lines is 3247 [09:11:25]MH_Cut [09:11:25]Write to MH i2c: D1 01 00 F5 33 01 FA [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: D1 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: D1 01 00 [09:11:25]MH_I2C_Read... [09:11:25]Read from MH i2c: D1 01 00 F5 33 00 F9 [09:11:25]Write to MH i2c: 01 00 00 F6 33 29 [09:11:25]Write i2c OK [09:11:25]MH_I2C_Read... [09:11:25]OFD Sender: No OFD packet to send [09:11:25]*** Cut start [09:11:25]*** Partial cut [09:11:25]*** CUTSNS_PIN = 1 [09:11:26]*** CUTSNS_PIN = 0 [09:11:26]*** Brake cut motor [09:11:26]Read from MH i2c: 01 [09:11:26]MH_I2C_Read... [09:11:26]*** Stop cut motor [09:11:26]*** Cut end [09:11:26]Read from MH i2c: 01 07 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: 01 07 00 F6 33 00 00 00 00 00 FF 0F 3E [09:11:26]process_action close_receipt done [09:11:26]requested_data is exist [09:11:26]produce_requested_data [09:11:26]requested_item fm.sn is exist - process it [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 11 00 00 [09:11:26]Write to MH i2c: E2 08 00 F7 33 80 11 00 00 00 00 00 00 A4 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 17 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 17 00 F7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [09:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:11:26]wFMCommunicate OK [09:11:26]requested_item fd.num is exist - process it [09:11:26]SAM_PROTO_GetFieldsCounters [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 13 00 00 [09:11:26]Write to MH i2c: E2 08 00 F8 33 80 13 00 00 00 00 00 00 A7 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 62 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 62 00 F8 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [09:11:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_GetFieldsCounters done [09:11:26]requested_item shift.num is exist - process it [09:11:26]requested_item shift.opened is exist - process it [09:11:26]req_shift_opened [09:11:26]FM_GetShiftState [09:11:26]SAM_PROTO_GetShiftState [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 13 01 00 [09:11:26]Write to MH i2c: E2 08 00 F9 33 80 13 01 00 00 00 00 00 A9 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 F9 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B2 [09:11:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_GetShiftState done [09:11:26]FM_GetShiftState done [09:11:26]req_shift_opened done [09:11:26]requested_item shift.open_date is exist - process it [09:11:26]req_shift_open_date [09:11:26]req_shift_open_date done [09:11:26]produce_requested_data done [09:11:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165925,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:11:26]process_action_free close_receipt [09:11:26]json_value_free [09:11:26]json_value_free done [09:11:26]process_json_proto returns [09:11:26]Send response to host [09:11:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165925,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:11:26]free response buf [09:11:26]execute_script done [09:11:26]execute_script returns [09:11:26]free content buf [09:11:26]Sock 6.Close socket [09:11:26]Sock 6.Thread stoped [09:11:30]OFD Sender: No OFD packet to send [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:53]accept exits with 5 [09:11:53]New connection [09:11:53]New thread 3066920292 created [09:11:53]Thread 3066776932 joined [09:11:53]Waiting for new connection... [09:11:53] Sock 5.Parse request [09:11:53]Sock 5.Check first char [09:11:53]Sock 5.First char is OK [09:11:53]request: POST /json_proto HTTP/1.0 [09:11:53]Method: POST [09:11:53]URL: /json_proto [09:11:53]Method is POST - this is cgi request [09:11:53]url: /json_proto [09:11:53]query_string will be loaded in cgi processing [09:11:53]execute_cgi json_proto POST (null) [09:11:53]execute_cgi path=json_proto method=POST [09:11:53]POST find Content-Length [09:11:53]Host: 172.17.53.195:8080 [09:11:53]Content-Length: 677 [09:11:53]Content-Type: application/json [09:11:53] [09:11:53]POST finish read [09:11:53]Found Content-Length = 677 [09:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:53]execute_script... [09:11: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)220494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:53]POST & json_proto [09:11:53]process_json_proto [09:11:53]json parsed OK: [09:11:53]protocol is kg_v1.0 [09:11:53]action value=close_receipt [09:11:53]process_action close_receipt [09:11:53]cmd_close_receipt [09:11:53]MH_GetDate [09:11:53]Write to MH i2c: F0 00 00 FA 33 1C [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: F0 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: F0 09 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: F0 09 00 FA 33 00 EB 1A 16 67 21 48 4A 65 BF [09:11:53]GetLastDocTimeStamp 1729501900 [09:11:53]current date 1729501931 [09:11:53]FM_GetShiftState [09:11:53]SAM_PROTO_GetShiftState [09:11:53]wFMCommunicate request_size=4 [09:11:53]MH_SAM_APDU [09:11:53]CAPDU: 80 13 01 00 [09:11:53]Write to MH i2c: E2 08 00 FB 33 80 13 01 00 00 00 00 00 AB [09:11:53]Write i2c OK [09:11:53]MH_I2C_Read... [09:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:53]Read from MH i2c: E2 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 0E 00 [09:11:53]MH_I2C_Read... [09:11:53]Read from MH i2c: E2 0E 00 FB 33 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B4 [09:11:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:11:53]wFMCommunicate OK [09:11:53]SAM_PROTO_GetShiftState done [09:11:53]FM_GetShiftState done [09:11:53]opened in 1729470944 [09:11:53]opened+sec_in_day 1729557344 [09:11:53]quantity*price = 40006 [09:11:53]sum+1 = 40007 [09:11:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 37 21.10.2024 09:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165926 ФПД: 235563373377010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165926&fm=235563373377010&tin=02508201610067®Number=0000000000091764&sum=40000 [09:11:54]StoreToDocumentArchive [09:11:54]shift 535 fd 165926 [09:11:54]save to /storage/0535/doc_00165926 [09:11:54]save last doc name /storage/0535/doc_00165926 to /storage/kkm_last_doc_name [09:11:54]save OK [09:11:54]Clear old archive folders... [09:11:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:54]tlvbuf is 019EA500 [09:11:54]SAM_PROTO_ClearQueue [09:11:54]wFMCommunicate request_size=4 [09:11:54]MH_SAM_APDU [09:11:54]CAPDU: 80 09 00 00 [09:11:54]Write to MH i2c: E2 08 00 08 34 80 09 00 00 00 00 00 00 AE [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: E2 [09:11:54]MH_I2C_Read... [09:11:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:54]Read from MH i2c: E2 03 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: E2 03 00 08 34 00 90 00 B0 [09:11:54]RAPDU: 90 00 [09:11:54]wFMCommunicate OK [09:11:54]SAM_PROTO_ClearQueue done [09:11:54]KKMCreateOFDPacket [09:11:54]OFDProtocolAddRootSTLVToBuf [09:11:54]FM_MakeSignedData [09:11:54]FM_MakeSignedData [09:11:54]SAM_PROTO_SignData [09:11:54]wFMCommunicate request_size=4 [09:11:54]MH_SAM_APDU [09:11:54]CAPDU: 80 0D 01 02 [09:11:54]Write to MH i2c: E2 08 00 09 34 80 0D 01 02 00 00 00 00 B6 [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:54]Read from MH i2c: E2 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: E2 03 00 [09:11:54]MH_I2C_Read... [09:11:54]Read from MH i2c: E2 03 00 09 34 00 90 00 B1 [09:11:54]RAPDU: 90 00 [09:11:54]wFMCommunicate OK [09:11:54]wFMCommunicate request_size=255 [09:11:54]MH_SAM_APDU [09:11:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 88 02 00 35 04 06 00 D6 [09:11:54]Write to MH i2c: E2 02 01 0A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 88 02 00 35 04 06 00 D6 00 00 61 [09:11:54]Write i2c OK [09:11:54]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 03 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 03 00 0A 34 00 90 00 B2 [09:11:55]RAPDU: 90 00 [09:11:55]wFMCommunicate OK [09:11:55]wFMCommunicate request_size=10 [09:11:55]MH_SAM_APDU [09:11:55]CAPDU: 80 0D 02 02 05 3E 5F 31 35 F2 [09:11:55]Write to MH i2c: E2 0D 00 0B 34 80 0D 02 02 05 00 3E 5F 31 35 F2 00 00 B8 [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 03 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 03 00 0B 34 00 90 00 B3 [09:11:55]RAPDU: 90 00 [09:11:55]wFMCommunicate OK [09:11:55]wFMCommunicate request_size=4 [09:11:55]MH_SAM_APDU [09:11:55]CAPDU: 80 0D 03 02 [09:11:55]Write to MH i2c: E2 08 00 0C 34 80 0D 03 02 00 00 00 00 BB [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 0B 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 0B 00 0C 34 00 D8 7D 51 AC 7A DD 5C F9 90 00 BA [09:11:55]RAPDU: D8 7D 51 AC 7A DD 5C F9 90 00 [09:11:55]wFMCommunicate OK [09:11:55]SAM_PROTO_SignData done [09:11:55]FM_MakeSignedData done [09:11:55]CreateOFDProtocolMessage [09:11:55]wFMCommunicate request_size=4 [09:11:55]MH_SAM_APDU [09:11:55]CAPDU: 80 11 00 00 [09:11:55]Write to MH i2c: E2 08 00 0D 34 80 11 00 00 00 00 00 00 BB [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:55]Read from MH i2c: E2 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 17 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: E2 17 00 0D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [09:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:11:55]wFMCommunicate OK [09:11:55]CreateOFDProtocolMessage done [09:11:55]OFDSenderStorePacket 165926 [09:11:55]StoreOFDPacket docnum=165926 [09:11:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 A1 07 01 CF 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 88 02 00 35 04 06 00 D6 3E 5F 31 35 F2 D8 7D 51 AC 7A DD 5C F9 [09:11:55]CheckFolder [09:11:55]dirname=/storage/ofd_packets [09:11:55]CheckFolder done [09:11:55]ProducePacketName [09:11:55]name=ofd_packets/00165926 [09:11:55]NVStorageSaveData ofd_packets/00165926 [09:11:55]File name is /storage/ofd_packets/00165926 [09:11:55]Write 301 bytes [09:11:55]NVStorageSaveData done [09:11:55]OFDSenderStorePacket done [09:11:55]KKMCreateOFDPacket done [09:11:55]NVStorageSaveData kkm_last_timestamp [09:11:55]File name is /storage/kkm_last_timestamp [09:11:55]Write 4 bytes [09:11:55]NVStorageSaveData done [09:11:55]ExternCall_PrintAddStr [09:11:55]wPrintStart [09:11:55]Write to MH i2c: 01 00 00 0E 34 42 [09:11:55]Write i2c OK [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: 01 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: 01 07 00 [09:11:55]MH_I2C_Read... [09:11:55]Read from MH i2c: 01 07 00 0E 34 00 00 00 00 00 FF 0F 57 [09:11:55]RasterBufferAndPrint [09:11:55]line Счет N : (1)220494 [09:11:55]line ИНН: 02508201610067 [09:11:55]line Контрольно-Кассовый Чек [09:11:55]line ПРОДАЖА [09:11:55]line ТРК (МРК, ГНК) : 43 [09:11:55]line Товар: 2710124130 [09:11:55]line Аи-92-К-5 [09:11:55]line 5.980 * 66.90 [09:11:55]line = 400.06 [09:11:55]line НДС 12% НСП 1% [09:11:55]line > о реализуемом товаре [09:11:55]line ОКРУГЛЕНИЕ: -0.06 [09:11:55]line ИТОГО: 400.00 [09:11:55]line Внесено: 400.00 [09:11:55]line СДАЧА: 0.00 [09:11:55]line НСП 1% : 3.54 [09:11:55]line НДС 12% : 42.48 [09:11:55]line Наличными: 400.00 [09:11:55]line Безнал.: 0.00 [09:11:55]line Место: АЗС № 161 "Партнер Нефть" [09:11:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:11:55]line СНО: Общий режим [09:11:55]line Чек 37 21.10.2024 09:12 [09:11:55]line Смена: 535 ФФД: 1.0 [09:11:55]line ЗНМ: 0300000104 [09:11:55]line РНМ: 0000000000091764 [09:11:55]line Версия ККМ: 001 [09:11:55]line ФМ: 0000000000871759 [09:11:55]line ФД: 165926 [09:11:55]line ФПД: 235563373377010 [09:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091211&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165926&fm=235563373377010&tin=02508201610067®Number=0000000000091764&sum=40000 [09:11:55]OFD Sender: Processing packet 165926 [packets to send 48, broken 47] [09:11:55]ProducePacketName [09:11:55]name=ofd_packets/00165926 [09:11:55]OFD Sender: To server: pG, [09:11:55]CommunicateWithHost lk.salyk.kg:30040 [09:11:55]ConnectInit lk.salyk.kg [09:11:55]written 0, free lines is 4095 [09:11:55]Connected sock=7 [09:11:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 A1 07 01 CF 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 EB 1A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 88 02 00 35 04 06 00 D6 3E 5F 31 35 F2 D8 7D 51 AC 7A DD 5C F9 [09:11:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 34 47 00 4E EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 88 02 00 F4 03 04 00 5A C1 15 67 B6 04 01 00 00 BF A8 EF 9F D5 8F 88 F4 [09:11:56]CommunicateWithHost err = 0 [09:11:56]CheckOFDResponse [09:11:56]1017 (14) - 77093643461234 [09:11:56]1041 (16) - 0000000000871759 [09:11:56]1040 (4) - 165926 [09:11:56]1012 (4) - 21.10.2024 02:50 [09:11:56]1206 (1) - 0 [09:11:56]OFD Sender: Remove packet 165926 [09:11:56]ProducePacketName [09:11:56]name=ofd_packets/00165926 [09:11:56]NVStorageDeleteData [09:11:56]Write to MH i2c: 01 00 00 39 34 6D [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: 01 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: 01 07 00 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: 01 07 00 39 34 00 00 00 00 00 B2 0C 32 [09:11:56]RasterBufferAndPrint [09:11:56]line [09:11:56]line [09:11:56]line [09:11:56]line [09:11:56]line [09:11:56]written 0, free lines is 3258 [09:11:56]MH_Cut [09:11:56]Write to MH i2c: D1 01 00 40 34 01 46 [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: D1 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: D1 01 00 [09:11:56]MH_I2C_Read... [09:11:56]Read from MH i2c: D1 01 00 40 34 00 45 [09:11:56]Write to MH i2c: 01 00 00 41 34 75 [09:11:56]Write i2c OK [09:11:56]MH_I2C_Read... [09:11:56]OFD Sender: No OFD packet to send [09:11:57]*** Cut start [09:11:57]*** Partial cut [09:11:57]*** CUTSNS_PIN = 1 [09:11:57]*** CUTSNS_PIN = 0 [09:11:57]*** Brake cut motor [09:11:57]Read from MH i2c: 01 [09:11:57]MH_I2C_Read... [09:11:57]*** Stop cut motor [09:11:57]*** Cut end [09:11:57]Read from MH i2c: 01 07 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: 01 07 00 41 34 00 00 00 00 00 FF 0F 8A [09:11:57]process_action close_receipt done [09:11:57]requested_data is exist [09:11:57]produce_requested_data [09:11:57]requested_item fm.sn is exist - process it [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 11 00 00 [09:11:57]Write to MH i2c: E2 08 00 42 34 80 11 00 00 00 00 00 00 F0 [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 17 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 17 00 42 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 48 [09:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:11:57]wFMCommunicate OK [09:11:57]requested_item fd.num is exist - process it [09:11:57]SAM_PROTO_GetFieldsCounters [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 13 00 00 [09:11:57]Write to MH i2c: E2 08 00 43 34 80 13 00 00 00 00 00 00 F3 [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 62 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 62 00 43 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [09:11:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:57]wFMCommunicate OK [09:11:57]SAM_PROTO_GetFieldsCounters done [09:11:57]requested_item shift.num is exist - process it [09:11:57]requested_item shift.opened is exist - process it [09:11:57]req_shift_opened [09:11:57]FM_GetShiftState [09:11:57]SAM_PROTO_GetShiftState [09:11:57]wFMCommunicate request_size=4 [09:11:57]MH_SAM_APDU [09:11:57]CAPDU: 80 13 01 00 [09:11:57]Write to MH i2c: E2 08 00 44 34 80 13 01 00 00 00 00 00 F5 [09:11:57]Write i2c OK [09:11:57]MH_I2C_Read... [09:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:57]Read from MH i2c: E2 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 0E 00 [09:11:57]MH_I2C_Read... [09:11:57]Read from MH i2c: E2 0E 00 44 34 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FE [09:11:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:11:57]wFMCommunicate OK [09:11:57]SAM_PROTO_GetShiftState done [09:11:57]FM_GetShiftState done [09:11:57]req_shift_opened done [09:11:57]requested_item shift.open_date is exist - process it [09:11:57]req_shift_open_date [09:11:57]req_shift_open_date done [09:11:57]produce_requested_data done [09:11:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165926,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:11:57]process_action_free close_receipt [09:11:57]json_value_free [09:11:57]json_value_free done [09:11:57]process_json_proto returns [09:11:57]Send response to host [09:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165926,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:11:57]free response buf [09:11:57]execute_script done [09:11:57]execute_script returns [09:11:57]free content buf [09:11:57]Sock 5.Close socket [09:11:57]Sock 5.Thread stoped [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:48]accept exits with 6 [09:13:48]New connection [09:13:48]New thread 3066776932 created [09:13:48]Thread 3066920292 joined [09:13:48]Waiting for new connection... [09:13:48] Sock 6.Parse request [09:13:48]Sock 6.Check first char [09:13:48]Sock 6.First char is OK [09:13:48]request: POST /json_proto HTTP/1.0 [09:13:48]Method: POST [09:13:48]URL: /json_proto [09:13:48]Method is POST - this is cgi request [09:13:48]url: /json_proto [09:13:48]query_string will be loaded in cgi processing [09:13:48]execute_cgi json_proto POST (null) [09:13:48]execute_cgi path=json_proto method=POST [09:13:48]POST find Content-Length [09:13:48]Host: 172.17.53.195:8080 [09:13:48]Content-Length: 682 [09:13:48]Content-Type: application/json [09:13:48] [09:13:48]POST finish read [09:13:48]Found Content-Length = 682 [09:13:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.450, "sum" : 1769.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1769.00, "total" : 1769.00, "payments": [ { "type": 0, "sum" : 1769.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:48]execute_script... [09:13: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)220495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 26.450, "sum" : 1769.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1769.00, "total" : 1769.00, "payments": [ { "type": 0, "sum" : 1769.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:48]POST & json_proto [09:13:48]process_json_proto [09:13:48]json parsed OK: [09:13:48]protocol is kg_v1.0 [09:13:48]action value=close_receipt [09:13:48]process_action close_receipt [09:13:48]cmd_close_receipt [09:13:48]MH_GetDate [09:13:48]Write to MH i2c: F0 00 00 45 34 68 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: F0 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: F0 09 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: F0 09 00 45 34 00 5D 1B 16 67 21 48 4A 65 7E [09:13:48]GetLastDocTimeStamp 1729501931 [09:13:48]current date 1729502045 [09:13:48]FM_GetShiftState [09:13:48]SAM_PROTO_GetShiftState [09:13:48]wFMCommunicate request_size=4 [09:13:48]MH_SAM_APDU [09:13:48]CAPDU: 80 13 01 00 [09:13:48]Write to MH i2c: E2 08 00 46 34 80 13 01 00 00 00 00 00 F7 [09:13:48]Write i2c OK [09:13:48]MH_I2C_Read... [09:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:48]Read from MH i2c: E2 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 [09:13:48]MH_I2C_Read... [09:13:48]Read from MH i2c: E2 0E 00 46 34 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 00 [09:13:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:13:48]wFMCommunicate OK [09:13:48]SAM_PROTO_GetShiftState done [09:13:48]FM_GetShiftState done [09:13:48]opened in 1729470944 [09:13:48]opened+sec_in_day 1729557344 [09:13:48]quantity*price = 176950 [09:13:48]sum+1 = 176952 [09:13:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1769.00 Внесено: 1769.00 СДАЧА: 0.00 НСП 1% : 15.66 НДС 12% : 187.91 Наличными: 1769.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 38 21.10.2024 09:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165927 ФПД: 172380176152230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165927&fm=172380176152230&tin=02508201610067®Number=0000000000091764&sum=176900 [09:13:49]StoreToDocumentArchive [09:13:49]shift 535 fd 165927 [09:13:49]save to /storage/0535/doc_00165927 [09:13:49]save last doc name /storage/0535/doc_00165927 to /storage/kkm_last_doc_name [09:13:49]save OK [09:13:49]Clear old archive folders... [09:13:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:49]tlvbuf is 019EA210 [09:13:49]SAM_PROTO_ClearQueue [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 09 00 00 [09:13:49]Write to MH i2c: E2 08 00 53 34 80 09 00 00 00 00 00 00 F9 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 53 34 00 90 00 FB [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]SAM_PROTO_ClearQueue done [09:13:49]KKMCreateOFDPacket [09:13:49]OFDProtocolAddRootSTLVToBuf [09:13:49]FM_MakeSignedData [09:13:49]FM_MakeSignedData [09:13:49]SAM_PROTO_SignData [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 01 02 [09:13:49]Write to MH i2c: E2 08 00 54 34 80 0D 01 02 00 00 00 00 01 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 54 34 00 90 00 FC [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=255 [09:13:49]MH_SAM_APDU [09:13: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 52 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 37 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 49 00 00 00 00 07 04 06 00 04 B3 02 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 5D 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 88 02 00 35 04 06 00 9C [09:13:49]Write to MH i2c: E2 02 01 55 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 52 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 37 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 49 00 00 00 00 07 04 06 00 04 B3 02 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 5D 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 88 02 00 35 04 06 00 9C 00 00 BA [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 55 34 00 90 00 FD [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=10 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 02 02 05 C7 63 2A 76 A6 [09:13:49]Write to MH i2c: E2 0D 00 56 34 80 0D 02 02 05 00 C7 63 2A 76 A6 00 00 7E [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:49]Read from MH i2c: E2 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 [09:13:49]MH_I2C_Read... [09:13:49]Read from MH i2c: E2 03 00 56 34 00 90 00 FE [09:13:49]RAPDU: 90 00 [09:13:49]wFMCommunicate OK [09:13:49]wFMCommunicate request_size=4 [09:13:49]MH_SAM_APDU [09:13:49]CAPDU: 80 0D 03 02 [09:13:49]Write to MH i2c: E2 08 00 57 34 80 0D 03 02 00 00 00 00 06 [09:13:49]Write i2c OK [09:13:49]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0B 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 0B 00 57 34 00 04 30 C8 A0 FB 18 85 3F 90 00 7A [09:13:50]RAPDU: 04 30 C8 A0 FB 18 85 3F 90 00 [09:13:50]wFMCommunicate OK [09:13:50]SAM_PROTO_SignData done [09:13:50]FM_MakeSignedData done [09:13:50]CreateOFDProtocolMessage [09:13:50]wFMCommunicate request_size=4 [09:13:50]MH_SAM_APDU [09:13:50]CAPDU: 80 11 00 00 [09:13:50]Write to MH i2c: E2 08 00 58 34 80 11 00 00 00 00 00 00 06 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:50]Read from MH i2c: E2 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 17 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: E2 17 00 58 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5E [09:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:13:50]wFMCommunicate OK [09:13:50]CreateOFDProtocolMessage done [09:13:50]OFDSenderStorePacket 165927 [09:13:50]StoreOFDPacket docnum=165927 [09:13:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9A 3A 07 01 BE 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 37 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 49 00 00 00 00 07 04 06 00 04 B3 02 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 5D 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 88 02 00 35 04 06 00 9C C7 63 2A 76 A6 04 30 C8 A0 FB 18 85 3F [09:13:50]CheckFolder [09:13:50]dirname=/storage/ofd_packets [09:13:50]CheckFolder done [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00165927 [09:13:50]NVStorageSaveData ofd_packets/00165927 [09:13:50]File name is /storage/ofd_packets/00165927 [09:13:50]Write 301 bytes [09:13:50]NVStorageSaveData done [09:13:50]OFDSenderStorePacket done [09:13:50]KKMCreateOFDPacket done [09:13:50]NVStorageSaveData kkm_last_timestamp [09:13:50]File name is /storage/kkm_last_timestamp [09:13:50]Write 4 bytes [09:13:50]NVStorageSaveData done [09:13:50]ExternCall_PrintAddStr [09:13:50]wPrintStart [09:13:50]Write to MH i2c: 01 00 00 59 34 8D [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 59 34 00 00 00 00 00 FF 0F A2 [09:13:50]RasterBufferAndPrint [09:13:50]line Счет N : (1)220495 [09:13:50]line ИНН: 02508201610067 [09:13:50]line Контрольно-Кассовый Чек [09:13:50]line ПРОДАЖА [09:13:50]line ТРК (МРК, ГНК) : 33 [09:13:50]line Товар: 2710124130 [09:13:50]line Аи-92-К-5 [09:13:50]line 26.450 * 66.90 [09:13:50]line = 1769.51 [09:13:50]line НДС 12% НСП 1% [09:13:50]line > о реализуемом товаре [09:13:50]line ОКРУГЛЕНИЕ: -0.51 [09:13:50]line ИТОГО: 1769.00 [09:13:50]line Внесено: 1769.00 [09:13:50]line СДАЧА: 0.00 [09:13:50]line НСП 1% : 15.66 [09:13:50]line НДС 12% : 187.91 [09:13:50]line Наличными: 1769.00 [09:13:50]line Безнал.: 0.00 [09:13:50]line Место: АЗС № 161 "Партнер Нефть" [09:13:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:13:50]line СНО: Общий режим [09:13:50]line Чек 38 21.10.2024 09:14 [09:13:50]line Смена: 535 ФФД: 1.0 [09:13:50]line ЗНМ: 0300000104 [09:13:50]line РНМ: 0000000000091764 [09:13:50]line Версия ККМ: 001 [09:13:50]line ФМ: 0000000000871759 [09:13:50]line ФД: 165927 [09:13:50]line ФПД: 172380176152230 [09:13:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091405&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165927&fm=172380176152230&tin=02508201610067®Number=0000000000091764&sum=176900 [09:13:50]OFD Sender: Processing packet 165927 [packets to send 48, broken 47] [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00165927 [09:13:50]OFD Sender: To server: pG, [09:13:50]CommunicateWithHost lk.salyk.kg:30040 [09:13:50]ConnectInit lk.salyk.kg [09:13:50]written 0, free lines is 4095 [09:13:50]Connected sock=7 [09:13:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9A 3A 07 01 BE 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 67 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 37 B3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 B3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1E 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 49 00 00 00 00 07 04 06 00 04 B3 02 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 5D 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 88 02 00 35 04 06 00 9C C7 63 2A 76 A6 04 30 C8 A0 FB 18 85 3F [09:13:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 62 6E 47 00 2C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 88 02 00 F4 03 04 00 CC C1 15 67 B6 04 01 00 00 36 11 C5 AF 26 D7 05 24 [09:13:50]CommunicateWithHost err = 0 [09:13:50]CheckOFDResponse [09:13:50]1017 (14) - 77093643461234 [09:13:50]1041 (16) - 0000000000871759 [09:13:50]1040 (4) - 165927 [09:13:50]1012 (4) - 21.10.2024 02:51 [09:13:50]1206 (1) - 0 [09:13:50]OFD Sender: Remove packet 165927 [09:13:50]ProducePacketName [09:13:50]name=ofd_packets/00165927 [09:13:50]NVStorageDeleteData [09:13:50]Write to MH i2c: 01 00 00 84 34 B8 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: 01 07 00 84 34 00 00 00 00 00 B6 0C 81 [09:13:50]RasterBufferAndPrint [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]line [09:13:50]written 0, free lines is 3260 [09:13:50]MH_Cut [09:13:50]Write to MH i2c: D1 01 00 8B 34 01 91 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 01 00 [09:13:50]MH_I2C_Read... [09:13:50]Read from MH i2c: D1 01 00 8B 34 00 90 [09:13:50]Write to MH i2c: 01 00 00 8C 34 C0 [09:13:50]Write i2c OK [09:13:50]MH_I2C_Read... [09:13:51]OFD Sender: No OFD packet to send [09:13:51]*** Cut start [09:13:51]*** Partial cut [09:13:51]*** CUTSNS_PIN = 1 [09:13:51]*** CUTSNS_PIN = 0 [09:13:52]*** Brake cut motor [09:13:52]Read from MH i2c: 01 [09:13:52]MH_I2C_Read... [09:13:52]*** Stop cut motor [09:13:52]*** Cut end [09:13:52]Read from MH i2c: 01 07 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: 01 07 00 8C 34 00 00 00 00 00 FF 0F D5 [09:13:52]process_action close_receipt done [09:13:52]requested_data is exist [09:13:52]produce_requested_data [09:13:52]requested_item fm.sn is exist - process it [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 11 00 00 [09:13:52]Write to MH i2c: E2 08 00 8D 34 80 11 00 00 00 00 00 00 3B [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 17 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 17 00 8D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 93 [09:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:13:52]wFMCommunicate OK [09:13:52]requested_item fd.num is exist - process it [09:13:52]SAM_PROTO_GetFieldsCounters [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 13 00 00 [09:13:52]Write to MH i2c: E2 08 00 8E 34 80 13 00 00 00 00 00 00 3E [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:52]Read from MH i2c: E2 62 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 62 00 8E 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [09:13:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_GetFieldsCounters done [09:13:52]requested_item shift.num is exist - process it [09:13:52]requested_item shift.opened is exist - process it [09:13:52]req_shift_opened [09:13:52]FM_GetShiftState [09:13:52]SAM_PROTO_GetShiftState [09:13:52]wFMCommunicate request_size=4 [09:13:52]MH_SAM_APDU [09:13:52]CAPDU: 80 13 01 00 [09:13:52]Write to MH i2c: E2 08 00 8F 34 80 13 01 00 00 00 00 00 40 [09:13:52]Write i2c OK [09:13:52]MH_I2C_Read... [09:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:52]Read from MH i2c: E2 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0E 00 [09:13:52]MH_I2C_Read... [09:13:52]Read from MH i2c: E2 0E 00 8F 34 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 49 [09:13:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:13:52]wFMCommunicate OK [09:13:52]SAM_PROTO_GetShiftState done [09:13:52]FM_GetShiftState done [09:13:52]req_shift_opened done [09:13:52]requested_item shift.open_date is exist - process it [09:13:52]req_shift_open_date [09:13:52]req_shift_open_date done [09:13:52]produce_requested_data done [09:13:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165927,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:13:52]process_action_free close_receipt [09:13:52]json_value_free [09:13:52]json_value_free done [09:13:52]process_json_proto returns [09:13:52]Send response to host [09:13:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165927,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:13:52]free response buf [09:13:52]execute_script done [09:13:52]execute_script returns [09:13:52]free content buf [09:13:52]Sock 6.Close socket [09:13:52]Sock 6.Thread stoped [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:42]accept exits with 5 [09:15:42]New connection [09:15:42]New thread 3066920292 created [09:15:42]Thread 3066776932 joined [09:15:42]Waiting for new connection... [09:15:42] Sock 5.Parse request [09:15:42]Sock 5.Check first char [09:15:42]Sock 5.First char is OK [09:15:42]request: POST /json_proto HTTP/1.0 [09:15:42]Method: POST [09:15:42]URL: /json_proto [09:15:42]Method is POST - this is cgi request [09:15:42]url: /json_proto [09:15:42]query_string will be loaded in cgi processing [09:15:42]execute_cgi json_proto POST (null) [09:15:42]execute_cgi path=json_proto method=POST [09:15:42]POST find Content-Length [09:15:42]Host: 172.17.53.195:8080 [09:15:42]Content-Length: 677 [09:15:42]Content-Type: application/json [09:15:42] [09:15:42]POST finish read [09:15:42]Found Content-Length = 677 [09:15:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:42]execute_script... [09: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)220496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:42]POST & json_proto [09:15:42]process_json_proto [09:15:42]json parsed OK: [09:15:42]protocol is kg_v1.0 [09:15:42]action value=close_receipt [09:15:42]process_action close_receipt [09:15:42]cmd_close_receipt [09:15:42]MH_GetDate [09:15:42]Write to MH i2c: F0 00 00 90 34 B3 [09:15:42]Write i2c OK [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: F0 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: F0 09 00 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: F0 09 00 90 34 00 D0 1B 16 67 21 48 4A 65 3C [09:15:42]GetLastDocTimeStamp 1729502045 [09:15:42]current date 1729502160 [09:15:42]FM_GetShiftState [09:15:42]SAM_PROTO_GetShiftState [09:15:42]wFMCommunicate request_size=4 [09:15:42]MH_SAM_APDU [09:15:42]CAPDU: 80 13 01 00 [09:15:42]Write to MH i2c: E2 08 00 91 34 80 13 01 00 00 00 00 00 42 [09:15:42]Write i2c OK [09:15:42]MH_I2C_Read... [09:15:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:42]Read from MH i2c: E2 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 0E 00 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 0E 00 91 34 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4B [09:15:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:15:42]wFMCommunicate OK [09:15:42]SAM_PROTO_GetShiftState done [09:15:42]FM_GetShiftState done [09:15:42]opened in 1729470944 [09:15:42]opened+sec_in_day 1729557344 [09:15:42]quantity*price = 29971 [09:15:42]sum+1 = 29972 [09:15:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 39 21.10.2024 09:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165928 ФПД: 160203391454398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165928&fm=160203391454398&tin=02508201610067®Number=0000000000091764&sum=29900 [09:15:43]StoreToDocumentArchive [09:15:43]shift 535 fd 165928 [09:15:43]save to /storage/0535/doc_00165928 [09:15:43]save last doc name /storage/0535/doc_00165928 to /storage/kkm_last_doc_name [09:15:43]save OK [09:15:43]Clear old archive folders... [09:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:44]tlvbuf is 01892010 [09:15:44]SAM_PROTO_ClearQueue [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 09 00 00 [09:15:44]Write to MH i2c: E2 08 00 9E 34 80 09 00 00 00 00 00 00 44 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 9E 34 00 90 00 46 [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]SAM_PROTO_ClearQueue done [09:15:44]KKMCreateOFDPacket [09:15:44]OFDProtocolAddRootSTLVToBuf [09:15:44]FM_MakeSignedData [09:15:44]FM_MakeSignedData [09:15:44]SAM_PROTO_SignData [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 01 02 [09:15:44]Write to MH i2c: E2 08 00 9F 34 80 0D 01 02 00 00 00 00 4C [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 9F 34 00 90 00 47 [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=255 [09:15:44]MH_SAM_APDU [09:15: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 D0 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 88 02 00 35 04 06 00 91 [09:15:44]Write to MH i2c: E2 02 01 A0 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 D0 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 88 02 00 35 04 06 00 91 00 00 A2 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 A0 34 00 90 00 48 [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=10 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 02 02 05 B4 42 3D 4C BE [09:15:44]Write to MH i2c: E2 0D 00 A1 34 80 0D 02 02 05 00 B4 42 3D 4C BE 00 00 96 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 A1 34 00 90 00 49 [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 03 02 [09:15:44]Write to MH i2c: E2 08 00 A2 34 80 0D 03 02 00 00 00 00 51 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 0B 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 0B 00 A2 34 00 9C 17 AF 9F 6D C7 7C FD 90 00 00 [09:15:44]RAPDU: 9C 17 AF 9F 6D C7 7C FD 90 00 [09:15:44]wFMCommunicate OK [09:15:44]SAM_PROTO_SignData done [09:15:44]FM_MakeSignedData done [09:15:44]CreateOFDProtocolMessage [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 11 00 00 [09:15:44]Write to MH i2c: E2 08 00 A3 34 80 11 00 00 00 00 00 00 51 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 17 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 17 00 A3 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [09:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:15:44]wFMCommunicate OK [09:15:44]CreateOFDProtocolMessage done [09:15:44]OFDSenderStorePacket 165928 [09:15:44]StoreOFDPacket docnum=165928 [09:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 BB 07 01 3C 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 D0 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 88 02 00 35 04 06 00 91 B4 42 3D 4C BE 9C 17 AF 9F 6D C7 7C FD [09:15:44]CheckFolder [09:15:44]dirname=/storage/ofd_packets [09:15:44]CheckFolder done [09:15:44]ProducePacketName [09:15:44]name=ofd_packets/00165928 [09:15:44]NVStorageSaveData ofd_packets/00165928 [09:15:44]File name is /storage/ofd_packets/00165928 [09:15:44]Write 301 bytes [09:15:44]NVStorageSaveData done [09:15:44]OFDSenderStorePacket done [09:15:44]KKMCreateOFDPacket done [09:15:44]NVStorageSaveData kkm_last_timestamp [09:15:44]File name is /storage/kkm_last_timestamp [09:15:44]Write 4 bytes [09:15:44]NVStorageSaveData done [09:15:44]ExternCall_PrintAddStr [09:15:44]wPrintStart [09:15:44]Write to MH i2c: 01 00 00 A4 34 D8 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: 01 07 00 A4 34 00 00 00 00 00 FF 0F ED [09:15:44]RasterBufferAndPrint [09:15:44]line Счет N : (1)220496 [09:15:44]line ИНН: 02508201610067 [09:15:44]line Контрольно-Кассовый Чек [09:15:44]line ПРОДАЖА [09:15:44]line ТРК (МРК, ГНК) : 13 [09:15:44]line Товар: 2710124130 [09:15:44]line Аи-92-К-5 [09:15:44]line 4.480 * 66.90 [09:15:44]line = 299.71 [09:15:44]line НДС 12% НСП 1% [09:15:44]line > о реализуемом товаре [09:15:44]line ОКРУГЛЕНИЕ: -0.71 [09:15:44]line ИТОГО: 299.00 [09:15:44]line Внесено: 300.00 [09:15:44]line СДАЧА: 1.00 [09:15:44]line НСП 1% : 2.65 [09:15:44]line НДС 12% : 31.83 [09:15:44]line Наличными: 299.00 [09:15:44]line Безнал.: 0.00 [09:15:44]line Место: АЗС № 161 "Партнер Нефть" [09:15:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:15:44]line СНО: Общий режим [09:15:44]line Чек 39 21.10.2024 09:16 [09:15:44]line Смена: 535 ФФД: 1.0 [09:15:44]line ЗНМ: 0300000104 [09:15:44]line РНМ: 0000000000091764 [09:15:44]line Версия ККМ: 001 [09:15:44]line ФМ: 0000000000871759 [09:15:44]line ФД: 165928 [09:15:44]line ФПД: 160203391454398 [09:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165928&fm=160203391454398&tin=02508201610067®Number=0000000000091764&sum=29900 [09:15:44]OFD Sender: Processing packet 165928 [packets to send 48, broken 47] [09:15:44]ProducePacketName [09:15:44]name=ofd_packets/00165928 [09:15:44]OFD Sender: To server: pG, [09:15:44]CommunicateWithHost lk.salyk.kg:30040 [09:15:44]ConnectInit lk.salyk.kg [09:15:44]written 0, free lines is 4095 [09:15:45]Connected sock=7 [09:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 BB 07 01 3C 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 D0 1B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 88 02 00 35 04 06 00 91 B4 42 3D 4C BE 9C 17 AF 9F 6D C7 7C FD [09:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 D3 47 00 D8 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 88 02 00 F4 03 04 00 3F C2 15 67 B6 04 01 00 00 E1 C8 E8 AC 89 E5 6B E9 [09:15:45]CommunicateWithHost err = 0 [09:15:45]CheckOFDResponse [09:15:45]1017 (14) - 77093643461234 [09:15:45]1041 (16) - 0000000000871759 [09:15:45]1040 (4) - 165928 [09:15:45]1012 (4) - 21.10.2024 02:53 [09:15:45]1206 (1) - 0 [09:15:45]OFD Sender: Remove packet 165928 [09:15:45]ProducePacketName [09:15:45]name=ofd_packets/00165928 [09:15:45]NVStorageDeleteData [09:15:45]Write to MH i2c: 01 00 00 CF 34 03 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 CF 34 00 00 00 00 00 C5 0C DB [09:15:45]RasterBufferAndPrint [09:15:45]line [09:15:45]line [09:15:45]line [09:15:45]line [09:15:45]line [09:15:45]written 0, free lines is 3275 [09:15:45]MH_Cut [09:15:45]Write to MH i2c: D1 01 00 D6 34 01 DC [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: D1 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: D1 01 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: D1 01 00 D6 34 00 DB [09:15:45]Write to MH i2c: 01 00 00 D7 34 0B [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]OFD Sender: No OFD packet to send [09:15:46]*** Cut start [09:15:46]*** Partial cut [09:15:46]*** CUTSNS_PIN = 1 [09:15:46]*** CUTSNS_PIN = 0 [09:15:46]*** Brake cut motor [09:15:46]Read from MH i2c: 01 [09:15:46]MH_I2C_Read... [09:15:46]*** Stop cut motor [09:15:46]*** Cut end [09:15:46]Read from MH i2c: 01 07 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: 01 07 00 D7 34 00 00 00 00 00 FF 0F 20 [09:15:46]process_action close_receipt done [09:15:46]requested_data is exist [09:15:46]produce_requested_data [09:15:46]requested_item fm.sn is exist - process it [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 11 00 00 [09:15:46]Write to MH i2c: E2 08 00 D8 34 80 11 00 00 00 00 00 00 86 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 17 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 17 00 D8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [09:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:15:46]wFMCommunicate OK [09:15:46]requested_item fd.num is exist - process it [09:15:46]SAM_PROTO_GetFieldsCounters [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 13 00 00 [09:15:46]Write to MH i2c: E2 08 00 D9 34 80 13 00 00 00 00 00 00 89 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 62 00 [09:15:46]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 62 00 D9 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [09:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_GetFieldsCounters done [09:15:47]requested_item shift.num is exist - process it [09:15:47]requested_item shift.opened is exist - process it [09:15:47]req_shift_opened [09:15:47]FM_GetShiftState [09:15:47]SAM_PROTO_GetShiftState [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 13 01 00 [09:15:47]Write to MH i2c: E2 08 00 DA 34 80 13 01 00 00 00 00 00 8B [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 0E 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 0E 00 DA 34 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 94 [09:15:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_GetShiftState done [09:15:47]FM_GetShiftState done [09:15:47]req_shift_opened done [09:15:47]requested_item shift.open_date is exist - process it [09:15:47]req_shift_open_date [09:15:47]req_shift_open_date done [09:15:47]produce_requested_data done [09:15:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165928,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:15:47]process_action_free close_receipt [09:15:47]json_value_free [09:15:47]json_value_free done [09:15:47]process_json_proto returns [09:15:47]Send response to host [09:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165928,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:15:47]free response buf [09:15:47]execute_script done [09:15:47]execute_script returns [09:15:47]free content buf [09:15:47]Sock 5.Close socket [09:15:47]Sock 5.Thread stoped [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:09]accept exits with 6 [09:17:09]New connection [09:17:09]New thread 3066776932 created [09:17:09]Thread 3066920292 joined [09:17:09]Waiting for new connection... [09:17:09] Sock 6.Parse request [09:17:09]Sock 6.Check first char [09:17:09]Sock 6.First char is OK [09:17:09]request: POST /json_proto HTTP/1.0 [09:17:09]Method: POST [09:17:09]URL: /json_proto [09:17:09]Method is POST - this is cgi request [09:17:09]url: /json_proto [09:17:09]query_string will be loaded in cgi processing [09:17:09]execute_cgi json_proto POST (null) [09:17:09]execute_cgi path=json_proto method=POST [09:17:09]POST find Content-Length [09:17:09]Host: 172.17.53.195:8080 [09:17:09]Content-Length: 678 [09:17:09]Content-Type: application/json [09:17:09] [09:17:09]POST finish read [09:17:09]Found Content-Length = 678 [09:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:09]execute_script... [09:17: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)220497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:09]POST & json_proto [09:17:09]process_json_proto [09:17:09]json parsed OK: [09:17:09]protocol is kg_v1.0 [09:17:09]action value=close_receipt [09:17:09]process_action close_receipt [09:17:09]cmd_close_receipt [09:17:09]MH_GetDate [09:17:09]Write to MH i2c: F0 00 00 DB 34 FE [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: F0 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: F0 09 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: F0 09 00 DB 34 00 26 1C 16 67 21 48 4A 65 DE [09:17:09]GetLastDocTimeStamp 1729502160 [09:17:09]current date 1729502246 [09:17:09]FM_GetShiftState [09:17:09]SAM_PROTO_GetShiftState [09:17:09]wFMCommunicate request_size=4 [09:17:09]MH_SAM_APDU [09:17:09]CAPDU: 80 13 01 00 [09:17:09]Write to MH i2c: E2 08 00 DC 34 80 13 01 00 00 00 00 00 8D [09:17:09]Write i2c OK [09:17:09]MH_I2C_Read... [09:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:09]Read from MH i2c: E2 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 0E 00 [09:17:09]MH_I2C_Read... [09:17:09]Read from MH i2c: E2 0E 00 DC 34 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 96 [09:17:09]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:17:09]wFMCommunicate OK [09:17:09]SAM_PROTO_GetShiftState done [09:17:09]FM_GetShiftState done [09:17:09]opened in 1729470944 [09:17:09]opened+sec_in_day 1729557344 [09:17:09]quantity*price = 70044 [09:17:09]sum+1 = 70045 [09:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 40 21.10.2024 09:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165929 ФПД: 10560941738266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165929&fm=10560941738266&tin=02508201610067®Number=0000000000091764&sum=70000 [09:17:10]StoreToDocumentArchive [09:17:10]shift 535 fd 165929 [09:17:10]save to /storage/0535/doc_00165929 [09:17:10]save last doc name /storage/0535/doc_00165929 to /storage/kkm_last_doc_name [09:17:10]save OK [09:17:10]Clear old archive folders... [09:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:10]tlvbuf is 018B0500 [09:17:10]SAM_PROTO_ClearQueue [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 09 00 00 [09:17:10]Write to MH i2c: E2 08 00 E9 34 80 09 00 00 00 00 00 00 8F [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 E9 34 00 90 00 91 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]SAM_PROTO_ClearQueue done [09:17:10]KKMCreateOFDPacket [09:17:10]OFDProtocolAddRootSTLVToBuf [09:17:10]FM_MakeSignedData [09:17:10]FM_MakeSignedData [09:17:10]SAM_PROTO_SignData [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 01 02 [09:17:10]Write to MH i2c: E2 08 00 EA 34 80 0D 01 02 00 00 00 00 97 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 EA 34 00 90 00 92 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=255 [09:17:10]MH_SAM_APDU [09:17: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 26 1C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 88 02 00 35 04 06 00 09 [09:17:10]Write to MH i2c: E2 02 01 EB 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 26 1C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 88 02 00 35 04 06 00 09 00 00 F9 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 EB 34 00 90 00 93 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=10 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 02 02 05 9A E9 2E 49 1A [09:17:10]Write to MH i2c: E2 0D 00 EC 34 80 0D 02 02 05 00 9A E9 2E 49 1A 00 00 B8 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 03 00 EC 34 00 90 00 94 [09:17:10]RAPDU: 90 00 [09:17:10]wFMCommunicate OK [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 0D 03 02 [09:17:10]Write to MH i2c: E2 08 00 ED 34 80 0D 03 02 00 00 00 00 9C [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 0B 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 0B 00 ED 34 00 9F 99 9D 76 E4 40 30 C1 90 00 FD [09:17:10]RAPDU: 9F 99 9D 76 E4 40 30 C1 90 00 [09:17:10]wFMCommunicate OK [09:17:10]SAM_PROTO_SignData done [09:17:10]FM_MakeSignedData done [09:17:10]CreateOFDProtocolMessage [09:17:10]wFMCommunicate request_size=4 [09:17:10]MH_SAM_APDU [09:17:10]CAPDU: 80 11 00 00 [09:17:10]Write to MH i2c: E2 08 00 EE 34 80 11 00 00 00 00 00 00 9C [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:10]Read from MH i2c: E2 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 17 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: E2 17 00 EE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [09:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:17:10]wFMCommunicate OK [09:17:10]CreateOFDProtocolMessage done [09:17:10]OFDSenderStorePacket 165929 [09:17:10]StoreOFDPacket docnum=165929 [09:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D D9 07 01 A9 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 26 1C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 88 02 00 35 04 06 00 09 9A E9 2E 49 1A 9F 99 9D 76 E4 40 30 C1 [09:17:10]CheckFolder [09:17:10]dirname=/storage/ofd_packets [09:17:10]CheckFolder done [09:17:10]ProducePacketName [09:17:10]name=ofd_packets/00165929 [09:17:10]NVStorageSaveData ofd_packets/00165929 [09:17:10]File name is /storage/ofd_packets/00165929 [09:17:10]Write 301 bytes [09:17:10]NVStorageSaveData done [09:17:10]OFDSenderStorePacket done [09:17:10]KKMCreateOFDPacket done [09:17:10]NVStorageSaveData kkm_last_timestamp [09:17:10]File name is /storage/kkm_last_timestamp [09:17:10]Write 4 bytes [09:17:10]NVStorageSaveData done [09:17:10]ExternCall_PrintAddStr [09:17:10]wPrintStart [09:17:10]Write to MH i2c: 01 00 00 EF 34 23 [09:17:10]Write i2c OK [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 [09:17:10]MH_I2C_Read... [09:17:10]Read from MH i2c: 01 07 00 EF 34 00 00 00 00 00 FF 0F 38 [09:17:10]RasterBufferAndPrint [09:17:10]line Счет N : (1)220497 [09:17:10]line ИНН: 02508201610067 [09:17:10]line Контрольно-Кассовый Чек [09:17:10]line ПРОДАЖА [09:17:10]line ТРК (МРК, ГНК) : 43 [09:17:10]line Товар: 2710124130 [09:17:10]line Аи-92-К-5 [09:17:10]line 10.470 * 66.90 [09:17:10]line = 700.44 [09:17:10]line НДС 12% НСП 1% [09:17:10]line > о реализуемом товаре [09:17:10]line ОКРУГЛЕНИЕ: -0.44 [09:17:10]line ИТОГО: 700.00 [09:17:10]line Внесено: 700.00 [09:17:10]line СДАЧА: 0.00 [09:17:10]line НСП 1% : 6.20 [09:17:10]line НДС 12% : 74.38 [09:17:10]line Наличными: 700.00 [09:17:10]line Безнал.: 0.00 [09:17:10]line Место: АЗС № 161 "Партнер Нефть" [09:17:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:17:10]line СНО: Общий режим [09:17:10]line Чек 40 21.10.2024 09:17 [09:17:10]line Смена: 535 ФФД: 1.0 [09:17:10]line ЗНМ: 0300000104 [09:17:10]line РНМ: 0000000000091764 [09:17:10]line Версия ККМ: 001 [09:17:10]line ФМ: 0000000000871759 [09:17:10]line ФД: 165929 [09:17:10]line ФПД: 10560941738266 [09:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T091726&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165929&fm=10560941738266&tin=02508201610067®Number=0000000000091764&sum=70000 [09:17:11]OFD Sender: Processing packet 165929 [packets to send 48, broken 47] [09:17:11]ProducePacketName [09:17:11]name=ofd_packets/00165929 [09:17:11]OFD Sender: To server: pG, [09:17:11]CommunicateWithHost lk.salyk.kg:30040 [09:17:11]ConnectInit lk.salyk.kg [09:17:11]written 0, free lines is 4095 [09:17:11]Connected sock=7 [09:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D D9 07 01 A9 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 26 1C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 88 02 00 35 04 06 00 09 9A E9 2E 49 1A 9F 99 9D 76 E4 40 30 C1 [09:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EA A7 47 00 EA 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 88 02 00 F4 03 04 00 95 C2 15 67 B6 04 01 00 00 21 CE 98 03 4E 87 E3 B2 [09:17:11]CommunicateWithHost err = 0 [09:17:11]CheckOFDResponse [09:17:11]1017 (14) - 77093643461234 [09:17:11]1041 (16) - 0000000000871759 [09:17:11]1040 (4) - 165929 [09:17:11]1012 (4) - 21.10.2024 02:55 [09:17:11]1206 (1) - 0 [09:17:11]OFD Sender: Remove packet 165929 [09:17:11]ProducePacketName [09:17:11]name=ofd_packets/00165929 [09:17:11]NVStorageDeleteData [09:17:11]Write to MH i2c: 01 00 00 1A 35 4F [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 07 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: 01 07 00 1A 35 00 00 00 00 00 B5 0C 17 [09:17:11]RasterBufferAndPrint [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]line [09:17:11]written 0, free lines is 3259 [09:17:11]MH_Cut [09:17:11]Write to MH i2c: D1 01 00 21 35 01 28 [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 01 00 [09:17:11]MH_I2C_Read... [09:17:11]Read from MH i2c: D1 01 00 21 35 00 27 [09:17:11]Write to MH i2c: 01 00 00 22 35 57 [09:17:11]Write i2c OK [09:17:11]MH_I2C_Read... [09:17:11]OFD Sender: No OFD packet to send [09:17:12]*** Cut start [09:17:12]*** Partial cut [09:17:12]*** CUTSNS_PIN = 1 [09:17:12]*** CUTSNS_PIN = 0 [09:17:12]*** Brake cut motor [09:17:13]Read from MH i2c: 01 [09:17:13]MH_I2C_Read... [09:17:13]*** Stop cut motor [09:17:13]*** Cut end [09:17:13]Read from MH i2c: 01 07 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: 01 07 00 22 35 00 00 00 00 00 FF 0F 6C [09:17:13]process_action close_receipt done [09:17:13]requested_data is exist [09:17:13]produce_requested_data [09:17:13]requested_item fm.sn is exist - process it [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 11 00 00 [09:17:13]Write to MH i2c: E2 08 00 23 35 80 11 00 00 00 00 00 00 D2 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 17 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 17 00 23 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2A [09:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:17:13]wFMCommunicate OK [09:17:13]requested_item fd.num is exist - process it [09:17:13]SAM_PROTO_GetFieldsCounters [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 13 00 00 [09:17:13]Write to MH i2c: E2 08 00 24 35 80 13 00 00 00 00 00 00 D5 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 62 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 62 00 24 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [09:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:13]wFMCommunicate OK [09:17:13]SAM_PROTO_GetFieldsCounters done [09:17:13]requested_item shift.num is exist - process it [09:17:13]requested_item shift.opened is exist - process it [09:17:13]req_shift_opened [09:17:13]FM_GetShiftState [09:17:13]SAM_PROTO_GetShiftState [09:17:13]wFMCommunicate request_size=4 [09:17:13]MH_SAM_APDU [09:17:13]CAPDU: 80 13 01 00 [09:17:13]Write to MH i2c: E2 08 00 25 35 80 13 01 00 00 00 00 00 D7 [09:17:13]Write i2c OK [09:17:13]MH_I2C_Read... [09:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:13]Read from MH i2c: E2 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 0E 00 [09:17:13]MH_I2C_Read... [09:17:13]Read from MH i2c: E2 0E 00 25 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E0 [09:17:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:17:13]wFMCommunicate OK [09:17:13]SAM_PROTO_GetShiftState done [09:17:13]FM_GetShiftState done [09:17:13]req_shift_opened done [09:17:13]requested_item shift.open_date is exist - process it [09:17:13]req_shift_open_date [09:17:13]req_shift_open_date done [09:17:13]produce_requested_data done [09:17:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165929,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:17:13]process_action_free close_receipt [09:17:13]json_value_free [09:17:13]json_value_free done [09:17:13]process_json_proto returns [09:17:13]Send response to host [09:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165929,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:17:13]free response buf [09:17:13]execute_script done [09:17:13]execute_script returns [09:17:13]free content buf [09:17:13]Sock 6.Close socket [09:17:13]Sock 6.Thread stoped [09:17:16]OFD Sender: No OFD packet to send [09:17:22]OFD Sender: No OFD packet to send [09:17:27]OFD Sender: No OFD packet to send [09:17:32]OFD Sender: No OFD packet to send [09:17:37]OFD Sender: No OFD packet to send [09:17:42]OFD Sender: No OFD packet to send [09:17:47]OFD Sender: No OFD packet to send [09:17:52]OFD Sender: No OFD packet to send [09:17:57]OFD Sender: No OFD packet to send [09:18:02]OFD Sender: No OFD packet to send [09:18:07]OFD Sender: No OFD packet to send [09:18:12]OFD Sender: No OFD packet to send [09:18:17]OFD Sender: No OFD packet to send [09:18:22]OFD Sender: No OFD packet to send [09:18:27]OFD Sender: No OFD packet to send [09:18:32]OFD Sender: No OFD packet to send [09:18:37]OFD Sender: No OFD packet to send [09:18:42]OFD Sender: No OFD packet to send [09:18:47]OFD Sender: No OFD packet to send [09:18:52]OFD Sender: No OFD packet to send [09:18:57]OFD Sender: No OFD packet to send [09:19:02]OFD Sender: No OFD packet to send [09:19:07]OFD Sender: No OFD packet to send [09:19:12]OFD Sender: No OFD packet to send [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]OFD Sender: No OFD packet to send [09:21:57]OFD Sender: No OFD packet to send [09:22:02]OFD Sender: No OFD packet to send [09:22:07]OFD Sender: No OFD packet to send [09:22:12]OFD Sender: No OFD packet to send [09:22:17]OFD Sender: No OFD packet to send [09:22:22]OFD Sender: No OFD packet to send [09:22:27]OFD Sender: No OFD packet to send [09:22:32]OFD Sender: No OFD packet to send [09:22:37]OFD Sender: No OFD packet to send [09:22:42]OFD Sender: No OFD packet to send [09:22:47]OFD Sender: No OFD packet to send [09:22:52]OFD Sender: No OFD packet to send [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:41]accept exits with 5 [09:23:41]New connection [09:23:41]New thread 3066920292 created [09:23:41]Thread 3066776932 joined [09:23:41]Waiting for new connection... [09:23:41] Sock 5.Parse request [09:23:41]Sock 5.Check first char [09:23:41]Sock 5.First char is OK [09:23:41]request: POST /json_proto HTTP/1.0 [09:23:41]Method: POST [09:23:41]URL: /json_proto [09:23:41]Method is POST - this is cgi request [09:23:41]url: /json_proto [09:23:41]query_string will be loaded in cgi processing [09:23:41]execute_cgi json_proto POST (null) [09:23:41]execute_cgi path=json_proto method=POST [09:23:41]POST find Content-Length [09:23:41]Host: 172.17.53.195:8080 [09:23:41]Content-Length: 677 [09:23:41]Content-Type: application/json [09:23:41] [09:23:41]POST finish read [09:23:41]Found Content-Length = 677 [09:23:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:41]execute_script... [09:23:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:41]POST & json_proto [09:23:41]process_json_proto [09:23:41]json parsed OK: [09:23:41]protocol is kg_v1.0 [09:23:41]action value=close_receipt [09:23:41]process_action close_receipt [09:23:41]cmd_close_receipt [09:23:41]MH_GetDate [09:23:41]Write to MH i2c: F0 00 00 26 35 4A [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: F0 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: F0 09 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: F0 09 00 26 35 00 AF 1D 16 67 21 48 4A 65 B4 [09:23:41]GetLastDocTimeStamp 1729502246 [09:23:41]current date 1729502639 [09:23:41]FM_GetShiftState [09:23:41]SAM_PROTO_GetShiftState [09:23:41]wFMCommunicate request_size=4 [09:23:41]MH_SAM_APDU [09:23:41]CAPDU: 80 13 01 00 [09:23:41]Write to MH i2c: E2 08 00 27 35 80 13 01 00 00 00 00 00 D9 [09:23:41]Write i2c OK [09:23:41]MH_I2C_Read... [09:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:41]Read from MH i2c: E2 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0E 00 [09:23:41]MH_I2C_Read... [09:23:41]Read from MH i2c: E2 0E 00 27 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E2 [09:23:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:23:41]wFMCommunicate OK [09:23:41]SAM_PROTO_GetShiftState done [09:23:41]FM_GetShiftState done [09:23:41]opened in 1729470944 [09:23:41]opened+sec_in_day 1729557344 [09:23:41]quantity*price = 20003 [09:23:41]sum+1 = 20004 [09:23:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 41 21.10.2024 09:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165930 ФПД: 100487258783377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165930&fm=100487258783377&tin=02508201610067®Number=0000000000091764&sum=20000 [09:23:42]StoreToDocumentArchive [09:23:42]shift 535 fd 165930 [09:23:42]save to /storage/0535/doc_00165930 [09:23:42]save last doc name /storage/0535/doc_00165930 to /storage/kkm_last_doc_name [09:23:42]save OK [09:23:42]Clear old archive folders... [09:23:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:42]tlvbuf is 0177ABC0 [09:23:42]SAM_PROTO_ClearQueue [09:23:42]wFMCommunicate request_size=4 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 09 00 00 [09:23:42]Write to MH i2c: E2 08 00 34 35 80 09 00 00 00 00 00 00 DB [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 34 35 00 90 00 DD [09:23:42]RAPDU: 90 00 [09:23:42]wFMCommunicate OK [09:23:42]SAM_PROTO_ClearQueue done [09:23:42]KKMCreateOFDPacket [09:23:42]OFDProtocolAddRootSTLVToBuf [09:23:42]FM_MakeSignedData [09:23:42]FM_MakeSignedData [09:23:42]SAM_PROTO_SignData [09:23:42]wFMCommunicate request_size=4 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 0D 01 02 [09:23:42]Write to MH i2c: E2 08 00 35 35 80 0D 01 02 00 00 00 00 E3 [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:42]Read from MH i2c: E2 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 [09:23:42]MH_I2C_Read... [09:23:42]Read from MH i2c: E2 03 00 35 35 00 90 00 DE [09:23:42]RAPDU: 90 00 [09:23:42]wFMCommunicate OK [09:23:42]wFMCommunicate request_size=255 [09:23:42]MH_SAM_APDU [09:23:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 AF 1D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 88 02 00 35 04 06 00 5B [09:23:42]Write to MH i2c: E2 02 01 36 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 AF 1D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 88 02 00 35 04 06 00 5B 00 00 D5 [09:23:42]Write i2c OK [09:23:42]MH_I2C_Read... [09:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 03 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 03 00 36 35 00 90 00 DF [09:23:43]RAPDU: 90 00 [09:23:43]wFMCommunicate OK [09:23:43]wFMCommunicate request_size=10 [09:23:43]MH_SAM_APDU [09:23:43]CAPDU: 80 0D 02 02 05 64 83 5D 3E 91 [09:23:43]Write to MH i2c: E2 0D 00 37 35 80 0D 02 02 05 00 64 83 5D 3E 91 00 00 03 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 03 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 03 00 37 35 00 90 00 E0 [09:23:43]RAPDU: 90 00 [09:23:43]wFMCommunicate OK [09:23:43]wFMCommunicate request_size=4 [09:23:43]MH_SAM_APDU [09:23:43]CAPDU: 80 0D 03 02 [09:23:43]Write to MH i2c: E2 08 00 38 35 80 0D 03 02 00 00 00 00 E8 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 0B 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 0B 00 38 35 00 87 15 2A 23 18 34 EE 6B 90 00 77 [09:23:43]RAPDU: 87 15 2A 23 18 34 EE 6B 90 00 [09:23:43]wFMCommunicate OK [09:23:43]SAM_PROTO_SignData done [09:23:43]FM_MakeSignedData done [09:23:43]CreateOFDProtocolMessage [09:23:43]wFMCommunicate request_size=4 [09:23:43]MH_SAM_APDU [09:23:43]CAPDU: 80 11 00 00 [09:23:43]Write to MH i2c: E2 08 00 39 35 80 11 00 00 00 00 00 00 E8 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:43]Read from MH i2c: E2 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 17 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: E2 17 00 39 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [09:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:23:43]wFMCommunicate OK [09:23:43]CreateOFDProtocolMessage done [09:23:43]OFDSenderStorePacket 165930 [09:23:43]StoreOFDPacket docnum=165930 [09:23:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 68 07 01 6F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 AF 1D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 88 02 00 35 04 06 00 5B 64 83 5D 3E 91 87 15 2A 23 18 34 EE 6B [09:23:43]CheckFolder [09:23:43]dirname=/storage/ofd_packets [09:23:43]CheckFolder done [09:23:43]ProducePacketName [09:23:43]name=ofd_packets/00165930 [09:23:43]NVStorageSaveData ofd_packets/00165930 [09:23:43]File name is /storage/ofd_packets/00165930 [09:23:43]Write 301 bytes [09:23:43]NVStorageSaveData done [09:23:43]OFDSenderStorePacket done [09:23:43]KKMCreateOFDPacket done [09:23:43]NVStorageSaveData kkm_last_timestamp [09:23:43]File name is /storage/kkm_last_timestamp [09:23:43]Write 4 bytes [09:23:43]NVStorageSaveData done [09:23:43]ExternCall_PrintAddStr [09:23:43]wPrintStart [09:23:43]Write to MH i2c: 01 00 00 3A 35 6F [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 3A 35 00 00 00 00 00 FF 0F 84 [09:23:43]RasterBufferAndPrint [09:23:43]line Счет N : (1)220498 [09:23:43]line ИНН: 02508201610067 [09:23:43]line Контрольно-Кассовый Чек [09:23:43]line ПРОДАЖА [09:23:43]line ТРК (МРК, ГНК) : 13 [09:23:43]line Товар: 2710124130 [09:23:43]line Аи-92-К-5 [09:23:43]line 2.990 * 66.90 [09:23:43]line = 200.03 [09:23:43]line НДС 12% НСП 1% [09:23:43]line > о реализуемом товаре [09:23:43]line ОКРУГЛЕНИЕ: -0.03 [09:23:43]line ИТОГО: 200.00 [09:23:43]line Внесено: 200.00 [09:23:43]line СДАЧА: 0.00 [09:23:43]line НСП 1% : 1.77 [09:23:43]line НДС 12% : 21.24 [09:23:43]line Наличными: 200.00 [09:23:43]line Безнал.: 0.00 [09:23:43]line Место: АЗС № 161 "Партнер Нефть" [09:23:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:23:43]line СНО: Общий режим [09:23:43]line Чек 41 21.10.2024 09:23 [09:23:43]line Смена: 535 ФФД: 1.0 [09:23:43]line ЗНМ: 0300000104 [09:23:43]line РНМ: 0000000000091764 [09:23:43]line Версия ККМ: 001 [09:23:43]line ФМ: 0000000000871759 [09:23:43]line ФД: 165930 [09:23:43]line ФПД: 100487258783377 [09:23:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T092359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165930&fm=100487258783377&tin=02508201610067®Number=0000000000091764&sum=20000 [09:23:43]OFD Sender: Processing packet 165930 [packets to send 48, broken 47] [09:23:43]ProducePacketName [09:23:43]name=ofd_packets/00165930 [09:23:43]OFD Sender: To server: pG, [09:23:43]CommunicateWithHost lk.salyk.kg:30040 [09:23:43]ConnectInit lk.salyk.kg [09:23:43]written 0, free lines is 4095 [09:23:43]Connected sock=7 [09:23:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 13 68 07 01 6F 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 AF 1D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 88 02 00 35 04 06 00 5B 64 83 5D 3E 91 87 15 2A 23 18 34 EE 6B [09:23:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 45 47 00 2C 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 88 02 00 F4 03 04 00 1D C4 15 67 B6 04 01 00 00 66 9B 56 BB 5F 9F 5D E5 [09:23:43]CommunicateWithHost err = 0 [09:23:43]CheckOFDResponse [09:23:43]1017 (14) - 77093643461234 [09:23:43]1041 (16) - 0000000000871759 [09:23:43]1040 (4) - 165930 [09:23:43]1012 (4) - 21.10.2024 03:01 [09:23:43]1206 (1) - 0 [09:23:43]OFD Sender: Remove packet 165930 [09:23:43]ProducePacketName [09:23:43]name=ofd_packets/00165930 [09:23:43]NVStorageDeleteData [09:23:43]Write to MH i2c: 01 00 00 65 35 9A [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: 01 07 00 65 35 00 00 00 00 00 B9 0C 66 [09:23:43]RasterBufferAndPrint [09:23:43]line [09:23:43]line [09:23:43]line [09:23:43]line [09:23:43]line [09:23:43]written 0, free lines is 3268 [09:23:43]MH_Cut [09:23:43]Write to MH i2c: D1 01 00 6C 35 01 73 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: D1 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: D1 01 00 [09:23:43]MH_I2C_Read... [09:23:43]Read from MH i2c: D1 01 00 6C 35 00 72 [09:23:43]Write to MH i2c: 01 00 00 6D 35 A2 [09:23:43]Write i2c OK [09:23:43]MH_I2C_Read... [09:23:44]OFD Sender: No OFD packet to send [09:23:44]*** Cut start [09:23:44]*** Partial cut [09:23:44]*** CUTSNS_PIN = 1 [09:23:44]*** CUTSNS_PIN = 0 [09:23:44]*** Brake cut motor [09:23:45]Read from MH i2c: 01 [09:23:45]MH_I2C_Read... [09:23:45]*** Stop cut motor [09:23:45]*** Cut end [09:23:45]Read from MH i2c: 01 07 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: 01 07 00 6D 35 00 00 00 00 00 FF 0F B7 [09:23:45]process_action close_receipt done [09:23:45]requested_data is exist [09:23:45]produce_requested_data [09:23:45]requested_item fm.sn is exist - process it [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 11 00 00 [09:23:45]Write to MH i2c: E2 08 00 6E 35 80 11 00 00 00 00 00 00 1D [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 17 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 17 00 6E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [09:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:23:45]wFMCommunicate OK [09:23:45]requested_item fd.num is exist - process it [09:23:45]SAM_PROTO_GetFieldsCounters [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 00 00 [09:23:45]Write to MH i2c: E2 08 00 6F 35 80 13 00 00 00 00 00 00 20 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 62 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 62 00 6F 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [09:23:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetFieldsCounters done [09:23:45]requested_item shift.num is exist - process it [09:23:45]requested_item shift.opened is exist - process it [09:23:45]req_shift_opened [09:23:45]FM_GetShiftState [09:23:45]SAM_PROTO_GetShiftState [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 01 00 [09:23:45]Write to MH i2c: E2 08 00 70 35 80 13 01 00 00 00 00 00 22 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 70 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2B [09:23:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetShiftState done [09:23:45]FM_GetShiftState done [09:23:45]req_shift_opened done [09:23:45]requested_item shift.open_date is exist - process it [09:23:45]req_shift_open_date [09:23:45]req_shift_open_date done [09:23:45]produce_requested_data done [09:23:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165930,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:23:45]process_action_free close_receipt [09:23:45]json_value_free [09:23:45]json_value_free done [09:23:45]process_json_proto returns [09:23:45]Send response to host [09:23:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165930,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:23:45]free response buf [09:23:45]execute_script done [09:23:45]execute_script returns [09:23:45]free content buf [09:23:45]Sock 5.Close socket [09:23:45]Sock 5.Thread stoped [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:47]accept exits with 6 [09:27:47]New connection [09:27:47]New thread 3066776932 created [09:27:47]Thread 3066920292 joined [09:27:47]Waiting for new connection... [09:27:47] Sock 6.Parse request [09:27:47]Sock 6.Check first char [09:27:47]Sock 6.First char is OK [09:27:47]request: POST /json_proto HTTP/1.0 [09:27:47]Method: POST [09:27:47]URL: /json_proto [09:27:47]Method is POST - this is cgi request [09:27:47]url: /json_proto [09:27:47]query_string will be loaded in cgi processing [09:27:47]execute_cgi json_proto POST (null) [09:27:47]execute_cgi path=json_proto method=POST [09:27:47]POST find Content-Length [09:27:47]Host: 172.17.53.195:8080 [09:27:47]Content-Length: 1194 [09:27:47]Content-Type: application/json [09:27:47] [09:27:47]POST finish read [09:27:47]Found Content-Length = 1194 [09:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 161\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)220499\u000A21.10.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 9.650 x 66.90\u000A\u0418\u0422\u041E\u0413: 645.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:47]execute_script... [09:27:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 161\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)220499\u000A21.10.2024 08:52\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 9.650 x 66.90\u000A\u0418\u0422\u041E\u0413: 645.59\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:47]POST & json_proto [09:27:47]process_json_proto [09:27:47]json parsed OK: [09:27:47]protocol is kg_v1.0 [09:27:47]action value=print_text [09:27:47]process_action print_text [09:27:47]cmd_print_text [09:27:47]ExternCall_PrintAddStr [09:27:47]wPrintStart [09:27:47]Write to MH i2c: 01 00 00 71 35 A6 [09:27:47]Write i2c OK [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 [09:27:47]MH_I2C_Read... [09:27:47]Read from MH i2c: 01 07 00 71 35 00 00 00 00 00 FF 0F BB [09:27:47]RasterBufferAndPrint [09:27:47]line *****ТОВАРНЫЙ ЧЕК***** [09:27:47]line АЗС 161 [09:27:47]line Партнер нефть [09:27:47]line 02508201610067 [09:27:47]line Кассир : Алыкулова К. [09:27:47]line Счет N : (1)220499 [09:27:47]line 21.10.2024 08:52 [09:27:47]line ПРОДАЖА [09:27:47]line ТРК (МРК, ГНК): 33 [09:27:47]line Вид ГСМ : 2710124130 [09:27:47]line Аи-92-К-5 [09:27:47]line 9.650 x 66.90 [09:27:47]line ИТОГ: 645.59 [09:27:47]line Тип оплаты: Технологический отпуск: [09:27:47]line ______________________ [09:27:47]line (подпись) [09:27:47]written 0, free lines is 4095 [09:27:48]Write to MH i2c: 01 00 00 84 35 B9 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: 01 07 00 84 35 00 00 00 00 00 2B 0E F9 [09:27:48]RasterBufferAndPrint [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]line [09:27:48]written 0, free lines is 3629 [09:27:48]MH_Cut [09:27:48]Write to MH i2c: D1 01 00 8B 35 01 92 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 01 00 [09:27:48]MH_I2C_Read... [09:27:48]Read from MH i2c: D1 01 00 8B 35 00 91 [09:27:48]Write to MH i2c: 01 00 00 8C 35 C1 [09:27:48]Write i2c OK [09:27:48]MH_I2C_Read... [09:27:48]*** Cut start [09:27:48]*** Partial cut [09:27:48]*** CUTSNS_PIN = 1 [09:27:48]*** CUTSNS_PIN = 0 [09:27:48]*** Brake cut motor [09:27:49]Read from MH i2c: 01 [09:27:49]MH_I2C_Read... [09:27:49]*** Stop cut motor [09:27:49]*** Cut end [09:27:49]Read from MH i2c: 01 07 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: 01 07 00 8C 35 00 00 00 00 00 FF 0F D6 [09:27:49]process_action print_text done [09:27:49]requested_data is exist [09:27:49]produce_requested_data [09:27:49]requested_item fm.sn is exist - process it [09:27:49]wFMCommunicate request_size=4 [09:27:49]MH_SAM_APDU [09:27:49]CAPDU: 80 11 00 00 [09:27:49]Write to MH i2c: E2 08 00 8D 35 80 11 00 00 00 00 00 00 3C [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 17 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 17 00 8D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [09:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:27:49]wFMCommunicate OK [09:27:49]requested_item fd.num is exist - process it [09:27:49]SAM_PROTO_GetFieldsCounters [09:27:49]wFMCommunicate request_size=4 [09:27:49]MH_SAM_APDU [09:27:49]CAPDU: 80 13 00 00 [09:27:49]Write to MH i2c: E2 08 00 8E 35 80 13 00 00 00 00 00 00 3F [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]OFD Sender: No OFD packet to send [09:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 62 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 62 00 8E 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [09:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:49]wFMCommunicate OK [09:27:49]SAM_PROTO_GetFieldsCounters done [09:27:49]requested_item shift.num is exist - process it [09:27:49]requested_item shift.opened is exist - process it [09:27:49]req_shift_opened [09:27:49]FM_GetShiftState [09:27:49]SAM_PROTO_GetShiftState [09:27:49]wFMCommunicate request_size=4 [09:27:49]MH_SAM_APDU [09:27:49]CAPDU: 80 13 01 00 [09:27:49]Write to MH i2c: E2 08 00 8F 35 80 13 01 00 00 00 00 00 41 [09:27:49]Write i2c OK [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 [09:27:49]MH_I2C_Read... [09:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:49]Read from MH i2c: E2 0E 00 [09:27:49]MH_I2C_Read... [09:27:49]Read from MH i2c: E2 0E 00 8F 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4A [09:27:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:27:49]wFMCommunicate OK [09:27:49]SAM_PROTO_GetShiftState done [09:27:49]FM_GetShiftState done [09:27:49]req_shift_opened done [09:27:49]requested_item shift.open_date is exist - process it [09:27:49]req_shift_open_date [09:27:49]req_shift_open_date done [09:27:49]produce_requested_data done [09:27:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165930,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:27:49]process_action_free print_text [09:27:49]json_value_free [09:27:49]json_value_free done [09:27:49]process_json_proto returns [09:27:49]Send response to host [09:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165930,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:27:49]free response buf [09:27:49]execute_script done [09:27:49]execute_script returns [09:27:49]free content buf [09:27:49]Sock 6.Close socket [09:27:49]Sock 6.Thread stoped [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:03]accept exits with 7 [09:30:03]New connection [09:30:03]New thread 3066920292 created [09:30:03]Thread 3066776932 joined [09:30:03]Waiting for new connection... [09:30:03] Sock 7.Parse request [09:30:03]Sock 7.Check first char [09:30:03]Sock 7.First char is OK [09:30:03]request: POST /json_proto HTTP/1.0 [09:30:03]Method: POST [09:30:03]URL: /json_proto [09:30:03]Method is POST - this is cgi request [09:30:03]url: /json_proto [09:30:03]query_string will be loaded in cgi processing [09:30:03]execute_cgi json_proto POST (null) [09:30:03]execute_cgi path=json_proto method=POST [09:30:03]POST find Content-Length [09:30:03]Host: 172.17.53.195:8080 [09:30:03]Content-Length: 1193 [09:30:03]Content-Type: application/json [09:30:03] [09:30:03]POST finish read [09:30:03]Found Content-Length = 1193 [09:30:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 161\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)220500\u000A21.10.2024 08:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 0.350 x 66.90\u000A\u0418\u0422\u041E\u0413: 23.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:03]execute_script... [09:30:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 161\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. \u000A\u0421\u0447\u0435\u0442 N : (1)220500\u000A21.10.2024 08:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 0.350 x 66.90\u000A\u0418\u0422\u041E\u0413: 23.42\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:03]POST & json_proto [09:30:03]process_json_proto [09:30:03]json parsed OK: [09:30:03]protocol is kg_v1.0 [09:30:03]action value=print_text [09:30:03]process_action print_text [09:30:03]cmd_print_text [09:30:03]ExternCall_PrintAddStr [09:30:03]wPrintStart [09:30:03]Write to MH i2c: 01 00 00 90 35 C5 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 90 35 00 00 00 00 00 FF 0F DA [09:30:03]RasterBufferAndPrint [09:30:03]line *****ТОВАРНЫЙ ЧЕК***** [09:30:03]line АЗС 161 [09:30:03]line Партнер нефть [09:30:03]line 02508201610067 [09:30:03]line Кассир : Алыкулова К. [09:30:03]line Счет N : (1)220500 [09:30:03]line 21.10.2024 08:54 [09:30:03]line ПРОДАЖА [09:30:03]line ТРК (МРК, ГНК): 33 [09:30:03]line Вид ГСМ : 2710124130 [09:30:03]line Аи-92-К-5 [09:30:03]line 0.350 x 66.90 [09:30:03]line ИТОГ: 23.42 [09:30:03]line Тип оплаты: Технологический отпуск: [09:30:03]line ______________________ [09:30:03]line (подпись) [09:30:03]written 0, free lines is 4095 [09:30:03]Write to MH i2c: 01 00 00 A3 35 D8 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: 01 07 00 A3 35 00 00 00 00 00 2A 0E 17 [09:30:03]RasterBufferAndPrint [09:30:03]line [09:30:03]line [09:30:03]line [09:30:03]line [09:30:03]line [09:30:03]written 0, free lines is 3627 [09:30:03]MH_Cut [09:30:03]Write to MH i2c: D1 01 00 AA 35 01 B1 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: D1 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: D1 01 00 [09:30:03]MH_I2C_Read... [09:30:03]Read from MH i2c: D1 01 00 AA 35 00 B0 [09:30:03]Write to MH i2c: 01 00 00 AB 35 E0 [09:30:03]Write i2c OK [09:30:03]MH_I2C_Read... [09:30:04]*** Cut start [09:30:04]*** Partial cut [09:30:04]*** CUTSNS_PIN = 1 [09:30:04]OFD Sender: No OFD packet to send [09:30:04]*** CUTSNS_PIN = 0 [09:30:04]*** Brake cut motor [09:30:05]Read from MH i2c: 01 [09:30:05]MH_I2C_Read... [09:30:05]*** Stop cut motor [09:30:05]*** Cut end [09:30:05]Read from MH i2c: 01 07 00 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: 01 07 00 AB 35 00 00 00 00 00 FF 0F F5 [09:30:05]process_action print_text done [09:30:05]requested_data is exist [09:30:05]produce_requested_data [09:30:05]requested_item fm.sn is exist - process it [09:30:05]wFMCommunicate request_size=4 [09:30:05]MH_SAM_APDU [09:30:05]CAPDU: 80 11 00 00 [09:30:05]Write to MH i2c: E2 08 00 AC 35 80 11 00 00 00 00 00 00 5B [09:30:05]Write i2c OK [09:30:05]MH_I2C_Read... [09:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:05]Read from MH i2c: E2 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: E2 17 00 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: E2 17 00 AC 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [09:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:05]wFMCommunicate OK [09:30:05]requested_item fd.num is exist - process it [09:30:05]SAM_PROTO_GetFieldsCounters [09:30:05]wFMCommunicate request_size=4 [09:30:05]MH_SAM_APDU [09:30:05]CAPDU: 80 13 00 00 [09:30:05]Write to MH i2c: E2 08 00 AD 35 80 13 00 00 00 00 00 00 5E [09:30:05]Write i2c OK [09:30:05]MH_I2C_Read... [09:30:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:05]Read from MH i2c: E2 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: E2 62 00 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: E2 62 00 AD 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [09:30:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:05]wFMCommunicate OK [09:30:05]SAM_PROTO_GetFieldsCounters done [09:30:05]requested_item shift.num is exist - process it [09:30:05]requested_item shift.opened is exist - process it [09:30:05]req_shift_opened [09:30:05]FM_GetShiftState [09:30:05]SAM_PROTO_GetShiftState [09:30:05]wFMCommunicate request_size=4 [09:30:05]MH_SAM_APDU [09:30:05]CAPDU: 80 13 01 00 [09:30:05]Write to MH i2c: E2 08 00 AE 35 80 13 01 00 00 00 00 00 60 [09:30:05]Write i2c OK [09:30:05]MH_I2C_Read... [09:30:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:05]Read from MH i2c: E2 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: E2 0E 00 [09:30:05]MH_I2C_Read... [09:30:05]Read from MH i2c: E2 0E 00 AE 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 69 [09:30:05]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:30:05]wFMCommunicate OK [09:30:05]SAM_PROTO_GetShiftState done [09:30:05]FM_GetShiftState done [09:30:05]req_shift_opened done [09:30:05]requested_item shift.open_date is exist - process it [09:30:05]req_shift_open_date [09:30:05]req_shift_open_date done [09:30:05]produce_requested_data done [09:30:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165930,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:30:05]process_action_free print_text [09:30:05]json_value_free [09:30:05]json_value_free done [09:30:05]process_json_proto returns [09:30:05]Send response to host [09:30:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165930,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:30:05]free response buf [09:30:05]execute_script done [09:30:05]execute_script returns [09:30:05]free content buf [09:30:05]Sock 7.Close socket [09:30:05]Sock 7.Thread stoped [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:35]accept exits with 5 [09:30:35]New connection [09:30:35]New thread 3066776932 created [09:30:35]Thread 3066920292 joined [09:30:35]Waiting for new connection... [09:30:35] Sock 5.Parse request [09:30:35]Sock 5.Check first char [09:30:35]Sock 5.First char is OK [09:30:35]request: POST /json_proto HTTP/1.0 [09:30:35]Method: POST [09:30:35]URL: /json_proto [09:30:35]Method is POST - this is cgi request [09:30:35]url: /json_proto [09:30:35]query_string will be loaded in cgi processing [09:30:35]execute_cgi json_proto POST (null) [09:30:35]execute_cgi path=json_proto method=POST [09:30:35]POST find Content-Length [09:30:35]Host: 172.17.53.195:8080 [09:30:35]Content-Length: 800 [09:30:35]Content-Type: application/json [09:30:35] [09:30:35]POST finish read [09:30:35]Found Content-Length = 800 [09:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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\u000A4194366", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:35]execute_script... [09:30: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)220501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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\u000A4194366", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:35]POST & json_proto [09:30:35]process_json_proto [09:30:35]json parsed OK: [09:30:35]protocol is kg_v1.0 [09:30:35]action value=close_receipt [09:30:35]process_action close_receipt [09:30:35]cmd_close_receipt [09:30:35]MH_GetDate [09:30:35]Write to MH i2c: F0 00 00 AF 35 D3 [09:30:35]Write i2c OK [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: F0 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: F0 09 00 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: F0 09 00 AF 35 00 4C 1F 16 67 21 48 4A 65 DC [09:30:35]GetLastDocTimeStamp 1729502639 [09:30:35]current date 1729503052 [09:30:35]FM_GetShiftState [09:30:35]SAM_PROTO_GetShiftState [09:30:35]wFMCommunicate request_size=4 [09:30:35]MH_SAM_APDU [09:30:35]CAPDU: 80 13 01 00 [09:30:35]Write to MH i2c: E2 08 00 B0 35 80 13 01 00 00 00 00 00 62 [09:30:35]Write i2c OK [09:30:35]MH_I2C_Read... [09:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:35]Read from MH i2c: E2 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 0E 00 [09:30:35]MH_I2C_Read... [09:30:35]Read from MH i2c: E2 0E 00 B0 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6B [09:30:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:30:35]wFMCommunicate OK [09:30:35]SAM_PROTO_GetShiftState done [09:30:35]FM_GetShiftState done [09:30:35]opened in 1729470944 [09:30:35]opened+sec_in_day 1729557344 [09:30:35]quantity*price = 0 [09:30:35]sum+1 = 1 [09:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 42 21.10.2024 09:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4194366 ФМ: 0000000000871759 ФД: 165931 ФПД: 190288803510904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093052&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165931&fm=190288803510904&tin=02508201610067®Number=0000000000091764&sum=0 [09:30:36]StoreToDocumentArchive [09:30:36]shift 535 fd 165931 [09:30:36]save to /storage/0535/doc_00165931 [09:30:36]save last doc name /storage/0535/doc_00165931 to /storage/kkm_last_doc_name [09:30:36]save OK [09:30:36]Clear old archive folders... [09:30:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:36]tlvbuf is 014ED610 [09:30:36]SAM_PROTO_ClearQueue [09:30:36]wFMCommunicate request_size=4 [09:30:36]MH_SAM_APDU [09:30:36]CAPDU: 80 09 00 00 [09:30:36]Write to MH i2c: E2 08 00 BD 35 80 09 00 00 00 00 00 00 64 [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:36]Read from MH i2c: E2 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 BD 35 00 90 00 66 [09:30:36]RAPDU: 90 00 [09:30:36]wFMCommunicate OK [09:30:36]SAM_PROTO_ClearQueue done [09:30:36]KKMCreateOFDPacket [09:30:36]OFDProtocolAddRootSTLVToBuf [09:30:36]FM_MakeSignedData [09:30:36]FM_MakeSignedData [09:30:36]SAM_PROTO_SignData [09:30:36]wFMCommunicate request_size=4 [09:30:36]MH_SAM_APDU [09:30:36]CAPDU: 80 0D 01 02 [09:30:36]Write to MH i2c: E2 08 00 BE 35 80 0D 01 02 00 00 00 00 6C [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:36]Read from MH i2c: E2 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 BE 35 00 90 00 67 [09:30:36]RAPDU: 90 00 [09:30:36]wFMCommunicate OK [09:30:36]wFMCommunicate request_size=255 [09:30:36]MH_SAM_APDU [09:30: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 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 2A 00 00 00 F4 03 04 00 4C 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 88 02 00 35 04 06 00 AD [09:30:36]Write to MH i2c: E2 02 01 BF 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 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 2A 00 00 00 F4 03 04 00 4C 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 88 02 00 35 04 06 00 AD 00 00 78 [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:36]Read from MH i2c: E2 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 BF 35 00 90 00 68 [09:30:36]RAPDU: 90 00 [09:30:36]wFMCommunicate OK [09:30:36]wFMCommunicate request_size=10 [09:30:36]MH_SAM_APDU [09:30:36]CAPDU: 80 0D 02 02 05 11 10 89 BA 78 [09:30:36]Write to MH i2c: E2 0D 00 C0 35 80 0D 02 02 05 00 11 10 89 BA 78 00 00 55 [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:36]Read from MH i2c: E2 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 03 00 C0 35 00 90 00 69 [09:30:36]RAPDU: 90 00 [09:30:36]wFMCommunicate OK [09:30:36]wFMCommunicate request_size=4 [09:30:36]MH_SAM_APDU [09:30:36]CAPDU: 80 0D 03 02 [09:30:36]Write to MH i2c: E2 08 00 C1 35 80 0D 03 02 00 00 00 00 71 [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:36]Read from MH i2c: E2 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 0B 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 0B 00 C1 35 00 47 37 F7 0D 12 94 26 CA 90 00 8A [09:30:36]RAPDU: 47 37 F7 0D 12 94 26 CA 90 00 [09:30:36]wFMCommunicate OK [09:30:36]SAM_PROTO_SignData done [09:30:36]FM_MakeSignedData done [09:30:36]CreateOFDProtocolMessage [09:30:36]wFMCommunicate request_size=4 [09:30:36]MH_SAM_APDU [09:30:36]CAPDU: 80 11 00 00 [09:30:36]Write to MH i2c: E2 08 00 C2 35 80 11 00 00 00 00 00 00 71 [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:36]Read from MH i2c: E2 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 17 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: E2 17 00 C2 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [09:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:36]wFMCommunicate OK [09:30:36]CreateOFDProtocolMessage done [09:30:36]OFDSenderStorePacket 165931 [09:30:36]StoreOFDPacket docnum=165931 [09:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 79 F8 07 01 48 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 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 2A 00 00 00 F4 03 04 00 4C 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 88 02 00 35 04 06 00 AD 11 10 89 BA 78 47 37 F7 0D 12 94 26 CA [09:30:36]CheckFolder [09:30:36]dirname=/storage/ofd_packets [09:30:36]CheckFolder done [09:30:36]ProducePacketName [09:30:36]name=ofd_packets/00165931 [09:30:36]NVStorageSaveData ofd_packets/00165931 [09:30:36]File name is /storage/ofd_packets/00165931 [09:30:36]Write 301 bytes [09:30:36]NVStorageSaveData done [09:30:36]OFDSenderStorePacket done [09:30:36]KKMCreateOFDPacket done [09:30:36]NVStorageSaveData kkm_last_timestamp [09:30:36]File name is /storage/kkm_last_timestamp [09:30:36]Write 4 bytes [09:30:36]NVStorageSaveData done [09:30:36]ExternCall_PrintAddStr [09:30:36]wPrintStart [09:30:36]Write to MH i2c: 01 00 00 C3 35 F8 [09:30:36]Write i2c OK [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: 01 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: 01 07 00 [09:30:36]MH_I2C_Read... [09:30:36]Read from MH i2c: 01 07 00 C3 35 00 00 00 00 00 FF 0F 0D [09:30:36]RasterBufferAndPrint [09:30:36]line Счет N : (1)220501 [09:30:36]line ИНН: 02508201610067 [09:30:36]line Контрольно-Кассовый Чек [09:30:36]line ПРОДАЖА [09:30:36]line ТРК (МРК, ГНК) : 13 [09:30:36]line Товар: 2710124130 [09:30:36]line Аи-92-К-5 [09:30:36]line 20.000 * 0.00 [09:30:36]line = 0.00 [09:30:36]line НДС 12% НСП 1% [09:30:36]line > о реализуемом товаре [09:30:36]line ИТОГО: 0.00 [09:30:36]line НСП 1% : 0.00 [09:30:36]line НДС 12% : 0.00 [09:30:36]line Наличными: 0.00 [09:30:36]line Безнал.: 0.00 [09:30:36]line Место: АЗС № 161 "Партнер Нефть" [09:30:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:30:36]line СНО: Общий режим [09:30:36]line Чек 42 21.10.2024 09:30 [09:30:36]line Смена: 535 ФФД: 1.0 [09:30:36]line ЗНМ: 0300000104 [09:30:36]line РНМ: 0000000000091764 [09:30:36]line Версия ККМ: 001 [09:30:36]line Талоны: Топливные Талоны [09:30:36]line 4194366 [09:30:36]line ФМ: 0000000000871759 [09:30:36]line ФД: 165931 [09:30:36]line ФПД: 190288803510904 [09:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093052&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165931&fm=190288803510904&tin=02508201610067®Number=0000000000091764&sum=0 [09:30:37]written 0, free lines is 4095 [09:30:37]OFD Sender: Processing packet 165931 [packets to send 48, broken 47] [09:30:37]ProducePacketName [09:30:37]name=ofd_packets/00165931 [09:30:37]OFD Sender: To server: pG, [09:30:37]CommunicateWithHost lk.salyk.kg:30040 [09:30:37]ConnectInit lk.salyk.kg [09:30:37]Connected sock=9 [09:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 79 F8 07 01 48 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 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 2A 00 00 00 F4 03 04 00 4C 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 88 02 00 35 04 06 00 AD 11 10 89 BA 78 47 37 F7 0D 12 94 26 CA [09:30:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 22 14 47 00 37 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 88 02 00 F4 03 04 00 BB C5 15 67 B6 04 01 00 00 C6 7C 18 9A 43 FB 76 F3 [09:30:37]CommunicateWithHost err = 0 [09:30:37]CheckOFDResponse [09:30:37]1017 (14) - 77093643461234 [09:30:37]1041 (16) - 0000000000871759 [09:30:37]1040 (4) - 165931 [09:30:37]1012 (4) - 21.10.2024 03:08 [09:30:37]1206 (1) - 0 [09:30:37]OFD Sender: Remove packet 165931 [09:30:37]ProducePacketName [09:30:37]name=ofd_packets/00165931 [09:30:37]NVStorageDeleteData [09:30:37]Write to MH i2c: 01 00 00 ED 35 22 [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: 01 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: 01 07 00 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: 01 07 00 ED 35 00 00 00 00 00 CB 0C 00 [09:30:37]RasterBufferAndPrint [09:30:37]line [09:30:37]line [09:30:37]line [09:30:37]line [09:30:37]line [09:30:37]written 0, free lines is 3281 [09:30:37]MH_Cut [09:30:37]Write to MH i2c: D1 01 00 F4 35 01 FB [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: D1 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: D1 01 00 [09:30:37]MH_I2C_Read... [09:30:37]Read from MH i2c: D1 01 00 F4 35 00 FA [09:30:37]Write to MH i2c: 01 00 00 F5 35 2A [09:30:37]Write i2c OK [09:30:37]MH_I2C_Read... [09:30:38]OFD Sender: No OFD packet to send [09:30:38]*** Cut start [09:30:38]*** Partial cut [09:30:38]*** CUTSNS_PIN = 1 [09:30:38]*** CUTSNS_PIN = 0 [09:30:38]*** Brake cut motor [09:30:39]Read from MH i2c: 01 [09:30:39]MH_I2C_Read... [09:30:39]*** Stop cut motor [09:30:39]*** Cut end [09:30:39]Read from MH i2c: 01 07 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: 01 07 00 F5 35 00 00 00 00 00 FF 0F 3F [09:30:39]process_action close_receipt done [09:30:39]requested_data is exist [09:30:39]produce_requested_data [09:30:39]requested_item fm.sn is exist - process it [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 11 00 00 [09:30:39]Write to MH i2c: E2 08 00 F6 35 80 11 00 00 00 00 00 00 A5 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 17 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 17 00 F6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [09:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:30:39]wFMCommunicate OK [09:30:39]requested_item fd.num is exist - process it [09:30:39]SAM_PROTO_GetFieldsCounters [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 13 00 00 [09:30:39]Write to MH i2c: E2 08 00 F7 35 80 13 00 00 00 00 00 00 A8 [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 62 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 62 00 F7 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_GetFieldsCounters done [09:30:39]requested_item shift.num is exist - process it [09:30:39]requested_item shift.opened is exist - process it [09:30:39]req_shift_opened [09:30:39]FM_GetShiftState [09:30:39]SAM_PROTO_GetShiftState [09:30:39]wFMCommunicate request_size=4 [09:30:39]MH_SAM_APDU [09:30:39]CAPDU: 80 13 01 00 [09:30:39]Write to MH i2c: E2 08 00 F8 35 80 13 01 00 00 00 00 00 AA [09:30:39]Write i2c OK [09:30:39]MH_I2C_Read... [09:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:39]Read from MH i2c: E2 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0E 00 [09:30:39]MH_I2C_Read... [09:30:39]Read from MH i2c: E2 0E 00 F8 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B3 [09:30:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:30:39]wFMCommunicate OK [09:30:39]SAM_PROTO_GetShiftState done [09:30:39]FM_GetShiftState done [09:30:39]req_shift_opened done [09:30:39]requested_item shift.open_date is exist - process it [09:30:39]req_shift_open_date [09:30:39]req_shift_open_date done [09:30:39]produce_requested_data done [09:30:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165931,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:30:39]process_action_free close_receipt [09:30:39]json_value_free [09:30:39]json_value_free done [09:30:39]process_json_proto returns [09:30:39]Send response to host [09:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165931,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:30:39]free response buf [09:30:39]execute_script done [09:30:39]execute_script returns [09:30:39]free content buf [09:30:39]Sock 5.Close socket [09:30:39]Sock 5.Thread stoped [09:30:43]OFD Sender: No OFD packet to send [09:30:48]OFD Sender: No OFD packet to send [09:30:53]OFD Sender: No OFD packet to send [09:30:58]OFD Sender: No OFD packet to send [09:31:03]OFD Sender: No OFD packet to send [09:31:08]OFD Sender: No OFD packet to send [09:31:13]OFD Sender: No OFD packet to send [09:31:18]OFD Sender: No OFD packet to send [09:31:23]OFD Sender: No OFD packet to send [09:31:28]OFD Sender: No OFD packet to send [09:31:31]accept exits with 6 [09:31:31]New connection [09:31:31]New thread 3066920292 created [09:31:31]Thread 3066776932 joined [09:31:31]Waiting for new connection... [09:31:31] Sock 6.Parse request [09:31:31]Sock 6.Check first char [09:31:31]Sock 6.First char is OK [09:31:31]request: POST /json_proto HTTP/1.0 [09:31:31]Method: POST [09:31:31]URL: /json_proto [09:31:31]Method is POST - this is cgi request [09:31:31]url: /json_proto [09:31:31]query_string will be loaded in cgi processing [09:31:31]execute_cgi json_proto POST (null) [09:31:31]execute_cgi path=json_proto method=POST [09:31:31]POST find Content-Length [09:31:31]Host: 172.17.53.195:8080 [09:31:31]Content-Length: 789 [09:31:31]Content-Type: application/json [09:31:31] [09:31:31]POST finish read [09:31:31]Found Content-Length = 789 [09:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 14.440, "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\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:31]execute_script... [09:31: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)220502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 14.440, "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\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:31]POST & json_proto [09:31:31]process_json_proto [09:31:31]json parsed OK: [09:31:31]protocol is kg_v1.0 [09:31:31]action value=close_receipt [09:31:31]process_action close_receipt [09:31:31]cmd_close_receipt [09:31:31]MH_GetDate [09:31:31]Write to MH i2c: F0 00 00 F9 35 1D [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: F0 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: F0 09 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: F0 09 00 F9 35 00 84 1F 16 67 21 48 4A 65 5E [09:31:31]GetLastDocTimeStamp 1729503052 [09:31:31]current date 1729503108 [09:31:31]FM_GetShiftState [09:31:31]SAM_PROTO_GetShiftState [09:31:31]wFMCommunicate request_size=4 [09:31:31]MH_SAM_APDU [09:31:31]CAPDU: 80 13 01 00 [09:31:31]Write to MH i2c: E2 08 00 FA 35 80 13 01 00 00 00 00 00 AC [09:31:31]Write i2c OK [09:31:31]MH_I2C_Read... [09:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:31]Read from MH i2c: E2 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 0E 00 [09:31:31]MH_I2C_Read... [09:31:31]Read from MH i2c: E2 0E 00 FA 35 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B5 [09:31:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:31:31]wFMCommunicate OK [09:31:31]SAM_PROTO_GetShiftState done [09:31:31]FM_GetShiftState done [09:31:31]opened in 1729470944 [09:31:31]opened+sec_in_day 1729557344 [09:31:31]quantity*price = 0 [09:31:31]sum+1 = 1 [09:31:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 43 21.10.2024 09:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165932 ФПД: 192634207430116 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165932&fm=192634207430116&tin=02508201610067®Number=0000000000091764&sum=0 [09:31:32]StoreToDocumentArchive [09:31:32]shift 535 fd 165932 [09:31:32]save to /storage/0535/doc_00165932 [09:31:32]save last doc name /storage/0535/doc_00165932 to /storage/kkm_last_doc_name [09:31:32]save OK [09:31:32]Clear old archive folders... [09:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:31:32]tlvbuf is 01616840 [09:31:32]SAM_PROTO_ClearQueue [09:31:32]wFMCommunicate request_size=4 [09:31:32]MH_SAM_APDU [09:31:32]CAPDU: 80 09 00 00 [09:31:32]Write to MH i2c: E2 08 00 07 36 80 09 00 00 00 00 00 00 AF [09:31:32]Write i2c OK [09:31:32]MH_I2C_Read... [09:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:32]Read from MH i2c: E2 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: E2 03 00 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: E2 03 00 07 36 00 90 00 B1 [09:31:32]RAPDU: 90 00 [09:31:32]wFMCommunicate OK [09:31:32]SAM_PROTO_ClearQueue done [09:31:32]KKMCreateOFDPacket [09:31:32]OFDProtocolAddRootSTLVToBuf [09:31:32]FM_MakeSignedData [09:31:32]FM_MakeSignedData [09:31:32]SAM_PROTO_SignData [09:31:32]wFMCommunicate request_size=4 [09:31:32]MH_SAM_APDU [09:31:32]CAPDU: 80 0D 01 02 [09:31:32]Write to MH i2c: E2 08 00 08 36 80 0D 01 02 00 00 00 00 B7 [09:31:32]Write i2c OK [09:31:32]MH_I2C_Read... [09:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:32]Read from MH i2c: E2 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: E2 03 00 [09:31:32]MH_I2C_Read... [09:31:32]Read from MH i2c: E2 03 00 08 36 00 90 00 B2 [09:31:32]RAPDU: 90 00 [09:31:32]wFMCommunicate OK [09:31:32]wFMCommunicate request_size=255 [09:31:32]MH_SAM_APDU [09:31:32]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 88 02 00 35 04 06 00 AF 33 25 81 [09:31:32]Write to MH i2c: E2 02 01 09 36 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 88 02 00 35 04 06 00 AF 33 25 81 00 00 5E [09:31:32]Write i2c OK [09:31:32]MH_I2C_Read... [09:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 03 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 03 00 09 36 00 90 00 B3 [09:31:33]RAPDU: 90 00 [09:31:33]wFMCommunicate OK [09:31:33]wFMCommunicate request_size=7 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 0D 02 02 02 65 E4 [09:31:33]Write to MH i2c: E2 0A 00 0A 36 80 0D 02 02 02 00 65 E4 00 00 07 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 03 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 03 00 0A 36 00 90 00 B4 [09:31:33]RAPDU: 90 00 [09:31:33]wFMCommunicate OK [09:31:33]wFMCommunicate request_size=4 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 0D 03 02 [09:31:33]Write to MH i2c: E2 08 00 0B 36 80 0D 03 02 00 00 00 00 BC [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 0B 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 0B 00 0B 36 00 F7 6B 7D F1 73 55 43 85 90 00 1D [09:31:33]RAPDU: F7 6B 7D F1 73 55 43 85 90 00 [09:31:33]wFMCommunicate OK [09:31:33]SAM_PROTO_SignData done [09:31:33]FM_MakeSignedData done [09:31:33]CreateOFDProtocolMessage [09:31:33]wFMCommunicate request_size=4 [09:31:33]MH_SAM_APDU [09:31:33]CAPDU: 80 11 00 00 [09:31:33]Write to MH i2c: E2 08 00 0C 36 80 11 00 00 00 00 00 00 BC [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]OFD Sender: No OFD packet to send [09:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:33]Read from MH i2c: E2 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 17 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: E2 17 00 0C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 14 [09:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:31:33]wFMCommunicate OK [09:31:33]CreateOFDProtocolMessage done [09:31:33]OFDSenderStorePacket 165932 [09:31:33]StoreOFDPacket docnum=165932 [09:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 06 60 04 01 57 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 88 02 00 35 04 06 00 AF 33 25 81 65 E4 F7 6B 7D F1 73 55 43 85 [09:31:33]CheckFolder [09:31:33]dirname=/storage/ofd_packets [09:31:33]CheckFolder done [09:31:33]ProducePacketName [09:31:33]name=ofd_packets/00165932 [09:31:33]NVStorageSaveData ofd_packets/00165932 [09:31:33]File name is /storage/ofd_packets/00165932 [09:31:33]Write 298 bytes [09:31:33]NVStorageSaveData done [09:31:33]OFDSenderStorePacket done [09:31:33]KKMCreateOFDPacket done [09:31:33]NVStorageSaveData kkm_last_timestamp [09:31:33]File name is /storage/kkm_last_timestamp [09:31:33]Write 4 bytes [09:31:33]NVStorageSaveData done [09:31:33]ExternCall_PrintAddStr [09:31:33]wPrintStart [09:31:33]Write to MH i2c: 01 00 00 0D 36 43 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 07 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 07 00 0D 36 00 00 00 00 00 FF 0F 58 [09:31:33]RasterBufferAndPrint [09:31:33]line Счет N : (1)220502 [09:31:33]line ИНН: 02508201610067 [09:31:33]line Контрольно-Кассовый Чек [09:31:33]line ПРОДАЖА [09:31:33]line ТРК (МРК, ГНК) : 31 [09:31:33]line Товар: 2710194210 [09:31:33]line ДТ-К-5 [09:31:33]line 14.440 * 0.00 [09:31:33]line = 0.00 [09:31:33]line НДС 12% НСП 1% [09:31:33]line > о реализуемом товаре [09:31:33]line ИТОГО: 0.00 [09:31:33]line НСП 1% : 0.00 [09:31:33]line НДС 12% : 0.00 [09:31:33]line Наличными: 0.00 [09:31:33]line Безнал.: 0.00 [09:31:33]line Место: АЗС № 161 "Партнер Нефть" [09:31:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:31:33]line СНО: Общий режим [09:31:33]line Чек 43 21.10.2024 09:31 [09:31:33]line Смена: 535 ФФД: 1.0 [09:31:33]line ЗНМ: 0300000104 [09:31:33]line РНМ: 0000000000091764 [09:31:33]line Версия ККМ: 001 [09:31:33]line Талоны: Топливная Карта [09:31:33]line 38866 [09:31:33]line ФМ: 0000000000871759 [09:31:33]line ФД: 165932 [09:31:33]line ФПД: 192634207430116 [09:31:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093149&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165932&fm=192634207430116&tin=02508201610067®Number=0000000000091764&sum=0 [09:31:33]OFD Sender: Processing packet 165932 [packets to send 48, broken 47] [09:31:33]ProducePacketName [09:31:33]name=ofd_packets/00165932 [09:31:33]OFD Sender: To server: pG, [09:31:33]CommunicateWithHost lk.salyk.kg:30040 [09:31:33]ConnectInit lk.salyk.kg [09:31:33]written 0, free lines is 4095 [09:31:33]Connected sock=7 [09:31:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 06 60 04 01 57 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 85 1F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 88 02 00 35 04 06 00 AF 33 25 81 65 E4 F7 6B 7D F1 73 55 43 85 [09:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 C7 47 00 AB 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 35 39 10 04 04 00 2C 88 02 00 F4 03 04 00 F3 C5 15 67 B6 04 01 00 00 AD E8 57 21 64 3B E8 2A [09:31:33]CommunicateWithHost err = 0 [09:31:33]CheckOFDResponse [09:31:33]1017 (14) - 77093643461234 [09:31:33]1041 (16) - 0000000000871759 [09:31:33]1040 (4) - 165932 [09:31:33]1012 (4) - 21.10.2024 03:09 [09:31:33]1206 (1) - 0 [09:31:33]OFD Sender: Remove packet 165932 [09:31:33]ProducePacketName [09:31:33]name=ofd_packets/00165932 [09:31:33]NVStorageDeleteData [09:31:33]Write to MH i2c: 01 00 00 37 36 6D [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 07 00 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: 01 07 00 37 36 00 00 00 00 00 C5 0C 45 [09:31:33]RasterBufferAndPrint [09:31:33]line [09:31:33]line [09:31:33]line [09:31:33]line [09:31:33]line [09:31:33]written 0, free lines is 3278 [09:31:33]MH_Cut [09:31:33]Write to MH i2c: D1 01 00 3E 36 01 46 [09:31:33]Write i2c OK [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: D1 [09:31:33]MH_I2C_Read... [09:31:33]Read from MH i2c: D1 01 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: D1 01 00 3E 36 00 45 [09:31:34]Write to MH i2c: 01 00 00 3F 36 75 [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]OFD Sender: No OFD packet to send [09:31:34]*** Cut start [09:31:34]*** Partial cut [09:31:34]*** CUTSNS_PIN = 1 [09:31:34]*** CUTSNS_PIN = 0 [09:31:35]*** Brake cut motor [09:31:35]Read from MH i2c: 01 [09:31:35]MH_I2C_Read... [09:31:35]*** Stop cut motor [09:31:35]*** Cut end [09:31:35]Read from MH i2c: 01 07 00 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: 01 07 00 3F 36 00 00 00 00 00 FF 0F 8A [09:31:35]process_action close_receipt done [09:31:35]requested_data is exist [09:31:35]produce_requested_data [09:31:35]requested_item fm.sn is exist - process it [09:31:35]wFMCommunicate request_size=4 [09:31:35]MH_SAM_APDU [09:31:35]CAPDU: 80 11 00 00 [09:31:35]Write to MH i2c: E2 08 00 40 36 80 11 00 00 00 00 00 00 F0 [09:31:35]Write i2c OK [09:31:35]MH_I2C_Read... [09:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:35]Read from MH i2c: E2 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: E2 17 00 [09:31:35]MH_I2C_Read... [09:31:35]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 35 39 90 00 48 [09:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:31:35]wFMCommunicate OK [09:31:35]requested_item fd.num is exist - process it [09:31:35]SAM_PROTO_GetFieldsCounters [09:31:35]wFMCommunicate request_size=4 [09:31:35]MH_SAM_APDU [09:31:35]CAPDU: 80 13 00 00 [09:31:35]Write to MH i2c: E2 08 00 41 36 80 13 00 00 00 00 00 00 F3 [09:31:35]Write i2c OK [09:31:35]MH_I2C_Read... [09:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:35]Read from MH i2c: E2 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: E2 62 00 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: E2 62 00 41 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [09:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:35]wFMCommunicate OK [09:31:35]SAM_PROTO_GetFieldsCounters done [09:31:35]requested_item shift.num is exist - process it [09:31:35]requested_item shift.opened is exist - process it [09:31:35]req_shift_opened [09:31:35]FM_GetShiftState [09:31:35]SAM_PROTO_GetShiftState [09:31:35]wFMCommunicate request_size=4 [09:31:35]MH_SAM_APDU [09:31:35]CAPDU: 80 13 01 00 [09:31:35]Write to MH i2c: E2 08 00 42 36 80 13 01 00 00 00 00 00 F5 [09:31:35]Write i2c OK [09:31:35]MH_I2C_Read... [09:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:35]Read from MH i2c: E2 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: E2 0E 00 [09:31:35]MH_I2C_Read... [09:31:35]Read from MH i2c: E2 0E 00 42 36 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FE [09:31:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:31:35]wFMCommunicate OK [09:31:35]SAM_PROTO_GetShiftState done [09:31:35]FM_GetShiftState done [09:31:35]req_shift_opened done [09:31:35]requested_item shift.open_date is exist - process it [09:31:35]req_shift_open_date [09:31:35]req_shift_open_date done [09:31:35]produce_requested_data done [09:31:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165932,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:31:35]process_action_free close_receipt [09:31:35]json_value_free [09:31:35]json_value_free done [09:31:35]process_json_proto returns [09:31:35]Send response to host [09:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165932,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:31:35]free response buf [09:31:35]execute_script done [09:31:35]execute_script returns [09:31:35]free content buf [09:31:35]Sock 6.Close socket [09:31:35]Sock 6.Thread stoped [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:39]OFD Sender: No OFD packet to send [09:32:44]OFD Sender: No OFD packet to send [09:32:49]OFD Sender: No OFD packet to send [09:32:54]OFD Sender: No OFD packet to send [09:32:59]OFD Sender: No OFD packet to send [09:33:04]OFD Sender: No OFD packet to send [09:33:09]OFD Sender: No OFD packet to send [09:33:14]OFD Sender: No OFD packet to send [09:33:19]OFD Sender: No OFD packet to send [09:33:24]OFD Sender: No OFD packet to send [09:33:29]OFD Sender: No OFD packet to send [09:33:34]OFD Sender: No OFD packet to send [09:33:39]OFD Sender: No OFD packet to send [09:33:44]OFD Sender: No OFD packet to send [09:33:49]OFD Sender: No OFD packet to send [09:33:54]OFD Sender: No OFD packet to send [09:33:59]OFD Sender: No OFD packet to send [09:34:04]OFD Sender: No OFD packet to send [09:34:09]OFD Sender: No OFD packet to send [09:34:14]OFD Sender: No OFD packet to send [09:34:19]OFD Sender: No OFD packet to send [09:34:24]OFD Sender: No OFD packet to send [09:34:29]OFD Sender: No OFD packet to send [09:34:34]OFD Sender: No OFD packet to send [09:34:39]OFD Sender: No OFD packet to send [09:34:44]OFD Sender: No OFD packet to send [09:34:49]OFD Sender: No OFD packet to send [09:34:54]OFD Sender: No OFD packet to send [09:34:59]OFD Sender: No OFD packet to send [09:35:04]OFD Sender: No OFD packet to send [09:35:09]OFD Sender: No OFD packet to send [09:35:14]OFD Sender: No OFD packet to send [09:35:19]OFD Sender: No OFD packet to send [09:35:24]OFD Sender: No OFD packet to send [09:35:29]OFD Sender: No OFD packet to send [09:35:34]OFD Sender: No OFD packet to send [09:35:39]OFD Sender: No OFD packet to send [09:35:44]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:36:59]accept exits with 5 [09:36:59]New connection [09:36:59]New thread 3066776932 created [09:36:59]Thread 3066920292 joined [09:36:59]Waiting for new connection... [09:36:59] Sock 5.Parse request [09:36:59]Sock 5.Check first char [09:36:59]Sock 5.First char is OK [09:36:59]request: POST /json_proto HTTP/1.0 [09:36:59]Method: POST [09:36:59]URL: /json_proto [09:36:59]Method is POST - this is cgi request [09:36:59]url: /json_proto [09:36:59]query_string will be loaded in cgi processing [09:36:59]execute_cgi json_proto POST (null) [09:36:59]execute_cgi path=json_proto method=POST [09:36:59]POST find Content-Length [09:36:59]Host: 172.17.53.195:8080 [09:36:59]Content-Length: 677 [09:36:59]Content-Type: application/json [09:36:59] [09:36:59]POST finish read [09:36:59]Found Content-Length = 677 [09:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:59]execute_script... [09:36:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:59]POST & json_proto [09:36:59]process_json_proto [09:36:59]json parsed OK: [09:36:59]protocol is kg_v1.0 [09:36:59]action value=close_receipt [09:36:59]process_action close_receipt [09:36:59]cmd_close_receipt [09:36:59]MH_GetDate [09:36:59]Write to MH i2c: F0 00 00 43 36 68 [09:36:59]Write i2c OK [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: F0 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: F0 09 00 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: F0 09 00 43 36 00 CD 20 16 67 21 48 4A 65 F3 [09:36:59]GetLastDocTimeStamp 1729503109 [09:36:59]current date 1729503437 [09:36:59]FM_GetShiftState [09:36:59]SAM_PROTO_GetShiftState [09:36:59]wFMCommunicate request_size=4 [09:36:59]MH_SAM_APDU [09:36:59]CAPDU: 80 13 01 00 [09:36:59]Write to MH i2c: E2 08 00 44 36 80 13 01 00 00 00 00 00 F7 [09:36:59]Write i2c OK [09:36:59]MH_I2C_Read... [09:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:59]Read from MH i2c: E2 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: E2 0E 00 [09:36:59]MH_I2C_Read... [09:36:59]Read from MH i2c: E2 0E 00 44 36 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 00 [09:36:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:36:59]wFMCommunicate OK [09:36:59]SAM_PROTO_GetShiftState done [09:36:59]FM_GetShiftState done [09:36:59]opened in 1729470944 [09:36:59]opened+sec_in_day 1729557344 [09:36:59]quantity*price = 29034 [09:36:59]sum+1 = 29036 [09:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 44 21.10.2024 09:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165933 ФПД: 197347522023433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093717&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165933&fm=197347522023433&tin=02508201610067®Number=0000000000091764&sum=29000 [09:37:01]StoreToDocumentArchive [09:37:01]shift 535 fd 165933 [09:37:01]save to /storage/0535/doc_00165933 [09:37:01]save last doc name /storage/0535/doc_00165933 to /storage/kkm_last_doc_name [09:37:01]save OK [09:37:01]Clear old archive folders... [09:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:01]tlvbuf is 0163FB90 [09:37:01]SAM_PROTO_ClearQueue [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 09 00 00 [09:37:01]Write to MH i2c: E2 08 00 51 36 80 09 00 00 00 00 00 00 F9 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 51 36 00 90 00 FB [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]SAM_PROTO_ClearQueue done [09:37:01]KKMCreateOFDPacket [09:37:01]OFDProtocolAddRootSTLVToBuf [09:37:01]FM_MakeSignedData [09:37:01]FM_MakeSignedData [09:37:01]SAM_PROTO_SignData [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 0D 01 02 [09:37:01]Write to MH i2c: E2 08 00 52 36 80 0D 01 02 00 00 00 00 01 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 52 36 00 90 00 FC [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]wFMCommunicate request_size=255 [09:37:01]MH_SAM_APDU [09:37: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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CD 20 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 88 02 00 35 04 06 00 B3 [09:37:01]Write to MH i2c: E2 02 01 53 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CD 20 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 88 02 00 35 04 06 00 B3 00 00 D2 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 53 36 00 90 00 FD [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]wFMCommunicate request_size=10 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 0D 02 02 05 7C 8C F2 90 09 [09:37:01]Write to MH i2c: E2 0D 00 54 36 80 0D 02 02 05 00 7C 8C F2 90 09 00 00 A1 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 03 00 54 36 00 90 00 FE [09:37:01]RAPDU: 90 00 [09:37:01]wFMCommunicate OK [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 0D 03 02 [09:37:01]Write to MH i2c: E2 08 00 55 36 80 0D 03 02 00 00 00 00 06 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 0B 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 0B 00 55 36 00 47 3C F9 F3 9E 75 EF AD 90 00 25 [09:37:01]RAPDU: 47 3C F9 F3 9E 75 EF AD 90 00 [09:37:01]wFMCommunicate OK [09:37:01]SAM_PROTO_SignData done [09:37:01]FM_MakeSignedData done [09:37:01]CreateOFDProtocolMessage [09:37:01]wFMCommunicate request_size=4 [09:37:01]MH_SAM_APDU [09:37:01]CAPDU: 80 11 00 00 [09:37:01]Write to MH i2c: E2 08 00 56 36 80 11 00 00 00 00 00 00 06 [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:01]Read from MH i2c: E2 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 17 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: E2 17 00 56 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5E [09:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:37:01]wFMCommunicate OK [09:37:01]CreateOFDProtocolMessage done [09:37:01]OFDSenderStorePacket 165933 [09:37:01]StoreOFDPacket docnum=165933 [09:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 60 A3 07 01 52 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CD 20 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 88 02 00 35 04 06 00 B3 7C 8C F2 90 09 47 3C F9 F3 9E 75 EF AD [09:37:01]CheckFolder [09:37:01]dirname=/storage/ofd_packets [09:37:01]CheckFolder done [09:37:01]ProducePacketName [09:37:01]name=ofd_packets/00165933 [09:37:01]NVStorageSaveData ofd_packets/00165933 [09:37:01]File name is /storage/ofd_packets/00165933 [09:37:01]Write 301 bytes [09:37:01]NVStorageSaveData done [09:37:01]OFDSenderStorePacket done [09:37:01]KKMCreateOFDPacket done [09:37:01]NVStorageSaveData kkm_last_timestamp [09:37:01]File name is /storage/kkm_last_timestamp [09:37:01]Write 4 bytes [09:37:01]NVStorageSaveData done [09:37:01]ExternCall_PrintAddStr [09:37:01]wPrintStart [09:37:01]Write to MH i2c: 01 00 00 57 36 8D [09:37:01]Write i2c OK [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: 01 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: 01 07 00 [09:37:01]MH_I2C_Read... [09:37:01]Read from MH i2c: 01 07 00 57 36 00 00 00 00 00 FF 0F A2 [09:37:01]RasterBufferAndPrint [09:37:01]line Счет N : (1)220503 [09:37:01]line ИНН: 02508201610067 [09:37:01]line Контрольно-Кассовый Чек [09:37:01]line ПРОДАЖА [09:37:01]line ТРК (МРК, ГНК) : 13 [09:37:01]line Товар: 2710124130 [09:37:01]line Аи-92-К-5 [09:37:01]line 4.340 * 66.90 [09:37:01]line = 290.35 [09:37:01]line НДС 12% НСП 1% [09:37:01]line > о реализуемом товаре [09:37:01]line ОКРУГЛЕНИЕ: -0.35 [09:37:01]line ИТОГО: 290.00 [09:37:01]line Внесено: 290.00 [09:37:01]line СДАЧА: 0.00 [09:37:01]line НСП 1% : 2.57 [09:37:01]line НДС 12% : 30.83 [09:37:01]line Наличными: 290.00 [09:37:01]line Безнал.: 0.00 [09:37:01]line Место: АЗС № 161 "Партнер Нефть" [09:37:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:37:01]line СНО: Общий режим [09:37:01]line Чек 44 21.10.2024 09:37 [09:37:01]line Смена: 535 ФФД: 1.0 [09:37:01]line ЗНМ: 0300000104 [09:37:01]line РНМ: 0000000000091764 [09:37:01]line Версия ККМ: 001 [09:37:01]line ФМ: 0000000000871759 [09:37:01]line ФД: 165933 [09:37:01]line ФПД: 197347522023433 [09:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093717&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165933&fm=197347522023433&tin=02508201610067®Number=0000000000091764&sum=29000 [09:37:01]OFD Sender: Processing packet 165933 [packets to send 48, broken 47] [09:37:01]ProducePacketName [09:37:01]name=ofd_packets/00165933 [09:37:01]OFD Sender: To server: pG, [09:37:01]CommunicateWithHost lk.salyk.kg:30040 [09:37:01]ConnectInit lk.salyk.kg [09:37:01]written 0, free lines is 4095 [09:37:02]Connected sock=7 [09:37:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 60 A3 07 01 52 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 CD 20 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 88 02 00 35 04 06 00 B3 7C 8C F2 90 09 47 3C F9 F3 9E 75 EF AD [09:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 8D 47 00 7B 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 88 02 00 F4 03 04 00 3C C7 15 67 B6 04 01 00 00 73 3A 2F 31 75 67 6F F6 [09:37:02]CommunicateWithHost err = 0 [09:37:02]CheckOFDResponse [09:37:02]1017 (14) - 77093643461234 [09:37:02]1041 (16) - 0000000000871759 [09:37:02]1040 (4) - 165933 [09:37:02]1012 (4) - 21.10.2024 03:15 [09:37:02]1206 (1) - 0 [09:37:02]OFD Sender: Remove packet 165933 [09:37:02]ProducePacketName [09:37:02]name=ofd_packets/00165933 [09:37:02]NVStorageDeleteData [09:37:02]Write to MH i2c: 01 00 00 82 36 B8 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: 01 07 00 82 36 00 00 00 00 00 C0 0C 8B [09:37:02]RasterBufferAndPrint [09:37:02]line [09:37:02]line [09:37:02]line [09:37:02]line [09:37:02]line [09:37:02]written 0, free lines is 3273 [09:37:02]MH_Cut [09:37:02]Write to MH i2c: D1 01 00 89 36 01 91 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: D1 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: D1 01 00 [09:37:02]MH_I2C_Read... [09:37:02]Read from MH i2c: D1 01 00 89 36 00 90 [09:37:02]Write to MH i2c: 01 00 00 8A 36 C0 [09:37:02]Write i2c OK [09:37:02]MH_I2C_Read... [09:37:02]OFD Sender: No OFD packet to send [09:37:03]*** Cut start [09:37:03]*** Partial cut [09:37:03]*** CUTSNS_PIN = 1 [09:37:03]*** CUTSNS_PIN = 0 [09:37:03]*** Brake cut motor [09:37:03]Read from MH i2c: 01 [09:37:03]MH_I2C_Read... [09:37:03]*** Stop cut motor [09:37:03]*** Cut end [09:37:03]Read from MH i2c: 01 07 00 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: 01 07 00 8A 36 00 00 00 00 00 FF 0F D5 [09:37:03]process_action close_receipt done [09:37:03]requested_data is exist [09:37:03]produce_requested_data [09:37:03]requested_item fm.sn is exist - process it [09:37:03]wFMCommunicate request_size=4 [09:37:03]MH_SAM_APDU [09:37:03]CAPDU: 80 11 00 00 [09:37:03]Write to MH i2c: E2 08 00 8B 36 80 11 00 00 00 00 00 00 3B [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:03]Read from MH i2c: E2 [09:37:03]MH_I2C_Read... [09:37:03]Read from MH i2c: E2 17 00 [09:37:03]MH_I2C_Read... [09:37:03]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 35 39 90 00 93 [09:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:37:03]wFMCommunicate OK [09:37:03]requested_item fd.num is exist - process it [09:37:03]SAM_PROTO_GetFieldsCounters [09:37:03]wFMCommunicate request_size=4 [09:37:03]MH_SAM_APDU [09:37:03]CAPDU: 80 13 00 00 [09:37:03]Write to MH i2c: E2 08 00 8C 36 80 13 00 00 00 00 00 00 3E [09:37:03]Write i2c OK [09:37:03]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 62 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 62 00 8C 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [09: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:04]wFMCommunicate OK [09:37:04]SAM_PROTO_GetFieldsCounters done [09:37:04]requested_item shift.num is exist - process it [09:37:04]requested_item shift.opened is exist - process it [09:37:04]req_shift_opened [09:37:04]FM_GetShiftState [09:37:04]SAM_PROTO_GetShiftState [09:37:04]wFMCommunicate request_size=4 [09:37:04]MH_SAM_APDU [09:37:04]CAPDU: 80 13 01 00 [09:37:04]Write to MH i2c: E2 08 00 8D 36 80 13 01 00 00 00 00 00 40 [09:37:04]Write i2c OK [09:37:04]MH_I2C_Read... [09:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:04]Read from MH i2c: E2 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 0E 00 [09:37:04]MH_I2C_Read... [09:37:04]Read from MH i2c: E2 0E 00 8D 36 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 49 [09:37:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:37:04]wFMCommunicate OK [09:37:04]SAM_PROTO_GetShiftState done [09:37:04]FM_GetShiftState done [09:37:04]req_shift_opened done [09:37:04]requested_item shift.open_date is exist - process it [09:37:04]req_shift_open_date [09:37:04]req_shift_open_date done [09:37:04]produce_requested_data done [09:37:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165933,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:37:04]process_action_free close_receipt [09:37:04]json_value_free [09:37:04]json_value_free done [09:37:04]process_json_proto returns [09:37:04]Send response to host [09:37:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165933,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:37:04]free response buf [09:37:04]execute_script done [09:37:04]execute_script returns [09:37:04]free content buf [09:37:04]Sock 5.Close socket [09:37:04]Sock 5.Thread stoped [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:55]accept exits with 6 [09:38:55]New connection [09:38:55]New thread 3066920292 created [09:38:55]Thread 3066776932 joined [09:38:55]Waiting for new connection... [09:38:55] Sock 6.Parse request [09:38:55]Sock 6.Check first char [09:38:55]Sock 6.First char is OK [09:38:55]request: POST /json_proto HTTP/1.0 [09:38:55]Method: POST [09:38:55]URL: /json_proto [09:38:55]Method is POST - this is cgi request [09:38:55]url: /json_proto [09:38:55]query_string will be loaded in cgi processing [09:38:55]execute_cgi json_proto POST (null) [09:38:55]execute_cgi path=json_proto method=POST [09:38:55]POST find Content-Length [09:38:55]Host: 172.17.53.195:8080 [09:38:55]Content-Length: 677 [09:38:55]Content-Type: application/json [09:38:55] [09:38:55]POST finish read [09:38:55]Found Content-Length = 677 [09:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:55]execute_script... [09:38: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)220504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:55]POST & json_proto [09:38:55]process_json_proto [09:38:55]json parsed OK: [09:38:55]protocol is kg_v1.0 [09:38:55]action value=close_receipt [09:38:55]process_action close_receipt [09:38:55]cmd_close_receipt [09:38:55]MH_GetDate [09:38:55]Write to MH i2c: F0 00 00 8E 36 B3 [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: F0 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: F0 09 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: F0 09 00 8E 36 00 40 21 16 67 21 48 4A 65 B2 [09:38:55]GetLastDocTimeStamp 1729503437 [09:38:55]current date 1729503552 [09:38:55]FM_GetShiftState [09:38:55]SAM_PROTO_GetShiftState [09:38:55]wFMCommunicate request_size=4 [09:38:55]MH_SAM_APDU [09:38:55]CAPDU: 80 13 01 00 [09:38:55]Write to MH i2c: E2 08 00 8F 36 80 13 01 00 00 00 00 00 42 [09:38:55]Write i2c OK [09:38:55]MH_I2C_Read... [09:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:55]Read from MH i2c: E2 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 0E 00 [09:38:55]MH_I2C_Read... [09:38:55]Read from MH i2c: E2 0E 00 8F 36 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4B [09:38:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:38:55]wFMCommunicate OK [09:38:55]SAM_PROTO_GetShiftState done [09:38:55]FM_GetShiftState done [09:38:55]opened in 1729470944 [09:38:55]opened+sec_in_day 1729557344 [09:38:55]quantity*price = 20003 [09:38:55]sum+1 = 20004 [09:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 45 21.10.2024 09:39 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165934 ФПД: 109868896870366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165934&fm=109868896870366&tin=02508201610067®Number=0000000000091764&sum=20000 [09:38:56]StoreToDocumentArchive [09:38:56]shift 535 fd 165934 [09:38:56]save to /storage/0535/doc_00165934 [09:38:56]save last doc name /storage/0535/doc_00165934 to /storage/kkm_last_doc_name [09:38:56]save OK [09:38:56]Clear old archive folders... [09:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:56]tlvbuf is 014ED560 [09:38:56]SAM_PROTO_ClearQueue [09:38:56]wFMCommunicate request_size=4 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 09 00 00 [09:38:56]Write to MH i2c: E2 08 00 9C 36 80 09 00 00 00 00 00 00 44 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 9C 36 00 90 00 46 [09:38:56]RAPDU: 90 00 [09:38:56]wFMCommunicate OK [09:38:56]SAM_PROTO_ClearQueue done [09:38:56]KKMCreateOFDPacket [09:38:56]OFDProtocolAddRootSTLVToBuf [09:38:56]FM_MakeSignedData [09:38:56]FM_MakeSignedData [09:38:56]SAM_PROTO_SignData [09:38:56]wFMCommunicate request_size=4 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 0D 01 02 [09:38:56]Write to MH i2c: E2 08 00 9D 36 80 0D 01 02 00 00 00 00 4C [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 9D 36 00 90 00 47 [09:38:56]RAPDU: 90 00 [09:38:56]wFMCommunicate OK [09:38:56]wFMCommunicate request_size=255 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 40 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 88 02 00 35 04 06 00 63 [09:38:56]Write to MH i2c: E2 02 01 9E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 88 02 00 35 04 06 00 63 00 00 E3 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 9E 36 00 90 00 48 [09:38:56]RAPDU: 90 00 [09:38:56]wFMCommunicate OK [09:38:56]wFMCommunicate request_size=10 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 0D 02 02 05 EC D8 91 DF DE [09:38:56]Write to MH i2c: E2 0D 00 9F 36 80 0D 02 02 05 00 EC D8 91 DF DE 00 00 6B [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 03 00 9F 36 00 90 00 49 [09:38:56]RAPDU: 90 00 [09:38:56]wFMCommunicate OK [09:38:56]wFMCommunicate request_size=4 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 0D 03 02 [09:38:56]Write to MH i2c: E2 08 00 A0 36 80 0D 03 02 00 00 00 00 51 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:56]Read from MH i2c: E2 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 0B 00 [09:38:56]MH_I2C_Read... [09:38:56]Read from MH i2c: E2 0B 00 A0 36 00 F9 B0 D0 EA F3 E2 59 F8 90 00 DB [09:38:56]RAPDU: F9 B0 D0 EA F3 E2 59 F8 90 00 [09:38:56]wFMCommunicate OK [09:38:56]SAM_PROTO_SignData done [09:38:56]FM_MakeSignedData done [09:38:56]CreateOFDProtocolMessage [09:38:56]wFMCommunicate request_size=4 [09:38:56]MH_SAM_APDU [09:38:56]CAPDU: 80 11 00 00 [09:38:56]Write to MH i2c: E2 08 00 A1 36 80 11 00 00 00 00 00 00 51 [09:38:56]Write i2c OK [09:38:56]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 17 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 17 00 A1 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [09:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:38:57]wFMCommunicate OK [09:38:57]CreateOFDProtocolMessage done [09:38:57]OFDSenderStorePacket 165934 [09:38:57]StoreOFDPacket docnum=165934 [09:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8D 53 07 01 70 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 88 02 00 35 04 06 00 63 EC D8 91 DF DE F9 B0 D0 EA F3 E2 59 F8 [09:38:57]CheckFolder [09:38:57]dirname=/storage/ofd_packets [09:38:57]CheckFolder done [09:38:57]ProducePacketName [09:38:57]name=ofd_packets/00165934 [09:38:57]NVStorageSaveData ofd_packets/00165934 [09:38:57]File name is /storage/ofd_packets/00165934 [09:38:57]Write 301 bytes [09:38:57]NVStorageSaveData done [09:38:57]OFDSenderStorePacket done [09:38:57]KKMCreateOFDPacket done [09:38:57]NVStorageSaveData kkm_last_timestamp [09:38:57]File name is /storage/kkm_last_timestamp [09:38:57]Write 4 bytes [09:38:57]NVStorageSaveData done [09:38:57]ExternCall_PrintAddStr [09:38:57]wPrintStart [09:38:57]Write to MH i2c: 01 00 00 A2 36 D8 [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 A2 36 00 00 00 00 00 FF 0F ED [09:38:57]RasterBufferAndPrint [09:38:57]line Счет N : (1)220504 [09:38:57]line ИНН: 02508201610067 [09:38:57]line Контрольно-Кассовый Чек [09:38:57]line ПРОДАЖА [09:38:57]line ТРК (МРК, ГНК) : 23 [09:38:57]line Товар: 2710124130 [09:38:57]line Аи-92-К-5 [09:38:57]line 2.990 * 66.90 [09:38:57]line = 200.03 [09:38:57]line НДС 12% НСП 1% [09:38:57]line > о реализуемом товаре [09:38:57]line ОКРУГЛЕНИЕ: -0.03 [09:38:57]line ИТОГО: 200.00 [09:38:57]line Внесено: 200.00 [09:38:57]line СДАЧА: 0.00 [09:38:57]line НСП 1% : 1.77 [09:38:57]line НДС 12% : 21.24 [09:38:57]line Наличными: 200.00 [09:38:57]line Безнал.: 0.00 [09:38:57]line Место: АЗС № 161 "Партнер Нефть" [09:38:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:38:57]line СНО: Общий режим [09:38:57]line Чек 45 21.10.2024 09:39 [09:38:57]line Смена: 535 ФФД: 1.0 [09:38:57]line ЗНМ: 0300000104 [09:38:57]line РНМ: 0000000000091764 [09:38:57]line Версия ККМ: 001 [09:38:57]line ФМ: 0000000000871759 [09:38:57]line ФД: 165934 [09:38:57]line ФПД: 109868896870366 [09:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T093912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165934&fm=109868896870366&tin=02508201610067®Number=0000000000091764&sum=20000 [09:38:57]OFD Sender: Processing packet 165934 [packets to send 48, broken 47] [09:38:57]ProducePacketName [09:38:57]name=ofd_packets/00165934 [09:38:57]OFD Sender: To server: pG, [09:38:57]CommunicateWithHost lk.salyk.kg:30040 [09:38:57]ConnectInit lk.salyk.kg [09:38:57]written 0, free lines is 4095 [09:38:57]Connected sock=7 [09:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8D 53 07 01 70 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 40 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 88 02 00 35 04 06 00 63 EC D8 91 DF DE F9 B0 D0 EA F3 E2 59 F8 [09:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 09 47 00 5D BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 88 02 00 F4 03 04 00 AF C7 15 67 B6 04 01 00 00 9D 01 6C ED 71 E0 88 89 [09:38:57]CommunicateWithHost err = 0 [09:38:57]CheckOFDResponse [09:38:57]1017 (14) - 77093643461234 [09:38:57]1041 (16) - 0000000000871759 [09:38:57]1040 (4) - 165934 [09:38:57]1012 (4) - 21.10.2024 03:17 [09:38:57]1206 (1) - 0 [09:38:57]OFD Sender: Remove packet 165934 [09:38:57]ProducePacketName [09:38:57]name=ofd_packets/00165934 [09:38:57]NVStorageDeleteData [09:38:57]Write to MH i2c: 01 00 00 CD 36 03 [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: 01 07 00 CD 36 00 00 00 00 00 CB 0C E1 [09:38:57]RasterBufferAndPrint [09:38:57]line [09:38:57]line [09:38:57]line [09:38:57]line [09:38:57]line [09:38:57]written 0, free lines is 3285 [09:38:57]MH_Cut [09:38:57]Write to MH i2c: D1 01 00 D4 36 01 DC [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: D1 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: D1 01 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: D1 01 00 D4 36 00 DB [09:38:57]Write to MH i2c: 01 00 00 D5 36 0B [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:58]OFD Sender: No OFD packet to send [09:38:58]*** Cut start [09:38:58]*** Partial cut [09:38:58]*** CUTSNS_PIN = 1 [09:38:58]*** CUTSNS_PIN = 0 [09:38:58]*** Brake cut motor [09:38:59]Read from MH i2c: 01 [09:38:59]MH_I2C_Read... [09:38:59]*** Stop cut motor [09:38:59]*** Cut end [09:38:59]Read from MH i2c: 01 07 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 D5 36 00 00 00 00 00 FF 0F 20 [09:38:59]process_action close_receipt done [09:38:59]requested_data is exist [09:38:59]produce_requested_data [09:38:59]requested_item fm.sn is exist - process it [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 11 00 00 [09:38:59]Write to MH i2c: E2 08 00 D6 36 80 11 00 00 00 00 00 00 86 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 [09:38:59]MH_I2C_Read... [09:38:59]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 35 39 90 00 DE [09:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:38:59]wFMCommunicate OK [09:38:59]requested_item fd.num is exist - process it [09:38:59]SAM_PROTO_GetFieldsCounters [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 13 00 00 [09:38:59]Write to MH i2c: E2 08 00 D7 36 80 13 00 00 00 00 00 00 89 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 62 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 62 00 D7 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [09:38:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_GetFieldsCounters done [09:38:59]requested_item shift.num is exist - process it [09:38:59]requested_item shift.opened is exist - process it [09:38:59]req_shift_opened [09:38:59]FM_GetShiftState [09:38:59]SAM_PROTO_GetShiftState [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 13 01 00 [09:38:59]Write to MH i2c: E2 08 00 D8 36 80 13 01 00 00 00 00 00 8B [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0E 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0E 00 D8 36 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 94 [09:38:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_GetShiftState done [09:38:59]FM_GetShiftState done [09:38:59]req_shift_opened done [09:38:59]requested_item shift.open_date is exist - process it [09:38:59]req_shift_open_date [09:38:59]req_shift_open_date done [09:38:59]produce_requested_data done [09:38:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165934,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:38:59]process_action_free close_receipt [09:38:59]json_value_free [09:38:59]json_value_free done [09:38:59]process_json_proto returns [09:38:59]Send response to host [09:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165934,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:38:59]free response buf [09:38:59]execute_script done [09:38:59]execute_script returns [09:38:59]free content buf [09:38:59]Sock 6.Close socket [09:38:59]Sock 6.Thread stoped [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:49]accept exits with 5 [09:41:49]New connection [09:41:49]New thread 3066776932 created [09:41:49]Thread 3066920292 joined [09:41:49]Waiting for new connection... [09:41:49] Sock 5.Parse request [09:41:49]Sock 5.Check first char [09:41:49]Sock 5.First char is OK [09:41:49]request: POST /json_proto HTTP/1.0 [09:41:49]Method: POST [09:41:49]URL: /json_proto [09:41:49]Method is POST - this is cgi request [09:41:49]url: /json_proto [09:41:49]query_string will be loaded in cgi processing [09:41:49]execute_cgi json_proto POST (null) [09:41:49]execute_cgi path=json_proto method=POST [09:41:49]POST find Content-Length [09:41:49]Host: 172.17.53.195:8080 [09:41:49]Content-Length: 678 [09:41:49]Content-Type: application/json [09:41:49] [09:41:49]POST finish read [09:41:49]Found Content-Length = 678 [09:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:49]execute_script... [09: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)220505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:49]POST & json_proto [09:41:49]process_json_proto [09:41:49]json parsed OK: [09:41:49]protocol is kg_v1.0 [09:41:49]action value=close_receipt [09:41:49]process_action close_receipt [09:41:49]cmd_close_receipt [09:41:49]MH_GetDate [09:41:49]Write to MH i2c: F0 00 00 D9 36 FE [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: F0 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: F0 09 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: F0 09 00 D9 36 00 EE 21 16 67 21 48 4A 65 AB [09:41:49]GetLastDocTimeStamp 1729503552 [09:41:49]current date 1729503726 [09:41:49]FM_GetShiftState [09:41:49]SAM_PROTO_GetShiftState [09:41:49]wFMCommunicate request_size=4 [09:41:49]MH_SAM_APDU [09:41:49]CAPDU: 80 13 01 00 [09:41:49]Write to MH i2c: E2 08 00 DA 36 80 13 01 00 00 00 00 00 8D [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:49]Read from MH i2c: E2 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 0E 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: E2 0E 00 DA 36 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 96 [09:41:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:41:49]wFMCommunicate OK [09:41:49]SAM_PROTO_GetShiftState done [09:41:49]FM_GetShiftState done [09:41:49]opened in 1729470944 [09:41:49]opened+sec_in_day 1729557344 [09:41:49]quantity*price = 80061 [09:41:49]sum+1 = 80063 [09:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 46 21.10.2024 09:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165935 ФПД: 196239319904995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094206&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165935&fm=196239319904995&tin=02508201610067®Number=0000000000091764&sum=80000 [09:41:50]StoreToDocumentArchive [09:41:50]shift 535 fd 165935 [09:41:50]save to /storage/0535/doc_00165935 [09:41:50]save last doc name /storage/0535/doc_00165935 to /storage/kkm_last_doc_name [09:41:50]save OK [09:41:50]Clear old archive folders... [09:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:50]tlvbuf is 01456E90 [09:41:50]SAM_PROTO_ClearQueue [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 09 00 00 [09:41:50]Write to MH i2c: E2 08 00 E7 36 80 09 00 00 00 00 00 00 8F [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 E7 36 00 90 00 91 [09:41:50]RAPDU: 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_ClearQueue done [09:41:50]KKMCreateOFDPacket [09:41:50]OFDProtocolAddRootSTLVToBuf [09:41:50]FM_MakeSignedData [09:41:50]FM_MakeSignedData [09:41:50]SAM_PROTO_SignData [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 0D 01 02 [09:41:50]Write to MH i2c: E2 08 00 E8 36 80 0D 01 02 00 00 00 00 97 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 E8 36 00 90 00 92 [09:41:50]RAPDU: 90 00 [09:41:50]wFMCommunicate OK [09:41:50]wFMCommunicate request_size=255 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EE 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 88 02 00 35 04 06 00 B2 [09:41:50]Write to MH i2c: E2 02 01 E9 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 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EE 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 88 02 00 35 04 06 00 B2 00 00 D8 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 E9 36 00 90 00 93 [09:41:50]RAPDU: 90 00 [09:41:50]wFMCommunicate OK [09:41:50]wFMCommunicate request_size=10 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 0D 02 02 05 7A 86 F4 32 E3 [09:41:50]Write to MH i2c: E2 0D 00 EA 36 80 0D 02 02 05 00 7A 86 F4 32 E3 00 00 AD [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 03 00 EA 36 00 90 00 94 [09:41:50]RAPDU: 90 00 [09:41:50]wFMCommunicate OK [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 0D 03 02 [09:41:50]Write to MH i2c: E2 08 00 EB 36 80 0D 03 02 00 00 00 00 9C [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 0B 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 0B 00 EB 36 00 CC F2 53 02 FC A5 B8 7C 90 00 85 [09:41:50]RAPDU: CC F2 53 02 FC A5 B8 7C 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_SignData done [09:41:50]FM_MakeSignedData done [09:41:50]CreateOFDProtocolMessage [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 11 00 00 [09:41:50]Write to MH i2c: E2 08 00 EC 36 80 11 00 00 00 00 00 00 9C [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 EC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [09:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:41:50]wFMCommunicate OK [09:41:50]CreateOFDProtocolMessage done [09:41:50]OFDSenderStorePacket 165935 [09:41:50]StoreOFDPacket docnum=165935 [09:41:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 27 9A 07 01 4E 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 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EE 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 88 02 00 35 04 06 00 B2 7A 86 F4 32 E3 CC F2 53 02 FC A5 B8 7C [09:41:50]CheckFolder [09:41:50]dirname=/storage/ofd_packets [09:41:50]CheckFolder done [09:41:50]ProducePacketName [09:41:50]name=ofd_packets/00165935 [09:41:50]NVStorageSaveData ofd_packets/00165935 [09:41:50]File name is /storage/ofd_packets/00165935 [09:41:50]Write 301 bytes [09:41:50]NVStorageSaveData done [09:41:50]OFDSenderStorePacket done [09:41:50]KKMCreateOFDPacket done [09:41:50]NVStorageSaveData kkm_last_timestamp [09:41:50]File name is /storage/kkm_last_timestamp [09:41:50]Write 4 bytes [09:41:50]NVStorageSaveData done [09:41:50]ExternCall_PrintAddStr [09:41:50]wPrintStart [09:41:50]Write to MH i2c: 01 00 00 ED 36 23 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 ED 36 00 00 00 00 00 FF 0F 38 [09:41:50]RasterBufferAndPrint [09:41:50]line Счет N : (1)220505 [09:41:50]line ИНН: 02508201610067 [09:41:50]line Контрольно-Кассовый Чек [09:41:50]line ПРОДАЖА [09:41:50]line ТРК (МРК, ГНК) : 14 [09:41:50]line Товар: 2710124500 [09:41:50]line Аи-95-К-5 [09:41:50]line 10.790 * 74.20 [09:41:50]line = 800.62 [09:41:50]line НДС 12% НСП 1% [09:41:50]line > о реализуемом товаре [09:41:50]line ОКРУГЛЕНИЕ: -0.62 [09:41:50]line ИТОГО: 800.00 [09:41:50]line Внесено: 800.00 [09:41:50]line СДАЧА: 0.00 [09:41:50]line НСП 1% : 7.08 [09:41:50]line НДС 12% : 85.02 [09:41:50]line Наличными: 800.00 [09:41:50]line Безнал.: 0.00 [09:41:50]line Место: АЗС № 161 "Партнер Нефть" [09:41:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:41:50]line СНО: Общий режим [09:41:50]line Чек 46 21.10.2024 09:42 [09:41:50]line Смена: 535 ФФД: 1.0 [09:41:50]line ЗНМ: 0300000104 [09:41:50]line РНМ: 0000000000091764 [09:41:50]line Версия ККМ: 001 [09:41:50]line ФМ: 0000000000871759 [09:41:50]line ФД: 165935 [09:41:50]line ФПД: 196239319904995 [09:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094206&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165935&fm=196239319904995&tin=02508201610067®Number=0000000000091764&sum=80000 [09:41:51]OFD Sender: Processing packet 165935 [packets to send 48, broken 47] [09:41:51]ProducePacketName [09:41:51]name=ofd_packets/00165935 [09:41:51]OFD Sender: To server: pG, [09:41:51]CommunicateWithHost lk.salyk.kg:30040 [09:41:51]ConnectInit lk.salyk.kg [09:41:51]written 0, free lines is 4095 [09:41:51]Connected sock=7 [09: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 35 39 0F 01 00 00 27 9A 07 01 4E 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 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 EE 21 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 88 02 00 35 04 06 00 B2 7A 86 F4 32 E3 CC F2 53 02 FC A5 B8 7C [09: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 35 39 4F 00 00 00 43 07 47 00 1A 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 88 02 00 F4 03 04 00 5D C8 15 67 B6 04 01 00 00 53 E4 62 20 6F A2 2A 82 [09:41:51]CommunicateWithHost err = 0 [09:41:51]CheckOFDResponse [09:41:51]1017 (14) - 77093643461234 [09:41:51]1041 (16) - 0000000000871759 [09:41:51]1040 (4) - 165935 [09:41:51]1012 (4) - 21.10.2024 03:19 [09:41:51]1206 (1) - 0 [09:41:51]OFD Sender: Remove packet 165935 [09:41:51]ProducePacketName [09:41:51]name=ofd_packets/00165935 [09:41:51]NVStorageDeleteData [09:41:51]Write to MH i2c: 01 00 00 18 37 4F [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: 01 07 00 18 37 00 00 00 00 00 BE 0C 20 [09:41:51]RasterBufferAndPrint [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]line [09:41:51]written 0, free lines is 3271 [09:41:51]MH_Cut [09:41:51]Write to MH i2c: D1 01 00 1F 37 01 28 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 01 00 [09:41:51]MH_I2C_Read... [09:41:51]Read from MH i2c: D1 01 00 1F 37 00 27 [09:41:51]Write to MH i2c: 01 00 00 20 37 57 [09:41:51]Write i2c OK [09:41:51]MH_I2C_Read... [09:41:52]OFD Sender: No OFD packet to send [09:41:52]*** Cut start [09:41:52]*** Partial cut [09:41:52]*** CUTSNS_PIN = 1 [09:41:52]*** CUTSNS_PIN = 0 [09:41:52]*** Brake cut motor [09:41:53]Read from MH i2c: 01 [09:41:53]MH_I2C_Read... [09:41:53]*** Stop cut motor [09:41:53]*** Cut end [09:41:53]Read from MH i2c: 01 07 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: 01 07 00 20 37 00 00 00 00 00 FF 0F 6C [09:41:53]process_action close_receipt done [09:41:53]requested_data is exist [09:41:53]produce_requested_data [09:41:53]requested_item fm.sn is exist - process it [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 11 00 00 [09:41:53]Write to MH i2c: E2 08 00 21 37 80 11 00 00 00 00 00 00 D2 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 17 00 [09:41:53]MH_I2C_Read... [09:41:53]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 35 39 90 00 2A [09:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:41:53]wFMCommunicate OK [09:41:53]requested_item fd.num is exist - process it [09:41:53]SAM_PROTO_GetFieldsCounters [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 13 00 00 [09:41:53]Write to MH i2c: E2 08 00 22 37 80 13 00 00 00 00 00 00 D5 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 62 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 62 00 22 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [09: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:53]wFMCommunicate OK [09:41:53]SAM_PROTO_GetFieldsCounters done [09:41:53]requested_item shift.num is exist - process it [09:41:53]requested_item shift.opened is exist - process it [09:41:53]req_shift_opened [09:41:53]FM_GetShiftState [09:41:53]SAM_PROTO_GetShiftState [09:41:53]wFMCommunicate request_size=4 [09:41:53]MH_SAM_APDU [09:41:53]CAPDU: 80 13 01 00 [09:41:53]Write to MH i2c: E2 08 00 23 37 80 13 01 00 00 00 00 00 D7 [09:41:53]Write i2c OK [09:41:53]MH_I2C_Read... [09:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:53]Read from MH i2c: E2 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 0E 00 [09:41:53]MH_I2C_Read... [09:41:53]Read from MH i2c: E2 0E 00 23 37 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E0 [09:41:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:41:53]wFMCommunicate OK [09:41:53]SAM_PROTO_GetShiftState done [09:41:53]FM_GetShiftState done [09:41:53]req_shift_opened done [09:41:53]requested_item shift.open_date is exist - process it [09:41:53]req_shift_open_date [09:41:53]req_shift_open_date done [09:41:53]produce_requested_data done [09:41:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165935,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:41:53]process_action_free close_receipt [09:41:53]json_value_free [09:41:53]json_value_free done [09:41:53]process_json_proto returns [09:41:53]Send response to host [09:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165935,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:41:53]free response buf [09:41:53]execute_script done [09:41:53]execute_script returns [09:41:53]free content buf [09:41:53]Sock 5.Close socket [09:41:53]Sock 5.Thread stoped [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:35]accept exits with 6 [09:42:35]New connection [09:42:35]New thread 3066920292 created [09:42:35]Thread 3066776932 joined [09:42:35]Waiting for new connection... [09:42:35] Sock 6.Parse request [09:42:35]Sock 6.Check first char [09:42:35]Sock 6.First char is OK [09:42:35]request: POST /json_proto HTTP/1.0 [09:42:35]Method: POST [09:42:35]URL: /json_proto [09:42:35]Method is POST - this is cgi request [09:42:35]url: /json_proto [09:42:35]query_string will be loaded in cgi processing [09:42:35]execute_cgi json_proto POST (null) [09:42:35]execute_cgi path=json_proto method=POST [09:42:35]POST find Content-Length [09:42:35]Host: 172.17.53.195:8080 [09:42:35]Content-Length: 789 [09:42:35]Content-Type: application/json [09:42:35] [09:42:35]POST finish read [09:42:35]Found Content-Length = 789 [09:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 24.360, "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\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]execute_script... [09: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)220506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 24.360, "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\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:35]POST & json_proto [09:42:35]process_json_proto [09:42:35]json parsed OK: [09:42:35]protocol is kg_v1.0 [09:42:35]action value=close_receipt [09:42:35]process_action close_receipt [09:42:35]cmd_close_receipt [09:42:35]MH_GetDate [09:42:35]Write to MH i2c: F0 00 00 24 37 4A [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 09 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: F0 09 00 24 37 00 1D 22 16 67 21 48 4A 65 27 [09:42:35]GetLastDocTimeStamp 1729503726 [09:42:35]current date 1729503773 [09:42:35]FM_GetShiftState [09:42:35]SAM_PROTO_GetShiftState [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 13 01 00 [09:42:35]Write to MH i2c: E2 08 00 25 37 80 13 01 00 00 00 00 00 D9 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 0E 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 0E 00 25 37 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E2 [09:42:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:42:35]wFMCommunicate OK [09:42:35]SAM_PROTO_GetShiftState done [09:42:35]FM_GetShiftState done [09:42:35]opened in 1729470944 [09:42:35]opened+sec_in_day 1729557344 [09:42:35]quantity*price = 0 [09:42:35]sum+1 = 1 [09:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 47 21.10.2024 09:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165936 ФПД: 142266169584038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094253&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165936&fm=142266169584038&tin=02508201610067®Number=0000000000091764&sum=0 [09:42:36]StoreToDocumentArchive [09:42:36]shift 535 fd 165936 [09:42:36]save to /storage/0535/doc_00165936 [09:42:36]save last doc name /storage/0535/doc_00165936 to /storage/kkm_last_doc_name [09:42:36]save OK [09:42:36]Clear old archive folders... [09:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:42:36]tlvbuf is 015E9BB0 [09:42:36]SAM_PROTO_ClearQueue [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 09 00 00 [09:42:36]Write to MH i2c: E2 08 00 32 37 80 09 00 00 00 00 00 00 DB [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 32 37 00 90 00 DD [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_ClearQueue done [09:42:36]KKMCreateOFDPacket [09:42:36]OFDProtocolAddRootSTLVToBuf [09:42:36]FM_MakeSignedData [09:42:36]FM_MakeSignedData [09:42:36]SAM_PROTO_SignData [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 01 02 [09:42:36]Write to MH i2c: E2 08 00 33 37 80 0D 01 02 00 00 00 00 E3 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 33 37 00 90 00 DE [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]wFMCommunicate request_size=255 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 88 02 00 35 04 06 00 81 63 EC 80 [09:42:37]Write to MH i2c: E2 02 01 34 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 88 02 00 35 04 06 00 81 63 EC 80 00 00 DC [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]OFD Sender: No OFD packet to send [09:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 34 37 00 90 00 DF [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]wFMCommunicate request_size=7 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 02 02 02 69 A6 [09:42:37]Write to MH i2c: E2 0A 00 35 37 80 0D 02 02 02 00 69 A6 00 00 F9 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 03 00 35 37 00 90 00 E0 [09:42:37]RAPDU: 90 00 [09:42:37]wFMCommunicate OK [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 0D 03 02 [09:42:37]Write to MH i2c: E2 08 00 36 37 80 0D 03 02 00 00 00 00 E8 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 0B 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 0B 00 36 37 00 E3 EC 64 D9 F6 4E AF 73 90 00 5B [09:42:37]RAPDU: E3 EC 64 D9 F6 4E AF 73 90 00 [09:42:37]wFMCommunicate OK [09:42:37]SAM_PROTO_SignData done [09:42:37]FM_MakeSignedData done [09:42:37]CreateOFDProtocolMessage [09:42:37]wFMCommunicate request_size=4 [09:42:37]MH_SAM_APDU [09:42:37]CAPDU: 80 11 00 00 [09:42:37]Write to MH i2c: E2 08 00 37 37 80 11 00 00 00 00 00 00 E8 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:37]Read from MH i2c: E2 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 17 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: E2 17 00 37 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [09:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:42:37]wFMCommunicate OK [09:42:37]CreateOFDProtocolMessage done [09:42:37]OFDSenderStorePacket 165936 [09:42:37]StoreOFDPacket docnum=165936 [09:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 00 4D 04 01 EE BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 88 02 00 35 04 06 00 81 63 EC 80 69 A6 E3 EC 64 D9 F6 4E AF 73 [09:42:37]CheckFolder [09:42:37]dirname=/storage/ofd_packets [09:42:37]CheckFolder done [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00165936 [09:42:37]NVStorageSaveData ofd_packets/00165936 [09:42:37]File name is /storage/ofd_packets/00165936 [09:42:37]Write 298 bytes [09:42:37]NVStorageSaveData done [09:42:37]OFDSenderStorePacket done [09:42:37]KKMCreateOFDPacket done [09:42:37]NVStorageSaveData kkm_last_timestamp [09:42:37]File name is /storage/kkm_last_timestamp [09:42:37]Write 4 bytes [09:42:37]NVStorageSaveData done [09:42:37]ExternCall_PrintAddStr [09:42:37]wPrintStart [09:42:37]Write to MH i2c: 01 00 00 38 37 6F [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 38 37 00 00 00 00 00 FF 0F 84 [09:42:37]RasterBufferAndPrint [09:42:37]line Счет N : (1)220506 [09:42:37]line ИНН: 02508201610067 [09:42:37]line Контрольно-Кассовый Чек [09:42:37]line ПРОДАЖА [09:42:37]line ТРК (МРК, ГНК) : 21 [09:42:37]line Товар: 2710194210 [09:42:37]line ДТ-К-5 [09:42:37]line 24.360 * 0.00 [09:42:37]line = 0.00 [09:42:37]line НДС 12% НСП 1% [09:42:37]line > о реализуемом товаре [09:42:37]line ИТОГО: 0.00 [09:42:37]line НСП 1% : 0.00 [09:42:37]line НДС 12% : 0.00 [09:42:37]line Наличными: 0.00 [09:42:37]line Безнал.: 0.00 [09:42:37]line Место: АЗС № 161 "Партнер Нефть" [09:42:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:42:37]line СНО: Общий режим [09:42:37]line Чек 47 21.10.2024 09:42 [09:42:37]line Смена: 535 ФФД: 1.0 [09:42:37]line ЗНМ: 0300000104 [09:42:37]line РНМ: 0000000000091764 [09:42:37]line Версия ККМ: 001 [09:42:37]line Талоны: Топливная Карта [09:42:37]line 38866 [09:42:37]line ФМ: 0000000000871759 [09:42:37]line ФД: 165936 [09:42:37]line ФПД: 142266169584038 [09:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094253&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165936&fm=142266169584038&tin=02508201610067®Number=0000000000091764&sum=0 [09:42:37]OFD Sender: Processing packet 165936 [packets to send 48, broken 47] [09:42:37]ProducePacketName [09:42:37]name=ofd_packets/00165936 [09:42:37]OFD Sender: To server: pG, [09:42:37]CommunicateWithHost lk.salyk.kg:30040 [09:42:37]ConnectInit lk.salyk.kg [09:42:37]written 0, free lines is 4095 [09:42:37]Connected sock=5 [09:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 00 4D 04 01 EE BC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 28 5F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 1D 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 88 02 00 35 04 06 00 81 63 EC 80 69 A6 E3 EC 64 D9 F6 4E AF 73 [09:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E2 B2 47 00 8A DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 88 02 00 F4 03 04 00 8C C8 15 67 B6 04 01 00 00 48 18 E5 82 CC 77 BA 50 [09:42:38]CommunicateWithHost err = 0 [09:42:38]CheckOFDResponse [09:42:38]1017 (14) - 77093643461234 [09:42:38]1041 (16) - 0000000000871759 [09:42:38]1040 (4) - 165936 [09:42:38]1012 (4) - 21.10.2024 03:20 [09:42:38]1206 (1) - 0 [09:42:38]OFD Sender: Remove packet 165936 [09:42:38]ProducePacketName [09:42:38]name=ofd_packets/00165936 [09:42:38]NVStorageDeleteData [09:42:38]Write to MH i2c: 01 00 00 62 37 99 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: 01 07 00 62 37 00 00 00 00 00 C6 0C 72 [09:42:38]RasterBufferAndPrint [09:42:38]line [09:42:38]line [09:42:38]line [09:42:38]line [09:42:38]line [09:42:38]written 0, free lines is 3277 [09:42:38]MH_Cut [09:42:38]Write to MH i2c: D1 01 00 69 37 01 72 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: D1 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: D1 01 00 [09:42:38]MH_I2C_Read... [09:42:38]Read from MH i2c: D1 01 00 69 37 00 71 [09:42:38]Write to MH i2c: 01 00 00 6A 37 A1 [09:42:38]Write i2c OK [09:42:38]MH_I2C_Read... [09:42:38]OFD Sender: No OFD packet to send [09:42:39]*** Cut start [09:42:39]*** Partial cut [09:42:39]*** CUTSNS_PIN = 1 [09:42:39]*** CUTSNS_PIN = 0 [09:42:39]*** Brake cut motor [09:42:39]Read from MH i2c: 01 [09:42:39]MH_I2C_Read... [09:42:39]*** Stop cut motor [09:42:39]*** Cut end [09:42:39]Read from MH i2c: 01 07 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 6A 37 00 00 00 00 00 FF 0F B6 [09:42:39]process_action close_receipt done [09:42:39]requested_data is exist [09:42:39]produce_requested_data [09:42:39]requested_item fm.sn is exist - process it [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 11 00 00 [09:42:39]Write to MH i2c: E2 08 00 6B 37 80 11 00 00 00 00 00 00 1C [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 6B 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [09:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:42:39]wFMCommunicate OK [09:42:39]requested_item fd.num is exist - process it [09:42:39]SAM_PROTO_GetFieldsCounters [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 00 00 [09:42:39]Write to MH i2c: E2 08 00 6C 37 80 13 00 00 00 00 00 00 1F [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 62 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 62 00 6C 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [09:42:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetFieldsCounters done [09:42:39]requested_item shift.num is exist - process it [09:42:39]requested_item shift.opened is exist - process it [09:42:39]req_shift_opened [09:42:39]FM_GetShiftState [09:42:39]SAM_PROTO_GetShiftState [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 01 00 [09:42:39]Write to MH i2c: E2 08 00 6D 37 80 13 01 00 00 00 00 00 21 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 0E 00 6D 37 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2A [09:42:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:42:39]wFMCommunicate OK [09:42:39]SAM_PROTO_GetShiftState done [09:42:39]FM_GetShiftState done [09:42:39]req_shift_opened done [09:42:39]requested_item shift.open_date is exist - process it [09:42:39]req_shift_open_date [09:42:39]req_shift_open_date done [09:42:39]produce_requested_data done [09:42:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165936,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:42:39]process_action_free close_receipt [09:42:39]json_value_free [09:42:39]json_value_free done [09:42:39]process_json_proto returns [09:42:39]Send response to host [09:42:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165936,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:42:39]free response buf [09:42:39]execute_script done [09:42:39]execute_script returns [09:42:39]free content buf [09:42:39]Sock 6.Close socket [09:42:39]Sock 6.Thread stoped [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:56]accept exits with 7 [09:43:56]New connection [09:43:56]New thread 3066776932 created [09:43:56]Thread 3066920292 joined [09:43:56]Waiting for new connection... [09:43:56] Sock 7.Parse request [09:43:56]Sock 7.Check first char [09:43:56]Sock 7.First char is OK [09:43:56]request: POST /json_proto HTTP/1.0 [09:43:56]Method: POST [09:43:56]URL: /json_proto [09:43:56]Method is POST - this is cgi request [09:43:56]url: /json_proto [09:43:56]query_string will be loaded in cgi processing [09:43:56]execute_cgi json_proto POST (null) [09:43:56]execute_cgi path=json_proto method=POST [09:43:56]POST find Content-Length [09:43:56]Host: 172.17.53.195:8080 [09:43:56]Content-Length: 682 [09:43:56]Content-Type: application/json [09:43:56] [09:43:56]POST finish read [09:43:56]Found Content-Length = 682 [09:43:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:56]execute_script... [09:43: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)220508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:56]POST & json_proto [09:43:56]process_json_proto [09:43:56]json parsed OK: [09:43:56]protocol is kg_v1.0 [09:43:56]action value=close_receipt [09:43:56]process_action close_receipt [09:43:56]cmd_close_receipt [09:43:56]MH_GetDate [09:43:56]Write to MH i2c: F0 00 00 6E 37 94 [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: F0 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: F0 09 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: F0 09 00 6E 37 00 6E 22 16 67 21 48 4A 65 C2 [09:43:56]GetLastDocTimeStamp 1729503773 [09:43:56]current date 1729503854 [09:43:56]FM_GetShiftState [09:43:56]SAM_PROTO_GetShiftState [09:43:56]wFMCommunicate request_size=4 [09:43:56]MH_SAM_APDU [09:43:56]CAPDU: 80 13 01 00 [09:43:56]Write to MH i2c: E2 08 00 6F 37 80 13 01 00 00 00 00 00 23 [09:43:56]Write i2c OK [09:43:56]MH_I2C_Read... [09:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:56]Read from MH i2c: E2 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 0E 00 [09:43:56]MH_I2C_Read... [09:43:56]Read from MH i2c: E2 0E 00 6F 37 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2C [09:43:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:43:56]wFMCommunicate OK [09:43:56]SAM_PROTO_GetShiftState done [09:43:56]FM_GetShiftState done [09:43:56]opened in 1729470944 [09:43:56]opened+sec_in_day 1729557344 [09:43:56]quantity*price = 100015 [09:43:56]sum+1 = 100017 [09:43:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 48 21.10.2024 09:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165937 ФПД: 244579742812503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165937&fm=244579742812503&tin=02508201610067®Number=0000000000091764&sum=100000 [09:43:57]StoreToDocumentArchive [09:43:57]shift 535 fd 165937 [09:43:58]save to /storage/0535/doc_00165937 [09:43:58]save last doc name /storage/0535/doc_00165937 to /storage/kkm_last_doc_name [09:43:58]save OK [09:43:58]Clear old archive folders... [09:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:58]tlvbuf is 0177AAF0 [09:43:58]SAM_PROTO_ClearQueue [09:43:58]wFMCommunicate request_size=4 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 09 00 00 [09:43:58]Write to MH i2c: E2 08 00 7C 37 80 09 00 00 00 00 00 00 25 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 7C 37 00 90 00 27 [09:43:58]RAPDU: 90 00 [09:43:58]wFMCommunicate OK [09:43:58]SAM_PROTO_ClearQueue done [09:43:58]KKMCreateOFDPacket [09:43:58]OFDProtocolAddRootSTLVToBuf [09:43:58]FM_MakeSignedData [09:43:58]FM_MakeSignedData [09:43:58]SAM_PROTO_SignData [09:43:58]wFMCommunicate request_size=4 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 0D 01 02 [09:43:58]Write to MH i2c: E2 08 00 7D 37 80 0D 01 02 00 00 00 00 2D [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 7D 37 00 90 00 28 [09:43:58]RAPDU: 90 00 [09:43:58]wFMCommunicate OK [09:43:58]wFMCommunicate request_size=255 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6E 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 88 02 00 35 04 06 00 DE [09:43:58]Write to MH i2c: E2 02 01 7E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6E 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 88 02 00 35 04 06 00 DE 00 00 AC [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [09:43:58]RAPDU: 90 00 [09:43:58]wFMCommunicate OK [09:43:58]wFMCommunicate request_size=10 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 0D 02 02 05 71 A8 B0 89 57 [09:43:58]Write to MH i2c: E2 0D 00 7F 37 80 0D 02 02 05 00 71 A8 B0 89 57 00 00 E3 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 03 00 7F 37 00 90 00 2A [09:43:58]RAPDU: 90 00 [09:43:58]wFMCommunicate OK [09:43:58]wFMCommunicate request_size=4 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 0D 03 02 [09:43:58]Write to MH i2c: E2 08 00 80 37 80 0D 03 02 00 00 00 00 32 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 0B 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 0B 00 80 37 00 6E 75 07 DD 4F 06 6C CB 90 00 86 [09:43:58]RAPDU: 6E 75 07 DD 4F 06 6C CB 90 00 [09:43:58]wFMCommunicate OK [09:43:58]SAM_PROTO_SignData done [09:43:58]FM_MakeSignedData done [09:43:58]CreateOFDProtocolMessage [09:43:58]wFMCommunicate request_size=4 [09:43:58]MH_SAM_APDU [09:43:58]CAPDU: 80 11 00 00 [09:43:58]Write to MH i2c: E2 08 00 81 37 80 11 00 00 00 00 00 00 32 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:58]Read from MH i2c: E2 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 17 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: E2 17 00 81 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [09:43:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:43:58]wFMCommunicate OK [09:43:58]CreateOFDProtocolMessage done [09:43:58]OFDSenderStorePacket 165937 [09:43:58]StoreOFDPacket docnum=165937 [09:43:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 55 07 01 C9 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6E 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 88 02 00 35 04 06 00 DE 71 A8 B0 89 57 6E 75 07 DD 4F 06 6C CB [09:43:58]CheckFolder [09:43:58]dirname=/storage/ofd_packets [09:43:58]CheckFolder done [09:43:58]ProducePacketName [09:43:58]name=ofd_packets/00165937 [09:43:58]NVStorageSaveData ofd_packets/00165937 [09:43:58]File name is /storage/ofd_packets/00165937 [09:43:58]Write 301 bytes [09:43:58]NVStorageSaveData done [09:43:58]OFDSenderStorePacket done [09:43:58]KKMCreateOFDPacket done [09:43:58]NVStorageSaveData kkm_last_timestamp [09:43:58]File name is /storage/kkm_last_timestamp [09:43:58]Write 4 bytes [09:43:58]NVStorageSaveData done [09:43:58]ExternCall_PrintAddStr [09:43:58]wPrintStart [09:43:58]Write to MH i2c: 01 00 00 82 37 B9 [09:43:58]Write i2c OK [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 [09:43:58]MH_I2C_Read... [09:43:58]Read from MH i2c: 01 07 00 82 37 00 00 00 00 00 FF 0F CE [09:43:58]RasterBufferAndPrint [09:43:58]line Счет N : (1)220508 [09:43:58]line ИНН: 02508201610067 [09:43:58]line Контрольно-Кассовый Чек [09:43:58]line ПРОДАЖА [09:43:58]line ТРК (МРК, ГНК) : 33 [09:43:58]line Товар: 2710124130 [09:43:58]line Аи-92-К-5 [09:43:58]line 14.950 * 66.90 [09:43:58]line = 1000.16 [09:43:58]line НДС 12% НСП 1% [09:43:58]line > о реализуемом товаре [09:43:58]line ОКРУГЛЕНИЕ: -0.16 [09:43:58]line ИТОГО: 1000.00 [09:43:58]line Внесено: 1000.00 [09:43:58]line СДАЧА: 0.00 [09:43:58]line НСП 1% : 8.85 [09:43:58]line НДС 12% : 106.21 [09:43:58]line Наличными: 1000.00 [09:43:58]line Безнал.: 0.00 [09:43:58]line Место: АЗС № 161 "Партнер Нефть" [09:43:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:43:58]line СНО: Общий режим [09:43:58]line Чек 48 21.10.2024 09:44 [09:43:58]line Смена: 535 ФФД: 1.0 [09:43:58]line ЗНМ: 0300000104 [09:43:58]line РНМ: 0000000000091764 [09:43:58]line Версия ККМ: 001 [09:43:58]line ФМ: 0000000000871759 [09:43:58]line ФД: 165937 [09:43:58]line ФПД: 244579742812503 [09:43:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165937&fm=244579742812503&tin=02508201610067®Number=0000000000091764&sum=100000 [09:43:58]OFD Sender: Processing packet 165937 [packets to send 48, broken 47] [09:43:58]ProducePacketName [09:43:58]name=ofd_packets/00165937 [09:43:58]OFD Sender: To server: pG, [09:43:58]CommunicateWithHost lk.salyk.kg:30040 [09:43:58]ConnectInit lk.salyk.kg [09:43:58]written 0, free lines is 4095 [09:43:58]Connected sock=6 [09:43:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 55 07 01 C9 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 6E 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 88 02 00 35 04 06 00 DE 71 A8 B0 89 57 6E 75 07 DD 4F 06 6C CB [09:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DB 21 47 00 7A 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 88 02 00 F4 03 04 00 DD C8 15 67 B6 04 01 00 00 B6 03 32 2C BC 08 9E E7 [09:43:59]CommunicateWithHost err = 0 [09:43:59]CheckOFDResponse [09:43:59]1017 (14) - 77093643461234 [09:43:59]1041 (16) - 0000000000871759 [09:43:59]1040 (4) - 165937 [09:43:59]1012 (4) - 21.10.2024 03:22 [09:43:59]1206 (1) - 0 [09:43:59]OFD Sender: Remove packet 165937 [09:43:59]ProducePacketName [09:43:59]name=ofd_packets/00165937 [09:43:59]NVStorageDeleteData [09:43:59]Write to MH i2c: 01 00 00 AD 37 E4 [09:43:59]Write i2c OK [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: 01 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: 01 07 00 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: 01 07 00 AD 37 00 00 00 00 00 B5 0C AC [09:43:59]RasterBufferAndPrint [09:43:59]line [09:43:59]line [09:43:59]line [09:43:59]line [09:43:59]line [09:43:59]written 0, free lines is 3260 [09:43:59]MH_Cut [09:43:59]Write to MH i2c: D1 01 00 B4 37 01 BD [09:43:59]Write i2c OK [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: D1 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: D1 01 00 [09:43:59]MH_I2C_Read... [09:43:59]Read from MH i2c: D1 01 00 B4 37 00 BC [09:43:59]Write to MH i2c: 01 00 00 B5 37 EC [09:43:59]Write i2c OK [09:43:59]MH_I2C_Read... [09:43:59]OFD Sender: No OFD packet to send [09:44:00]*** Cut start [09:44:00]*** Partial cut [09:44:00]*** CUTSNS_PIN = 1 [09:44:00]*** CUTSNS_PIN = 0 [09:44:00]*** Brake cut motor [09:44:00]Read from MH i2c: 01 [09:44:00]MH_I2C_Read... [09:44:00]*** Stop cut motor [09:44:00]*** Cut end [09:44:00]Read from MH i2c: 01 07 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: 01 07 00 B5 37 00 00 00 00 00 FF 0F 01 [09:44:00]process_action close_receipt done [09:44:00]requested_data is exist [09:44:00]produce_requested_data [09:44:00]requested_item fm.sn is exist - process it [09:44:00]wFMCommunicate request_size=4 [09:44:00]MH_SAM_APDU [09:44:00]CAPDU: 80 11 00 00 [09:44:00]Write to MH i2c: E2 08 00 B6 37 80 11 00 00 00 00 00 00 67 [09:44:00]Write i2c OK [09:44:00]MH_I2C_Read... [09:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:00]Read from MH i2c: E2 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 17 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 17 00 B6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [09:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:00]wFMCommunicate OK [09:44:00]requested_item fd.num is exist - process it [09:44:00]SAM_PROTO_GetFieldsCounters [09:44:00]wFMCommunicate request_size=4 [09:44:00]MH_SAM_APDU [09:44:00]CAPDU: 80 13 00 00 [09:44:00]Write to MH i2c: E2 08 00 B7 37 80 13 00 00 00 00 00 00 6A [09:44:00]Write i2c OK [09:44:00]MH_I2C_Read... [09:44:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:00]Read from MH i2c: E2 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 62 00 [09:44:00]MH_I2C_Read... [09:44:00]Read from MH i2c: E2 62 00 B7 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09:44:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:00]wFMCommunicate OK [09:44:00]SAM_PROTO_GetFieldsCounters done [09:44:00]requested_item shift.num is exist - process it [09:44:00]requested_item shift.opened is exist - process it [09:44:00]req_shift_opened [09:44:00]FM_GetShiftState [09:44:00]SAM_PROTO_GetShiftState [09:44:00]wFMCommunicate request_size=4 [09:44:00]MH_SAM_APDU [09:44:00]CAPDU: 80 13 01 00 [09:44:00]Write to MH i2c: E2 08 00 B8 37 80 13 01 00 00 00 00 00 6C [09:44:00]Write i2c OK [09:44:00]MH_I2C_Read... [09:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:01]Read from MH i2c: E2 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: E2 0E 00 [09:44:01]MH_I2C_Read... [09:44:01]Read from MH i2c: E2 0E 00 B8 37 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 75 [09:44:01]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:44:01]wFMCommunicate OK [09:44:01]SAM_PROTO_GetShiftState done [09:44:01]FM_GetShiftState done [09:44:01]req_shift_opened done [09:44:01]requested_item shift.open_date is exist - process it [09:44:01]req_shift_open_date [09:44:01]req_shift_open_date done [09:44:01]produce_requested_data done [09:44:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165937,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:44:01]process_action_free close_receipt [09:44:01]json_value_free [09:44:01]json_value_free done [09:44:01]process_json_proto returns [09:44:01]Send response to host [09:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165937,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:44:01]free response buf [09:44:01]execute_script done [09:44:01]execute_script returns [09:44:01]free content buf [09:44:01]Sock 7.Close socket [09:44:01]Sock 7.Thread stoped [09:44:04]OFD Sender: No OFD packet to send [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:21]accept exits with 5 [09:44:21]New connection [09:44:21]New thread 3066920292 created [09:44:21]Thread 3066776932 joined [09:44:21]Waiting for new connection... [09:44:21] Sock 5.Parse request [09:44:21]Sock 5.Check first char [09:44:21]Sock 5.First char is OK [09:44:21]request: POST /json_proto HTTP/1.0 [09:44:21]Method: POST [09:44:21]URL: /json_proto [09:44:21]Method is POST - this is cgi request [09:44:21]url: /json_proto [09:44:21]query_string will be loaded in cgi processing [09:44:21]execute_cgi json_proto POST (null) [09:44:21]execute_cgi path=json_proto method=POST [09:44:21]POST find Content-Length [09:44:21]Host: 172.17.53.195:8080 [09:44:21]Content-Length: 792 [09:44:21]Content-Type: application/json [09:44:21] [09:44:21]POST finish read [09:44:21]Found Content-Length = 792 [09:44:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53359", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:21]execute_script... [09:44: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)220507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53359", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:21]POST & json_proto [09:44:21]process_json_proto [09:44:21]json parsed OK: [09:44:21]protocol is kg_v1.0 [09:44:21]action value=close_receipt [09:44:21]process_action close_receipt [09:44:21]cmd_close_receipt [09:44:21]MH_GetDate [09:44:21]Write to MH i2c: F0 00 00 B9 37 DF [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: F0 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: F0 09 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: F0 09 00 B9 37 00 87 22 16 67 21 48 4A 65 26 [09:44:21]GetLastDocTimeStamp 1729503854 [09:44:21]current date 1729503879 [09:44:21]FM_GetShiftState [09:44:21]SAM_PROTO_GetShiftState [09:44:21]wFMCommunicate request_size=4 [09:44:21]MH_SAM_APDU [09:44:21]CAPDU: 80 13 01 00 [09:44:21]Write to MH i2c: E2 08 00 BA 37 80 13 01 00 00 00 00 00 6E [09:44:21]Write i2c OK [09:44:21]MH_I2C_Read... [09:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:21]Read from MH i2c: E2 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 [09:44:21]MH_I2C_Read... [09:44:21]Read from MH i2c: E2 0E 00 BA 37 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 77 [09:44:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:44:21]wFMCommunicate OK [09:44:21]SAM_PROTO_GetShiftState done [09:44:21]FM_GetShiftState done [09:44:21]opened in 1729470944 [09:44:21]opened+sec_in_day 1729557344 [09:44:21]quantity*price = 0 [09:44:21]sum+1 = 1 [09:44:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 49 21.10.2024 09:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 53359 ФМ: 0000000000871759 ФД: 165938 ФПД: 17713347439595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094439&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165938&fm=17713347439595&tin=02508201610067®Number=0000000000091764&sum=0 [09:44:22]StoreToDocumentArchive [09:44:22]shift 535 fd 165938 [09:44:22]save to /storage/0535/doc_00165938 [09:44:22]save last doc name /storage/0535/doc_00165938 to /storage/kkm_last_doc_name [09:44:22]save OK [09:44:22]Clear old archive folders... [09:44:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:22]tlvbuf is 01A0AD60 [09:44:22]SAM_PROTO_ClearQueue [09:44:22]wFMCommunicate request_size=4 [09:44:22]MH_SAM_APDU [09:44:22]CAPDU: 80 09 00 00 [09:44:22]Write to MH i2c: E2 08 00 C7 37 80 09 00 00 00 00 00 00 70 [09:44:22]Write i2c OK [09:44:22]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 C7 37 00 90 00 72 [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]SAM_PROTO_ClearQueue done [09:44:23]KKMCreateOFDPacket [09:44:23]OFDProtocolAddRootSTLVToBuf [09:44:23]FM_MakeSignedData [09:44:23]FM_MakeSignedData [09:44:23]SAM_PROTO_SignData [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 0D 01 02 [09:44:23]Write to MH i2c: E2 08 00 C8 37 80 0D 01 02 00 00 00 00 78 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 C8 37 00 90 00 73 [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]wFMCommunicate request_size=255 [09:44:23]MH_SAM_APDU [09:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 88 02 00 35 04 06 00 10 [09:44:23]Write to MH i2c: E2 02 01 C9 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 31 00 00 00 F4 03 04 00 87 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 88 02 00 35 04 06 00 10 00 00 37 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 C9 37 00 90 00 74 [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]wFMCommunicate request_size=10 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 0D 02 02 05 1C 35 C8 2B EB [09:44:23]Write to MH i2c: E2 0D 00 CA 37 80 0D 02 02 05 00 1C 35 C8 2B EB 00 00 B4 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 03 00 CA 37 00 90 00 75 [09:44:23]RAPDU: 90 00 [09:44:23]wFMCommunicate OK [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 0D 03 02 [09:44:23]Write to MH i2c: E2 08 00 CB 37 80 0D 03 02 00 00 00 00 7D [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 0B 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 0B 00 CB 37 00 CA 66 C2 B1 73 40 CF 78 90 00 1B [09:44:23]RAPDU: CA 66 C2 B1 73 40 CF 78 90 00 [09:44:23]wFMCommunicate OK [09:44:23]SAM_PROTO_SignData done [09:44:23]FM_MakeSignedData done [09:44:23]CreateOFDProtocolMessage [09:44:23]wFMCommunicate request_size=4 [09:44:23]MH_SAM_APDU [09:44:23]CAPDU: 80 11 00 00 [09:44:23]Write to MH i2c: E2 08 00 CC 37 80 11 00 00 00 00 00 00 7D [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:23]Read from MH i2c: E2 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 17 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: E2 17 00 CC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [09:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:23]wFMCommunicate OK [09:44:23]CreateOFDProtocolMessage done [09:44:23]OFDSenderStorePacket 165938 [09:44:23]StoreOFDPacket docnum=165938 [09:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 43 07 01 55 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 88 02 00 35 04 06 00 10 1C 35 C8 2B EB CA 66 C2 B1 73 40 CF 78 [09:44:23]CheckFolder [09:44:23]dirname=/storage/ofd_packets [09:44:23]CheckFolder done [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00165938 [09:44:23]NVStorageSaveData ofd_packets/00165938 [09:44:23]File name is /storage/ofd_packets/00165938 [09:44:23]Write 301 bytes [09:44:23]NVStorageSaveData done [09:44:23]OFDSenderStorePacket done [09:44:23]KKMCreateOFDPacket done [09:44:23]NVStorageSaveData kkm_last_timestamp [09:44:23]File name is /storage/kkm_last_timestamp [09:44:23]Write 4 bytes [09:44:23]NVStorageSaveData done [09:44:23]ExternCall_PrintAddStr [09:44:23]wPrintStart [09:44:23]Write to MH i2c: 01 00 00 CD 37 04 [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 CD 37 00 00 00 00 00 FF 0F 19 [09:44:23]RasterBufferAndPrint [09:44:23]line Счет N : (1)220507 [09:44:23]line ИНН: 02508201610067 [09:44:23]line Контрольно-Кассовый Чек [09:44:23]line ПРОДАЖА [09:44:23]line ТРК (МРК, ГНК) : 44 [09:44:23]line Товар: 2710124500 [09:44:23]line Аи-95-К-5 [09:44:23]line 20.000 * 0.00 [09:44:23]line = 0.00 [09:44:23]line НДС 12% НСП 1% [09:44:23]line > о реализуемом товаре [09:44:23]line ИТОГО: 0.00 [09:44:23]line НСП 1% : 0.00 [09:44:23]line НДС 12% : 0.00 [09:44:23]line Наличными: 0.00 [09:44:23]line Безнал.: 0.00 [09:44:23]line Место: АЗС № 161 "Партнер Нефть" [09:44:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:44:23]line СНО: Общий режим [09:44:23]line Чек 49 21.10.2024 09:44 [09:44:23]line Смена: 535 ФФД: 1.0 [09:44:23]line ЗНМ: 0300000104 [09:44:23]line РНМ: 0000000000091764 [09:44:23]line Версия ККМ: 001 [09:44:23]line Талоны: Топливная Карта [09:44:23]line 53359 [09:44:23]line ФМ: 0000000000871759 [09:44:23]line ФД: 165938 [09:44:23]line ФПД: 17713347439595 [09:44:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094439&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165938&fm=17713347439595&tin=02508201610067®Number=0000000000091764&sum=0 [09:44:23]written 0, free lines is 4095 [09:44:23]OFD Sender: Processing packet 165938 [packets to send 48, broken 47] [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00165938 [09:44:23]OFD Sender: To server: pG, [09:44:23]CommunicateWithHost lk.salyk.kg:30040 [09:44:23]ConnectInit lk.salyk.kg [09:44:23]Connected sock=7 [09:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 43 07 01 55 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 87 22 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 88 02 00 35 04 06 00 10 1C 35 C8 2B EB CA 66 C2 B1 73 40 CF 78 [09:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CD C4 47 00 67 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 88 02 00 F4 03 04 00 F5 C8 15 67 B6 04 01 00 00 A5 6D 87 E3 B9 67 C9 DF [09:44:23]CommunicateWithHost err = 0 [09:44:23]CheckOFDResponse [09:44:23]1017 (14) - 77093643461234 [09:44:23]1041 (16) - 0000000000871759 [09:44:23]1040 (4) - 165938 [09:44:23]1012 (4) - 21.10.2024 03:22 [09:44:23]1206 (1) - 0 [09:44:23]OFD Sender: Remove packet 165938 [09:44:23]ProducePacketName [09:44:23]name=ofd_packets/00165938 [09:44:23]NVStorageDeleteData [09:44:23]Write to MH i2c: 01 00 00 F7 37 2E [09:44:23]Write i2c OK [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 [09:44:23]MH_I2C_Read... [09:44:23]Read from MH i2c: 01 07 00 F7 37 00 00 00 00 00 E0 0C 21 [09:44:23]RasterBufferAndPrint [09:44:23]line [09:44:23]line [09:44:23]line [09:44:23]line [09:44:23]line [09:44:23]written 0, free lines is 3306 [09:44:23]MH_Cut [09:44:23]Write to MH i2c: D1 01 00 FE 37 01 07 [09:44:23]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: D1 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: D1 01 00 [09:44:24]MH_I2C_Read... [09:44:24]Read from MH i2c: D1 01 00 FE 37 00 06 [09:44:24]Write to MH i2c: 01 00 00 FF 37 36 [09:44:24]Write i2c OK [09:44:24]MH_I2C_Read... [09:44:24]OFD Sender: No OFD packet to send [09:44:24]*** Cut start [09:44:24]*** Partial cut [09:44:24]*** CUTSNS_PIN = 1 [09:44:24]*** CUTSNS_PIN = 0 [09:44:25]*** Brake cut motor [09:44:25]Read from MH i2c: 01 [09:44:25]MH_I2C_Read... [09:44:25]*** Stop cut motor [09:44:25]*** Cut end [09:44:25]Read from MH i2c: 01 07 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: 01 07 00 FF 37 00 00 00 00 00 FF 0F 4B [09:44:25]process_action close_receipt done [09:44:25]requested_data is exist [09:44:25]produce_requested_data [09:44:25]requested_item fm.sn is exist - process it [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 11 00 00 [09:44:25]Write to MH i2c: E2 08 00 00 38 80 11 00 00 00 00 00 00 B2 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 17 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 17 00 00 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [09:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:44:25]wFMCommunicate OK [09:44:25]requested_item fd.num is exist - process it [09:44:25]SAM_PROTO_GetFieldsCounters [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 13 00 00 [09:44:25]Write to MH i2c: E2 08 00 01 38 80 13 00 00 00 00 00 00 B5 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 62 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 62 00 01 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [09:44:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:25]wFMCommunicate OK [09:44:25]SAM_PROTO_GetFieldsCounters done [09:44:25]requested_item shift.num is exist - process it [09:44:25]requested_item shift.opened is exist - process it [09:44:25]req_shift_opened [09:44:25]FM_GetShiftState [09:44:25]SAM_PROTO_GetShiftState [09:44:25]wFMCommunicate request_size=4 [09:44:25]MH_SAM_APDU [09:44:25]CAPDU: 80 13 01 00 [09:44:25]Write to MH i2c: E2 08 00 02 38 80 13 01 00 00 00 00 00 B7 [09:44:25]Write i2c OK [09:44:25]MH_I2C_Read... [09:44:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:25]Read from MH i2c: E2 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 0E 00 [09:44:25]MH_I2C_Read... [09:44:25]Read from MH i2c: E2 0E 00 02 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C0 [09:44:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:44:25]wFMCommunicate OK [09:44:25]SAM_PROTO_GetShiftState done [09:44:25]FM_GetShiftState done [09:44:25]req_shift_opened done [09:44:25]requested_item shift.open_date is exist - process it [09:44:25]req_shift_open_date [09:44:25]req_shift_open_date done [09:44:25]produce_requested_data done [09:44:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165938,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:44:25]process_action_free close_receipt [09:44:25]json_value_free [09:44:25]json_value_free done [09:44:25]process_json_proto returns [09:44:25]Send response to host [09:44:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165938,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:44:25]free response buf [09:44:25]execute_script done [09:44:25]execute_script returns [09:44:25]free content buf [09:44:25]Sock 5.Close socket [09:44:25]Sock 5.Thread stoped [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:48]accept exits with 6 [09:46:48]New connection [09:46:48]New thread 3066776932 created [09:46:48]Thread 3066920292 joined [09:46:48]Waiting for new connection... [09:46:48] Sock 6.Parse request [09:46:48]Sock 6.Check first char [09:46:48]Sock 6.First char is OK [09:46:48]request: POST /json_proto HTTP/1.0 [09:46:48]Method: POST [09:46:48]URL: /json_proto [09:46:48]Method is POST - this is cgi request [09:46:48]url: /json_proto [09:46:48]query_string will be loaded in cgi processing [09:46:48]execute_cgi json_proto POST (null) [09:46:48]execute_cgi path=json_proto method=POST [09:46:48]POST find Content-Length [09:46:48]Host: 172.17.53.195:8080 [09:46:48]Content-Length: 789 [09:46:48]Content-Type: application/json [09:46:48] [09:46:48]POST finish read [09:46:48]Found Content-Length = 789 [09:46:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:48]execute_script... [09:46:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38866", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:48]POST & json_proto [09:46:48]process_json_proto [09:46:48]json parsed OK: [09:46:48]protocol is kg_v1.0 [09:46:48]action value=close_receipt [09:46:48]process_action close_receipt [09:46:48]cmd_close_receipt [09:46:48]MH_GetDate [09:46:48]Write to MH i2c: F0 00 00 03 38 2A [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: F0 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: F0 09 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: F0 09 00 03 38 00 1A 23 16 67 21 48 4A 65 05 [09:46:48]GetLastDocTimeStamp 1729503879 [09:46:48]current date 1729504026 [09:46:48]FM_GetShiftState [09:46:48]SAM_PROTO_GetShiftState [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 13 01 00 [09:46:48]Write to MH i2c: E2 08 00 04 38 80 13 01 00 00 00 00 00 B9 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 0E 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 0E 00 04 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C2 [09:46:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:46:48]wFMCommunicate OK [09:46:48]SAM_PROTO_GetShiftState done [09:46:48]FM_GetShiftState done [09:46:48]opened in 1729470944 [09:46:48]opened+sec_in_day 1729557344 [09:46:48]quantity*price = 0 [09:46:48]sum+1 = 1 [09:46:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 50 21.10.2024 09:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38866 ФМ: 0000000000871759 ФД: 165939 ФПД: 89200738797505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094706&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165939&fm=89200738797505&tin=02508201610067®Number=0000000000091764&sum=0 [09:46:49]StoreToDocumentArchive [09:46:49]shift 535 fd 165939 [09:46:49]save to /storage/0535/doc_00165939 [09:46:49]save last doc name /storage/0535/doc_00165939 to /storage/kkm_last_doc_name [09:46:49]save OK [09:46:49]Clear old archive folders... [09:46:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:49]tlvbuf is 016C78A0 [09:46:49]SAM_PROTO_ClearQueue [09:46:49]wFMCommunicate request_size=4 [09:46:49]MH_SAM_APDU [09:46:49]CAPDU: 80 09 00 00 [09:46:49]Write to MH i2c: E2 08 00 11 38 80 09 00 00 00 00 00 00 BB [09:46:49]Write i2c OK [09:46:49]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 11 38 00 90 00 BD [09:46:50]RAPDU: 90 00 [09:46:50]wFMCommunicate OK [09:46:50]SAM_PROTO_ClearQueue done [09:46:50]KKMCreateOFDPacket [09:46:50]OFDProtocolAddRootSTLVToBuf [09:46:50]FM_MakeSignedData [09:46:50]FM_MakeSignedData [09:46:50]SAM_PROTO_SignData [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 0D 01 02 [09:46:50]Write to MH i2c: E2 08 00 12 38 80 0D 01 02 00 00 00 00 C3 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 12 38 00 90 00 BE [09:46:50]RAPDU: 90 00 [09:46:50]wFMCommunicate OK [09:46:50]wFMCommunicate request_size=255 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1A 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 88 02 00 35 04 06 00 51 20 AA 59 [09:46:50]Write to MH i2c: E2 02 01 13 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1A 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 88 02 00 35 04 06 00 51 20 AA 59 00 00 CA [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 13 38 00 90 00 BF [09:46:50]RAPDU: 90 00 [09:46:50]wFMCommunicate OK [09:46:50]wFMCommunicate request_size=7 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 0D 02 02 02 87 C1 [09:46:50]Write to MH i2c: E2 0A 00 14 38 80 0D 02 02 02 00 87 C1 00 00 12 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 03 00 14 38 00 90 00 C0 [09:46:50]RAPDU: 90 00 [09:46:50]wFMCommunicate OK [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 0D 03 02 [09:46:50]Write to MH i2c: E2 08 00 15 38 80 0D 03 02 00 00 00 00 C8 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0B 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 0B 00 15 38 00 CC 65 43 CE 6E 08 DB 93 90 00 EF [09:46:50]RAPDU: CC 65 43 CE 6E 08 DB 93 90 00 [09:46:50]wFMCommunicate OK [09:46:50]SAM_PROTO_SignData done [09:46:50]FM_MakeSignedData done [09:46:50]CreateOFDProtocolMessage [09:46:50]wFMCommunicate request_size=4 [09:46:50]MH_SAM_APDU [09:46:50]CAPDU: 80 11 00 00 [09:46:50]Write to MH i2c: E2 08 00 16 38 80 11 00 00 00 00 00 00 C8 [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:50]Read from MH i2c: E2 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 17 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: E2 17 00 16 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [09:46:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:46:50]wFMCommunicate OK [09:46:50]CreateOFDProtocolMessage done [09:46:50]OFDSenderStorePacket 165939 [09:46:50]StoreOFDPacket docnum=165939 [09:46:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F3 0F 04 01 ED 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1A 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 88 02 00 35 04 06 00 51 20 AA 59 87 C1 CC 65 43 CE 6E 08 DB 93 [09:46:50]CheckFolder [09:46:50]dirname=/storage/ofd_packets [09:46:50]CheckFolder done [09:46:50]ProducePacketName [09:46:50]name=ofd_packets/00165939 [09:46:50]NVStorageSaveData ofd_packets/00165939 [09:46:50]File name is /storage/ofd_packets/00165939 [09:46:50]Write 298 bytes [09:46:50]NVStorageSaveData done [09:46:50]OFDSenderStorePacket done [09:46:50]KKMCreateOFDPacket done [09:46:50]NVStorageSaveData kkm_last_timestamp [09:46:50]File name is /storage/kkm_last_timestamp [09:46:50]Write 4 bytes [09:46:50]NVStorageSaveData done [09:46:50]ExternCall_PrintAddStr [09:46:50]wPrintStart [09:46:50]Write to MH i2c: 01 00 00 17 38 4F [09:46:50]Write i2c OK [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: 01 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: 01 07 00 [09:46:50]MH_I2C_Read... [09:46:50]Read from MH i2c: 01 07 00 17 38 00 00 00 00 00 FF 0F 64 [09:46:50]RasterBufferAndPrint [09:46:50]line Счет N : (1)220509 [09:46:50]line ИНН: 02508201610067 [09:46:50]line Контрольно-Кассовый Чек [09:46:50]line ПРОДАЖА [09:46:50]line ТРК (МРК, ГНК) : 21 [09:46:50]line Товар: 2710194210 [09:46:50]line ДТ-К-5 [09:46:50]line 39.380 * 0.00 [09:46:50]line = 0.00 [09:46:50]line НДС 12% НСП 1% [09:46:50]line > о реализуемом товаре [09:46:50]line ИТОГО: 0.00 [09:46:50]line НСП 1% : 0.00 [09:46:50]line НДС 12% : 0.00 [09:46:50]line Наличными: 0.00 [09:46:50]line Безнал.: 0.00 [09:46:50]line Место: АЗС № 161 "Партнер Нефть" [09:46:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:46:50]line СНО: Общий режим [09:46:50]line Чек 50 21.10.2024 09:47 [09:46:50]line Смена: 535 ФФД: 1.0 [09:46:50]line ЗНМ: 0300000104 [09:46:50]line РНМ: 0000000000091764 [09:46:50]line Версия ККМ: 001 [09:46:50]line Талоны: Топливная Карта [09:46:50]line 38866 [09:46:50]line ФМ: 0000000000871759 [09:46:50]line ФД: 165939 [09:46:50]line ФПД: 89200738797505 [09:46:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094706&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165939&fm=89200738797505&tin=02508201610067®Number=0000000000091764&sum=0 [09:46:50]OFD Sender: Processing packet 165939 [packets to send 48, broken 47] [09:46:50]ProducePacketName [09:46:50]name=ofd_packets/00165939 [09:46:50]OFD Sender: To server: pG, [09:46:50]CommunicateWithHost lk.salyk.kg:30040 [09:46:50]ConnectInit lk.salyk.kg [09:46:50]written 0, free lines is 4095 [09:46:50]Connected sock=7 [09:46:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F3 0F 04 01 ED 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 1A 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 88 02 00 35 04 06 00 51 20 AA 59 87 C1 CC 65 43 CE 6E 08 DB 93 [09:46:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 D8 47 00 19 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 88 02 00 F4 03 04 00 89 C9 15 67 B6 04 01 00 00 0D 56 7B 0C 81 1C 9C 67 [09:46:51]CommunicateWithHost err = 0 [09:46:51]CheckOFDResponse [09:46:51]1017 (14) - 77093643461234 [09:46:51]1041 (16) - 0000000000871759 [09:46:51]1040 (4) - 165939 [09:46:51]1012 (4) - 21.10.2024 03:24 [09:46:51]1206 (1) - 0 [09:46:51]OFD Sender: Remove packet 165939 [09:46:51]ProducePacketName [09:46:51]name=ofd_packets/00165939 [09:46:51]NVStorageDeleteData [09:46:51]Write to MH i2c: 01 00 00 41 38 79 [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: 01 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: 01 07 00 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: 01 07 00 41 38 00 00 00 00 00 C3 0C 4F [09:46:51]RasterBufferAndPrint [09:46:51]line [09:46:51]line [09:46:51]line [09:46:51]line [09:46:51]line [09:46:51]written 0, free lines is 3273 [09:46:51]MH_Cut [09:46:51]Write to MH i2c: D1 01 00 48 38 01 52 [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: D1 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: D1 01 00 [09:46:51]MH_I2C_Read... [09:46:51]Read from MH i2c: D1 01 00 48 38 00 51 [09:46:51]Write to MH i2c: 01 00 00 49 38 81 [09:46:51]Write i2c OK [09:46:51]MH_I2C_Read... [09:46:51]OFD Sender: No OFD packet to send [09:46:52]*** Cut start [09:46:52]*** Partial cut [09:46:52]*** CUTSNS_PIN = 1 [09:46:52]*** CUTSNS_PIN = 0 [09:46:52]*** Brake cut motor [09:46:52]Read from MH i2c: 01 [09:46:52]MH_I2C_Read... [09:46:52]*** Stop cut motor [09:46:52]*** Cut end [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 49 38 00 00 00 00 00 FF 0F 96 [09:46:52]process_action close_receipt done [09:46:52]requested_data is exist [09:46:52]produce_requested_data [09:46:52]requested_item fm.sn is exist - process it [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 4A 38 80 11 00 00 00 00 00 00 FC [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 4A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [09:46:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:46:52]wFMCommunicate OK [09:46:52]requested_item fd.num is exist - process it [09:46:52]SAM_PROTO_GetFieldsCounters [09:46:52]wFMCommunicate request_size=4 [09:46:52]MH_SAM_APDU [09:46:52]CAPDU: 80 13 00 00 [09:46:52]Write to MH i2c: E2 08 00 4B 38 80 13 00 00 00 00 00 00 FF [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:52]Read from MH i2c: E2 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 62 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 62 00 4B 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:46:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:52]wFMCommunicate OK [09:46:52]SAM_PROTO_GetFieldsCounters done [09:46:52]requested_item shift.num is exist - process it [09:46:52]requested_item shift.opened is exist - process it [09:46:52]req_shift_opened [09:46:52]FM_GetShiftState [09:46:52]SAM_PROTO_GetShiftState [09:46:52]wFMCommunicate request_size=4 [09:46:52]MH_SAM_APDU [09:46:52]CAPDU: 80 13 01 00 [09:46:52]Write to MH i2c: E2 08 00 4C 38 80 13 01 00 00 00 00 00 01 [09:46:52]Write i2c OK [09:46:52]MH_I2C_Read... [09:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:52]Read from MH i2c: E2 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 0E 00 [09:46:52]MH_I2C_Read... [09:46:52]Read from MH i2c: E2 0E 00 4C 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0A [09:46:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:46:52]wFMCommunicate OK [09:46:52]SAM_PROTO_GetShiftState done [09:46:52]FM_GetShiftState done [09:46:52]req_shift_opened done [09:46:52]requested_item shift.open_date is exist - process it [09:46:52]req_shift_open_date [09:46:52]req_shift_open_date done [09:46:52]produce_requested_data done [09:46:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165939,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:46:52]process_action_free close_receipt [09:46:52]json_value_free [09:46:52]json_value_free done [09:46:52]process_json_proto returns [09:46:52]Send response to host [09:46:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165939,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:46:52]free response buf [09:46:52]execute_script done [09:46:52]execute_script returns [09:46:52]free content buf [09:46:52]Sock 6.Close socket [09:46:52]Sock 6.Thread stoped [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:44]accept exits with 5 [09:47:44]New connection [09:47:44]New thread 3066920292 created [09:47:44]Thread 3066776932 joined [09:47:44]Waiting for new connection... [09:47:44] Sock 5.Parse request [09:47:44]Sock 5.Check first char [09:47:44]Sock 5.First char is OK [09:47:44]request: POST /json_proto HTTP/1.0 [09:47:44]Method: POST [09:47:44]URL: /json_proto [09:47:44]Method is POST - this is cgi request [09:47:44]url: /json_proto [09:47:44]query_string will be loaded in cgi processing [09:47:44]execute_cgi json_proto POST (null) [09:47:44]execute_cgi path=json_proto method=POST [09:47:44]POST find Content-Length [09:47:44]Host: 172.17.53.195:8080 [09:47:44]Content-Length: 677 [09:47:44]Content-Type: application/json [09:47:44] [09:47:44]POST finish read [09:47:44]Found Content-Length = 677 [09:47:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:44]execute_script... [09:47: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)220511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:44]POST & json_proto [09:47:44]process_json_proto [09:47:44]json parsed OK: [09:47:44]protocol is kg_v1.0 [09:47:44]action value=close_receipt [09:47:44]process_action close_receipt [09:47:44]cmd_close_receipt [09:47:44]MH_GetDate [09:47:44]Write to MH i2c: F0 00 00 4D 38 74 [09:47:44]Write i2c OK [09:47:44]MH_I2C_Read... [09:47:44]Read from MH i2c: F0 [09:47:44]MH_I2C_Read... [09:47:44]Read from MH i2c: F0 09 00 [09:47:44]MH_I2C_Read... [09:47:44]Read from MH i2c: F0 09 00 4D 38 00 51 23 16 67 21 48 4A 65 86 [09:47:44]GetLastDocTimeStamp 1729504026 [09:47:44]current date 1729504081 [09:47:44]FM_GetShiftState [09:47:44]SAM_PROTO_GetShiftState [09:47:44]wFMCommunicate request_size=4 [09:47:44]MH_SAM_APDU [09:47:44]CAPDU: 80 13 01 00 [09:47:44]Write to MH i2c: E2 08 00 4E 38 80 13 01 00 00 00 00 00 03 [09:47:44]Write i2c OK [09:47:44]MH_I2C_Read... [09:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:44]Read from MH i2c: E2 [09:47:44]MH_I2C_Read... [09:47:44]Read from MH i2c: E2 0E 00 [09:47:44]MH_I2C_Read... [09:47:44]Read from MH i2c: E2 0E 00 4E 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0C [09:47:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:47:44]wFMCommunicate OK [09:47:44]SAM_PROTO_GetShiftState done [09:47:44]FM_GetShiftState done [09:47:44]opened in 1729470944 [09:47:44]opened+sec_in_day 1729557344 [09:47:44]quantity*price = 40006 [09:47:44]sum+1 = 40007 [09:47:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 51 21.10.2024 09:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165940 ФПД: 260748551251770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094801&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165940&fm=260748551251770&tin=02508201610067®Number=0000000000091764&sum=40000 [09:47:45]StoreToDocumentArchive [09:47:45]shift 535 fd 165940 [09:47:45]save to /storage/0535/doc_00165940 [09:47:45]save last doc name /storage/0535/doc_00165940 to /storage/kkm_last_doc_name [09:47:45]save OK [09:47:45]Clear old archive folders... [09:47:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:47:45]tlvbuf is 015FC840 [09:47:45]SAM_PROTO_ClearQueue [09:47:45]wFMCommunicate request_size=4 [09:47:45]MH_SAM_APDU [09:47:45]CAPDU: 80 09 00 00 [09:47:45]Write to MH i2c: E2 08 00 5B 38 80 09 00 00 00 00 00 00 05 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [09:47:45]RAPDU: 90 00 [09:47:45]wFMCommunicate OK [09:47:45]SAM_PROTO_ClearQueue done [09:47:45]KKMCreateOFDPacket [09:47:45]OFDProtocolAddRootSTLVToBuf [09:47:45]FM_MakeSignedData [09:47:45]FM_MakeSignedData [09:47:45]SAM_PROTO_SignData [09:47:45]wFMCommunicate request_size=4 [09:47:45]MH_SAM_APDU [09:47:45]CAPDU: 80 0D 01 02 [09:47:45]Write to MH i2c: E2 08 00 5C 38 80 0D 01 02 00 00 00 00 0D [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [09:47:45]RAPDU: 90 00 [09:47:45]wFMCommunicate OK [09:47:45]wFMCommunicate request_size=255 [09:47:45]MH_SAM_APDU [09:47: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 51 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 88 02 00 35 04 06 00 ED [09:47:45]Write to MH i2c: E2 02 01 5D 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 51 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 88 02 00 35 04 06 00 ED 00 00 5A [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 5D 38 00 90 00 09 [09:47:45]RAPDU: 90 00 [09:47:45]wFMCommunicate OK [09:47:45]wFMCommunicate request_size=10 [09:47:45]MH_SAM_APDU [09:47:45]CAPDU: 80 0D 02 02 05 26 40 C5 E7 3A [09:47:45]Write to MH i2c: E2 0D 00 5E 38 80 0D 02 02 05 00 26 40 C5 E7 3A 00 00 66 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 03 00 5E 38 00 90 00 0A [09:47:45]RAPDU: 90 00 [09:47:45]wFMCommunicate OK [09:47:45]wFMCommunicate request_size=4 [09:47:45]MH_SAM_APDU [09:47:45]CAPDU: 80 0D 03 02 [09:47:45]Write to MH i2c: E2 08 00 5F 38 80 0D 03 02 00 00 00 00 12 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 0B 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 0B 00 5F 38 00 9B 9C 12 A5 BF 92 A9 F5 90 00 F0 [09:47:45]RAPDU: 9B 9C 12 A5 BF 92 A9 F5 90 00 [09:47:45]wFMCommunicate OK [09:47:45]SAM_PROTO_SignData done [09:47:45]FM_MakeSignedData done [09:47:45]CreateOFDProtocolMessage [09:47:45]wFMCommunicate request_size=4 [09:47:45]MH_SAM_APDU [09:47:45]CAPDU: 80 11 00 00 [09:47:45]Write to MH i2c: E2 08 00 60 38 80 11 00 00 00 00 00 00 12 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 17 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 17 00 60 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [09:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:47:45]wFMCommunicate OK [09:47:45]CreateOFDProtocolMessage done [09:47:45]OFDSenderStorePacket 165940 [09:47:45]StoreOFDPacket docnum=165940 [09:47:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 ED 07 01 BA 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 51 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 88 02 00 35 04 06 00 ED 26 40 C5 E7 3A 9B 9C 12 A5 BF 92 A9 F5 [09:47:45]CheckFolder [09:47:45]dirname=/storage/ofd_packets [09:47:45]CheckFolder done [09:47:45]ProducePacketName [09:47:45]name=ofd_packets/00165940 [09:47:45]NVStorageSaveData ofd_packets/00165940 [09:47:45]File name is /storage/ofd_packets/00165940 [09:47:45]Write 301 bytes [09:47:45]NVStorageSaveData done [09:47:45]OFDSenderStorePacket done [09:47:45]KKMCreateOFDPacket done [09:47:45]NVStorageSaveData kkm_last_timestamp [09:47:45]File name is /storage/kkm_last_timestamp [09:47:45]Write 4 bytes [09:47:45]NVStorageSaveData done [09:47:45]ExternCall_PrintAddStr [09:47:45]wPrintStart [09:47:45]Write to MH i2c: 01 00 00 61 38 99 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: 01 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: 01 07 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: 01 07 00 61 38 00 00 00 00 00 FF 0F AE [09:47:45]RasterBufferAndPrint [09:47:45]line Счет N : (1)220511 [09:47:45]line ИНН: 02508201610067 [09:47:45]line Контрольно-Кассовый Чек [09:47:45]line ПРОДАЖА [09:47:45]line ТРК (МРК, ГНК) : 33 [09:47:45]line Товар: 2710124130 [09:47:45]line Аи-92-К-5 [09:47:45]line 5.980 * 66.90 [09:47:45]line = 400.06 [09:47:45]line НДС 12% НСП 1% [09:47:45]line > о реализуемом товаре [09:47:45]line ОКРУГЛЕНИЕ: -0.06 [09:47:45]line ИТОГО: 400.00 [09:47:45]line Внесено: 400.00 [09:47:45]line СДАЧА: 0.00 [09:47:45]line НСП 1% : 3.54 [09:47:45]line НДС 12% : 42.48 [09:47:45]line Наличными: 400.00 [09:47:45]line Безнал.: 0.00 [09:47:45]line Место: АЗС № 161 "Партнер Нефть" [09:47:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:47:45]line СНО: Общий режим [09:47:45]line Чек 51 21.10.2024 09:48 [09:47:45]line Смена: 535 ФФД: 1.0 [09:47:45]line ЗНМ: 0300000104 [09:47:45]line РНМ: 0000000000091764 [09:47:45]line Версия ККМ: 001 [09:47:45]line ФМ: 0000000000871759 [09:47:45]line ФД: 165940 [09:47:45]line ФПД: 260748551251770 [09:47:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094801&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165940&fm=260748551251770&tin=02508201610067®Number=0000000000091764&sum=40000 [09:47:46]OFD Sender: Processing packet 165940 [packets to send 48, broken 47] [09:47:46]ProducePacketName [09:47:46]name=ofd_packets/00165940 [09:47:46]OFD Sender: To server: pG, [09:47:46]CommunicateWithHost lk.salyk.kg:30040 [09:47:46]ConnectInit lk.salyk.kg [09:47:46]written 0, free lines is 4095 [09:47:46]Connected sock=7 [09:47:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 ED 07 01 BA 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 51 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 88 02 00 35 04 06 00 ED 26 40 C5 E7 3A 9B 9C 12 A5 BF 92 A9 F5 [09: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 35 39 4F 00 00 00 8B 2D 47 00 E7 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 88 02 00 F4 03 04 00 C0 C9 15 67 B6 04 01 00 00 49 40 11 BE F7 5C 33 01 [09:47:46]CommunicateWithHost err = 0 [09:47:46]CheckOFDResponse [09:47:46]1017 (14) - 77093643461234 [09:47:46]1041 (16) - 0000000000871759 [09:47:46]1040 (4) - 165940 [09:47:46]1012 (4) - 21.10.2024 03:25 [09:47:46]1206 (1) - 0 [09:47:46]OFD Sender: Remove packet 165940 [09:47:46]ProducePacketName [09:47:46]name=ofd_packets/00165940 [09:47:46]NVStorageDeleteData [09:47:46]Write to MH i2c: 01 00 00 8C 38 C4 [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: 01 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: 01 07 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: 01 07 00 8C 38 00 00 00 00 00 CA 0C A1 [09:47:46]RasterBufferAndPrint [09:47:46]line [09:47:46]line [09:47:46]line [09:47:46]line [09:47:46]line [09:47:46]written 0, free lines is 3283 [09:47:46]MH_Cut [09:47:46]Write to MH i2c: D1 01 00 93 38 01 9D [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: D1 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: D1 01 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: D1 01 00 93 38 00 9C [09:47:46]Write to MH i2c: 01 00 00 94 38 CC [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:47]OFD Sender: No OFD packet to send [09:47:47]*** Cut start [09:47:47]*** Partial cut [09:47:47]*** CUTSNS_PIN = 1 [09:47:47]*** CUTSNS_PIN = 0 [09:47:47]*** Brake cut motor [09:47:48]Read from MH i2c: 01 [09:47:48]MH_I2C_Read... [09:47:48]*** Stop cut motor [09:47:48]*** Cut end [09:47:48]Read from MH i2c: 01 07 00 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: 01 07 00 94 38 00 00 00 00 00 FF 0F E1 [09:47:48]process_action close_receipt done [09:47:48]requested_data is exist [09:47:48]produce_requested_data [09:47:48]requested_item fm.sn is exist - process it [09:47:48]wFMCommunicate request_size=4 [09:47:48]MH_SAM_APDU [09:47:48]CAPDU: 80 11 00 00 [09:47:48]Write to MH i2c: E2 08 00 95 38 80 11 00 00 00 00 00 00 47 [09:47:48]Write i2c OK [09:47:48]MH_I2C_Read... [09:47:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:48]Read from MH i2c: E2 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: E2 17 00 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: E2 17 00 95 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [09:47:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:47:48]wFMCommunicate OK [09:47:48]requested_item fd.num is exist - process it [09:47:48]SAM_PROTO_GetFieldsCounters [09:47:48]wFMCommunicate request_size=4 [09:47:48]MH_SAM_APDU [09:47:48]CAPDU: 80 13 00 00 [09:47:48]Write to MH i2c: E2 08 00 96 38 80 13 00 00 00 00 00 00 4A [09:47:48]Write i2c OK [09:47:48]MH_I2C_Read... [09:47:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:48]Read from MH i2c: E2 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: E2 62 00 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: E2 62 00 96 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [09:47:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:48]wFMCommunicate OK [09:47:48]SAM_PROTO_GetFieldsCounters done [09:47:48]requested_item shift.num is exist - process it [09:47:48]requested_item shift.opened is exist - process it [09:47:48]req_shift_opened [09:47:48]FM_GetShiftState [09:47:48]SAM_PROTO_GetShiftState [09:47:48]wFMCommunicate request_size=4 [09:47:48]MH_SAM_APDU [09:47:48]CAPDU: 80 13 01 00 [09:47:48]Write to MH i2c: E2 08 00 97 38 80 13 01 00 00 00 00 00 4C [09:47:48]Write i2c OK [09:47:48]MH_I2C_Read... [09:47:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:48]Read from MH i2c: E2 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: E2 0E 00 [09:47:48]MH_I2C_Read... [09:47:48]Read from MH i2c: E2 0E 00 97 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 55 [09:47:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:47:48]wFMCommunicate OK [09:47:48]SAM_PROTO_GetShiftState done [09:47:48]FM_GetShiftState done [09:47:48]req_shift_opened done [09:47:48]requested_item shift.open_date is exist - process it [09:47:48]req_shift_open_date [09:47:48]req_shift_open_date done [09:47:48]produce_requested_data done [09:47:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165940,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:47:48]process_action_free close_receipt [09:47:48]json_value_free [09:47:48]json_value_free done [09:47:48]process_json_proto returns [09:47:48]Send response to host [09:47:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165940,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:47:48]free response buf [09:47:48]execute_script done [09:47:48]execute_script returns [09:47:48]free content buf [09:47:48]Sock 5.Close socket [09:47:48]Sock 5.Thread stoped [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:14]accept exits with 6 [09:48:14]New connection [09:48:14]New thread 3066776932 created [09:48:14]Thread 3066920292 joined [09:48:14]Waiting for new connection... [09:48:14] Sock 6.Parse request [09:48:14]Sock 6.Check first char [09:48:14]Sock 6.First char is OK [09:48:14]request: POST /json_proto HTTP/1.0 [09:48:14]Method: POST [09:48:14]URL: /json_proto [09:48:14]Method is POST - this is cgi request [09:48:14]url: /json_proto [09:48:14]query_string will be loaded in cgi processing [09:48:14]execute_cgi json_proto POST (null) [09:48:14]execute_cgi path=json_proto method=POST [09:48:14]POST find Content-Length [09:48:14]Host: 172.17.53.195:8080 [09:48:14]Content-Length: 789 [09:48:14]Content-Type: application/json [09:48:14] [09:48:14]POST finish read [09:48:14]Found Content-Length = 789 [09:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A04822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:14]execute_script... [09:48: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)220510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A04822", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:48:14]POST & json_proto [09:48:14]process_json_proto [09:48:14]json parsed OK: [09:48:14]protocol is kg_v1.0 [09:48:14]action value=close_receipt [09:48:14]process_action close_receipt [09:48:14]cmd_close_receipt [09:48:14]MH_GetDate [09:48:14]Write to MH i2c: F0 00 00 98 38 BF [09:48:14]Write i2c OK [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: F0 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: F0 09 00 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: F0 09 00 98 38 00 70 23 16 67 21 48 4A 65 F0 [09:48:14]GetLastDocTimeStamp 1729504081 [09:48:14]current date 1729504112 [09:48:14]FM_GetShiftState [09:48:14]SAM_PROTO_GetShiftState [09:48:14]wFMCommunicate request_size=4 [09:48:14]MH_SAM_APDU [09:48:14]CAPDU: 80 13 01 00 [09:48:14]Write to MH i2c: E2 08 00 99 38 80 13 01 00 00 00 00 00 4E [09:48:14]Write i2c OK [09:48:14]MH_I2C_Read... [09:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:14]Read from MH i2c: E2 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: E2 0E 00 [09:48:14]MH_I2C_Read... [09:48:14]Read from MH i2c: E2 0E 00 99 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 57 [09:48:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:48:14]wFMCommunicate OK [09:48:14]SAM_PROTO_GetShiftState done [09:48:14]FM_GetShiftState done [09:48:14]opened in 1729470944 [09:48:14]opened+sec_in_day 1729557344 [09:48:14]quantity*price = 0 [09:48:14]sum+1 = 1 [09:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 52 21.10.2024 09:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 04822 ФМ: 0000000000871759 ФД: 165941 ФПД: 111631728115851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094832&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165941&fm=111631728115851&tin=02508201610067®Number=0000000000091764&sum=0 [09:48:15]StoreToDocumentArchive [09:48:15]shift 535 fd 165941 [09:48:15]save to /storage/0535/doc_00165941 [09:48:15]save last doc name /storage/0535/doc_00165941 to /storage/kkm_last_doc_name [09:48:15]save OK [09:48:15]Clear old archive folders... [09:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:48:15]tlvbuf is 0179A0B0 [09:48:15]SAM_PROTO_ClearQueue [09:48:15]wFMCommunicate request_size=4 [09:48:15]MH_SAM_APDU [09:48:15]CAPDU: 80 09 00 00 [09:48:15]Write to MH i2c: E2 08 00 A6 38 80 09 00 00 00 00 00 00 50 [09:48:15]Write i2c OK [09:48:15]MH_I2C_Read... [09:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:48:15]Read from MH i2c: E2 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 03 00 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 03 00 A6 38 00 90 00 52 [09:48:15]RAPDU: 90 00 [09:48:15]wFMCommunicate OK [09:48:15]SAM_PROTO_ClearQueue done [09:48:15]KKMCreateOFDPacket [09:48:15]OFDProtocolAddRootSTLVToBuf [09:48:15]FM_MakeSignedData [09:48:15]FM_MakeSignedData [09:48:15]SAM_PROTO_SignData [09:48:15]wFMCommunicate request_size=4 [09:48:15]MH_SAM_APDU [09:48:15]CAPDU: 80 0D 01 02 [09:48:15]Write to MH i2c: E2 08 00 A7 38 80 0D 01 02 00 00 00 00 58 [09:48:15]Write i2c OK [09:48:15]MH_I2C_Read... [09:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:48:15]Read from MH i2c: E2 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 03 00 [09:48:15]MH_I2C_Read... [09:48:15]Read from MH i2c: E2 03 00 A7 38 00 90 00 53 [09:48:15]RAPDU: 90 00 [09:48:15]wFMCommunicate OK [09:48:15]wFMCommunicate request_size=255 [09:48:15]MH_SAM_APDU [09:48:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 70 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 88 02 00 35 04 06 00 65 87 49 80 [09:48:15]Write to MH i2c: E2 02 01 A8 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 34 00 00 00 F4 03 04 00 70 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 88 02 00 35 04 06 00 65 87 49 80 00 00 A0 [09:48:15]Write i2c OK [09:48:15]MH_I2C_Read... [09:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:16]Read from MH i2c: E2 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 03 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 03 00 A8 38 00 90 00 54 [09:48:16]RAPDU: 90 00 [09:48:16]wFMCommunicate OK [09:48:16]wFMCommunicate request_size=7 [09:48:16]MH_SAM_APDU [09:48:16]CAPDU: 80 0D 02 02 02 00 8B [09:48:16]Write to MH i2c: E2 0A 00 A9 38 80 0D 02 02 02 00 00 8B 00 00 EA [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:48:16]Read from MH i2c: E2 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 03 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 03 00 A9 38 00 90 00 55 [09:48:16]RAPDU: 90 00 [09:48:16]wFMCommunicate OK [09:48:16]wFMCommunicate request_size=4 [09:48:16]MH_SAM_APDU [09:48:16]CAPDU: 80 0D 03 02 [09:48:16]Write to MH i2c: E2 08 00 AA 38 80 0D 03 02 00 00 00 00 5D [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:48:16]Read from MH i2c: E2 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 0B 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 0B 00 AA 38 00 7D 8F EB 21 4C 70 63 B3 90 00 48 [09:48:16]RAPDU: 7D 8F EB 21 4C 70 63 B3 90 00 [09:48:16]wFMCommunicate OK [09:48:16]SAM_PROTO_SignData done [09:48:16]FM_MakeSignedData done [09:48:16]CreateOFDProtocolMessage [09:48:16]wFMCommunicate request_size=4 [09:48:16]MH_SAM_APDU [09:48:16]CAPDU: 80 11 00 00 [09:48:16]Write to MH i2c: E2 08 00 AB 38 80 11 00 00 00 00 00 00 5D [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:16]Read from MH i2c: E2 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 17 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: E2 17 00 AB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [09:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:48:16]wFMCommunicate OK [09:48:16]CreateOFDProtocolMessage done [09:48:16]OFDSenderStorePacket 165941 [09:48:16]StoreOFDPacket docnum=165941 [09:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A8 B6 04 01 B3 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 34 00 00 00 F4 03 04 00 70 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 88 02 00 35 04 06 00 65 87 49 80 00 8B 7D 8F EB 21 4C 70 63 B3 [09:48:16]CheckFolder [09:48:16]dirname=/storage/ofd_packets [09:48:16]CheckFolder done [09:48:16]ProducePacketName [09:48:16]name=ofd_packets/00165941 [09:48:16]NVStorageSaveData ofd_packets/00165941 [09:48:16]File name is /storage/ofd_packets/00165941 [09:48:16]Write 298 bytes [09:48:16]NVStorageSaveData done [09:48:16]OFDSenderStorePacket done [09:48:16]KKMCreateOFDPacket done [09:48:16]NVStorageSaveData kkm_last_timestamp [09:48:16]File name is /storage/kkm_last_timestamp [09:48:16]Write 4 bytes [09:48:16]NVStorageSaveData done [09:48:16]ExternCall_PrintAddStr [09:48:16]wPrintStart [09:48:16]Write to MH i2c: 01 00 00 AC 38 E4 [09:48:16]Write i2c OK [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 07 00 [09:48:16]MH_I2C_Read... [09:48:16]Read from MH i2c: 01 07 00 AC 38 00 00 00 00 00 FF 0F F9 [09:48:16]RasterBufferAndPrint [09:48:16]line Счет N : (1)220510 [09:48:16]line ИНН: 02508201610067 [09:48:16]line Контрольно-Кассовый Чек [09:48:16]line ПРОДАЖА [09:48:16]line ТРК (МРК, ГНК) : 41 [09:48:16]line Товар: 2710194210 [09:48:16]line ДТ-К-5 [09:48:16]line 50.000 * 0.00 [09:48:16]line = 0.00 [09:48:16]line НДС 12% НСП 1% [09:48:16]line > о реализуемом товаре [09:48:16]line ИТОГО: 0.00 [09:48:16]line НСП 1% : 0.00 [09:48:16]line НДС 12% : 0.00 [09:48:16]line Наличными: 0.00 [09:48:16]line Безнал.: 0.00 [09:48:16]line Место: АЗС № 161 "Партнер Нефть" [09:48:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:48:16]line СНО: Общий режим [09:48:16]line Чек 52 21.10.2024 09:48 [09:48:16]line Смена: 535 ФФД: 1.0 [09:48:16]line ЗНМ: 0300000104 [09:48:16]line РНМ: 0000000000091764 [09:48:16]line Версия ККМ: 001 [09:48:16]line Талоны: Топливная Карта [09:48:16]line 04822 [09:48:16]line ФМ: 0000000000871759 [09:48:16]line ФД: 165941 [09:48:16]line ФПД: 111631728115851 [09:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T094832&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165941&fm=111631728115851&tin=02508201610067®Number=0000000000091764&sum=0 [09:48:16]OFD Sender: Processing packet 165941 [packets to send 48, broken 47] [09:48:16]ProducePacketName [09:48:16]name=ofd_packets/00165941 [09:48:16]OFD Sender: To server: pG, [09:48:16]CommunicateWithHost lk.salyk.kg:30040 [09:48:16]ConnectInit lk.salyk.kg [09:48:16]written 0, free lines is 4095 [09:48:16]Connected sock=5 [09:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A8 B6 04 01 B3 C8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 34 00 00 00 F4 03 04 00 70 23 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 88 02 00 35 04 06 00 65 87 49 80 00 8B 7D 8F EB 21 4C 70 63 B3 [09:48:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D6 1A 47 00 02 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 35 39 10 04 04 00 35 88 02 00 F4 03 04 00 DF C9 15 67 B6 04 01 00 00 CF B0 A5 F2 A0 F7 83 8D [09:48:17]CommunicateWithHost err = 0 [09:48:17]CheckOFDResponse [09:48:17]1017 (14) - 77093643461234 [09:48:17]1041 (16) - 0000000000871759 [09:48:17]1040 (4) - 165941 [09:48:17]1012 (4) - 21.10.2024 03:26 [09:48:17]1206 (1) - 0 [09:48:17]OFD Sender: Remove packet 165941 [09:48:17]ProducePacketName [09:48:17]name=ofd_packets/00165941 [09:48:17]NVStorageDeleteData [09:48:17]Write to MH i2c: 01 00 00 D6 38 0E [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: 01 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: 01 07 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: 01 07 00 D6 38 00 00 00 00 00 C6 0C E7 [09:48:17]RasterBufferAndPrint [09:48:17]line [09:48:17]line [09:48:17]line [09:48:17]line [09:48:17]line [09:48:17]written 0, free lines is 3277 [09:48:17]MH_Cut [09:48:17]Write to MH i2c: D1 01 00 DD 38 01 E7 [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: D1 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: D1 01 00 [09:48:17]MH_I2C_Read... [09:48:17]Read from MH i2c: D1 01 00 DD 38 00 E6 [09:48:17]Write to MH i2c: 01 00 00 DE 38 16 [09:48:17]Write i2c OK [09:48:17]MH_I2C_Read... [09:48:17]OFD Sender: No OFD packet to send [09:48:17]*** Cut start [09:48:17]*** Partial cut [09:48:17]*** CUTSNS_PIN = 1 [09:48:17]*** CUTSNS_PIN = 0 [09:48:18]*** Brake cut motor [09:48:18]Read from MH i2c: 01 [09:48:18]MH_I2C_Read... [09:48:18]*** Stop cut motor [09:48:18]*** Cut end [09:48:18]Read from MH i2c: 01 07 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: 01 07 00 DE 38 00 00 00 00 00 FF 0F 2B [09:48:18]process_action close_receipt done [09:48:18]requested_data is exist [09:48:18]produce_requested_data [09:48:18]requested_item fm.sn is exist - process it [09:48:18]wFMCommunicate request_size=4 [09:48:18]MH_SAM_APDU [09:48:18]CAPDU: 80 11 00 00 [09:48:18]Write to MH i2c: E2 08 00 DF 38 80 11 00 00 00 00 00 00 91 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:48:18]Read from MH i2c: E2 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 17 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 17 00 DF 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E9 [09:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:48:18]wFMCommunicate OK [09:48:18]requested_item fd.num is exist - process it [09:48:18]SAM_PROTO_GetFieldsCounters [09:48:18]wFMCommunicate request_size=4 [09:48:18]MH_SAM_APDU [09:48:18]CAPDU: 80 13 00 00 [09:48:18]Write to MH i2c: E2 08 00 E0 38 80 13 00 00 00 00 00 00 94 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:48:18]Read from MH i2c: E2 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 62 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 62 00 E0 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [09:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:48:18]wFMCommunicate OK [09:48:18]SAM_PROTO_GetFieldsCounters done [09:48:18]requested_item shift.num is exist - process it [09:48:18]requested_item shift.opened is exist - process it [09:48:18]req_shift_opened [09:48:18]FM_GetShiftState [09:48:18]SAM_PROTO_GetShiftState [09:48:18]wFMCommunicate request_size=4 [09:48:18]MH_SAM_APDU [09:48:18]CAPDU: 80 13 01 00 [09:48:18]Write to MH i2c: E2 08 00 E1 38 80 13 01 00 00 00 00 00 96 [09:48:18]Write i2c OK [09:48:18]MH_I2C_Read... [09:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:48:18]Read from MH i2c: E2 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 0E 00 [09:48:18]MH_I2C_Read... [09:48:18]Read from MH i2c: E2 0E 00 E1 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9F [09:48:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:48:18]wFMCommunicate OK [09:48:18]SAM_PROTO_GetShiftState done [09:48:18]FM_GetShiftState done [09:48:18]req_shift_opened done [09:48:18]requested_item shift.open_date is exist - process it [09:48:18]req_shift_open_date [09:48:18]req_shift_open_date done [09:48:18]produce_requested_data done [09:48:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165941,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:48:18]process_action_free close_receipt [09:48:18]json_value_free [09:48:18]json_value_free done [09:48:18]process_json_proto returns [09:48:18]Send response to host [09:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165941,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:48:18]free response buf [09:48:18]execute_script done [09:48:18]execute_script returns [09:48:18]free content buf [09:48:18]Sock 6.Close socket [09:48:18]Sock 6.Thread stoped [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:14]accept exits with 7 [09:51:14]New connection [09:51:14]New thread 3066920292 created [09:51:14]Thread 3066776932 joined [09:51:14]Waiting for new connection... [09:51:14] Sock 7.Parse request [09:51:14]Sock 7.Check first char [09:51:14]Sock 7.First char is OK [09:51:14]request: POST /json_proto HTTP/1.0 [09:51:14]Method: POST [09:51:14]URL: /json_proto [09:51:14]Method is POST - this is cgi request [09:51:14]url: /json_proto [09:51:14]query_string will be loaded in cgi processing [09:51:14]execute_cgi json_proto POST (null) [09:51:14]execute_cgi path=json_proto method=POST [09:51:14]POST find Content-Length [09:51:14]Host: 172.17.53.195:8080 [09:51:14]Content-Length: 677 [09:51:14]Content-Type: application/json [09:51:14] [09:51:14]POST finish read [09:51:14]Found Content-Length = 677 [09:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:14]execute_script... [09:51: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)220512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:14]POST & json_proto [09:51:14]process_json_proto [09:51:14]json parsed OK: [09:51:14]protocol is kg_v1.0 [09:51:14]action value=close_receipt [09:51:14]process_action close_receipt [09:51:14]cmd_close_receipt [09:51:14]MH_GetDate [09:51:14]Write to MH i2c: F0 00 00 E2 38 09 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 09 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: F0 09 00 E2 38 00 24 24 16 67 21 48 4A 65 EF [09:51:14]GetLastDocTimeStamp 1729504112 [09:51:14]current date 1729504292 [09:51:14]FM_GetShiftState [09:51:14]SAM_PROTO_GetShiftState [09:51:14]wFMCommunicate request_size=4 [09:51:14]MH_SAM_APDU [09:51:14]CAPDU: 80 13 01 00 [09:51:14]Write to MH i2c: E2 08 00 E3 38 80 13 01 00 00 00 00 00 98 [09:51:14]Write i2c OK [09:51:14]MH_I2C_Read... [09:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:14]Read from MH i2c: E2 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 [09:51:14]MH_I2C_Read... [09:51:14]Read from MH i2c: E2 0E 00 E3 38 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A1 [09:51:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:51:14]wFMCommunicate OK [09:51:14]SAM_PROTO_GetShiftState done [09:51:14]FM_GetShiftState done [09:51:14]opened in 1729470944 [09:51:14]opened+sec_in_day 1729557344 [09:51:14]quantity*price = 49974 [09:51:14]sum+1 = 49975 [09:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 53 21.10.2024 09:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165942 ФПД: 11370498000282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165942&fm=11370498000282&tin=02508201610067®Number=0000000000091764&sum=49900 [09:51:16]StoreToDocumentArchive [09:51:16]shift 535 fd 165942 [09:51:16]save to /storage/0535/doc_00165942 [09:51:16]save last doc name /storage/0535/doc_00165942 to /storage/kkm_last_doc_name [09:51:16]save OK [09:51:16]Clear old archive folders... [09:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:16]tlvbuf is 015FC7A0 [09:51:16]SAM_PROTO_ClearQueue [09:51:16]wFMCommunicate request_size=4 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 09 00 00 [09:51:16]Write to MH i2c: E2 08 00 F0 38 80 09 00 00 00 00 00 00 9A [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 F0 38 00 90 00 9C [09:51:16]RAPDU: 90 00 [09:51:16]wFMCommunicate OK [09:51:16]SAM_PROTO_ClearQueue done [09:51:16]KKMCreateOFDPacket [09:51:16]OFDProtocolAddRootSTLVToBuf [09:51:16]FM_MakeSignedData [09:51:16]FM_MakeSignedData [09:51:16]SAM_PROTO_SignData [09:51:16]wFMCommunicate request_size=4 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 0D 01 02 [09:51:16]Write to MH i2c: E2 08 00 F1 38 80 0D 01 02 00 00 00 00 A2 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 F1 38 00 90 00 9D [09:51:16]RAPDU: 90 00 [09:51:16]wFMCommunicate OK [09:51:16]wFMCommunicate request_size=255 [09:51:16]MH_SAM_APDU [09:51: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 88 02 00 35 04 06 00 0A [09:51:16]Write to MH i2c: E2 02 01 F2 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 88 02 00 35 04 06 00 0A 00 00 F6 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 F2 38 00 90 00 9E [09:51:16]RAPDU: 90 00 [09:51:16]wFMCommunicate OK [09:51:16]wFMCommunicate request_size=10 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 0D 02 02 05 57 66 7E 85 9A [09:51:16]Write to MH i2c: E2 0D 00 F3 38 80 0D 02 02 05 00 57 66 7E 85 9A 00 00 09 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 03 00 F3 38 00 90 00 9F [09:51:16]RAPDU: 90 00 [09:51:16]wFMCommunicate OK [09:51:16]wFMCommunicate request_size=4 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 0D 03 02 [09:51:16]Write to MH i2c: E2 08 00 F4 38 80 0D 03 02 00 00 00 00 A7 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 0B 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 0B 00 F4 38 00 A6 C9 1E 5B 06 9C 7A 89 90 00 35 [09:51:16]RAPDU: A6 C9 1E 5B 06 9C 7A 89 90 00 [09:51:16]wFMCommunicate OK [09:51:16]SAM_PROTO_SignData done [09:51:16]FM_MakeSignedData done [09:51:16]CreateOFDProtocolMessage [09:51:16]wFMCommunicate request_size=4 [09:51:16]MH_SAM_APDU [09:51:16]CAPDU: 80 11 00 00 [09:51:16]Write to MH i2c: E2 08 00 F5 38 80 11 00 00 00 00 00 00 A7 [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:16]Read from MH i2c: E2 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 17 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: E2 17 00 F5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FF [09:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:51:16]wFMCommunicate OK [09:51:16]CreateOFDProtocolMessage done [09:51:16]OFDSenderStorePacket 165942 [09:51:16]StoreOFDPacket docnum=165942 [09:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D5 AE 07 01 4B DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 88 02 00 35 04 06 00 0A 57 66 7E 85 9A A6 C9 1E 5B 06 9C 7A 89 [09:51:16]CheckFolder [09:51:16]dirname=/storage/ofd_packets [09:51:16]CheckFolder done [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00165942 [09:51:16]NVStorageSaveData ofd_packets/00165942 [09:51:16]File name is /storage/ofd_packets/00165942 [09:51:16]Write 301 bytes [09:51:16]NVStorageSaveData done [09:51:16]OFDSenderStorePacket done [09:51:16]KKMCreateOFDPacket done [09:51:16]NVStorageSaveData kkm_last_timestamp [09:51:16]File name is /storage/kkm_last_timestamp [09:51:16]Write 4 bytes [09:51:16]NVStorageSaveData done [09:51:16]ExternCall_PrintAddStr [09:51:16]wPrintStart [09:51:16]Write to MH i2c: 01 00 00 F6 38 2E [09:51:16]Write i2c OK [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 [09:51:16]MH_I2C_Read... [09:51:16]Read from MH i2c: 01 07 00 F6 38 00 00 00 00 00 FF 0F 43 [09:51:16]RasterBufferAndPrint [09:51:16]line Счет N : (1)220512 [09:51:16]line ИНН: 02508201610067 [09:51:16]line Контрольно-Кассовый Чек [09:51:16]line ПРОДАЖА [09:51:16]line ТРК (МРК, ГНК) : 13 [09:51:16]line Товар: 2710124130 [09:51:16]line Аи-92-К-5 [09:51:16]line 7.470 * 66.90 [09:51:16]line = 499.74 [09:51:16]line НДС 12% НСП 1% [09:51:16]line > о реализуемом товаре [09:51:16]line ОКРУГЛЕНИЕ: -0.74 [09:51:16]line ИТОГО: 499.00 [09:51:16]line Внесено: 500.00 [09:51:16]line СДАЧА: 1.00 [09:51:16]line НСП 1% : 4.42 [09:51:16]line НДС 12% : 53.07 [09:51:16]line Наличными: 499.00 [09:51:16]line Безнал.: 0.00 [09:51:16]line Место: АЗС № 161 "Партнер Нефть" [09:51:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:51:16]line СНО: Общий режим [09:51:16]line Чек 53 21.10.2024 09:51 [09:51:16]line Смена: 535 ФФД: 1.0 [09:51:16]line ЗНМ: 0300000104 [09:51:16]line РНМ: 0000000000091764 [09:51:16]line Версия ККМ: 001 [09:51:16]line ФМ: 0000000000871759 [09:51:16]line ФД: 165942 [09:51:16]line ФПД: 11370498000282 [09:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095132&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165942&fm=11370498000282&tin=02508201610067®Number=0000000000091764&sum=49900 [09:51:16]OFD Sender: Processing packet 165942 [packets to send 48, broken 47] [09:51:16]ProducePacketName [09:51:16]name=ofd_packets/00165942 [09:51:16]OFD Sender: To server: pG, [09:51:16]CommunicateWithHost lk.salyk.kg:30040 [09:51:16]ConnectInit lk.salyk.kg [09:51:16]written 0, free lines is 4095 [09:51:16]Connected sock=6 [09:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D5 AE 07 01 4B DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 24 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 88 02 00 35 04 06 00 0A 57 66 7E 85 9A A6 C9 1E 5B 06 9C 7A 89 [09:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 CC 47 00 8D 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 35 39 10 04 04 00 36 88 02 00 F4 03 04 00 93 CA 15 67 B6 04 01 00 00 45 A9 51 BC 0E A4 36 39 [09:51:17]CommunicateWithHost err = 0 [09:51:17]CheckOFDResponse [09:51:17]1017 (14) - 77093643461234 [09:51:17]1041 (16) - 0000000000871759 [09:51:17]1040 (4) - 165942 [09:51:17]1012 (4) - 21.10.2024 03:29 [09:51:17]1206 (1) - 0 [09:51:17]OFD Sender: Remove packet 165942 [09:51:17]ProducePacketName [09:51:17]name=ofd_packets/00165942 [09:51:17]NVStorageDeleteData [09:51:17]Write to MH i2c: 01 00 00 21 39 5A [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: 01 07 00 21 39 00 00 00 00 00 B6 0C 23 [09:51:17]RasterBufferAndPrint [09:51:17]line [09:51:17]line [09:51:17]line [09:51:17]line [09:51:17]line [09:51:17]written 0, free lines is 3262 [09:51:17]MH_Cut [09:51:17]Write to MH i2c: D1 01 00 28 39 01 33 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: D1 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: D1 01 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: D1 01 00 28 39 00 32 [09:51:17]Write to MH i2c: 01 00 00 29 39 62 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]OFD Sender: No OFD packet to send [09:51:18]*** Cut start [09:51:18]*** Partial cut [09:51:18]*** CUTSNS_PIN = 1 [09:51:18]*** CUTSNS_PIN = 0 [09:51:18]*** Brake cut motor [09:51:18]Read from MH i2c: 01 [09:51:18]MH_I2C_Read... [09:51:18]*** Stop cut motor [09:51:18]*** Cut end [09:51:18]Read from MH i2c: 01 07 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: 01 07 00 29 39 00 00 00 00 00 FF 0F 77 [09:51:18]process_action close_receipt done [09:51:18]requested_data is exist [09:51:18]produce_requested_data [09:51:18]requested_item fm.sn is exist - process it [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 11 00 00 [09:51:18]Write to MH i2c: E2 08 00 2A 39 80 11 00 00 00 00 00 00 DD [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 17 00 2A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [09:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:51:18]wFMCommunicate OK [09:51:18]requested_item fd.num is exist - process it [09:51:18]SAM_PROTO_GetFieldsCounters [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 00 00 [09:51:18]Write to MH i2c: E2 08 00 2B 39 80 13 00 00 00 00 00 00 E0 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 62 00 2B 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [09:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_GetFieldsCounters done [09:51:18]requested_item shift.num is exist - process it [09:51:18]requested_item shift.opened is exist - process it [09:51:18]req_shift_opened [09:51:18]FM_GetShiftState [09:51:18]SAM_PROTO_GetShiftState [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 13 01 00 [09:51:18]Write to MH i2c: E2 08 00 2C 39 80 13 01 00 00 00 00 00 E2 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0E 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0E 00 2C 39 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EB [09:51:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:51:19]wFMCommunicate OK [09:51:19]SAM_PROTO_GetShiftState done [09:51:19]FM_GetShiftState done [09:51:19]req_shift_opened done [09:51:19]requested_item shift.open_date is exist - process it [09:51:19]req_shift_open_date [09:51:19]req_shift_open_date done [09:51:19]produce_requested_data done [09:51:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165942,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:51:19]process_action_free close_receipt [09:51:19]json_value_free [09:51:19]json_value_free done [09:51:19]process_json_proto returns [09:51:19]Send response to host [09:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165942,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:51:19]free response buf [09:51:19]execute_script done [09:51:19]execute_script returns [09:51:19]free content buf [09:51:19]Sock 7.Close socket [09:51:19]Sock 7.Thread stoped [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [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:22]accept exits with 5 [09:54:22]New connection [09:54:22]New thread 3066776932 created [09:54:22]Thread 3066920292 joined [09:54:22]Waiting for new connection... [09:54:22] Sock 5.Parse request [09:54:22]Sock 5.Check first char [09:54:22]Sock 5.First char is OK [09:54:22]request: POST /json_proto HTTP/1.0 [09:54:22]Method: POST [09:54:22]URL: /json_proto [09:54:22]Method is POST - this is cgi request [09:54:22]url: /json_proto [09:54:22]query_string will be loaded in cgi processing [09:54:22]execute_cgi json_proto POST (null) [09:54:22]execute_cgi path=json_proto method=POST [09:54:22]POST find Content-Length [09:54:22]Host: 172.17.53.195:8080 [09:54:22]Content-Length: 677 [09:54:22]Content-Type: application/json [09:54:22] [09:54:22]POST finish read [09:54:22]Found Content-Length = 677 [09:54:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:22]execute_script... [09:54: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)220514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:22]POST & json_proto [09:54:22]process_json_proto [09:54:22]json parsed OK: [09:54:22]protocol is kg_v1.0 [09:54:22]action value=close_receipt [09:54:22]process_action close_receipt [09:54:22]cmd_close_receipt [09:54:22]MH_GetDate [09:54:22]Write to MH i2c: F0 00 00 2D 39 55 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: F0 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: F0 09 00 [09:54:22]MH_I2C_Read... [09:54:22]Read from MH i2c: F0 09 00 2D 39 00 E0 24 16 67 21 48 4A 65 F7 [09:54:22]GetLastDocTimeStamp 1729504292 [09:54:22]current date 1729504480 [09:54:22]FM_GetShiftState [09:54:22]SAM_PROTO_GetShiftState [09:54:22]wFMCommunicate request_size=4 [09:54:22]MH_SAM_APDU [09:54:22]CAPDU: 80 13 01 00 [09:54:22]Write to MH i2c: E2 08 00 2E 39 80 13 01 00 00 00 00 00 E4 [09:54:22]Write i2c OK [09:54:22]MH_I2C_Read... [09:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:23]Read from MH i2c: E2 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 0E 00 [09:54:23]MH_I2C_Read... [09:54:23]Read from MH i2c: E2 0E 00 2E 39 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 ED [09:54:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:54:23]wFMCommunicate OK [09:54:23]SAM_PROTO_GetShiftState done [09:54:23]FM_GetShiftState done [09:54:23]opened in 1729470944 [09:54:23]opened+sec_in_day 1729557344 [09:54:23]quantity*price = 30038 [09:54:23]sum+1 = 30039 [09:54:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 54 21.10.2024 09:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165943 ФПД: 19526262314566 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165943&fm=19526262314566&tin=02508201610067®Number=0000000000091764&sum=30000 [09:54:24]StoreToDocumentArchive [09:54:24]shift 535 fd 165943 [09:54:24]save to /storage/0535/doc_00165943 [09:54:24]save last doc name /storage/0535/doc_00165943 to /storage/kkm_last_doc_name [09:54:24]save OK [09:54:24]Clear old archive folders... [09:54:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:24]tlvbuf is 0146A080 [09:54:24]SAM_PROTO_ClearQueue [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 09 00 00 [09:54:24]Write to MH i2c: E2 08 00 3B 39 80 09 00 00 00 00 00 00 E6 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 3B 39 00 90 00 E8 [09:54:24]RAPDU: 90 00 [09:54:24]wFMCommunicate OK [09:54:24]SAM_PROTO_ClearQueue done [09:54:24]KKMCreateOFDPacket [09:54:24]OFDProtocolAddRootSTLVToBuf [09:54:24]FM_MakeSignedData [09:54:24]FM_MakeSignedData [09:54:24]SAM_PROTO_SignData [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 0D 01 02 [09:54:24]Write to MH i2c: E2 08 00 3C 39 80 0D 01 02 00 00 00 00 EE [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 3C 39 00 90 00 E9 [09:54:24]RAPDU: 90 00 [09:54:24]wFMCommunicate OK [09:54:24]wFMCommunicate request_size=255 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 88 02 00 35 04 06 00 11 [09:54:24]Write to MH i2c: E2 02 01 3D 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 88 02 00 35 04 06 00 11 00 00 1A [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 3D 39 00 90 00 EA [09:54:24]RAPDU: 90 00 [09:54:24]wFMCommunicate OK [09:54:24]wFMCommunicate request_size=10 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 0D 02 02 05 C2 4F ED D6 46 [09:54:24]Write to MH i2c: E2 0D 00 3E 39 80 0D 02 02 05 00 C2 4F ED D6 46 00 00 15 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 03 00 3E 39 00 90 00 EB [09:54:24]RAPDU: 90 00 [09:54:24]wFMCommunicate OK [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 0D 03 02 [09:54:24]Write to MH i2c: E2 08 00 3F 39 80 0D 03 02 00 00 00 00 F3 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 0B 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 0B 00 3F 39 00 84 41 E4 F4 15 4F 3D E6 90 00 18 [09:54:24]RAPDU: 84 41 E4 F4 15 4F 3D E6 90 00 [09:54:24]wFMCommunicate OK [09:54:24]SAM_PROTO_SignData done [09:54:24]FM_MakeSignedData done [09:54:24]CreateOFDProtocolMessage [09:54:24]wFMCommunicate request_size=4 [09:54:24]MH_SAM_APDU [09:54:24]CAPDU: 80 11 00 00 [09:54:24]Write to MH i2c: E2 08 00 40 39 80 11 00 00 00 00 00 00 F3 [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:24]Read from MH i2c: E2 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 17 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: E2 17 00 40 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [09:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:24]wFMCommunicate OK [09:54:24]CreateOFDProtocolMessage done [09:54:24]OFDSenderStorePacket 165943 [09:54:24]StoreOFDPacket docnum=165943 [09:54:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0F 1B 07 01 AC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 88 02 00 35 04 06 00 11 C2 4F ED D6 46 84 41 E4 F4 15 4F 3D E6 [09:54:24]CheckFolder [09:54:24]dirname=/storage/ofd_packets [09:54:24]CheckFolder done [09:54:24]ProducePacketName [09:54:24]name=ofd_packets/00165943 [09:54:24]NVStorageSaveData ofd_packets/00165943 [09:54:24]File name is /storage/ofd_packets/00165943 [09:54:24]Write 301 bytes [09:54:24]NVStorageSaveData done [09:54:24]OFDSenderStorePacket done [09:54:24]KKMCreateOFDPacket done [09:54:24]NVStorageSaveData kkm_last_timestamp [09:54:24]File name is /storage/kkm_last_timestamp [09:54:24]Write 4 bytes [09:54:24]NVStorageSaveData done [09:54:24]ExternCall_PrintAddStr [09:54:24]wPrintStart [09:54:24]Write to MH i2c: 01 00 00 41 39 7A [09:54:24]Write i2c OK [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 07 00 [09:54:24]MH_I2C_Read... [09:54:24]Read from MH i2c: 01 07 00 41 39 00 00 00 00 00 FF 0F 8F [09:54:24]RasterBufferAndPrint [09:54:24]line Счет N : (1)220514 [09:54:24]line ИНН: 02508201610067 [09:54:24]line Контрольно-Кассовый Чек [09:54:24]line ПРОДАЖА [09:54:24]line ТРК (МРК, ГНК) : 23 [09:54:24]line Товар: 2710124130 [09:54:24]line Аи-92-К-5 [09:54:24]line 4.490 * 66.90 [09:54:24]line = 300.38 [09:54:24]line НДС 12% НСП 1% [09:54:24]line > о реализуемом товаре [09:54:24]line ОКРУГЛЕНИЕ: -0.38 [09:54:24]line ИТОГО: 300.00 [09:54:24]line Внесено: 300.00 [09:54:24]line СДАЧА: 0.00 [09:54:24]line НСП 1% : 2.66 [09:54:24]line НДС 12% : 31.90 [09:54:24]line Наличными: 300.00 [09:54:24]line Безнал.: 0.00 [09:54:24]line Место: АЗС № 161 "Партнер Нефть" [09:54:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:54:24]line СНО: Общий режим [09:54:24]line Чек 54 21.10.2024 09:54 [09:54:24]line Смена: 535 ФФД: 1.0 [09:54:24]line ЗНМ: 0300000104 [09:54:24]line РНМ: 0000000000091764 [09:54:24]line Версия ККМ: 001 [09:54:24]line ФМ: 0000000000871759 [09:54:24]line ФД: 165943 [09:54:24]line ФПД: 19526262314566 [09:54:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165943&fm=19526262314566&tin=02508201610067®Number=0000000000091764&sum=30000 [09:54:24]written 0, free lines is 4095 [09:54:24]OFD Sender: Processing packet 165943 [packets to send 48, broken 47] [09:54:24]ProducePacketName [09:54:24]name=ofd_packets/00165943 [09:54:24]OFD Sender: To server: pG, [09:54:24]CommunicateWithHost lk.salyk.kg:30040 [09:54:24]ConnectInit lk.salyk.kg [09:54:24]Connected sock=9 [09:54:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0F 1B 07 01 AC 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 E0 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 88 02 00 35 04 06 00 11 C2 4F ED D6 46 84 41 E4 F4 15 4F 3D E6 [09:54:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 50 E4 47 00 20 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 88 02 00 F4 03 04 00 4F CB 15 67 B6 04 01 00 00 E8 7C 56 94 46 59 42 69 [09:54:25]CommunicateWithHost err = 0 [09:54:25]CheckOFDResponse [09:54:25]1017 (14) - 77093643461234 [09:54:25]1041 (16) - 0000000000871759 [09:54:25]1040 (4) - 165943 [09:54:25]1012 (4) - 21.10.2024 03:32 [09:54:25]1206 (1) - 0 [09:54:25]OFD Sender: Remove packet 165943 [09:54:25]ProducePacketName [09:54:25]name=ofd_packets/00165943 [09:54:25]NVStorageDeleteData [09:54:25]Write to MH i2c: 01 00 00 6C 39 A5 [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: 01 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: 01 07 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: 01 07 00 6C 39 00 00 00 00 00 BA 0C 72 [09:54:25]RasterBufferAndPrint [09:54:25]line [09:54:25]line [09:54:25]line [09:54:25]line [09:54:25]line [09:54:25]written 0, free lines is 3267 [09:54:25]MH_Cut [09:54:25]Write to MH i2c: D1 01 00 73 39 01 7E [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: D1 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: D1 01 00 [09:54:25]MH_I2C_Read... [09:54:25]Read from MH i2c: D1 01 00 73 39 00 7D [09:54:25]Write to MH i2c: 01 00 00 74 39 AD [09:54:25]Write i2c OK [09:54:25]MH_I2C_Read... [09:54:25]OFD Sender: No OFD packet to send [09:54:25]*** Cut start [09:54:25]*** Partial cut [09:54:25]*** CUTSNS_PIN = 1 [09:54:26]*** CUTSNS_PIN = 0 [09:54:26]*** Brake cut motor [09:54:26]Read from MH i2c: 01 [09:54:26]MH_I2C_Read... [09:54:26]*** Stop cut motor [09:54:26]*** Cut end [09:54:26]Read from MH i2c: 01 07 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: 01 07 00 74 39 00 00 00 00 00 FF 0F C2 [09:54:26]process_action close_receipt done [09:54:26]requested_data is exist [09:54:26]produce_requested_data [09:54:26]requested_item fm.sn is exist - process it [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 11 00 00 [09:54:26]Write to MH i2c: E2 08 00 75 39 80 11 00 00 00 00 00 00 28 [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 17 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 17 00 75 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [09:54:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:26]wFMCommunicate OK [09:54:26]requested_item fd.num is exist - process it [09:54:26]SAM_PROTO_GetFieldsCounters [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 13 00 00 [09:54:26]Write to MH i2c: E2 08 00 76 39 80 13 00 00 00 00 00 00 2B [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 62 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 62 00 76 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [09:54:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:26]wFMCommunicate OK [09:54:26]SAM_PROTO_GetFieldsCounters done [09:54:26]requested_item shift.num is exist - process it [09:54:26]requested_item shift.opened is exist - process it [09:54:26]req_shift_opened [09:54:26]FM_GetShiftState [09:54:26]SAM_PROTO_GetShiftState [09:54:26]wFMCommunicate request_size=4 [09:54:26]MH_SAM_APDU [09:54:26]CAPDU: 80 13 01 00 [09:54:26]Write to MH i2c: E2 08 00 77 39 80 13 01 00 00 00 00 00 2D [09:54:26]Write i2c OK [09:54:26]MH_I2C_Read... [09:54:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:26]Read from MH i2c: E2 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 0E 00 [09:54:26]MH_I2C_Read... [09:54:26]Read from MH i2c: E2 0E 00 77 39 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 36 [09:54:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:54:26]wFMCommunicate OK [09:54:26]SAM_PROTO_GetShiftState done [09:54:26]FM_GetShiftState done [09:54:26]req_shift_opened done [09:54:26]requested_item shift.open_date is exist - process it [09:54:26]req_shift_open_date [09:54:26]req_shift_open_date done [09:54:26]produce_requested_data done [09:54:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165943,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:54:26]process_action_free close_receipt [09:54:26]json_value_free [09:54:26]json_value_free done [09:54:26]process_json_proto returns [09:54:26]Send response to host [09:54:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165943,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:54:26]free response buf [09:54:26]execute_script done [09:54:26]execute_script returns [09:54:26]free content buf [09:54:26]Sock 5.Close socket [09:54:26]Sock 5.Thread stoped [09:54:30]OFD Sender: No OFD packet to send [09:54:35]OFD Sender: No OFD packet to send [09:54:36]accept exits with 6 [09:54:36]New connection [09:54:36]New thread 3066920292 created [09:54:36]Thread 3066776932 joined [09:54:36]Waiting for new connection... [09:54:36] Sock 6.Parse request [09:54:36]Sock 6.Check first char [09:54:36]Sock 6.First char is OK [09:54:36]request: POST /json_proto HTTP/1.0 [09:54:36]Method: POST [09:54:36]URL: /json_proto [09:54:36]Method is POST - this is cgi request [09:54:36]url: /json_proto [09:54:36]query_string will be loaded in cgi processing [09:54:36]execute_cgi json_proto POST (null) [09:54:36]execute_cgi path=json_proto method=POST [09:54:36]POST find Content-Length [09:54:36]Host: 172.17.53.195:8080 [09:54:36]Content-Length: 677 [09:54:36]Content-Type: application/json [09:54:36] [09:54:36]POST finish read [09:54:36]Found Content-Length = 677 [09:54:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:36]execute_script... [09:54: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)220513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:54:36]POST & json_proto [09:54:36]process_json_proto [09:54:36]json parsed OK: [09:54:36]protocol is kg_v1.0 [09:54:36]action value=close_receipt [09:54:36]process_action close_receipt [09:54:36]cmd_close_receipt [09:54:36]MH_GetDate [09:54:36]Write to MH i2c: F0 00 00 78 39 A0 [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: F0 09 00 78 39 00 ED 24 16 67 21 48 4A 65 4F [09:54:36]GetLastDocTimeStamp 1729504480 [09:54:36]current date 1729504493 [09:54:36]FM_GetShiftState [09:54:36]SAM_PROTO_GetShiftState [09:54:36]wFMCommunicate request_size=4 [09:54:36]MH_SAM_APDU [09:54:36]CAPDU: 80 13 01 00 [09:54:36]Write to MH i2c: E2 08 00 79 39 80 13 01 00 00 00 00 00 2F [09:54:36]Write i2c OK [09:54:36]MH_I2C_Read... [09:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:36]Read from MH i2c: E2 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 [09:54:36]MH_I2C_Read... [09:54:36]Read from MH i2c: E2 0E 00 79 39 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 38 [09:54:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:54:36]wFMCommunicate OK [09:54:36]SAM_PROTO_GetShiftState done [09:54:36]FM_GetShiftState done [09:54:36]opened in 1729470944 [09:54:36]opened+sec_in_day 1729557344 [09:54:36]quantity*price = 49974 [09:54:36]sum+1 = 49975 [09:54:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 55 21.10.2024 09:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165944 ФПД: 74618527315969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165944&fm=74618527315969&tin=02508201610067®Number=0000000000091764&sum=49900 [09:54:37]StoreToDocumentArchive [09:54:37]shift 535 fd 165944 [09:54:37]save to /storage/0535/doc_00165944 [09:54:37]save last doc name /storage/0535/doc_00165944 to /storage/kkm_last_doc_name [09:54:37]save OK [09:54:37]Clear old archive folders... [09:54:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:54:37]tlvbuf is 01469DB0 [09:54:37]SAM_PROTO_ClearQueue [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 09 00 00 [09:54:37]Write to MH i2c: E2 08 00 86 39 80 09 00 00 00 00 00 00 31 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 86 39 00 90 00 33 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]SAM_PROTO_ClearQueue done [09:54:37]KKMCreateOFDPacket [09:54:37]OFDProtocolAddRootSTLVToBuf [09:54:37]FM_MakeSignedData [09:54:37]FM_MakeSignedData [09:54:37]SAM_PROTO_SignData [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 01 02 [09:54:37]Write to MH i2c: E2 08 00 87 39 80 0D 01 02 00 00 00 00 39 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 87 39 00 90 00 34 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=255 [09:54:37]MH_SAM_APDU [09:54: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 ED 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 88 02 00 35 04 06 00 43 [09:54:37]Write to MH i2c: E2 02 01 88 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 ED 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 88 02 00 35 04 06 00 43 00 00 93 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 88 39 00 90 00 35 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=10 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 02 02 05 DD 7A D0 78 01 [09:54:37]Write to MH i2c: E2 0D 00 89 39 80 0D 02 02 05 00 DD 7A D0 78 01 00 00 E6 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 03 00 89 39 00 90 00 36 [09:54:37]RAPDU: 90 00 [09:54:37]wFMCommunicate OK [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 0D 03 02 [09:54:37]Write to MH i2c: E2 08 00 8A 39 80 0D 03 02 00 00 00 00 3E [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 0B 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 0B 00 8A 39 00 AA 1C 02 01 C3 1B 31 6E 90 00 85 [09:54:37]RAPDU: AA 1C 02 01 C3 1B 31 6E 90 00 [09:54:37]wFMCommunicate OK [09:54:37]SAM_PROTO_SignData done [09:54:37]FM_MakeSignedData done [09:54:37]CreateOFDProtocolMessage [09:54:37]wFMCommunicate request_size=4 [09:54:37]MH_SAM_APDU [09:54:37]CAPDU: 80 11 00 00 [09:54:37]Write to MH i2c: E2 08 00 8B 39 80 11 00 00 00 00 00 00 3E [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:37]Read from MH i2c: E2 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 17 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: E2 17 00 8B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [09:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:37]wFMCommunicate OK [09:54:37]CreateOFDProtocolMessage done [09:54:37]OFDSenderStorePacket 165944 [09:54:37]StoreOFDPacket docnum=165944 [09:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 88 07 01 30 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 ED 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 88 02 00 35 04 06 00 43 DD 7A D0 78 01 AA 1C 02 01 C3 1B 31 6E [09:54:37]CheckFolder [09:54:37]dirname=/storage/ofd_packets [09:54:37]CheckFolder done [09:54:37]ProducePacketName [09:54:37]name=ofd_packets/00165944 [09:54:37]NVStorageSaveData ofd_packets/00165944 [09:54:37]File name is /storage/ofd_packets/00165944 [09:54:37]Write 301 bytes [09:54:37]NVStorageSaveData done [09:54:37]OFDSenderStorePacket done [09:54:37]KKMCreateOFDPacket done [09:54:37]NVStorageSaveData kkm_last_timestamp [09:54:37]File name is /storage/kkm_last_timestamp [09:54:37]Write 4 bytes [09:54:37]NVStorageSaveData done [09:54:37]ExternCall_PrintAddStr [09:54:37]wPrintStart [09:54:37]Write to MH i2c: 01 00 00 8C 39 C5 [09:54:37]Write i2c OK [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: 01 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: 01 07 00 [09:54:37]MH_I2C_Read... [09:54:37]Read from MH i2c: 01 07 00 8C 39 00 00 00 00 00 FF 0F DA [09:54:37]RasterBufferAndPrint [09:54:37]line Счет N : (1)220513 [09:54:37]line ИНН: 02508201610067 [09:54:37]line Контрольно-Кассовый Чек [09:54:37]line ПРОДАЖА [09:54:37]line ТРК (МРК, ГНК) : 43 [09:54:37]line Товар: 2710124130 [09:54:37]line Аи-92-К-5 [09:54:37]line 7.470 * 66.90 [09:54:37]line = 499.74 [09:54:37]line НДС 12% НСП 1% [09:54:37]line > о реализуемом товаре [09:54:37]line ОКРУГЛЕНИЕ: -0.74 [09:54:37]line ИТОГО: 499.00 [09:54:37]line Внесено: 500.00 [09:54:37]line СДАЧА: 1.00 [09:54:37]line НСП 1% : 4.42 [09:54:37]line НДС 12% : 53.07 [09:54:37]line Наличными: 499.00 [09:54:37]line Безнал.: 0.00 [09:54:37]line Место: АЗС № 161 "Партнер Нефть" [09:54:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:54:37]line СНО: Общий режим [09:54:37]line Чек 55 21.10.2024 09:54 [09:54:37]line Смена: 535 ФФД: 1.0 [09:54:37]line ЗНМ: 0300000104 [09:54:37]line РНМ: 0000000000091764 [09:54:37]line Версия ККМ: 001 [09:54:37]line ФМ: 0000000000871759 [09:54:37]line ФД: 165944 [09:54:37]line ФПД: 74618527315969 [09:54:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165944&fm=74618527315969&tin=02508201610067®Number=0000000000091764&sum=49900 [09:54:38]OFD Sender: Processing packet 165944 [packets to send 48, broken 47] [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00165944 [09:54:38]OFD Sender: To server: pG, [09:54:38]CommunicateWithHost lk.salyk.kg:30040 [09:54:38]ConnectInit lk.salyk.kg [09:54:38]written 0, free lines is 4095 [09:54:38]Connected sock=7 [09:54:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B2 88 07 01 30 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 ED 24 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 88 02 00 35 04 06 00 43 DD 7A D0 78 01 AA 1C 02 01 C3 1B 31 6E [09:54:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A1 6E 47 00 B5 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 88 02 00 F4 03 04 00 5C CB 15 67 B6 04 01 00 00 36 A2 42 B2 35 00 3C D9 [09:54:38]CommunicateWithHost err = 0 [09:54:38]CheckOFDResponse [09:54:38]1017 (14) - 77093643461234 [09:54:38]1041 (16) - 0000000000871759 [09:54:38]1040 (4) - 165944 [09:54:38]1012 (4) - 21.10.2024 03:32 [09:54:38]1206 (1) - 0 [09:54:38]OFD Sender: Remove packet 165944 [09:54:38]ProducePacketName [09:54:38]name=ofd_packets/00165944 [09:54:38]NVStorageDeleteData [09:54:38]Write to MH i2c: 01 00 00 B7 39 F0 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: 01 07 00 B7 39 00 00 00 00 00 C5 0C C8 [09:54:38]RasterBufferAndPrint [09:54:38]line [09:54:38]line [09:54:38]line [09:54:38]line [09:54:38]line [09:54:38]written 0, free lines is 3278 [09:54:38]MH_Cut [09:54:38]Write to MH i2c: D1 01 00 BE 39 01 C9 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: D1 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: D1 01 00 [09:54:38]MH_I2C_Read... [09:54:38]Read from MH i2c: D1 01 00 BE 39 00 C8 [09:54:38]Write to MH i2c: 01 00 00 BF 39 F8 [09:54:38]Write i2c OK [09:54:38]MH_I2C_Read... [09:54:39]OFD Sender: No OFD packet to send [09:54:39]*** Cut start [09:54:39]*** Partial cut [09:54:39]*** CUTSNS_PIN = 1 [09:54:39]*** CUTSNS_PIN = 0 [09:54:39]*** Brake cut motor [09:54:40]Read from MH i2c: 01 [09:54:40]MH_I2C_Read... [09:54:40]*** Stop cut motor [09:54:40]*** Cut end [09:54:40]Read from MH i2c: 01 07 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: 01 07 00 BF 39 00 00 00 00 00 FF 0F 0D [09:54:40]process_action close_receipt done [09:54:40]requested_data is exist [09:54:40]produce_requested_data [09:54:40]requested_item fm.sn is exist - process it [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 11 00 00 [09:54:40]Write to MH i2c: E2 08 00 C0 39 80 11 00 00 00 00 00 00 73 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 17 00 C0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [09:54:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:54:40]wFMCommunicate OK [09:54:40]requested_item fd.num is exist - process it [09:54:40]SAM_PROTO_GetFieldsCounters [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 00 00 [09:54:40]Write to MH i2c: E2 08 00 C1 39 80 13 00 00 00 00 00 00 76 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 62 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 62 00 C1 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [09:54:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetFieldsCounters done [09:54:40]requested_item shift.num is exist - process it [09:54:40]requested_item shift.opened is exist - process it [09:54:40]req_shift_opened [09:54:40]FM_GetShiftState [09:54:40]SAM_PROTO_GetShiftState [09:54:40]wFMCommunicate request_size=4 [09:54:40]MH_SAM_APDU [09:54:40]CAPDU: 80 13 01 00 [09:54:40]Write to MH i2c: E2 08 00 C2 39 80 13 01 00 00 00 00 00 78 [09:54:40]Write i2c OK [09:54:40]MH_I2C_Read... [09:54:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:40]Read from MH i2c: E2 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 [09:54:40]MH_I2C_Read... [09:54:40]Read from MH i2c: E2 0E 00 C2 39 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 81 [09:54:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:54:40]wFMCommunicate OK [09:54:40]SAM_PROTO_GetShiftState done [09:54:40]FM_GetShiftState done [09:54:40]req_shift_opened done [09:54:40]requested_item shift.open_date is exist - process it [09:54:40]req_shift_open_date [09:54:40]req_shift_open_date done [09:54:40]produce_requested_data done [09:54:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165944,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:54:40]process_action_free close_receipt [09:54:40]json_value_free [09:54:40]json_value_free done [09:54:40]process_json_proto returns [09:54:40]Send response to host [09:54:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165944,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:54:40]free response buf [09:54:40]execute_script done [09:54:40]execute_script returns [09:54:40]free content buf [09:54:40]Sock 6.Close socket [09:54:40]Sock 6.Thread stoped [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:17]accept exits with 5 [09:57:17]New connection [09:57:17]New thread 3066776932 created [09:57:17]Thread 3066920292 joined [09:57:17]Waiting for new connection... [09:57:17] Sock 5.Parse request [09:57:17]Sock 5.Check first char [09:57:17]Sock 5.First char is OK [09:57:17]request: POST /json_proto HTTP/1.0 [09:57:17]Method: POST [09:57:17]URL: /json_proto [09:57:17]Method is POST - this is cgi request [09:57:17]url: /json_proto [09:57:17]query_string will be loaded in cgi processing [09:57:17]execute_cgi json_proto POST (null) [09:57:17]execute_cgi path=json_proto method=POST [09:57:17]POST find Content-Length [09:57:17]Host: 172.17.53.195:8080 [09:57:17]Content-Length: 677 [09:57:17]Content-Type: application/json [09:57:17] [09:57:17]POST finish read [09:57:17]Found Content-Length = 677 [09:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:17]execute_script... [09:57:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:17]POST & json_proto [09:57:17]process_json_proto [09:57:17]json parsed OK: [09:57:17]protocol is kg_v1.0 [09:57:17]action value=close_receipt [09:57:17]process_action close_receipt [09:57:17]cmd_close_receipt [09:57:17]MH_GetDate [09:57:17]Write to MH i2c: F0 00 00 C3 39 EB [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: F0 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: F0 09 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: F0 09 00 C3 39 00 8E 25 16 67 21 48 4A 65 3C [09:57:17]GetLastDocTimeStamp 1729504493 [09:57:17]current date 1729504654 [09:57:17]FM_GetShiftState [09:57:17]SAM_PROTO_GetShiftState [09:57:17]wFMCommunicate request_size=4 [09:57:17]MH_SAM_APDU [09:57:17]CAPDU: 80 13 01 00 [09:57:17]Write to MH i2c: E2 08 00 C4 39 80 13 01 00 00 00 00 00 7A [09:57:17]Write i2c OK [09:57:17]MH_I2C_Read... [09:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:17]Read from MH i2c: E2 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0E 00 [09:57:17]MH_I2C_Read... [09:57:17]Read from MH i2c: E2 0E 00 C4 39 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 83 [09:57:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:57:17]wFMCommunicate OK [09:57:17]SAM_PROTO_GetShiftState done [09:57:17]FM_GetShiftState done [09:57:17]opened in 1729470944 [09:57:17]opened+sec_in_day 1729557344 [09:57:17]quantity*price = 50041 [09:57:17]sum+1 = 50042 [09:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 56 21.10.2024 09:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165945 ФПД: 277719586395253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095734&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165945&fm=277719586395253&tin=02508201610067®Number=0000000000091764&sum=50000 [09:57:18]StoreToDocumentArchive [09:57:18]shift 535 fd 165945 [09:57:18]save to /storage/0535/doc_00165945 [09:57:18]save last doc name /storage/0535/doc_00165945 to /storage/kkm_last_doc_name [09:57:18]save OK [09:57:18]Clear old archive folders... [09:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:18]tlvbuf is 01522B60 [09:57:18]SAM_PROTO_ClearQueue [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 09 00 00 [09:57:18]Write to MH i2c: E2 08 00 D1 39 80 09 00 00 00 00 00 00 7C [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 D1 39 00 90 00 7E [09:57:18]RAPDU: 90 00 [09:57:18]wFMCommunicate OK [09:57:18]SAM_PROTO_ClearQueue done [09:57:18]KKMCreateOFDPacket [09:57:18]OFDProtocolAddRootSTLVToBuf [09:57:18]FM_MakeSignedData [09:57:18]FM_MakeSignedData [09:57:18]SAM_PROTO_SignData [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 0D 01 02 [09:57:18]Write to MH i2c: E2 08 00 D2 39 80 0D 01 02 00 00 00 00 84 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 D2 39 00 90 00 7F [09:57:18]RAPDU: 90 00 [09:57:18]wFMCommunicate OK [09:57:18]wFMCommunicate request_size=255 [09:57:18]MH_SAM_APDU [09:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8E 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 88 02 00 35 04 06 00 FC [09:57:18]Write to MH i2c: E2 02 01 D3 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8E 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 88 02 00 35 04 06 00 FC 00 00 5A [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 D3 39 00 90 00 80 [09:57:18]RAPDU: 90 00 [09:57:18]wFMCommunicate OK [09:57:18]wFMCommunicate request_size=10 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 0D 02 02 05 95 A1 4B 54 75 [09:57:18]Write to MH i2c: E2 0D 00 D4 39 80 0D 02 02 05 00 95 A1 4B 54 75 00 00 DB [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 03 00 D4 39 00 90 00 81 [09:57:18]RAPDU: 90 00 [09:57:18]wFMCommunicate OK [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 0D 03 02 [09:57:18]Write to MH i2c: E2 08 00 D5 39 80 0D 03 02 00 00 00 00 89 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 0B 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 0B 00 D5 39 00 AA B6 D4 0B ED B5 BE 52 90 00 7B [09:57:18]RAPDU: AA B6 D4 0B ED B5 BE 52 90 00 [09:57:18]wFMCommunicate OK [09:57:18]SAM_PROTO_SignData done [09:57:18]FM_MakeSignedData done [09:57:18]CreateOFDProtocolMessage [09:57:18]wFMCommunicate request_size=4 [09:57:18]MH_SAM_APDU [09:57:18]CAPDU: 80 11 00 00 [09:57:18]Write to MH i2c: E2 08 00 D6 39 80 11 00 00 00 00 00 00 89 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:18]Read from MH i2c: E2 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: E2 17 00 D6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [09:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:57:18]wFMCommunicate OK [09:57:18]CreateOFDProtocolMessage done [09:57:18]OFDSenderStorePacket 165945 [09:57:18]StoreOFDPacket docnum=165945 [09:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B8 CC 07 01 F7 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 8E 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 88 02 00 35 04 06 00 FC 95 A1 4B 54 75 AA B6 D4 0B ED B5 BE 52 [09:57:18]CheckFolder [09:57:18]dirname=/storage/ofd_packets [09:57:18]CheckFolder done [09:57:18]ProducePacketName [09:57:18]name=ofd_packets/00165945 [09:57:18]NVStorageSaveData ofd_packets/00165945 [09:57:18]File name is /storage/ofd_packets/00165945 [09:57:18]Write 301 bytes [09:57:18]NVStorageSaveData done [09:57:18]OFDSenderStorePacket done [09:57:18]KKMCreateOFDPacket done [09:57:18]NVStorageSaveData kkm_last_timestamp [09:57:18]File name is /storage/kkm_last_timestamp [09:57:18]Write 4 bytes [09:57:18]NVStorageSaveData done [09:57:18]ExternCall_PrintAddStr [09:57:18]wPrintStart [09:57:18]Write to MH i2c: 01 00 00 D7 39 10 [09:57:18]Write i2c OK [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 [09:57:18]MH_I2C_Read... [09:57:18]Read from MH i2c: 01 07 00 D7 39 00 00 00 00 00 FF 0F 25 [09:57:18]RasterBufferAndPrint [09:57:18]line Счет N : (1)220515 [09:57:18]line ИНН: 02508201610067 [09:57:18]line Контрольно-Кассовый Чек [09:57:18]line ПРОДАЖА [09:57:18]line ТРК (МРК, ГНК) : 13 [09:57:18]line Товар: 2710124130 [09:57:18]line Аи-92-К-5 [09:57:18]line 7.480 * 66.90 [09:57:18]line = 500.41 [09:57:18]line НДС 12% НСП 1% [09:57:18]line > о реализуемом товаре [09:57:18]line ОКРУГЛЕНИЕ: -0.41 [09:57:18]line ИТОГО: 500.00 [09:57:18]line Внесено: 500.00 [09:57:18]line СДАЧА: 0.00 [09:57:18]line НСП 1% : 4.43 [09:57:18]line НДС 12% : 53.14 [09:57:18]line Наличными: 500.00 [09:57:18]line Безнал.: 0.00 [09:57:18]line Место: АЗС № 161 "Партнер Нефть" [09:57:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:57:18]line СНО: Общий режим [09:57:18]line Чек 56 21.10.2024 09:57 [09:57:18]line Смена: 535 ФФД: 1.0 [09:57:18]line ЗНМ: 0300000104 [09:57:18]line РНМ: 0000000000091764 [09:57:18]line Версия ККМ: 001 [09:57:18]line ФМ: 0000000000871759 [09:57:18]line ФД: 165945 [09:57:18]line ФПД: 277719586395253 [09:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095734&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165945&fm=277719586395253&tin=02508201610067®Number=0000000000091764&sum=50000 [09:57:19]OFD Sender: Processing packet 165945 [packets to send 48, broken 47] [09:57:19]ProducePacketName [09:57:19]name=ofd_packets/00165945 [09:57:19]OFD Sender: To server: pG, [09:57:19]CommunicateWithHost lk.salyk.kg:30040 [09:57:19]ConnectInit lk.salyk.kg [09:57:19]written 0, free lines is 4095 [09:57:19]Write to MH i2c: 01 00 00 02 3A 3C [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: 01 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: 01 07 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: 01 07 00 02 3A 00 00 00 00 00 B6 0C 05 [09:57:19]RasterBufferAndPrint [09:57:19]line [09:57:19]line [09:57:19]line [09:57:19]line [09:57:19]line [09:57:19]written 0, free lines is 3260 [09:57:19]MH_Cut [09:57:19]Write to MH i2c: D1 01 00 09 3A 01 15 [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: D1 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: D1 01 00 [09:57:19]MH_I2C_Read... [09:57:19]Read from MH i2c: D1 01 00 09 3A 00 14 [09:57:19]Write to MH i2c: 01 00 00 0A 3A 44 [09:57:19]Write i2c OK [09:57:19]MH_I2C_Read... [09:57:20]*** Cut start [09:57:20]*** Partial cut [09:57:20]*** CUTSNS_PIN = 1 [09:57:20]*** CUTSNS_PIN = 0 [09:57:20]*** Brake cut motor [09:57:21]Read from MH i2c: 01 [09:57:21]MH_I2C_Read... [09:57:21]*** Stop cut motor [09:57:21]*** Cut end [09:57:21]Read from MH i2c: 01 07 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: 01 07 00 0A 3A 00 00 00 00 00 FF 0F 59 [09:57:21]process_action close_receipt done [09:57:21]requested_data is exist [09:57:21]produce_requested_data [09:57:21]requested_item fm.sn is exist - process it [09:57:21]wFMCommunicate request_size=4 [09:57:21]MH_SAM_APDU [09:57:21]CAPDU: 80 11 00 00 [09:57:21]Write to MH i2c: E2 08 00 0B 3A 80 11 00 00 00 00 00 00 BF [09:57:21]Write i2c OK [09:57:21]MH_I2C_Read... [09:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:21]Read from MH i2c: E2 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: E2 17 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: E2 17 00 0B 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [09:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:57:21]wFMCommunicate OK [09:57:21]requested_item fd.num is exist - process it [09:57:21]SAM_PROTO_GetFieldsCounters [09:57:21]wFMCommunicate request_size=4 [09:57:21]MH_SAM_APDU [09:57:21]CAPDU: 80 13 00 00 [09:57:21]Write to MH i2c: E2 08 00 0C 3A 80 13 00 00 00 00 00 00 C2 [09:57:21]Write i2c OK [09:57:21]MH_I2C_Read... [09:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:21]Read from MH i2c: E2 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: E2 62 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: E2 62 00 0C 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [09:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:21]wFMCommunicate OK [09:57:21]SAM_PROTO_GetFieldsCounters done [09:57:21]requested_item shift.num is exist - process it [09:57:21]requested_item shift.opened is exist - process it [09:57:21]req_shift_opened [09:57:21]FM_GetShiftState [09:57:21]SAM_PROTO_GetShiftState [09:57:21]wFMCommunicate request_size=4 [09:57:21]MH_SAM_APDU [09:57:21]CAPDU: 80 13 01 00 [09:57:21]Write to MH i2c: E2 08 00 0D 3A 80 13 01 00 00 00 00 00 C4 [09:57:21]Write i2c OK [09:57:21]MH_I2C_Read... [09:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:21]Read from MH i2c: E2 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: E2 0E 00 [09:57:21]MH_I2C_Read... [09:57:21]Read from MH i2c: E2 0E 00 0D 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [09:57:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:57:21]wFMCommunicate OK [09:57:21]SAM_PROTO_GetShiftState done [09:57:21]FM_GetShiftState done [09:57:21]req_shift_opened done [09:57:21]requested_item shift.open_date is exist - process it [09:57:21]req_shift_open_date [09:57:21]req_shift_open_date done [09:57:21]produce_requested_data done [09:57:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165945,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:57:21]process_action_free close_receipt [09:57:21]json_value_free [09:57:21]json_value_free done [09:57:21]process_json_proto returns [09:57:21]Send response to host [09:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165945,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:57:21]free response buf [09:57:21]execute_script done [09:57:21]execute_script returns [09:57:21]free content buf [09:57:21]Sock 5.Close socket [09:57:21]Sock 5.Thread stoped [09:57:55]accept exits with 6 [09:57:55]New connection [09:57:55]New thread 3066920292 created [09:57:55]Thread 3066776932 joined [09:57:55]Waiting for new connection... [09:57:55] Sock 6.Parse request [09:57:55]Sock 6.Check first char [09:57:55]Sock 6.First char is OK [09:57:55]request: POST /json_proto HTTP/1.0 [09:57:55]Method: POST [09:57:55]URL: /json_proto [09:57:55]Method is POST - this is cgi request [09:57:55]url: /json_proto [09:57:55]query_string will be loaded in cgi processing [09:57:55]execute_cgi json_proto POST (null) [09:57:55]execute_cgi path=json_proto method=POST [09:57:55]POST find Content-Length [09:57:55]Host: 172.17.53.195:8080 [09:57:55]Content-Length: 677 [09:57:55]Content-Type: application/json [09:57:55] [09:57:55]POST finish read [09:57:55]Found Content-Length = 677 [09:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:55]execute_script... [09:57: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)220516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:55]POST & json_proto [09:57:55]process_json_proto [09:57:55]json parsed OK: [09:57:55]protocol is kg_v1.0 [09:57:55]action value=close_receipt [09:57:55]process_action close_receipt [09:57:55]cmd_close_receipt [09:57:55]MH_GetDate [09:57:55]Write to MH i2c: F0 00 00 0E 3A 37 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: F0 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: F0 09 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: F0 09 00 0E 3A 00 B5 25 16 67 21 48 4A 65 AF [09:57:55]GetLastDocTimeStamp 1729504654 [09:57:55]current date 1729504693 [09:57:55]FM_GetShiftState [09:57:55]SAM_PROTO_GetShiftState [09:57:55]wFMCommunicate request_size=4 [09:57:55]MH_SAM_APDU [09:57:55]CAPDU: 80 13 01 00 [09:57:55]Write to MH i2c: E2 08 00 0F 3A 80 13 01 00 00 00 00 00 C6 [09:57:55]Write i2c OK [09:57:55]MH_I2C_Read... [09:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:55]Read from MH i2c: E2 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 0E 00 [09:57:55]MH_I2C_Read... [09:57:55]Read from MH i2c: E2 0E 00 0F 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CF [09:57:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:57:55]wFMCommunicate OK [09:57:55]SAM_PROTO_GetShiftState done [09:57:55]FM_GetShiftState done [09:57:55]opened in 1729470944 [09:57:55]opened+sec_in_day 1729557344 [09:57:55]quantity*price = 50041 [09:57:55]sum+1 = 50042 [09:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 57 21.10.2024 09:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165946 ФПД: 223636740879649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165946&fm=223636740879649&tin=02508201610067®Number=0000000000091764&sum=50000 [09:57:56]StoreToDocumentArchive [09:57:56]shift 535 fd 165946 [09:57:56]save to /storage/0535/doc_00165946 [09:57:56]save last doc name /storage/0535/doc_00165946 to /storage/kkm_last_doc_name [09:57:56]save OK [09:57:56]Clear old archive folders... [09:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:56]tlvbuf is 0165D680 [09:57:56]SAM_PROTO_ClearQueue [09:57:56]wFMCommunicate request_size=4 [09:57:56]MH_SAM_APDU [09:57:56]CAPDU: 80 09 00 00 [09:57:56]Write to MH i2c: E2 08 00 1C 3A 80 09 00 00 00 00 00 00 C8 [09:57:56]Write i2c OK [09:57:56]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 1C 3A 00 90 00 CA [09:57:57]RAPDU: 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_ClearQueue done [09:57:57]KKMCreateOFDPacket [09:57:57]OFDProtocolAddRootSTLVToBuf [09:57:57]FM_MakeSignedData [09:57:57]FM_MakeSignedData [09:57:57]SAM_PROTO_SignData [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 0D 01 02 [09:57:57]Write to MH i2c: E2 08 00 1D 3A 80 0D 01 02 00 00 00 00 D0 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 1D 3A 00 90 00 CB [09:57:57]RAPDU: 90 00 [09:57:57]wFMCommunicate OK [09:57:57]wFMCommunicate request_size=255 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B5 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 88 02 00 35 04 06 00 CB [09:57:57]Write to MH i2c: E2 02 01 1E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B5 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 88 02 00 35 04 06 00 CB 00 00 9E [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 1E 3A 00 90 00 CC [09:57:57]RAPDU: 90 00 [09:57:57]wFMCommunicate OK [09:57:57]wFMCommunicate request_size=10 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 0D 02 02 05 65 7C 7F B5 21 [09:57:57]Write to MH i2c: E2 0D 00 1F 3A 80 0D 02 02 05 00 65 7C 7F B5 21 00 00 13 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 03 00 1F 3A 00 90 00 CD [09:57:57]RAPDU: 90 00 [09:57:57]wFMCommunicate OK [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 0D 03 02 [09:57:57]Write to MH i2c: E2 08 00 20 3A 80 0D 03 02 00 00 00 00 D5 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0B 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 0B 00 20 3A 00 7A BD 97 A4 B6 F4 4C 13 90 00 51 [09:57:57]RAPDU: 7A BD 97 A4 B6 F4 4C 13 90 00 [09:57:57]wFMCommunicate OK [09:57:57]SAM_PROTO_SignData done [09:57:57]FM_MakeSignedData done [09:57:57]CreateOFDProtocolMessage [09:57:57]wFMCommunicate request_size=4 [09:57:57]MH_SAM_APDU [09:57:57]CAPDU: 80 11 00 00 [09:57:57]Write to MH i2c: E2 08 00 21 3A 80 11 00 00 00 00 00 00 D5 [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:57]Read from MH i2c: E2 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 17 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: E2 17 00 21 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [09:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:57:57]wFMCommunicate OK [09:57:57]CreateOFDProtocolMessage done [09:57:57]OFDSenderStorePacket 165946 [09:57:57]StoreOFDPacket docnum=165946 [09:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE 66 07 01 F2 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B5 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 88 02 00 35 04 06 00 CB 65 7C 7F B5 21 7A BD 97 A4 B6 F4 4C 13 [09:57:57]CheckFolder [09:57:57]dirname=/storage/ofd_packets [09:57:57]CheckFolder done [09:57:57]ProducePacketName [09:57:57]name=ofd_packets/00165946 [09:57:57]NVStorageSaveData ofd_packets/00165946 [09:57:57]File name is /storage/ofd_packets/00165946 [09:57:57]Write 301 bytes [09:57:57]NVStorageSaveData done [09:57:57]OFDSenderStorePacket done [09:57:57]KKMCreateOFDPacket done [09:57:57]NVStorageSaveData kkm_last_timestamp [09:57:57]File name is /storage/kkm_last_timestamp [09:57:57]Write 4 bytes [09:57:57]NVStorageSaveData done [09:57:57]ExternCall_PrintAddStr [09:57:57]wPrintStart [09:57:57]Write to MH i2c: 01 00 00 22 3A 5C [09:57:57]Write i2c OK [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: 01 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: 01 07 00 [09:57:57]MH_I2C_Read... [09:57:57]Read from MH i2c: 01 07 00 22 3A 00 00 00 00 00 FF 0F 71 [09:57:57]RasterBufferAndPrint [09:57:57]line Счет N : (1)220516 [09:57:57]line ИНН: 02508201610067 [09:57:57]line Контрольно-Кассовый Чек [09:57:57]line ПРОДАЖА [09:57:57]line ТРК (МРК, ГНК) : 43 [09:57:57]line Товар: 2710124130 [09:57:57]line Аи-92-К-5 [09:57:57]line 7.480 * 66.90 [09:57:57]line = 500.41 [09:57:57]line НДС 12% НСП 1% [09:57:57]line > о реализуемом товаре [09:57:57]line ОКРУГЛЕНИЕ: -0.41 [09:57:57]line ИТОГО: 500.00 [09:57:57]line Внесено: 500.00 [09:57:57]line СДАЧА: 0.00 [09:57:57]line НСП 1% : 4.43 [09:57:57]line НДС 12% : 53.14 [09:57:57]line Наличными: 500.00 [09:57:57]line Безнал.: 0.00 [09:57:57]line Место: АЗС № 161 "Партнер Нефть" [09:57:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:57:57]line СНО: Общий режим [09:57:57]line Чек 57 21.10.2024 09:58 [09:57:57]line Смена: 535 ФФД: 1.0 [09:57:57]line ЗНМ: 0300000104 [09:57:57]line РНМ: 0000000000091764 [09:57:57]line Версия ККМ: 001 [09:57:57]line ФМ: 0000000000871759 [09:57:57]line ФД: 165946 [09:57:57]line ФПД: 223636740879649 [09:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165946&fm=223636740879649&tin=02508201610067®Number=0000000000091764&sum=50000 [09:57:57]written 0, free lines is 4095 [09:57:58]Write to MH i2c: 01 00 00 4D 3A 87 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 07 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: 01 07 00 4D 3A 00 00 00 00 00 C0 0C 5A [09:57:58]RasterBufferAndPrint [09:57:58]line [09:57:58]line [09:57:58]line [09:57:58]line [09:57:58]line [09:57:58]written 0, free lines is 3270 [09:57:58]MH_Cut [09:57:58]Write to MH i2c: D1 01 00 54 3A 01 60 [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: D1 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: D1 01 00 [09:57:58]MH_I2C_Read... [09:57:58]Read from MH i2c: D1 01 00 54 3A 00 5F [09:57:58]Write to MH i2c: 01 00 00 55 3A 8F [09:57:58]Write i2c OK [09:57:58]MH_I2C_Read... [09:57:59]*** Cut start [09:57:59]*** Partial cut [09:57:59]*** CUTSNS_PIN = 1 [09:57:59]*** CUTSNS_PIN = 0 [09:57:59]*** Brake cut motor [09:57:59]Read from MH i2c: 01 [09:57:59]MH_I2C_Read... [09:57:59]*** Stop cut motor [09:57:59]*** Cut end [09:57:59]Read from MH i2c: 01 07 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: 01 07 00 55 3A 00 00 00 00 00 FF 0F A4 [09:57:59]process_action close_receipt done [09:57:59]requested_data is exist [09:57:59]produce_requested_data [09:57:59]requested_item fm.sn is exist - process it [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 11 00 00 [09:57:59]Write to MH i2c: E2 08 00 56 3A 80 11 00 00 00 00 00 00 0A [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 17 00 56 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [09:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:57:59]wFMCommunicate OK [09:57:59]requested_item fd.num is exist - process it [09:57:59]SAM_PROTO_GetFieldsCounters [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 13 00 00 [09:57:59]Write to MH i2c: E2 08 00 57 3A 80 13 00 00 00 00 00 00 0D [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 62 00 [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 62 00 57 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [09:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:59]wFMCommunicate OK [09:57:59]SAM_PROTO_GetFieldsCounters done [09:57:59]requested_item shift.num is exist - process it [09:57:59]requested_item shift.opened is exist - process it [09:57:59]req_shift_opened [09:57:59]FM_GetShiftState [09:57:59]SAM_PROTO_GetShiftState [09:57:59]wFMCommunicate request_size=4 [09:57:59]MH_SAM_APDU [09:57:59]CAPDU: 80 13 01 00 [09:57:59]Write to MH i2c: E2 08 00 58 3A 80 13 01 00 00 00 00 00 0F [09:57:59]Write i2c OK [09:57:59]MH_I2C_Read... [09:57:59]Read from MH i2c: E2 [09:57:59]MH_I2C_Read... [09:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:59]Read from MH i2c: E2 0E 00 [09:57:59]MH_I2C_Read... [09:58:00]Read from MH i2c: E2 0E 00 58 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 18 [09:58:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:58:00]wFMCommunicate OK [09:58:00]SAM_PROTO_GetShiftState done [09:58:00]FM_GetShiftState done [09:58:00]req_shift_opened done [09:58:00]requested_item shift.open_date is exist - process it [09:58:00]req_shift_open_date [09:58:00]req_shift_open_date done [09:58:00]produce_requested_data done [09:58:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165946,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:58:00]process_action_free close_receipt [09:58:00]json_value_free [09:58:00]json_value_free done [09:58:00]process_json_proto returns [09:58:00]Send response to host [09:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165946,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:58:00]free response buf [09:58:00]execute_script done [09:58:00]execute_script returns [09:58:00]free content buf [09:58:00]Sock 6.Close socket [09:58:00]Sock 6.Thread stoped [09:58:42]accept exits with 5 [09:58:42]New connection [09:58:42]New thread 3066776932 created [09:58:42]Thread 3066920292 joined [09:58:42]Waiting for new connection... [09:58:42] Sock 5.Parse request [09:58:42]Sock 5.Check first char [09:58:42]Sock 5.First char is OK [09:58:42]request: POST /json_proto HTTP/1.0 [09:58:42]Method: POST [09:58:42]URL: /json_proto [09:58:42]Method is POST - this is cgi request [09:58:42]url: /json_proto [09:58:42]query_string will be loaded in cgi processing [09:58:42]execute_cgi json_proto POST (null) [09:58:42]execute_cgi path=json_proto method=POST [09:58:42]POST find Content-Length [09:58:42]Host: 172.17.53.195:8080 [09:58:42]Content-Length: 677 [09:58:42]Content-Type: application/json [09:58:42] [09:58:42]POST finish read [09:58:42]Found Content-Length = 677 [09:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.790, "sum" : 119.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 119.00, "payments": [ { "type": 0, "sum" : 119.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:42]execute_script... [09:58: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)220517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.790, "sum" : 119.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 119.00, "payments": [ { "type": 0, "sum" : 119.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:42]POST & json_proto [09:58:42]process_json_proto [09:58:42]json parsed OK: [09:58:42]protocol is kg_v1.0 [09:58:42]action value=close_receipt [09:58:42]process_action close_receipt [09:58:42]cmd_close_receipt [09:58:42]MH_GetDate [09:58:42]Write to MH i2c: F0 00 00 59 3A 82 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: F0 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: F0 09 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: F0 09 00 59 3A 00 E4 25 16 67 21 48 4A 65 29 [09:58:42]GetLastDocTimeStamp 1729504693 [09:58:42]current date 1729504740 [09:58:42]FM_GetShiftState [09:58:42]SAM_PROTO_GetShiftState [09:58:42]wFMCommunicate request_size=4 [09:58:42]MH_SAM_APDU [09:58:42]CAPDU: 80 13 01 00 [09:58:42]Write to MH i2c: E2 08 00 5A 3A 80 13 01 00 00 00 00 00 11 [09:58:42]Write i2c OK [09:58:42]MH_I2C_Read... [09:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:42]Read from MH i2c: E2 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 0E 00 [09:58:42]MH_I2C_Read... [09:58:42]Read from MH i2c: E2 0E 00 5A 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1A [09:58:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:58:42]wFMCommunicate OK [09:58:42]SAM_PROTO_GetShiftState done [09:58:42]FM_GetShiftState done [09:58:42]opened in 1729470944 [09:58:42]opened+sec_in_day 1729557344 [09:58:42]quantity*price = 11975 [09:58:42]sum+1 = 11976 [09:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 119.00 Внесено: 120.00 СДАЧА: 1.00 НСП 1% : 1.06 НДС 12% : 12.72 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 58 21.10.2024 09:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165947 ФПД: 16540314093448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095900&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165947&fm=16540314093448&tin=02508201610067®Number=0000000000091764&sum=11900 [09:58:43]StoreToDocumentArchive [09:58:43]shift 535 fd 165947 [09:58:43]save to /storage/0535/doc_00165947 [09:58:43]save last doc name /storage/0535/doc_00165947 to /storage/kkm_last_doc_name [09:58:43]save OK [09:58:43]Clear old archive folders... [09:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:43]tlvbuf is 018B05B0 [09:58:43]SAM_PROTO_ClearQueue [09:58:43]wFMCommunicate request_size=4 [09:58:43]MH_SAM_APDU [09:58:43]CAPDU: 80 09 00 00 [09:58:43]Write to MH i2c: E2 08 00 67 3A 80 09 00 00 00 00 00 00 13 [09:58:43]Write i2c OK [09:58:43]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 67 3A 00 90 00 15 [09:58:44]RAPDU: 90 00 [09:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_ClearQueue done [09:58:44]KKMCreateOFDPacket [09:58:44]OFDProtocolAddRootSTLVToBuf [09:58:44]FM_MakeSignedData [09:58:44]FM_MakeSignedData [09:58:44]SAM_PROTO_SignData [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 0D 01 02 [09:58:44]Write to MH i2c: E2 08 00 68 3A 80 0D 01 02 00 00 00 00 1B [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 68 3A 00 90 00 16 [09:58:44]RAPDU: 90 00 [09:58:44]wFMCommunicate OK [09:58:44]wFMCommunicate request_size=255 [09:58:44]MH_SAM_APDU [09:58: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 FE 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 F8 04 00 00 00 00 07 04 06 00 7C 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 3A 00 00 00 F4 03 04 00 E4 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 88 02 00 35 04 06 00 0F [09:58:44]Write to MH i2c: E2 02 01 69 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 FE 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 F8 04 00 00 00 00 07 04 06 00 7C 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 3A 00 00 00 F4 03 04 00 E4 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 88 02 00 35 04 06 00 0F 00 00 C8 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 69 3A 00 90 00 17 [09:58:44]RAPDU: 90 00 [09:58:44]wFMCommunicate OK [09:58:44]wFMCommunicate request_size=10 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 0D 02 02 05 0B 17 8B C7 88 [09:58:44]Write to MH i2c: E2 0D 00 6A 3A 80 0D 02 02 05 00 0B 17 8B C7 88 00 00 24 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 03 00 6A 3A 00 90 00 18 [09:58:44]RAPDU: 90 00 [09:58:44]wFMCommunicate OK [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 0D 03 02 [09:58:44]Write to MH i2c: E2 08 00 6B 3A 80 0D 03 02 00 00 00 00 20 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0B 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 0B 00 6B 3A 00 34 86 6B 9E 35 41 41 AC 90 00 47 [09:58:44]RAPDU: 34 86 6B 9E 35 41 41 AC 90 00 [09:58:44]wFMCommunicate OK [09:58:44]SAM_PROTO_SignData done [09:58:44]FM_MakeSignedData done [09:58:44]CreateOFDProtocolMessage [09:58:44]wFMCommunicate request_size=4 [09:58:44]MH_SAM_APDU [09:58:44]CAPDU: 80 11 00 00 [09:58:44]Write to MH i2c: E2 08 00 6C 3A 80 11 00 00 00 00 00 00 20 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:44]Read from MH i2c: E2 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 17 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: E2 17 00 6C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [09:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:58:44]wFMCommunicate OK [09:58:44]CreateOFDProtocolMessage done [09:58:44]OFDSenderStorePacket 165947 [09:58:44]StoreOFDPacket docnum=165947 [09:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 80 3E 07 01 28 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 FE 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 F8 04 00 00 00 00 07 04 06 00 7C 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 3A 00 00 00 F4 03 04 00 E4 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 88 02 00 35 04 06 00 0F 0B 17 8B C7 88 34 86 6B 9E 35 41 41 AC [09:58:44]CheckFolder [09:58:44]dirname=/storage/ofd_packets [09:58:44]CheckFolder done [09:58:44]ProducePacketName [09:58:44]name=ofd_packets/00165947 [09:58:44]NVStorageSaveData ofd_packets/00165947 [09:58:44]File name is /storage/ofd_packets/00165947 [09:58:44]Write 301 bytes [09:58:44]NVStorageSaveData done [09:58:44]OFDSenderStorePacket done [09:58:44]KKMCreateOFDPacket done [09:58:44]NVStorageSaveData kkm_last_timestamp [09:58:44]File name is /storage/kkm_last_timestamp [09:58:44]Write 4 bytes [09:58:44]NVStorageSaveData done [09:58:44]ExternCall_PrintAddStr [09:58:44]wPrintStart [09:58:44]Write to MH i2c: 01 00 00 6D 3A A7 [09:58:44]Write i2c OK [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: 01 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: 01 07 00 [09:58:44]MH_I2C_Read... [09:58:44]Read from MH i2c: 01 07 00 6D 3A 00 00 00 00 00 FF 0F BC [09:58:44]RasterBufferAndPrint [09:58:44]line Счет N : (1)220517 [09:58:44]line ИНН: 02508201610067 [09:58:44]line Контрольно-Кассовый Чек [09:58:44]line ПРОДАЖА [09:58:44]line ТРК (МРК, ГНК) : 13 [09:58:44]line Товар: 2710124130 [09:58:44]line Аи-92-К-5 [09:58:44]line 1.790 * 66.90 [09:58:44]line = 119.75 [09:58:44]line НДС 12% НСП 1% [09:58:44]line > о реализуемом товаре [09:58:44]line ОКРУГЛЕНИЕ: -0.75 [09:58:44]line ИТОГО: 119.00 [09:58:44]line Внесено: 120.00 [09:58:44]line СДАЧА: 1.00 [09:58:44]line НСП 1% : 1.06 [09:58:44]line НДС 12% : 12.72 [09:58:44]line Наличными: 119.00 [09:58:44]line Безнал.: 0.00 [09:58:44]line Место: АЗС № 161 "Партнер Нефть" [09:58:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:58:44]line СНО: Общий режим [09:58:44]line Чек 58 21.10.2024 09:59 [09:58:44]line Смена: 535 ФФД: 1.0 [09:58:44]line ЗНМ: 0300000104 [09:58:44]line РНМ: 0000000000091764 [09:58:44]line Версия ККМ: 001 [09:58:44]line ФМ: 0000000000871759 [09:58:44]line ФД: 165947 [09:58:44]line ФПД: 16540314093448 [09:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T095900&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165947&fm=16540314093448&tin=02508201610067®Number=0000000000091764&sum=11900 [09:58:44]written 0, free lines is 4095 [09:58:45]Write to MH i2c: 01 00 00 98 3A D2 [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: 01 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: 01 07 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: 01 07 00 98 3A 00 00 00 00 00 AF 0C 94 [09:58:45]RasterBufferAndPrint [09:58:45]line [09:58:45]line [09:58:45]line [09:58:45]line [09:58:45]line [09:58:45]written 0, free lines is 3253 [09:58:45]MH_Cut [09:58:45]Write to MH i2c: D1 01 00 9F 3A 01 AB [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: D1 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: D1 01 00 [09:58:45]MH_I2C_Read... [09:58:45]Read from MH i2c: D1 01 00 9F 3A 00 AA [09:58:45]Write to MH i2c: 01 00 00 A0 3A DA [09:58:45]Write i2c OK [09:58:45]MH_I2C_Read... [09:58:46]*** Cut start [09:58:46]*** Partial cut [09:58:46]*** CUTSNS_PIN = 1 [09:58:46]*** CUTSNS_PIN = 0 [09:58:46]*** Brake cut motor [09:58:46]Read from MH i2c: 01 [09:58:46]MH_I2C_Read... [09:58:46]*** Stop cut motor [09:58:46]*** Cut end [09:58:46]Read from MH i2c: 01 07 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: 01 07 00 A0 3A 00 00 00 00 00 FF 0F EF [09:58:46]process_action close_receipt done [09:58:46]requested_data is exist [09:58:46]produce_requested_data [09:58:46]requested_item fm.sn is exist - process it [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 11 00 00 [09:58:46]Write to MH i2c: E2 08 00 A1 3A 80 11 00 00 00 00 00 00 55 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 17 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 17 00 A1 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [09:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:58:46]wFMCommunicate OK [09:58:46]requested_item fd.num is exist - process it [09:58:46]SAM_PROTO_GetFieldsCounters [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 13 00 00 [09:58:46]Write to MH i2c: E2 08 00 A2 3A 80 13 00 00 00 00 00 00 58 [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:46]Read from MH i2c: E2 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 62 00 [09:58:46]MH_I2C_Read... [09:58:46]Read from MH i2c: E2 62 00 A2 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09:58:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:46]wFMCommunicate OK [09:58:46]SAM_PROTO_GetFieldsCounters done [09:58:46]requested_item shift.num is exist - process it [09:58:46]requested_item shift.opened is exist - process it [09:58:46]req_shift_opened [09:58:46]FM_GetShiftState [09:58:46]SAM_PROTO_GetShiftState [09:58:46]wFMCommunicate request_size=4 [09:58:46]MH_SAM_APDU [09:58:46]CAPDU: 80 13 01 00 [09:58:46]Write to MH i2c: E2 08 00 A3 3A 80 13 01 00 00 00 00 00 5A [09:58:46]Write i2c OK [09:58:46]MH_I2C_Read... [09:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:47]Read from MH i2c: E2 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0E 00 [09:58:47]MH_I2C_Read... [09:58:47]Read from MH i2c: E2 0E 00 A3 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 63 [09:58:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:58:47]wFMCommunicate OK [09:58:47]SAM_PROTO_GetShiftState done [09:58:47]FM_GetShiftState done [09:58:47]req_shift_opened done [09:58:47]requested_item shift.open_date is exist - process it [09:58:47]req_shift_open_date [09:58:47]req_shift_open_date done [09:58:47]produce_requested_data done [09:58:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165947,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [09:58:47]process_action_free close_receipt [09:58:47]json_value_free [09:58:47]json_value_free done [09:58:47]process_json_proto returns [09:58:47]Send response to host [09:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165947,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [09:58:47]free response buf [09:58:47]execute_script done [09:58:47]execute_script returns [09:58:47]free content buf [09:58:47]Sock 5.Close socket [09:58:47]Sock 5.Thread stoped [09:59:31]ConnectInit Can't connect to host [09:59:31]CommunicateWithHost connect error [09:59:31]CommunicateWithHost err = -1 [09:59:31]OFD Sender: Server communicate error [09:59:31]OFD Sender: Processing packet 165945 [packets to send 50, broken 47] [09:59:31]ProducePacketName [09:59:31]name=ofd_packets/00165945 [09:59:31]OFD Sender: To server: pG, [09:59:31]CommunicateWithHost lk.salyk.kg:30040 [09:59:31]ConnectInit lk.salyk.kg [09:59:31]Connected sock=5 [09:59:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B8 CC 07 01 F7 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 8E 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 88 02 00 35 04 06 00 FC 95 A1 4B 54 75 AA B6 D4 0B ED B5 BE 52 [09:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 BE 47 00 43 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 88 02 00 F4 03 04 00 82 CC 15 67 B6 04 01 00 00 04 13 88 69 B8 7E 0D E5 [09:59:32]CommunicateWithHost err = 0 [09:59:32]CheckOFDResponse [09:59:32]1017 (14) - 77093643461234 [09:59:32]1041 (16) - 0000000000871759 [09:59:32]1040 (4) - 165945 [09:59:32]1012 (4) - 21.10.2024 03:37 [09:59:32]1206 (1) - 0 [09:59:32]OFD Sender: Remove packet 165945 [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00165945 [09:59:32]NVStorageDeleteData [09:59:32]OFD Sender: Processing packet 165946 [packets to send 49, broken 47] [09:59:32]ProducePacketName [09:59:32]name=ofd_packets/00165946 [09:59:32]OFD Sender: To server: pG, [09:59:32]CommunicateWithHost lk.salyk.kg:30040 [09:59:32]ConnectInit lk.salyk.kg [09:59:32]Connected sock=5 [09:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EE 66 07 01 F2 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B5 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 88 02 00 35 04 06 00 CB 65 7C 7F B5 21 7A BD 97 A4 B6 F4 4C 13 [09:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 25 47 00 FC BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 88 02 00 F4 03 04 00 83 CC 15 67 B6 04 01 00 00 FC F6 8F B9 9B B3 12 A9 [09:59:33]CommunicateWithHost err = 0 [09:59:33]CheckOFDResponse [09:59:33]1017 (14) - 77093643461234 [09:59:33]1041 (16) - 0000000000871759 [09:59:33]1040 (4) - 165946 [09:59:33]1012 (4) - 21.10.2024 03:37 [09:59:33]1206 (1) - 0 [09:59:33]OFD Sender: Remove packet 165946 [09:59:33]ProducePacketName [09:59:33]name=ofd_packets/00165946 [09:59:33]NVStorageDeleteData [09:59:33]OFD Sender: Processing packet 165947 [packets to send 48, broken 47] [09:59:33]ProducePacketName [09:59:33]name=ofd_packets/00165947 [09:59:33]OFD Sender: To server: pG, [09:59:33]CommunicateWithHost lk.salyk.kg:30040 [09:59:33]ConnectInit lk.salyk.kg [09:59:33]Connected sock=5 [09:59:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 80 3E 07 01 28 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 FE 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 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 F8 04 00 00 00 00 07 04 06 00 7C 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 3A 00 00 00 F4 03 04 00 E4 25 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 88 02 00 35 04 06 00 0F 0B 17 8B C7 88 34 86 6B 9E 35 41 41 AC [09:59:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 86 19 47 00 15 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 88 02 00 F4 03 04 00 83 CC 15 67 B6 04 01 00 00 E4 C7 CA 9F 38 D9 FC AB [09:59:33]CommunicateWithHost err = 0 [09:59:33]CheckOFDResponse [09:59:33]1017 (14) - 77093643461234 [09:59:33]1041 (16) - 0000000000871759 [09:59:33]1040 (4) - 165947 [09:59:33]1012 (4) - 21.10.2024 03:37 [09:59:33]1206 (1) - 0 [09:59:33]OFD Sender: Remove packet 165947 [09:59:33]ProducePacketName [09:59:33]name=ofd_packets/00165947 [09:59:33]NVStorageDeleteData [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:58]accept exits with 6 [09:59:58]New connection [09:59:58]New thread 3066920292 created [09:59:58]Thread 3066776932 joined [09:59:58]Waiting for new connection... [09:59:58] Sock 6.Parse request [09:59:58]Sock 6.Check first char [09:59:58]Sock 6.First char is OK [09:59:58]request: POST /json_proto HTTP/1.0 [09:59:58]Method: POST [09:59:58]URL: /json_proto [09:59:58]Method is POST - this is cgi request [09:59:58]url: /json_proto [09:59:58]query_string will be loaded in cgi processing [09:59:58]execute_cgi json_proto POST (null) [09:59:58]execute_cgi path=json_proto method=POST [09:59:58]POST find Content-Length [09:59:58]Host: 172.17.53.195:8080 [09:59:58]Content-Length: 677 [09:59:58]Content-Type: application/json [09:59:58] [09:59:58]POST finish read [09:59:58]Found Content-Length = 677 [09:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:58]execute_script... [09:59: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)220518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:58]POST & json_proto [09:59:58]process_json_proto [09:59:58]json parsed OK: [09:59:58]protocol is kg_v1.0 [09:59:58]action value=close_receipt [09:59:58]process_action close_receipt [09:59:58]cmd_close_receipt [09:59:58]MH_GetDate [09:59:58]Write to MH i2c: F0 00 00 A4 3A CD [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: F0 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: F0 09 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: F0 09 00 A4 3A 00 2F 26 16 67 21 48 4A 65 C0 [09:59:58]GetLastDocTimeStamp 1729504740 [09:59:58]current date 1729504815 [09:59:58]FM_GetShiftState [09:59:58]SAM_PROTO_GetShiftState [09:59:58]wFMCommunicate request_size=4 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 13 01 00 [09:59:58]Write to MH i2c: E2 08 00 A5 3A 80 13 01 00 00 00 00 00 5C [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 0E 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 0E 00 A5 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 65 [09:59:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [09:59:58]wFMCommunicate OK [09:59:58]SAM_PROTO_GetShiftState done [09:59:58]FM_GetShiftState done [09:59:58]opened in 1729470944 [09:59:58]opened+sec_in_day 1729557344 [09:59:58]quantity*price = 60009 [09:59:58]sum+1 = 60010 [09:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 59 21.10.2024 10:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165948 ФПД: 44681762725778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100015&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165948&fm=44681762725778&tin=02508201610067®Number=0000000000091764&sum=60000 [09:59:59]StoreToDocumentArchive [09:59:59]shift 535 fd 165948 [09:59:59]save to /storage/0535/doc_00165948 [09:59:59]save last doc name /storage/0535/doc_00165948 to /storage/kkm_last_doc_name [09:59:59]save OK [09:59:59]Clear old archive folders... [09:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:59]tlvbuf is 01465350 [09:59:59]SAM_PROTO_ClearQueue [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 09 00 00 [09:59:59]Write to MH i2c: E2 08 00 B2 3A 80 09 00 00 00 00 00 00 5E [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:59]OFD Sender: No OFD packet to send [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 B2 3A 00 90 00 60 [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]SAM_PROTO_ClearQueue done [09:59:59]KKMCreateOFDPacket [09:59:59]OFDProtocolAddRootSTLVToBuf [09:59:59]FM_MakeSignedData [09:59:59]FM_MakeSignedData [09:59:59]SAM_PROTO_SignData [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 0D 01 02 [09:59:59]Write to MH i2c: E2 08 00 B3 3A 80 0D 01 02 00 00 00 00 66 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 B3 3A 00 90 00 61 [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]wFMCommunicate request_size=255 [09:59:59]MH_SAM_APDU [09:59: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2F 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 88 02 00 35 04 06 00 28 [09:59:59]Write to MH i2c: E2 02 01 B4 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2F 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 88 02 00 35 04 06 00 28 00 00 ED [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 B4 3A 00 90 00 62 [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]wFMCommunicate request_size=10 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 0D 02 02 05 A3 48 98 5F 92 [09:59:59]Write to MH i2c: E2 0D 00 B5 3A 80 0D 02 02 05 00 A3 48 98 5F 92 00 00 E7 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 B5 3A 00 90 00 63 [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 0D 03 02 [09:59:59]Write to MH i2c: E2 08 00 B6 3A 80 0D 03 02 00 00 00 00 6B [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 0B 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 0B 00 B6 3A 00 EA 00 C3 EF 4B C4 53 6F 90 00 D9 [09:59:59]RAPDU: EA 00 C3 EF 4B C4 53 6F 90 00 [09:59:59]wFMCommunicate OK [09:59:59]SAM_PROTO_SignData done [09:59:59]FM_MakeSignedData done [09:59:59]CreateOFDProtocolMessage [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 11 00 00 [09:59:59]Write to MH i2c: E2 08 00 B7 3A 80 11 00 00 00 00 00 00 6B [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 17 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 17 00 B7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [09:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [09:59:59]wFMCommunicate OK [09:59:59]CreateOFDProtocolMessage done [09:59:59]OFDSenderStorePacket 165948 [09:59:59]StoreOFDPacket docnum=165948 [09:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 FC 07 01 70 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2F 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 88 02 00 35 04 06 00 28 A3 48 98 5F 92 EA 00 C3 EF 4B C4 53 6F [09:59:59]CheckFolder [09:59:59]dirname=/storage/ofd_packets [09:59:59]CheckFolder done [09:59:59]ProducePacketName [09:59:59]name=ofd_packets/00165948 [09:59:59]NVStorageSaveData ofd_packets/00165948 [09:59:59]File name is /storage/ofd_packets/00165948 [09:59:59]Write 301 bytes [09:59:59]NVStorageSaveData done [09:59:59]OFDSenderStorePacket done [09:59:59]KKMCreateOFDPacket done [09:59:59]NVStorageSaveData kkm_last_timestamp [09:59:59]File name is /storage/kkm_last_timestamp [09:59:59]Write 4 bytes [09:59:59]NVStorageSaveData done [09:59:59]ExternCall_PrintAddStr [09:59:59]wPrintStart [09:59:59]Write to MH i2c: 01 00 00 B8 3A F2 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 B8 3A 00 00 00 00 00 FF 0F 07 [09:59:59]RasterBufferAndPrint [09:59:59]line Счет N : (1)220518 [09:59:59]line ИНН: 02508201610067 [09:59:59]line Контрольно-Кассовый Чек [09:59:59]line ПРОДАЖА [09:59:59]line ТРК (МРК, ГНК) : 33 [09:59:59]line Товар: 2710124130 [09:59:59]line Аи-92-К-5 [09:59:59]line 8.970 * 66.90 [09:59:59]line = 600.09 [09:59:59]line НДС 12% НСП 1% [09:59:59]line > о реализуемом товаре [09:59:59]line ОКРУГЛЕНИЕ: -0.09 [09:59:59]line ИТОГО: 600.00 [09:59:59]line Внесено: 600.00 [09:59:59]line СДАЧА: 0.00 [09:59:59]line НСП 1% : 5.31 [09:59:59]line НДС 12% : 63.73 [09:59:59]line Наличными: 600.00 [09:59:59]line Безнал.: 0.00 [09:59:59]line Место: АЗС № 161 "Партнер Нефть" [09:59:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [09:59:59]line СНО: Общий режим [09:59:59]line Чек 59 21.10.2024 10:00 [09:59:59]line Смена: 535 ФФД: 1.0 [09:59:59]line ЗНМ: 0300000104 [09:59:59]line РНМ: 0000000000091764 [09:59:59]line Версия ККМ: 001 [09:59:59]line ФМ: 0000000000871759 [09:59:59]line ФД: 165948 [09:59:59]line ФПД: 44681762725778 [09:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100015&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165948&fm=44681762725778&tin=02508201610067®Number=0000000000091764&sum=60000 [10:00:00]OFD Sender: Processing packet 165948 [packets to send 48, broken 47] [10:00:00]ProducePacketName [10:00:00]name=ofd_packets/00165948 [10:00:00]OFD Sender: To server: pG, [10:00:00]CommunicateWithHost lk.salyk.kg:30040 [10:00:00]ConnectInit lk.salyk.kg [10:00:00]written 0, free lines is 4095 [10:00:00]Connected sock=7 [10:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 03 FC 07 01 70 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2F 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 88 02 00 35 04 06 00 28 A3 48 98 5F 92 EA 00 C3 EF 4B C4 53 6F [10:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 CB 47 00 F6 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 88 02 00 F4 03 04 00 9E CC 15 67 B6 04 01 00 00 26 A2 F5 A3 8B 9B C7 F4 [10:00:00]CommunicateWithHost err = 0 [10:00:00]CheckOFDResponse [10:00:00]1017 (14) - 77093643461234 [10:00:00]1041 (16) - 0000000000871759 [10:00:00]1040 (4) - 165948 [10:00:00]1012 (4) - 21.10.2024 03:38 [10:00:00]1206 (1) - 0 [10:00:00]OFD Sender: Remove packet 165948 [10:00:00]ProducePacketName [10:00:00]name=ofd_packets/00165948 [10:00:00]NVStorageDeleteData [10:00:00]Write to MH i2c: 01 00 00 E3 3A 1D [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 07 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 07 00 E3 3A 00 00 00 00 00 BA 0C EA [10:00:00]RasterBufferAndPrint [10:00:00]line [10:00:00]line [10:00:00]line [10:00:00]line [10:00:00]line [10:00:00]written 0, free lines is 3266 [10:00:00]MH_Cut [10:00:00]Write to MH i2c: D1 01 00 EA 3A 01 F6 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: D1 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: D1 01 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: D1 01 00 EA 3A 00 F5 [10:00:00]Write to MH i2c: 01 00 00 EB 3A 25 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:01]OFD Sender: No OFD packet to send [10:00:01]*** Cut start [10:00:01]*** Partial cut [10:00:01]*** CUTSNS_PIN = 1 [10:00:01]*** CUTSNS_PIN = 0 [10:00:01]*** Brake cut motor [10:00:02]Read from MH i2c: 01 [10:00:02]MH_I2C_Read... [10:00:02]*** Stop cut motor [10:00:02]*** Cut end [10:00:02]Read from MH i2c: 01 07 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: 01 07 00 EB 3A 00 00 00 00 00 FF 0F 3A [10:00:02]process_action close_receipt done [10:00:02]requested_data is exist [10:00:02]produce_requested_data [10:00:02]requested_item fm.sn is exist - process it [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 11 00 00 [10:00:02]Write to MH i2c: E2 08 00 EC 3A 80 11 00 00 00 00 00 00 A0 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 17 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 17 00 EC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [10:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:00:02]wFMCommunicate OK [10:00:02]requested_item fd.num is exist - process it [10:00:02]SAM_PROTO_GetFieldsCounters [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 13 00 00 [10:00:02]Write to MH i2c: E2 08 00 ED 3A 80 13 00 00 00 00 00 00 A3 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 62 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 62 00 ED 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [10:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:02]wFMCommunicate OK [10:00:02]SAM_PROTO_GetFieldsCounters done [10:00:02]requested_item shift.num is exist - process it [10:00:02]requested_item shift.opened is exist - process it [10:00:02]req_shift_opened [10:00:02]FM_GetShiftState [10:00:02]SAM_PROTO_GetShiftState [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 13 01 00 [10:00:02]Write to MH i2c: E2 08 00 EE 3A 80 13 01 00 00 00 00 00 A5 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 0E 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 0E 00 EE 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AE [10:00:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:00:02]wFMCommunicate OK [10:00:02]SAM_PROTO_GetShiftState done [10:00:02]FM_GetShiftState done [10:00:02]req_shift_opened done [10:00:02]requested_item shift.open_date is exist - process it [10:00:02]req_shift_open_date [10:00:02]req_shift_open_date done [10:00:02]produce_requested_data done [10:00:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165948,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:00:02]process_action_free close_receipt [10:00:02]json_value_free [10:00:02]json_value_free done [10:00:02]process_json_proto returns [10:00:02]Send response to host [10:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165948,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:00:02]free response buf [10:00:02]execute_script done [10:00:02]execute_script returns [10:00:02]free content buf [10:00:02]Sock 6.Close socket [10:00:02]Sock 6.Thread stoped [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:21]accept exits with 5 [10:01:21]New connection [10:01:21]New thread 3066776932 created [10:01:21]Thread 3066920292 joined [10:01:21]Waiting for new connection... [10:01:21] Sock 5.Parse request [10:01:21]Sock 5.Check first char [10:01:21]Sock 5.First char is OK [10:01:21]request: POST /json_proto HTTP/1.0 [10:01:21]Method: POST [10:01:21]URL: /json_proto [10:01:21]Method is POST - this is cgi request [10:01:21]url: /json_proto [10:01:21]query_string will be loaded in cgi processing [10:01:21]execute_cgi json_proto POST (null) [10:01:21]execute_cgi path=json_proto method=POST [10:01:21]POST find Content-Length [10:01:21]Host: 172.17.53.195:8080 [10:01:21]Content-Length: 677 [10:01:21]Content-Type: application/json [10:01:21] [10:01:21]POST finish read [10:01:21]Found Content-Length = 677 [10:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:21]execute_script... [10:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:21]POST & json_proto [10:01:21]process_json_proto [10:01:21]json parsed OK: [10:01:21]protocol is kg_v1.0 [10:01:21]action value=close_receipt [10:01:21]process_action close_receipt [10:01:21]cmd_close_receipt [10:01:21]MH_GetDate [10:01:21]Write to MH i2c: F0 00 00 EF 3A 18 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: F0 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: F0 09 00 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: F0 09 00 EF 3A 00 82 26 16 67 21 48 4A 65 5E [10:01:21]GetLastDocTimeStamp 1729504815 [10:01:21]current date 1729504898 [10:01:21]FM_GetShiftState [10:01:21]SAM_PROTO_GetShiftState [10:01:21]wFMCommunicate request_size=4 [10:01:21]MH_SAM_APDU [10:01:21]CAPDU: 80 13 01 00 [10:01:21]Write to MH i2c: E2 08 00 F0 3A 80 13 01 00 00 00 00 00 A7 [10:01:21]Write i2c OK [10:01:21]MH_I2C_Read... [10:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:21]Read from MH i2c: E2 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: E2 0E 00 [10:01:21]MH_I2C_Read... [10:01:21]Read from MH i2c: E2 0E 00 F0 3A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B0 [10:01:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:01:21]wFMCommunicate OK [10:01:21]SAM_PROTO_GetShiftState done [10:01:21]FM_GetShiftState done [10:01:21]opened in 1729470944 [10:01:21]opened+sec_in_day 1729557344 [10:01:21]quantity*price = 20003 [10:01:21]sum+1 = 20004 [10:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 60 21.10.2024 10:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165949 ФПД: 194213468147045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100138&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165949&fm=194213468147045&tin=02508201610067®Number=0000000000091764&sum=20000 [10:01:22]StoreToDocumentArchive [10:01:22]shift 535 fd 165949 [10:01:22]save to /storage/0535/doc_00165949 [10:01:22]save last doc name /storage/0535/doc_00165949 to /storage/kkm_last_doc_name [10:01:22]save OK [10:01:22]Clear old archive folders... [10:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:22]tlvbuf is 01891EA0 [10:01:22]SAM_PROTO_ClearQueue [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 09 00 00 [10:01:22]Write to MH i2c: E2 08 00 FD 3A 80 09 00 00 00 00 00 00 A9 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 FD 3A 00 90 00 AB [10:01:22]RAPDU: 90 00 [10:01:22]wFMCommunicate OK [10:01:22]SAM_PROTO_ClearQueue done [10:01:22]KKMCreateOFDPacket [10:01:22]OFDProtocolAddRootSTLVToBuf [10:01:22]FM_MakeSignedData [10:01:22]FM_MakeSignedData [10:01:22]SAM_PROTO_SignData [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 0D 01 02 [10:01:22]Write to MH i2c: E2 08 00 FE 3A 80 0D 01 02 00 00 00 00 B1 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 FE 3A 00 90 00 AC [10:01:22]RAPDU: 90 00 [10:01:22]wFMCommunicate OK [10:01:22]wFMCommunicate request_size=255 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 88 02 00 35 04 06 00 B0 [10:01:22]Write to MH i2c: E2 02 01 FF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 88 02 00 35 04 06 00 B0 00 00 FA [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 FF 3A 00 90 00 AD [10:01:22]RAPDU: 90 00 [10:01:22]wFMCommunicate OK [10:01:22]wFMCommunicate request_size=10 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 0D 02 02 05 A2 D8 C7 8D 65 [10:01:22]Write to MH i2c: E2 0D 00 00 3B 80 0D 02 02 05 00 A2 D8 C7 8D 65 00 00 F2 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 03 00 00 3B 00 90 00 AF [10:01:22]RAPDU: 90 00 [10:01:22]wFMCommunicate OK [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 0D 03 02 [10:01:22]Write to MH i2c: E2 08 00 01 3B 80 0D 03 02 00 00 00 00 B7 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:22]Read from MH i2c: E2 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 0B 00 [10:01:22]MH_I2C_Read... [10:01:22]Read from MH i2c: E2 0B 00 01 3B 00 52 4E 27 90 16 1A DF 9F 90 00 BD [10:01:22]RAPDU: 52 4E 27 90 16 1A DF 9F 90 00 [10:01:22]wFMCommunicate OK [10:01:22]SAM_PROTO_SignData done [10:01:22]FM_MakeSignedData done [10:01:22]CreateOFDProtocolMessage [10:01:22]wFMCommunicate request_size=4 [10:01:22]MH_SAM_APDU [10:01:22]CAPDU: 80 11 00 00 [10:01:22]Write to MH i2c: E2 08 00 02 3B 80 11 00 00 00 00 00 00 B7 [10:01:22]Write i2c OK [10:01:22]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 17 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 17 00 02 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [10:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:23]wFMCommunicate OK [10:01:23]CreateOFDProtocolMessage done [10:01:23]OFDSenderStorePacket 165949 [10:01:23]StoreOFDPacket docnum=165949 [10:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D AA 07 01 3A 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 88 02 00 35 04 06 00 B0 A2 D8 C7 8D 65 52 4E 27 90 16 1A DF 9F [10:01:23]CheckFolder [10:01:23]dirname=/storage/ofd_packets [10:01:23]CheckFolder done [10:01:23]ProducePacketName [10:01:23]name=ofd_packets/00165949 [10:01:23]NVStorageSaveData ofd_packets/00165949 [10:01:23]File name is /storage/ofd_packets/00165949 [10:01:23]Write 301 bytes [10:01:23]NVStorageSaveData done [10:01:23]OFDSenderStorePacket done [10:01:23]KKMCreateOFDPacket done [10:01:23]NVStorageSaveData kkm_last_timestamp [10:01:23]File name is /storage/kkm_last_timestamp [10:01:23]Write 4 bytes [10:01:23]NVStorageSaveData done [10:01:23]ExternCall_PrintAddStr [10:01:23]wPrintStart [10:01:23]Write to MH i2c: 01 00 00 03 3B 3E [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 07 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 07 00 03 3B 00 00 00 00 00 FF 0F 53 [10:01:23]RasterBufferAndPrint [10:01:23]line Счет N : (1)220519 [10:01:23]line ИНН: 02508201610067 [10:01:23]line Контрольно-Кассовый Чек [10:01:23]line ПРОДАЖА [10:01:23]line ТРК (МРК, ГНК) : 23 [10:01:23]line Товар: 2710124130 [10:01:23]line Аи-92-К-5 [10:01:23]line 2.990 * 66.90 [10:01:23]line = 200.03 [10:01:23]line НДС 12% НСП 1% [10:01:23]line > о реализуемом товаре [10:01:23]line ОКРУГЛЕНИЕ: -0.03 [10:01:23]line ИТОГО: 200.00 [10:01:23]line Внесено: 200.00 [10:01:23]line СДАЧА: 0.00 [10:01:23]line НСП 1% : 1.77 [10:01:23]line НДС 12% : 21.24 [10:01:23]line Наличными: 200.00 [10:01:23]line Безнал.: 0.00 [10:01:23]line Место: АЗС № 161 "Партнер Нефть" [10:01:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:01:23]line СНО: Общий режим [10:01:23]line Чек 60 21.10.2024 10:01 [10:01:23]line Смена: 535 ФФД: 1.0 [10:01:23]line ЗНМ: 0300000104 [10:01:23]line РНМ: 0000000000091764 [10:01:23]line Версия ККМ: 001 [10:01:23]line ФМ: 0000000000871759 [10:01:23]line ФД: 165949 [10:01:23]line ФПД: 194213468147045 [10:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100138&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165949&fm=194213468147045&tin=02508201610067®Number=0000000000091764&sum=20000 [10:01:23]OFD Sender: Processing packet 165949 [packets to send 48, broken 47] [10:01:23]ProducePacketName [10:01:23]name=ofd_packets/00165949 [10:01:23]OFD Sender: To server: pG, [10:01:23]CommunicateWithHost lk.salyk.kg:30040 [10:01:23]ConnectInit lk.salyk.kg [10:01:23]written 0, free lines is 4095 [10:01:23]Connected sock=7 [10:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D AA 07 01 3A 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 82 26 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 88 02 00 35 04 06 00 B0 A2 D8 C7 8D 65 52 4E 27 90 16 1A DF 9F [10:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 13 92 47 00 C2 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 88 02 00 F4 03 04 00 F1 CC 15 67 B6 04 01 00 00 C0 5B C5 4A BF 7E 18 18 [10:01:23]CommunicateWithHost err = 0 [10:01:23]CheckOFDResponse [10:01:23]1017 (14) - 77093643461234 [10:01:23]1041 (16) - 0000000000871759 [10:01:23]1040 (4) - 165949 [10:01:23]1012 (4) - 21.10.2024 03:39 [10:01:23]1206 (1) - 0 [10:01:23]OFD Sender: Remove packet 165949 [10:01:23]ProducePacketName [10:01:23]name=ofd_packets/00165949 [10:01:23]NVStorageDeleteData [10:01:23]Write to MH i2c: 01 00 00 2E 3B 69 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 07 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: 01 07 00 2E 3B 00 00 00 00 00 C2 0C 3E [10:01:23]RasterBufferAndPrint [10:01:23]line [10:01:23]line [10:01:23]line [10:01:23]line [10:01:23]line [10:01:23]written 0, free lines is 3272 [10:01:23]MH_Cut [10:01:23]Write to MH i2c: D1 01 00 35 3B 01 42 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: D1 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: D1 01 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: D1 01 00 35 3B 00 41 [10:01:23]Write to MH i2c: 01 00 00 36 3B 71 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:24]OFD Sender: No OFD packet to send [10:01:24]*** Cut start [10:01:24]*** Partial cut [10:01:24]*** CUTSNS_PIN = 1 [10:01:24]*** CUTSNS_PIN = 0 [10:01:24]*** Brake cut motor [10:01:25]Read from MH i2c: 01 [10:01:25]MH_I2C_Read... [10:01:25]*** Stop cut motor [10:01:25]*** Cut end [10:01:25]Read from MH i2c: 01 07 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 36 3B 00 00 00 00 00 FF 0F 86 [10:01:25]process_action close_receipt done [10:01:25]requested_data is exist [10:01:25]produce_requested_data [10:01:25]requested_item fm.sn is exist - process it [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 11 00 00 [10:01:25]Write to MH i2c: E2 08 00 37 3B 80 11 00 00 00 00 00 00 EC [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 37 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 44 [10:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:01:25]wFMCommunicate OK [10:01:25]requested_item fd.num is exist - process it [10:01:25]SAM_PROTO_GetFieldsCounters [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 13 00 00 [10:01:25]Write to MH i2c: E2 08 00 38 3B 80 13 00 00 00 00 00 00 EF [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 62 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 62 00 38 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_GetFieldsCounters done [10:01:25]requested_item shift.num is exist - process it [10:01:25]requested_item shift.opened is exist - process it [10:01:25]req_shift_opened [10:01:25]FM_GetShiftState [10:01:25]SAM_PROTO_GetShiftState [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 13 01 00 [10:01:25]Write to MH i2c: E2 08 00 39 3B 80 13 01 00 00 00 00 00 F1 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0E 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0E 00 39 3B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FA [10:01:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_GetShiftState done [10:01:25]FM_GetShiftState done [10:01:25]req_shift_opened done [10:01:25]requested_item shift.open_date is exist - process it [10:01:25]req_shift_open_date [10:01:25]req_shift_open_date done [10:01:25]produce_requested_data done [10:01:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165949,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:01:25]process_action_free close_receipt [10:01:25]json_value_free [10:01:25]json_value_free done [10:01:25]process_json_proto returns [10:01:25]Send response to host [10:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165949,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:01:25]free response buf [10:01:25]execute_script done [10:01:25]execute_script returns [10:01:25]free content buf [10:01:25]Sock 5.Close socket [10:01:25]Sock 5.Thread stoped [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:44]accept exits with 6 [10:05:44]New connection [10:05:44]New thread 3066920292 created [10:05:44]Thread 3066776932 joined [10:05:44]Waiting for new connection... [10:05:44] Sock 6.Parse request [10:05:44]Sock 6.Check first char [10:05:44]Sock 6.First char is OK [10:05:44]request: POST /json_proto HTTP/1.0 [10:05:44]Method: POST [10:05:44]URL: /json_proto [10:05:44]Method is POST - this is cgi request [10:05:44]url: /json_proto [10:05:44]query_string will be loaded in cgi processing [10:05:44]execute_cgi json_proto POST (null) [10:05:44]execute_cgi path=json_proto method=POST [10:05:44]POST find Content-Length [10:05:44]Host: 172.17.53.195:8080 [10:05:44]Content-Length: 677 [10:05:44]Content-Type: application/json [10:05:44] [10:05:44]POST finish read [10:05:44]Found Content-Length = 677 [10:05:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:44]execute_script... [10: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)220520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:05:44]POST & json_proto [10:05:44]process_json_proto [10:05:44]json parsed OK: [10:05:44]protocol is kg_v1.0 [10:05:44]action value=close_receipt [10:05:44]process_action close_receipt [10:05:44]cmd_close_receipt [10:05:44]MH_GetDate [10:05:44]Write to MH i2c: F0 00 00 3A 3B 64 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 09 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: F0 09 00 3A 3B 00 8A 27 16 67 21 48 4A 65 B3 [10:05:44]GetLastDocTimeStamp 1729504898 [10:05:44]current date 1729505162 [10:05:44]FM_GetShiftState [10:05:44]SAM_PROTO_GetShiftState [10:05:44]wFMCommunicate request_size=4 [10:05:44]MH_SAM_APDU [10:05:44]CAPDU: 80 13 01 00 [10:05:44]Write to MH i2c: E2 08 00 3B 3B 80 13 01 00 00 00 00 00 F3 [10:05:44]Write i2c OK [10:05:44]MH_I2C_Read... [10:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:44]Read from MH i2c: E2 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 0E 00 [10:05:44]MH_I2C_Read... [10:05:44]Read from MH i2c: E2 0E 00 3B 3B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FC [10:05:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:05:44]wFMCommunicate OK [10:05:44]SAM_PROTO_GetShiftState done [10:05:44]FM_GetShiftState done [10:05:44]opened in 1729470944 [10:05:44]opened+sec_in_day 1729557344 [10:05:44]quantity*price = 40006 [10:05:44]sum+1 = 40007 [10:05:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 61 21.10.2024 10:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165950 ФПД: 126746555981542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100602&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165950&fm=126746555981542&tin=02508201610067®Number=0000000000091764&sum=40000 [10:05:45]StoreToDocumentArchive [10:05:45]shift 535 fd 165950 [10:05:45]save to /storage/0535/doc_00165950 [10:05:45]save last doc name /storage/0535/doc_00165950 to /storage/kkm_last_doc_name [10:05:45]save OK [10:05:45]Clear old archive folders... [10:05:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:45]tlvbuf is 015E9C50 [10:05:45]SAM_PROTO_ClearQueue [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 09 00 00 [10:05:45]Write to MH i2c: E2 08 00 48 3B 80 09 00 00 00 00 00 00 F5 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 48 3B 00 90 00 F7 [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]SAM_PROTO_ClearQueue done [10:05:45]KKMCreateOFDPacket [10:05:45]OFDProtocolAddRootSTLVToBuf [10:05:45]FM_MakeSignedData [10:05:45]FM_MakeSignedData [10:05:45]SAM_PROTO_SignData [10:05:45]wFMCommunicate request_size=4 [10:05:45]MH_SAM_APDU [10:05:45]CAPDU: 80 0D 01 02 [10:05:45]Write to MH i2c: E2 08 00 49 3B 80 0D 01 02 00 00 00 00 FD [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:45]Read from MH i2c: E2 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 [10:05:45]MH_I2C_Read... [10:05:45]Read from MH i2c: E2 03 00 49 3B 00 90 00 F8 [10:05:45]RAPDU: 90 00 [10:05:45]wFMCommunicate OK [10:05:45]wFMCommunicate request_size=255 [10:05:45]MH_SAM_APDU [10: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8A 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 88 02 00 35 04 06 00 73 [10:05:45]Write to MH i2c: E2 02 01 4A 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8A 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 88 02 00 35 04 06 00 73 00 00 21 [10:05:45]Write i2c OK [10:05:45]MH_I2C_Read... [10:05:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 4A 3B 00 90 00 F9 [10:05:46]RAPDU: 90 00 [10:05:46]wFMCommunicate OK [10:05:46]wFMCommunicate request_size=10 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 0D 02 02 05 46 7B 72 1E E6 [10:05:46]Write to MH i2c: E2 0D 00 4B 3B 80 0D 02 02 05 00 46 7B 72 1E E6 00 00 41 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 03 00 4B 3B 00 90 00 FA [10:05:46]RAPDU: 90 00 [10:05:46]wFMCommunicate OK [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 0D 03 02 [10:05:46]Write to MH i2c: E2 08 00 4C 3B 80 0D 03 02 00 00 00 00 02 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0B 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 0B 00 4C 3B 00 EA 11 CB 83 BC 16 BB FD 90 00 D6 [10:05:46]RAPDU: EA 11 CB 83 BC 16 BB FD 90 00 [10:05:46]wFMCommunicate OK [10:05:46]SAM_PROTO_SignData done [10:05:46]FM_MakeSignedData done [10:05:46]CreateOFDProtocolMessage [10:05:46]wFMCommunicate request_size=4 [10:05:46]MH_SAM_APDU [10:05:46]CAPDU: 80 11 00 00 [10:05:46]Write to MH i2c: E2 08 00 4D 3B 80 11 00 00 00 00 00 00 02 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:46]Read from MH i2c: E2 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: E2 17 00 4D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [10:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:05:46]wFMCommunicate OK [10:05:46]CreateOFDProtocolMessage done [10:05:46]OFDSenderStorePacket 165950 [10:05:46]StoreOFDPacket docnum=165950 [10:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 F5 07 01 0E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8A 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 88 02 00 35 04 06 00 73 46 7B 72 1E E6 EA 11 CB 83 BC 16 BB FD [10:05:46]CheckFolder [10:05:46]dirname=/storage/ofd_packets [10:05:46]CheckFolder done [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00165950 [10:05:46]NVStorageSaveData ofd_packets/00165950 [10:05:46]File name is /storage/ofd_packets/00165950 [10:05:46]Write 301 bytes [10:05:46]NVStorageSaveData done [10:05:46]OFDSenderStorePacket done [10:05:46]KKMCreateOFDPacket done [10:05:46]NVStorageSaveData kkm_last_timestamp [10:05:46]File name is /storage/kkm_last_timestamp [10:05:46]Write 4 bytes [10:05:46]NVStorageSaveData done [10:05:46]ExternCall_PrintAddStr [10:05:46]wPrintStart [10:05:46]Write to MH i2c: 01 00 00 4E 3B 89 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 4E 3B 00 00 00 00 00 FF 0F 9E [10:05:46]RasterBufferAndPrint [10:05:46]line Счет N : (1)220520 [10:05:46]line ИНН: 02508201610067 [10:05:46]line Контрольно-Кассовый Чек [10:05:46]line ПРОДАЖА [10:05:46]line ТРК (МРК, ГНК) : 13 [10:05:46]line Товар: 2710124130 [10:05:46]line Аи-92-К-5 [10:05:46]line 5.980 * 66.90 [10:05:46]line = 400.06 [10:05:46]line НДС 12% НСП 1% [10:05:46]line > о реализуемом товаре [10:05:46]line ОКРУГЛЕНИЕ: -0.06 [10:05:46]line ИТОГО: 400.00 [10:05:46]line Внесено: 400.00 [10:05:46]line СДАЧА: 0.00 [10:05:46]line НСП 1% : 3.54 [10:05:46]line НДС 12% : 42.48 [10:05:46]line Наличными: 400.00 [10:05:46]line Безнал.: 0.00 [10:05:46]line Место: АЗС № 161 "Партнер Нефть" [10:05:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:05:46]line СНО: Общий режим [10:05:46]line Чек 61 21.10.2024 10:06 [10:05:46]line Смена: 535 ФФД: 1.0 [10:05:46]line ЗНМ: 0300000104 [10:05:46]line РНМ: 0000000000091764 [10:05:46]line Версия ККМ: 001 [10:05:46]line ФМ: 0000000000871759 [10:05:46]line ФД: 165950 [10:05:46]line ФПД: 126746555981542 [10:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100602&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165950&fm=126746555981542&tin=02508201610067®Number=0000000000091764&sum=40000 [10:05:46]OFD Sender: Processing packet 165950 [packets to send 48, broken 47] [10:05:46]ProducePacketName [10:05:46]name=ofd_packets/00165950 [10:05:46]OFD Sender: To server: pG, [10:05:46]CommunicateWithHost lk.salyk.kg:30040 [10:05:46]ConnectInit lk.salyk.kg [10:05:46]written 0, free lines is 4095 [10:05:46]Write to MH i2c: 01 00 00 79 3B B4 [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: 01 07 00 79 3B 00 00 00 00 00 B9 0C 80 [10:05:46]RasterBufferAndPrint [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]line [10:05:46]written 0, free lines is 3260 [10:05:46]MH_Cut [10:05:46]Write to MH i2c: D1 01 00 80 3B 01 8D [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: D1 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: D1 01 00 [10:05:46]MH_I2C_Read... [10:05:46]Read from MH i2c: D1 01 00 80 3B 00 8C [10:05:46]Write to MH i2c: 01 00 00 81 3B BC [10:05:46]Write i2c OK [10:05:46]MH_I2C_Read... [10:05:47]*** Cut start [10:05:47]*** Partial cut [10:05:47]*** CUTSNS_PIN = 1 [10:05:47]*** CUTSNS_PIN = 0 [10:05:48]*** Brake cut motor [10:05:48]Read from MH i2c: 01 [10:05:48]MH_I2C_Read... [10:05:48]*** Stop cut motor [10:05:48]*** Cut end [10:05:48]Read from MH i2c: 01 07 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: 01 07 00 81 3B 00 00 00 00 00 FF 0F D1 [10:05:48]process_action close_receipt done [10:05:48]requested_data is exist [10:05:48]produce_requested_data [10:05:48]requested_item fm.sn is exist - process it [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 11 00 00 [10:05:48]Write to MH i2c: E2 08 00 82 3B 80 11 00 00 00 00 00 00 37 [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 17 00 82 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8F [10:05:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:05:48]wFMCommunicate OK [10:05:48]requested_item fd.num is exist - process it [10:05:48]SAM_PROTO_GetFieldsCounters [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 00 00 [10:05:48]Write to MH i2c: E2 08 00 83 3B 80 13 00 00 00 00 00 00 3A [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 62 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 62 00 83 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetFieldsCounters done [10:05:48]requested_item shift.num is exist - process it [10:05:48]requested_item shift.opened is exist - process it [10:05:48]req_shift_opened [10:05:48]FM_GetShiftState [10:05:48]SAM_PROTO_GetShiftState [10:05:48]wFMCommunicate request_size=4 [10:05:48]MH_SAM_APDU [10:05:48]CAPDU: 80 13 01 00 [10:05:48]Write to MH i2c: E2 08 00 84 3B 80 13 01 00 00 00 00 00 3C [10:05:48]Write i2c OK [10:05:48]MH_I2C_Read... [10:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:48]Read from MH i2c: E2 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 [10:05:48]MH_I2C_Read... [10:05:48]Read from MH i2c: E2 0E 00 84 3B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 45 [10:05:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:05:48]wFMCommunicate OK [10:05:48]SAM_PROTO_GetShiftState done [10:05:48]FM_GetShiftState done [10:05:48]req_shift_opened done [10:05:48]requested_item shift.open_date is exist - process it [10:05:48]req_shift_open_date [10:05:48]req_shift_open_date done [10:05:48]produce_requested_data done [10:05:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165950,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:05:48]process_action_free close_receipt [10:05:48]json_value_free [10:05:48]json_value_free done [10:05:48]process_json_proto returns [10:05:48]Send response to host [10:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165950,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:05:48]free response buf [10:05:48]execute_script done [10:05:48]execute_script returns [10:05:48]free content buf [10:05:48]Sock 6.Close socket [10:05:48]Sock 6.Thread stoped [10:07:13]accept exits with 5 [10:07:13]New connection [10:07:13]New thread 3066776932 created [10:07:13]Thread 3066920292 joined [10:07:13]Waiting for new connection... [10:07:13] Sock 5.Parse request [10:07:13]Sock 5.Check first char [10:07:13]Sock 5.First char is OK [10:07:13]request: POST /json_proto HTTP/1.0 [10:07:13]Method: POST [10:07:13]URL: /json_proto [10:07:13]Method is POST - this is cgi request [10:07:13]url: /json_proto [10:07:13]query_string will be loaded in cgi processing [10:07:13]execute_cgi json_proto POST (null) [10:07:13]execute_cgi path=json_proto method=POST [10:07:13]POST find Content-Length [10:07:13]Host: 172.17.53.195:8080 [10:07:13]Content-Length: 677 [10:07:13]Content-Type: application/json [10:07:13] [10:07:13]POST finish read [10:07:13]Found Content-Length = 677 [10:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:13]execute_script... [10:07: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)220521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:13]POST & json_proto [10:07:13]process_json_proto [10:07:13]json parsed OK: [10:07:13]protocol is kg_v1.0 [10:07:13]action value=close_receipt [10:07:13]process_action close_receipt [10:07:13]cmd_close_receipt [10:07:13]MH_GetDate [10:07:13]Write to MH i2c: F0 00 00 85 3B AF [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 09 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: F0 09 00 85 3B 00 E2 27 16 67 21 48 4A 65 56 [10:07:13]GetLastDocTimeStamp 1729505162 [10:07:13]current date 1729505250 [10:07:13]FM_GetShiftState [10:07:13]SAM_PROTO_GetShiftState [10:07:13]wFMCommunicate request_size=4 [10:07:13]MH_SAM_APDU [10:07:13]CAPDU: 80 13 01 00 [10:07:13]Write to MH i2c: E2 08 00 86 3B 80 13 01 00 00 00 00 00 3E [10:07:13]Write i2c OK [10:07:13]MH_I2C_Read... [10:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:13]Read from MH i2c: E2 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 [10:07:13]MH_I2C_Read... [10:07:13]Read from MH i2c: E2 0E 00 86 3B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 47 [10:07:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:07:13]wFMCommunicate OK [10:07:13]SAM_PROTO_GetShiftState done [10:07:13]FM_GetShiftState done [10:07:13]opened in 1729470944 [10:07:13]opened+sec_in_day 1729557344 [10:07:13]quantity*price = 60009 [10:07:13]sum+1 = 60010 [10:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 62 21.10.2024 10:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165951 ФПД: 247526954865343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100730&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165951&fm=247526954865343&tin=02508201610067®Number=0000000000091764&sum=60000 [10:07:14]StoreToDocumentArchive [10:07:14]shift 535 fd 165951 [10:07:14]save to /storage/0535/doc_00165951 [10:07:14]save last doc name /storage/0535/doc_00165951 to /storage/kkm_last_doc_name [10:07:14]save OK [10:07:14]Clear old archive folders... [10:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:14]tlvbuf is 01512C50 [10:07:14]SAM_PROTO_ClearQueue [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 09 00 00 [10:07:14]Write to MH i2c: E2 08 00 93 3B 80 09 00 00 00 00 00 00 40 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 93 3B 00 90 00 42 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_ClearQueue done [10:07:14]KKMCreateOFDPacket [10:07:14]OFDProtocolAddRootSTLVToBuf [10:07:14]FM_MakeSignedData [10:07:14]FM_MakeSignedData [10:07:14]SAM_PROTO_SignData [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 01 02 [10:07:14]Write to MH i2c: E2 08 00 94 3B 80 0D 01 02 00 00 00 00 48 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 94 3B 00 90 00 43 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=255 [10:07:14]MH_SAM_APDU [10:07: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E2 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 88 02 00 35 04 06 00 E1 [10:07:14]Write to MH i2c: E2 02 01 95 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E2 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 88 02 00 35 04 06 00 E1 00 00 42 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 95 3B 00 90 00 44 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=10 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 02 02 05 1F DC 37 92 BF [10:07:14]Write to MH i2c: E2 0D 00 96 3B 80 0D 02 02 05 00 1F DC 37 92 BF 00 00 D8 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 03 00 96 3B 00 90 00 45 [10:07:14]RAPDU: 90 00 [10:07:14]wFMCommunicate OK [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 0D 03 02 [10:07:14]Write to MH i2c: E2 08 00 97 3B 80 0D 03 02 00 00 00 00 4D [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0B 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0B 00 97 3B 00 20 9B 54 BC 33 E7 01 BF 90 00 F3 [10:07:14]RAPDU: 20 9B 54 BC 33 E7 01 BF 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_SignData done [10:07:14]FM_MakeSignedData done [10:07:14]CreateOFDProtocolMessage [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 11 00 00 [10:07:14]Write to MH i2c: E2 08 00 98 3B 80 11 00 00 00 00 00 00 4D [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 17 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 17 00 98 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [10:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:07:14]wFMCommunicate OK [10:07:14]CreateOFDProtocolMessage done [10:07:14]OFDSenderStorePacket 165951 [10:07:14]StoreOFDPacket docnum=165951 [10:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5A B2 07 01 CB 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E2 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 88 02 00 35 04 06 00 E1 1F DC 37 92 BF 20 9B 54 BC 33 E7 01 BF [10:07:14]CheckFolder [10:07:14]dirname=/storage/ofd_packets [10:07:14]CheckFolder done [10:07:14]ProducePacketName [10:07:14]name=ofd_packets/00165951 [10:07:14]NVStorageSaveData ofd_packets/00165951 [10:07:14]File name is /storage/ofd_packets/00165951 [10:07:14]Write 301 bytes [10:07:14]NVStorageSaveData done [10:07:14]OFDSenderStorePacket done [10:07:14]KKMCreateOFDPacket done [10:07:14]NVStorageSaveData kkm_last_timestamp [10:07:14]File name is /storage/kkm_last_timestamp [10:07:14]Write 4 bytes [10:07:14]NVStorageSaveData done [10:07:14]ExternCall_PrintAddStr [10:07:14]wPrintStart [10:07:14]Write to MH i2c: 01 00 00 99 3B D4 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 07 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: 01 07 00 99 3B 00 00 00 00 00 FF 0F E9 [10:07:14]RasterBufferAndPrint [10:07:14]line Счет N : (1)220521 [10:07:14]line ИНН: 02508201610067 [10:07:14]line Контрольно-Кассовый Чек [10:07:14]line ПРОДАЖА [10:07:14]line ТРК (МРК, ГНК) : 23 [10:07:14]line Товар: 2710124130 [10:07:14]line Аи-92-К-5 [10:07:14]line 8.970 * 66.90 [10:07:14]line = 600.09 [10:07:14]line НДС 12% НСП 1% [10:07:14]line > о реализуемом товаре [10:07:14]line ОКРУГЛЕНИЕ: -0.09 [10:07:14]line ИТОГО: 600.00 [10:07:14]line Внесено: 600.00 [10:07:14]line СДАЧА: 0.00 [10:07:14]line НСП 1% : 5.31 [10:07:14]line НДС 12% : 63.73 [10:07:14]line Наличными: 600.00 [10:07:14]line Безнал.: 0.00 [10:07:14]line Место: АЗС № 161 "Партнер Нефть" [10:07:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:07:14]line СНО: Общий режим [10:07:14]line Чек 62 21.10.2024 10:07 [10:07:14]line Смена: 535 ФФД: 1.0 [10:07:14]line ЗНМ: 0300000104 [10:07:14]line РНМ: 0000000000091764 [10:07:14]line Версия ККМ: 001 [10:07:14]line ФМ: 0000000000871759 [10:07:14]line ФД: 165951 [10:07:14]line ФПД: 247526954865343 [10:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100730&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165951&fm=247526954865343&tin=02508201610067®Number=0000000000091764&sum=60000 [10:07:15]written 0, free lines is 4095 [10:07:15]Write to MH i2c: 01 00 00 C4 3B FF [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: 01 07 00 C4 3B 00 00 00 00 00 B9 0C CB [10:07:15]RasterBufferAndPrint [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]line [10:07:15]written 0, free lines is 3264 [10:07:15]MH_Cut [10:07:15]Write to MH i2c: D1 01 00 CB 3B 01 D8 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 01 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: D1 01 00 CB 3B 00 D7 [10:07:15]Write to MH i2c: 01 00 00 CC 3B 07 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:16]*** Cut start [10:07:16]*** Partial cut [10:07:16]*** CUTSNS_PIN = 1 [10:07:16]*** CUTSNS_PIN = 0 [10:07:16]*** Brake cut motor [10:07:17]Read from MH i2c: 01 [10:07:17]MH_I2C_Read... [10:07:17]*** Stop cut motor [10:07:17]*** Cut end [10:07:17]Read from MH i2c: 01 07 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: 01 07 00 CC 3B 00 00 00 00 00 FF 0F 1C [10:07:17]process_action close_receipt done [10:07:17]requested_data is exist [10:07:17]produce_requested_data [10:07:17]requested_item fm.sn is exist - process it [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 11 00 00 [10:07:17]Write to MH i2c: E2 08 00 CD 3B 80 11 00 00 00 00 00 00 82 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 17 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 17 00 CD 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DA [10:07:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:07:17]wFMCommunicate OK [10:07:17]requested_item fd.num is exist - process it [10:07:17]SAM_PROTO_GetFieldsCounters [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 13 00 00 [10:07:17]Write to MH i2c: E2 08 00 CE 3B 80 13 00 00 00 00 00 00 85 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 62 00 CE 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:07:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetFieldsCounters done [10:07:17]requested_item shift.num is exist - process it [10:07:17]requested_item shift.opened is exist - process it [10:07:17]req_shift_opened [10:07:17]FM_GetShiftState [10:07:17]SAM_PROTO_GetShiftState [10:07:17]wFMCommunicate request_size=4 [10:07:17]MH_SAM_APDU [10:07:17]CAPDU: 80 13 01 00 [10:07:17]Write to MH i2c: E2 08 00 CF 3B 80 13 01 00 00 00 00 00 87 [10:07:17]Write i2c OK [10:07:17]MH_I2C_Read... [10:07:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:17]Read from MH i2c: E2 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 [10:07:17]MH_I2C_Read... [10:07:17]Read from MH i2c: E2 0E 00 CF 3B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 90 [10:07:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:07:17]wFMCommunicate OK [10:07:17]SAM_PROTO_GetShiftState done [10:07:17]FM_GetShiftState done [10:07:17]req_shift_opened done [10:07:17]requested_item shift.open_date is exist - process it [10:07:17]req_shift_open_date [10:07:17]req_shift_open_date done [10:07:17]produce_requested_data done [10:07:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165951,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:07:17]process_action_free close_receipt [10:07:17]json_value_free [10:07:17]json_value_free done [10:07:17]process_json_proto returns [10:07:17]Send response to host [10:07:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165951,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:07:17]free response buf [10:07:17]execute_script done [10:07:17]execute_script returns [10:07:17]free content buf [10:07:17]Sock 5.Close socket [10:07:17]Sock 5.Thread stoped [10:07:58]ConnectInit Can't connect to host [10:07:58]CommunicateWithHost connect error [10:07:58]CommunicateWithHost err = -1 [10:07:58]OFD Sender: Server communicate error [10:07:58]OFD Sender: Processing packet 165950 [packets to send 49, broken 47] [10:07:58]ProducePacketName [10:07:58]name=ofd_packets/00165950 [10:07:58]OFD Sender: To server: pG, [10:07:58]CommunicateWithHost lk.salyk.kg:30040 [10:07:58]ConnectInit lk.salyk.kg [10:07:58]Connected sock=5 [10:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B1 F5 07 01 0E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8A 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 88 02 00 35 04 06 00 73 46 7B 72 1E E6 EA 11 CB 83 BC 16 BB FD [10:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 40 86 47 00 CD 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 88 02 00 F4 03 04 00 7D CE 15 67 B6 04 01 00 00 06 A5 F2 B4 48 AF 86 C6 [10:07:59]CommunicateWithHost err = 0 [10:07:59]CheckOFDResponse [10:07:59]1017 (14) - 77093643461234 [10:07:59]1041 (16) - 0000000000871759 [10:07:59]1040 (4) - 165950 [10:07:59]1012 (4) - 21.10.2024 03:46 [10:07:59]1206 (1) - 0 [10:07:59]OFD Sender: Remove packet 165950 [10:07:59]ProducePacketName [10:07:59]name=ofd_packets/00165950 [10:07:59]NVStorageDeleteData [10:07:59]OFD Sender: Processing packet 165951 [packets to send 48, broken 47] [10:07:59]ProducePacketName [10:07:59]name=ofd_packets/00165951 [10:07:59]OFD Sender: To server: pG, [10:07:59]CommunicateWithHost lk.salyk.kg:30040 [10:07:59]ConnectInit lk.salyk.kg [10:07:59]Connected sock=5 [10:07:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5A B2 07 01 CB 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 E2 27 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 88 02 00 35 04 06 00 E1 1F DC 37 92 BF 20 9B 54 BC 33 E7 01 BF [10:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D1 55 47 00 75 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 88 02 00 F4 03 04 00 7D CE 15 67 B6 04 01 00 00 13 36 7A 4A 6B 67 FA EE [10:07:59]CommunicateWithHost err = 0 [10:07:59]CheckOFDResponse [10:07:59]1017 (14) - 77093643461234 [10:07:59]1041 (16) - 0000000000871759 [10:07:59]1040 (4) - 165951 [10:07:59]1012 (4) - 21.10.2024 03:46 [10:07:59]1206 (1) - 0 [10:07:59]OFD Sender: Remove packet 165951 [10:07:59]ProducePacketName [10:07:59]name=ofd_packets/00165951 [10:07:59]NVStorageDeleteData [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:00]accept exits with 6 [10:09:00]New connection [10:09:00]New thread 3066920292 created [10:09:00]Thread 3066776932 joined [10:09:00]Waiting for new connection... [10:09:00] Sock 6.Parse request [10:09:00]Sock 6.Check first char [10:09:00]Sock 6.First char is OK [10:09:00]request: POST /json_proto HTTP/1.0 [10:09:00]Method: POST [10:09:00]URL: /json_proto [10:09:00]Method is POST - this is cgi request [10:09:00]url: /json_proto [10:09:00]query_string will be loaded in cgi processing [10:09:00]execute_cgi json_proto POST (null) [10:09:00]execute_cgi path=json_proto method=POST [10:09:00]POST find Content-Length [10:09:00]Host: 172.17.53.195:8080 [10:09:00]Content-Length: 677 [10:09:00]Content-Type: application/json [10:09:00] [10:09:00]POST finish read [10:09:00]Found Content-Length = 677 [10:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:00]execute_script... [10:09: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)220522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:00]POST & json_proto [10:09:00]process_json_proto [10:09:00]json parsed OK: [10:09:00]protocol is kg_v1.0 [10:09:00]action value=close_receipt [10:09:00]process_action close_receipt [10:09:00]cmd_close_receipt [10:09:00]MH_GetDate [10:09:00]Write to MH i2c: F0 00 00 D0 3B FA [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: F0 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: F0 09 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: F0 09 00 D0 3B 00 4E 28 16 67 21 48 4A 65 0E [10:09:00]GetLastDocTimeStamp 1729505250 [10:09:00]current date 1729505358 [10:09:00]FM_GetShiftState [10:09:00]SAM_PROTO_GetShiftState [10:09:00]wFMCommunicate request_size=4 [10:09:00]MH_SAM_APDU [10:09:00]CAPDU: 80 13 01 00 [10:09:00]Write to MH i2c: E2 08 00 D1 3B 80 13 01 00 00 00 00 00 89 [10:09:00]Write i2c OK [10:09:00]MH_I2C_Read... [10:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:00]Read from MH i2c: E2 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0E 00 [10:09:00]MH_I2C_Read... [10:09:00]Read from MH i2c: E2 0E 00 D1 3B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 92 [10:09:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:09:00]wFMCommunicate OK [10:09:00]SAM_PROTO_GetShiftState done [10:09:00]FM_GetShiftState done [10:09:00]opened in 1729470944 [10:09:00]opened+sec_in_day 1729557344 [10:09:00]quantity*price = 59942 [10:09:00]sum+1 = 59943 [10:09:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 599.00 Внесено: 600.00 СДАЧА: 1.00 НСП 1% : 5.30 НДС 12% : 63.65 Наличными: 599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 63 21.10.2024 10:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165952 ФПД: 97656012036339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165952&fm=97656012036339&tin=02508201610067®Number=0000000000091764&sum=59900 [10:09:01]StoreToDocumentArchive [10:09:01]shift 535 fd 165952 [10:09:01]save to /storage/0535/doc_00165952 [10:09:01]save last doc name /storage/0535/doc_00165952 to /storage/kkm_last_doc_name [10:09:01]save OK [10:09:01]Clear old archive folders... [10:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:01]tlvbuf is 0165D620 [10:09:01]SAM_PROTO_ClearQueue [10:09:01]wFMCommunicate request_size=4 [10:09:01]MH_SAM_APDU [10:09:01]CAPDU: 80 09 00 00 [10:09:01]Write to MH i2c: E2 08 00 DE 3B 80 09 00 00 00 00 00 00 8B [10:09:01]Write i2c OK [10:09:01]MH_I2C_Read... [10:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 DE 3B 00 90 00 8D [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_ClearQueue done [10:09:02]KKMCreateOFDPacket [10:09:02]OFDProtocolAddRootSTLVToBuf [10:09:02]FM_MakeSignedData [10:09:02]FM_MakeSignedData [10:09:02]SAM_PROTO_SignData [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 01 02 [10:09:02]Write to MH i2c: E2 08 00 DF 3B 80 0D 01 02 00 00 00 00 93 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 DF 3B 00 90 00 8E [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=255 [10:09:02]MH_SAM_APDU [10:09: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 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 4E 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 88 02 00 35 04 06 00 58 [10:09:02]Write to MH i2c: E2 02 01 E0 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 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 4E 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 88 02 00 35 04 06 00 58 00 00 53 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 E0 3B 00 90 00 8F [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=10 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 02 02 05 D1 4F E8 58 F3 [10:09:02]Write to MH i2c: E2 0D 00 E1 3B 80 0D 02 02 05 00 D1 4F E8 58 F3 00 00 F3 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:02]Read from MH i2c: E2 03 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 03 00 E1 3B 00 90 00 90 [10:09:02]RAPDU: 90 00 [10:09:02]wFMCommunicate OK [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 0D 03 02 [10:09:02]Write to MH i2c: E2 08 00 E2 3B 80 0D 03 02 00 00 00 00 98 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 0B 00 E2 3B 00 E3 89 DA C4 46 91 71 77 90 00 62 [10:09:02]RAPDU: E3 89 DA C4 46 91 71 77 90 00 [10:09:02]wFMCommunicate OK [10:09:02]SAM_PROTO_SignData done [10:09:02]FM_MakeSignedData done [10:09:02]CreateOFDProtocolMessage [10:09:02]wFMCommunicate request_size=4 [10:09:02]MH_SAM_APDU [10:09:02]CAPDU: 80 11 00 00 [10:09:02]Write to MH i2c: E2 08 00 E3 3B 80 11 00 00 00 00 00 00 98 [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:02]Read from MH i2c: E2 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: E2 17 00 [10:09:02]MH_I2C_Read... [10:09:02]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 35 39 90 00 F0 [10:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:09:02]wFMCommunicate OK [10:09:02]CreateOFDProtocolMessage done [10:09:02]OFDSenderStorePacket 165952 [10:09:02]StoreOFDPacket docnum=165952 [10:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 7F 07 01 F4 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 4E 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 88 02 00 35 04 06 00 58 D1 4F E8 58 F3 E3 89 DA C4 46 91 71 77 [10:09:02]CheckFolder [10:09:02]dirname=/storage/ofd_packets [10:09:02]CheckFolder done [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00165952 [10:09:02]NVStorageSaveData ofd_packets/00165952 [10:09:02]File name is /storage/ofd_packets/00165952 [10:09:02]Write 301 bytes [10:09:02]NVStorageSaveData done [10:09:02]OFDSenderStorePacket done [10:09:02]KKMCreateOFDPacket done [10:09:02]NVStorageSaveData kkm_last_timestamp [10:09:02]File name is /storage/kkm_last_timestamp [10:09:02]Write 4 bytes [10:09:02]NVStorageSaveData done [10:09:02]ExternCall_PrintAddStr [10:09:02]wPrintStart [10:09:02]Write to MH i2c: 01 00 00 E4 3B 1F [10:09:02]Write i2c OK [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 [10:09:02]MH_I2C_Read... [10:09:02]Read from MH i2c: 01 07 00 E4 3B 00 00 00 00 00 FF 0F 34 [10:09:02]RasterBufferAndPrint [10:09:02]line Счет N : (1)220522 [10:09:02]line ИНН: 02508201610067 [10:09:02]line Контрольно-Кассовый Чек [10:09:02]line ПРОДАЖА [10:09:02]line ТРК (МРК, ГНК) : 43 [10:09:02]line Товар: 2710124130 [10:09:02]line Аи-92-К-5 [10:09:02]line 8.960 * 66.90 [10:09:02]line = 599.42 [10:09:02]line НДС 12% НСП 1% [10:09:02]line > о реализуемом товаре [10:09:02]line ОКРУГЛЕНИЕ: -0.42 [10:09:02]line ИТОГО: 599.00 [10:09:02]line Внесено: 600.00 [10:09:02]line СДАЧА: 1.00 [10:09:02]line НСП 1% : 5.30 [10:09:02]line НДС 12% : 63.65 [10:09:02]line Наличными: 599.00 [10:09:02]line Безнал.: 0.00 [10:09:02]line Место: АЗС № 161 "Партнер Нефть" [10:09:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:09:02]line СНО: Общий режим [10:09:02]line Чек 63 21.10.2024 10:09 [10:09:02]line Смена: 535 ФФД: 1.0 [10:09:02]line ЗНМ: 0300000104 [10:09:02]line РНМ: 0000000000091764 [10:09:02]line Версия ККМ: 001 [10:09:02]line ФМ: 0000000000871759 [10:09:02]line ФД: 165952 [10:09:02]line ФПД: 97656012036339 [10:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T100918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165952&fm=97656012036339&tin=02508201610067®Number=0000000000091764&sum=59900 [10:09:02]OFD Sender: Processing packet 165952 [packets to send 48, broken 47] [10:09:02]ProducePacketName [10:09:02]name=ofd_packets/00165952 [10:09:02]OFD Sender: To server: pG, [10:09:02]CommunicateWithHost lk.salyk.kg:30040 [10:09:02]ConnectInit lk.salyk.kg [10:09:02]written 0, free lines is 4095 [10:09:02]Connected sock=7 [10:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 7F 07 01 F4 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 4E 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 88 02 00 35 04 06 00 58 D1 4F E8 58 F3 E3 89 DA C4 46 91 71 77 [10:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 3A 47 00 DC 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 88 02 00 F4 03 04 00 BD CE 15 67 B6 04 01 00 00 54 65 07 53 F6 6A 51 F1 [10:09:03]CommunicateWithHost err = 0 [10:09:03]CheckOFDResponse [10:09:03]1017 (14) - 77093643461234 [10:09:03]1041 (16) - 0000000000871759 [10:09:03]1040 (4) - 165952 [10:09:03]1012 (4) - 21.10.2024 03:47 [10:09:03]1206 (1) - 0 [10:09:03]OFD Sender: Remove packet 165952 [10:09:03]ProducePacketName [10:09:03]name=ofd_packets/00165952 [10:09:03]NVStorageDeleteData [10:09:03]Write to MH i2c: 01 00 00 0F 3C 4B [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: 01 07 00 0F 3C 00 00 00 00 00 C3 0C 21 [10:09:03]RasterBufferAndPrint [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]line [10:09:03]written 0, free lines is 3273 [10:09:03]MH_Cut [10:09:03]Write to MH i2c: D1 01 00 16 3C 01 24 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 01 00 [10:09:03]MH_I2C_Read... [10:09:03]Read from MH i2c: D1 01 00 16 3C 00 23 [10:09:03]Write to MH i2c: 01 00 00 17 3C 53 [10:09:03]Write i2c OK [10:09:03]MH_I2C_Read... [10:09:03]OFD Sender: No OFD packet to send [10:09:04]*** Cut start [10:09:04]*** Partial cut [10:09:04]*** CUTSNS_PIN = 1 [10:09:04]*** CUTSNS_PIN = 0 [10:09:04]*** Brake cut motor [10:09:04]Read from MH i2c: 01 [10:09:04]MH_I2C_Read... [10:09:04]*** Stop cut motor [10:09:04]*** Cut end [10:09:04]Read from MH i2c: 01 07 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: 01 07 00 17 3C 00 00 00 00 00 FF 0F 68 [10:09:04]process_action close_receipt done [10:09:04]requested_data is exist [10:09:04]produce_requested_data [10:09:04]requested_item fm.sn is exist - process it [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 11 00 00 [10:09:04]Write to MH i2c: E2 08 00 18 3C 80 11 00 00 00 00 00 00 CE [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 17 00 [10:09:04]MH_I2C_Read... [10:09:04]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 35 39 90 00 26 [10:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:09:04]wFMCommunicate OK [10:09:04]requested_item fd.num is exist - process it [10:09:04]SAM_PROTO_GetFieldsCounters [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 13 00 00 [10:09:04]Write to MH i2c: E2 08 00 19 3C 80 13 00 00 00 00 00 00 D1 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 62 00 [10:09:04]MH_I2C_Read... [10:09:04]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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [10:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:04]wFMCommunicate OK [10:09:04]SAM_PROTO_GetFieldsCounters done [10:09:04]requested_item shift.num is exist - process it [10:09:04]requested_item shift.opened is exist - process it [10:09:04]req_shift_opened [10:09:04]FM_GetShiftState [10:09:04]SAM_PROTO_GetShiftState [10:09:04]wFMCommunicate request_size=4 [10:09:04]MH_SAM_APDU [10:09:04]CAPDU: 80 13 01 00 [10:09:04]Write to MH i2c: E2 08 00 1A 3C 80 13 01 00 00 00 00 00 D3 [10:09:04]Write i2c OK [10:09:04]MH_I2C_Read... [10:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:04]Read from MH i2c: E2 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 0E 00 [10:09:04]MH_I2C_Read... [10:09:04]Read from MH i2c: E2 0E 00 1A 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [10:09:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:09:04]wFMCommunicate OK [10:09:04]SAM_PROTO_GetShiftState done [10:09:04]FM_GetShiftState done [10:09:04]req_shift_opened done [10:09:04]requested_item shift.open_date is exist - process it [10:09:04]req_shift_open_date [10:09:04]req_shift_open_date done [10:09:04]produce_requested_data done [10:09:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165952,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:09:04]process_action_free close_receipt [10:09:04]json_value_free [10:09:04]json_value_free done [10:09:04]process_json_proto returns [10:09:04]Send response to host [10:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165952,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:09:04]free response buf [10:09:04]execute_script done [10:09:04]execute_script returns [10:09:04]free content buf [10:09:04]Sock 6.Close socket [10:09:04]Sock 6.Thread stoped [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:54]accept exits with 5 [10:10:54]New connection [10:10:54]New thread 3066776932 created [10:10:54]Thread 3066920292 joined [10:10:54]Waiting for new connection... [10:10:54] Sock 5.Parse request [10:10:54]Sock 5.Check first char [10:10:54]Sock 5.First char is OK [10:10:54]request: POST /json_proto HTTP/1.0 [10:10:54]Method: POST [10:10:54]URL: /json_proto [10:10:54]Method is POST - this is cgi request [10:10:54]url: /json_proto [10:10:54]query_string will be loaded in cgi processing [10:10:54]execute_cgi json_proto POST (null) [10:10:54]execute_cgi path=json_proto method=POST [10:10:54]POST find Content-Length [10:10:54]Host: 172.17.53.195:8080 [10:10:54]Content-Length: 677 [10:10:54]Content-Type: application/json [10:10:54] [10:10:54]POST finish read [10:10:54]Found Content-Length = 677 [10:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:54]execute_script... [10:10:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:54]POST & json_proto [10:10:54]process_json_proto [10:10:54]json parsed OK: [10:10:54]protocol is kg_v1.0 [10:10:54]action value=close_receipt [10:10:54]process_action close_receipt [10:10:54]cmd_close_receipt [10:10:54]MH_GetDate [10:10:54]Write to MH i2c: F0 00 00 1B 3C 46 [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: F0 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: F0 09 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: F0 09 00 1B 3C 00 BF 28 16 67 21 48 4A 65 CB [10:10:54]GetLastDocTimeStamp 1729505358 [10:10:54]current date 1729505471 [10:10:54]FM_GetShiftState [10:10:54]SAM_PROTO_GetShiftState [10:10:54]wFMCommunicate request_size=4 [10:10:54]MH_SAM_APDU [10:10:54]CAPDU: 80 13 01 00 [10:10:54]Write to MH i2c: E2 08 00 1C 3C 80 13 01 00 00 00 00 00 D5 [10:10:54]Write i2c OK [10:10:54]MH_I2C_Read... [10:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:54]Read from MH i2c: E2 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 0E 00 [10:10:54]MH_I2C_Read... [10:10:54]Read from MH i2c: E2 0E 00 1C 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DE [10:10:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:10:54]wFMCommunicate OK [10:10:54]SAM_PROTO_GetShiftState done [10:10:54]FM_GetShiftState done [10:10:54]opened in 1729470944 [10:10:54]opened+sec_in_day 1729557344 [10:10:54]quantity*price = 49974 [10:10:54]sum+1 = 49975 [10:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 64 21.10.2024 10:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165953 ФПД: 158320855979013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101112&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165953&fm=158320855979013&tin=02508201610067®Number=0000000000091764&sum=49900 [10:10:55]StoreToDocumentArchive [10:10:55]shift 535 fd 165953 [10:10:55]save to /storage/0535/doc_00165953 [10:10:55]save last doc name /storage/0535/doc_00165953 to /storage/kkm_last_doc_name [10:10:55]save OK [10:10:55]Clear old archive folders... [10:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:10:55]tlvbuf is 016C79A0 [10:10:55]SAM_PROTO_ClearQueue [10:10:55]wFMCommunicate request_size=4 [10:10:55]MH_SAM_APDU [10:10:55]CAPDU: 80 09 00 00 [10:10:55]Write to MH i2c: E2 08 00 29 3C 80 09 00 00 00 00 00 00 D7 [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:55]Read from MH i2c: E2 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 29 3C 00 90 00 D9 [10:10:55]RAPDU: 90 00 [10:10:55]wFMCommunicate OK [10:10:55]SAM_PROTO_ClearQueue done [10:10:55]KKMCreateOFDPacket [10:10:55]OFDProtocolAddRootSTLVToBuf [10:10:55]FM_MakeSignedData [10:10:55]FM_MakeSignedData [10:10:55]SAM_PROTO_SignData [10:10:55]wFMCommunicate request_size=4 [10:10:55]MH_SAM_APDU [10:10:55]CAPDU: 80 0D 01 02 [10:10:55]Write to MH i2c: E2 08 00 2A 3C 80 0D 01 02 00 00 00 00 DF [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:55]Read from MH i2c: E2 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 2A 3C 00 90 00 DA [10:10:55]RAPDU: 90 00 [10:10:55]wFMCommunicate OK [10:10:55]wFMCommunicate request_size=255 [10:10:55]MH_SAM_APDU [10:10: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C0 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 88 02 00 35 04 06 00 8F [10:10:55]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 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C0 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 88 02 00 35 04 06 00 8F 00 00 6E [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:55]Read from MH i2c: E2 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 2B 3C 00 90 00 DB [10:10:55]RAPDU: 90 00 [10:10:55]wFMCommunicate OK [10:10:55]wFMCommunicate request_size=10 [10:10:55]MH_SAM_APDU [10:10:55]CAPDU: 80 0D 02 02 05 FD F2 61 94 05 [10:10:55]Write to MH i2c: E2 0D 00 2C 3C 80 0D 02 02 05 00 FD F2 61 94 05 00 00 D5 [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:55]Read from MH i2c: E2 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 [10:10:55]MH_I2C_Read... [10:10:55]Read from MH i2c: E2 03 00 2C 3C 00 90 00 DC [10:10:55]RAPDU: 90 00 [10:10:55]wFMCommunicate OK [10:10:55]wFMCommunicate request_size=4 [10:10:55]MH_SAM_APDU [10:10:55]CAPDU: 80 0D 03 02 [10:10:55]Write to MH i2c: E2 08 00 2D 3C 80 0D 03 02 00 00 00 00 E4 [10:10:55]Write i2c OK [10:10:55]MH_I2C_Read... [10:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:56]Read from MH i2c: E2 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 0B 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 0B 00 2D 3C 00 94 27 E9 68 1C E8 A5 FF 90 00 99 [10:10:56]RAPDU: 94 27 E9 68 1C E8 A5 FF 90 00 [10:10:56]wFMCommunicate OK [10:10:56]SAM_PROTO_SignData done [10:10:56]FM_MakeSignedData done [10:10:56]CreateOFDProtocolMessage [10:10:56]wFMCommunicate request_size=4 [10:10:56]MH_SAM_APDU [10:10:56]CAPDU: 80 11 00 00 [10:10:56]Write to MH i2c: E2 08 00 2E 3C 80 11 00 00 00 00 00 00 E4 [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:56]Read from MH i2c: E2 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: E2 17 00 [10:10:56]MH_I2C_Read... [10:10:56]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 35 39 90 00 3C [10:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:10:56]wFMCommunicate OK [10:10:56]CreateOFDProtocolMessage done [10:10:56]OFDSenderStorePacket 165953 [10:10:56]StoreOFDPacket docnum=165953 [10:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 D9 07 01 22 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C0 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 88 02 00 35 04 06 00 8F FD F2 61 94 05 94 27 E9 68 1C E8 A5 FF [10:10:56]CheckFolder [10:10:56]dirname=/storage/ofd_packets [10:10:56]CheckFolder done [10:10:56]ProducePacketName [10:10:56]name=ofd_packets/00165953 [10:10:56]NVStorageSaveData ofd_packets/00165953 [10:10:56]File name is /storage/ofd_packets/00165953 [10:10:56]Write 301 bytes [10:10:56]NVStorageSaveData done [10:10:56]OFDSenderStorePacket done [10:10:56]KKMCreateOFDPacket done [10:10:56]NVStorageSaveData kkm_last_timestamp [10:10:56]File name is /storage/kkm_last_timestamp [10:10:56]Write 4 bytes [10:10:56]NVStorageSaveData done [10:10:56]ExternCall_PrintAddStr [10:10:56]wPrintStart [10:10:56]Write to MH i2c: 01 00 00 2F 3C 6B [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: 01 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: 01 07 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: 01 07 00 2F 3C 00 00 00 00 00 FF 0F 80 [10:10:56]RasterBufferAndPrint [10:10:56]line Счет N : (1)220523 [10:10:56]line ИНН: 02508201610067 [10:10:56]line Контрольно-Кассовый Чек [10:10:56]line ПРОДАЖА [10:10:56]line ТРК (МРК, ГНК) : 13 [10:10:56]line Товар: 2710124130 [10:10:56]line Аи-92-К-5 [10:10:56]line 7.470 * 66.90 [10:10:56]line = 499.74 [10:10:56]line НДС 12% НСП 1% [10:10:56]line > о реализуемом товаре [10:10:56]line ОКРУГЛЕНИЕ: -0.74 [10:10:56]line ИТОГО: 499.00 [10:10:56]line Внесено: 500.00 [10:10:56]line СДАЧА: 1.00 [10:10:56]line НСП 1% : 4.42 [10:10:56]line НДС 12% : 53.07 [10:10:56]line Наличными: 499.00 [10:10:56]line Безнал.: 0.00 [10:10:56]line Место: АЗС № 161 "Партнер Нефть" [10:10:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:10:56]line СНО: Общий режим [10:10:56]line Чек 64 21.10.2024 10:11 [10:10:56]line Смена: 535 ФФД: 1.0 [10:10:56]line ЗНМ: 0300000104 [10:10:56]line РНМ: 0000000000091764 [10:10:56]line Версия ККМ: 001 [10:10:56]line ФМ: 0000000000871759 [10:10:56]line ФД: 165953 [10:10:56]line ФПД: 158320855979013 [10:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101112&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165953&fm=158320855979013&tin=02508201610067®Number=0000000000091764&sum=49900 [10:10:56]OFD Sender: Processing packet 165953 [packets to send 48, broken 47] [10:10:56]ProducePacketName [10:10:56]name=ofd_packets/00165953 [10:10:56]OFD Sender: To server: pG, [10:10:56]CommunicateWithHost lk.salyk.kg:30040 [10:10:56]ConnectInit lk.salyk.kg [10:10:56]written 0, free lines is 4095 [10:10:56]Connected sock=7 [10:10:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 D9 07 01 22 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 C0 28 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 88 02 00 35 04 06 00 8F FD F2 61 94 05 94 27 E9 68 1C E8 A5 FF [10:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 57 75 47 00 5C E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 88 02 00 F4 03 04 00 2E CF 15 67 B6 04 01 00 00 7B CF 29 58 29 15 88 72 [10:10:56]CommunicateWithHost err = 0 [10:10:56]CheckOFDResponse [10:10:56]1017 (14) - 77093643461234 [10:10:56]1041 (16) - 0000000000871759 [10:10:56]1040 (4) - 165953 [10:10:56]1012 (4) - 21.10.2024 03:49 [10:10:56]1206 (1) - 0 [10:10:56]OFD Sender: Remove packet 165953 [10:10:56]ProducePacketName [10:10:56]name=ofd_packets/00165953 [10:10:56]NVStorageDeleteData [10:10:56]Write to MH i2c: 01 00 00 5A 3C 96 [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: 01 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: 01 07 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: 01 07 00 5A 3C 00 00 00 00 00 BA 0C 63 [10:10:56]RasterBufferAndPrint [10:10:56]line [10:10:56]line [10:10:56]line [10:10:56]line [10:10:56]line [10:10:56]written 0, free lines is 3266 [10:10:56]MH_Cut [10:10:56]Write to MH i2c: D1 01 00 61 3C 01 6F [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: D1 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: D1 01 00 [10:10:56]MH_I2C_Read... [10:10:56]Read from MH i2c: D1 01 00 61 3C 00 6E [10:10:56]Write to MH i2c: 01 00 00 62 3C 9E [10:10:56]Write i2c OK [10:10:56]MH_I2C_Read... [10:10:57]OFD Sender: No OFD packet to send [10:10:57]*** Cut start [10:10:57]*** Partial cut [10:10:57]*** CUTSNS_PIN = 1 [10:10:57]*** CUTSNS_PIN = 0 [10:10:57]*** Brake cut motor [10:10:58]Read from MH i2c: 01 [10:10:58]MH_I2C_Read... [10:10:58]*** Stop cut motor [10:10:58]*** Cut end [10:10:58]Read from MH i2c: 01 07 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: 01 07 00 62 3C 00 00 00 00 00 FF 0F B3 [10:10:58]process_action close_receipt done [10:10:58]requested_data is exist [10:10:58]produce_requested_data [10:10:58]requested_item fm.sn is exist - process it [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 11 00 00 [10:10:58]Write to MH i2c: E2 08 00 63 3C 80 11 00 00 00 00 00 00 19 [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 17 00 [10:10:58]MH_I2C_Read... [10:10:58]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 35 39 90 00 71 [10:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:10:58]wFMCommunicate OK [10:10:58]requested_item fd.num is exist - process it [10:10:58]SAM_PROTO_GetFieldsCounters [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 13 00 00 [10:10:58]Write to MH i2c: E2 08 00 64 3C 80 13 00 00 00 00 00 00 1C [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 62 00 [10:10:58]MH_I2C_Read... [10:10:58]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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [10:10:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:58]wFMCommunicate OK [10:10:58]SAM_PROTO_GetFieldsCounters done [10:10:58]requested_item shift.num is exist - process it [10:10:58]requested_item shift.opened is exist - process it [10:10:58]req_shift_opened [10:10:58]FM_GetShiftState [10:10:58]SAM_PROTO_GetShiftState [10:10:58]wFMCommunicate request_size=4 [10:10:58]MH_SAM_APDU [10:10:58]CAPDU: 80 13 01 00 [10:10:58]Write to MH i2c: E2 08 00 65 3C 80 13 01 00 00 00 00 00 1E [10:10:58]Write i2c OK [10:10:58]MH_I2C_Read... [10:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:58]Read from MH i2c: E2 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 0E 00 [10:10:58]MH_I2C_Read... [10:10:58]Read from MH i2c: E2 0E 00 65 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 27 [10:10:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:10:58]wFMCommunicate OK [10:10:58]SAM_PROTO_GetShiftState done [10:10:58]FM_GetShiftState done [10:10:58]req_shift_opened done [10:10:58]requested_item shift.open_date is exist - process it [10:10:58]req_shift_open_date [10:10:58]req_shift_open_date done [10:10:58]produce_requested_data done [10:10:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165953,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:10:58]process_action_free close_receipt [10:10:58]json_value_free [10:10:58]json_value_free done [10:10:58]process_json_proto returns [10:10:58]Send response to host [10:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165953,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:10:58]free response buf [10:10:58]execute_script done [10:10:58]execute_script returns [10:10:58]free content buf [10:10:58]Sock 5.Close socket [10:10:58]Sock 5.Thread stoped [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:50]accept exits with 6 [10:13:50]New connection [10:13:50]New thread 3066920292 created [10:13:50]Thread 3066776932 joined [10:13:50]Waiting for new connection... [10:13:50] Sock 6.Parse request [10:13:50]Sock 6.Check first char [10:13:50]Sock 6.First char is OK [10:13:50]request: POST /json_proto HTTP/1.0 [10:13:50]Method: POST [10:13:50]URL: /json_proto [10:13:50]Method is POST - this is cgi request [10:13:50]url: /json_proto [10:13:50]query_string will be loaded in cgi processing [10:13:50]execute_cgi json_proto POST (null) [10:13:50]execute_cgi path=json_proto method=POST [10:13:50]POST find Content-Length [10:13:50]Host: 172.17.53.195:8080 [10:13:50]Content-Length: 677 [10:13:50]Content-Type: application/json [10:13:50] [10:13:50]POST finish read [10:13:50]Found Content-Length = 677 [10:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [10:13:50]execute_script... [10:13: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)220524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [10:13:50]POST & json_proto [10:13:50]process_json_proto [10:13:50]json parsed OK: [10:13:50]protocol is kg_v1.0 [10:13:50]action value=close_receipt [10:13:50]process_action close_receipt [10:13:50]cmd_close_receipt [10:13:50]MH_GetDate [10:13:50]Write to MH i2c: F0 00 00 66 3C 91 [10:13:50]Write i2c OK [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: F0 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: F0 09 00 [10:13:50]MH_I2C_Read... [10:13:50]Read from MH i2c: F0 09 00 66 3C 00 70 29 16 67 21 48 4A 65 C8 [10:13:50]GetLastDocTimeStamp 1729505472 [10:13:50]current date 1729505648 [10:13:50]FM_GetShiftState [10:13:50]SAM_PROTO_GetShiftState [10:13:50]wFMCommunicate request_size=4 [10:13:50]MH_SAM_APDU [10:13:50]CAPDU: 80 13 01 00 [10:13:50]Write to MH i2c: E2 08 00 67 3C 80 13 01 00 00 00 00 00 20 [10:13:50]Write i2c OK [10:13:50]MH_I2C_Read... [10:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:51]Read from MH i2c: E2 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 0E 00 [10:13:51]MH_I2C_Read... [10:13:51]Read from MH i2c: E2 0E 00 67 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 29 [10:13:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:13:51]wFMCommunicate OK [10:13:51]SAM_PROTO_GetShiftState done [10:13:51]FM_GetShiftState done [10:13:51]opened in 1729470944 [10:13:51]opened+sec_in_day 1729557344 [10:13:51]quantity*price = 50010 [10:13:51]sum+1 = 50012 [10:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 65 21.10.2024 10:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165954 ФПД: 200358342126784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101408&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165954&fm=200358342126784&tin=02508201610067®Number=0000000000091764&sum=50000 [10:13:52]StoreToDocumentArchive [10:13:52]shift 535 fd 165954 [10:13:52]save to /storage/0535/doc_00165954 [10:13:52]save last doc name /storage/0535/doc_00165954 to /storage/kkm_last_doc_name [10:13:52]save OK [10:13:52]Clear old archive folders... [10:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:13:52]tlvbuf is 017B08A0 [10:13:52]SAM_PROTO_ClearQueue [10:13:52]wFMCommunicate request_size=4 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 09 00 00 [10:13:52]Write to MH i2c: E2 08 00 74 3C 80 09 00 00 00 00 00 00 22 [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 74 3C 00 90 00 24 [10:13:52]RAPDU: 90 00 [10:13:52]wFMCommunicate OK [10:13:52]SAM_PROTO_ClearQueue done [10:13:52]KKMCreateOFDPacket [10:13:52]OFDProtocolAddRootSTLVToBuf [10:13:52]FM_MakeSignedData [10:13:52]FM_MakeSignedData [10:13:52]SAM_PROTO_SignData [10:13:52]wFMCommunicate request_size=4 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 0D 01 02 [10:13:52]Write to MH i2c: E2 08 00 75 3C 80 0D 01 02 00 00 00 00 2A [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 75 3C 00 90 00 25 [10:13:52]RAPDU: 90 00 [10:13:52]wFMCommunicate OK [10:13:52]wFMCommunicate request_size=255 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 41 00 00 00 F4 03 04 00 70 29 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 88 02 00 35 04 06 00 B6 [10:13:52]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 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 41 00 00 00 F4 03 04 00 70 29 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 88 02 00 35 04 06 00 B6 00 00 8A [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]OFD Sender: No OFD packet to send [10:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 76 3C 00 90 00 26 [10:13:52]RAPDU: 90 00 [10:13:52]wFMCommunicate OK [10:13:52]wFMCommunicate request_size=10 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 0D 02 02 05 39 8F CF 6C C0 [10:13:52]Write to MH i2c: E2 0D 00 77 3C 80 0D 02 02 05 00 39 8F CF 6C C0 00 00 FA [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 03 00 77 3C 00 90 00 27 [10:13:52]RAPDU: 90 00 [10:13:52]wFMCommunicate OK [10:13:52]wFMCommunicate request_size=4 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 0D 03 02 [10:13:52]Write to MH i2c: E2 08 00 78 3C 80 0D 03 02 00 00 00 00 2F [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 0B 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 0B 00 78 3C 00 9A C3 CC 1F 75 70 3B 5D 90 00 F5 [10:13:52]RAPDU: 9A C3 CC 1F 75 70 3B 5D 90 00 [10:13:52]wFMCommunicate OK [10:13:52]SAM_PROTO_SignData done [10:13:52]FM_MakeSignedData done [10:13:52]CreateOFDProtocolMessage [10:13:52]wFMCommunicate request_size=4 [10:13:52]MH_SAM_APDU [10:13:52]CAPDU: 80 11 00 00 [10:13:52]Write to MH i2c: E2 08 00 79 3C 80 11 00 00 00 00 00 00 2F [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:52]Read from MH i2c: E2 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: E2 17 00 [10:13:52]MH_I2C_Read... [10:13:52]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 35 39 90 00 87 [10:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:13:52]wFMCommunicate OK [10:13:52]CreateOFDProtocolMessage done [10:13:52]OFDSenderStorePacket 165954 [10:13:52]StoreOFDPacket docnum=165954 [10:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 F3 07 01 9F 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 41 00 00 00 F4 03 04 00 70 29 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 88 02 00 35 04 06 00 B6 39 8F CF 6C C0 9A C3 CC 1F 75 70 3B 5D [10:13:52]CheckFolder [10:13:52]dirname=/storage/ofd_packets [10:13:52]CheckFolder done [10:13:52]ProducePacketName [10:13:52]name=ofd_packets/00165954 [10:13:52]NVStorageSaveData ofd_packets/00165954 [10:13:52]File name is /storage/ofd_packets/00165954 [10:13:52]Write 301 bytes [10:13:52]NVStorageSaveData done [10:13:52]OFDSenderStorePacket done [10:13:52]KKMCreateOFDPacket done [10:13:52]NVStorageSaveData kkm_last_timestamp [10:13:52]File name is /storage/kkm_last_timestamp [10:13:52]Write 4 bytes [10:13:52]NVStorageSaveData done [10:13:52]ExternCall_PrintAddStr [10:13:52]wPrintStart [10:13:52]Write to MH i2c: 01 00 00 7A 3C B6 [10:13:52]Write i2c OK [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: 01 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: 01 07 00 [10:13:52]MH_I2C_Read... [10:13:52]Read from MH i2c: 01 07 00 7A 3C 00 00 00 00 00 FF 0F CB [10:13:52]RasterBufferAndPrint [10:13:52]line Счет N : (1)220524 [10:13:52]line ИНН: 02508201610067 [10:13:52]line Контрольно-Кассовый Чек [10:13:52]line ПРОДАЖА [10:13:52]line ТРК (МРК, ГНК) : 24 [10:13:52]line Товар: 2710124500 [10:13:52]line Аи-95-К-5 [10:13:52]line 6.740 * 74.20 [10:13:52]line = 500.11 [10:13:52]line НДС 12% НСП 1% [10:13:52]line > о реализуемом товаре [10:13:52]line ОКРУГЛЕНИЕ: -0.11 [10:13:52]line ИТОГО: 500.00 [10:13:52]line Внесено: 500.00 [10:13:52]line СДАЧА: 0.00 [10:13:52]line НСП 1% : 4.43 [10:13:52]line НДС 12% : 53.11 [10:13:52]line Наличными: 500.00 [10:13:52]line Безнал.: 0.00 [10:13:52]line Место: АЗС № 161 "Партнер Нефть" [10:13:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:13:52]line СНО: Общий режим [10:13:52]line Чек 65 21.10.2024 10:14 [10:13:52]line Смена: 535 ФФД: 1.0 [10:13:52]line ЗНМ: 0300000104 [10:13:52]line РНМ: 0000000000091764 [10:13:52]line Версия ККМ: 001 [10:13:52]line ФМ: 0000000000871759 [10:13:52]line ФД: 165954 [10:13:52]line ФПД: 200358342126784 [10:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T101408&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165954&fm=200358342126784&tin=02508201610067®Number=0000000000091764&sum=50000 [10:13:53]OFD Sender: Processing packet 165954 [packets to send 48, broken 47] [10:13:53]ProducePacketName [10:13:53]name=ofd_packets/00165954 [10:13:53]OFD Sender: To server: pG, [10:13:53]CommunicateWithHost lk.salyk.kg:30040 [10:13:53]ConnectInit lk.salyk.kg [10:13:53]written 0, free lines is 4095 [10:13:53]Connected sock=9 [10:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D4 F3 07 01 9F 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 41 00 00 00 F4 03 04 00 70 29 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 88 02 00 35 04 06 00 B6 39 8F CF 6C C0 9A C3 CC 1F 75 70 3B 5D [10:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD 65 47 00 73 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 35 39 10 04 04 00 42 88 02 00 F4 03 04 00 DF CF 15 67 B6 04 01 00 00 3B 6F E0 0F 5A 1D 82 8B [10:13:53]CommunicateWithHost err = 0 [10:13:53]CheckOFDResponse [10:13:53]1017 (14) - 77093643461234 [10:13:53]1041 (16) - 0000000000871759 [10:13:53]1040 (4) - 165954 [10:13:53]1012 (4) - 21.10.2024 03:51 [10:13:53]1206 (1) - 0 [10:13:53]OFD Sender: Remove packet 165954 [10:13:53]ProducePacketName [10:13:53]name=ofd_packets/00165954 [10:13:53]NVStorageDeleteData [10:13:53]Write to MH i2c: 01 00 00 A5 3C E1 [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 07 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: 01 07 00 A5 3C 00 00 00 00 00 C2 0C B6 [10:13:53]RasterBufferAndPrint [10:13:53]line [10:13:53]line [10:13:53]line [10:13:53]line [10:13:53]line [10:13:53]written 0, free lines is 3272 [10:13:53]MH_Cut [10:13:53]Write to MH i2c: D1 01 00 AC 3C 01 BA [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: D1 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: D1 01 00 [10:13:53]MH_I2C_Read... [10:13:53]Read from MH i2c: D1 01 00 AC 3C 00 B9 [10:13:53]Write to MH i2c: 01 00 00 AD 3C E9 [10:13:53]Write i2c OK [10:13:53]MH_I2C_Read... [10:13:53]OFD Sender: No OFD packet to send [10:13:54]*** Cut start [10:13:54]*** Partial cut [10:13:54]*** CUTSNS_PIN = 1 [10:13:54]*** CUTSNS_PIN = 0 [10:13:54]*** Brake cut motor [10:13:54]Read from MH i2c: 01 [10:13:54]MH_I2C_Read... [10:13:54]*** Stop cut motor [10:13:54]*** Cut end [10:13:54]Read from MH i2c: 01 07 00 [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: 01 07 00 AD 3C 00 00 00 00 00 FF 0F FE [10:13:54]process_action close_receipt done [10:13:54]requested_data is exist [10:13:54]produce_requested_data [10:13:54]requested_item fm.sn is exist - process it [10:13:54]wFMCommunicate request_size=4 [10:13:54]MH_SAM_APDU [10:13:54]CAPDU: 80 11 00 00 [10:13:54]Write to MH i2c: E2 08 00 AE 3C 80 11 00 00 00 00 00 00 64 [10:13:54]Write i2c OK [10:13:54]MH_I2C_Read... [10:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:54]Read from MH i2c: E2 [10:13:54]MH_I2C_Read... [10:13:54]Read from MH i2c: E2 17 00 [10:13:54]MH_I2C_Read... [10:13:54]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 35 39 90 00 BC [10:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:13:54]wFMCommunicate OK [10:13:54]requested_item fd.num is exist - process it [10:13:54]SAM_PROTO_GetFieldsCounters [10:13:54]wFMCommunicate request_size=4 [10:13:54]MH_SAM_APDU [10:13:54]CAPDU: 80 13 00 00 [10:13:54]Write to MH i2c: E2 08 00 AF 3C 80 13 00 00 00 00 00 00 67 [10:13:54]Write i2c OK [10:13:54]MH_I2C_Read... [10:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:55]Read from MH i2c: E2 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 62 00 [10:13:55]MH_I2C_Read... [10:13:55]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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:55]wFMCommunicate OK [10:13:55]SAM_PROTO_GetFieldsCounters done [10:13:55]requested_item shift.num is exist - process it [10:13:55]requested_item shift.opened is exist - process it [10:13:55]req_shift_opened [10:13:55]FM_GetShiftState [10:13:55]SAM_PROTO_GetShiftState [10:13:55]wFMCommunicate request_size=4 [10:13:55]MH_SAM_APDU [10:13:55]CAPDU: 80 13 01 00 [10:13:55]Write to MH i2c: E2 08 00 B0 3C 80 13 01 00 00 00 00 00 69 [10:13:55]Write i2c OK [10:13:55]MH_I2C_Read... [10:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:55]Read from MH i2c: E2 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 0E 00 [10:13:55]MH_I2C_Read... [10:13:55]Read from MH i2c: E2 0E 00 B0 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 72 [10:13:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:13:55]wFMCommunicate OK [10:13:55]SAM_PROTO_GetShiftState done [10:13:55]FM_GetShiftState done [10:13:55]req_shift_opened done [10:13:55]requested_item shift.open_date is exist - process it [10:13:55]req_shift_open_date [10:13:55]req_shift_open_date done [10:13:55]produce_requested_data done [10:13:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165954,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:13:55]process_action_free close_receipt [10:13:55]json_value_free [10:13:55]json_value_free done [10:13:55]process_json_proto returns [10:13:55]Send response to host [10:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165954,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:13:55]free response buf [10:13:55]execute_script done [10:13:55]execute_script returns [10:13:55]free content buf [10:13:55]Sock 6.Close socket [10:13:55]Sock 6.Thread stoped [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:49]accept exits with 5 [10:19:49]New connection [10:19:49]New thread 3066776932 created [10:19:49]Thread 3066920292 joined [10:19:49]Waiting for new connection... [10:19:49] Sock 5.Parse request [10:19:49]Sock 5.Check first char [10:19:49]Sock 5.First char is OK [10:19:49]request: POST /json_proto HTTP/1.0 [10:19:49]Method: POST [10:19:49]URL: /json_proto [10:19:49]Method is POST - this is cgi request [10:19:49]url: /json_proto [10:19:49]query_string will be loaded in cgi processing [10:19:49]execute_cgi json_proto POST (null) [10:19:49]execute_cgi path=json_proto method=POST [10:19:49]POST find Content-Length [10:19:49]Host: 172.17.53.195:8080 [10:19:49]Content-Length: 677 [10:19:49]Content-Type: application/json [10:19:49] [10:19:49]POST finish read [10:19:49]Found Content-Length = 677 [10:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:49]execute_script... [10:19: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)220525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:49]POST & json_proto [10:19:49]process_json_proto [10:19:49]json parsed OK: [10:19:49]protocol is kg_v1.0 [10:19:49]action value=close_receipt [10:19:49]process_action close_receipt [10:19:49]cmd_close_receipt [10:19:49]MH_GetDate [10:19:49]Write to MH i2c: F0 00 00 B1 3C DC [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 09 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: F0 09 00 B1 3C 00 D7 2A 16 67 21 48 4A 65 7B [10:19:49]GetLastDocTimeStamp 1729505648 [10:19:49]current date 1729506007 [10:19:49]FM_GetShiftState [10:19:49]SAM_PROTO_GetShiftState [10:19:49]wFMCommunicate request_size=4 [10:19:49]MH_SAM_APDU [10:19:49]CAPDU: 80 13 01 00 [10:19:49]Write to MH i2c: E2 08 00 B2 3C 80 13 01 00 00 00 00 00 6B [10:19:49]Write i2c OK [10:19:49]MH_I2C_Read... [10:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:49]Read from MH i2c: E2 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0E 00 [10:19:49]MH_I2C_Read... [10:19:49]Read from MH i2c: E2 0E 00 B2 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 74 [10:19:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:19:49]wFMCommunicate OK [10:19:49]SAM_PROTO_GetShiftState done [10:19:49]FM_GetShiftState done [10:19:49]opened in 1729470944 [10:19:49]opened+sec_in_day 1729557344 [10:19:49]quantity*price = 50041 [10:19:49]sum+1 = 50042 [10:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 66 21.10.2024 10:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165955 ФПД: 278589137060168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102007&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165955&fm=278589137060168&tin=02508201610067®Number=0000000000091764&sum=50000 [10:19:51]StoreToDocumentArchive [10:19:51]shift 535 fd 165955 [10:19:51]save to /storage/0535/doc_00165955 [10:19:51]save last doc name /storage/0535/doc_00165955 to /storage/kkm_last_doc_name [10:19:51]save OK [10:19:51]Clear old archive folders... [10:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:51]tlvbuf is 0184BE30 [10:19:51]SAM_PROTO_ClearQueue [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 09 00 00 [10:19:51]Write to MH i2c: E2 08 00 BF 3C 80 09 00 00 00 00 00 00 6D [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 BF 3C 00 90 00 6F [10:19:51]RAPDU: 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_ClearQueue done [10:19:51]KKMCreateOFDPacket [10:19:51]OFDProtocolAddRootSTLVToBuf [10:19:51]FM_MakeSignedData [10:19:51]FM_MakeSignedData [10:19:51]SAM_PROTO_SignData [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 0D 01 02 [10:19:51]Write to MH i2c: E2 08 00 C0 3C 80 0D 01 02 00 00 00 00 75 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 C0 3C 00 90 00 70 [10:19:51]RAPDU: 90 00 [10:19:51]wFMCommunicate OK [10:19:51]wFMCommunicate request_size=255 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 D7 2A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 88 02 00 35 04 06 00 FD [10:19:51]Write to MH i2c: E2 02 01 C1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D7 2A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 88 02 00 35 04 06 00 FD 00 00 AE [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 C1 3C 00 90 00 71 [10:19:51]RAPDU: 90 00 [10:19:51]wFMCommunicate OK [10:19:51]wFMCommunicate request_size=10 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 0D 02 02 05 60 16 8D 81 48 [10:19:51]Write to MH i2c: E2 0D 00 C2 3C 80 0D 02 02 05 00 60 16 8D 81 48 00 00 4E [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 03 00 C2 3C 00 90 00 72 [10:19:51]RAPDU: 90 00 [10:19:51]wFMCommunicate OK [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 0D 03 02 [10:19:51]Write to MH i2c: E2 08 00 C3 3C 80 0D 03 02 00 00 00 00 7A [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0B 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 0B 00 C3 3C 00 F0 54 DE 8E 13 0D 07 AD 90 00 FF [10:19:51]RAPDU: F0 54 DE 8E 13 0D 07 AD 90 00 [10:19:51]wFMCommunicate OK [10:19:51]SAM_PROTO_SignData done [10:19:51]FM_MakeSignedData done [10:19:51]CreateOFDProtocolMessage [10:19:51]wFMCommunicate request_size=4 [10:19:51]MH_SAM_APDU [10:19:51]CAPDU: 80 11 00 00 [10:19:51]Write to MH i2c: E2 08 00 C4 3C 80 11 00 00 00 00 00 00 7A [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:51]Read from MH i2c: E2 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: E2 17 00 C4 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D2 [10:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:19:51]wFMCommunicate OK [10:19:51]CreateOFDProtocolMessage done [10:19:51]OFDSenderStorePacket 165955 [10:19:51]StoreOFDPacket docnum=165955 [10:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 76 07 01 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D7 2A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 88 02 00 35 04 06 00 FD 60 16 8D 81 48 F0 54 DE 8E 13 0D 07 AD [10:19:51]CheckFolder [10:19:51]dirname=/storage/ofd_packets [10:19:51]CheckFolder done [10:19:51]ProducePacketName [10:19:51]name=ofd_packets/00165955 [10:19:51]NVStorageSaveData ofd_packets/00165955 [10:19:51]File name is /storage/ofd_packets/00165955 [10:19:51]Write 301 bytes [10:19:51]NVStorageSaveData done [10:19:51]OFDSenderStorePacket done [10:19:51]KKMCreateOFDPacket done [10:19:51]NVStorageSaveData kkm_last_timestamp [10:19:51]File name is /storage/kkm_last_timestamp [10:19:51]Write 4 bytes [10:19:51]NVStorageSaveData done [10:19:51]ExternCall_PrintAddStr [10:19:51]wPrintStart [10:19:51]Write to MH i2c: 01 00 00 C5 3C 01 [10:19:51]Write i2c OK [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 [10:19:51]MH_I2C_Read... [10:19:51]Read from MH i2c: 01 07 00 C5 3C 00 00 00 00 00 FF 0F 16 [10:19:51]RasterBufferAndPrint [10:19:51]line Счет N : (1)220525 [10:19:51]line ИНН: 02508201610067 [10:19:51]line Контрольно-Кассовый Чек [10:19:51]line ПРОДАЖА [10:19:51]line ТРК (МРК, ГНК) : 13 [10:19:51]line Товар: 2710124130 [10:19:51]line Аи-92-К-5 [10:19:51]line 7.480 * 66.90 [10:19:51]line = 500.41 [10:19:51]line НДС 12% НСП 1% [10:19:51]line > о реализуемом товаре [10:19:51]line ОКРУГЛЕНИЕ: -0.41 [10:19:51]line ИТОГО: 500.00 [10:19:51]line Внесено: 500.00 [10:19:51]line СДАЧА: 0.00 [10:19:51]line НСП 1% : 4.43 [10:19:51]line НДС 12% : 53.14 [10:19:51]line Наличными: 500.00 [10:19:51]line Безнал.: 0.00 [10:19:51]line Место: АЗС № 161 "Партнер Нефть" [10:19:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:19:51]line СНО: Общий режим [10:19:51]line Чек 66 21.10.2024 10:20 [10:19:51]line Смена: 535 ФФД: 1.0 [10:19:51]line ЗНМ: 0300000104 [10:19:51]line РНМ: 0000000000091764 [10:19:51]line Версия ККМ: 001 [10:19:51]line ФМ: 0000000000871759 [10:19:51]line ФД: 165955 [10:19:51]line ФПД: 278589137060168 [10:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102007&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165955&fm=278589137060168&tin=02508201610067®Number=0000000000091764&sum=50000 [10:19:52]OFD Sender: Processing packet 165955 [packets to send 48, broken 47] [10:19:52]ProducePacketName [10:19:52]name=ofd_packets/00165955 [10:19:52]OFD Sender: To server: pG, [10:19:52]CommunicateWithHost lk.salyk.kg:30040 [10:19:52]ConnectInit lk.salyk.kg [10:19:52]written 0, free lines is 4095 [10:19:52]Connected sock=7 [10:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E0 76 07 01 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D7 2A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 88 02 00 35 04 06 00 FD 60 16 8D 81 48 F0 54 DE 8E 13 0D 07 AD [10:19:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C7 E0 47 00 FF D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 88 02 00 F4 03 04 00 46 D1 15 67 B6 04 01 00 00 AA 6F 11 4E 30 02 0A 6B [10:19:52]CommunicateWithHost err = 0 [10:19:52]CheckOFDResponse [10:19:52]1017 (14) - 77093643461234 [10:19:52]1041 (16) - 0000000000871759 [10:19:52]1040 (4) - 165955 [10:19:52]1012 (4) - 21.10.2024 03:57 [10:19:52]1206 (1) - 0 [10:19:52]OFD Sender: Remove packet 165955 [10:19:52]ProducePacketName [10:19:52]name=ofd_packets/00165955 [10:19:52]NVStorageDeleteData [10:19:52]Write to MH i2c: 01 00 00 F0 3C 2C [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: 01 07 00 F0 3C 00 00 00 00 00 D3 0C 12 [10:19:52]RasterBufferAndPrint [10:19:52]line [10:19:52]line [10:19:52]line [10:19:52]line [10:19:52]line [10:19:52]written 0, free lines is 3289 [10:19:52]MH_Cut [10:19:52]Write to MH i2c: D1 01 00 F7 3C 01 05 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: D1 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: D1 01 00 [10:19:52]MH_I2C_Read... [10:19:52]Read from MH i2c: D1 01 00 F7 3C 00 04 [10:19:52]Write to MH i2c: 01 00 00 F8 3C 34 [10:19:52]Write i2c OK [10:19:52]MH_I2C_Read... [10:19:52]OFD Sender: No OFD packet to send [10:19:53]*** Cut start [10:19:53]*** Partial cut [10:19:53]*** CUTSNS_PIN = 1 [10:19:53]*** CUTSNS_PIN = 0 [10:19:53]*** Brake cut motor [10:19:53]Read from MH i2c: 01 [10:19:53]MH_I2C_Read... [10:19:53]*** Stop cut motor [10:19:53]*** Cut end [10:19:53]Read from MH i2c: 01 07 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: 01 07 00 F8 3C 00 00 00 00 00 FF 0F 49 [10:19:53]process_action close_receipt done [10:19:53]requested_data is exist [10:19:53]produce_requested_data [10:19:53]requested_item fm.sn is exist - process it [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 11 00 00 [10:19:53]Write to MH i2c: E2 08 00 F9 3C 80 11 00 00 00 00 00 00 AF [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:53]Read from MH i2c: E2 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 17 00 [10:19:53]MH_I2C_Read... [10:19:53]Read from MH i2c: E2 17 00 F9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 07 [10:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:19:53]wFMCommunicate OK [10:19:53]requested_item fd.num is exist - process it [10:19:53]SAM_PROTO_GetFieldsCounters [10:19:53]wFMCommunicate request_size=4 [10:19:53]MH_SAM_APDU [10:19:53]CAPDU: 80 13 00 00 [10:19:53]Write to MH i2c: E2 08 00 FA 3C 80 13 00 00 00 00 00 00 B2 [10:19:53]Write i2c OK [10:19:53]MH_I2C_Read... [10:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:54]Read from MH i2c: E2 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: E2 62 00 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: E2 62 00 FA 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [10:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:54]wFMCommunicate OK [10:19:54]SAM_PROTO_GetFieldsCounters done [10:19:54]requested_item shift.num is exist - process it [10:19:54]requested_item shift.opened is exist - process it [10:19:54]req_shift_opened [10:19:54]FM_GetShiftState [10:19:54]SAM_PROTO_GetShiftState [10:19:54]wFMCommunicate request_size=4 [10:19:54]MH_SAM_APDU [10:19:54]CAPDU: 80 13 01 00 [10:19:54]Write to MH i2c: E2 08 00 FB 3C 80 13 01 00 00 00 00 00 B4 [10:19:54]Write i2c OK [10:19:54]MH_I2C_Read... [10:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:54]Read from MH i2c: E2 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: E2 0E 00 [10:19:54]MH_I2C_Read... [10:19:54]Read from MH i2c: E2 0E 00 FB 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BD [10:19:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:19:54]wFMCommunicate OK [10:19:54]SAM_PROTO_GetShiftState done [10:19:54]FM_GetShiftState done [10:19:54]req_shift_opened done [10:19:54]requested_item shift.open_date is exist - process it [10:19:54]req_shift_open_date [10:19:54]req_shift_open_date done [10:19:54]produce_requested_data done [10:19:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165955,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:19:54]process_action_free close_receipt [10:19:54]json_value_free [10:19:54]json_value_free done [10:19:54]process_json_proto returns [10:19:54]Send response to host [10:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165955,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:19:54]free response buf [10:19:54]execute_script done [10:19:54]execute_script returns [10:19:54]free content buf [10:19:54]Sock 5.Close socket [10:19:54]Sock 5.Thread stoped [10:19:57]OFD Sender: No OFD packet to send [10:20:02]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:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:20]accept exits with 6 [10:21:20]New connection [10:21:20]New thread 3066920292 created [10:21:20]Thread 3066776932 joined [10:21:20]Waiting for new connection... [10:21:20] Sock 6.Parse request [10:21:20]Sock 6.Check first char [10:21:20]Sock 6.First char is OK [10:21:20]request: POST /json_proto HTTP/1.0 [10:21:20]Method: POST [10:21:20]URL: /json_proto [10:21:20]Method is POST - this is cgi request [10:21:20]url: /json_proto [10:21:20]query_string will be loaded in cgi processing [10:21:20]execute_cgi json_proto POST (null) [10:21:20]execute_cgi path=json_proto method=POST [10:21:20]POST find Content-Length [10:21:20]Host: 172.17.53.195:8080 [10:21:20]Content-Length: 677 [10:21:20]Content-Type: application/json [10:21:20] [10:21:20]POST finish read [10:21:20]Found Content-Length = 677 [10:21:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:20]execute_script... [10:21:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:20]POST & json_proto [10:21:20]process_json_proto [10:21:20]json parsed OK: [10:21:20]protocol is kg_v1.0 [10:21:20]action value=close_receipt [10:21:20]process_action close_receipt [10:21:20]cmd_close_receipt [10:21:20]MH_GetDate [10:21:20]Write to MH i2c: F0 00 00 FC 3C 27 [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: F0 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: F0 09 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: F0 09 00 FC 3C 00 32 2B 16 67 21 48 4A 65 22 [10:21:20]GetLastDocTimeStamp 1729506007 [10:21:20]current date 1729506098 [10:21:20]FM_GetShiftState [10:21:20]SAM_PROTO_GetShiftState [10:21:20]wFMCommunicate request_size=4 [10:21:20]MH_SAM_APDU [10:21:20]CAPDU: 80 13 01 00 [10:21:20]Write to MH i2c: E2 08 00 FD 3C 80 13 01 00 00 00 00 00 B6 [10:21:20]Write i2c OK [10:21:20]MH_I2C_Read... [10:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:20]Read from MH i2c: E2 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 0E 00 [10:21:20]MH_I2C_Read... [10:21:20]Read from MH i2c: E2 0E 00 FD 3C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BF [10:21:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:21:20]wFMCommunicate OK [10:21:20]SAM_PROTO_GetShiftState done [10:21:20]FM_GetShiftState done [10:21:20]opened in 1729470944 [10:21:20]opened+sec_in_day 1729557344 [10:21:20]quantity*price = 50041 [10:21:20]sum+1 = 50042 [10:21:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 67 21.10.2024 10:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165956 ФПД: 137614884099765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102138&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165956&fm=137614884099765&tin=02508201610067®Number=0000000000091764&sum=50000 [10:21:22]StoreToDocumentArchive [10:21:22]shift 535 fd 165956 [10:21:22]save to /storage/0535/doc_00165956 [10:21:22]save last doc name /storage/0535/doc_00165956 to /storage/kkm_last_doc_name [10:21:22]save OK [10:21:22]Clear old archive folders... [10:21:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:22]tlvbuf is 01A050D0 [10:21:22]SAM_PROTO_ClearQueue [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 09 00 00 [10:21:22]Write to MH i2c: E2 08 00 0A 3D 80 09 00 00 00 00 00 00 B9 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 0A 3D 00 90 00 BB [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_ClearQueue done [10:21:22]KKMCreateOFDPacket [10:21:22]OFDProtocolAddRootSTLVToBuf [10:21:22]FM_MakeSignedData [10:21:22]FM_MakeSignedData [10:21:22]SAM_PROTO_SignData [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 01 02 [10:21:22]Write to MH i2c: E2 08 00 0B 3D 80 0D 01 02 00 00 00 00 C1 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 0B 3D 00 90 00 BC [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]wFMCommunicate request_size=255 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 32 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 88 02 00 35 04 06 00 7D [10:21:22]Write to MH i2c: E2 02 01 0C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 32 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 88 02 00 35 04 06 00 7D 00 00 D8 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 0C 3D 00 90 00 BD [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]wFMCommunicate request_size=10 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 02 02 05 28 F6 48 56 B5 [10:21:22]Write to MH i2c: E2 0D 00 0D 3D 80 0D 02 02 05 00 28 F6 48 56 B5 00 00 3F [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 03 00 0D 3D 00 90 00 BE [10:21:22]RAPDU: 90 00 [10:21:22]wFMCommunicate OK [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 0D 03 02 [10:21:22]Write to MH i2c: E2 08 00 0E 3D 80 0D 03 02 00 00 00 00 C6 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0B 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 0B 00 0E 3D 00 49 02 57 02 9A E9 6C 9D 90 00 F7 [10:21:22]RAPDU: 49 02 57 02 9A E9 6C 9D 90 00 [10:21:22]wFMCommunicate OK [10:21:22]SAM_PROTO_SignData done [10:21:22]FM_MakeSignedData done [10:21:22]CreateOFDProtocolMessage [10:21:22]wFMCommunicate request_size=4 [10:21:22]MH_SAM_APDU [10:21:22]CAPDU: 80 11 00 00 [10:21:22]Write to MH i2c: E2 08 00 0F 3D 80 11 00 00 00 00 00 00 C6 [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:22]Read from MH i2c: E2 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 17 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: E2 17 00 0F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [10:21:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:21:22]wFMCommunicate OK [10:21:22]CreateOFDProtocolMessage done [10:21:22]OFDSenderStorePacket 165956 [10:21:22]StoreOFDPacket docnum=165956 [10:21:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E6 FD 07 01 55 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 32 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 88 02 00 35 04 06 00 7D 28 F6 48 56 B5 49 02 57 02 9A E9 6C 9D [10:21:22]CheckFolder [10:21:22]dirname=/storage/ofd_packets [10:21:22]CheckFolder done [10:21:22]ProducePacketName [10:21:22]name=ofd_packets/00165956 [10:21:22]NVStorageSaveData ofd_packets/00165956 [10:21:22]File name is /storage/ofd_packets/00165956 [10:21:22]Write 301 bytes [10:21:22]NVStorageSaveData done [10:21:22]OFDSenderStorePacket done [10:21:22]KKMCreateOFDPacket done [10:21:22]NVStorageSaveData kkm_last_timestamp [10:21:22]File name is /storage/kkm_last_timestamp [10:21:22]Write 4 bytes [10:21:22]NVStorageSaveData done [10:21:22]ExternCall_PrintAddStr [10:21:22]wPrintStart [10:21:22]Write to MH i2c: 01 00 00 10 3D 4D [10:21:22]Write i2c OK [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 07 00 [10:21:22]MH_I2C_Read... [10:21:22]Read from MH i2c: 01 07 00 10 3D 00 00 00 00 00 FF 0F 62 [10:21:22]RasterBufferAndPrint [10:21:22]line Счет N : (1)220526 [10:21:22]line ИНН: 02508201610067 [10:21:22]line Контрольно-Кассовый Чек [10:21:22]line ПРОДАЖА [10:21:22]line ТРК (МРК, ГНК) : 33 [10:21:22]line Товар: 2710124130 [10:21:22]line Аи-92-К-5 [10:21:22]line 7.480 * 66.90 [10:21:22]line = 500.41 [10:21:22]line НДС 12% НСП 1% [10:21:22]line > о реализуемом товаре [10:21:22]line ОКРУГЛЕНИЕ: -0.41 [10:21:22]line ИТОГО: 500.00 [10:21:22]line Внесено: 500.00 [10:21:22]line СДАЧА: 0.00 [10:21:22]line НСП 1% : 4.43 [10:21:22]line НДС 12% : 53.14 [10:21:22]line Наличными: 500.00 [10:21:22]line Безнал.: 0.00 [10:21:22]line Место: АЗС № 161 "Партнер Нефть" [10:21:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:21:22]line СНО: Общий режим [10:21:22]line Чек 67 21.10.2024 10:21 [10:21:22]line Смена: 535 ФФД: 1.0 [10:21:22]line ЗНМ: 0300000104 [10:21:22]line РНМ: 0000000000091764 [10:21:22]line Версия ККМ: 001 [10:21:22]line ФМ: 0000000000871759 [10:21:22]line ФД: 165956 [10:21:22]line ФПД: 137614884099765 [10:21:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102138&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165956&fm=137614884099765&tin=02508201610067®Number=0000000000091764&sum=50000 [10:21:22]OFD Sender: Processing packet 165956 [packets to send 48, broken 47] [10:21:22]ProducePacketName [10:21:22]name=ofd_packets/00165956 [10:21:22]OFD Sender: To server: pG, [10:21:22]CommunicateWithHost lk.salyk.kg:30040 [10:21:22]ConnectInit lk.salyk.kg [10:21:22]written 0, free lines is 4095 [10:21:23]Connected sock=7 [10:21:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E6 FD 07 01 55 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 32 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 88 02 00 35 04 06 00 7D 28 F6 48 56 B5 49 02 57 02 9A E9 6C 9D [10:21:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 71 47 00 94 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 88 02 00 F4 03 04 00 A1 D1 15 67 B6 04 01 00 00 DE C7 9D 92 10 2A 88 10 [10:21:23]CommunicateWithHost err = 0 [10:21:23]CheckOFDResponse [10:21:23]1017 (14) - 77093643461234 [10:21:23]1041 (16) - 0000000000871759 [10:21:23]1040 (4) - 165956 [10:21:23]1012 (4) - 21.10.2024 03:59 [10:21:23]1206 (1) - 0 [10:21:23]OFD Sender: Remove packet 165956 [10:21:23]ProducePacketName [10:21:23]name=ofd_packets/00165956 [10:21:23]NVStorageDeleteData [10:21:23]Write to MH i2c: 01 00 00 3B 3D 78 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: 01 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: 01 07 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: 01 07 00 3B 3D 00 00 00 00 00 BE 0C 49 [10:21:23]RasterBufferAndPrint [10:21:23]line [10:21:23]line [10:21:23]line [10:21:23]line [10:21:23]line [10:21:23]written 0, free lines is 3268 [10:21:23]MH_Cut [10:21:23]Write to MH i2c: D1 01 00 42 3D 01 51 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: D1 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: D1 01 00 [10:21:23]MH_I2C_Read... [10:21:23]Read from MH i2c: D1 01 00 42 3D 00 50 [10:21:23]Write to MH i2c: 01 00 00 43 3D 80 [10:21:23]Write i2c OK [10:21:23]MH_I2C_Read... [10:21:23]OFD Sender: No OFD packet to send [10:21:24]*** Cut start [10:21:24]*** Partial cut [10:21:24]*** CUTSNS_PIN = 1 [10:21:24]*** CUTSNS_PIN = 0 [10:21:24]*** Brake cut motor [10:21:24]Read from MH i2c: 01 [10:21:24]MH_I2C_Read... [10:21:24]*** Stop cut motor [10:21:24]*** Cut end [10:21:24]Read from MH i2c: 01 07 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: 01 07 00 43 3D 00 00 00 00 00 FF 0F 95 [10:21:24]process_action close_receipt done [10:21:24]requested_data is exist [10:21:24]produce_requested_data [10:21:24]requested_item fm.sn is exist - process it [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 11 00 00 [10:21:24]Write to MH i2c: E2 08 00 44 3D 80 11 00 00 00 00 00 00 FB [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:24]Read from MH i2c: E2 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 17 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 17 00 44 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [10:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:21:24]wFMCommunicate OK [10:21:24]requested_item fd.num is exist - process it [10:21:24]SAM_PROTO_GetFieldsCounters [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 13 00 00 [10:21:24]Write to MH i2c: E2 08 00 45 3D 80 13 00 00 00 00 00 00 FE [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:24]Read from MH i2c: E2 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 62 00 [10:21:24]MH_I2C_Read... [10:21:24]Read from MH i2c: E2 62 00 45 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [10:21:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:24]wFMCommunicate OK [10:21:24]SAM_PROTO_GetFieldsCounters done [10:21:24]requested_item shift.num is exist - process it [10:21:24]requested_item shift.opened is exist - process it [10:21:24]req_shift_opened [10:21:24]FM_GetShiftState [10:21:24]SAM_PROTO_GetShiftState [10:21:24]wFMCommunicate request_size=4 [10:21:24]MH_SAM_APDU [10:21:24]CAPDU: 80 13 01 00 [10:21:24]Write to MH i2c: E2 08 00 46 3D 80 13 01 00 00 00 00 00 00 [10:21:24]Write i2c OK [10:21:24]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 46 3D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 09 [10:21:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_GetShiftState done [10:21:25]FM_GetShiftState done [10:21:25]req_shift_opened done [10:21:25]requested_item shift.open_date is exist - process it [10:21:25]req_shift_open_date [10:21:25]req_shift_open_date done [10:21:25]produce_requested_data done [10:21:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165956,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:21:25]process_action_free close_receipt [10:21:25]json_value_free [10:21:25]json_value_free done [10:21:25]process_json_proto returns [10:21:25]Send response to host [10:21:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165956,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:21:25]free response buf [10:21:25]execute_script done [10:21:25]execute_script returns [10:21:25]free content buf [10:21:25]Sock 6.Close socket [10:21:25]Sock 6.Thread stoped [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:08]accept exits with 5 [10:23:08]New connection [10:23:08]New thread 3066776932 created [10:23:08]Thread 3066920292 joined [10:23:08]Waiting for new connection... [10:23:08] Sock 5.Parse request [10:23:08]Sock 5.Check first char [10:23:08]Sock 5.First char is OK [10:23:08]request: POST /json_proto HTTP/1.0 [10:23:08]Method: POST [10:23:08]URL: /json_proto [10:23:08]Method is POST - this is cgi request [10:23:08]url: /json_proto [10:23:08]query_string will be loaded in cgi processing [10:23:08]execute_cgi json_proto POST (null) [10:23:08]execute_cgi path=json_proto method=POST [10:23:08]POST find Content-Length [10:23:08]Host: 172.17.53.195:8080 [10:23:08]Content-Length: 769 [10:23:08]Content-Type: application/json [10:23:08] [10:23:08]POST finish read [10:23:08]Found Content-Length = 769 [10:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:08]execute_script... [10:23:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:08]POST & json_proto [10:23:08]process_json_proto [10:23:08]json parsed OK: [10:23:08]protocol is kg_v1.0 [10:23:08]action value=close_receipt [10:23:08]process_action close_receipt [10:23:08]cmd_close_receipt [10:23:08]MH_GetDate [10:23:08]Write to MH i2c: F0 00 00 47 3D 73 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: F0 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: F0 09 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: F0 09 00 47 3D 00 9E 2B 16 67 21 48 4A 65 DA [10:23:08]GetLastDocTimeStamp 1729506098 [10:23:08]current date 1729506206 [10:23:08]FM_GetShiftState [10:23:08]SAM_PROTO_GetShiftState [10:23:08]wFMCommunicate request_size=4 [10:23:08]MH_SAM_APDU [10:23:08]CAPDU: 80 13 01 00 [10:23:08]Write to MH i2c: E2 08 00 48 3D 80 13 01 00 00 00 00 00 02 [10:23:08]Write i2c OK [10:23:08]MH_I2C_Read... [10:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:08]Read from MH i2c: E2 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 0E 00 [10:23:08]MH_I2C_Read... [10:23:08]Read from MH i2c: E2 0E 00 48 3D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0B [10:23:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:23:08]wFMCommunicate OK [10:23:08]SAM_PROTO_GetShiftState done [10:23:08]FM_GetShiftState done [10:23:08]opened in 1729470944 [10:23:08]opened+sec_in_day 1729557344 [10:23:08]quantity*price = 100015 [10:23:08]sum+1 = 100017 [10:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 68 21.10.2024 10:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165957 ФПД: 183575818812242 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102326&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165957&fm=183575818812242&tin=02508201610067®Number=0000000000091764&sum=100016 [10:23:09]StoreToDocumentArchive [10:23:09]shift 535 fd 165957 [10:23:09]save to /storage/0535/doc_00165957 [10:23:09]save last doc name /storage/0535/doc_00165957 to /storage/kkm_last_doc_name [10:23:09]save OK [10:23:09]Clear old archive folders... [10:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:09]tlvbuf is 0165D600 [10:23:09]SAM_PROTO_ClearQueue [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 09 00 00 [10:23:09]Write to MH i2c: E2 08 00 55 3D 80 09 00 00 00 00 00 00 04 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 09 00 00... 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 55 3D 00 90 00 06 [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]SAM_PROTO_ClearQueue done [10:23:09]KKMCreateOFDPacket [10:23:09]OFDProtocolAddRootSTLVToBuf [10:23:09]FM_MakeSignedData [10:23:09]FM_MakeSignedData [10:23:09]SAM_PROTO_SignData [10:23:09]wFMCommunicate request_size=4 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 01 02 [10:23:09]Write to MH i2c: E2 08 00 56 3D 80 0D 01 02 00 00 00 00 0C [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:09]*** iso7816_exchange 80 0D 01 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 56 3D 00 90 00 07 [10:23:09]RAPDU: 90 00 [10:23:09]wFMCommunicate OK [10:23:09]wFMCommunicate request_size=255 [10:23:09]MH_SAM_APDU [10:23:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 88 02 00 35 04 06 00 A6 [10:23:09]Write to MH i2c: E2 02 01 57 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 88 02 00 35 04 06 00 A6 00 00 D4 [10:23:09]Write i2c OK [10:23:09]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 03 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 03 00 57 3D 00 90 00 08 [10:23:10]RAPDU: 90 00 [10:23:10]wFMCommunicate OK [10:23:10]wFMCommunicate request_size=10 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 0D 02 02 05 F6 13 78 3B 52 [10:23:10]Write to MH i2c: E2 0D 00 58 3D 80 0D 02 02 05 00 F6 13 78 3B 52 00 00 27 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 03 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 03 00 58 3D 00 90 00 09 [10:23:10]RAPDU: 90 00 [10:23:10]wFMCommunicate OK [10:23:10]wFMCommunicate request_size=4 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 0D 03 02 [10:23:10]Write to MH i2c: E2 08 00 59 3D 80 0D 03 02 00 00 00 00 11 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 0B 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 0B 00 59 3D 00 4B 58 B4 7A A5 3B 76 19 90 00 52 [10:23:10]RAPDU: 4B 58 B4 7A A5 3B 76 19 90 00 [10:23:10]wFMCommunicate OK [10:23:10]SAM_PROTO_SignData done [10:23:10]FM_MakeSignedData done [10:23:10]CreateOFDProtocolMessage [10:23:10]wFMCommunicate request_size=4 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 11 00 00 [10:23:10]Write to MH i2c: E2 08 00 5A 3D 80 11 00 00 00 00 00 00 11 [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 17 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 17 00 5A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 69 [10:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:23:10]wFMCommunicate OK [10:23:10]CreateOFDProtocolMessage done [10:23:10]OFDSenderStorePacket 165957 [10:23:10]StoreOFDPacket docnum=165957 [10:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2A BC 07 01 9D FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 88 02 00 35 04 06 00 A6 F6 13 78 3B 52 4B 58 B4 7A A5 3B 76 19 [10:23:10]CheckFolder [10:23:10]dirname=/storage/ofd_packets [10:23:10]CheckFolder done [10:23:10]ProducePacketName [10:23:10]name=ofd_packets/00165957 [10:23:10]NVStorageSaveData ofd_packets/00165957 [10:23:10]File name is /storage/ofd_packets/00165957 [10:23:10]Write 301 bytes [10:23:10]NVStorageSaveData done [10:23:10]OFDSenderStorePacket done [10:23:10]KKMCreateOFDPacket done [10:23:10]NVStorageSaveData kkm_last_timestamp [10:23:10]File name is /storage/kkm_last_timestamp [10:23:10]Write 4 bytes [10:23:10]NVStorageSaveData done [10:23:10]ExternCall_PrintAddStr [10:23:10]wPrintStart [10:23:10]Write to MH i2c: 01 00 00 5B 3D 98 [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 5B 3D 00 00 00 00 00 FF 0F AD [10:23:10]RasterBufferAndPrint [10:23:10]line Счет N : (1)220527 [10:23:10]line ИНН: 02508201610067 [10:23:10]line Контрольно-Кассовый Чек [10:23:10]line ПРОДАЖА [10:23:10]line ТРК (МРК, ГНК) : 13 [10:23:10]line Товар: 2710124130 [10:23:10]line Аи-92-К-5 [10:23:10]line 14.950 * 66.90 [10:23:10]line = 1000.16 [10:23:10]line НДС 12% НСП 1% [10:23:10]line > о реализуемом товаре [10:23:10]line ИТОГО: 1000.16 [10:23:10]line НСП 1% : 8.85 [10:23:10]line НДС 12% : 106.21 [10:23:10]line Наличными: 0.00 [10:23:10]line Безнал.: 1000.16 [10:23:10]line Место: АЗС № 161 "Партнер Нефть" [10:23:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:23:10]line СНО: Общий режим [10:23:10]line Чек 68 21.10.2024 10:23 [10:23:10]line Смена: 535 ФФД: 1.0 [10:23:10]line ЗНМ: 0300000104 [10:23:10]line РНМ: 0000000000091764 [10:23:10]line Версия ККМ: 001 [10:23:10]line Платежная система: Mbank [10:23:10]line ФМ: 0000000000871759 [10:23:10]line ФД: 165957 [10:23:10]line ФПД: 183575818812242 [10:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102326&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165957&fm=183575818812242&tin=02508201610067®Number=0000000000091764&sum=100016 [10:23:10]OFD Sender: Processing packet 165957 [packets to send 48, broken 47] [10:23:10]ProducePacketName [10:23:10]name=ofd_packets/00165957 [10:23:10]OFD Sender: To server: pG, [10:23:10]CommunicateWithHost lk.salyk.kg:30040 [10:23:10]ConnectInit lk.salyk.kg [10:23:10]written 0, free lines is 4095 [10:23:10]Connected sock=7 [10:23:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2A BC 07 01 9D FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 9E 2B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 88 02 00 35 04 06 00 A6 F6 13 78 3B 52 4B 58 B4 7A A5 3B 76 19 [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 35 39 4F 00 00 00 7B 78 47 00 2C 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 35 39 10 04 04 00 45 88 02 00 F4 03 04 00 0D D2 15 67 B6 04 01 00 00 D1 DA C2 BC F2 BD 7F 43 [10:23:10]CommunicateWithHost err = 0 [10:23:10]CheckOFDResponse [10:23:10]1017 (14) - 77093643461234 [10:23:10]1041 (16) - 0000000000871759 [10:23:10]1040 (4) - 165957 [10:23:10]1012 (4) - 21.10.2024 04:01 [10:23:10]1206 (1) - 0 [10:23:10]OFD Sender: Remove packet 165957 [10:23:10]ProducePacketName [10:23:10]name=ofd_packets/00165957 [10:23:10]NVStorageDeleteData [10:23:11]Write to MH i2c: 01 00 00 84 3D C1 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: 01 [10:23:11]MH_I2C_Read... [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 84 3D 00 00 00 00 00 F5 0C C9 [10:23:11]RasterBufferAndPrint [10:23:11]line [10:23:11]line [10:23:11]line [10:23:11]line [10:23:11]line [10:23:11]written 0, free lines is 3325 [10:23:11]MH_Cut [10:23:11]Write to MH i2c: D1 01 00 8B 3D 01 9A [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: D1 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: D1 01 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: D1 01 00 8B 3D 00 99 [10:23:11]Write to MH i2c: 01 00 00 8C 3D C9 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]OFD Sender: No OFD packet to send [10:23:11]*** Cut start [10:23:11]*** Partial cut [10:23:11]*** CUTSNS_PIN = 1 [10:23:11]*** CUTSNS_PIN = 0 [10:23:12]*** Brake cut motor [10:23:12]Read from MH i2c: 01 [10:23:12]MH_I2C_Read... [10:23:12]*** Stop cut motor [10:23:12]*** Cut end [10:23:12]Read from MH i2c: 01 07 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 8C 3D 00 00 00 00 00 FF 0F DE [10:23:12]process_action close_receipt done [10:23:12]requested_data is exist [10:23:12]produce_requested_data [10:23:12]requested_item fm.sn is exist - process it [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 11 00 00 [10:23:12]Write to MH i2c: E2 08 00 8D 3D 80 11 00 00 00 00 00 00 44 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 17 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 17 00 8D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [10:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:23:12]wFMCommunicate OK [10:23:12]requested_item fd.num is exist - process it [10:23:12]SAM_PROTO_GetFieldsCounters [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 13 00 00 [10:23:12]Write to MH i2c: E2 08 00 8E 3D 80 13 00 00 00 00 00 00 47 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 62 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 62 00 8E 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [10:23:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:12]wFMCommunicate OK [10:23:12]SAM_PROTO_GetFieldsCounters done [10:23:12]requested_item shift.num is exist - process it [10:23:12]requested_item shift.opened is exist - process it [10:23:12]req_shift_opened [10:23:12]FM_GetShiftState [10:23:12]SAM_PROTO_GetShiftState [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 13 01 00 [10:23:12]Write to MH i2c: E2 08 00 8F 3D 80 13 01 00 00 00 00 00 49 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0E 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0E 00 8F 3D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 52 [10:23:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:23:12]wFMCommunicate OK [10:23:12]SAM_PROTO_GetShiftState done [10:23:12]FM_GetShiftState done [10:23:12]req_shift_opened done [10:23:12]requested_item shift.open_date is exist - process it [10:23:12]req_shift_open_date [10:23:12]req_shift_open_date done [10:23:12]produce_requested_data done [10:23:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165957,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:23:12]process_action_free close_receipt [10:23:12]json_value_free [10:23:12]json_value_free done [10:23:12]process_json_proto returns [10:23:12]Send response to host [10:23:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165957,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:23:12]free response buf [10:23:12]execute_script done [10:23:12]execute_script returns [10:23:12]free content buf [10:23:12]Sock 5.Close socket [10:23:12]Sock 5.Thread stoped [10:23:16]OFD Sender: No OFD packet to send [10:23:21]OFD Sender: No OFD packet to send [10:23:26]OFD Sender: No OFD packet to send [10:23:31]OFD Sender: No OFD packet to send [10:23:36]OFD Sender: No OFD packet to send [10:23:41]OFD Sender: No OFD packet to send [10:23:46]OFD Sender: No OFD packet to send [10:23:51]OFD Sender: No OFD packet to send [10:23:56]OFD Sender: No OFD packet to send [10:24:01]OFD Sender: No OFD packet to send [10:24:06]OFD Sender: No OFD packet to send [10:24:11]OFD Sender: No OFD packet to send [10:24:16]OFD Sender: No OFD packet to send [10:24:21]OFD Sender: No OFD packet to send [10:24:26]OFD Sender: No OFD packet to send [10:24:31]OFD Sender: No OFD packet to send [10:24:36]OFD Sender: No OFD packet to send [10:24:41]OFD Sender: No OFD packet to send [10:24:46]OFD Sender: No OFD packet to send [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]OFD Sender: No OFD packet to send [10:26:11]OFD Sender: No OFD packet to send [10:26:16]OFD Sender: No OFD packet to send [10:26:21]OFD Sender: No OFD packet to send [10:26:26]OFD Sender: No OFD packet to send [10:26:31]OFD Sender: No OFD packet to send [10:26:36]OFD Sender: No OFD packet to send [10:26:41]OFD Sender: No OFD packet to send [10:26:46]OFD Sender: No OFD packet to send [10:26:51]OFD Sender: No OFD packet to send [10:26:56]OFD Sender: No OFD packet to send [10:27:01]OFD Sender: No OFD packet to send [10:27:06]OFD Sender: No OFD packet to send [10:27:11]OFD Sender: No OFD packet to send [10:27:16]OFD Sender: No OFD packet to send [10:27:21]OFD Sender: No OFD packet to send [10:27:26]OFD Sender: No OFD packet to send [10:27:31]OFD Sender: No OFD packet to send [10:27:36]OFD Sender: No OFD packet to send [10:27:41]OFD Sender: No OFD packet to send [10:27:46]OFD Sender: No OFD packet to send [10:27: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:28]accept exits with 6 [10:29:28]New connection [10:29:28]New thread 3066920292 created [10:29:28]Thread 3066776932 joined [10:29:28]Waiting for new connection... [10:29:28] Sock 6.Parse request [10:29:28]Sock 6.Check first char [10:29:28]Sock 6.First char is OK [10:29:28]request: POST /json_proto HTTP/1.0 [10:29:28]Method: POST [10:29:28]URL: /json_proto [10:29:28]Method is POST - this is cgi request [10:29:28]url: /json_proto [10:29:28]query_string will be loaded in cgi processing [10:29:28]execute_cgi json_proto POST (null) [10:29:28]execute_cgi path=json_proto method=POST [10:29:28]POST find Content-Length [10:29:28]Host: 172.17.53.195:8080 [10:29:28]Content-Length: 679 [10:29:28]Content-Type: application/json [10:29:28] [10:29:28]POST finish read [10:29:28]Found Content-Length = 679 [10:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:28]execute_script... [10:29: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)220528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:28]POST & json_proto [10:29:28]process_json_proto [10:29:28]json parsed OK: [10:29:28]protocol is kg_v1.0 [10:29:28]action value=close_receipt [10:29:28]process_action close_receipt [10:29:28]cmd_close_receipt [10:29:28]MH_GetDate [10:29:28]Write to MH i2c: F0 00 00 90 3D BC [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: F0 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: F0 09 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: F0 09 00 90 3D 00 1A 2D 16 67 21 48 4A 65 A1 [10:29:28]GetLastDocTimeStamp 1729506206 [10:29:28]current date 1729506586 [10:29:28]FM_GetShiftState [10:29:28]SAM_PROTO_GetShiftState [10:29:28]wFMCommunicate request_size=4 [10:29:28]MH_SAM_APDU [10:29:28]CAPDU: 80 13 01 00 [10:29:28]Write to MH i2c: E2 08 00 91 3D 80 13 01 00 00 00 00 00 4B [10:29:28]Write i2c OK [10:29:28]MH_I2C_Read... [10:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:28]Read from MH i2c: E2 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 [10:29:28]MH_I2C_Read... [10:29:28]Read from MH i2c: E2 0E 00 91 3D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 54 [10:29:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:29:28]wFMCommunicate OK [10:29:28]SAM_PROTO_GetShiftState done [10:29:28]FM_GetShiftState done [10:29:28]opened in 1729470944 [10:29:28]opened+sec_in_day 1729557344 [10:29:28]quantity*price = 100050 [10:29:28]sum+1 = 100052 [10:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 69 21.10.2024 10:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165958 ФПД: 220047093781306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102946&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165958&fm=220047093781306&tin=02508201610067®Number=0000000000091764&sum=100000 [10:29:29]StoreToDocumentArchive [10:29:29]shift 535 fd 165958 [10:29:29]save to /storage/0535/doc_00165958 [10:29:29]save last doc name /storage/0535/doc_00165958 to /storage/kkm_last_doc_name [10:29:29]save OK [10:29:29]Clear old archive folders... [10:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:29:29]tlvbuf is 018B00B0 [10:29:29]SAM_PROTO_ClearQueue [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 09 00 00 [10:29:29]Write to MH i2c: E2 08 00 9E 3D 80 09 00 00 00 00 00 00 4D [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 9E 3D 00 90 00 4F [10:29:29]RAPDU: 90 00 [10:29:29]wFMCommunicate OK [10:29:29]SAM_PROTO_ClearQueue done [10:29:29]KKMCreateOFDPacket [10:29:29]OFDProtocolAddRootSTLVToBuf [10:29:29]FM_MakeSignedData [10:29:29]FM_MakeSignedData [10:29:29]SAM_PROTO_SignData [10:29:29]wFMCommunicate request_size=4 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 0D 01 02 [10:29:29]Write to MH i2c: E2 08 00 9F 3D 80 0D 01 02 00 00 00 00 55 [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 9F 3D 00 90 00 50 [10:29:29]RAPDU: 90 00 [10:29:29]wFMCommunicate OK [10:29:29]wFMCommunicate request_size=255 [10:29:29]MH_SAM_APDU [10:29:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1A 2D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 88 02 00 35 04 06 00 C8 21 B4 DB [10:29:29]Write to MH i2c: E2 02 01 A0 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 45 00 00 00 F4 03 04 00 1A 2D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 88 02 00 35 04 06 00 C8 21 B4 DB 00 00 4B [10:29:29]Write i2c OK [10:29:29]MH_I2C_Read... [10:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:29]Read from MH i2c: E2 [10:29:29]MH_I2C_Read... [10:29:29]Read from MH i2c: E2 03 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 03 00 A0 3D 00 90 00 51 [10:29:30]RAPDU: 90 00 [10:29:30]wFMCommunicate OK [10:29:30]wFMCommunicate request_size=7 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 0D 02 02 02 D3 3A [10:29:30]Write to MH i2c: E2 0A 00 A1 3D 80 0D 02 02 02 00 D3 3A 00 00 69 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 03 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 03 00 A1 3D 00 90 00 52 [10:29:30]RAPDU: 90 00 [10:29:30]wFMCommunicate OK [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 0D 03 02 [10:29:30]Write to MH i2c: E2 08 00 A2 3D 80 0D 03 02 00 00 00 00 5A [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 0B 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 0B 00 A2 3D 00 D1 AC 8D DC F7 D5 D2 94 90 00 73 [10:29:30]RAPDU: D1 AC 8D DC F7 D5 D2 94 90 00 [10:29:30]wFMCommunicate OK [10:29:30]SAM_PROTO_SignData done [10:29:30]FM_MakeSignedData done [10:29:30]CreateOFDProtocolMessage [10:29:30]wFMCommunicate request_size=4 [10:29:30]MH_SAM_APDU [10:29:30]CAPDU: 80 11 00 00 [10:29:30]Write to MH i2c: E2 08 00 A3 3D 80 11 00 00 00 00 00 00 5A [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:30]Read from MH i2c: E2 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: E2 17 00 A3 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [10:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:29:30]wFMCommunicate OK [10:29:30]CreateOFDProtocolMessage done [10:29:30]OFDSenderStorePacket 165958 [10:29:30]StoreOFDPacket docnum=165958 [10:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3C ED 04 01 0A FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1A 2D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 88 02 00 35 04 06 00 C8 21 B4 DB D3 3A D1 AC 8D DC F7 D5 D2 94 [10:29:30]CheckFolder [10:29:30]dirname=/storage/ofd_packets [10:29:30]CheckFolder done [10:29:30]ProducePacketName [10:29:30]name=ofd_packets/00165958 [10:29:30]NVStorageSaveData ofd_packets/00165958 [10:29:30]File name is /storage/ofd_packets/00165958 [10:29:30]Write 298 bytes [10:29:30]NVStorageSaveData done [10:29:30]OFDSenderStorePacket done [10:29:30]KKMCreateOFDPacket done [10:29:30]NVStorageSaveData kkm_last_timestamp [10:29:30]File name is /storage/kkm_last_timestamp [10:29:30]Write 4 bytes [10:29:30]NVStorageSaveData done [10:29:30]ExternCall_PrintAddStr [10:29:30]wPrintStart [10:29:30]Write to MH i2c: 01 00 00 A4 3D E1 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 A4 3D 00 00 00 00 00 FF 0F F6 [10:29:30]RasterBufferAndPrint [10:29:30]line Счет N : (1)220528 [10:29:30]line ИНН: 02508201610067 [10:29:30]line Контрольно-Кассовый Чек [10:29:30]line ПРОДАЖА [10:29:30]line ТРК (МРК, ГНК) : 31 [10:29:30]line Товар: 2710194210 [10:29:30]line ДТ-К-5 [10:29:30]line 13.130 * 76.20 [10:29:30]line = 1000.51 [10:29:30]line НДС 12% НСП 1% [10:29:30]line > о реализуемом товаре [10:29:30]line ОКРУГЛЕНИЕ: -0.51 [10:29:30]line ИТОГО: 1000.00 [10:29:30]line Внесено: 1000.00 [10:29:30]line СДАЧА: 0.00 [10:29:30]line НСП 1% : 8.85 [10:29:30]line НДС 12% : 106.25 [10:29:30]line Наличными: 1000.00 [10:29:30]line Безнал.: 0.00 [10:29:30]line Место: АЗС № 161 "Партнер Нефть" [10:29:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:29:30]line СНО: Общий режим [10:29:30]line Чек 69 21.10.2024 10:29 [10:29:30]line Смена: 535 ФФД: 1.0 [10:29:30]line ЗНМ: 0300000104 [10:29:30]line РНМ: 0000000000091764 [10:29:30]line Версия ККМ: 001 [10:29:30]line ФМ: 0000000000871759 [10:29:30]line ФД: 165958 [10:29:30]line ФПД: 220047093781306 [10:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T102946&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165958&fm=220047093781306&tin=02508201610067®Number=0000000000091764&sum=100000 [10:29:30]OFD Sender: Processing packet 165958 [packets to send 48, broken 47] [10:29:30]ProducePacketName [10:29:30]name=ofd_packets/00165958 [10:29:30]OFD Sender: To server: pG, [10:29:30]CommunicateWithHost lk.salyk.kg:30040 [10:29:30]ConnectInit lk.salyk.kg [10:29:30]written 0, free lines is 4095 [10:29:30]Connected sock=5 [10:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3C ED 04 01 0A FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1A 2D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 88 02 00 35 04 06 00 C8 21 B4 DB D3 3A D1 AC 8D DC F7 D5 D2 94 [10:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 B1 47 00 16 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 88 02 00 F4 03 04 00 88 D3 15 67 B6 04 01 00 00 8A ED AE 00 93 7C C2 7C [10:29:30]CommunicateWithHost err = 0 [10:29:30]CheckOFDResponse [10:29:30]1017 (14) - 77093643461234 [10:29:30]1041 (16) - 0000000000871759 [10:29:30]1040 (4) - 165958 [10:29:30]1012 (4) - 21.10.2024 04:07 [10:29:30]1206 (1) - 0 [10:29:30]OFD Sender: Remove packet 165958 [10:29:30]ProducePacketName [10:29:30]name=ofd_packets/00165958 [10:29:30]NVStorageDeleteData [10:29:30]Write to MH i2c: 01 00 00 CF 3D 0C [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: 01 07 00 CF 3D 00 00 00 00 00 CF 0C EE [10:29:30]RasterBufferAndPrint [10:29:30]line [10:29:30]line [10:29:30]line [10:29:30]line [10:29:30]line [10:29:30]written 0, free lines is 3286 [10:29:30]MH_Cut [10:29:30]Write to MH i2c: D1 01 00 D6 3D 01 E5 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: D1 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: D1 01 00 [10:29:30]MH_I2C_Read... [10:29:30]Read from MH i2c: D1 01 00 D6 3D 00 E4 [10:29:30]Write to MH i2c: 01 00 00 D7 3D 14 [10:29:30]Write i2c OK [10:29:30]MH_I2C_Read... [10:29:31]OFD Sender: No OFD packet to send [10:29:31]*** Cut start [10:29:31]*** Partial cut [10:29:31]*** CUTSNS_PIN = 1 [10:29:31]*** CUTSNS_PIN = 0 [10:29:32]*** Brake cut motor [10:29:32]Read from MH i2c: 01 [10:29:32]MH_I2C_Read... [10:29:32]*** Stop cut motor [10:29:32]*** Cut end [10:29:32]Read from MH i2c: 01 07 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: 01 07 00 D7 3D 00 00 00 00 00 FF 0F 29 [10:29:32]process_action close_receipt done [10:29:32]requested_data is exist [10:29:32]produce_requested_data [10:29:32]requested_item fm.sn is exist - process it [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 11 00 00 [10:29:32]Write to MH i2c: E2 08 00 D8 3D 80 11 00 00 00 00 00 00 8F [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 17 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 17 00 D8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [10:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:29:32]wFMCommunicate OK [10:29:32]requested_item fd.num is exist - process it [10:29:32]SAM_PROTO_GetFieldsCounters [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 13 00 00 [10:29:32]Write to MH i2c: E2 08 00 D9 3D 80 13 00 00 00 00 00 00 92 [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 62 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 62 00 D9 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [10:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:32]wFMCommunicate OK [10:29:32]SAM_PROTO_GetFieldsCounters done [10:29:32]requested_item shift.num is exist - process it [10:29:32]requested_item shift.opened is exist - process it [10:29:32]req_shift_opened [10:29:32]FM_GetShiftState [10:29:32]SAM_PROTO_GetShiftState [10:29:32]wFMCommunicate request_size=4 [10:29:32]MH_SAM_APDU [10:29:32]CAPDU: 80 13 01 00 [10:29:32]Write to MH i2c: E2 08 00 DA 3D 80 13 01 00 00 00 00 00 94 [10:29:32]Write i2c OK [10:29:32]MH_I2C_Read... [10:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:32]Read from MH i2c: E2 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 0E 00 [10:29:32]MH_I2C_Read... [10:29:32]Read from MH i2c: E2 0E 00 DA 3D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9D [10:29:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:29:32]wFMCommunicate OK [10:29:32]SAM_PROTO_GetShiftState done [10:29:32]FM_GetShiftState done [10:29:32]req_shift_opened done [10:29:32]requested_item shift.open_date is exist - process it [10:29:32]req_shift_open_date [10:29:32]req_shift_open_date done [10:29:32]produce_requested_data done [10:29:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165958,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:29:32]process_action_free close_receipt [10:29:32]json_value_free [10:29:32]json_value_free done [10:29:32]process_json_proto returns [10:29:32]Send response to host [10:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165958,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:29:32]free response buf [10:29:32]execute_script done [10:29:32]execute_script returns [10:29:32]free content buf [10:29:32]Sock 6.Close socket [10:29:32]Sock 6.Thread stoped [10:29:36]OFD Sender: No OFD packet to send [10:29:41]OFD Sender: No OFD packet to send [10:29:46]OFD Sender: No OFD packet to send [10:29:51]OFD Sender: No OFD packet to send [10:29:56]OFD Sender: No OFD packet to send [10:30:01]OFD Sender: No OFD packet to send [10:30:06]OFD Sender: No OFD packet to send [10:30:11]OFD Sender: No OFD packet to send [10:30:16]OFD Sender: No OFD packet to send [10:30:21]OFD Sender: No OFD packet to send [10:30:26]OFD Sender: No OFD packet to send [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:32:01]OFD Sender: No OFD packet to send [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:02]accept exits with 7 [10:35:02]New connection [10:35:02]New thread 3066776932 created [10:35:02]Thread 3066920292 joined [10:35:02]Waiting for new connection... [10:35:02] Sock 7.Parse request [10:35:02]Sock 7.Check first char [10:35:02]Sock 7.First char is OK [10:35:02]request: POST /json_proto HTTP/1.0 [10:35:02]Method: POST [10:35:02]URL: /json_proto [10:35:02]Method is POST - this is cgi request [10:35:02]url: /json_proto [10:35:02]query_string will be loaded in cgi processing [10:35:02]execute_cgi json_proto POST (null) [10:35:02]execute_cgi path=json_proto method=POST [10:35:02]POST find Content-Length [10:35:02]Host: 172.17.53.195:8080 [10:35:02]Content-Length: 677 [10:35:02]Content-Type: application/json [10:35:02] [10:35:02]POST finish read [10:35:02]Found Content-Length = 677 [10:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [10:35:02]execute_script... [10:35:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [10:35:02]POST & json_proto [10:35:02]process_json_proto [10:35:02]json parsed OK: [10:35:02]protocol is kg_v1.0 [10:35:02]action value=close_receipt [10:35:02]process_action close_receipt [10:35:02]cmd_close_receipt [10:35:02]MH_GetDate [10:35:02]Write to MH i2c: F0 00 00 DB 3D 07 [10:35:02]Write i2c OK [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: F0 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: F0 09 00 [10:35:02]MH_I2C_Read... [10:35:02]Read from MH i2c: F0 09 00 DB 3D 00 68 2E 16 67 21 48 4A 65 3B [10:35:02]GetLastDocTimeStamp 1729506586 [10:35:02]current date 1729506920 [10:35:02]FM_GetShiftState [10:35:02]SAM_PROTO_GetShiftState [10:35:02]wFMCommunicate request_size=4 [10:35:02]MH_SAM_APDU [10:35:02]CAPDU: 80 13 01 00 [10:35:02]Write to MH i2c: E2 08 00 DC 3D 80 13 01 00 00 00 00 00 96 [10:35:02]Write i2c OK [10:35:02]MH_I2C_Read... [10:35:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:03]Read from MH i2c: E2 [10:35:03]MH_I2C_Read... [10:35:03]Read from MH i2c: E2 0E 00 [10:35:03]MH_I2C_Read... [10:35:03]Read from MH i2c: E2 0E 00 DC 3D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9F [10:35:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:35:03]wFMCommunicate OK [10:35:03]SAM_PROTO_GetShiftState done [10:35:03]FM_GetShiftState done [10:35:03]opened in 1729470944 [10:35:03]opened+sec_in_day 1729557344 [10:35:03]quantity*price = 50010 [10:35:03]sum+1 = 50012 [10:35:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 70 21.10.2024 10:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165959 ФПД: 85032616363908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103520&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165959&fm=85032616363908&tin=02508201610067®Number=0000000000091764&sum=50000 [10:35:04]StoreToDocumentArchive [10:35:04]shift 535 fd 165959 [10:35:04]save to /storage/0535/doc_00165959 [10:35:04]save last doc name /storage/0535/doc_00165959 to /storage/kkm_last_doc_name [10:35:04]save OK [10:35:04]Clear old archive folders... [10:35:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:04]tlvbuf is 0157E890 [10:35:04]SAM_PROTO_ClearQueue [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 09 00 00 [10:35:04]Write to MH i2c: E2 08 00 E9 3D 80 09 00 00 00 00 00 00 98 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 E9 3D 00 90 00 9A [10:35:04]RAPDU: 90 00 [10:35:04]wFMCommunicate OK [10:35:04]SAM_PROTO_ClearQueue done [10:35:04]KKMCreateOFDPacket [10:35:04]OFDProtocolAddRootSTLVToBuf [10:35:04]FM_MakeSignedData [10:35:04]FM_MakeSignedData [10:35:04]SAM_PROTO_SignData [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 0D 01 02 [10:35:04]Write to MH i2c: E2 08 00 EA 3D 80 0D 01 02 00 00 00 00 A0 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 EA 3D 00 90 00 9B [10:35:04]RAPDU: 90 00 [10:35:04]wFMCommunicate OK [10:35:04]wFMCommunicate request_size=255 [10:35:04]MH_SAM_APDU [10: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 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 46 00 00 00 F4 03 04 00 68 2E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 88 02 00 35 04 06 00 4D [10:35:04]Write to MH i2c: E2 02 01 EB 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 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 46 00 00 00 F4 03 04 00 68 2E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 88 02 00 35 04 06 00 4D 00 00 9E [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 EB 3D 00 90 00 9C [10:35:04]RAPDU: 90 00 [10:35:04]wFMCommunicate OK [10:35:04]wFMCommunicate request_size=10 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 0D 02 02 05 56 32 E4 87 84 [10:35:04]Write to MH i2c: E2 0D 00 EC 3D 80 0D 02 02 05 00 56 32 E4 87 84 00 00 24 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 03 00 EC 3D 00 90 00 9D [10:35:04]RAPDU: 90 00 [10:35:04]wFMCommunicate OK [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 0D 03 02 [10:35:04]Write to MH i2c: E2 08 00 ED 3D 80 0D 03 02 00 00 00 00 A5 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 0B 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 0B 00 ED 3D 00 F2 58 A8 0F 7B 49 E4 A7 90 00 F6 [10:35:04]RAPDU: F2 58 A8 0F 7B 49 E4 A7 90 00 [10:35:04]wFMCommunicate OK [10:35:04]SAM_PROTO_SignData done [10:35:04]FM_MakeSignedData done [10:35:04]CreateOFDProtocolMessage [10:35:04]wFMCommunicate request_size=4 [10:35:04]MH_SAM_APDU [10:35:04]CAPDU: 80 11 00 00 [10:35:04]Write to MH i2c: E2 08 00 EE 3D 80 11 00 00 00 00 00 00 A5 [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:04]Read from MH i2c: E2 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 17 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: E2 17 00 EE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [10:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:35:04]wFMCommunicate OK [10:35:04]CreateOFDProtocolMessage done [10:35:04]OFDSenderStorePacket 165959 [10:35:04]StoreOFDPacket docnum=165959 [10:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D 3C 07 01 89 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 46 00 00 00 F4 03 04 00 68 2E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 88 02 00 35 04 06 00 4D 56 32 E4 87 84 F2 58 A8 0F 7B 49 E4 A7 [10:35:04]CheckFolder [10:35:04]dirname=/storage/ofd_packets [10:35:04]CheckFolder done [10:35:04]ProducePacketName [10:35:04]name=ofd_packets/00165959 [10:35:04]NVStorageSaveData ofd_packets/00165959 [10:35:04]File name is /storage/ofd_packets/00165959 [10:35:04]Write 301 bytes [10:35:04]NVStorageSaveData done [10:35:04]OFDSenderStorePacket done [10:35:04]KKMCreateOFDPacket done [10:35:04]NVStorageSaveData kkm_last_timestamp [10:35:04]File name is /storage/kkm_last_timestamp [10:35:04]Write 4 bytes [10:35:04]NVStorageSaveData done [10:35:04]ExternCall_PrintAddStr [10:35:04]wPrintStart [10:35:04]Write to MH i2c: 01 00 00 EF 3D 2C [10:35:04]Write i2c OK [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: 01 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: 01 07 00 [10:35:04]MH_I2C_Read... [10:35:04]Read from MH i2c: 01 07 00 EF 3D 00 00 00 00 00 FF 0F 41 [10:35:04]RasterBufferAndPrint [10:35:04]line Счет N : (1)220529 [10:35:04]line ИНН: 02508201610067 [10:35:04]line Контрольно-Кассовый Чек [10:35:04]line ПРОДАЖА [10:35:04]line ТРК (МРК, ГНК) : 34 [10:35:04]line Товар: 2710124500 [10:35:04]line Аи-95-К-5 [10:35:04]line 6.740 * 74.20 [10:35:04]line = 500.11 [10:35:04]line НДС 12% НСП 1% [10:35:04]line > о реализуемом товаре [10:35:04]line ОКРУГЛЕНИЕ: -0.11 [10:35:04]line ИТОГО: 500.00 [10:35:04]line Внесено: 500.00 [10:35:04]line СДАЧА: 0.00 [10:35:04]line НСП 1% : 4.43 [10:35:04]line НДС 12% : 53.11 [10:35:04]line Наличными: 500.00 [10:35:04]line Безнал.: 0.00 [10:35:04]line Место: АЗС № 161 "Партнер Нефть" [10:35:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:35:04]line СНО: Общий режим [10:35:04]line Чек 70 21.10.2024 10:35 [10:35:04]line Смена: 535 ФФД: 1.0 [10:35:04]line ЗНМ: 0300000104 [10:35:04]line РНМ: 0000000000091764 [10:35:04]line Версия ККМ: 001 [10:35:04]line ФМ: 0000000000871759 [10:35:04]line ФД: 165959 [10:35:04]line ФПД: 85032616363908 [10:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103520&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165959&fm=85032616363908&tin=02508201610067®Number=0000000000091764&sum=50000 [10:35:05]OFD Sender: Processing packet 165959 [packets to send 48, broken 47] [10:35:05]ProducePacketName [10:35:05]name=ofd_packets/00165959 [10:35:05]OFD Sender: To server: pG, [10:35:05]CommunicateWithHost lk.salyk.kg:30040 [10:35:05]ConnectInit lk.salyk.kg [10:35:05]written 0, free lines is 4095 [10:35:05]Connected sock=6 [10: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 35 39 0F 01 00 00 2D 3C 07 01 89 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 46 00 00 00 F4 03 04 00 68 2E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 88 02 00 35 04 06 00 4D 56 32 E4 87 84 F2 58 A8 0F 7B 49 E4 A7 [10: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 35 39 4F 00 00 00 CB FE 47 00 D5 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 88 02 00 F4 03 04 00 D7 D4 15 67 B6 04 01 00 00 51 80 D1 6B 67 0F 13 D1 [10:35:05]CommunicateWithHost err = 0 [10:35:05]CheckOFDResponse [10:35:05]1017 (14) - 77093643461234 [10:35:05]1041 (16) - 0000000000871759 [10:35:05]1040 (4) - 165959 [10:35:05]1012 (4) - 21.10.2024 04:13 [10:35:05]1206 (1) - 0 [10:35:05]OFD Sender: Remove packet 165959 [10:35:05]ProducePacketName [10:35:05]name=ofd_packets/00165959 [10:35:05]NVStorageDeleteData [10:35:05]Write to MH i2c: 01 00 00 1A 3E 58 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 07 00 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: 01 07 00 1A 3E 00 00 00 00 00 D9 0C 44 [10:35:05]RasterBufferAndPrint [10:35:05]line [10:35:05]line [10:35:05]line [10:35:05]line [10:35:05]line [10:35:05]written 0, free lines is 3297 [10:35:05]MH_Cut [10:35:05]Write to MH i2c: D1 01 00 21 3E 01 31 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: D1 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: D1 01 00 [10:35:05]MH_I2C_Read... [10:35:05]Read from MH i2c: D1 01 00 21 3E 00 30 [10:35:05]Write to MH i2c: 01 00 00 22 3E 60 [10:35:05]Write i2c OK [10:35:05]MH_I2C_Read... [10:35:05]OFD Sender: No OFD packet to send [10:35:06]*** Cut start [10:35:06]*** Partial cut [10:35:06]*** CUTSNS_PIN = 1 [10:35:06]*** CUTSNS_PIN = 0 [10:35:06]*** Brake cut motor [10:35:06]Read from MH i2c: 01 [10:35:06]MH_I2C_Read... [10:35:06]*** Stop cut motor [10:35:06]*** Cut end [10:35:06]Read from MH i2c: 01 07 00 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: 01 07 00 22 3E 00 00 00 00 00 FF 0F 75 [10:35:06]process_action close_receipt done [10:35:06]requested_data is exist [10:35:06]produce_requested_data [10:35:06]requested_item fm.sn is exist - process it [10:35:06]wFMCommunicate request_size=4 [10:35:06]MH_SAM_APDU [10:35:06]CAPDU: 80 11 00 00 [10:35:06]Write to MH i2c: E2 08 00 23 3E 80 11 00 00 00 00 00 00 DB [10:35:06]Write i2c OK [10:35:06]MH_I2C_Read... [10:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:06]Read from MH i2c: E2 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: E2 17 00 [10:35:06]MH_I2C_Read... [10:35:06]Read from MH i2c: E2 17 00 23 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 33 [10:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:35:06]wFMCommunicate OK [10:35:06]requested_item fd.num is exist - process it [10:35:06]SAM_PROTO_GetFieldsCounters [10:35:06]wFMCommunicate request_size=4 [10:35:06]MH_SAM_APDU [10:35:06]CAPDU: 80 13 00 00 [10:35:06]Write to MH i2c: E2 08 00 24 3E 80 13 00 00 00 00 00 00 DE [10:35:06]Write i2c OK [10:35:06]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 62 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 62 00 24 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10:35:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:07]wFMCommunicate OK [10:35:07]SAM_PROTO_GetFieldsCounters done [10:35:07]requested_item shift.num is exist - process it [10:35:07]requested_item shift.opened is exist - process it [10:35:07]req_shift_opened [10:35:07]FM_GetShiftState [10:35:07]SAM_PROTO_GetShiftState [10:35:07]wFMCommunicate request_size=4 [10:35:07]MH_SAM_APDU [10:35:07]CAPDU: 80 13 01 00 [10:35:07]Write to MH i2c: E2 08 00 25 3E 80 13 01 00 00 00 00 00 E0 [10:35:07]Write i2c OK [10:35:07]MH_I2C_Read... [10:35:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:07]Read from MH i2c: E2 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 0E 00 [10:35:07]MH_I2C_Read... [10:35:07]Read from MH i2c: E2 0E 00 25 3E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E9 [10:35:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:35:07]wFMCommunicate OK [10:35:07]SAM_PROTO_GetShiftState done [10:35:07]FM_GetShiftState done [10:35:07]req_shift_opened done [10:35:07]requested_item shift.open_date is exist - process it [10:35:07]req_shift_open_date [10:35:07]req_shift_open_date done [10:35:07]produce_requested_data done [10:35:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165959,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:35:07]process_action_free close_receipt [10:35:07]json_value_free [10:35:07]json_value_free done [10:35:07]process_json_proto returns [10:35:07]Send response to host [10:35:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165959,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:35:07]free response buf [10:35:07]execute_script done [10:35:07]execute_script returns [10:35:07]free content buf [10:35:07]Sock 7.Close socket [10:35:07]Sock 7.Thread stoped [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:46]accept exits with 5 [10:38:46]New connection [10:38:46]New thread 3066920292 created [10:38:46]Thread 3066776932 joined [10:38:46]Waiting for new connection... [10:38:46] Sock 5.Parse request [10:38:46]Sock 5.Check first char [10:38:46]Sock 5.First char is OK [10:38:46]request: POST /json_proto HTTP/1.0 [10:38:46]Method: POST [10:38:46]URL: /json_proto [10:38:46]Method is POST - this is cgi request [10:38:46]url: /json_proto [10:38:46]query_string will be loaded in cgi processing [10:38:46]execute_cgi json_proto POST (null) [10:38:46]execute_cgi path=json_proto method=POST [10:38:46]POST find Content-Length [10:38:46]Host: 172.17.53.195:8080 [10:38:46]Content-Length: 682 [10:38:46]Content-Type: application/json [10:38:46] [10:38:46]POST finish read [10:38:46]Found Content-Length = 682 [10:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 23.080, "sum" : 1712.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1712.00, "payments": [ { "type": 0, "sum" : 1712.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:46]execute_script... [10:38: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)220530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 23.080, "sum" : 1712.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 1712.00, "payments": [ { "type": 0, "sum" : 1712.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:46]POST & json_proto [10:38:46]process_json_proto [10:38:46]json parsed OK: [10:38:46]protocol is kg_v1.0 [10:38:46]action value=close_receipt [10:38:46]process_action close_receipt [10:38:46]cmd_close_receipt [10:38:46]MH_GetDate [10:38:46]Write to MH i2c: F0 00 00 26 3E 53 [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: F0 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: F0 09 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: F0 09 00 26 3E 00 48 2F 16 67 21 48 4A 65 68 [10:38:46]GetLastDocTimeStamp 1729506920 [10:38:46]current date 1729507144 [10:38:46]FM_GetShiftState [10:38:46]SAM_PROTO_GetShiftState [10:38:46]wFMCommunicate request_size=4 [10:38:46]MH_SAM_APDU [10:38:46]CAPDU: 80 13 01 00 [10:38:46]Write to MH i2c: E2 08 00 27 3E 80 13 01 00 00 00 00 00 E2 [10:38:46]Write i2c OK [10:38:46]MH_I2C_Read... [10:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:46]Read from MH i2c: E2 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: E2 0E 00 [10:38:46]MH_I2C_Read... [10:38:46]Read from MH i2c: E2 0E 00 27 3E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EB [10:38:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:38:46]wFMCommunicate OK [10:38:46]SAM_PROTO_GetShiftState done [10:38:46]FM_GetShiftState done [10:38:46]opened in 1729470944 [10:38:46]opened+sec_in_day 1729557344 [10:38:46]quantity*price = 171253 [10:38:46]sum+1 = 171255 [10:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1712.00 Внесено: 3000.00 СДАЧА: 1288.00 НСП 1% : 15.15 НДС 12% : 181.86 Наличными: 1712.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 71 21.10.2024 10:39 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165960 ФПД: 38038074383244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103904&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165960&fm=38038074383244&tin=02508201610067®Number=0000000000091764&sum=171200 [10:38:47]StoreToDocumentArchive [10:38:47]shift 535 fd 165960 [10:38:47]save to /storage/0535/doc_00165960 [10:38:47]save last doc name /storage/0535/doc_00165960 to /storage/kkm_last_doc_name [10:38:47]save OK [10:38:47]Clear old archive folders... [10:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:38:47]tlvbuf is 01484D40 [10:38:47]SAM_PROTO_ClearQueue [10:38:47]wFMCommunicate request_size=4 [10:38:47]MH_SAM_APDU [10:38:47]CAPDU: 80 09 00 00 [10:38:47]Write to MH i2c: E2 08 00 34 3E 80 09 00 00 00 00 00 00 E4 [10:38:47]Write i2c OK [10:38:47]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 34 3E 00 90 00 E6 [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]SAM_PROTO_ClearQueue done [10:38:48]KKMCreateOFDPacket [10:38:48]OFDProtocolAddRootSTLVToBuf [10:38:48]FM_MakeSignedData [10:38:48]FM_MakeSignedData [10:38:48]SAM_PROTO_SignData [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 01 02 [10:38:48]Write to MH i2c: E2 08 00 35 3E 80 0D 01 02 00 00 00 00 EC [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 35 3E 00 90 00 E7 [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]wFMCommunicate request_size=255 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 5A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F6 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 48 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 88 02 00 35 04 06 00 22 [10:38:48]Write to MH i2c: E2 02 01 36 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 5A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F6 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 48 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 88 02 00 35 04 06 00 22 00 00 74 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 36 3E 00 90 00 E8 [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]wFMCommunicate request_size=10 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 02 02 05 98 6D E9 5B 8C [10:38:48]Write to MH i2c: E2 0D 00 37 3E 80 0D 02 02 05 00 98 6D E9 5B 8C 00 00 CE [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 03 00 37 3E 00 90 00 E9 [10:38:48]RAPDU: 90 00 [10:38:48]wFMCommunicate OK [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 0D 03 02 [10:38:48]Write to MH i2c: E2 08 00 38 3E 80 0D 03 02 00 00 00 00 F1 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 0B 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 0B 00 38 3E 00 FF 9E F7 8F D8 14 1F 28 90 00 48 [10:38:48]RAPDU: FF 9E F7 8F D8 14 1F 28 90 00 [10:38:48]wFMCommunicate OK [10:38:48]SAM_PROTO_SignData done [10:38:48]FM_MakeSignedData done [10:38:48]CreateOFDProtocolMessage [10:38:48]wFMCommunicate request_size=4 [10:38:48]MH_SAM_APDU [10:38:48]CAPDU: 80 11 00 00 [10:38:48]Write to MH i2c: E2 08 00 39 3E 80 11 00 00 00 00 00 00 F1 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:48]Read from MH i2c: E2 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 17 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: E2 17 00 39 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [10:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:48]wFMCommunicate OK [10:38:48]CreateOFDProtocolMessage done [10:38:48]OFDSenderStorePacket 165960 [10:38:48]StoreOFDPacket docnum=165960 [10:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 40 F4 07 01 A0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 5A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F6 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 48 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 88 02 00 35 04 06 00 22 98 6D E9 5B 8C FF 9E F7 8F D8 14 1F 28 [10:38:48]CheckFolder [10:38:48]dirname=/storage/ofd_packets [10:38:48]CheckFolder done [10:38:48]ProducePacketName [10:38:48]name=ofd_packets/00165960 [10:38:48]NVStorageSaveData ofd_packets/00165960 [10:38:48]File name is /storage/ofd_packets/00165960 [10:38:48]Write 301 bytes [10:38:48]NVStorageSaveData done [10:38:48]OFDSenderStorePacket done [10:38:48]KKMCreateOFDPacket done [10:38:48]NVStorageSaveData kkm_last_timestamp [10:38:48]File name is /storage/kkm_last_timestamp [10:38:48]Write 4 bytes [10:38:48]NVStorageSaveData done [10:38:48]ExternCall_PrintAddStr [10:38:48]wPrintStart [10:38:48]Write to MH i2c: 01 00 00 3A 3E 78 [10:38:48]Write i2c OK [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 07 00 [10:38:48]MH_I2C_Read... [10:38:48]Read from MH i2c: 01 07 00 3A 3E 00 00 00 00 00 FF 0F 8D [10:38:48]RasterBufferAndPrint [10:38:48]line Счет N : (1)220530 [10:38:48]line ИНН: 02508201610067 [10:38:48]line Контрольно-Кассовый Чек [10:38:48]line ПРОДАЖА [10:38:48]line ТРК (МРК, ГНК) : 24 [10:38:48]line Товар: 2710124500 [10:38:48]line Аи-95-К-5 [10:38:48]line 23.080 * 74.20 [10:38:48]line = 1712.54 [10:38:48]line НДС 12% НСП 1% [10:38:48]line > о реализуемом товаре [10:38:48]line ОКРУГЛЕНИЕ: -0.54 [10:38:48]line ИТОГО: 1712.00 [10:38:48]line Внесено: 3000.00 [10:38:48]line СДАЧА: 1288.00 [10:38:48]line НСП 1% : 15.15 [10:38:48]line НДС 12% : 181.86 [10:38:48]line Наличными: 1712.00 [10:38:48]line Безнал.: 0.00 [10:38:48]line Место: АЗС № 161 "Партнер Нефть" [10:38:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:38:48]line СНО: Общий режим [10:38:48]line Чек 71 21.10.2024 10:39 [10:38:48]line Смена: 535 ФФД: 1.0 [10:38:48]line ЗНМ: 0300000104 [10:38:48]line РНМ: 0000000000091764 [10:38:48]line Версия ККМ: 001 [10:38:48]line ФМ: 0000000000871759 [10:38:48]line ФД: 165960 [10:38:48]line ФПД: 38038074383244 [10:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T103904&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165960&fm=38038074383244&tin=02508201610067®Number=0000000000091764&sum=171200 [10:38:48]OFD Sender: Processing packet 165960 [packets to send 48, broken 47] [10:38:48]ProducePacketName [10:38:48]name=ofd_packets/00165960 [10:38:48]OFD Sender: To server: pG, [10:38:48]CommunicateWithHost lk.salyk.kg:30040 [10:38:48]ConnectInit lk.salyk.kg [10:38:48]written 0, free lines is 4095 [10:38:48]Connected sock=7 [10:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 40 F4 07 01 A0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 28 5A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F6 9C 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 9C 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 47 00 00 00 00 07 04 06 00 C0 9C 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 48 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 88 02 00 35 04 06 00 22 98 6D E9 5B 8C FF 9E F7 8F D8 14 1F 28 [10:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F5 FC 47 00 1F BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 88 02 00 F4 03 04 00 B7 D5 15 67 B6 04 01 00 00 C5 5F 8D 00 22 8A 1E 3C [10:38:49]CommunicateWithHost err = 0 [10:38:49]CheckOFDResponse [10:38:49]1017 (14) - 77093643461234 [10:38:49]1041 (16) - 0000000000871759 [10:38:49]1040 (4) - 165960 [10:38:49]1012 (4) - 21.10.2024 04:16 [10:38:49]1206 (1) - 0 [10:38:49]OFD Sender: Remove packet 165960 [10:38:49]ProducePacketName [10:38:49]name=ofd_packets/00165960 [10:38:49]NVStorageDeleteData [10:38:49]Write to MH i2c: 01 00 00 65 3E A3 [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: 01 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: 01 07 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: 01 07 00 65 3E 00 00 00 00 00 CD 0C 83 [10:38:49]RasterBufferAndPrint [10:38:49]line [10:38:49]line [10:38:49]line [10:38:49]line [10:38:49]line [10:38:49]written 0, free lines is 3282 [10:38:49]MH_Cut [10:38:49]Write to MH i2c: D1 01 00 6C 3E 01 7C [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: D1 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: D1 01 00 [10:38:49]MH_I2C_Read... [10:38:49]Read from MH i2c: D1 01 00 6C 3E 00 7B [10:38:49]Write to MH i2c: 01 00 00 6D 3E AB [10:38:49]Write i2c OK [10:38:49]MH_I2C_Read... [10:38:49]OFD Sender: No OFD packet to send [10:38:50]*** Cut start [10:38:50]*** Partial cut [10:38:50]*** CUTSNS_PIN = 1 [10:38:50]*** CUTSNS_PIN = 0 [10:38:50]*** Brake cut motor [10:38:50]Read from MH i2c: 01 [10:38:50]MH_I2C_Read... [10:38:50]*** Stop cut motor [10:38:50]*** Cut end [10:38:50]Read from MH i2c: 01 07 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: 01 07 00 6D 3E 00 00 00 00 00 FF 0F C0 [10:38:50]process_action close_receipt done [10:38:50]requested_data is exist [10:38:50]produce_requested_data [10:38:50]requested_item fm.sn is exist - process it [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 11 00 00 [10:38:50]Write to MH i2c: E2 08 00 6E 3E 80 11 00 00 00 00 00 00 26 [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 17 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 17 00 6E 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [10:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:38:50]wFMCommunicate OK [10:38:50]requested_item fd.num is exist - process it [10:38:50]SAM_PROTO_GetFieldsCounters [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 13 00 00 [10:38:50]Write to MH i2c: E2 08 00 6F 3E 80 13 00 00 00 00 00 00 29 [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 62 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 62 00 6F 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:50]wFMCommunicate OK [10:38:50]SAM_PROTO_GetFieldsCounters done [10:38:50]requested_item shift.num is exist - process it [10:38:50]requested_item shift.opened is exist - process it [10:38:50]req_shift_opened [10:38:50]FM_GetShiftState [10:38:50]SAM_PROTO_GetShiftState [10:38:50]wFMCommunicate request_size=4 [10:38:50]MH_SAM_APDU [10:38:50]CAPDU: 80 13 01 00 [10:38:50]Write to MH i2c: E2 08 00 70 3E 80 13 01 00 00 00 00 00 2B [10:38:50]Write i2c OK [10:38:50]MH_I2C_Read... [10:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:50]Read from MH i2c: E2 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 0E 00 [10:38:50]MH_I2C_Read... [10:38:50]Read from MH i2c: E2 0E 00 70 3E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 34 [10:38:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:38:50]wFMCommunicate OK [10:38:50]SAM_PROTO_GetShiftState done [10:38:50]FM_GetShiftState done [10:38:50]req_shift_opened done [10:38:50]requested_item shift.open_date is exist - process it [10:38:50]req_shift_open_date [10:38:50]req_shift_open_date done [10:38:50]produce_requested_data done [10:38:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165960,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:38:50]process_action_free close_receipt [10:38:50]json_value_free [10:38:50]json_value_free done [10:38:50]process_json_proto returns [10:38:50]Send response to host [10:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165960,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:38:50]free response buf [10:38:50]execute_script done [10:38:50]execute_script returns [10:38:50]free content buf [10:38:50]Sock 5.Close socket [10:38:50]Sock 5.Thread stoped [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:18]accept exits with 6 [10:41:18]New connection [10:41:18]New thread 3066776932 created [10:41:18]Thread 3066920292 joined [10:41:18]Waiting for new connection... [10:41:18] Sock 6.Parse request [10:41:18]Sock 6.Check first char [10:41:18]Sock 6.First char is OK [10:41:18]request: POST /json_proto HTTP/1.0 [10:41:18]Method: POST [10:41:18]URL: /json_proto [10:41:18]Method is POST - this is cgi request [10:41:18]url: /json_proto [10:41:18]query_string will be loaded in cgi processing [10:41:18]execute_cgi json_proto POST (null) [10:41:18]execute_cgi path=json_proto method=POST [10:41:18]POST find Content-Length [10:41:18]Host: 172.17.53.195:8080 [10:41:18]Content-Length: 674 [10:41:18]Content-Type: application/json [10:41:18] [10:41:18]POST finish read [10:41:18]Found Content-Length = 674 [10:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.870, "sum" : 599.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:18]execute_script... [10:41: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)220531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.870, "sum" : 599.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:18]POST & json_proto [10:41:18]process_json_proto [10:41:18]json parsed OK: [10:41:18]protocol is kg_v1.0 [10:41:18]action value=close_receipt [10:41:18]process_action close_receipt [10:41:18]cmd_close_receipt [10:41:18]MH_GetDate [10:41:18]Write to MH i2c: F0 00 00 71 3E 9E [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: F0 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: F0 09 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: F0 09 00 71 3E 00 E0 2F 16 67 21 48 4A 65 4B [10:41:18]GetLastDocTimeStamp 1729507144 [10:41:18]current date 1729507296 [10:41:18]FM_GetShiftState [10:41:18]SAM_PROTO_GetShiftState [10:41:18]wFMCommunicate request_size=4 [10:41:18]MH_SAM_APDU [10:41:18]CAPDU: 80 13 01 00 [10:41:18]Write to MH i2c: E2 08 00 72 3E 80 13 01 00 00 00 00 00 2D [10:41:18]Write i2c OK [10:41:18]MH_I2C_Read... [10:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:18]Read from MH i2c: E2 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 0E 00 [10:41:18]MH_I2C_Read... [10:41:18]Read from MH i2c: E2 0E 00 72 3E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 36 [10:41:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:41:18]wFMCommunicate OK [10:41:18]SAM_PROTO_GetShiftState done [10:41:18]FM_GetShiftState done [10:41:18]opened in 1729470944 [10:41:18]opened+sec_in_day 1729557344 [10:41:18]quantity*price = 59969 [10:41:18]sum+1 = 59970 [10:41:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 599.00 Внесено: 600.00 СДАЧА: 1.00 НСП 1% : 5.31 НДС 12% : 63.68 Наличными: 599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 72 21.10.2024 10:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165961 ФПД: 92561131478279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104136&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165961&fm=92561131478279&tin=02508201610067®Number=0000000000091764&sum=59900 [10:41:19]StoreToDocumentArchive [10:41:19]shift 535 fd 165961 [10:41:19]save to /storage/0535/doc_00165961 [10:41:19]save last doc name /storage/0535/doc_00165961 to /storage/kkm_last_doc_name [10:41:19]save OK [10:41:19]Clear old archive folders... [10:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:41:19]tlvbuf is 0190C420 [10:41:19]SAM_PROTO_ClearQueue [10:41:19]wFMCommunicate request_size=4 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 09 00 00 [10:41:19]Write to MH i2c: E2 08 00 7F 3E 80 09 00 00 00 00 00 00 2F [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 7F 3E 00 90 00 31 [10:41:19]RAPDU: 90 00 [10:41:19]wFMCommunicate OK [10:41:19]SAM_PROTO_ClearQueue done [10:41:19]KKMCreateOFDPacket [10:41:19]OFDProtocolAddRootSTLVToBuf [10:41:19]FM_MakeSignedData [10:41:19]FM_MakeSignedData [10:41:19]SAM_PROTO_SignData [10:41:19]wFMCommunicate request_size=4 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 0D 01 02 [10:41:19]Write to MH i2c: E2 08 00 80 3E 80 0D 01 02 00 00 00 00 37 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 80 3E 00 90 00 32 [10:41:19]RAPDU: 90 00 [10:41:19]wFMCommunicate OK [10:41:19]wFMCommunicate request_size=255 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 18 00 00 00 00 07 04 06 00 FC E9 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 E0 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 88 02 00 35 04 06 00 54 2F 11 5C [10:41:19]Write to MH i2c: E2 02 01 81 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 18 00 00 00 00 07 04 06 00 FC E9 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 E0 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 88 02 00 35 04 06 00 54 2F 11 5C 00 00 0A [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]OFD Sender: No OFD packet to send [10:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 81 3E 00 90 00 33 [10:41:19]RAPDU: 90 00 [10:41:19]wFMCommunicate OK [10:41:19]wFMCommunicate request_size=7 [10:41:19]MH_SAM_APDU [10:41:19]CAPDU: 80 0D 02 02 02 9D 07 [10:41:19]Write to MH i2c: E2 0A 00 82 3E 80 0D 02 02 02 00 9D 07 00 00 E2 [10:41:19]Write i2c OK [10:41:19]MH_I2C_Read... [10:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:19]Read from MH i2c: E2 [10:41:19]MH_I2C_Read... [10:41:19]Read from MH i2c: E2 03 00 [10:41:19]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 03 00 82 3E 00 90 00 34 [10:41:20]RAPDU: 90 00 [10:41:20]wFMCommunicate OK [10:41:20]wFMCommunicate request_size=4 [10:41:20]MH_SAM_APDU [10:41:20]CAPDU: 80 0D 03 02 [10:41:20]Write to MH i2c: E2 08 00 83 3E 80 0D 03 02 00 00 00 00 3C [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:20]Read from MH i2c: E2 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 0B 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 0B 00 83 3E 00 13 48 4C ED 1F 0D D3 8B 90 00 5B [10:41:20]RAPDU: 13 48 4C ED 1F 0D D3 8B 90 00 [10:41:20]wFMCommunicate OK [10:41:20]SAM_PROTO_SignData done [10:41:20]FM_MakeSignedData done [10:41:20]CreateOFDProtocolMessage [10:41:20]wFMCommunicate request_size=4 [10:41:20]MH_SAM_APDU [10:41:20]CAPDU: 80 11 00 00 [10:41:20]Write to MH i2c: E2 08 00 84 3E 80 11 00 00 00 00 00 00 3C [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:20]Read from MH i2c: E2 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 17 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: E2 17 00 84 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [10:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:41:20]wFMCommunicate OK [10:41:20]CreateOFDProtocolMessage done [10:41:20]OFDSenderStorePacket 165961 [10:41:20]StoreOFDPacket docnum=165961 [10:41:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D6 9E 04 01 D1 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 18 00 00 00 00 07 04 06 00 FC E9 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 E0 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 88 02 00 35 04 06 00 54 2F 11 5C 9D 07 13 48 4C ED 1F 0D D3 8B [10:41:20]CheckFolder [10:41:20]dirname=/storage/ofd_packets [10:41:20]CheckFolder done [10:41:20]ProducePacketName [10:41:20]name=ofd_packets/00165961 [10:41:20]NVStorageSaveData ofd_packets/00165961 [10:41:20]File name is /storage/ofd_packets/00165961 [10:41:20]Write 298 bytes [10:41:20]NVStorageSaveData done [10:41:20]OFDSenderStorePacket done [10:41:20]KKMCreateOFDPacket done [10:41:20]NVStorageSaveData kkm_last_timestamp [10:41:20]File name is /storage/kkm_last_timestamp [10:41:20]Write 4 bytes [10:41:20]NVStorageSaveData done [10:41:20]ExternCall_PrintAddStr [10:41:20]wPrintStart [10:41:20]Write to MH i2c: 01 00 00 85 3E C3 [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: 01 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: 01 07 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: 01 07 00 85 3E 00 00 00 00 00 FF 0F D8 [10:41:20]RasterBufferAndPrint [10:41:20]line Счет N : (1)220531 [10:41:20]line ИНН: 02508201610067 [10:41:20]line Контрольно-Кассовый Чек [10:41:20]line ПРОДАЖА [10:41:20]line ТРК (МРК, ГНК) : 11 [10:41:20]line Товар: 2710194210 [10:41:20]line ДТ-К-5 [10:41:20]line 7.870 * 76.20 [10:41:20]line = 599.69 [10:41:20]line НДС 12% НСП 1% [10:41:20]line > о реализуемом товаре [10:41:20]line ОКРУГЛЕНИЕ: -0.69 [10:41:20]line ИТОГО: 599.00 [10:41:20]line Внесено: 600.00 [10:41:20]line СДАЧА: 1.00 [10:41:20]line НСП 1% : 5.31 [10:41:20]line НДС 12% : 63.68 [10:41:20]line Наличными: 599.00 [10:41:20]line Безнал.: 0.00 [10:41:20]line Место: АЗС № 161 "Партнер Нефть" [10:41:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:41:20]line СНО: Общий режим [10:41:20]line Чек 72 21.10.2024 10:41 [10:41:20]line Смена: 535 ФФД: 1.0 [10:41:20]line ЗНМ: 0300000104 [10:41:20]line РНМ: 0000000000091764 [10:41:20]line Версия ККМ: 001 [10:41:20]line ФМ: 0000000000871759 [10:41:20]line ФД: 165961 [10:41:20]line ФПД: 92561131478279 [10:41:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104136&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165961&fm=92561131478279&tin=02508201610067®Number=0000000000091764&sum=59900 [10:41:20]OFD Sender: Processing packet 165961 [packets to send 48, broken 47] [10:41:20]ProducePacketName [10:41:20]name=ofd_packets/00165961 [10:41:20]OFD Sender: To server: pG, [10:41:20]CommunicateWithHost lk.salyk.kg:30040 [10:41:20]ConnectInit lk.salyk.kg [10:41:20]written 0, free lines is 4095 [10:41:20]Connected sock=7 [10:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D6 9E 04 01 D1 30 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 41 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 18 00 00 00 00 07 04 06 00 FC E9 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 E0 2F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 88 02 00 35 04 06 00 54 2F 11 5C 9D 07 13 48 4C ED 1F 0D D3 8B [10:41:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 41 E4 47 00 F2 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 88 02 00 F4 03 04 00 4E D6 15 67 B6 04 01 00 00 3C CE F6 F9 8A 54 9C 78 [10:41:20]CommunicateWithHost err = 0 [10:41:20]CheckOFDResponse [10:41:20]1017 (14) - 77093643461234 [10:41:20]1041 (16) - 0000000000871759 [10:41:20]1040 (4) - 165961 [10:41:20]1012 (4) - 21.10.2024 04:19 [10:41:20]1206 (1) - 0 [10:41:20]OFD Sender: Remove packet 165961 [10:41:20]ProducePacketName [10:41:20]name=ofd_packets/00165961 [10:41:20]NVStorageDeleteData [10:41:20]Write to MH i2c: 01 00 00 B0 3E EE [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: 01 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: 01 07 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: 01 07 00 B0 3E 00 00 00 00 00 CD 0C CE [10:41:20]RasterBufferAndPrint [10:41:20]line [10:41:20]line [10:41:20]line [10:41:20]line [10:41:20]line [10:41:20]written 0, free lines is 3286 [10:41:20]MH_Cut [10:41:20]Write to MH i2c: D1 01 00 B7 3E 01 C7 [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: D1 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: D1 01 00 [10:41:20]MH_I2C_Read... [10:41:20]Read from MH i2c: D1 01 00 B7 3E 00 C6 [10:41:20]Write to MH i2c: 01 00 00 B8 3E F6 [10:41:20]Write i2c OK [10:41:20]MH_I2C_Read... [10:41:21]OFD Sender: No OFD packet to send [10:41:21]*** Cut start [10:41:21]*** Partial cut [10:41:21]*** CUTSNS_PIN = 1 [10:41:21]*** CUTSNS_PIN = 0 [10:41:21]*** Brake cut motor [10:41:22]Read from MH i2c: 01 [10:41:22]MH_I2C_Read... [10:41:22]*** Stop cut motor [10:41:22]*** Cut end [10:41:22]Read from MH i2c: 01 07 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: 01 07 00 B8 3E 00 00 00 00 00 FF 0F 0B [10:41:22]process_action close_receipt done [10:41:22]requested_data is exist [10:41:22]produce_requested_data [10:41:22]requested_item fm.sn is exist - process it [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 11 00 00 [10:41:22]Write to MH i2c: E2 08 00 B9 3E 80 11 00 00 00 00 00 00 71 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 17 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 17 00 B9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [10:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:41:22]wFMCommunicate OK [10:41:22]requested_item fd.num is exist - process it [10:41:22]SAM_PROTO_GetFieldsCounters [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 13 00 00 [10:41:22]Write to MH i2c: E2 08 00 BA 3E 80 13 00 00 00 00 00 00 74 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 62 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 62 00 BA 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [10:41:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_GetFieldsCounters done [10:41:22]requested_item shift.num is exist - process it [10:41:22]requested_item shift.opened is exist - process it [10:41:22]req_shift_opened [10:41:22]FM_GetShiftState [10:41:22]SAM_PROTO_GetShiftState [10:41:22]wFMCommunicate request_size=4 [10:41:22]MH_SAM_APDU [10:41:22]CAPDU: 80 13 01 00 [10:41:22]Write to MH i2c: E2 08 00 BB 3E 80 13 01 00 00 00 00 00 76 [10:41:22]Write i2c OK [10:41:22]MH_I2C_Read... [10:41:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:22]Read from MH i2c: E2 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 [10:41:22]MH_I2C_Read... [10:41:22]Read from MH i2c: E2 0E 00 BB 3E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7F [10:41:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:41:22]wFMCommunicate OK [10:41:22]SAM_PROTO_GetShiftState done [10:41:22]FM_GetShiftState done [10:41:22]req_shift_opened done [10:41:22]requested_item shift.open_date is exist - process it [10:41:22]req_shift_open_date [10:41:22]req_shift_open_date done [10:41:22]produce_requested_data done [10:41:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165961,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:41:22]process_action_free close_receipt [10:41:22]json_value_free [10:41:22]json_value_free done [10:41:22]process_json_proto returns [10:41:22]Send response to host [10:41:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165961,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:41:22]free response buf [10:41:22]execute_script done [10:41:22]execute_script returns [10:41:22]free content buf [10:41:22]Sock 6.Close socket [10:41:22]Sock 6.Thread stoped [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:36]OFD Sender: No OFD packet to send [10:42:41]OFD Sender: No OFD packet to send [10:42:46]OFD Sender: No OFD packet to send [10:42:51]OFD Sender: No OFD packet to send [10:42:56]OFD Sender: No OFD packet to send [10:43:01]OFD Sender: No OFD packet to send [10:43:06]OFD Sender: No OFD packet to send [10:43:11]OFD Sender: No OFD packet to send [10:43:16]OFD Sender: No OFD packet to send [10:43:21]OFD Sender: No OFD packet to send [10:43:26]OFD Sender: No OFD packet to send [10:43:31]OFD Sender: No OFD packet to send [10:43:36]OFD Sender: No OFD packet to send [10:43:41]OFD Sender: No OFD packet to send [10:43:46]OFD Sender: No OFD packet to send [10:43:51]OFD Sender: No OFD packet to send [10:43:56]OFD Sender: No OFD packet to send [10:44:01]OFD Sender: No OFD packet to send [10:44:06]OFD Sender: No OFD packet to send [10:44:11]OFD Sender: No OFD packet to send [10:44:16]OFD Sender: No OFD packet to send [10:44:21]OFD Sender: No OFD packet to send [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44: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: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:33]accept exits with 5 [10:48:33]New connection [10:48:33]New thread 3066920292 created [10:48:33]Thread 3066776932 joined [10:48:33]Waiting for new connection... [10:48:33] Sock 5.Parse request [10:48:33]Sock 5.Check first char [10:48:33]Sock 5.First char is OK [10:48:33]request: POST /json_proto HTTP/1.0 [10:48:33]Method: POST [10:48:33]URL: /json_proto [10:48:33]Method is POST - this is cgi request [10:48:33]url: /json_proto [10:48:33]query_string will be loaded in cgi processing [10:48:33]execute_cgi json_proto POST (null) [10:48:33]execute_cgi path=json_proto method=POST [10:48:33]POST find Content-Length [10:48:33]Host: 172.17.53.195:8080 [10:48:33]Content-Length: 682 [10:48:33]Content-Type: application/json [10:48:33] [10:48:33]POST finish read [10:48:33]Found Content-Length = 682 [10:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:33]execute_script... [10:48: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)220532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:33]POST & json_proto [10:48:33]process_json_proto [10:48:33]json parsed OK: [10:48:33]protocol is kg_v1.0 [10:48:33]action value=close_receipt [10:48:33]process_action close_receipt [10:48:33]cmd_close_receipt [10:48:33]MH_GetDate [10:48:33]Write to MH i2c: F0 00 00 BC 3E E9 [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: F0 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: F0 09 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: F0 09 00 BC 3E 00 93 31 16 67 21 48 4A 65 4B [10:48:33]GetLastDocTimeStamp 1729507296 [10:48:33]current date 1729507731 [10:48:33]FM_GetShiftState [10:48:33]SAM_PROTO_GetShiftState [10:48:33]wFMCommunicate request_size=4 [10:48:33]MH_SAM_APDU [10:48:33]CAPDU: 80 13 01 00 [10:48:33]Write to MH i2c: E2 08 00 BD 3E 80 13 01 00 00 00 00 00 78 [10:48:33]Write i2c OK [10:48:33]MH_I2C_Read... [10:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:33]Read from MH i2c: E2 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: E2 0E 00 [10:48:33]MH_I2C_Read... [10:48:33]Read from MH i2c: E2 0E 00 BD 3E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 81 [10:48:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:48:33]wFMCommunicate OK [10:48:33]SAM_PROTO_GetShiftState done [10:48:33]FM_GetShiftState done [10:48:33]opened in 1729470944 [10:48:33]opened+sec_in_day 1729557344 [10:48:33]quantity*price = 100015 [10:48:33]sum+1 = 100017 [10:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 73 21.10.2024 10:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165962 ФПД: 200076376483248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165962&fm=200076376483248&tin=02508201610067®Number=0000000000091764&sum=100000 [10:48:34]StoreToDocumentArchive [10:48:34]shift 535 fd 165962 [10:48:34]save to /storage/0535/doc_00165962 [10:48:34]save last doc name /storage/0535/doc_00165962 to /storage/kkm_last_doc_name [10:48:34]save OK [10:48:34]Clear old archive folders... [10:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:48:34]tlvbuf is 016C78F0 [10:48:34]SAM_PROTO_ClearQueue [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 09 00 00 [10:48:34]Write to MH i2c: E2 08 00 CA 3E 80 09 00 00 00 00 00 00 7A [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 CA 3E 00 90 00 7C [10:48:34]RAPDU: 90 00 [10:48:34]wFMCommunicate OK [10:48:34]SAM_PROTO_ClearQueue done [10:48:34]KKMCreateOFDPacket [10:48:34]OFDProtocolAddRootSTLVToBuf [10:48:34]FM_MakeSignedData [10:48:34]FM_MakeSignedData [10:48:34]SAM_PROTO_SignData [10:48:34]wFMCommunicate request_size=4 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 0D 01 02 [10:48:34]Write to MH i2c: E2 08 00 CB 3E 80 0D 01 02 00 00 00 00 82 [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:34]Read from MH i2c: E2 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 [10:48:34]MH_I2C_Read... [10:48:34]Read from MH i2c: E2 03 00 CB 3E 00 90 00 7D [10:48:34]RAPDU: 90 00 [10:48:34]wFMCommunicate OK [10:48:34]wFMCommunicate request_size=255 [10:48:34]MH_SAM_APDU [10:48:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 93 31 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 88 02 00 35 04 06 00 B5 [10:48:34]Write to MH i2c: E2 02 01 CC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 93 31 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 88 02 00 35 04 06 00 B5 00 00 3E [10:48:34]Write i2c OK [10:48:34]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 CC 3E 00 90 00 7E [10:48:35]RAPDU: 90 00 [10:48:35]wFMCommunicate OK [10:48:35]wFMCommunicate request_size=10 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 0D 02 02 05 F7 E9 59 25 B0 [10:48:35]Write to MH i2c: E2 0D 00 CD 3E 80 0D 02 02 05 00 F7 E9 59 25 B0 00 00 9D [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 03 00 CD 3E 00 90 00 7F [10:48:35]RAPDU: 90 00 [10:48:35]wFMCommunicate OK [10:48:35]wFMCommunicate request_size=4 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 0D 03 02 [10:48:35]Write to MH i2c: E2 08 00 CE 3E 80 0D 03 02 00 00 00 00 87 [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 0B 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 0B 00 CE 3E 00 94 E6 F5 88 95 11 DA F5 90 00 F4 [10:48:35]RAPDU: 94 E6 F5 88 95 11 DA F5 90 00 [10:48:35]wFMCommunicate OK [10:48:35]SAM_PROTO_SignData done [10:48:35]FM_MakeSignedData done [10:48:35]CreateOFDProtocolMessage [10:48:35]wFMCommunicate request_size=4 [10:48:35]MH_SAM_APDU [10:48:35]CAPDU: 80 11 00 00 [10:48:35]Write to MH i2c: E2 08 00 CF 3E 80 11 00 00 00 00 00 00 87 [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:35]Read from MH i2c: E2 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 17 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: E2 17 00 CF 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [10:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:48:35]wFMCommunicate OK [10:48:35]CreateOFDProtocolMessage done [10:48:35]OFDSenderStorePacket 165962 [10:48:35]StoreOFDPacket docnum=165962 [10:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 5D 07 01 AA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 93 31 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 88 02 00 35 04 06 00 B5 F7 E9 59 25 B0 94 E6 F5 88 95 11 DA F5 [10:48:35]CheckFolder [10:48:35]dirname=/storage/ofd_packets [10:48:35]CheckFolder done [10:48:35]ProducePacketName [10:48:35]name=ofd_packets/00165962 [10:48:35]NVStorageSaveData ofd_packets/00165962 [10:48:35]File name is /storage/ofd_packets/00165962 [10:48:35]Write 301 bytes [10:48:35]NVStorageSaveData done [10:48:35]OFDSenderStorePacket done [10:48:35]KKMCreateOFDPacket done [10:48:35]NVStorageSaveData kkm_last_timestamp [10:48:35]File name is /storage/kkm_last_timestamp [10:48:35]Write 4 bytes [10:48:35]NVStorageSaveData done [10:48:35]ExternCall_PrintAddStr [10:48:35]wPrintStart [10:48:35]Write to MH i2c: 01 00 00 D0 3E 0E [10:48:35]Write i2c OK [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: 01 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: 01 07 00 [10:48:35]MH_I2C_Read... [10:48:35]Read from MH i2c: 01 07 00 D0 3E 00 00 00 00 00 FF 0F 23 [10:48:35]RasterBufferAndPrint [10:48:35]line Счет N : (1)220532 [10:48:35]line ИНН: 02508201610067 [10:48:35]line Контрольно-Кассовый Чек [10:48:35]line ПРОДАЖА [10:48:35]line ТРК (МРК, ГНК) : 43 [10:48:35]line Товар: 2710124130 [10:48:35]line Аи-92-К-5 [10:48:35]line 14.950 * 66.90 [10:48:35]line = 1000.16 [10:48:35]line НДС 12% НСП 1% [10:48:35]line > о реализуемом товаре [10:48:35]line ОКРУГЛЕНИЕ: -0.16 [10:48:35]line ИТОГО: 1000.00 [10:48:35]line Внесено: 1000.00 [10:48:35]line СДАЧА: 0.00 [10:48:35]line НСП 1% : 8.85 [10:48:35]line НДС 12% : 106.21 [10:48:35]line Наличными: 1000.00 [10:48:35]line Безнал.: 0.00 [10:48:35]line Место: АЗС № 161 "Партнер Нефть" [10:48:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:48:35]line СНО: Общий режим [10:48:35]line Чек 73 21.10.2024 10:48 [10:48:35]line Смена: 535 ФФД: 1.0 [10:48:35]line ЗНМ: 0300000104 [10:48:35]line РНМ: 0000000000091764 [10:48:35]line Версия ККМ: 001 [10:48:35]line ФМ: 0000000000871759 [10:48:35]line ФД: 165962 [10:48:35]line ФПД: 200076376483248 [10:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T104851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165962&fm=200076376483248&tin=02508201610067®Number=0000000000091764&sum=100000 [10:48:35]OFD Sender: Processing packet 165962 [packets to send 48, broken 47] [10:48:35]ProducePacketName [10:48:35]name=ofd_packets/00165962 [10:48:35]OFD Sender: To server: pG, [10:48:35]CommunicateWithHost lk.salyk.kg:30040 [10:48:35]ConnectInit lk.salyk.kg [10:48:35]written 0, free lines is 4095 [10:48:35]Connected sock=7 [10:48:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 5D 07 01 AA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 93 31 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 88 02 00 35 04 06 00 B5 F7 E9 59 25 B0 94 E6 F5 88 95 11 DA F5 [10:48:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C3 A3 47 00 14 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 88 02 00 F4 03 04 00 02 D8 15 67 B6 04 01 00 00 6F 58 FD 37 B0 6D 08 1B [10:48:35]CommunicateWithHost err = 0 [10:48:35]CheckOFDResponse [10:48:35]1017 (14) - 77093643461234 [10:48:35]1041 (16) - 0000000000871759 [10:48:35]1040 (4) - 165962 [10:48:35]1012 (4) - 21.10.2024 04:26 [10:48:35]1206 (1) - 0 [10:48:35]OFD Sender: Remove packet 165962 [10:48:35]ProducePacketName [10:48:35]name=ofd_packets/00165962 [10:48:35]NVStorageDeleteData [10:48:36]Write to MH i2c: 01 00 00 FB 3E 39 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: 01 07 00 FB 3E 00 00 00 00 00 DF 0C 2B [10:48:36]RasterBufferAndPrint [10:48:36]line [10:48:36]line [10:48:36]line [10:48:36]line [10:48:36]line [10:48:36]written 0, free lines is 3304 [10:48:36]MH_Cut [10:48:36]Write to MH i2c: D1 01 00 02 3F 01 13 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: D1 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: D1 01 00 [10:48:36]MH_I2C_Read... [10:48:36]Read from MH i2c: D1 01 00 02 3F 00 12 [10:48:36]Write to MH i2c: 01 00 00 03 3F 42 [10:48:36]Write i2c OK [10:48:36]MH_I2C_Read... [10:48:36]OFD Sender: No OFD packet to send [10:48:36]*** Cut start [10:48:36]*** Partial cut [10:48:36]*** CUTSNS_PIN = 1 [10:48:36]*** CUTSNS_PIN = 0 [10:48:37]*** Brake cut motor [10:48:37]Read from MH i2c: 01 [10:48:37]MH_I2C_Read... [10:48:37]*** Stop cut motor [10:48:37]*** Cut end [10:48:37]Read from MH i2c: 01 07 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: 01 07 00 03 3F 00 00 00 00 00 FF 0F 57 [10:48:37]process_action close_receipt done [10:48:37]requested_data is exist [10:48:37]produce_requested_data [10:48:37]requested_item fm.sn is exist - process it [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 11 00 00 [10:48:37]Write to MH i2c: E2 08 00 04 3F 80 11 00 00 00 00 00 00 BD [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 17 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 17 00 04 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [10:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:48:37]wFMCommunicate OK [10:48:37]requested_item fd.num is exist - process it [10:48:37]SAM_PROTO_GetFieldsCounters [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 13 00 00 [10:48:37]Write to MH i2c: E2 08 00 05 3F 80 13 00 00 00 00 00 00 C0 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 62 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 62 00 05 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [10:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:37]wFMCommunicate OK [10:48:37]SAM_PROTO_GetFieldsCounters done [10:48:37]requested_item shift.num is exist - process it [10:48:37]requested_item shift.opened is exist - process it [10:48:37]req_shift_opened [10:48:37]FM_GetShiftState [10:48:37]SAM_PROTO_GetShiftState [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 13 01 00 [10:48:37]Write to MH i2c: E2 08 00 06 3F 80 13 01 00 00 00 00 00 C2 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:37]Read from MH i2c: E2 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 0E 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: E2 0E 00 06 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CB [10:48:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:48:37]wFMCommunicate OK [10:48:37]SAM_PROTO_GetShiftState done [10:48:37]FM_GetShiftState done [10:48:37]req_shift_opened done [10:48:37]requested_item shift.open_date is exist - process it [10:48:37]req_shift_open_date [10:48:37]req_shift_open_date done [10:48:37]produce_requested_data done [10:48:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165962,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:48:37]process_action_free close_receipt [10:48:37]json_value_free [10:48:37]json_value_free done [10:48:37]process_json_proto returns [10:48:37]Send response to host [10:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165962,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:48:37]free response buf [10:48:37]execute_script done [10:48:37]execute_script returns [10:48:37]free content buf [10:48:37]Sock 5.Close socket [10:48:37]Sock 5.Thread stoped [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [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:54]accept exits with 6 [10:51:54]New connection [10:51:54]New thread 3066776932 created [10:51:54]Thread 3066920292 joined [10:51:54]Waiting for new connection... [10:51:54] Sock 6.Parse request [10:51:54]Sock 6.Check first char [10:51:54]Sock 6.First char is OK [10:51:54]request: POST /json_proto HTTP/1.0 [10:51:54]Method: POST [10:51:54]URL: /json_proto [10:51:54]Method is POST - this is cgi request [10:51:54]url: /json_proto [10:51:54]query_string will be loaded in cgi processing [10:51:54]execute_cgi json_proto POST (null) [10:51:54]execute_cgi path=json_proto method=POST [10:51:54]POST find Content-Length [10:51:54]Host: 172.17.53.195:8080 [10:51:54]Content-Length: 677 [10:51:54]Content-Type: application/json [10:51:54] [10:51:54]POST finish read [10:51:54]Found Content-Length = 677 [10:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:54]execute_script... [10:51:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:54]POST & json_proto [10:51:54]process_json_proto [10:51:54]json parsed OK: [10:51:54]protocol is kg_v1.0 [10:51:54]action value=close_receipt [10:51:54]process_action close_receipt [10:51:54]cmd_close_receipt [10:51:54]MH_GetDate [10:51:54]Write to MH i2c: F0 00 00 07 3F 35 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: F0 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: F0 09 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: F0 09 00 07 3F 00 5B 32 16 67 21 48 4A 65 60 [10:51:54]GetLastDocTimeStamp 1729507731 [10:51:54]current date 1729507931 [10:51:54]FM_GetShiftState [10:51:54]SAM_PROTO_GetShiftState [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 13 01 00 [10:51:54]Write to MH i2c: E2 08 00 08 3F 80 13 01 00 00 00 00 00 C4 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 0E 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 0E 00 08 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [10:51:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:51:54]wFMCommunicate OK [10:51:54]SAM_PROTO_GetShiftState done [10:51:54]FM_GetShiftState done [10:51:54]opened in 1729470944 [10:51:54]opened+sec_in_day 1729557344 [10:51:54]quantity*price = 60009 [10:51:54]sum+1 = 60010 [10:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 74 21.10.2024 10:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165963 ФПД: 86095636855118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105212&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165963&fm=86095636855118&tin=02508201610067®Number=0000000000091764&sum=60000 [10:51:55]StoreToDocumentArchive [10:51:55]shift 535 fd 165963 [10:51:55]save to /storage/0535/doc_00165963 [10:51:55]save last doc name /storage/0535/doc_00165963 to /storage/kkm_last_doc_name [10:51:55]save OK [10:51:55]Clear old archive folders... [10:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:55]tlvbuf is 0179A410 [10:51:55]SAM_PROTO_ClearQueue [10:51:55]wFMCommunicate request_size=4 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 09 00 00 [10:51:55]Write to MH i2c: E2 08 00 15 3F 80 09 00 00 00 00 00 00 C6 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 15 3F 00 90 00 C8 [10:51:55]RAPDU: 90 00 [10:51:55]wFMCommunicate OK [10:51:55]SAM_PROTO_ClearQueue done [10:51:55]KKMCreateOFDPacket [10:51:55]OFDProtocolAddRootSTLVToBuf [10:51:55]FM_MakeSignedData [10:51:55]FM_MakeSignedData [10:51:55]SAM_PROTO_SignData [10:51:55]wFMCommunicate request_size=4 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 0D 01 02 [10:51:55]Write to MH i2c: E2 08 00 16 3F 80 0D 01 02 00 00 00 00 CE [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 16 3F 00 90 00 C9 [10:51:55]RAPDU: 90 00 [10:51:55]wFMCommunicate OK [10:51:55]wFMCommunicate request_size=255 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 5C 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 88 02 00 35 04 06 00 4E [10:51:55]Write to MH i2c: E2 02 01 17 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 5C 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 88 02 00 35 04 06 00 4E 00 00 D2 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 17 3F 00 90 00 CA [10:51:55]RAPDU: 90 00 [10:51:55]wFMCommunicate OK [10:51:55]wFMCommunicate request_size=10 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 0D 02 02 05 4D B3 D9 F9 4E [10:51:55]Write to MH i2c: E2 0D 00 18 3F 80 0D 02 02 05 00 4D B3 D9 F9 4E 00 00 FB [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 03 00 18 3F 00 90 00 CB [10:51:55]RAPDU: 90 00 [10:51:55]wFMCommunicate OK [10:51:55]wFMCommunicate request_size=4 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 0D 03 02 [10:51:55]Write to MH i2c: E2 08 00 19 3F 80 0D 03 02 00 00 00 00 D3 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 0B 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 0B 00 19 3F 00 33 E1 77 8C 07 69 52 52 90 00 FF [10:51:55]RAPDU: 33 E1 77 8C 07 69 52 52 90 00 [10:51:55]wFMCommunicate OK [10:51:55]SAM_PROTO_SignData done [10:51:55]FM_MakeSignedData done [10:51:55]CreateOFDProtocolMessage [10:51:55]wFMCommunicate request_size=4 [10:51:55]MH_SAM_APDU [10:51:55]CAPDU: 80 11 00 00 [10:51:55]Write to MH i2c: E2 08 00 1A 3F 80 11 00 00 00 00 00 00 D3 [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:55]Read from MH i2c: E2 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 17 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: E2 17 00 1A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [10:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:51:55]wFMCommunicate OK [10:51:55]CreateOFDProtocolMessage done [10:51:55]OFDSenderStorePacket 165963 [10:51:55]StoreOFDPacket docnum=165963 [10:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1D BB 07 01 A5 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 5C 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 88 02 00 35 04 06 00 4E 4D B3 D9 F9 4E 33 E1 77 8C 07 69 52 52 [10:51:55]CheckFolder [10:51:55]dirname=/storage/ofd_packets [10:51:55]CheckFolder done [10:51:55]ProducePacketName [10:51:55]name=ofd_packets/00165963 [10:51:55]NVStorageSaveData ofd_packets/00165963 [10:51:55]File name is /storage/ofd_packets/00165963 [10:51:55]Write 301 bytes [10:51:55]NVStorageSaveData done [10:51:55]OFDSenderStorePacket done [10:51:55]KKMCreateOFDPacket done [10:51:55]NVStorageSaveData kkm_last_timestamp [10:51:55]File name is /storage/kkm_last_timestamp [10:51:55]Write 4 bytes [10:51:55]NVStorageSaveData done [10:51:55]ExternCall_PrintAddStr [10:51:55]wPrintStart [10:51:55]Write to MH i2c: 01 00 00 1B 3F 5A [10:51:55]Write i2c OK [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 07 00 [10:51:55]MH_I2C_Read... [10:51:55]Read from MH i2c: 01 07 00 1B 3F 00 00 00 00 00 FF 0F 6F [10:51:55]RasterBufferAndPrint [10:51:55]line Счет N : (1)220533 [10:51:55]line ИНН: 02508201610067 [10:51:55]line Контрольно-Кассовый Чек [10:51:55]line ПРОДАЖА [10:51:55]line ТРК (МРК, ГНК) : 23 [10:51:55]line Товар: 2710124130 [10:51:55]line Аи-92-К-5 [10:51:55]line 8.970 * 66.90 [10:51:55]line = 600.09 [10:51:55]line НДС 12% НСП 1% [10:51:55]line > о реализуемом товаре [10:51:55]line ОКРУГЛЕНИЕ: -0.09 [10:51:55]line ИТОГО: 600.00 [10:51:55]line Внесено: 600.00 [10:51:55]line СДАЧА: 0.00 [10:51:55]line НСП 1% : 5.31 [10:51:55]line НДС 12% : 63.73 [10:51:55]line Наличными: 600.00 [10:51:55]line Безнал.: 0.00 [10:51:55]line Место: АЗС № 161 "Партнер Нефть" [10:51:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:51:55]line СНО: Общий режим [10:51:55]line Чек 74 21.10.2024 10:52 [10:51:55]line Смена: 535 ФФД: 1.0 [10:51:55]line ЗНМ: 0300000104 [10:51:55]line РНМ: 0000000000091764 [10:51:55]line Версия ККМ: 001 [10:51:55]line ФМ: 0000000000871759 [10:51:55]line ФД: 165963 [10:51:55]line ФПД: 86095636855118 [10:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105212&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165963&fm=86095636855118&tin=02508201610067®Number=0000000000091764&sum=60000 [10:51:56]OFD Sender: Processing packet 165963 [packets to send 48, broken 47] [10:51:56]ProducePacketName [10:51:56]name=ofd_packets/00165963 [10:51:56]OFD Sender: To server: pG, [10:51:56]CommunicateWithHost lk.salyk.kg:30040 [10:51:56]ConnectInit lk.salyk.kg [10:51:56]written 0, free lines is 4095 [10:51:56]Connected sock=7 [10:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1D BB 07 01 A5 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 5C 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 88 02 00 35 04 06 00 4E 4D B3 D9 F9 4E 33 E1 77 8C 07 69 52 52 [10:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BE EB 47 00 68 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 88 02 00 F4 03 04 00 CA D8 15 67 B6 04 01 00 00 65 D5 AB 0F F6 97 F5 3F [10:51:56]CommunicateWithHost err = 0 [10:51:56]CheckOFDResponse [10:51:56]1017 (14) - 77093643461234 [10:51:56]1041 (16) - 0000000000871759 [10:51:56]1040 (4) - 165963 [10:51:56]1012 (4) - 21.10.2024 04:30 [10:51:56]1206 (1) - 0 [10:51:56]OFD Sender: Remove packet 165963 [10:51:56]ProducePacketName [10:51:56]name=ofd_packets/00165963 [10:51:56]NVStorageDeleteData [10:51:56]Write to MH i2c: 01 00 00 46 3F 85 [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: 01 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: 01 07 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: 01 07 00 46 3F 00 00 00 00 00 E4 0C 7C [10:51:56]RasterBufferAndPrint [10:51:56]line [10:51:56]line [10:51:56]line [10:51:56]line [10:51:56]line [10:51:56]written 0, free lines is 3309 [10:51:56]MH_Cut [10:51:56]Write to MH i2c: D1 01 00 4D 3F 01 5E [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: D1 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: D1 01 00 [10:51:56]MH_I2C_Read... [10:51:56]Read from MH i2c: D1 01 00 4D 3F 00 5D [10:51:56]Write to MH i2c: 01 00 00 4E 3F 8D [10:51:56]Write i2c OK [10:51:56]MH_I2C_Read... [10:51:57]OFD Sender: No OFD packet to send [10:51:57]*** Cut start [10:51:57]*** Partial cut [10:51:57]*** CUTSNS_PIN = 1 [10:51:57]*** CUTSNS_PIN = 0 [10:51:57]*** Brake cut motor [10:51:58]Read from MH i2c: 01 [10:51:58]MH_I2C_Read... [10:51:58]*** Stop cut motor [10:51:58]*** Cut end [10:51:58]Read from MH i2c: 01 07 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: 01 07 00 4E 3F 00 00 00 00 00 FF 0F A2 [10:51:58]process_action close_receipt done [10:51:58]requested_data is exist [10:51:58]produce_requested_data [10:51:58]requested_item fm.sn is exist - process it [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 11 00 00 [10:51:58]Write to MH i2c: E2 08 00 4F 3F 80 11 00 00 00 00 00 00 08 [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 17 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 17 00 4F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 60 [10:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:51:58]wFMCommunicate OK [10:51:58]requested_item fd.num is exist - process it [10:51:58]SAM_PROTO_GetFieldsCounters [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 13 00 00 [10:51:58]Write to MH i2c: E2 08 00 50 3F 80 13 00 00 00 00 00 00 0B [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 62 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 62 00 50 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [10:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:58]wFMCommunicate OK [10:51:58]SAM_PROTO_GetFieldsCounters done [10:51:58]requested_item shift.num is exist - process it [10:51:58]requested_item shift.opened is exist - process it [10:51:58]req_shift_opened [10:51:58]FM_GetShiftState [10:51:58]SAM_PROTO_GetShiftState [10:51:58]wFMCommunicate request_size=4 [10:51:58]MH_SAM_APDU [10:51:58]CAPDU: 80 13 01 00 [10:51:58]Write to MH i2c: E2 08 00 51 3F 80 13 01 00 00 00 00 00 0D [10:51:58]Write i2c OK [10:51:58]MH_I2C_Read... [10:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:58]Read from MH i2c: E2 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 0E 00 [10:51:58]MH_I2C_Read... [10:51:58]Read from MH i2c: E2 0E 00 51 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 16 [10:51:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:51:58]wFMCommunicate OK [10:51:58]SAM_PROTO_GetShiftState done [10:51:58]FM_GetShiftState done [10:51:58]req_shift_opened done [10:51:58]requested_item shift.open_date is exist - process it [10:51:58]req_shift_open_date [10:51:58]req_shift_open_date done [10:51:58]produce_requested_data done [10:51:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165963,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:51:58]process_action_free close_receipt [10:51:58]json_value_free [10:51:58]json_value_free done [10:51:58]process_json_proto returns [10:51:58]Send response to host [10:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165963,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:51:58]free response buf [10:51:58]execute_script done [10:51:58]execute_script returns [10:51:58]free content buf [10:51:58]Sock 6.Close socket [10:51:58]Sock 6.Thread stoped [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:31]accept exits with 5 [10:54:31]New connection [10:54:31]New thread 3066920292 created [10:54:31]Thread 3066776932 joined [10:54:31]Waiting for new connection... [10:54:31] Sock 5.Parse request [10:54:31]Sock 5.Check first char [10:54:31]Sock 5.First char is OK [10:54:31]request: POST /json_proto HTTP/1.0 [10:54:31]Method: POST [10:54:31]URL: /json_proto [10:54:31]Method is POST - this is cgi request [10:54:31]url: /json_proto [10:54:31]query_string will be loaded in cgi processing [10:54:31]execute_cgi json_proto POST (null) [10:54:31]execute_cgi path=json_proto method=POST [10:54:31]POST find Content-Length [10:54:31]Host: 172.17.53.195:8080 [10:54:31]Content-Length: 682 [10:54:31]Content-Type: application/json [10:54:31] [10:54:31]POST finish read [10:54:31]Found Content-Length = 682 [10:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:31]execute_script... [10:54: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)220534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:31]POST & json_proto [10:54:31]process_json_proto [10:54:31]json parsed OK: [10:54:31]protocol is kg_v1.0 [10:54:31]action value=close_receipt [10:54:31]process_action close_receipt [10:54:31]cmd_close_receipt [10:54:31]MH_GetDate [10:54:31]Write to MH i2c: F0 00 00 52 3F 80 [10:54:31]Write i2c OK [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: F0 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: F0 09 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: F0 09 00 52 3F 00 F9 32 16 67 21 48 4A 65 49 [10:54:31]GetLastDocTimeStamp 1729507932 [10:54:31]current date 1729508089 [10:54:31]FM_GetShiftState [10:54:31]SAM_PROTO_GetShiftState [10:54:31]wFMCommunicate request_size=4 [10:54:31]MH_SAM_APDU [10:54:31]CAPDU: 80 13 01 00 [10:54:31]Write to MH i2c: E2 08 00 53 3F 80 13 01 00 00 00 00 00 0F [10:54:31]Write i2c OK [10:54:31]MH_I2C_Read... [10:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:31]Read from MH i2c: E2 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 0E 00 [10:54:31]MH_I2C_Read... [10:54:31]Read from MH i2c: E2 0E 00 53 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 18 [10:54:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:54:31]wFMCommunicate OK [10:54:31]SAM_PROTO_GetShiftState done [10:54:31]FM_GetShiftState done [10:54:31]opened in 1729470944 [10:54:31]opened+sec_in_day 1729557344 [10:54:31]quantity*price = 100015 [10:54:31]sum+1 = 100017 [10:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 75 21.10.2024 10:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165964 ФПД: 233297677023756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105449&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165964&fm=233297677023756&tin=02508201610067®Number=0000000000091764&sum=100000 [10:54:32]StoreToDocumentArchive [10:54:32]shift 535 fd 165964 [10:54:32]save to /storage/0535/doc_00165964 [10:54:32]save last doc name /storage/0535/doc_00165964 to /storage/kkm_last_doc_name [10:54:32]save OK [10:54:32]Clear old archive folders... [10:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:32]tlvbuf is 0146ECC0 [10:54:32]SAM_PROTO_ClearQueue [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 09 00 00 [10:54:32]Write to MH i2c: E2 08 00 60 3F 80 09 00 00 00 00 00 00 11 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 60 3F 00 90 00 13 [10:54:32]RAPDU: 90 00 [10:54:32]wFMCommunicate OK [10:54:32]SAM_PROTO_ClearQueue done [10:54:32]KKMCreateOFDPacket [10:54:32]OFDProtocolAddRootSTLVToBuf [10:54:32]FM_MakeSignedData [10:54:32]FM_MakeSignedData [10:54:32]SAM_PROTO_SignData [10:54:32]wFMCommunicate request_size=4 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 0D 01 02 [10:54:32]Write to MH i2c: E2 08 00 61 3F 80 0D 01 02 00 00 00 00 19 [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:32]Read from MH i2c: E2 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 [10:54:32]MH_I2C_Read... [10:54:32]Read from MH i2c: E2 03 00 61 3F 00 90 00 14 [10:54:32]RAPDU: 90 00 [10:54:32]wFMCommunicate OK [10:54:32]wFMCommunicate request_size=255 [10:54:32]MH_SAM_APDU [10:54:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 88 02 00 35 04 06 00 D4 [10:54:32]Write to MH i2c: E2 02 01 62 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 88 02 00 35 04 06 00 D4 00 00 5F [10:54:32]Write i2c OK [10:54:32]MH_I2C_Read... [10:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:33]Read from MH i2c: E2 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 03 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 03 00 62 3F 00 90 00 15 [10:54:33]RAPDU: 90 00 [10:54:33]wFMCommunicate OK [10:54:33]wFMCommunicate request_size=10 [10:54:33]MH_SAM_APDU [10:54:33]CAPDU: 80 0D 02 02 05 2E D9 2A 7A 0C [10:54:33]Write to MH i2c: E2 0D 00 63 3F 80 0D 02 02 05 00 2E D9 2A 7A 0C 00 00 DD [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:33]Read from MH i2c: E2 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 03 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 03 00 63 3F 00 90 00 16 [10:54:33]RAPDU: 90 00 [10:54:33]wFMCommunicate OK [10:54:33]wFMCommunicate request_size=4 [10:54:33]MH_SAM_APDU [10:54:33]CAPDU: 80 0D 03 02 [10:54:33]Write to MH i2c: E2 08 00 64 3F 80 0D 03 02 00 00 00 00 1E [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:33]Read from MH i2c: E2 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 0B 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 0B 00 64 3F 00 04 0C 7F 7E FB 36 84 05 90 00 E6 [10:54:33]RAPDU: 04 0C 7F 7E FB 36 84 05 90 00 [10:54:33]wFMCommunicate OK [10:54:33]SAM_PROTO_SignData done [10:54:33]FM_MakeSignedData done [10:54:33]CreateOFDProtocolMessage [10:54:33]wFMCommunicate request_size=4 [10:54:33]MH_SAM_APDU [10:54:33]CAPDU: 80 11 00 00 [10:54:33]Write to MH i2c: E2 08 00 65 3F 80 11 00 00 00 00 00 00 1E [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:33]Read from MH i2c: E2 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 17 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 17 00 65 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [10:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:33]wFMCommunicate OK [10:54:33]CreateOFDProtocolMessage done [10:54:33]OFDSenderStorePacket 165964 [10:54:33]StoreOFDPacket docnum=165964 [10:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD 54 07 01 11 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 88 02 00 35 04 06 00 D4 2E D9 2A 7A 0C 04 0C 7F 7E FB 36 84 05 [10:54:33]CheckFolder [10:54:33]dirname=/storage/ofd_packets [10:54:33]CheckFolder done [10:54:33]ProducePacketName [10:54:33]name=ofd_packets/00165964 [10:54:33]NVStorageSaveData ofd_packets/00165964 [10:54:33]File name is /storage/ofd_packets/00165964 [10:54:33]Write 301 bytes [10:54:33]NVStorageSaveData done [10:54:33]OFDSenderStorePacket done [10:54:33]KKMCreateOFDPacket done [10:54:33]NVStorageSaveData kkm_last_timestamp [10:54:33]File name is /storage/kkm_last_timestamp [10:54:33]Write 4 bytes [10:54:33]NVStorageSaveData done [10:54:33]ExternCall_PrintAddStr [10:54:33]wPrintStart [10:54:33]Write to MH i2c: 01 00 00 66 3F A5 [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 07 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 07 00 66 3F 00 00 00 00 00 FF 0F BA [10:54:33]RasterBufferAndPrint [10:54:33]line Счет N : (1)220534 [10:54:33]line ИНН: 02508201610067 [10:54:33]line Контрольно-Кассовый Чек [10:54:33]line ПРОДАЖА [10:54:33]line ТРК (МРК, ГНК) : 23 [10:54:33]line Товар: 2710124130 [10:54:33]line Аи-92-К-5 [10:54:33]line 14.950 * 66.90 [10:54:33]line = 1000.16 [10:54:33]line НДС 12% НСП 1% [10:54:33]line > о реализуемом товаре [10:54:33]line ОКРУГЛЕНИЕ: -0.16 [10:54:33]line ИТОГО: 1000.00 [10:54:33]line Внесено: 1000.00 [10:54:33]line СДАЧА: 0.00 [10:54:33]line НСП 1% : 8.85 [10:54:33]line НДС 12% : 106.21 [10:54:33]line Наличными: 1000.00 [10:54:33]line Безнал.: 0.00 [10:54:33]line Место: АЗС № 161 "Партнер Нефть" [10:54:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:54:33]line СНО: Общий режим [10:54:33]line Чек 75 21.10.2024 10:54 [10:54:33]line Смена: 535 ФФД: 1.0 [10:54:33]line ЗНМ: 0300000104 [10:54:33]line РНМ: 0000000000091764 [10:54:33]line Версия ККМ: 001 [10:54:33]line ФМ: 0000000000871759 [10:54:33]line ФД: 165964 [10:54:33]line ФПД: 233297677023756 [10:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105449&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165964&fm=233297677023756&tin=02508201610067®Number=0000000000091764&sum=100000 [10:54:33]OFD Sender: Processing packet 165964 [packets to send 48, broken 47] [10:54:33]ProducePacketName [10:54:33]name=ofd_packets/00165964 [10:54:33]OFD Sender: To server: pG, [10:54:33]CommunicateWithHost lk.salyk.kg:30040 [10:54:33]ConnectInit lk.salyk.kg [10:54:33]written 0, free lines is 4095 [10:54:33]Connected sock=7 [10:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD 54 07 01 11 FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F9 32 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 88 02 00 35 04 06 00 D4 2E D9 2A 7A 0C 04 0C 7F 7E FB 36 84 05 [10:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 39 47 00 14 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 88 02 00 F4 03 04 00 67 D9 15 67 B6 04 01 00 00 B2 49 88 0A BB B0 DC 22 [10:54:33]CommunicateWithHost err = 0 [10:54:33]CheckOFDResponse [10:54:33]1017 (14) - 77093643461234 [10:54:33]1041 (16) - 0000000000871759 [10:54:33]1040 (4) - 165964 [10:54:33]1012 (4) - 21.10.2024 04:32 [10:54:33]1206 (1) - 0 [10:54:33]OFD Sender: Remove packet 165964 [10:54:33]ProducePacketName [10:54:33]name=ofd_packets/00165964 [10:54:33]NVStorageDeleteData [10:54:33]Write to MH i2c: 01 00 00 91 3F D0 [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 07 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: 01 07 00 91 3F 00 00 00 00 00 D7 0C BA [10:54:33]RasterBufferAndPrint [10:54:33]line [10:54:33]line [10:54:33]line [10:54:33]line [10:54:33]line [10:54:33]written 0, free lines is 3295 [10:54:33]MH_Cut [10:54:33]Write to MH i2c: D1 01 00 98 3F 01 A9 [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: D1 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: D1 01 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: D1 01 00 98 3F 00 A8 [10:54:33]Write to MH i2c: 01 00 00 99 3F D8 [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:34]OFD Sender: No OFD packet to send [10:54:34]*** Cut start [10:54:34]*** Partial cut [10:54:34]*** CUTSNS_PIN = 1 [10:54:34]*** CUTSNS_PIN = 0 [10:54:35]*** Brake cut motor [10:54:35]Read from MH i2c: 01 [10:54:35]MH_I2C_Read... [10:54:35]*** Stop cut motor [10:54:35]*** Cut end [10:54:35]Read from MH i2c: 01 07 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: 01 07 00 99 3F 00 00 00 00 00 FF 0F ED [10:54:35]process_action close_receipt done [10:54:35]requested_data is exist [10:54:35]produce_requested_data [10:54:35]requested_item fm.sn is exist - process it [10:54:35]wFMCommunicate request_size=4 [10:54:35]MH_SAM_APDU [10:54:35]CAPDU: 80 11 00 00 [10:54:35]Write to MH i2c: E2 08 00 9A 3F 80 11 00 00 00 00 00 00 53 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:35]Read from MH i2c: E2 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 17 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 17 00 9A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AB [10:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:54:35]wFMCommunicate OK [10:54:35]requested_item fd.num is exist - process it [10:54:35]SAM_PROTO_GetFieldsCounters [10:54:35]wFMCommunicate request_size=4 [10:54:35]MH_SAM_APDU [10:54:35]CAPDU: 80 13 00 00 [10:54:35]Write to MH i2c: E2 08 00 9B 3F 80 13 00 00 00 00 00 00 56 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:35]Read from MH i2c: E2 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 62 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 62 00 9B 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [10:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:35]wFMCommunicate OK [10:54:35]SAM_PROTO_GetFieldsCounters done [10:54:35]requested_item shift.num is exist - process it [10:54:35]requested_item shift.opened is exist - process it [10:54:35]req_shift_opened [10:54:35]FM_GetShiftState [10:54:35]SAM_PROTO_GetShiftState [10:54:35]wFMCommunicate request_size=4 [10:54:35]MH_SAM_APDU [10:54:35]CAPDU: 80 13 01 00 [10:54:35]Write to MH i2c: E2 08 00 9C 3F 80 13 01 00 00 00 00 00 58 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:35]Read from MH i2c: E2 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 0E 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: E2 0E 00 9C 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 61 [10:54:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:54:35]wFMCommunicate OK [10:54:35]SAM_PROTO_GetShiftState done [10:54:35]FM_GetShiftState done [10:54:35]req_shift_opened done [10:54:35]requested_item shift.open_date is exist - process it [10:54:35]req_shift_open_date [10:54:35]req_shift_open_date done [10:54:35]produce_requested_data done [10:54:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165964,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:54:35]process_action_free close_receipt [10:54:35]json_value_free [10:54:35]json_value_free done [10:54:35]process_json_proto returns [10:54:35]Send response to host [10:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165964,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:54:35]free response buf [10:54:35]execute_script done [10:54:35]execute_script returns [10:54:35]free content buf [10:54:35]Sock 5.Close socket [10:54:35]Sock 5.Thread stoped [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:28]accept exits with 6 [10:57:28]New connection [10:57:28]New thread 3066776932 created [10:57:28]Thread 3066920292 joined [10:57:28]Waiting for new connection... [10:57:28] Sock 6.Parse request [10:57:28]Sock 6.Check first char [10:57:28]Sock 6.First char is OK [10:57:28]request: POST /json_proto HTTP/1.0 [10:57:28]Method: POST [10:57:28]URL: /json_proto [10:57:28]Method is POST - this is cgi request [10:57:28]url: /json_proto [10:57:28]query_string will be loaded in cgi processing [10:57:28]execute_cgi json_proto POST (null) [10:57:28]execute_cgi path=json_proto method=POST [10:57:28]POST find Content-Length [10:57:28]Host: 172.17.53.195:8080 [10:57:28]Content-Length: 763 [10:57:28]Content-Type: application/json [10:57:28] [10:57:28]POST finish read [10:57:28]Found Content-Length = 763 [10:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:28]execute_script... [10:57:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:28]POST & json_proto [10:57:28]process_json_proto [10:57:28]json parsed OK: [10:57:28]protocol is kg_v1.0 [10:57:28]action value=close_receipt [10:57:28]process_action close_receipt [10:57:28]cmd_close_receipt [10:57:28]MH_GetDate [10:57:28]Write to MH i2c: F0 00 00 9D 3F CB [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: F0 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: F0 09 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: F0 09 00 9D 3F 00 AA 33 16 67 21 48 4A 65 46 [10:57:28]GetLastDocTimeStamp 1729508089 [10:57:28]current date 1729508266 [10:57:28]FM_GetShiftState [10:57:28]SAM_PROTO_GetShiftState [10:57:28]wFMCommunicate request_size=4 [10:57:28]MH_SAM_APDU [10:57:28]CAPDU: 80 13 01 00 [10:57:28]Write to MH i2c: E2 08 00 9E 3F 80 13 01 00 00 00 00 00 5A [10:57:28]Write i2c OK [10:57:28]MH_I2C_Read... [10:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:28]Read from MH i2c: E2 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 [10:57:28]MH_I2C_Read... [10:57:28]Read from MH i2c: E2 0E 00 9E 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 63 [10:57:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:57:28]wFMCommunicate OK [10:57:28]SAM_PROTO_GetShiftState done [10:57:28]FM_GetShiftState done [10:57:28]opened in 1729470944 [10:57:28]opened+sec_in_day 1729557344 [10:57:28]quantity*price = 50063 [10:57:28]sum+1 = 50064 [10:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 76 21.10.2024 10:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165965 ФПД: 216304382557657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105746&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165965&fm=216304382557657&tin=02508201610067®Number=0000000000091764&sum=50063 [10:57:29]StoreToDocumentArchive [10:57:29]shift 535 fd 165965 [10:57:29]save to /storage/0535/doc_00165965 [10:57:29]save last doc name /storage/0535/doc_00165965 to /storage/kkm_last_doc_name [10:57:29]save OK [10:57:29]Clear old archive folders... [10:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:57:29]tlvbuf is 01482900 [10:57:29]SAM_PROTO_ClearQueue [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 09 00 00 [10:57:29]Write to MH i2c: E2 08 00 AB 3F 80 09 00 00 00 00 00 00 5C [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:29]OFD Sender: No OFD packet to send [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 AB 3F 00 90 00 5E [10:57:29]RAPDU: 90 00 [10:57:29]wFMCommunicate OK [10:57:29]SAM_PROTO_ClearQueue done [10:57:29]KKMCreateOFDPacket [10:57:29]OFDProtocolAddRootSTLVToBuf [10:57:29]FM_MakeSignedData [10:57:29]FM_MakeSignedData [10:57:29]SAM_PROTO_SignData [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 0D 01 02 [10:57:29]Write to MH i2c: E2 08 00 AC 3F 80 0D 01 02 00 00 00 00 64 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 AC 3F 00 90 00 5F [10:57:29]RAPDU: 90 00 [10:57:29]wFMCommunicate OK [10:57:29]wFMCommunicate request_size=255 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 88 02 00 35 04 06 00 C4 BA 49 E2 [10:57:29]Write to MH i2c: E2 02 01 AD 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 88 02 00 35 04 06 00 C4 BA 49 E2 00 00 35 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 AD 3F 00 90 00 60 [10:57:29]RAPDU: 90 00 [10:57:29]wFMCommunicate OK [10:57:29]wFMCommunicate request_size=7 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 0D 02 02 02 BD D9 [10:57:29]Write to MH i2c: E2 0A 00 AE 3F 80 0D 02 02 02 00 BD D9 00 00 01 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 03 00 AE 3F 00 90 00 61 [10:57:29]RAPDU: 90 00 [10:57:29]wFMCommunicate OK [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 0D 03 02 [10:57:29]Write to MH i2c: E2 08 00 AF 3F 80 0D 03 02 00 00 00 00 69 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 0B 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 0B 00 AF 3F 00 F3 15 44 9C 63 58 70 BE 90 00 3B [10:57:29]RAPDU: F3 15 44 9C 63 58 70 BE 90 00 [10:57:29]wFMCommunicate OK [10:57:29]SAM_PROTO_SignData done [10:57:29]FM_MakeSignedData done [10:57:29]CreateOFDProtocolMessage [10:57:29]wFMCommunicate request_size=4 [10:57:29]MH_SAM_APDU [10:57:29]CAPDU: 80 11 00 00 [10:57:29]Write to MH i2c: E2 08 00 B0 3F 80 11 00 00 00 00 00 00 69 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:29]Read from MH i2c: E2 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 17 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: E2 17 00 B0 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [10:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:57:29]wFMCommunicate OK [10:57:29]CreateOFDProtocolMessage done [10:57:29]OFDSenderStorePacket 165965 [10:57:29]StoreOFDPacket docnum=165965 [10:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 10 34 04 01 4B 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 88 02 00 35 04 06 00 C4 BA 49 E2 BD D9 F3 15 44 9C 63 58 70 BE [10:57:29]CheckFolder [10:57:29]dirname=/storage/ofd_packets [10:57:29]CheckFolder done [10:57:29]ProducePacketName [10:57:29]name=ofd_packets/00165965 [10:57:29]NVStorageSaveData ofd_packets/00165965 [10:57:29]File name is /storage/ofd_packets/00165965 [10:57:29]Write 298 bytes [10:57:29]NVStorageSaveData done [10:57:29]OFDSenderStorePacket done [10:57:29]KKMCreateOFDPacket done [10:57:29]NVStorageSaveData kkm_last_timestamp [10:57:29]File name is /storage/kkm_last_timestamp [10:57:29]Write 4 bytes [10:57:29]NVStorageSaveData done [10:57:29]ExternCall_PrintAddStr [10:57:29]wPrintStart [10:57:29]Write to MH i2c: 01 00 00 B1 3F F0 [10:57:29]Write i2c OK [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: 01 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: 01 07 00 [10:57:29]MH_I2C_Read... [10:57:29]Read from MH i2c: 01 07 00 B1 3F 00 00 00 00 00 FF 0F 05 [10:57:29]RasterBufferAndPrint [10:57:29]line Счет N : (1)220535 [10:57:29]line ИНН: 02508201610067 [10:57:29]line Контрольно-Кассовый Чек [10:57:29]line ПРОДАЖА [10:57:29]line ТРК (МРК, ГНК) : 11 [10:57:29]line Товар: 2710194210 [10:57:29]line ДТ-К-5 [10:57:29]line 6.570 * 76.20 [10:57:29]line = 500.63 [10:57:29]line НДС 12% НСП 1% [10:57:29]line > о реализуемом товаре [10:57:29]line ИТОГО: 500.63 [10:57:29]line НСП 1% : 4.43 [10:57:29]line НДС 12% : 53.16 [10:57:29]line Наличными: 0.00 [10:57:29]line Безнал.: 500.63 [10:57:29]line Место: АЗС № 161 "Партнер Нефть" [10:57:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:57:29]line СНО: Общий режим [10:57:29]line Чек 76 21.10.2024 10:57 [10:57:29]line Смена: 535 ФФД: 1.0 [10:57:29]line ЗНМ: 0300000104 [10:57:29]line РНМ: 0000000000091764 [10:57:29]line Версия ККМ: 001 [10:57:29]line Платежная система: Mbank [10:57:29]line ФМ: 0000000000871759 [10:57:29]line ФД: 165965 [10:57:29]line ФПД: 216304382557657 [10:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105746&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165965&fm=216304382557657&tin=02508201610067®Number=0000000000091764&sum=50063 [10:57:30]OFD Sender: Processing packet 165965 [packets to send 48, broken 47] [10:57:30]ProducePacketName [10:57:30]name=ofd_packets/00165965 [10:57:30]OFD Sender: To server: pG, [10:57:30]CommunicateWithHost lk.salyk.kg:30040 [10:57:30]ConnectInit lk.salyk.kg [10:57:30]written 0, free lines is 4095 [10:57:30]Connected sock=7 [10:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 10 34 04 01 4B 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 AA 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 88 02 00 35 04 06 00 C4 BA 49 E2 BD D9 F3 15 44 9C 63 58 70 BE [10:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6D 04 47 00 74 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 88 02 00 F4 03 04 00 18 DA 15 67 B6 04 01 00 00 6F 6C 0B 72 95 31 F7 F6 [10:57:30]CommunicateWithHost err = 0 [10:57:30]CheckOFDResponse [10:57:30]1017 (14) - 77093643461234 [10:57:30]1041 (16) - 0000000000871759 [10:57:30]1040 (4) - 165965 [10:57:30]1012 (4) - 21.10.2024 04:35 [10:57:30]1206 (1) - 0 [10:57:30]OFD Sender: Remove packet 165965 [10:57:30]ProducePacketName [10:57:30]name=ofd_packets/00165965 [10:57:30]NVStorageDeleteData [10:57:30]Write to MH i2c: 01 00 00 DA 3F 19 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: 01 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: 01 07 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: 01 07 00 DA 3F 00 00 00 00 00 0B 0D 38 [10:57:30]RasterBufferAndPrint [10:57:30]line [10:57:30]line [10:57:30]line [10:57:30]line [10:57:30]line [10:57:30]written 0, free lines is 3346 [10:57:30]MH_Cut [10:57:30]Write to MH i2c: D1 01 00 E1 3F 01 F2 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: D1 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: D1 01 00 [10:57:30]MH_I2C_Read... [10:57:30]Read from MH i2c: D1 01 00 E1 3F 00 F1 [10:57:30]Write to MH i2c: 01 00 00 E2 3F 21 [10:57:30]Write i2c OK [10:57:30]MH_I2C_Read... [10:57:31]OFD Sender: No OFD packet to send [10:57:31]*** Cut start [10:57:31]*** Partial cut [10:57:31]*** CUTSNS_PIN = 1 [10:57:31]*** CUTSNS_PIN = 0 [10:57:31]*** Brake cut motor [10:57:32]Read from MH i2c: 01 [10:57:32]MH_I2C_Read... [10:57:32]*** Stop cut motor [10:57:32]*** Cut end [10:57:32]Read from MH i2c: 01 07 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: 01 07 00 E2 3F 00 00 00 00 00 FF 0F 36 [10:57:32]process_action close_receipt done [10:57:32]requested_data is exist [10:57:32]produce_requested_data [10:57:32]requested_item fm.sn is exist - process it [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 11 00 00 [10:57:32]Write to MH i2c: E2 08 00 E3 3F 80 11 00 00 00 00 00 00 9C [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 17 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 17 00 E3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [10:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:57:32]wFMCommunicate OK [10:57:32]requested_item fd.num is exist - process it [10:57:32]SAM_PROTO_GetFieldsCounters [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 13 00 00 [10:57:32]Write to MH i2c: E2 08 00 E4 3F 80 13 00 00 00 00 00 00 9F [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 62 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 62 00 E4 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [10:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:32]wFMCommunicate OK [10:57:32]SAM_PROTO_GetFieldsCounters done [10:57:32]requested_item shift.num is exist - process it [10:57:32]requested_item shift.opened is exist - process it [10:57:32]req_shift_opened [10:57:32]FM_GetShiftState [10:57:32]SAM_PROTO_GetShiftState [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 13 01 00 [10:57:32]Write to MH i2c: E2 08 00 E5 3F 80 13 01 00 00 00 00 00 A1 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 0E 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 0E 00 E5 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AA [10:57:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:57:32]wFMCommunicate OK [10:57:32]SAM_PROTO_GetShiftState done [10:57:32]FM_GetShiftState done [10:57:32]req_shift_opened done [10:57:32]requested_item shift.open_date is exist - process it [10:57:32]req_shift_open_date [10:57:32]req_shift_open_date done [10:57:32]produce_requested_data done [10:57:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165965,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:57:32]process_action_free close_receipt [10:57:32]json_value_free [10:57:32]json_value_free done [10:57:32]process_json_proto returns [10:57:32]Send response to host [10:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165965,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:57:32]free response buf [10:57:32]execute_script done [10:57:32]execute_script returns [10:57:32]free content buf [10:57:32]Sock 6.Close socket [10:57:32]Sock 6.Thread stoped [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:43]accept exits with 5 [10:58:43]New connection [10:58:43]New thread 3066920292 created [10:58:43]Thread 3066776932 joined [10:58:43]Waiting for new connection... [10:58:43] Sock 5.Parse request [10:58:43]Sock 5.Check first char [10:58:43]Sock 5.First char is OK [10:58:43]request: POST /json_proto HTTP/1.0 [10:58:43]Method: POST [10:58:43]URL: /json_proto [10:58:43]Method is POST - this is cgi request [10:58:43]url: /json_proto [10:58:43]query_string will be loaded in cgi processing [10:58:43]execute_cgi json_proto POST (null) [10:58:43]execute_cgi path=json_proto method=POST [10:58:43]POST find Content-Length [10:58:43]Host: 172.17.53.195:8080 [10:58:43]Content-Length: 769 [10:58:43]Content-Type: application/json [10:58:43] [10:58:43]POST finish read [10:58:43]Found Content-Length = 769 [10:58:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:43]execute_script... [10:58: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)220536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.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: Mbank", "payments": [ { "type": 1, "sum" : 2500.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:43]POST & json_proto [10:58:43]process_json_proto [10:58:43]json parsed OK: [10:58:43]protocol is kg_v1.0 [10:58:43]action value=close_receipt [10:58:43]process_action close_receipt [10:58:43]cmd_close_receipt [10:58:43]MH_GetDate [10:58:43]Write to MH i2c: F0 00 00 E6 3F 14 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: F0 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: F0 09 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: F0 09 00 E6 3F 00 F5 33 16 67 21 48 4A 65 DA [10:58:43]GetLastDocTimeStamp 1729508266 [10:58:43]current date 1729508341 [10:58:43]FM_GetShiftState [10:58:43]SAM_PROTO_GetShiftState [10:58:43]wFMCommunicate request_size=4 [10:58:43]MH_SAM_APDU [10:58:43]CAPDU: 80 13 01 00 [10:58:43]Write to MH i2c: E2 08 00 E7 3F 80 13 01 00 00 00 00 00 A3 [10:58:43]Write i2c OK [10:58:43]MH_I2C_Read... [10:58:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:43]Read from MH i2c: E2 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0E 00 [10:58:43]MH_I2C_Read... [10:58:43]Read from MH i2c: E2 0E 00 E7 3F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AC [10:58:43]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:58:43]wFMCommunicate OK [10:58:43]SAM_PROTO_GetShiftState done [10:58:43]FM_GetShiftState done [10:58:43]opened in 1729470944 [10:58:43]opened+sec_in_day 1729557344 [10:58:43]quantity*price = 250005 [10:58:43]sum+1 = 250006 [10:58:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.05 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.05 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 77 21.10.2024 10:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165966 ФПД: 73833688080460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105901&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165966&fm=73833688080460&tin=02508201610067®Number=0000000000091764&sum=250005 [10:58:44]StoreToDocumentArchive [10:58:44]shift 535 fd 165966 [10:58:44]save to /storage/0535/doc_00165966 [10:58:44]save last doc name /storage/0535/doc_00165966 to /storage/kkm_last_doc_name [10:58:44]save OK [10:58:44]Clear old archive folders... [10:58:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:44]tlvbuf is 01839ED0 [10:58:44]SAM_PROTO_ClearQueue [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 09 00 00 [10:58:44]Write to MH i2c: E2 08 00 F4 3F 80 09 00 00 00 00 00 00 A5 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 F4 3F 00 90 00 A7 [10:58:44]RAPDU: 90 00 [10:58:44]wFMCommunicate OK [10:58:44]SAM_PROTO_ClearQueue done [10:58:44]KKMCreateOFDPacket [10:58:44]OFDProtocolAddRootSTLVToBuf [10:58:44]FM_MakeSignedData [10:58:44]FM_MakeSignedData [10:58:44]SAM_PROTO_SignData [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 0D 01 02 [10:58:44]Write to MH i2c: E2 08 00 F5 3F 80 0D 01 02 00 00 00 00 AD [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 03 00 F5 3F 00 90 00 A8 [10:58:44]RAPDU: 90 00 [10:58:44]wFMCommunicate OK [10:58:44]wFMCommunicate request_size=255 [10:58:44]MH_SAM_APDU [10:58: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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F5 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 88 02 00 35 04 06 00 43 [10:58:44]Write to MH i2c: E2 02 01 F6 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F5 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 88 02 00 35 04 06 00 43 00 00 AB [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 F6 3F 00 90 00 A9 [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=10 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 02 02 05 26 BE C0 20 4C [10:58:45]Write to MH i2c: E2 0D 00 F7 3F 80 0D 02 02 05 00 26 BE C0 20 4C 00 00 CA [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 F7 3F 00 90 00 AA [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 03 02 [10:58:45]Write to MH i2c: E2 08 00 F8 3F 80 0D 03 02 00 00 00 00 B2 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0B 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0B 00 F8 3F 00 C6 F2 80 3A EF 14 F8 A5 90 00 C5 [10:58:45]RAPDU: C6 F2 80 3A EF 14 F8 A5 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_SignData done [10:58:45]FM_MakeSignedData done [10:58:45]CreateOFDProtocolMessage [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 11 00 00 [10:58:45]Write to MH i2c: E2 08 00 F9 3F 80 11 00 00 00 00 00 00 B2 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 F9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [10:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:45]wFMCommunicate OK [10:58:45]CreateOFDProtocolMessage done [10:58:45]OFDSenderStorePacket 165966 [10:58:45]StoreOFDPacket docnum=165966 [10:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 26 07 01 E3 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F5 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 88 02 00 35 04 06 00 43 26 BE C0 20 4C C6 F2 80 3A EF 14 F8 A5 [10:58:45]CheckFolder [10:58:45]dirname=/storage/ofd_packets [10:58:45]CheckFolder done [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00165966 [10:58:45]NVStorageSaveData ofd_packets/00165966 [10:58:45]File name is /storage/ofd_packets/00165966 [10:58:45]Write 301 bytes [10:58:45]NVStorageSaveData done [10:58:45]OFDSenderStorePacket done [10:58:45]KKMCreateOFDPacket done [10:58:45]NVStorageSaveData kkm_last_timestamp [10:58:45]File name is /storage/kkm_last_timestamp [10:58:45]Write 4 bytes [10:58:45]NVStorageSaveData done [10:58:45]ExternCall_PrintAddStr [10:58:45]wPrintStart [10:58:45]Write to MH i2c: 01 00 00 FA 3F 39 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 FA 3F 00 00 00 00 00 FF 0F 4E [10:58:45]RasterBufferAndPrint [10:58:45]line Счет N : (1)220536 [10:58:45]line ИНН: 02508201610067 [10:58:45]line Контрольно-Кассовый Чек [10:58:45]line ПРОДАЖА [10:58:45]line ТРК (МРК, ГНК) : 33 [10:58:45]line Товар: 2710124130 [10:58:45]line Аи-92-К-5 [10:58:45]line 37.370 * 66.90 [10:58:45]line = 2500.05 [10:58:45]line НДС 12% НСП 1% [10:58:45]line > о реализуемом товаре [10:58:45]line ИТОГО: 2500.05 [10:58:45]line НСП 1% : 22.12 [10:58:45]line НДС 12% : 265.49 [10:58:45]line Наличными: 0.00 [10:58:45]line Безнал.: 2500.05 [10:58:45]line Место: АЗС № 161 "Партнер Нефть" [10:58:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:58:45]line СНО: Общий режим [10:58:45]line Чек 77 21.10.2024 10:59 [10:58:45]line Смена: 535 ФФД: 1.0 [10:58:45]line ЗНМ: 0300000104 [10:58:45]line РНМ: 0000000000091764 [10:58:45]line Версия ККМ: 001 [10:58:45]line Платежная система: Mbank [10:58:45]line ФМ: 0000000000871759 [10:58:45]line ФД: 165966 [10:58:45]line ФПД: 73833688080460 [10:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105901&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165966&fm=73833688080460&tin=02508201610067®Number=0000000000091764&sum=250005 [10:58:45]written 0, free lines is 4095 [10:58:45]OFD Sender: Processing packet 165966 [packets to send 48, broken 47] [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00165966 [10:58:45]OFD Sender: To server: pG, [10:58:45]CommunicateWithHost lk.salyk.kg:30040 [10:58:45]ConnectInit lk.salyk.kg [10:58:45]Connected sock=7 [10:58:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 26 07 01 E3 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 F5 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 88 02 00 35 04 06 00 43 26 BE C0 20 4C C6 F2 80 3A EF 14 F8 A5 [10:58:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5B 73 47 00 25 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 88 02 00 F4 03 04 00 63 DA 15 67 B6 04 01 00 00 03 41 66 8F E4 9C DD CC [10:58:45]CommunicateWithHost err = 0 [10:58:45]CheckOFDResponse [10:58:45]1017 (14) - 77093643461234 [10:58:45]1041 (16) - 0000000000871759 [10:58:45]1040 (4) - 165966 [10:58:45]1012 (4) - 21.10.2024 04:36 [10:58:45]1206 (1) - 0 [10:58:45]OFD Sender: Remove packet 165966 [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00165966 [10:58:45]NVStorageDeleteData [10:58:45]Write to MH i2c: 01 00 00 23 40 63 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 23 40 00 00 00 00 00 09 0D 80 [10:58:45]RasterBufferAndPrint [10:58:45]line [10:58:45]line [10:58:45]line [10:58:45]line [10:58:45]line [10:58:45]written 0, free lines is 3344 [10:58:45]MH_Cut [10:58:45]Write to MH i2c: D1 01 00 2A 40 01 3C [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: D1 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: D1 01 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: D1 01 00 2A 40 00 3B [10:58:45]Write to MH i2c: 01 00 00 2B 40 6B [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:46]OFD Sender: No OFD packet to send [10:58:46]*** Cut start [10:58:46]*** Partial cut [10:58:46]*** CUTSNS_PIN = 1 [10:58:46]*** CUTSNS_PIN = 0 [10:58:46]*** Brake cut motor [10:58:47]Read from MH i2c: 01 [10:58:47]MH_I2C_Read... [10:58:47]*** Stop cut motor [10:58:47]*** Cut end [10:58:47]Read from MH i2c: 01 07 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: 01 07 00 2B 40 00 00 00 00 00 FF 0F 80 [10:58:47]process_action close_receipt done [10:58:47]requested_data is exist [10:58:47]produce_requested_data [10:58:47]requested_item fm.sn is exist - process it [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 11 00 00 [10:58:47]Write to MH i2c: E2 08 00 2C 40 80 11 00 00 00 00 00 00 E6 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 17 00 2C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [10:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:47]wFMCommunicate OK [10:58:47]requested_item fd.num is exist - process it [10:58:47]SAM_PROTO_GetFieldsCounters [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 13 00 00 [10:58:47]Write to MH i2c: E2 08 00 2D 40 80 13 00 00 00 00 00 00 E9 [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 62 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 62 00 2D 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [10:58:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_GetFieldsCounters done [10:58:47]requested_item shift.num is exist - process it [10:58:47]requested_item shift.opened is exist - process it [10:58:47]req_shift_opened [10:58:47]FM_GetShiftState [10:58:47]SAM_PROTO_GetShiftState [10:58:47]wFMCommunicate request_size=4 [10:58:47]MH_SAM_APDU [10:58:47]CAPDU: 80 13 01 00 [10:58:47]Write to MH i2c: E2 08 00 2E 40 80 13 01 00 00 00 00 00 EB [10:58:47]Write i2c OK [10:58:47]MH_I2C_Read... [10:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:47]Read from MH i2c: E2 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0E 00 [10:58:47]MH_I2C_Read... [10:58:47]Read from MH i2c: E2 0E 00 2E 40 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F4 [10:58:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:58:47]wFMCommunicate OK [10:58:47]SAM_PROTO_GetShiftState done [10:58:47]FM_GetShiftState done [10:58:47]req_shift_opened done [10:58:47]requested_item shift.open_date is exist - process it [10:58:47]req_shift_open_date [10:58:47]req_shift_open_date done [10:58:47]produce_requested_data done [10:58:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165966,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:58:47]process_action_free close_receipt [10:58:47]json_value_free [10:58:47]json_value_free done [10:58:47]process_json_proto returns [10:58:47]Send response to host [10:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165966,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:58:47]free response buf [10:58:47]execute_script done [10:58:47]execute_script returns [10:58:47]free content buf [10:58:47]Sock 5.Close socket [10:58:47]Sock 5.Thread stoped [10:58:51]OFD Sender: No OFD packet to send [10:58:53]accept exits with 6 [10:58:53]New connection [10:58:53]New thread 3066776932 created [10:58:53]Thread 3066920292 joined [10:58:53]Waiting for new connection... [10:58:53] Sock 6.Parse request [10:58:53]Sock 6.Check first char [10:58:53]Sock 6.First char is OK [10:58:53]request: POST /json_proto HTTP/1.0 [10:58:53]Method: POST [10:58:53]URL: /json_proto [10:58:53]Method is POST - this is cgi request [10:58:53]url: /json_proto [10:58:53]query_string will be loaded in cgi processing [10:58:53]execute_cgi json_proto POST (null) [10:58:53]execute_cgi path=json_proto method=POST [10:58:53]POST find Content-Length [10:58:53]Host: 172.17.53.195:8080 [10:58:53]Content-Length: 677 [10:58:53]Content-Type: application/json [10:58:53] [10:58:53]POST finish read [10:58:53]Found Content-Length = 677 [10:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:53]execute_script... [10:58: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)220537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:53]POST & json_proto [10:58:53]process_json_proto [10:58:53]json parsed OK: [10:58:53]protocol is kg_v1.0 [10:58:53]action value=close_receipt [10:58:53]process_action close_receipt [10:58:53]cmd_close_receipt [10:58:53]MH_GetDate [10:58:53]Write to MH i2c: F0 00 00 2F 40 5E [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: F0 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: F0 09 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: F0 09 00 2F 40 00 FF 33 16 67 21 48 4A 65 2E [10:58:53]GetLastDocTimeStamp 1729508341 [10:58:53]current date 1729508351 [10:58:53]FM_GetShiftState [10:58:53]SAM_PROTO_GetShiftState [10:58:53]wFMCommunicate request_size=4 [10:58:53]MH_SAM_APDU [10:58:53]CAPDU: 80 13 01 00 [10:58:53]Write to MH i2c: E2 08 00 30 40 80 13 01 00 00 00 00 00 ED [10:58:53]Write i2c OK [10:58:53]MH_I2C_Read... [10:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:53]Read from MH i2c: E2 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 0E 00 [10:58:53]MH_I2C_Read... [10:58:53]Read from MH i2c: E2 0E 00 30 40 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F6 [10:58:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:58:53]wFMCommunicate OK [10:58:53]SAM_PROTO_GetShiftState done [10:58:53]FM_GetShiftState done [10:58:53]opened in 1729470944 [10:58:53]opened+sec_in_day 1729557344 [10:58:53]quantity*price = 40006 [10:58:53]sum+1 = 40007 [10:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 78 21.10.2024 10:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165967 ФПД: 265401679237308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105911&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165967&fm=265401679237308&tin=02508201610067®Number=0000000000091764&sum=40000 [10:58:55]StoreToDocumentArchive [10:58:55]shift 535 fd 165967 [10:58:55]save to /storage/0535/doc_00165967 [10:58:55]save last doc name /storage/0535/doc_00165967 to /storage/kkm_last_doc_name [10:58:55]save OK [10:58:55]Clear old archive folders... [10:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:55]tlvbuf is 01616630 [10:58:55]SAM_PROTO_ClearQueue [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 09 00 00 [10:58:55]Write to MH i2c: E2 08 00 3D 40 80 09 00 00 00 00 00 00 EF [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 3D 40 00 90 00 F1 [10:58:55]RAPDU: 90 00 [10:58:55]wFMCommunicate OK [10:58:55]SAM_PROTO_ClearQueue done [10:58:55]KKMCreateOFDPacket [10:58:55]OFDProtocolAddRootSTLVToBuf [10:58:55]FM_MakeSignedData [10:58:55]FM_MakeSignedData [10:58:55]SAM_PROTO_SignData [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 0D 01 02 [10:58:55]Write to MH i2c: E2 08 00 3E 40 80 0D 01 02 00 00 00 00 F7 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 3E 40 00 90 00 F2 [10:58:55]RAPDU: 90 00 [10:58:55]wFMCommunicate OK [10:58:55]wFMCommunicate request_size=255 [10:58:55]MH_SAM_APDU [10:58: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FF 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 88 02 00 35 04 06 00 F1 [10:58:55]Write to MH i2c: E2 02 01 3F 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FF 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 88 02 00 35 04 06 00 F1 00 00 3C [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 3F 40 00 90 00 F3 [10:58:55]RAPDU: 90 00 [10:58:55]wFMCommunicate OK [10:58:55]wFMCommunicate request_size=10 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 0D 02 02 05 61 A4 D0 50 BC [10:58:55]Write to MH i2c: E2 0D 00 40 40 80 0D 02 02 05 00 61 A4 D0 50 BC 00 00 E5 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 03 00 40 40 00 90 00 F4 [10:58:55]RAPDU: 90 00 [10:58:55]wFMCommunicate OK [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 0D 03 02 [10:58:55]Write to MH i2c: E2 08 00 41 40 80 0D 03 02 00 00 00 00 FC [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 0B 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 0B 00 41 40 00 24 0A 35 2C 7C F9 4B A1 90 00 ED [10:58:55]RAPDU: 24 0A 35 2C 7C F9 4B A1 90 00 [10:58:55]wFMCommunicate OK [10:58:55]SAM_PROTO_SignData done [10:58:55]FM_MakeSignedData done [10:58:55]CreateOFDProtocolMessage [10:58:55]wFMCommunicate request_size=4 [10:58:55]MH_SAM_APDU [10:58:55]CAPDU: 80 11 00 00 [10:58:55]Write to MH i2c: E2 08 00 42 40 80 11 00 00 00 00 00 00 FC [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:55]Read from MH i2c: E2 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 17 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: E2 17 00 42 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [10:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:55]wFMCommunicate OK [10:58:55]CreateOFDProtocolMessage done [10:58:55]OFDSenderStorePacket 165967 [10:58:55]StoreOFDPacket docnum=165967 [10:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 38 07 01 62 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FF 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 88 02 00 35 04 06 00 F1 61 A4 D0 50 BC 24 0A 35 2C 7C F9 4B A1 [10:58:55]CheckFolder [10:58:55]dirname=/storage/ofd_packets [10:58:55]CheckFolder done [10:58:55]ProducePacketName [10:58:55]name=ofd_packets/00165967 [10:58:55]NVStorageSaveData ofd_packets/00165967 [10:58:55]File name is /storage/ofd_packets/00165967 [10:58:55]Write 301 bytes [10:58:55]NVStorageSaveData done [10:58:55]OFDSenderStorePacket done [10:58:55]KKMCreateOFDPacket done [10:58:55]NVStorageSaveData kkm_last_timestamp [10:58:55]File name is /storage/kkm_last_timestamp [10:58:55]Write 4 bytes [10:58:55]NVStorageSaveData done [10:58:55]ExternCall_PrintAddStr [10:58:55]wPrintStart [10:58:55]Write to MH i2c: 01 00 00 43 40 83 [10:58:55]Write i2c OK [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: 01 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: 01 07 00 [10:58:55]MH_I2C_Read... [10:58:55]Read from MH i2c: 01 07 00 43 40 00 00 00 00 00 FF 0F 98 [10:58:55]RasterBufferAndPrint [10:58:55]line Счет N : (1)220537 [10:58:55]line ИНН: 02508201610067 [10:58:55]line Контрольно-Кассовый Чек [10:58:55]line ПРОДАЖА [10:58:55]line ТРК (МРК, ГНК) : 23 [10:58:55]line Товар: 2710124130 [10:58:55]line Аи-92-К-5 [10:58:55]line 5.980 * 66.90 [10:58:55]line = 400.06 [10:58:55]line НДС 12% НСП 1% [10:58:55]line > о реализуемом товаре [10:58:55]line ОКРУГЛЕНИЕ: -0.06 [10:58:55]line ИТОГО: 400.00 [10:58:55]line Внесено: 400.00 [10:58:55]line СДАЧА: 0.00 [10:58:55]line НСП 1% : 3.54 [10:58:55]line НДС 12% : 42.48 [10:58:55]line Наличными: 400.00 [10:58:55]line Безнал.: 0.00 [10:58:55]line Место: АЗС № 161 "Партнер Нефть" [10:58:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:58:55]line СНО: Общий режим [10:58:55]line Чек 78 21.10.2024 10:59 [10:58:55]line Смена: 535 ФФД: 1.0 [10:58:55]line ЗНМ: 0300000104 [10:58:55]line РНМ: 0000000000091764 [10:58:55]line Версия ККМ: 001 [10:58:55]line ФМ: 0000000000871759 [10:58:55]line ФД: 165967 [10:58:55]line ФПД: 265401679237308 [10:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105911&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165967&fm=265401679237308&tin=02508201610067®Number=0000000000091764&sum=40000 [10:58:55]written 0, free lines is 4095 [10:58:55]OFD Sender: Processing packet 165967 [packets to send 48, broken 47] [10:58:55]ProducePacketName [10:58:55]name=ofd_packets/00165967 [10:58:55]OFD Sender: To server: pG, [10:58:55]CommunicateWithHost lk.salyk.kg:30040 [10:58:55]ConnectInit lk.salyk.kg [10:58:55]Connected sock=7 [10:58:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 38 07 01 62 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 FF 33 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 88 02 00 35 04 06 00 F1 61 A4 D0 50 BC 24 0A 35 2C 7C F9 4B A1 [10:58:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 55 47 00 AA C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 88 02 00 F4 03 04 00 6E DA 15 67 B6 04 01 00 00 50 14 95 15 1D 13 F0 56 [10:58:56]CommunicateWithHost err = 0 [10:58:56]CheckOFDResponse [10:58:56]1017 (14) - 77093643461234 [10:58:56]1041 (16) - 0000000000871759 [10:58:56]1040 (4) - 165967 [10:58:56]1012 (4) - 21.10.2024 04:37 [10:58:56]1206 (1) - 0 [10:58:56]OFD Sender: Remove packet 165967 [10:58:56]ProducePacketName [10:58:56]name=ofd_packets/00165967 [10:58:56]NVStorageDeleteData [10:58:56]Write to MH i2c: 01 00 00 6E 40 AE [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: 01 07 00 6E 40 00 00 00 00 00 01 0D C3 [10:58:56]RasterBufferAndPrint [10:58:56]line [10:58:56]line [10:58:56]line [10:58:56]line [10:58:56]line [10:58:56]written 0, free lines is 3342 [10:58:56]MH_Cut [10:58:56]Write to MH i2c: D1 01 00 75 40 01 87 [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: D1 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: D1 01 00 [10:58:56]MH_I2C_Read... [10:58:56]Read from MH i2c: D1 01 00 75 40 00 86 [10:58:56]Write to MH i2c: 01 00 00 76 40 B6 [10:58:56]Write i2c OK [10:58:56]MH_I2C_Read... [10:58:56]OFD Sender: No OFD packet to send [10:58:56]*** Cut start [10:58:56]*** Partial cut [10:58:56]*** CUTSNS_PIN = 1 [10:58:56]*** CUTSNS_PIN = 0 [10:58:57]*** Brake cut motor [10:58:57]Read from MH i2c: 01 [10:58:57]MH_I2C_Read... [10:58:57]*** Stop cut motor [10:58:57]*** Cut end [10:58:57]Read from MH i2c: 01 07 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: 01 07 00 76 40 00 00 00 00 00 FF 0F CB [10:58:57]process_action close_receipt done [10:58:57]requested_data is exist [10:58:57]produce_requested_data [10:58:57]requested_item fm.sn is exist - process it [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 11 00 00 [10:58:57]Write to MH i2c: E2 08 00 77 40 80 11 00 00 00 00 00 00 31 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 17 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 17 00 77 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [10:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:58:57]wFMCommunicate OK [10:58:57]requested_item fd.num is exist - process it [10:58:57]SAM_PROTO_GetFieldsCounters [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 13 00 00 [10:58:57]Write to MH i2c: E2 08 00 78 40 80 13 00 00 00 00 00 00 34 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 62 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 62 00 78 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:58:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:57]wFMCommunicate OK [10:58:57]SAM_PROTO_GetFieldsCounters done [10:58:57]requested_item shift.num is exist - process it [10:58:57]requested_item shift.opened is exist - process it [10:58:57]req_shift_opened [10:58:57]FM_GetShiftState [10:58:57]SAM_PROTO_GetShiftState [10:58:57]wFMCommunicate request_size=4 [10:58:57]MH_SAM_APDU [10:58:57]CAPDU: 80 13 01 00 [10:58:57]Write to MH i2c: E2 08 00 79 40 80 13 01 00 00 00 00 00 36 [10:58:57]Write i2c OK [10:58:57]MH_I2C_Read... [10:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:57]Read from MH i2c: E2 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 0E 00 [10:58:57]MH_I2C_Read... [10:58:57]Read from MH i2c: E2 0E 00 79 40 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3F [10:58:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:58:57]wFMCommunicate OK [10:58:57]SAM_PROTO_GetShiftState done [10:58:57]FM_GetShiftState done [10:58:57]req_shift_opened done [10:58:57]requested_item shift.open_date is exist - process it [10:58:57]req_shift_open_date [10:58:57]req_shift_open_date done [10:58:57]produce_requested_data done [10:58:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165967,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:58:57]process_action_free close_receipt [10:58:57]json_value_free [10:58:57]json_value_free done [10:58:57]process_json_proto returns [10:58:57]Send response to host [10:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165967,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:58:57]free response buf [10:58:57]execute_script done [10:58:57]execute_script returns [10:58:57]free content buf [10:58:57]Sock 6.Close socket [10:58:57]Sock 6.Thread stoped [10:59:01]OFD Sender: No OFD packet to send [10:59:05]accept exits with 5 [10:59:05]New connection [10:59:05]New thread 3066920292 created [10:59:05]Thread 3066776932 joined [10:59:05]Waiting for new connection... [10:59:05] Sock 5.Parse request [10:59:05]Sock 5.Check first char [10:59:05]Sock 5.First char is OK [10:59:05]request: POST /json_proto HTTP/1.0 [10:59:05]Method: POST [10:59:05]URL: /json_proto [10:59:05]Method is POST - this is cgi request [10:59:05]url: /json_proto [10:59:05]query_string will be loaded in cgi processing [10:59:05]execute_cgi json_proto POST (null) [10:59:05]execute_cgi path=json_proto method=POST [10:59:05]POST find Content-Length [10:59:05]Host: 172.17.53.195:8080 [10:59:05]Content-Length: 682 [10:59:05]Content-Type: application/json [10:59:05] [10:59:05]POST finish read [10:59:05]Found Content-Length = 682 [10:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:05]execute_script... [10:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:05]POST & json_proto [10:59:05]process_json_proto [10:59:05]json parsed OK: [10:59:05]protocol is kg_v1.0 [10:59:05]action value=close_receipt [10:59:05]process_action close_receipt [10:59:05]cmd_close_receipt [10:59:05]MH_GetDate [10:59:05]Write to MH i2c: F0 00 00 7A 40 A9 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: F0 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: F0 09 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: F0 09 00 7A 40 00 0B 34 16 67 21 48 4A 65 86 [10:59:05]GetLastDocTimeStamp 1729508351 [10:59:05]current date 1729508363 [10:59:05]FM_GetShiftState [10:59:05]SAM_PROTO_GetShiftState [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 13 01 00 [10:59:05]Write to MH i2c: E2 08 00 7B 40 80 13 01 00 00 00 00 00 38 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0E 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0E 00 7B 40 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 41 [10:59:05]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:59:05]wFMCommunicate OK [10:59:05]SAM_PROTO_GetShiftState done [10:59:05]FM_GetShiftState done [10:59:05]opened in 1729470944 [10:59:05]opened+sec_in_day 1729557344 [10:59:05]quantity*price = 100015 [10:59:05]sum+1 = 100017 [10:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 79 21.10.2024 10:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165968 ФПД: 139673850848294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105923&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165968&fm=139673850848294&tin=02508201610067®Number=0000000000091764&sum=100000 [10:59:07]StoreToDocumentArchive [10:59:07]shift 535 fd 165968 [10:59:07]save to /storage/0535/doc_00165968 [10:59:07]save last doc name /storage/0535/doc_00165968 to /storage/kkm_last_doc_name [10:59:07]save OK [10:59:07]Clear old archive folders... [10:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:07]tlvbuf is 0177AC70 [10:59:07]SAM_PROTO_ClearQueue [10:59:07]wFMCommunicate request_size=4 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 09 00 00 [10:59:07]Write to MH i2c: E2 08 00 88 40 80 09 00 00 00 00 00 00 3A [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [10:59:07]RAPDU: 90 00 [10:59:07]wFMCommunicate OK [10:59:07]SAM_PROTO_ClearQueue done [10:59:07]KKMCreateOFDPacket [10:59:07]OFDProtocolAddRootSTLVToBuf [10:59:07]FM_MakeSignedData [10:59:07]FM_MakeSignedData [10:59:07]SAM_PROTO_SignData [10:59:07]wFMCommunicate request_size=4 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 0D 01 02 [10:59:07]Write to MH i2c: E2 08 00 89 40 80 0D 01 02 00 00 00 00 42 [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 89 40 00 90 00 3D [10:59:07]RAPDU: 90 00 [10:59:07]wFMCommunicate OK [10:59:07]wFMCommunicate request_size=255 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 88 02 00 35 04 06 00 7F [10:59:07]Write to MH i2c: E2 02 01 8A 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 88 02 00 35 04 06 00 7F 00 00 4F [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 8A 40 00 90 00 3E [10:59:07]RAPDU: 90 00 [10:59:07]wFMCommunicate OK [10:59:07]wFMCommunicate request_size=10 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 0D 02 02 05 08 5A 43 A4 26 [10:59:07]Write to MH i2c: E2 0D 00 8B 40 80 0D 02 02 05 00 08 5A 43 A4 26 00 00 BE [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 03 00 8B 40 00 90 00 3F [10:59:07]RAPDU: 90 00 [10:59:07]wFMCommunicate OK [10:59:07]wFMCommunicate request_size=4 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 0D 03 02 [10:59:07]Write to MH i2c: E2 08 00 8C 40 80 0D 03 02 00 00 00 00 47 [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 0B 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 0B 00 8C 40 00 98 6B 61 6F 12 B0 A4 25 90 00 A6 [10:59:07]RAPDU: 98 6B 61 6F 12 B0 A4 25 90 00 [10:59:07]wFMCommunicate OK [10:59:07]SAM_PROTO_SignData done [10:59:07]FM_MakeSignedData done [10:59:07]CreateOFDProtocolMessage [10:59:07]wFMCommunicate request_size=4 [10:59:07]MH_SAM_APDU [10:59:07]CAPDU: 80 11 00 00 [10:59:07]Write to MH i2c: E2 08 00 8D 40 80 11 00 00 00 00 00 00 47 [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:07]Read from MH i2c: E2 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 17 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: E2 17 00 8D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [10:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:59:07]wFMCommunicate OK [10:59:07]CreateOFDProtocolMessage done [10:59:07]OFDSenderStorePacket 165968 [10:59:07]StoreOFDPacket docnum=165968 [10:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 FA 07 01 A4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 88 02 00 35 04 06 00 7F 08 5A 43 A4 26 98 6B 61 6F 12 B0 A4 25 [10:59:07]CheckFolder [10:59:07]dirname=/storage/ofd_packets [10:59:07]CheckFolder done [10:59:07]ProducePacketName [10:59:07]name=ofd_packets/00165968 [10:59:07]NVStorageSaveData ofd_packets/00165968 [10:59:07]File name is /storage/ofd_packets/00165968 [10:59:07]Write 301 bytes [10:59:07]NVStorageSaveData done [10:59:07]OFDSenderStorePacket done [10:59:07]KKMCreateOFDPacket done [10:59:07]NVStorageSaveData kkm_last_timestamp [10:59:07]File name is /storage/kkm_last_timestamp [10:59:07]Write 4 bytes [10:59:07]NVStorageSaveData done [10:59:07]ExternCall_PrintAddStr [10:59:07]wPrintStart [10:59:07]Write to MH i2c: 01 00 00 8E 40 CE [10:59:07]Write i2c OK [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 07 00 [10:59:07]MH_I2C_Read... [10:59:07]Read from MH i2c: 01 07 00 8E 40 00 00 00 00 00 FF 0F E3 [10:59:07]RasterBufferAndPrint [10:59:07]line Счет N : (1)220538 [10:59:07]line ИНН: 02508201610067 [10:59:07]line Контрольно-Кассовый Чек [10:59:07]line ПРОДАЖА [10:59:07]line ТРК (МРК, ГНК) : 13 [10:59:07]line Товар: 2710124130 [10:59:07]line Аи-92-К-5 [10:59:07]line 14.950 * 66.90 [10:59:07]line = 1000.16 [10:59:07]line НДС 12% НСП 1% [10:59:07]line > о реализуемом товаре [10:59:07]line ОКРУГЛЕНИЕ: -0.16 [10:59:07]line ИТОГО: 1000.00 [10:59:07]line Внесено: 1000.00 [10:59:07]line СДАЧА: 0.00 [10:59:07]line НСП 1% : 8.85 [10:59:07]line НДС 12% : 106.21 [10:59:07]line Наличными: 1000.00 [10:59:07]line Безнал.: 0.00 [10:59:07]line Место: АЗС № 161 "Партнер Нефть" [10:59:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [10:59:07]line СНО: Общий режим [10:59:07]line Чек 79 21.10.2024 10:59 [10:59:07]line Смена: 535 ФФД: 1.0 [10:59:07]line ЗНМ: 0300000104 [10:59:07]line РНМ: 0000000000091764 [10:59:07]line Версия ККМ: 001 [10:59:07]line ФМ: 0000000000871759 [10:59:07]line ФД: 165968 [10:59:07]line ФПД: 139673850848294 [10:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T105923&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165968&fm=139673850848294&tin=02508201610067®Number=0000000000091764&sum=100000 [10:59:07]written 0, free lines is 4095 [10:59:07]OFD Sender: Processing packet 165968 [packets to send 48, broken 47] [10:59:07]ProducePacketName [10:59:07]name=ofd_packets/00165968 [10:59:07]OFD Sender: To server: pG, [10:59:07]CommunicateWithHost lk.salyk.kg:30040 [10:59:07]ConnectInit lk.salyk.kg [10:59:07]Connected sock=7 [10:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F0 FA 07 01 A4 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 0B 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 88 02 00 35 04 06 00 7F 08 5A 43 A4 26 98 6B 61 6F 12 B0 A4 25 [10:59:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C EB 47 00 C0 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 88 02 00 F4 03 04 00 7A DA 15 67 B6 04 01 00 00 F6 55 CC 03 1A 43 AD 7A [10:59:08]CommunicateWithHost err = 0 [10:59:08]CheckOFDResponse [10:59:08]1017 (14) - 77093643461234 [10:59:08]1041 (16) - 0000000000871759 [10:59:08]1040 (4) - 165968 [10:59:08]1012 (4) - 21.10.2024 04:37 [10:59:08]1206 (1) - 0 [10:59:08]OFD Sender: Remove packet 165968 [10:59:08]ProducePacketName [10:59:08]name=ofd_packets/00165968 [10:59:08]NVStorageDeleteData [10:59:08]Write to MH i2c: 01 00 00 B9 40 F9 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 07 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 07 00 B9 40 00 00 00 00 00 E3 0C EF [10:59:08]RasterBufferAndPrint [10:59:08]line [10:59:08]line [10:59:08]line [10:59:08]line [10:59:08]line [10:59:08]written 0, free lines is 3311 [10:59:08]MH_Cut [10:59:08]Write to MH i2c: D1 01 00 C0 40 01 D2 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: D1 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: D1 01 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: D1 01 00 C0 40 00 D1 [10:59:08]Write to MH i2c: 01 00 00 C1 40 01 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]OFD Sender: No OFD packet to send [10:59:08]*** Cut start [10:59:08]*** Partial cut [10:59:08]*** CUTSNS_PIN = 1 [10:59:08]*** CUTSNS_PIN = 0 [10:59:09]*** Brake cut motor [10:59:09]Read from MH i2c: 01 [10:59:09]MH_I2C_Read... [10:59:09]*** Stop cut motor [10:59:09]*** Cut end [10:59:09]Read from MH i2c: 01 07 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: 01 07 00 C1 40 00 00 00 00 00 FF 0F 16 [10:59:09]process_action close_receipt done [10:59:09]requested_data is exist [10:59:09]produce_requested_data [10:59:09]requested_item fm.sn is exist - process it [10:59:09]wFMCommunicate request_size=4 [10:59:09]MH_SAM_APDU [10:59:09]CAPDU: 80 11 00 00 [10:59:09]Write to MH i2c: E2 08 00 C2 40 80 11 00 00 00 00 00 00 7C [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:09]Read from MH i2c: E2 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 17 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 17 00 C2 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [10:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [10:59:09]wFMCommunicate OK [10:59:09]requested_item fd.num is exist - process it [10:59:09]SAM_PROTO_GetFieldsCounters [10:59:09]wFMCommunicate request_size=4 [10:59:09]MH_SAM_APDU [10:59:09]CAPDU: 80 13 00 00 [10:59:09]Write to MH i2c: E2 08 00 C3 40 80 13 00 00 00 00 00 00 7F [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:09]Read from MH i2c: E2 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 62 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 62 00 C3 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:09]wFMCommunicate OK [10:59:09]SAM_PROTO_GetFieldsCounters done [10:59:09]requested_item shift.num is exist - process it [10:59:09]requested_item shift.opened is exist - process it [10:59:09]req_shift_opened [10:59:09]FM_GetShiftState [10:59:09]SAM_PROTO_GetShiftState [10:59:09]wFMCommunicate request_size=4 [10:59:09]MH_SAM_APDU [10:59:09]CAPDU: 80 13 01 00 [10:59:09]Write to MH i2c: E2 08 00 C4 40 80 13 01 00 00 00 00 00 81 [10:59:09]Write i2c OK [10:59:09]MH_I2C_Read... [10:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:09]Read from MH i2c: E2 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 0E 00 [10:59:09]MH_I2C_Read... [10:59:09]Read from MH i2c: E2 0E 00 C4 40 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8A [10:59:09]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [10:59:09]wFMCommunicate OK [10:59:09]SAM_PROTO_GetShiftState done [10:59:09]FM_GetShiftState done [10:59:09]req_shift_opened done [10:59:09]requested_item shift.open_date is exist - process it [10:59:09]req_shift_open_date [10:59:09]req_shift_open_date done [10:59:09]produce_requested_data done [10:59:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165968,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [10:59:09]process_action_free close_receipt [10:59:09]json_value_free [10:59:09]json_value_free done [10:59:09]process_json_proto returns [10:59:09]Send response to host [10:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165968,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [10:59:09]free response buf [10:59:09]execute_script done [10:59:09]execute_script returns [10:59:09]free content buf [10:59:09]Sock 5.Close socket [10:59:09]Sock 5.Thread stoped [10:59:13]OFD Sender: No OFD packet to send [10:59:18]OFD Sender: No OFD packet to send [10:59:23]OFD Sender: No OFD packet to send [10:59:28]OFD Sender: No OFD packet to send [10:59:33]OFD Sender: No OFD packet to send [10:59:38]OFD Sender: No OFD packet to send [10:59:43]OFD Sender: No OFD packet to send [10:59:48]OFD Sender: No OFD packet to send [10:59:53]OFD Sender: No OFD packet to send [10:59:58]OFD Sender: No OFD packet to send [11:00:03]OFD Sender: No OFD packet to send [11:00:08]OFD Sender: No OFD packet to send [11:00:13]OFD Sender: No OFD packet to send [11:00:17]accept exits with 6 [11:00:17]New connection [11:00:17]New thread 3066776932 created [11:00:17]Thread 3066920292 joined [11:00:17]Waiting for new connection... [11:00:17] Sock 6.Parse request [11:00:17]Sock 6.Check first char [11:00:17]Sock 6.First char is OK [11:00:17]request: POST /json_proto HTTP/1.0 [11:00:17]Method: POST [11:00:17]URL: /json_proto [11:00:17]Method is POST - this is cgi request [11:00:17]url: /json_proto [11:00:17]query_string will be loaded in cgi processing [11:00:17]execute_cgi json_proto POST (null) [11:00:17]execute_cgi path=json_proto method=POST [11:00:17]POST find Content-Length [11:00:17]Host: 172.17.53.195:8080 [11:00:17]Content-Length: 676 [11:00:17]Content-Type: application/json [11:00:17] [11:00:17]POST finish read [11:00:17]Found Content-Length = 676 [11:00:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:17]execute_script... [11:00: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)220539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:17]POST & json_proto [11:00:17]process_json_proto [11:00:17]json parsed OK: [11:00:17]protocol is kg_v1.0 [11:00:17]action value=close_receipt [11:00:17]process_action close_receipt [11:00:17]cmd_close_receipt [11:00:17]MH_GetDate [11:00:17]Write to MH i2c: F0 00 00 C5 40 F4 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: F0 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: F0 09 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: F0 09 00 C5 40 00 53 34 16 67 21 48 4A 65 19 [11:00:17]GetLastDocTimeStamp 1729508363 [11:00:17]current date 1729508435 [11:00:17]FM_GetShiftState [11:00:17]SAM_PROTO_GetShiftState [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 13 01 00 [11:00:17]Write to MH i2c: E2 08 00 C6 40 80 13 01 00 00 00 00 00 83 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0E 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0E 00 C6 40 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8C [11:00:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_GetShiftState done [11:00:17]FM_GetShiftState done [11:00:17]opened in 1729470944 [11:00:17]opened+sec_in_day 1729557344 [11:00:17]quantity*price = 99974 [11:00:17]sum+1 = 99975 [11:00:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 80 21.10.2024 11:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165969 ФПД: 145582423116410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165969&fm=145582423116410&tin=02508201610067®Number=0000000000091764&sum=99900 [11:00:18]StoreToDocumentArchive [11:00:18]shift 535 fd 165969 [11:00:18]save to /storage/0535/doc_00165969 [11:00:18]save last doc name /storage/0535/doc_00165969 to /storage/kkm_last_doc_name [11:00:18]save OK [11:00:18]Clear old archive folders... [11:00:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:00:18]tlvbuf is 014DA7B0 [11:00:18]SAM_PROTO_ClearQueue [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 09 00 00 [11:00:18]Write to MH i2c: E2 08 00 D3 40 80 09 00 00 00 00 00 00 85 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 03 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 03 00 D3 40 00 90 00 87 [11:00:18]RAPDU: 90 00 [11:00:18]wFMCommunicate OK [11:00:18]SAM_PROTO_ClearQueue done [11:00:18]KKMCreateOFDPacket [11:00:18]OFDProtocolAddRootSTLVToBuf [11:00:18]FM_MakeSignedData [11:00:18]FM_MakeSignedData [11:00:18]SAM_PROTO_SignData [11:00:18]wFMCommunicate request_size=4 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 0D 01 02 [11:00:18]Write to MH i2c: E2 08 00 D4 40 80 0D 01 02 00 00 00 00 8D [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:18]Read from MH i2c: E2 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 03 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: E2 03 00 D4 40 00 90 00 88 [11:00:18]RAPDU: 90 00 [11:00:18]wFMCommunicate OK [11:00:18]wFMCommunicate request_size=255 [11:00:18]MH_SAM_APDU [11:00:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 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 53 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 88 02 00 35 04 06 00 84 68 0C 9D [11:00:18]Write to MH i2c: E2 02 01 D5 40 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 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 53 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 88 02 00 35 04 06 00 84 68 0C 9D 00 00 CF [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 D5 40 00 90 00 89 [11:00:19]RAPDU: 90 00 [11:00:19]wFMCommunicate OK [11:00:19]wFMCommunicate request_size=7 [11:00:19]MH_SAM_APDU [11:00:19]CAPDU: 80 0D 02 02 02 8A 7A [11:00:19]Write to MH i2c: E2 0A 00 D6 40 80 0D 02 02 02 00 8A 7A 00 00 98 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 03 00 D6 40 00 90 00 8A [11:00:19]RAPDU: 90 00 [11:00:19]wFMCommunicate OK [11:00:19]wFMCommunicate request_size=4 [11:00:19]MH_SAM_APDU [11:00:19]CAPDU: 80 0D 03 02 [11:00:19]Write to MH i2c: E2 08 00 D7 40 80 0D 03 02 00 00 00 00 92 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 0B 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 0B 00 D7 40 00 5B EF DB 37 51 3F FB A4 90 00 1E [11:00:19]RAPDU: 5B EF DB 37 51 3F FB A4 90 00 [11:00:19]wFMCommunicate OK [11:00:19]SAM_PROTO_SignData done [11:00:19]FM_MakeSignedData done [11:00:19]CreateOFDProtocolMessage [11:00:19]wFMCommunicate request_size=4 [11:00:19]MH_SAM_APDU [11:00:19]CAPDU: 80 11 00 00 [11:00:19]Write to MH i2c: E2 08 00 D8 40 80 11 00 00 00 00 00 00 92 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:19]Read from MH i2c: E2 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 17 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: E2 17 00 D8 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [11:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:00:19]wFMCommunicate OK [11:00:19]CreateOFDProtocolMessage done [11:00:19]OFDSenderStorePacket 165969 [11:00:19]StoreOFDPacket docnum=165969 [11:00:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC 57 04 01 0E F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 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 53 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 88 02 00 35 04 06 00 84 68 0C 9D 8A 7A 5B EF DB 37 51 3F FB A4 [11:00:19]CheckFolder [11:00:19]dirname=/storage/ofd_packets [11:00:19]CheckFolder done [11:00:19]ProducePacketName [11:00:19]name=ofd_packets/00165969 [11:00:19]NVStorageSaveData ofd_packets/00165969 [11:00:19]File name is /storage/ofd_packets/00165969 [11:00:19]Write 298 bytes [11:00:19]NVStorageSaveData done [11:00:19]OFDSenderStorePacket done [11:00:19]KKMCreateOFDPacket done [11:00:19]NVStorageSaveData kkm_last_timestamp [11:00:19]File name is /storage/kkm_last_timestamp [11:00:19]Write 4 bytes [11:00:19]NVStorageSaveData done [11:00:19]ExternCall_PrintAddStr [11:00:19]wPrintStart [11:00:19]Write to MH i2c: 01 00 00 D9 40 19 [11:00:19]Write i2c OK [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: 01 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: 01 07 00 [11:00:19]MH_I2C_Read... [11:00:19]Read from MH i2c: 01 07 00 D9 40 00 00 00 00 00 FF 0F 2E [11:00:19]RasterBufferAndPrint [11:00:19]line Счет N : (1)220539 [11:00:19]line ИНН: 02508201610067 [11:00:19]line Контрольно-Кассовый Чек [11:00:19]line ПРОДАЖА [11:00:19]line ТРК (МРК, ГНК) : 41 [11:00:19]line Товар: 2710194210 [11:00:19]line ДТ-К-5 [11:00:19]line 13.120 * 76.20 [11:00:19]line = 999.74 [11:00:19]line НДС 12% НСП 1% [11:00:19]line > о реализуемом товаре [11:00:19]line ОКРУГЛЕНИЕ: -0.74 [11:00:19]line ИТОГО: 999.00 [11:00:19]line Внесено: 1000.00 [11:00:19]line СДАЧА: 1.00 [11:00:19]line НСП 1% : 8.85 [11:00:19]line НДС 12% : 106.17 [11:00:19]line Наличными: 999.00 [11:00:19]line Безнал.: 0.00 [11:00:19]line Место: АЗС № 161 "Партнер Нефть" [11:00:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:00:19]line СНО: Общий режим [11:00:19]line Чек 80 21.10.2024 11:00 [11:00:19]line Смена: 535 ФФД: 1.0 [11:00:19]line ЗНМ: 0300000104 [11:00:19]line РНМ: 0000000000091764 [11:00:19]line Версия ККМ: 001 [11:00:19]line ФМ: 0000000000871759 [11:00:19]line ФД: 165969 [11:00:19]line ФПД: 145582423116410 [11:00:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165969&fm=145582423116410&tin=02508201610067®Number=0000000000091764&sum=99900 [11:00:19]OFD Sender: Processing packet 165969 [packets to send 48, broken 47] [11:00:19]ProducePacketName [11:00:19]name=ofd_packets/00165969 [11:00:19]OFD Sender: To server: pG, [11:00:19]CommunicateWithHost lk.salyk.kg:30040 [11:00:19]ConnectInit lk.salyk.kg [11:00:19]written 0, free lines is 4095 [11:00:19]Connected sock=7 [11:00:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BC 57 04 01 0E F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 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 53 34 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 88 02 00 35 04 06 00 84 68 0C 9D 8A 7A 5B EF DB 37 51 3F FB A4 [11:00:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 79 47 00 70 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 35 39 10 04 04 00 51 88 02 00 F4 03 04 00 C2 DA 15 67 B6 04 01 00 00 14 7A 86 EE 35 24 65 88 [11:00:19]CommunicateWithHost err = 0 [11:00:19]CheckOFDResponse [11:00:19]1017 (14) - 77093643461234 [11:00:19]1041 (16) - 0000000000871759 [11:00:19]1040 (4) - 165969 [11:00:19]1012 (4) - 21.10.2024 04:38 [11:00:19]1206 (1) - 0 [11:00:19]OFD Sender: Remove packet 165969 [11:00:19]ProducePacketName [11:00:19]name=ofd_packets/00165969 [11:00:19]NVStorageDeleteData [11:00:20]Write to MH i2c: 01 00 00 04 41 45 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 07 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 07 00 04 41 00 00 00 00 00 D6 0C 2E [11:00:20]RasterBufferAndPrint [11:00:20]line [11:00:20]line [11:00:20]line [11:00:20]line [11:00:20]line [11:00:20]written 0, free lines is 3295 [11:00:20]MH_Cut [11:00:20]Write to MH i2c: D1 01 00 0B 41 01 1E [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: D1 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: D1 01 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: D1 01 00 0B 41 00 1D [11:00:20]Write to MH i2c: 01 00 00 0C 41 4D [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]OFD Sender: No OFD packet to send [11:00:20]*** Cut start [11:00:20]*** Partial cut [11:00:20]*** CUTSNS_PIN = 1 [11:00:20]*** CUTSNS_PIN = 0 [11:00:21]*** Brake cut motor [11:00:21]Read from MH i2c: 01 [11:00:21]MH_I2C_Read... [11:00:21]*** Stop cut motor [11:00:21]*** Cut end [11:00:21]Read from MH i2c: 01 07 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: 01 07 00 0C 41 00 00 00 00 00 FF 0F 62 [11:00:21]process_action close_receipt done [11:00:21]requested_data is exist [11:00:21]produce_requested_data [11:00:21]requested_item fm.sn is exist - process it [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 11 00 00 [11:00:21]Write to MH i2c: E2 08 00 0D 41 80 11 00 00 00 00 00 00 C8 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 17 00 0D 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [11:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:00:21]wFMCommunicate OK [11:00:21]requested_item fd.num is exist - process it [11:00:21]SAM_PROTO_GetFieldsCounters [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 13 00 00 [11:00:21]Write to MH i2c: E2 08 00 0E 41 80 13 00 00 00 00 00 00 CB [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 62 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 62 00 0E 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [11:00:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_GetFieldsCounters done [11:00:21]requested_item shift.num is exist - process it [11:00:21]requested_item shift.opened is exist - process it [11:00:21]req_shift_opened [11:00:21]FM_GetShiftState [11:00:21]SAM_PROTO_GetShiftState [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 13 01 00 [11:00:21]Write to MH i2c: E2 08 00 0F 41 80 13 01 00 00 00 00 00 CD [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0E 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0E 00 0F 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D6 [11:00:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_GetShiftState done [11:00:21]FM_GetShiftState done [11:00:21]req_shift_opened done [11:00:21]requested_item shift.open_date is exist - process it [11:00:21]req_shift_open_date [11:00:21]req_shift_open_date done [11:00:21]produce_requested_data done [11:00:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165969,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:00:21]process_action_free close_receipt [11:00:21]json_value_free [11:00:21]json_value_free done [11:00:21]process_json_proto returns [11:00:21]Send response to host [11:00:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165969,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:00:21]free response buf [11:00:21]execute_script done [11:00:21]execute_script returns [11:00:21]free content buf [11:00:21]Sock 6.Close socket [11:00:21]Sock 6.Thread stoped [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:41]accept exits with 5 [11:03:41]New connection [11:03:41]New thread 3066920292 created [11:03:41]Thread 3066776932 joined [11:03:41]Waiting for new connection... [11:03:41] Sock 5.Parse request [11:03:41]Sock 5.Check first char [11:03:41]Sock 5.First char is OK [11:03:41]request: POST /json_proto HTTP/1.0 [11:03:41]Method: POST [11:03:41]URL: /json_proto [11:03:41]Method is POST - this is cgi request [11:03:41]url: /json_proto [11:03:41]query_string will be loaded in cgi processing [11:03:41]execute_cgi json_proto POST (null) [11:03:41]execute_cgi path=json_proto method=POST [11:03:41]POST find Content-Length [11:03:41]Host: 172.17.53.195:8080 [11:03:41]Content-Length: 682 [11:03:41]Content-Type: application/json [11:03:41] [11:03:41]POST finish read [11:03:41]Found Content-Length = 682 [11:03:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.830, "sum" : 1259.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1260.00, "total" : 1259.00, "payments": [ { "type": 0, "sum" : 1259.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:41]execute_script... [11: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)220540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 18.830, "sum" : 1259.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1260.00, "total" : 1259.00, "payments": [ { "type": 0, "sum" : 1259.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:41]POST & json_proto [11:03:41]process_json_proto [11:03:41]json parsed OK: [11:03:41]protocol is kg_v1.0 [11:03:41]action value=close_receipt [11:03:41]process_action close_receipt [11:03:41]cmd_close_receipt [11:03:41]MH_GetDate [11:03:41]Write to MH i2c: F0 00 00 10 41 40 [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: F0 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: F0 09 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: F0 09 00 10 41 00 1F 35 16 67 21 48 4A 65 32 [11:03:41]GetLastDocTimeStamp 1729508435 [11:03:41]current date 1729508639 [11:03:41]FM_GetShiftState [11:03:41]SAM_PROTO_GetShiftState [11:03:41]wFMCommunicate request_size=4 [11:03:41]MH_SAM_APDU [11:03:41]CAPDU: 80 13 01 00 [11:03:41]Write to MH i2c: E2 08 00 11 41 80 13 01 00 00 00 00 00 CF [11:03:41]Write i2c OK [11:03:41]MH_I2C_Read... [11:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:41]Read from MH i2c: E2 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 0E 00 [11:03:41]MH_I2C_Read... [11:03:41]Read from MH i2c: E2 0E 00 11 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D8 [11:03:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:03:41]wFMCommunicate OK [11:03:41]SAM_PROTO_GetShiftState done [11:03:41]FM_GetShiftState done [11:03:41]opened in 1729470944 [11:03:41]opened+sec_in_day 1729557344 [11:03:41]quantity*price = 125972 [11:03:41]sum+1 = 125974 [11:03:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1259.00 Внесено: 1260.00 СДАЧА: 1.00 НСП 1% : 11.15 НДС 12% : 133.78 Наличными: 1259.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 81 21.10.2024 11:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165970 ФПД: 119483920073409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165970&fm=119483920073409&tin=02508201610067®Number=0000000000091764&sum=125900 [11:03:42]StoreToDocumentArchive [11:03:42]shift 535 fd 165970 [11:03:42]save to /storage/0535/doc_00165970 [11:03:42]save last doc name /storage/0535/doc_00165970 to /storage/kkm_last_doc_name [11:03:42]save OK [11:03:42]Clear old archive folders... [11:03:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:03:42]tlvbuf is 0186B560 [11:03:42]SAM_PROTO_ClearQueue [11:03:42]wFMCommunicate request_size=4 [11:03:42]MH_SAM_APDU [11:03:42]CAPDU: 80 09 00 00 [11:03:42]Write to MH i2c: E2 08 00 1E 41 80 09 00 00 00 00 00 00 D1 [11:03:42]Write i2c OK [11:03:42]MH_I2C_Read... [11:03:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:42]Read from MH i2c: E2 [11:03:42]MH_I2C_Read... [11:03:42]Read from MH i2c: E2 03 00 [11:03:42]MH_I2C_Read... [11:03:42]Read from MH i2c: E2 03 00 1E 41 00 90 00 D3 [11:03:42]RAPDU: 90 00 [11:03:42]wFMCommunicate OK [11:03:42]SAM_PROTO_ClearQueue done [11:03:42]KKMCreateOFDPacket [11:03:42]OFDProtocolAddRootSTLVToBuf [11:03:42]FM_MakeSignedData [11:03:42]FM_MakeSignedData [11:03:42]SAM_PROTO_SignData [11:03:42]wFMCommunicate request_size=4 [11:03:42]MH_SAM_APDU [11:03:42]CAPDU: 80 0D 01 02 [11:03:42]Write to MH i2c: E2 08 00 1F 41 80 0D 01 02 00 00 00 00 D9 [11:03:42]Write i2c OK [11:03:42]MH_I2C_Read... [11:03:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:42]Read from MH i2c: E2 [11:03:42]MH_I2C_Read... [11:03:42]Read from MH i2c: E2 03 00 [11:03:42]MH_I2C_Read... [11:03:42]Read from MH i2c: E2 03 00 1F 41 00 90 00 D4 [11:03:42]RAPDU: 90 00 [11:03:42]wFMCommunicate OK [11:03:42]wFMCommunicate request_size=255 [11:03:42]MH_SAM_APDU [11:03:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 15 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 34 00 00 00 00 07 04 06 00 CC EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1F 35 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 88 02 00 35 04 06 00 6C [11:03:42]Write to MH i2c: E2 02 01 20 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 15 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 34 00 00 00 00 07 04 06 00 CC EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1F 35 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 88 02 00 35 04 06 00 6C 00 00 C7 [11:03:42]Write i2c OK [11:03:42]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 03 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 03 00 20 41 00 90 00 D5 [11:03:43]RAPDU: 90 00 [11:03:43]wFMCommunicate OK [11:03:43]wFMCommunicate request_size=10 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 0D 02 02 05 AB 84 9C C2 C1 [11:03:43]Write to MH i2c: E2 0D 00 21 41 80 0D 02 02 05 00 AB 84 9C C2 C1 00 00 34 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 03 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 03 00 21 41 00 90 00 D6 [11:03:43]RAPDU: 90 00 [11:03:43]wFMCommunicate OK [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 0D 03 02 [11:03:43]Write to MH i2c: E2 08 00 22 41 80 0D 03 02 00 00 00 00 DE [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0B 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 0B 00 22 41 00 FE 14 7B F9 11 33 86 37 90 00 66 [11:03:43]RAPDU: FE 14 7B F9 11 33 86 37 90 00 [11:03:43]wFMCommunicate OK [11:03:43]SAM_PROTO_SignData done [11:03:43]FM_MakeSignedData done [11:03:43]CreateOFDProtocolMessage [11:03:43]wFMCommunicate request_size=4 [11:03:43]MH_SAM_APDU [11:03:43]CAPDU: 80 11 00 00 [11:03:43]Write to MH i2c: E2 08 00 23 41 80 11 00 00 00 00 00 00 DE [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:43]Read from MH i2c: E2 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 17 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: E2 17 00 23 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [11:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:03:43]wFMCommunicate OK [11:03:43]CreateOFDProtocolMessage done [11:03:43]OFDSenderStorePacket 165970 [11:03:43]StoreOFDPacket docnum=165970 [11:03:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB 9B 07 01 BF 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 8E 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 15 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 34 00 00 00 00 07 04 06 00 CC EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1F 35 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 88 02 00 35 04 06 00 6C AB 84 9C C2 C1 FE 14 7B F9 11 33 86 37 [11:03:43]CheckFolder [11:03:43]dirname=/storage/ofd_packets [11:03:43]CheckFolder done [11:03:43]ProducePacketName [11:03:43]name=ofd_packets/00165970 [11:03:43]NVStorageSaveData ofd_packets/00165970 [11:03:43]File name is /storage/ofd_packets/00165970 [11:03:43]Write 301 bytes [11:03:43]NVStorageSaveData done [11:03:43]OFDSenderStorePacket done [11:03:43]KKMCreateOFDPacket done [11:03:43]NVStorageSaveData kkm_last_timestamp [11:03:43]File name is /storage/kkm_last_timestamp [11:03:43]Write 4 bytes [11:03:43]NVStorageSaveData done [11:03:43]ExternCall_PrintAddStr [11:03:43]wPrintStart [11:03:43]Write to MH i2c: 01 00 00 24 41 65 [11:03:43]Write i2c OK [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: 01 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: 01 07 00 [11:03:43]MH_I2C_Read... [11:03:43]Read from MH i2c: 01 07 00 24 41 00 00 00 00 00 FF 0F 7A [11:03:43]RasterBufferAndPrint [11:03:43]line Счет N : (1)220540 [11:03:43]line ИНН: 02508201610067 [11:03:43]line Контрольно-Кассовый Чек [11:03:43]line ПРОДАЖА [11:03:43]line ТРК (МРК, ГНК) : 13 [11:03:43]line Товар: 2710124130 [11:03:43]line Аи-92-К-5 [11:03:43]line 18.830 * 66.90 [11:03:43]line = 1259.73 [11:03:43]line НДС 12% НСП 1% [11:03:43]line > о реализуемом товаре [11:03:43]line ОКРУГЛЕНИЕ: -0.73 [11:03:43]line ИТОГО: 1259.00 [11:03:43]line Внесено: 1260.00 [11:03:43]line СДАЧА: 1.00 [11:03:43]line НСП 1% : 11.15 [11:03:43]line НДС 12% : 133.78 [11:03:43]line Наличными: 1259.00 [11:03:43]line Безнал.: 0.00 [11:03:43]line Место: АЗС № 161 "Партнер Нефть" [11:03:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:03:43]line СНО: Общий режим [11:03:43]line Чек 81 21.10.2024 11:03 [11:03:43]line Смена: 535 ФФД: 1.0 [11:03:43]line ЗНМ: 0300000104 [11:03:43]line РНМ: 0000000000091764 [11:03:43]line Версия ККМ: 001 [11:03:43]line ФМ: 0000000000871759 [11:03:43]line ФД: 165970 [11:03:43]line ФПД: 119483920073409 [11:03:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165970&fm=119483920073409&tin=02508201610067®Number=0000000000091764&sum=125900 [11:03:43]OFD Sender: Processing packet 165970 [packets to send 48, broken 47] [11:03:43]ProducePacketName [11:03:43]name=ofd_packets/00165970 [11:03:43]OFD Sender: To server: pG, [11:03:43]CommunicateWithHost lk.salyk.kg:30040 [11:03:43]ConnectInit lk.salyk.kg [11:03:43]written 0, free lines is 4095 [11:03:43]Connected sock=7 [11: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 35 39 0F 01 00 00 AB 9B 07 01 BF 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 8E 49 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 15 EC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC EB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 34 00 00 00 00 07 04 06 00 CC EB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1F 35 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 88 02 00 35 04 06 00 6C AB 84 9C C2 C1 FE 14 7B F9 11 33 86 37 [11:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2C 5B 47 00 58 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 35 39 10 04 04 00 52 88 02 00 F4 03 04 00 8E DB 15 67 B6 04 01 00 00 77 97 F0 65 F3 18 85 DC [11:03:44]CommunicateWithHost err = 0 [11:03:44]CheckOFDResponse [11:03:44]1017 (14) - 77093643461234 [11:03:44]1041 (16) - 0000000000871759 [11:03:44]1040 (4) - 165970 [11:03:44]1012 (4) - 21.10.2024 04:41 [11:03:44]1206 (1) - 0 [11:03:44]OFD Sender: Remove packet 165970 [11:03:44]ProducePacketName [11:03:44]name=ofd_packets/00165970 [11:03:44]NVStorageDeleteData [11:03:44]Write to MH i2c: 01 00 00 4F 41 90 [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: 01 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: 01 07 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: 01 07 00 4F 41 00 00 00 00 00 D0 0C 73 [11:03:44]RasterBufferAndPrint [11:03:44]line [11:03:44]line [11:03:44]line [11:03:44]line [11:03:44]line [11:03:44]written 0, free lines is 3286 [11:03:44]MH_Cut [11:03:44]Write to MH i2c: D1 01 00 56 41 01 69 [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: D1 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: D1 01 00 [11:03:44]MH_I2C_Read... [11:03:44]Read from MH i2c: D1 01 00 56 41 00 68 [11:03:44]Write to MH i2c: 01 00 00 57 41 98 [11:03:44]Write i2c OK [11:03:44]MH_I2C_Read... [11:03:44]OFD Sender: No OFD packet to send [11:03:44]*** Cut start [11:03:44]*** Partial cut [11:03:44]*** CUTSNS_PIN = 1 [11:03:44]*** CUTSNS_PIN = 0 [11:03:45]*** Brake cut motor [11:03:45]Read from MH i2c: 01 [11:03:45]MH_I2C_Read... [11:03:45]*** Stop cut motor [11:03:45]*** Cut end [11:03:45]Read from MH i2c: 01 07 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: 01 07 00 57 41 00 00 00 00 00 FF 0F AD [11:03:45]process_action close_receipt done [11:03:45]requested_data is exist [11:03:45]produce_requested_data [11:03:45]requested_item fm.sn is exist - process it [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 11 00 00 [11:03:45]Write to MH i2c: E2 08 00 58 41 80 11 00 00 00 00 00 00 13 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 17 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 17 00 58 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [11:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:03:45]wFMCommunicate OK [11:03:45]requested_item fd.num is exist - process it [11:03:45]SAM_PROTO_GetFieldsCounters [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 13 00 00 [11:03:45]Write to MH i2c: E2 08 00 59 41 80 13 00 00 00 00 00 00 16 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 62 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 62 00 59 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [11: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:45]wFMCommunicate OK [11:03:45]SAM_PROTO_GetFieldsCounters done [11:03:45]requested_item shift.num is exist - process it [11:03:45]requested_item shift.opened is exist - process it [11:03:45]req_shift_opened [11:03:45]FM_GetShiftState [11:03:45]SAM_PROTO_GetShiftState [11:03:45]wFMCommunicate request_size=4 [11:03:45]MH_SAM_APDU [11:03:45]CAPDU: 80 13 01 00 [11:03:45]Write to MH i2c: E2 08 00 5A 41 80 13 01 00 00 00 00 00 18 [11:03:45]Write i2c OK [11:03:45]MH_I2C_Read... [11:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:45]Read from MH i2c: E2 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 0E 00 [11:03:45]MH_I2C_Read... [11:03:45]Read from MH i2c: E2 0E 00 5A 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 21 [11:03:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:03:45]wFMCommunicate OK [11:03:45]SAM_PROTO_GetShiftState done [11:03:45]FM_GetShiftState done [11:03:45]req_shift_opened done [11:03:45]requested_item shift.open_date is exist - process it [11:03:45]req_shift_open_date [11:03:45]req_shift_open_date done [11:03:45]produce_requested_data done [11:03:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165970,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:03:45]process_action_free close_receipt [11:03:45]json_value_free [11:03:45]json_value_free done [11:03:45]process_json_proto returns [11:03:45]Send response to host [11:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165970,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:03:45]free response buf [11:03:45]execute_script done [11:03:45]execute_script returns [11:03:45]free content buf [11:03:45]Sock 5.Close socket [11:03:45]Sock 5.Thread stoped [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:59]OFD Sender: No OFD packet to send [11:04:04]OFD Sender: No OFD packet to send [11:04:09]OFD Sender: No OFD packet to send [11:04:14]OFD Sender: No OFD packet to send [11:04:19]OFD Sender: No OFD packet to send [11:04:24]OFD Sender: No OFD packet to send [11:04:29]OFD Sender: No OFD packet to send [11:04:34]OFD Sender: No OFD packet to send [11:04:39]OFD Sender: No OFD packet to send [11:04:44]OFD Sender: No OFD packet to send [11:04:49]OFD Sender: No OFD packet to send [11:04:54]OFD Sender: No OFD packet to send [11:04:59]OFD Sender: No OFD packet to send [11:05:04]OFD Sender: No OFD packet to send [11:05:09]OFD Sender: No OFD packet to send [11:05:14]OFD Sender: No OFD packet to send [11:05:19]OFD Sender: No OFD packet to send [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:26]accept exits with 6 [11:09:26]New connection [11:09:26]New thread 3066776932 created [11:09:26]Thread 3066920292 joined [11:09:26]Waiting for new connection... [11:09:26] Sock 6.Parse request [11:09:26]Sock 6.Check first char [11:09:26]Sock 6.First char is OK [11:09:26]request: POST /json_proto HTTP/1.0 [11:09:26]Method: POST [11:09:26]URL: /json_proto [11:09:26]Method is POST - this is cgi request [11:09:26]url: /json_proto [11:09:26]query_string will be loaded in cgi processing [11:09:26]execute_cgi json_proto POST (null) [11:09:26]execute_cgi path=json_proto method=POST [11:09:26]POST find Content-Length [11:09:26]Host: 172.17.53.195:8080 [11:09:26]Content-Length: 677 [11:09:26]Content-Type: application/json [11:09:26] [11:09:26]POST finish read [11:09:26]Found Content-Length = 677 [11:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:26]execute_script... [11:09:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:26]POST & json_proto [11:09:26]process_json_proto [11:09:26]json parsed OK: [11:09:26]protocol is kg_v1.0 [11:09:26]action value=close_receipt [11:09:26]process_action close_receipt [11:09:26]cmd_close_receipt [11:09:26]MH_GetDate [11:09:26]Write to MH i2c: F0 00 00 5B 41 8B [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: F0 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: F0 09 00 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: F0 09 00 5B 41 00 78 36 16 67 21 48 4A 65 D7 [11:09:26]GetLastDocTimeStamp 1729508639 [11:09:26]current date 1729508984 [11:09:26]FM_GetShiftState [11:09:26]SAM_PROTO_GetShiftState [11:09:26]wFMCommunicate request_size=4 [11:09:26]MH_SAM_APDU [11:09:26]CAPDU: 80 13 01 00 [11:09:26]Write to MH i2c: E2 08 00 5C 41 80 13 01 00 00 00 00 00 1A [11:09:26]Write i2c OK [11:09:26]MH_I2C_Read... [11:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:26]Read from MH i2c: E2 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: E2 0E 00 [11:09:26]MH_I2C_Read... [11:09:26]Read from MH i2c: E2 0E 00 5C 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 23 [11:09:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:09:26]wFMCommunicate OK [11:09:26]SAM_PROTO_GetShiftState done [11:09:26]FM_GetShiftState done [11:09:26]opened in 1729470944 [11:09:26]opened+sec_in_day 1729557344 [11:09:26]quantity*price = 40006 [11:09:26]sum+1 = 40007 [11:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 82 21.10.2024 11:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165971 ФПД: 239137910835869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110944&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165971&fm=239137910835869&tin=02508201610067®Number=0000000000091764&sum=40000 [11:09:27]StoreToDocumentArchive [11:09:27]shift 535 fd 165971 [11:09:27]save to /storage/0535/doc_00165971 [11:09:27]save last doc name /storage/0535/doc_00165971 to /storage/kkm_last_doc_name [11:09:27]save OK [11:09:27]Clear old archive folders... [11:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:27]tlvbuf is 01456520 [11:09:27]SAM_PROTO_ClearQueue [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 09 00 00 [11:09:27]Write to MH i2c: E2 08 00 69 41 80 09 00 00 00 00 00 00 1C [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 03 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 03 00 69 41 00 90 00 1E [11:09:27]RAPDU: 90 00 [11:09:27]wFMCommunicate OK [11:09:27]SAM_PROTO_ClearQueue done [11:09:27]KKMCreateOFDPacket [11:09:27]OFDProtocolAddRootSTLVToBuf [11:09:27]FM_MakeSignedData [11:09:27]FM_MakeSignedData [11:09:27]SAM_PROTO_SignData [11:09:27]wFMCommunicate request_size=4 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 0D 01 02 [11:09:27]Write to MH i2c: E2 08 00 6A 41 80 0D 01 02 00 00 00 00 24 [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:27]Read from MH i2c: E2 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 03 00 [11:09:27]MH_I2C_Read... [11:09:27]Read from MH i2c: E2 03 00 6A 41 00 90 00 1F [11:09:27]RAPDU: 90 00 [11:09:27]wFMCommunicate OK [11:09:27]wFMCommunicate request_size=255 [11:09:27]MH_SAM_APDU [11:09:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 88 02 00 35 04 06 00 D9 [11:09:27]Write to MH i2c: E2 02 01 6B 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 88 02 00 35 04 06 00 D9 00 00 D5 [11:09:27]Write i2c OK [11:09:27]MH_I2C_Read... [11:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:28]Read from MH i2c: E2 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 03 00 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 03 00 6B 41 00 90 00 20 [11:09:28]RAPDU: 90 00 [11:09:28]wFMCommunicate OK [11:09:28]wFMCommunicate request_size=10 [11:09:28]MH_SAM_APDU [11:09:28]CAPDU: 80 0D 02 02 05 7E A2 3A 4A 9D [11:09:28]Write to MH i2c: E2 0D 00 6C 41 80 0D 02 02 05 00 7E A2 3A 4A 9D 00 00 72 [11:09:28]Write i2c OK [11:09:28]MH_I2C_Read... [11:09:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:28]Read from MH i2c: E2 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 03 00 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 03 00 6C 41 00 90 00 21 [11:09:28]RAPDU: 90 00 [11:09:28]wFMCommunicate OK [11:09:28]wFMCommunicate request_size=4 [11:09:28]MH_SAM_APDU [11:09:28]CAPDU: 80 0D 03 02 [11:09:28]Write to MH i2c: E2 08 00 6D 41 80 0D 03 02 00 00 00 00 29 [11:09:28]Write i2c OK [11:09:28]MH_I2C_Read... [11:09:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:28]Read from MH i2c: E2 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 0B 00 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 0B 00 6D 41 00 8D F9 8C 5B D6 94 DF 10 90 00 F0 [11:09:28]RAPDU: 8D F9 8C 5B D6 94 DF 10 90 00 [11:09:28]wFMCommunicate OK [11:09:28]SAM_PROTO_SignData done [11:09:28]FM_MakeSignedData done [11:09:28]CreateOFDProtocolMessage [11:09:28]wFMCommunicate request_size=4 [11:09:28]MH_SAM_APDU [11:09:28]CAPDU: 80 11 00 00 [11:09:28]Write to MH i2c: E2 08 00 6E 41 80 11 00 00 00 00 00 00 29 [11:09:28]Write i2c OK [11:09:28]MH_I2C_Read... [11:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:28]Read from MH i2c: E2 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 17 00 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: E2 17 00 6E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [11:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:09:28]wFMCommunicate OK [11:09:28]CreateOFDProtocolMessage done [11:09:28]OFDSenderStorePacket 165971 [11:09:28]StoreOFDPacket docnum=165971 [11:09:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9A 00 07 01 A4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 88 02 00 35 04 06 00 D9 7E A2 3A 4A 9D 8D F9 8C 5B D6 94 DF 10 [11:09:28]CheckFolder [11:09:28]dirname=/storage/ofd_packets [11:09:28]CheckFolder done [11:09:28]ProducePacketName [11:09:28]name=ofd_packets/00165971 [11:09:28]NVStorageSaveData ofd_packets/00165971 [11:09:28]File name is /storage/ofd_packets/00165971 [11:09:28]Write 301 bytes [11:09:28]NVStorageSaveData done [11:09:28]OFDSenderStorePacket done [11:09:28]KKMCreateOFDPacket done [11:09:28]NVStorageSaveData kkm_last_timestamp [11:09:28]File name is /storage/kkm_last_timestamp [11:09:28]Write 4 bytes [11:09:28]NVStorageSaveData done [11:09:28]ExternCall_PrintAddStr [11:09:28]wPrintStart [11:09:28]Write to MH i2c: 01 00 00 6F 41 B0 [11:09:28]Write i2c OK [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: 01 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: 01 07 00 [11:09:28]MH_I2C_Read... [11:09:28]Read from MH i2c: 01 07 00 6F 41 00 00 00 00 00 FF 0F C5 [11:09:28]RasterBufferAndPrint [11:09:28]line Счет N : (1)220542 [11:09:28]line ИНН: 02508201610067 [11:09:28]line Контрольно-Кассовый Чек [11:09:28]line ПРОДАЖА [11:09:28]line ТРК (МРК, ГНК) : 23 [11:09:28]line Товар: 2710124130 [11:09:28]line Аи-92-К-5 [11:09:28]line 5.980 * 66.90 [11:09:28]line = 400.06 [11:09:28]line НДС 12% НСП 1% [11:09:28]line > о реализуемом товаре [11:09:28]line ОКРУГЛЕНИЕ: -0.06 [11:09:28]line ИТОГО: 400.00 [11:09:28]line Внесено: 400.00 [11:09:28]line СДАЧА: 0.00 [11:09:28]line НСП 1% : 3.54 [11:09:28]line НДС 12% : 42.48 [11:09:28]line Наличными: 400.00 [11:09:28]line Безнал.: 0.00 [11:09:28]line Место: АЗС № 161 "Партнер Нефть" [11:09:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:09:28]line СНО: Общий режим [11:09:28]line Чек 82 21.10.2024 11:09 [11:09:28]line Смена: 535 ФФД: 1.0 [11:09:28]line ЗНМ: 0300000104 [11:09:28]line РНМ: 0000000000091764 [11:09:28]line Версия ККМ: 001 [11:09:28]line ФМ: 0000000000871759 [11:09:28]line ФД: 165971 [11:09:28]line ФПД: 239137910835869 [11:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110944&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165971&fm=239137910835869&tin=02508201610067®Number=0000000000091764&sum=40000 [11:09:28]OFD Sender: Processing packet 165971 [packets to send 48, broken 47] [11:09:28]ProducePacketName [11:09:28]name=ofd_packets/00165971 [11:09:28]OFD Sender: To server: pG, [11:09:28]CommunicateWithHost lk.salyk.kg:30040 [11:09:28]ConnectInit lk.salyk.kg [11:09:28]written 0, free lines is 4095 [11:09:28]Connected sock=7 [11:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9A 00 07 01 A4 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 88 02 00 35 04 06 00 D9 7E A2 3A 4A 9D 8D F9 8C 5B D6 94 DF 10 [11:09:29]Write to MH i2c: 01 00 00 9A 41 DB [11:09:29]Write i2c OK [11:09:29]MH_I2C_Read... [11:09:29]Read from MH i2c: 01 [11:09:29]MH_I2C_Read... [11:09:29]Read from MH i2c: 01 07 00 [11:09:29]MH_I2C_Read... [11:09:29]Read from MH i2c: 01 07 00 9A 41 00 00 00 00 00 EA 0C D8 [11:09:29]RasterBufferAndPrint [11:09:29]line [11:09:29]line [11:09:29]line [11:09:29]line [11:09:29]line [11:09:29]written 0, free lines is 3315 [11:09:29]MH_Cut [11:09:29]Write to MH i2c: D1 01 00 A1 41 01 B4 [11:09:29]Write i2c OK [11:09:29]MH_I2C_Read... [11:09:29]Read from MH i2c: D1 [11:09:29]MH_I2C_Read... [11:09:29]Read from MH i2c: D1 01 00 [11:09:29]MH_I2C_Read... [11:09:29]Read from MH i2c: D1 01 00 A1 41 00 B3 [11:09:29]Write to MH i2c: 01 00 00 A2 41 E3 [11:09:29]Write i2c OK [11:09:29]MH_I2C_Read... [11: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 35 39 4F 00 00 00 A2 B3 47 00 CD 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 35 39 10 04 04 00 53 88 02 00 F4 03 04 00 E7 DC 15 67 B6 04 01 00 00 64 C2 6E D0 F3 5B 25 43 [11:09:29]CommunicateWithHost err = 0 [11:09:29]CheckOFDResponse [11:09:29]1017 (14) - 77093643461234 [11:09:29]1041 (16) - 0000000000871759 [11:09:29]1040 (4) - 165971 [11:09:29]1012 (4) - 21.10.2024 04:47 [11:09:29]1206 (1) - 0 [11:09:29]OFD Sender: Remove packet 165971 [11:09:29]ProducePacketName [11:09:29]name=ofd_packets/00165971 [11:09:29]NVStorageDeleteData [11:09:29]OFD Sender: No OFD packet to send [11:09:29]*** Cut start [11:09:29]*** Partial cut [11:09:29]*** CUTSNS_PIN = 1 [11:09:29]*** CUTSNS_PIN = 0 [11:09:30]*** Brake cut motor [11:09:30]Read from MH i2c: 01 [11:09:30]MH_I2C_Read... [11:09:30]*** Stop cut motor [11:09:30]*** Cut end [11:09:30]Read from MH i2c: 01 07 00 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: 01 07 00 A2 41 00 00 00 00 00 FF 0F F8 [11:09:30]process_action close_receipt done [11:09:30]requested_data is exist [11:09:30]produce_requested_data [11:09:30]requested_item fm.sn is exist - process it [11:09:30]wFMCommunicate request_size=4 [11:09:30]MH_SAM_APDU [11:09:30]CAPDU: 80 11 00 00 [11:09:30]Write to MH i2c: E2 08 00 A3 41 80 11 00 00 00 00 00 00 5E [11:09:30]Write i2c OK [11:09:30]MH_I2C_Read... [11:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:30]Read from MH i2c: E2 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: E2 17 00 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: E2 17 00 A3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [11:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:09:30]wFMCommunicate OK [11:09:30]requested_item fd.num is exist - process it [11:09:30]SAM_PROTO_GetFieldsCounters [11:09:30]wFMCommunicate request_size=4 [11:09:30]MH_SAM_APDU [11:09:30]CAPDU: 80 13 00 00 [11:09:30]Write to MH i2c: E2 08 00 A4 41 80 13 00 00 00 00 00 00 61 [11:09:30]Write i2c OK [11:09:30]MH_I2C_Read... [11:09:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:30]Read from MH i2c: E2 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: E2 62 00 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: E2 62 00 A4 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [11:09:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:30]wFMCommunicate OK [11:09:30]SAM_PROTO_GetFieldsCounters done [11:09:30]requested_item shift.num is exist - process it [11:09:30]requested_item shift.opened is exist - process it [11:09:30]req_shift_opened [11:09:30]FM_GetShiftState [11:09:30]SAM_PROTO_GetShiftState [11:09:30]wFMCommunicate request_size=4 [11:09:30]MH_SAM_APDU [11:09:30]CAPDU: 80 13 01 00 [11:09:30]Write to MH i2c: E2 08 00 A5 41 80 13 01 00 00 00 00 00 63 [11:09:30]Write i2c OK [11:09:30]MH_I2C_Read... [11:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:30]Read from MH i2c: E2 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: E2 0E 00 [11:09:30]MH_I2C_Read... [11:09:30]Read from MH i2c: E2 0E 00 A5 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6C [11:09:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:09:30]wFMCommunicate OK [11:09:30]SAM_PROTO_GetShiftState done [11:09:30]FM_GetShiftState done [11:09:30]req_shift_opened done [11:09:30]requested_item shift.open_date is exist - process it [11:09:30]req_shift_open_date [11:09:30]req_shift_open_date done [11:09:30]produce_requested_data done [11:09:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165971,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:09:30]process_action_free close_receipt [11:09:30]json_value_free [11:09:30]json_value_free done [11:09:30]process_json_proto returns [11:09:30]Send response to host [11:09:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165971,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:09:30]free response buf [11:09:30]execute_script done [11:09:30]execute_script returns [11:09:30]free content buf [11:09:30]Sock 6.Close socket [11:09:30]Sock 6.Thread stoped [11:09:31]accept exits with 5 [11:09:31]New connection [11:09:31]New thread 3066920292 created [11:09:31]Thread 3066776932 joined [11:09:31]Waiting for new connection... [11:09:31] Sock 5.Parse request [11:09:31]Sock 5.Check first char [11:09:31]Sock 5.First char is OK [11:09:31]request: POST /json_proto HTTP/1.0 [11:09:31]Method: POST [11:09:31]URL: /json_proto [11:09:31]Method is POST - this is cgi request [11:09:31]url: /json_proto [11:09:31]query_string will be loaded in cgi processing [11:09:31]execute_cgi json_proto POST (null) [11:09:31]execute_cgi path=json_proto method=POST [11:09:31]POST find Content-Length [11:09:31]Host: 172.17.53.195:8080 [11:09:31]Content-Length: 677 [11:09:31]Content-Type: application/json [11:09:31] [11:09:31]POST finish read [11:09:31]Found Content-Length = 677 [11:09:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:31]execute_script... [11:09: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)220541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:31]POST & json_proto [11:09:31]process_json_proto [11:09:31]json parsed OK: [11:09:31]protocol is kg_v1.0 [11:09:31]action value=close_receipt [11:09:31]process_action close_receipt [11:09:31]cmd_close_receipt [11:09:31]MH_GetDate [11:09:31]Write to MH i2c: F0 00 00 A6 41 D6 [11:09:31]Write i2c OK [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 09 00 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: F0 09 00 A6 41 00 7C 36 16 67 21 48 4A 65 26 [11:09:31]GetLastDocTimeStamp 1729508984 [11:09:31]current date 1729508988 [11:09:31]FM_GetShiftState [11:09:31]SAM_PROTO_GetShiftState [11:09:31]wFMCommunicate request_size=4 [11:09:31]MH_SAM_APDU [11:09:31]CAPDU: 80 13 01 00 [11:09:31]Write to MH i2c: E2 08 00 A7 41 80 13 01 00 00 00 00 00 65 [11:09:31]Write i2c OK [11:09:31]MH_I2C_Read... [11:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:31]Read from MH i2c: E2 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: E2 0E 00 [11:09:31]MH_I2C_Read... [11:09:31]Read from MH i2c: E2 0E 00 A7 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6E [11:09:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:09:31]wFMCommunicate OK [11:09:31]SAM_PROTO_GetShiftState done [11:09:31]FM_GetShiftState done [11:09:31]opened in 1729470944 [11:09:31]opened+sec_in_day 1729557344 [11:09:31]quantity*price = 40006 [11:09:31]sum+1 = 40007 [11:09:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 83 21.10.2024 11:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165972 ФПД: 102189915167280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110948&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165972&fm=102189915167280&tin=02508201610067®Number=0000000000091764&sum=40000 [11:09:32]StoreToDocumentArchive [11:09:32]shift 535 fd 165972 [11:09:32]save to /storage/0535/doc_00165972 [11:09:32]save last doc name /storage/0535/doc_00165972 to /storage/kkm_last_doc_name [11:09:32]save OK [11:09:32]Clear old archive folders... [11:09:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:32]tlvbuf is 0194FCC0 [11:09:32]SAM_PROTO_ClearQueue [11:09:32]wFMCommunicate request_size=4 [11:09:32]MH_SAM_APDU [11:09:32]CAPDU: 80 09 00 00 [11:09:32]Write to MH i2c: E2 08 00 B4 41 80 09 00 00 00 00 00 00 67 [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:32]Read from MH i2c: E2 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 B4 41 00 90 00 69 [11:09:32]RAPDU: 90 00 [11:09:32]wFMCommunicate OK [11:09:32]SAM_PROTO_ClearQueue done [11:09:32]KKMCreateOFDPacket [11:09:32]OFDProtocolAddRootSTLVToBuf [11:09:32]FM_MakeSignedData [11:09:32]FM_MakeSignedData [11:09:32]SAM_PROTO_SignData [11:09:32]wFMCommunicate request_size=4 [11:09:32]MH_SAM_APDU [11:09:32]CAPDU: 80 0D 01 02 [11:09:32]Write to MH i2c: E2 08 00 B5 41 80 0D 01 02 00 00 00 00 6F [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:32]Read from MH i2c: E2 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 [11:09:32]MH_I2C_Read... [11:09:32]Read from MH i2c: E2 03 00 B5 41 00 90 00 6A [11:09:32]RAPDU: 90 00 [11:09:32]wFMCommunicate OK [11:09:32]wFMCommunicate request_size=255 [11:09:32]MH_SAM_APDU [11:09:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 88 02 00 35 04 06 00 5C [11:09:32]Write to MH i2c: E2 02 01 B6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 88 02 00 35 04 06 00 5C 00 00 A9 [11:09:32]Write i2c OK [11:09:32]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 B6 41 00 90 00 6B [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=10 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 02 02 05 F0 F1 97 DA 30 [11:09:33]Write to MH i2c: E2 0D 00 B7 41 80 0D 02 02 05 00 F0 F1 97 DA 30 00 00 FE [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 03 00 B7 41 00 90 00 6C [11:09:33]RAPDU: 90 00 [11:09:33]wFMCommunicate OK [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 0D 03 02 [11:09:33]Write to MH i2c: E2 08 00 B8 41 80 0D 03 02 00 00 00 00 74 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0B 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 0B 00 B8 41 00 4E 32 B7 5D DE 7F 6B 7A 90 00 4B [11:09:33]RAPDU: 4E 32 B7 5D DE 7F 6B 7A 90 00 [11:09:33]wFMCommunicate OK [11:09:33]SAM_PROTO_SignData done [11:09:33]FM_MakeSignedData done [11:09:33]CreateOFDProtocolMessage [11:09:33]wFMCommunicate request_size=4 [11:09:33]MH_SAM_APDU [11:09:33]CAPDU: 80 11 00 00 [11:09:33]Write to MH i2c: E2 08 00 B9 41 80 11 00 00 00 00 00 00 74 [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:33]Read from MH i2c: E2 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 17 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: E2 17 00 B9 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [11:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:09:33]wFMCommunicate OK [11:09:33]CreateOFDProtocolMessage done [11:09:33]OFDSenderStorePacket 165972 [11:09:33]StoreOFDPacket docnum=165972 [11:09:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA A0 07 01 18 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 88 02 00 35 04 06 00 5C F0 F1 97 DA 30 4E 32 B7 5D DE 7F 6B 7A [11:09:33]CheckFolder [11:09:33]dirname=/storage/ofd_packets [11:09:33]CheckFolder done [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00165972 [11:09:33]NVStorageSaveData ofd_packets/00165972 [11:09:33]File name is /storage/ofd_packets/00165972 [11:09:33]Write 301 bytes [11:09:33]NVStorageSaveData done [11:09:33]OFDSenderStorePacket done [11:09:33]KKMCreateOFDPacket done [11:09:33]NVStorageSaveData kkm_last_timestamp [11:09:33]File name is /storage/kkm_last_timestamp [11:09:33]Write 4 bytes [11:09:33]NVStorageSaveData done [11:09:33]ExternCall_PrintAddStr [11:09:33]wPrintStart [11:09:33]Write to MH i2c: 01 00 00 BA 41 FB [11:09:33]Write i2c OK [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 [11:09:33]MH_I2C_Read... [11:09:33]Read from MH i2c: 01 07 00 BA 41 00 00 00 00 00 FF 0F 10 [11:09:33]RasterBufferAndPrint [11:09:33]line Счет N : (1)220541 [11:09:33]line ИНН: 02508201610067 [11:09:33]line Контрольно-Кассовый Чек [11:09:33]line ПРОДАЖА [11:09:33]line ТРК (МРК, ГНК) : 43 [11:09:33]line Товар: 2710124130 [11:09:33]line Аи-92-К-5 [11:09:33]line 5.980 * 66.90 [11:09:33]line = 400.06 [11:09:33]line НДС 12% НСП 1% [11:09:33]line > о реализуемом товаре [11:09:33]line ОКРУГЛЕНИЕ: -0.06 [11:09:33]line ИТОГО: 400.00 [11:09:33]line Внесено: 400.00 [11:09:33]line СДАЧА: 0.00 [11:09:33]line НСП 1% : 3.54 [11:09:33]line НДС 12% : 42.48 [11:09:33]line Наличными: 400.00 [11:09:33]line Безнал.: 0.00 [11:09:33]line Место: АЗС № 161 "Партнер Нефть" [11:09:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:09:33]line СНО: Общий режим [11:09:33]line Чек 83 21.10.2024 11:09 [11:09:33]line Смена: 535 ФФД: 1.0 [11:09:33]line ЗНМ: 0300000104 [11:09:33]line РНМ: 0000000000091764 [11:09:33]line Версия ККМ: 001 [11:09:33]line ФМ: 0000000000871759 [11:09:33]line ФД: 165972 [11:09:33]line ФПД: 102189915167280 [11:09:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T110948&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165972&fm=102189915167280&tin=02508201610067®Number=0000000000091764&sum=40000 [11:09:33]OFD Sender: Processing packet 165972 [packets to send 48, broken 47] [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00165972 [11:09:33]OFD Sender: To server: pG, [11:09:33]CommunicateWithHost lk.salyk.kg:30040 [11:09:33]ConnectInit lk.salyk.kg [11:09:33]written 0, free lines is 4095 [11:09:33]Connected sock=7 [11:09:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA A0 07 01 18 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 7C 36 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 88 02 00 35 04 06 00 5C F0 F1 97 DA 30 4E 32 B7 5D DE 7F 6B 7A [11:09:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E6 FE 47 00 C8 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 88 02 00 F4 03 04 00 EC DC 15 67 B6 04 01 00 00 6E C4 6A C6 0F D4 7B 7D [11:09:33]CommunicateWithHost err = 0 [11:09:33]CheckOFDResponse [11:09:33]1017 (14) - 77093643461234 [11:09:33]1041 (16) - 0000000000871759 [11:09:33]1040 (4) - 165972 [11:09:33]1012 (4) - 21.10.2024 04:47 [11:09:33]1206 (1) - 0 [11:09:33]OFD Sender: Remove packet 165972 [11:09:33]ProducePacketName [11:09:33]name=ofd_packets/00165972 [11:09:33]NVStorageDeleteData [11:09:34]Write to MH i2c: 01 00 00 E5 41 26 [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 07 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: 01 07 00 E5 41 00 00 00 00 00 E0 0C 19 [11:09:34]RasterBufferAndPrint [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]line [11:09:34]written 0, free lines is 3311 [11:09:34]MH_Cut [11:09:34]Write to MH i2c: D1 01 00 EC 41 01 FF [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 01 00 [11:09:34]MH_I2C_Read... [11:09:34]Read from MH i2c: D1 01 00 EC 41 00 FE [11:09:34]Write to MH i2c: 01 00 00 ED 41 2E [11:09:34]Write i2c OK [11:09:34]MH_I2C_Read... [11:09:34]OFD Sender: No OFD packet to send [11:09:34]*** Cut start [11:09:34]*** Partial cut [11:09:34]*** CUTSNS_PIN = 1 [11:09:34]*** CUTSNS_PIN = 0 [11:09:35]*** Brake cut motor [11:09:35]Read from MH i2c: 01 [11:09:35]MH_I2C_Read... [11:09:35]*** Stop cut motor [11:09:35]*** Cut end [11:09:35]Read from MH i2c: 01 07 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: 01 07 00 ED 41 00 00 00 00 00 FF 0F 43 [11:09:35]process_action close_receipt done [11:09:35]requested_data is exist [11:09:35]produce_requested_data [11:09:35]requested_item fm.sn is exist - process it [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 11 00 00 [11:09:35]Write to MH i2c: E2 08 00 EE 41 80 11 00 00 00 00 00 00 A9 [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 17 00 EE 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [11:09:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:09:35]wFMCommunicate OK [11:09:35]requested_item fd.num is exist - process it [11:09:35]SAM_PROTO_GetFieldsCounters [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 13 00 00 [11:09:35]Write to MH i2c: E2 08 00 EF 41 80 13 00 00 00 00 00 00 AC [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 62 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 62 00 EF 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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:09:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_GetFieldsCounters done [11:09:35]requested_item shift.num is exist - process it [11:09:35]requested_item shift.opened is exist - process it [11:09:35]req_shift_opened [11:09:35]FM_GetShiftState [11:09:35]SAM_PROTO_GetShiftState [11:09:35]wFMCommunicate request_size=4 [11:09:35]MH_SAM_APDU [11:09:35]CAPDU: 80 13 01 00 [11:09:35]Write to MH i2c: E2 08 00 F0 41 80 13 01 00 00 00 00 00 AE [11:09:35]Write i2c OK [11:09:35]MH_I2C_Read... [11:09:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:35]Read from MH i2c: E2 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0E 00 [11:09:35]MH_I2C_Read... [11:09:35]Read from MH i2c: E2 0E 00 F0 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B7 [11:09:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:09:35]wFMCommunicate OK [11:09:35]SAM_PROTO_GetShiftState done [11:09:35]FM_GetShiftState done [11:09:35]req_shift_opened done [11:09:35]requested_item shift.open_date is exist - process it [11:09:35]req_shift_open_date [11:09:35]req_shift_open_date done [11:09:35]produce_requested_data done [11:09:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165972,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:09:35]process_action_free close_receipt [11:09:35]json_value_free [11:09:35]json_value_free done [11:09:35]process_json_proto returns [11:09:35]Send response to host [11:09:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165972,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:09:35]free response buf [11:09:35]execute_script done [11:09:35]execute_script returns [11:09:35]free content buf [11:09:35]Sock 5.Close socket [11:09:35]Sock 5.Thread stoped [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:14]OFD Sender: No OFD packet to send [11:10:19]OFD Sender: No OFD packet to send [11:10:24]OFD Sender: No OFD packet to send [11:10:29]OFD Sender: No OFD packet to send [11:10:34]OFD Sender: No OFD packet to send [11:10:39]OFD Sender: No OFD packet to send [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:54]OFD Sender: No OFD packet to send [11:11:59]OFD Sender: No OFD packet to send [11:12:04]OFD Sender: No OFD packet to send [11:12:09]OFD Sender: No OFD packet to send [11:12:14]OFD Sender: No OFD packet to send [11:12:19]OFD Sender: No OFD packet to send [11:12:24]OFD Sender: No OFD packet to send [11:12:29]OFD Sender: No OFD packet to send [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: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:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:24]OFD Sender: No OFD packet to send [11:15:29]OFD Sender: No OFD packet to send [11:15:34]OFD Sender: No OFD packet to send [11:15:39]OFD Sender: No OFD packet to send [11:15:44]OFD Sender: No OFD packet to send [11:15:49]OFD Sender: No OFD packet to send [11:15:54]OFD Sender: No OFD packet to send [11:15:59]OFD Sender: No OFD packet to send [11:16:03]accept exits with 6 [11:16:03]New connection [11:16:03]New thread 3066776932 created [11:16:03]Thread 3066920292 joined [11:16:03]Waiting for new connection... [11:16:03] Sock 6.Parse request [11:16:03]Sock 6.Check first char [11:16:03]Sock 6.First char is OK [11:16:03]request: POST /json_proto HTTP/1.0 [11:16:03]Method: POST [11:16:03]URL: /json_proto [11:16:03]Method is POST - this is cgi request [11:16:03]url: /json_proto [11:16:03]query_string will be loaded in cgi processing [11:16:03]execute_cgi json_proto POST (null) [11:16:03]execute_cgi path=json_proto method=POST [11:16:03]POST find Content-Length [11:16:03]Host: 172.17.53.195:8080 [11:16:03]Content-Length: 769 [11:16:03]Content-Type: application/json [11:16:03] [11:16:03]POST finish read [11:16:03]Found Content-Length = 769 [11:16:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 74.130, "sum" : 5500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5500.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:03]execute_script... [11: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)220543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 74.130, "sum" : 5500.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5500.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:03]POST & json_proto [11:16:03]process_json_proto [11:16:03]json parsed OK: [11:16:03]protocol is kg_v1.0 [11:16:03]action value=close_receipt [11:16:03]process_action close_receipt [11:16:03]cmd_close_receipt [11:16:03]MH_GetDate [11:16:03]Write to MH i2c: F0 00 00 F1 41 21 [11:16:03]Write i2c OK [11:16:03]MH_I2C_Read... [11:16:03]Read from MH i2c: F0 [11:16:03]MH_I2C_Read... [11:16:03]Read from MH i2c: F0 09 00 [11:16:03]MH_I2C_Read... [11:16:03]Read from MH i2c: F0 09 00 F1 41 00 05 38 16 67 21 48 4A 65 FC [11:16:03]GetLastDocTimeStamp 1729508988 [11:16:03]current date 1729509381 [11:16:03]FM_GetShiftState [11:16:03]SAM_PROTO_GetShiftState [11:16:03]wFMCommunicate request_size=4 [11:16:03]MH_SAM_APDU [11:16:03]CAPDU: 80 13 01 00 [11:16:03]Write to MH i2c: E2 08 00 F2 41 80 13 01 00 00 00 00 00 B0 [11:16:03]Write i2c OK [11:16:03]MH_I2C_Read... [11:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:03]Read from MH i2c: E2 [11:16:03]MH_I2C_Read... [11:16:03]Read from MH i2c: E2 0E 00 [11:16:03]MH_I2C_Read... [11:16:03]Read from MH i2c: E2 0E 00 F2 41 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B9 [11:16:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:16:03]wFMCommunicate OK [11:16:03]SAM_PROTO_GetShiftState done [11:16:03]FM_GetShiftState done [11:16:03]opened in 1729470944 [11:16:03]opened+sec_in_day 1729557344 [11:16:03]quantity*price = 550044 [11:16:03]sum+1 = 550046 [11:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5500.45 НСП 1% : 48.68 НДС 12% : 584.12 Наличными: 0.00 Безнал.: 5500.45 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 84 21.10.2024 11:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165973 ФПД: 158330557979574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165973&fm=158330557979574&tin=02508201610067®Number=0000000000091764&sum=550045 [11:16:05]StoreToDocumentArchive [11:16:05]shift 535 fd 165973 [11:16:05]save to /storage/0535/doc_00165973 [11:16:05]save last doc name /storage/0535/doc_00165973 to /storage/kkm_last_doc_name [11:16:05]save OK [11:16:05]Clear old archive folders... [11:16:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:05]tlvbuf is 01891960 [11:16:05]SAM_PROTO_ClearQueue [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 09 00 00 [11:16:05]Write to MH i2c: E2 08 00 FF 41 80 09 00 00 00 00 00 00 B2 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 FF 41 00 90 00 B4 [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]SAM_PROTO_ClearQueue done [11:16:05]KKMCreateOFDPacket [11:16:05]OFDProtocolAddRootSTLVToBuf [11:16:05]FM_MakeSignedData [11:16:05]FM_MakeSignedData [11:16:05]SAM_PROTO_SignData [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 01 02 [11:16:05]Write to MH i2c: E2 08 00 00 42 80 0D 01 02 00 00 00 00 BB [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 00 42 00 90 00 B6 [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]wFMCommunicate request_size=255 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 21 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 05 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 88 02 00 35 04 06 00 90 [11:16:05]Write to MH i2c: E2 02 01 01 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 21 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 05 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 88 02 00 35 04 06 00 90 00 00 74 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 01 42 00 90 00 B7 [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]wFMCommunicate request_size=10 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 02 02 05 00 34 AA 5B B6 [11:16:05]Write to MH i2c: E2 0D 00 02 42 80 0D 02 02 05 00 00 34 AA 5B B6 00 00 B7 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 03 00 02 42 00 90 00 B8 [11:16:05]RAPDU: 90 00 [11:16:05]wFMCommunicate OK [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 0D 03 02 [11:16:05]Write to MH i2c: E2 08 00 03 42 80 0D 03 02 00 00 00 00 C0 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 0B 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 0B 00 03 42 00 A7 BE E3 F9 9C 21 C1 15 90 00 95 [11:16:05]RAPDU: A7 BE E3 F9 9C 21 C1 15 90 00 [11:16:05]wFMCommunicate OK [11:16:05]SAM_PROTO_SignData done [11:16:05]FM_MakeSignedData done [11:16:05]CreateOFDProtocolMessage [11:16:05]wFMCommunicate request_size=4 [11:16:05]MH_SAM_APDU [11:16:05]CAPDU: 80 11 00 00 [11:16:05]Write to MH i2c: E2 08 00 04 42 80 11 00 00 00 00 00 00 C0 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:05]Read from MH i2c: E2 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 17 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: E2 17 00 04 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [11:16:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:16:05]wFMCommunicate OK [11:16:05]CreateOFDProtocolMessage done [11:16:05]OFDSenderStorePacket 165973 [11:16:05]StoreOFDPacket docnum=165973 [11:16:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 5A 07 01 B6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 21 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 05 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 88 02 00 35 04 06 00 90 00 34 AA 5B B6 A7 BE E3 F9 9C 21 C1 15 [11:16:05]CheckFolder [11:16:05]dirname=/storage/ofd_packets [11:16:05]CheckFolder done [11:16:05]ProducePacketName [11:16:05]name=ofd_packets/00165973 [11:16:05]NVStorageSaveData ofd_packets/00165973 [11:16:05]File name is /storage/ofd_packets/00165973 [11:16:05]Write 301 bytes [11:16:05]NVStorageSaveData done [11:16:05]OFDSenderStorePacket done [11:16:05]KKMCreateOFDPacket done [11:16:05]NVStorageSaveData kkm_last_timestamp [11:16:05]File name is /storage/kkm_last_timestamp [11:16:05]Write 4 bytes [11:16:05]NVStorageSaveData done [11:16:05]ExternCall_PrintAddStr [11:16:05]wPrintStart [11:16:05]Write to MH i2c: 01 00 00 05 42 47 [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: 01 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: 01 07 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: 01 07 00 05 42 00 00 00 00 00 FF 0F 5C [11:16:05]RasterBufferAndPrint [11:16:05]line Счет N : (1)220543 [11:16:05]line ИНН: 02508201610067 [11:16:05]line Контрольно-Кассовый Чек [11:16:05]line ПРОДАЖА [11:16:05]line ТРК (МРК, ГНК) : 44 [11:16:05]line Товар: 2710124500 [11:16:05]line Аи-95-К-5 [11:16:05]line 74.130 * 74.20 [11:16:05]line = 5500.45 [11:16:05]line НДС 12% НСП 1% [11:16:05]line > о реализуемом товаре [11:16:05]line ИТОГО: 5500.45 [11:16:05]line НСП 1% : 48.68 [11:16:05]line НДС 12% : 584.12 [11:16:05]line Наличными: 0.00 [11:16:05]line Безнал.: 5500.45 [11:16:05]line Место: АЗС № 161 "Партнер Нефть" [11:16:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:16:05]line СНО: Общий режим [11:16:05]line Чек 84 21.10.2024 11:16 [11:16:05]line Смена: 535 ФФД: 1.0 [11:16:05]line ЗНМ: 0300000104 [11:16:05]line РНМ: 0000000000091764 [11:16:05]line Версия ККМ: 001 [11:16:05]line Платежная система: Mbank [11:16:05]line ФМ: 0000000000871759 [11:16:05]line ФД: 165973 [11:16:05]line ФПД: 158330557979574 [11:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111621&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165973&fm=158330557979574&tin=02508201610067®Number=0000000000091764&sum=550045 [11:16:06]OFD Sender: Processing packet 165973 [packets to send 48, broken 47] [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00165973 [11:16:06]OFD Sender: To server: pG, [11:16:06]CommunicateWithHost lk.salyk.kg:30040 [11:16:06]ConnectInit lk.salyk.kg [11:16:06]written 0, free lines is 4095 [11:16:06]Connected sock=7 [11:16:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 5A 07 01 B6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 92 21 01 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 64 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 64 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2C E4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D 64 08 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 05 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 88 02 00 35 04 06 00 90 00 34 AA 5B B6 A7 BE E3 F9 9C 21 C1 15 [11:16:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 1C 47 00 79 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 88 02 00 F4 03 04 00 74 DE 15 67 B6 04 01 00 00 A8 5E 7C B2 1D 0E DD 79 [11:16:06]CommunicateWithHost err = 0 [11:16:06]CheckOFDResponse [11:16:06]1017 (14) - 77093643461234 [11:16:06]1041 (16) - 0000000000871759 [11:16:06]1040 (4) - 165973 [11:16:06]1012 (4) - 21.10.2024 04:54 [11:16:06]1206 (1) - 0 [11:16:06]OFD Sender: Remove packet 165973 [11:16:06]ProducePacketName [11:16:06]name=ofd_packets/00165973 [11:16:06]NVStorageDeleteData [11:16:06]Write to MH i2c: 01 00 00 2E 42 70 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: 01 07 00 2E 42 00 00 00 00 00 E7 0C 6A [11:16:06]RasterBufferAndPrint [11:16:06]line [11:16:06]line [11:16:06]line [11:16:06]line [11:16:06]line [11:16:06]written 0, free lines is 3310 [11:16:06]MH_Cut [11:16:06]Write to MH i2c: D1 01 00 35 42 01 49 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: D1 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: D1 01 00 [11:16:06]MH_I2C_Read... [11:16:06]Read from MH i2c: D1 01 00 35 42 00 48 [11:16:06]Write to MH i2c: 01 00 00 36 42 78 [11:16:06]Write i2c OK [11:16:06]MH_I2C_Read... [11:16:06]OFD Sender: No OFD packet to send [11:16:07]*** Cut start [11:16:07]*** Partial cut [11:16:07]*** CUTSNS_PIN = 1 [11:16:07]*** CUTSNS_PIN = 0 [11:16:07]*** Brake cut motor [11:16:07]Read from MH i2c: 01 [11:16:07]MH_I2C_Read... [11:16:07]*** Stop cut motor [11:16:07]*** Cut end [11:16:07]Read from MH i2c: 01 07 00 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: 01 07 00 36 42 00 00 00 00 00 FF 0F 8D [11:16:07]process_action close_receipt done [11:16:07]requested_data is exist [11:16:07]produce_requested_data [11:16:07]requested_item fm.sn is exist - process it [11:16:07]wFMCommunicate request_size=4 [11:16:07]MH_SAM_APDU [11:16:07]CAPDU: 80 11 00 00 [11:16:07]Write to MH i2c: E2 08 00 37 42 80 11 00 00 00 00 00 00 F3 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:07]Read from MH i2c: E2 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: E2 17 00 [11:16:07]MH_I2C_Read... [11:16:07]Read from MH i2c: E2 17 00 37 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [11:16:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:16:07]wFMCommunicate OK [11:16:07]requested_item fd.num is exist - process it [11:16:07]SAM_PROTO_GetFieldsCounters [11:16:07]wFMCommunicate request_size=4 [11:16:07]MH_SAM_APDU [11:16:07]CAPDU: 80 13 00 00 [11:16:07]Write to MH i2c: E2 08 00 38 42 80 13 00 00 00 00 00 00 F6 [11:16:07]Write i2c OK [11:16:07]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 62 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 62 00 38 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetFieldsCounters done [11:16:08]requested_item shift.num is exist - process it [11:16:08]requested_item shift.opened is exist - process it [11:16:08]req_shift_opened [11:16:08]FM_GetShiftState [11:16:08]SAM_PROTO_GetShiftState [11:16:08]wFMCommunicate request_size=4 [11:16:08]MH_SAM_APDU [11:16:08]CAPDU: 80 13 01 00 [11:16:08]Write to MH i2c: E2 08 00 39 42 80 13 01 00 00 00 00 00 F8 [11:16:08]Write i2c OK [11:16:08]MH_I2C_Read... [11:16:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:08]Read from MH i2c: E2 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 [11:16:08]MH_I2C_Read... [11:16:08]Read from MH i2c: E2 0E 00 39 42 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 01 [11:16:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:16:08]wFMCommunicate OK [11:16:08]SAM_PROTO_GetShiftState done [11:16:08]FM_GetShiftState done [11:16:08]req_shift_opened done [11:16:08]requested_item shift.open_date is exist - process it [11:16:08]req_shift_open_date [11:16:08]req_shift_open_date done [11:16:08]produce_requested_data done [11:16:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165973,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:16:08]process_action_free close_receipt [11:16:08]json_value_free [11:16:08]json_value_free done [11:16:08]process_json_proto returns [11:16:08]Send response to host [11:16:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165973,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:16:08]free response buf [11:16:08]execute_script done [11:16:08]execute_script returns [11:16:08]free content buf [11:16:08]Sock 6.Close socket [11:16:08]Sock 6.Thread stoped [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:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]accept exits with 5 [11:18:41]New connection [11:18:41]New thread 3066920292 created [11:18:41]Thread 3066776932 joined [11:18:41]Waiting for new connection... [11:18:41] Sock 5.Parse request [11:18:41]Sock 5.Check first char [11:18:41]Sock 5.First char is OK [11:18:41]request: POST /json_proto HTTP/1.0 [11:18:41]Method: POST [11:18:41]URL: /json_proto [11:18:41]Method is POST - this is cgi request [11:18:41]url: /json_proto [11:18:41]query_string will be loaded in cgi processing [11:18:41]execute_cgi json_proto POST (null) [11:18:41]execute_cgi path=json_proto method=POST [11:18:41]POST find Content-Length [11:18:41]Host: 172.17.53.195:8080 [11:18:41]Content-Length: 763 [11:18:41]Content-Type: application/json [11:18:41] [11:18:41]POST finish read [11:18:41]Found Content-Length = 763 [11:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.650, "sum" : 430.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 430.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:41]execute_script... [11:18: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)220544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.650, "sum" : 430.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 430.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:41]POST & json_proto [11:18:41]process_json_proto [11:18:41]json parsed OK: [11:18:41]protocol is kg_v1.0 [11:18:41]action value=close_receipt [11:18:41]process_action close_receipt [11:18:41]cmd_close_receipt [11:18:41]MH_GetDate [11:18:41]Write to MH i2c: F0 00 00 3A 42 6B [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: F0 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: F0 09 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: F0 09 00 3A 42 00 A3 38 16 67 21 48 4A 65 E4 [11:18:41]GetLastDocTimeStamp 1729509381 [11:18:41]current date 1729509539 [11:18:41]FM_GetShiftState [11:18:41]SAM_PROTO_GetShiftState [11:18:41]wFMCommunicate request_size=4 [11:18:41]MH_SAM_APDU [11:18:41]CAPDU: 80 13 01 00 [11:18:41]Write to MH i2c: E2 08 00 3B 42 80 13 01 00 00 00 00 00 FA [11:18:41]Write i2c OK [11:18:41]MH_I2C_Read... [11:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:41]Read from MH i2c: E2 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 [11:18:41]MH_I2C_Read... [11:18:41]Read from MH i2c: E2 0E 00 3B 42 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 03 [11:18:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:18:41]wFMCommunicate OK [11:18:41]SAM_PROTO_GetShiftState done [11:18:41]FM_GetShiftState done [11:18:41]opened in 1729470944 [11:18:41]opened+sec_in_day 1729557344 [11:18:41]quantity*price = 43053 [11:18:41]sum+1 = 43054 [11:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 430.53 НСП 1% : 3.81 НДС 12% : 45.72 Наличными: 0.00 Безнал.: 430.53 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 85 21.10.2024 11:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165974 ФПД: 270113945826578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111859&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165974&fm=270113945826578&tin=02508201610067®Number=0000000000091764&sum=43053 [11:18:42]StoreToDocumentArchive [11:18:42]shift 535 fd 165974 [11:18:42]save to /storage/0535/doc_00165974 [11:18:42]save last doc name /storage/0535/doc_00165974 to /storage/kkm_last_doc_name [11:18:42]save OK [11:18:42]Clear old archive folders... [11:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:18:42]tlvbuf is 0157E7E0 [11:18:42]SAM_PROTO_ClearQueue [11:18:42]wFMCommunicate request_size=4 [11:18:42]MH_SAM_APDU [11:18:42]CAPDU: 80 09 00 00 [11:18:42]Write to MH i2c: E2 08 00 48 42 80 09 00 00 00 00 00 00 FC [11:18:42]Write i2c OK [11:18:42]MH_I2C_Read... [11:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:42]Read from MH i2c: E2 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 48 42 00 90 00 FE [11:18:42]RAPDU: 90 00 [11:18:42]wFMCommunicate OK [11:18:42]SAM_PROTO_ClearQueue done [11:18:42]KKMCreateOFDPacket [11:18:42]OFDProtocolAddRootSTLVToBuf [11:18:42]FM_MakeSignedData [11:18:42]FM_MakeSignedData [11:18:42]SAM_PROTO_SignData [11:18:42]wFMCommunicate request_size=4 [11:18:42]MH_SAM_APDU [11:18:42]CAPDU: 80 0D 01 02 [11:18:42]Write to MH i2c: E2 08 00 49 42 80 0D 01 02 00 00 00 00 04 [11:18:42]Write i2c OK [11:18:42]MH_I2C_Read... [11:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:42]Read from MH i2c: E2 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 49 42 00 90 00 FF [11:18:42]RAPDU: 90 00 [11:18:42]wFMCommunicate OK [11:18:42]wFMCommunicate request_size=255 [11:18:42]MH_SAM_APDU [11:18:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A3 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 88 02 00 35 04 06 00 F5 AA CD CA [11:18:42]Write to MH i2c: E2 02 01 4A 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A3 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 88 02 00 35 04 06 00 F5 AA CD CA 00 00 37 [11:18:42]Write i2c OK [11:18:42]MH_I2C_Read... [11:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:42]Read from MH i2c: E2 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 4A 42 00 90 00 00 [11:18:42]RAPDU: 90 00 [11:18:42]wFMCommunicate OK [11:18:42]wFMCommunicate request_size=7 [11:18:42]MH_SAM_APDU [11:18:42]CAPDU: 80 0D 02 02 02 35 12 [11:18:42]Write to MH i2c: E2 0A 00 4B 42 80 0D 02 02 02 00 35 12 00 00 52 [11:18:42]Write i2c OK [11:18:42]MH_I2C_Read... [11:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:42]Read from MH i2c: E2 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 [11:18:42]MH_I2C_Read... [11:18:42]Read from MH i2c: E2 03 00 4B 42 00 90 00 01 [11:18:42]RAPDU: 90 00 [11:18:42]wFMCommunicate OK [11:18:42]wFMCommunicate request_size=4 [11:18:42]MH_SAM_APDU [11:18:42]CAPDU: 80 0D 03 02 [11:18:42]Write to MH i2c: E2 08 00 4C 42 80 0D 03 02 00 00 00 00 09 [11:18:42]Write i2c OK [11:18:42]MH_I2C_Read... [11:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:43]Read from MH i2c: E2 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: E2 0B 00 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: E2 0B 00 4C 42 00 EB B7 38 2E 38 4D 9E 4B 90 00 80 [11:18:43]RAPDU: EB B7 38 2E 38 4D 9E 4B 90 00 [11:18:43]wFMCommunicate OK [11:18:43]SAM_PROTO_SignData done [11:18:43]FM_MakeSignedData done [11:18:43]CreateOFDProtocolMessage [11:18:43]wFMCommunicate request_size=4 [11:18:43]MH_SAM_APDU [11:18:43]CAPDU: 80 11 00 00 [11:18:43]Write to MH i2c: E2 08 00 4D 42 80 11 00 00 00 00 00 00 09 [11:18:43]Write i2c OK [11:18:43]MH_I2C_Read... [11:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:43]Read from MH i2c: E2 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: E2 17 00 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: E2 17 00 4D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [11:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:18:43]wFMCommunicate OK [11:18:43]CreateOFDProtocolMessage done [11:18:43]OFDSenderStorePacket 165974 [11:18:43]StoreOFDPacket docnum=165974 [11:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AB 52 04 01 6C 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A3 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 88 02 00 35 04 06 00 F5 AA CD CA 35 12 EB B7 38 2E 38 4D 9E 4B [11:18:43]CheckFolder [11:18:43]dirname=/storage/ofd_packets [11:18:43]CheckFolder done [11:18:43]ProducePacketName [11:18:43]name=ofd_packets/00165974 [11:18:43]NVStorageSaveData ofd_packets/00165974 [11:18:43]File name is /storage/ofd_packets/00165974 [11:18:43]Write 298 bytes [11:18:43]NVStorageSaveData done [11:18:43]OFDSenderStorePacket done [11:18:43]KKMCreateOFDPacket done [11:18:43]NVStorageSaveData kkm_last_timestamp [11:18:43]File name is /storage/kkm_last_timestamp [11:18:43]Write 4 bytes [11:18:43]NVStorageSaveData done [11:18:43]ExternCall_PrintAddStr [11:18:43]wPrintStart [11:18:43]Write to MH i2c: 01 00 00 4E 42 90 [11:18:43]Write i2c OK [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: 01 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: 01 07 00 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: 01 07 00 4E 42 00 00 00 00 00 FF 0F A5 [11:18:43]RasterBufferAndPrint [11:18:43]line Счет N : (1)220544 [11:18:43]line ИНН: 02508201610067 [11:18:43]line Контрольно-Кассовый Чек [11:18:43]line ПРОДАЖА [11:18:43]line ТРК (МРК, ГНК) : 11 [11:18:43]line Товар: 2710194210 [11:18:43]line ДТ-К-5 [11:18:43]line 5.650 * 76.20 [11:18:43]line = 430.53 [11:18:43]line НДС 12% НСП 1% [11:18:43]line > о реализуемом товаре [11:18:43]line ИТОГО: 430.53 [11:18:43]line НСП 1% : 3.81 [11:18:43]line НДС 12% : 45.72 [11:18:43]line Наличными: 0.00 [11:18:43]line Безнал.: 430.53 [11:18:43]line Место: АЗС № 161 "Партнер Нефть" [11:18:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:18:43]line СНО: Общий режим [11:18:43]line Чек 85 21.10.2024 11:18 [11:18:43]line Смена: 535 ФФД: 1.0 [11:18:43]line ЗНМ: 0300000104 [11:18:43]line РНМ: 0000000000091764 [11:18:43]line Версия ККМ: 001 [11:18:43]line Платежная система: Mbank [11:18:43]line ФМ: 0000000000871759 [11:18:43]line ФД: 165974 [11:18:43]line ФПД: 270113945826578 [11:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T111859&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165974&fm=270113945826578&tin=02508201610067®Number=0000000000091764&sum=43053 [11:18:43]OFD Sender: Processing packet 165974 [packets to send 48, broken 47] [11:18:43]ProducePacketName [11:18:43]name=ofd_packets/00165974 [11:18:43]OFD Sender: To server: pG, [11:18:43]CommunicateWithHost lk.salyk.kg:30040 [11:18:43]ConnectInit lk.salyk.kg [11:18:43]written 0, free lines is 4095 [11:18:43]Connected sock=7 [11:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AB 52 04 01 6C 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 12 16 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2D A8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2D A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2D A8 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 A3 38 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 88 02 00 35 04 06 00 F5 AA CD CA 35 12 EB B7 38 2E 38 4D 9E 4B [11:18:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8B AF 47 00 60 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 88 02 00 F4 03 04 00 11 DF 15 67 B6 04 01 00 00 C4 17 14 40 BC E1 F9 12 [11:18:43]CommunicateWithHost err = 0 [11:18:43]CheckOFDResponse [11:18:43]1017 (14) - 77093643461234 [11:18:43]1041 (16) - 0000000000871759 [11:18:43]1040 (4) - 165974 [11:18:43]1012 (4) - 21.10.2024 04:56 [11:18:43]1206 (1) - 0 [11:18:43]OFD Sender: Remove packet 165974 [11:18:43]ProducePacketName [11:18:43]name=ofd_packets/00165974 [11:18:43]NVStorageDeleteData [11:18:43]Write to MH i2c: 01 00 00 77 42 B9 [11:18:43]Write i2c OK [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: 01 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: 01 07 00 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: 01 07 00 77 42 00 00 00 00 00 EB 0C B7 [11:18:43]RasterBufferAndPrint [11:18:43]line [11:18:43]line [11:18:43]line [11:18:43]line [11:18:43]line [11:18:43]written 0, free lines is 3313 [11:18:43]MH_Cut [11:18:43]Write to MH i2c: D1 01 00 7E 42 01 92 [11:18:43]Write i2c OK [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: D1 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: D1 01 00 [11:18:43]MH_I2C_Read... [11:18:43]Read from MH i2c: D1 01 00 7E 42 00 91 [11:18:43]Write to MH i2c: 01 00 00 7F 42 C1 [11:18:43]Write i2c OK [11:18:43]MH_I2C_Read... [11:18:44]OFD Sender: No OFD packet to send [11:18:44]*** Cut start [11:18:44]*** Partial cut [11:18:44]*** CUTSNS_PIN = 1 [11:18:44]*** CUTSNS_PIN = 0 [11:18:44]*** Brake cut motor [11:18:45]Read from MH i2c: 01 [11:18:45]MH_I2C_Read... [11:18:45]*** Stop cut motor [11:18:45]*** Cut end [11:18:45]Read from MH i2c: 01 07 00 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: 01 07 00 7F 42 00 00 00 00 00 FF 0F D6 [11:18:45]process_action close_receipt done [11:18:45]requested_data is exist [11:18:45]produce_requested_data [11:18:45]requested_item fm.sn is exist - process it [11:18:45]wFMCommunicate request_size=4 [11:18:45]MH_SAM_APDU [11:18:45]CAPDU: 80 11 00 00 [11:18:45]Write to MH i2c: E2 08 00 80 42 80 11 00 00 00 00 00 00 3C [11:18:45]Write i2c OK [11:18:45]MH_I2C_Read... [11:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:45]Read from MH i2c: E2 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: E2 17 00 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: E2 17 00 80 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 94 [11:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:18:45]wFMCommunicate OK [11:18:45]requested_item fd.num is exist - process it [11:18:45]SAM_PROTO_GetFieldsCounters [11:18:45]wFMCommunicate request_size=4 [11:18:45]MH_SAM_APDU [11:18:45]CAPDU: 80 13 00 00 [11:18:45]Write to MH i2c: E2 08 00 81 42 80 13 00 00 00 00 00 00 3F [11:18:45]Write i2c OK [11:18:45]MH_I2C_Read... [11:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:45]Read from MH i2c: E2 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: E2 62 00 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: E2 62 00 81 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:18:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:45]wFMCommunicate OK [11:18:45]SAM_PROTO_GetFieldsCounters done [11:18:45]requested_item shift.num is exist - process it [11:18:45]requested_item shift.opened is exist - process it [11:18:45]req_shift_opened [11:18:45]FM_GetShiftState [11:18:45]SAM_PROTO_GetShiftState [11:18:45]wFMCommunicate request_size=4 [11:18:45]MH_SAM_APDU [11:18:45]CAPDU: 80 13 01 00 [11:18:45]Write to MH i2c: E2 08 00 82 42 80 13 01 00 00 00 00 00 41 [11:18:45]Write i2c OK [11:18:45]MH_I2C_Read... [11:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:45]Read from MH i2c: E2 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: E2 0E 00 [11:18:45]MH_I2C_Read... [11:18:45]Read from MH i2c: E2 0E 00 82 42 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4A [11:18:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:18:45]wFMCommunicate OK [11:18:45]SAM_PROTO_GetShiftState done [11:18:45]FM_GetShiftState done [11:18:45]req_shift_opened done [11:18:45]requested_item shift.open_date is exist - process it [11:18:45]req_shift_open_date [11:18:45]req_shift_open_date done [11:18:45]produce_requested_data done [11:18:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165974,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:18:45]process_action_free close_receipt [11:18:45]json_value_free [11:18:45]json_value_free done [11:18:45]process_json_proto returns [11:18:45]Send response to host [11:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165974,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:18:45]free response buf [11:18:45]execute_script done [11:18:45]execute_script returns [11:18:45]free content buf [11:18:45]Sock 5.Close socket [11:18:45]Sock 5.Thread stoped [11:18:49]OFD Sender: No OFD packet to send [11:18:54]OFD Sender: No OFD packet to send [11:18:59]OFD Sender: No OFD packet to send [11:19:04]OFD Sender: No OFD packet to send [11:19:09]OFD Sender: No OFD packet to send [11:19:14]OFD Sender: No OFD packet to send [11:19:19]OFD Sender: No OFD packet to send [11:19:24]OFD Sender: No OFD packet to send [11:19:29]OFD Sender: No OFD packet to send [11:19:34]OFD Sender: No OFD packet to send [11:19:39]OFD Sender: No OFD packet to send [11:19:44]OFD Sender: No OFD packet to send [11:19:49]OFD Sender: No OFD packet to send [11:19:54]OFD Sender: No OFD packet to send [11:19:59]OFD Sender: No OFD packet to send [11:20:04]OFD Sender: No OFD packet to send [11:20:09]OFD Sender: No OFD packet to send [11:20:14]OFD Sender: No OFD packet to send [11:20:19]OFD Sender: No OFD packet to send [11:20:24]OFD Sender: No OFD packet to send [11:20:29]OFD Sender: No OFD packet to send [11:20:34]OFD Sender: No OFD packet to send [11:20:39]OFD Sender: No OFD packet to send [11:20:44]OFD Sender: No OFD packet to send [11:20:49]OFD Sender: No OFD packet to send [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:00]accept exits with 6 [11:22:00]New connection [11:22:00]New thread 3066776932 created [11:22:00]Thread 3066920292 joined [11:22:00]Waiting for new connection... [11:22:00] Sock 6.Parse request [11:22:00]Sock 6.Check first char [11:22:00]Sock 6.First char is OK [11:22:00]request: POST /json_proto HTTP/1.0 [11:22:00]Method: POST [11:22:00]URL: /json_proto [11:22:00]Method is POST - this is cgi request [11:22:00]url: /json_proto [11:22:00]query_string will be loaded in cgi processing [11:22:00]execute_cgi json_proto POST (null) [11:22:00]execute_cgi path=json_proto method=POST [11:22:00]POST find Content-Length [11:22:00]Host: 172.17.53.195:8080 [11:22:00]Content-Length: 674 [11:22:00]Content-Type: application/json [11:22:00] [11:22:00]POST finish read [11:22:00]Found Content-Length = 674 [11:22:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:00]execute_script... [11:22: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)220545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:00]POST & json_proto [11:22:00]process_json_proto [11:22:00]json parsed OK: [11:22:00]protocol is kg_v1.0 [11:22:00]action value=close_receipt [11:22:00]process_action close_receipt [11:22:00]cmd_close_receipt [11:22:00]MH_GetDate [11:22:00]Write to MH i2c: F0 00 00 83 42 B4 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: F0 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: F0 09 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: F0 09 00 83 42 00 6A 39 16 67 21 48 4A 65 F5 [11:22:00]GetLastDocTimeStamp 1729509539 [11:22:00]current date 1729509738 [11:22:00]FM_GetShiftState [11:22:00]SAM_PROTO_GetShiftState [11:22:00]wFMCommunicate request_size=4 [11:22:00]MH_SAM_APDU [11:22:00]CAPDU: 80 13 01 00 [11:22:00]Write to MH i2c: E2 08 00 84 42 80 13 01 00 00 00 00 00 43 [11:22:00]Write i2c OK [11:22:00]MH_I2C_Read... [11:22:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:00]Read from MH i2c: E2 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 [11:22:00]MH_I2C_Read... [11:22:00]Read from MH i2c: E2 0E 00 84 42 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4C [11:22:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:22:00]wFMCommunicate OK [11:22:00]SAM_PROTO_GetShiftState done [11:22:00]FM_GetShiftState done [11:22:00]opened in 1729470944 [11:22:00]opened+sec_in_day 1729557344 [11:22:00]quantity*price = 60045 [11:22:00]sum+1 = 60047 [11:22:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 86 21.10.2024 11:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165975 ФПД: 233708366810358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165975&fm=233708366810358&tin=02508201610067®Number=0000000000091764&sum=60000 [11:22:02]StoreToDocumentArchive [11:22:02]shift 535 fd 165975 [11:22:02]save to /storage/0535/doc_00165975 [11:22:02]save last doc name /storage/0535/doc_00165975 to /storage/kkm_last_doc_name [11:22:02]save OK [11:22:02]Clear old archive folders... [11:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:02]tlvbuf is 0177AD50 [11:22:02]SAM_PROTO_ClearQueue [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 09 00 00 [11:22:02]Write to MH i2c: E2 08 00 91 42 80 09 00 00 00 00 00 00 45 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 91 42 00 90 00 47 [11:22:02]RAPDU: 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_ClearQueue done [11:22:02]KKMCreateOFDPacket [11:22:02]OFDProtocolAddRootSTLVToBuf [11:22:02]FM_MakeSignedData [11:22:02]FM_MakeSignedData [11:22:02]SAM_PROTO_SignData [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 0D 01 02 [11:22:02]Write to MH i2c: E2 08 00 92 42 80 0D 01 02 00 00 00 00 4D [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 92 42 00 90 00 48 [11:22:02]RAPDU: 90 00 [11:22:02]wFMCommunicate OK [11:22:02]wFMCommunicate request_size=255 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 6A 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 88 02 00 35 04 06 00 D4 8E 78 2F [11:22:02]Write to MH i2c: E2 02 01 93 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 56 00 00 00 F4 03 04 00 6A 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 88 02 00 35 04 06 00 D4 8E 78 2F 00 00 13 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 93 42 00 90 00 49 [11:22:02]RAPDU: 90 00 [11:22:02]wFMCommunicate OK [11:22:02]wFMCommunicate request_size=7 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 0D 02 02 02 4C F6 [11:22:02]Write to MH i2c: E2 0A 00 94 42 80 0D 02 02 02 00 4C F6 00 00 96 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 03 00 94 42 00 90 00 4A [11:22:02]RAPDU: 90 00 [11:22:02]wFMCommunicate OK [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 0D 03 02 [11:22:02]Write to MH i2c: E2 08 00 95 42 80 0D 03 02 00 00 00 00 52 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0B 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 0B 00 95 42 00 76 BD 79 AC E1 71 3C 24 90 00 5D [11:22:02]RAPDU: 76 BD 79 AC E1 71 3C 24 90 00 [11:22:02]wFMCommunicate OK [11:22:02]SAM_PROTO_SignData done [11:22:02]FM_MakeSignedData done [11:22:02]CreateOFDProtocolMessage [11:22:02]wFMCommunicate request_size=4 [11:22:02]MH_SAM_APDU [11:22:02]CAPDU: 80 11 00 00 [11:22:02]Write to MH i2c: E2 08 00 96 42 80 11 00 00 00 00 00 00 52 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:02]Read from MH i2c: E2 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: E2 17 00 96 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [11:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:22:02]wFMCommunicate OK [11:22:02]CreateOFDProtocolMessage done [11:22:02]OFDSenderStorePacket 165975 [11:22:02]StoreOFDPacket docnum=165975 [11:22:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 C0 04 01 64 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 6A 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 88 02 00 35 04 06 00 D4 8E 78 2F 4C F6 76 BD 79 AC E1 71 3C 24 [11:22:02]CheckFolder [11:22:02]dirname=/storage/ofd_packets [11:22:02]CheckFolder done [11:22:02]ProducePacketName [11:22:02]name=ofd_packets/00165975 [11:22:02]NVStorageSaveData ofd_packets/00165975 [11:22:02]File name is /storage/ofd_packets/00165975 [11:22:02]Write 298 bytes [11:22:02]NVStorageSaveData done [11:22:02]OFDSenderStorePacket done [11:22:02]KKMCreateOFDPacket done [11:22:02]NVStorageSaveData kkm_last_timestamp [11:22:02]File name is /storage/kkm_last_timestamp [11:22:02]Write 4 bytes [11:22:02]NVStorageSaveData done [11:22:02]ExternCall_PrintAddStr [11:22:02]wPrintStart [11:22:02]Write to MH i2c: 01 00 00 97 42 D9 [11:22:02]Write i2c OK [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 [11:22:02]MH_I2C_Read... [11:22:02]Read from MH i2c: 01 07 00 97 42 00 00 00 00 00 FF 0F EE [11:22:02]RasterBufferAndPrint [11:22:02]line Счет N : (1)220545 [11:22:02]line ИНН: 02508201610067 [11:22:02]line Контрольно-Кассовый Чек [11:22:02]line ПРОДАЖА [11:22:02]line ТРК (МРК, ГНК) : 11 [11:22:02]line Товар: 2710194210 [11:22:02]line ДТ-К-5 [11:22:02]line 7.880 * 76.20 [11:22:02]line = 600.46 [11:22:02]line НДС 12% НСП 1% [11:22:02]line > о реализуемом товаре [11:22:02]line ОКРУГЛЕНИЕ: -0.46 [11:22:02]line ИТОГО: 600.00 [11:22:02]line Внесено: 600.00 [11:22:02]line СДАЧА: 0.00 [11:22:02]line НСП 1% : 5.31 [11:22:02]line НДС 12% : 63.77 [11:22:02]line Наличными: 600.00 [11:22:02]line Безнал.: 0.00 [11:22:02]line Место: АЗС № 161 "Партнер Нефть" [11:22:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:22:02]line СНО: Общий режим [11:22:02]line Чек 86 21.10.2024 11:22 [11:22:02]line Смена: 535 ФФД: 1.0 [11:22:02]line ЗНМ: 0300000104 [11:22:02]line РНМ: 0000000000091764 [11:22:02]line Версия ККМ: 001 [11:22:02]line ФМ: 0000000000871759 [11:22:02]line ФД: 165975 [11:22:02]line ФПД: 233708366810358 [11:22:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112218&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165975&fm=233708366810358&tin=02508201610067®Number=0000000000091764&sum=60000 [11:22:02]OFD Sender: Processing packet 165975 [packets to send 48, broken 47] [11:22:02]ProducePacketName [11:22:02]name=ofd_packets/00165975 [11:22:02]OFD Sender: To server: pG, [11:22:02]CommunicateWithHost lk.salyk.kg:30040 [11:22:02]ConnectInit lk.salyk.kg [11:22:02]written 0, free lines is 4095 [11:22:03]Connected sock=7 [11: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 35 39 0C 01 00 00 A0 C0 04 01 64 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 6A 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 88 02 00 35 04 06 00 D4 8E 78 2F 4C F6 76 BD 79 AC E1 71 3C 24 [11:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D0 B5 47 00 A8 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 35 39 10 04 04 00 57 88 02 00 F4 03 04 00 D9 DF 15 67 B6 04 01 00 00 97 74 19 A3 67 7F 8F 59 [11:22:03]CommunicateWithHost err = 0 [11:22:03]CheckOFDResponse [11:22:03]1017 (14) - 77093643461234 [11:22:03]1041 (16) - 0000000000871759 [11:22:03]1040 (4) - 165975 [11:22:03]1012 (4) - 21.10.2024 05:00 [11:22:03]1206 (1) - 0 [11:22:03]OFD Sender: Remove packet 165975 [11:22:03]ProducePacketName [11:22:03]name=ofd_packets/00165975 [11:22:03]NVStorageDeleteData [11:22:03]Write to MH i2c: 01 00 00 C2 42 04 [11:22:03]Write i2c OK [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: 01 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: 01 07 00 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: 01 07 00 C2 42 00 00 00 00 00 D2 0C E9 [11:22:03]RasterBufferAndPrint [11:22:03]line [11:22:03]line [11:22:03]line [11:22:03]line [11:22:03]line [11:22:03]written 0, free lines is 3288 [11:22:03]MH_Cut [11:22:03]Write to MH i2c: D1 01 00 C9 42 01 DD [11:22:03]Write i2c OK [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: D1 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: D1 01 00 [11:22:03]MH_I2C_Read... [11:22:03]Read from MH i2c: D1 01 00 C9 42 00 DC [11:22:03]Write to MH i2c: 01 00 00 CA 42 0C [11:22:03]Write i2c OK [11:22:03]MH_I2C_Read... [11:22:03]OFD Sender: No OFD packet to send [11:22:04]*** Cut start [11:22:04]*** Partial cut [11:22:04]*** CUTSNS_PIN = 1 [11:22:04]*** CUTSNS_PIN = 0 [11:22:04]*** Brake cut motor [11:22:04]Read from MH i2c: 01 [11:22:04]MH_I2C_Read... [11:22:04]*** Stop cut motor [11:22:04]*** Cut end [11:22:04]Read from MH i2c: 01 07 00 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: 01 07 00 CA 42 00 00 00 00 00 FF 0F 21 [11:22:04]process_action close_receipt done [11:22:04]requested_data is exist [11:22:04]produce_requested_data [11:22:04]requested_item fm.sn is exist - process it [11:22:04]wFMCommunicate request_size=4 [11:22:04]MH_SAM_APDU [11:22:04]CAPDU: 80 11 00 00 [11:22:04]Write to MH i2c: E2 08 00 CB 42 80 11 00 00 00 00 00 00 87 [11:22:04]Write i2c OK [11:22:04]MH_I2C_Read... [11:22:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:04]Read from MH i2c: E2 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 17 00 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 17 00 CB 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DF [11:22:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:22:04]wFMCommunicate OK [11:22:04]requested_item fd.num is exist - process it [11:22:04]SAM_PROTO_GetFieldsCounters [11:22:04]wFMCommunicate request_size=4 [11:22:04]MH_SAM_APDU [11:22:04]CAPDU: 80 13 00 00 [11:22:04]Write to MH i2c: E2 08 00 CC 42 80 13 00 00 00 00 00 00 8A [11:22:04]Write i2c OK [11:22:04]MH_I2C_Read... [11:22:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:04]Read from MH i2c: E2 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 62 00 [11:22:04]MH_I2C_Read... [11:22:04]Read from MH i2c: E2 62 00 CC 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [11:22:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:04]wFMCommunicate OK [11:22:04]SAM_PROTO_GetFieldsCounters done [11:22:04]requested_item shift.num is exist - process it [11:22:04]requested_item shift.opened is exist - process it [11:22:04]req_shift_opened [11:22:04]FM_GetShiftState [11:22:04]SAM_PROTO_GetShiftState [11:22:04]wFMCommunicate request_size=4 [11:22:04]MH_SAM_APDU [11:22:04]CAPDU: 80 13 01 00 [11:22:04]Write to MH i2c: E2 08 00 CD 42 80 13 01 00 00 00 00 00 8C [11:22:04]Write i2c OK [11:22:04]MH_I2C_Read... [11:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:05]Read from MH i2c: E2 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 0E 00 [11:22:05]MH_I2C_Read... [11:22:05]Read from MH i2c: E2 0E 00 CD 42 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 95 [11:22:05]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:22:05]wFMCommunicate OK [11:22:05]SAM_PROTO_GetShiftState done [11:22:05]FM_GetShiftState done [11:22:05]req_shift_opened done [11:22:05]requested_item shift.open_date is exist - process it [11:22:05]req_shift_open_date [11:22:05]req_shift_open_date done [11:22:05]produce_requested_data done [11:22:05]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165975,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:22:05]process_action_free close_receipt [11:22:05]json_value_free [11:22:05]json_value_free done [11:22:05]process_json_proto returns [11:22:05]Send response to host [11:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165975,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:22:05]free response buf [11:22:05]execute_script done [11:22:05]execute_script returns [11:22:05]free content buf [11:22:05]Sock 6.Close socket [11:22:05]Sock 6.Thread stoped [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:31]accept exits with 5 [11:22:31]New connection [11:22:31]New thread 3066920292 created [11:22:31]Thread 3066776932 joined [11:22:31]Waiting for new connection... [11:22:31] Sock 5.Parse request [11:22:31]Sock 5.Check first char [11:22:31]Sock 5.First char is OK [11:22:31]request: POST /json_proto HTTP/1.0 [11:22:31]Method: POST [11:22:31]URL: /json_proto [11:22:31]Method is POST - this is cgi request [11:22:31]url: /json_proto [11:22:31]query_string will be loaded in cgi processing [11:22:31]execute_cgi json_proto POST (null) [11:22:31]execute_cgi path=json_proto method=POST [11:22:31]POST find Content-Length [11:22:31]Host: 172.17.53.195:8080 [11:22:31]Content-Length: 677 [11:22:31]Content-Type: application/json [11:22:31] [11:22:31]POST finish read [11:22:31]Found Content-Length = 677 [11:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:31]execute_script... [11:22: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)220546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:31]POST & json_proto [11:22:31]process_json_proto [11:22:31]json parsed OK: [11:22:31]protocol is kg_v1.0 [11:22:31]action value=close_receipt [11:22:31]process_action close_receipt [11:22:31]cmd_close_receipt [11:22:31]MH_GetDate [11:22:31]Write to MH i2c: F0 00 00 CE 42 FF [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: F0 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: F0 09 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: F0 09 00 CE 42 00 89 39 16 67 21 48 4A 65 5F [11:22:31]GetLastDocTimeStamp 1729509738 [11:22:31]current date 1729509769 [11:22:31]FM_GetShiftState [11:22:31]SAM_PROTO_GetShiftState [11:22:31]wFMCommunicate request_size=4 [11:22:31]MH_SAM_APDU [11:22:31]CAPDU: 80 13 01 00 [11:22:31]Write to MH i2c: E2 08 00 CF 42 80 13 01 00 00 00 00 00 8E [11:22:31]Write i2c OK [11:22:31]MH_I2C_Read... [11:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:31]Read from MH i2c: E2 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 [11:22:31]MH_I2C_Read... [11:22:31]Read from MH i2c: E2 0E 00 CF 42 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 97 [11:22:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:22:31]wFMCommunicate OK [11:22:31]SAM_PROTO_GetShiftState done [11:22:31]FM_GetShiftState done [11:22:31]opened in 1729470944 [11:22:31]opened+sec_in_day 1729557344 [11:22:31]quantity*price = 50041 [11:22:31]sum+1 = 50042 [11:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 87 21.10.2024 11:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165976 ФПД: 238468694853670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112249&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165976&fm=238468694853670&tin=02508201610067®Number=0000000000091764&sum=50000 [11:22:32]StoreToDocumentArchive [11:22:32]shift 535 fd 165976 [11:22:32]save to /storage/0535/doc_00165976 [11:22:32]save last doc name /storage/0535/doc_00165976 to /storage/kkm_last_doc_name [11:22:32]save OK [11:22:32]Clear old archive folders... [11:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:22:32]tlvbuf is 016C79A0 [11:22:32]SAM_PROTO_ClearQueue [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 09 00 00 [11:22:32]Write to MH i2c: E2 08 00 DC 42 80 09 00 00 00 00 00 00 90 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 DC 42 00 90 00 92 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]SAM_PROTO_ClearQueue done [11:22:32]KKMCreateOFDPacket [11:22:32]OFDProtocolAddRootSTLVToBuf [11:22:32]FM_MakeSignedData [11:22:32]FM_MakeSignedData [11:22:32]SAM_PROTO_SignData [11:22:32]wFMCommunicate request_size=4 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 01 02 [11:22:32]Write to MH i2c: E2 08 00 DD 42 80 0D 01 02 00 00 00 00 98 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:32]Read from MH i2c: E2 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 [11:22:32]MH_I2C_Read... [11:22:32]Read from MH i2c: E2 03 00 DD 42 00 90 00 93 [11:22:32]RAPDU: 90 00 [11:22:32]wFMCommunicate OK [11:22:32]wFMCommunicate request_size=255 [11:22:32]MH_SAM_APDU [11:22:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 89 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 88 02 00 35 04 06 00 D8 [11:22:32]Write to MH i2c: E2 02 01 DE 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 89 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 88 02 00 35 04 06 00 D8 00 00 97 [11:22:32]Write i2c OK [11:22:32]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 03 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 03 00 DE 42 00 90 00 94 [11:22:33]RAPDU: 90 00 [11:22:33]wFMCommunicate OK [11:22:33]wFMCommunicate request_size=10 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 0D 02 02 05 E2 D1 D8 C8 26 [11:22:33]Write to MH i2c: E2 0D 00 DF 42 80 0D 02 02 05 00 E2 D1 D8 C8 26 00 00 1E [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 03 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 03 00 DF 42 00 90 00 95 [11:22:33]RAPDU: 90 00 [11:22:33]wFMCommunicate OK [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 0D 03 02 [11:22:33]Write to MH i2c: E2 08 00 E0 42 80 0D 03 02 00 00 00 00 9D [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 0B 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 0B 00 E0 42 00 C3 A5 A7 E6 5D E8 CA 16 90 00 B8 [11:22:33]RAPDU: C3 A5 A7 E6 5D E8 CA 16 90 00 [11:22:33]wFMCommunicate OK [11:22:33]SAM_PROTO_SignData done [11:22:33]FM_MakeSignedData done [11:22:33]CreateOFDProtocolMessage [11:22:33]wFMCommunicate request_size=4 [11:22:33]MH_SAM_APDU [11:22:33]CAPDU: 80 11 00 00 [11:22:33]Write to MH i2c: E2 08 00 E1 42 80 11 00 00 00 00 00 00 9D [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:33]Read from MH i2c: E2 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 17 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: E2 17 00 E1 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [11:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:22:33]wFMCommunicate OK [11:22:33]CreateOFDProtocolMessage done [11:22:33]OFDSenderStorePacket 165976 [11:22:33]StoreOFDPacket docnum=165976 [11:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 E2 07 01 A6 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 89 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 88 02 00 35 04 06 00 D8 E2 D1 D8 C8 26 C3 A5 A7 E6 5D E8 CA 16 [11:22:33]CheckFolder [11:22:33]dirname=/storage/ofd_packets [11:22:33]CheckFolder done [11:22:33]ProducePacketName [11:22:33]name=ofd_packets/00165976 [11:22:33]NVStorageSaveData ofd_packets/00165976 [11:22:33]File name is /storage/ofd_packets/00165976 [11:22:33]Write 301 bytes [11:22:33]NVStorageSaveData done [11:22:33]OFDSenderStorePacket done [11:22:33]KKMCreateOFDPacket done [11:22:33]NVStorageSaveData kkm_last_timestamp [11:22:33]File name is /storage/kkm_last_timestamp [11:22:33]Write 4 bytes [11:22:33]NVStorageSaveData done [11:22:33]ExternCall_PrintAddStr [11:22:33]wPrintStart [11:22:33]Write to MH i2c: 01 00 00 E2 42 24 [11:22:33]Write i2c OK [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 [11:22:33]MH_I2C_Read... [11:22:33]Read from MH i2c: 01 07 00 E2 42 00 00 00 00 00 FF 0F 39 [11:22:33]RasterBufferAndPrint [11:22:33]line Счет N : (1)220546 [11:22:33]line ИНН: 02508201610067 [11:22:33]line Контрольно-Кассовый Чек [11:22:33]line ПРОДАЖА [11:22:33]line ТРК (МРК, ГНК) : 23 [11:22:33]line Товар: 2710124130 [11:22:33]line Аи-92-К-5 [11:22:33]line 7.480 * 66.90 [11:22:33]line = 500.41 [11:22:33]line НДС 12% НСП 1% [11:22:33]line > о реализуемом товаре [11:22:33]line ОКРУГЛЕНИЕ: -0.41 [11:22:33]line ИТОГО: 500.00 [11:22:33]line Внесено: 500.00 [11:22:33]line СДАЧА: 0.00 [11:22:33]line НСП 1% : 4.43 [11:22:33]line НДС 12% : 53.14 [11:22:33]line Наличными: 500.00 [11:22:33]line Безнал.: 0.00 [11:22:33]line Место: АЗС № 161 "Партнер Нефть" [11:22:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:22:33]line СНО: Общий режим [11:22:33]line Чек 87 21.10.2024 11:22 [11:22:33]line Смена: 535 ФФД: 1.0 [11:22:33]line ЗНМ: 0300000104 [11:22:33]line РНМ: 0000000000091764 [11:22:33]line Версия ККМ: 001 [11:22:33]line ФМ: 0000000000871759 [11:22:33]line ФД: 165976 [11:22:33]line ФПД: 238468694853670 [11:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T112249&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165976&fm=238468694853670&tin=02508201610067®Number=0000000000091764&sum=50000 [11:22:33]OFD Sender: Processing packet 165976 [packets to send 48, broken 47] [11:22:33]ProducePacketName [11:22:33]name=ofd_packets/00165976 [11:22:33]OFD Sender: To server: pG, [11:22:33]CommunicateWithHost lk.salyk.kg:30040 [11:22:33]ConnectInit lk.salyk.kg [11:22:33]written 0, free lines is 4095 [11:22:33]Connected sock=7 [11:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 36 E2 07 01 A6 FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 89 39 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 88 02 00 35 04 06 00 D8 E2 D1 D8 C8 26 C3 A5 A7 E6 5D E8 CA 16 [11:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B 88 47 00 28 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 88 02 00 F4 03 04 00 F8 DF 15 67 B6 04 01 00 00 13 8C D4 D1 62 39 92 D6 [11:22:33]CommunicateWithHost err = 0 [11:22:33]CheckOFDResponse [11:22:33]1017 (14) - 77093643461234 [11:22:33]1041 (16) - 0000000000871759 [11:22:33]1040 (4) - 165976 [11:22:33]1012 (4) - 21.10.2024 05:00 [11:22:33]1206 (1) - 0 [11:22:33]OFD Sender: Remove packet 165976 [11:22:33]ProducePacketName [11:22:33]name=ofd_packets/00165976 [11:22:33]NVStorageDeleteData [11:22:34]Write to MH i2c: 01 00 00 0D 43 50 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 07 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: 01 07 00 0D 43 00 00 00 00 00 CD 0C 30 [11:22:34]RasterBufferAndPrint [11:22:34]line [11:22:34]line [11:22:34]line [11:22:34]line [11:22:34]line [11:22:34]written 0, free lines is 3286 [11:22:34]MH_Cut [11:22:34]Write to MH i2c: D1 01 00 14 43 01 29 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: D1 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: D1 01 00 [11:22:34]MH_I2C_Read... [11:22:34]Read from MH i2c: D1 01 00 14 43 00 28 [11:22:34]Write to MH i2c: 01 00 00 15 43 58 [11:22:34]Write i2c OK [11:22:34]MH_I2C_Read... [11:22:34]OFD Sender: No OFD packet to send [11:22:34]*** Cut start [11:22:34]*** Partial cut [11:22:34]*** CUTSNS_PIN = 1 [11:22:34]*** CUTSNS_PIN = 0 [11:22:35]*** Brake cut motor [11:22:35]Read from MH i2c: 01 [11:22:35]MH_I2C_Read... [11:22:35]*** Stop cut motor [11:22:35]*** Cut end [11:22:35]Read from MH i2c: 01 07 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: 01 07 00 15 43 00 00 00 00 00 FF 0F 6D [11:22:35]process_action close_receipt done [11:22:35]requested_data is exist [11:22:35]produce_requested_data [11:22:35]requested_item fm.sn is exist - process it [11:22:35]wFMCommunicate request_size=4 [11:22:35]MH_SAM_APDU [11:22:35]CAPDU: 80 11 00 00 [11:22:35]Write to MH i2c: E2 08 00 16 43 80 11 00 00 00 00 00 00 D3 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:35]Read from MH i2c: E2 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 17 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 17 00 16 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [11:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:22:35]wFMCommunicate OK [11:22:35]requested_item fd.num is exist - process it [11:22:35]SAM_PROTO_GetFieldsCounters [11:22:35]wFMCommunicate request_size=4 [11:22:35]MH_SAM_APDU [11:22:35]CAPDU: 80 13 00 00 [11:22:35]Write to MH i2c: E2 08 00 17 43 80 13 00 00 00 00 00 00 D6 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:35]Read from MH i2c: E2 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 62 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 62 00 17 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:22:35]wFMCommunicate OK [11:22:35]SAM_PROTO_GetFieldsCounters done [11:22:35]requested_item shift.num is exist - process it [11:22:35]requested_item shift.opened is exist - process it [11:22:35]req_shift_opened [11:22:35]FM_GetShiftState [11:22:35]SAM_PROTO_GetShiftState [11:22:35]wFMCommunicate request_size=4 [11:22:35]MH_SAM_APDU [11:22:35]CAPDU: 80 13 01 00 [11:22:35]Write to MH i2c: E2 08 00 18 43 80 13 01 00 00 00 00 00 D8 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:35]Read from MH i2c: E2 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 0E 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 0E 00 18 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E1 [11:22:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:22:35]wFMCommunicate OK [11:22:35]SAM_PROTO_GetShiftState done [11:22:35]FM_GetShiftState done [11:22:35]req_shift_opened done [11:22:35]requested_item shift.open_date is exist - process it [11:22:35]req_shift_open_date [11:22:35]req_shift_open_date done [11:22:35]produce_requested_data done [11:22:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165976,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:22:35]process_action_free close_receipt [11:22:35]json_value_free [11:22:35]json_value_free done [11:22:35]process_json_proto returns [11:22:35]Send response to host [11:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165976,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:22:35]free response buf [11:22:35]execute_script done [11:22:35]execute_script returns [11:22:35]free content buf [11:22:35]Sock 5.Close socket [11:22:35]Sock 5.Thread stoped [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:04]OFD Sender: No OFD packet to send [11:23:09]OFD Sender: No OFD packet to send [11:23:14]OFD Sender: No OFD packet to send [11:23:19]OFD Sender: No OFD packet to send [11:23:24]OFD Sender: No OFD packet to send [11:23:29]OFD Sender: No OFD packet to send [11:23:34]OFD Sender: No OFD packet to send [11:23:39]OFD Sender: No OFD packet to send [11:23:44]OFD Sender: No OFD packet to send [11:23:49]OFD Sender: No OFD packet to send [11:23:54]OFD Sender: No OFD packet to send [11:23:59]OFD Sender: No OFD packet to send [11:24:04]OFD Sender: No OFD packet to send [11:24:09]OFD Sender: No OFD packet to send [11:24:14]OFD Sender: No OFD packet to send [11:24:19]OFD Sender: No OFD packet to send [11:24:24]OFD Sender: No OFD packet to send [11:24:29]OFD Sender: No OFD packet to send [11:24:34]OFD Sender: No OFD packet to send [11:24:39]OFD Sender: No OFD packet to send [11:24:44]OFD Sender: No OFD packet to send [11:24:49]OFD Sender: No OFD packet to send [11:24:54]OFD Sender: No OFD packet to send [11:24:59]OFD Sender: No OFD packet to send [11:25:04]OFD Sender: No OFD packet to send [11:25:09]OFD Sender: No OFD packet to send [11:25:14]OFD Sender: No OFD packet to send [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:34]OFD Sender: No OFD packet to send [11:25:39]OFD Sender: No OFD packet to send [11:25:44]OFD Sender: No OFD packet to send [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:09]OFD Sender: No OFD packet to send [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [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: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:49]OFD Sender: No OFD packet to send [11:29:52]accept exits with 6 [11:29:52]New connection [11:29:52]New thread 3066776932 created [11:29:52]Thread 3066920292 joined [11:29:52]Waiting for new connection... [11:29:52] Sock 6.Parse request [11:29:52]Sock 6.Check first char [11:29:52]Sock 6.First char is OK [11:29:52]request: POST /json_proto HTTP/1.0 [11:29:52]Method: POST [11:29:52]URL: /json_proto [11:29:52]Method is POST - this is cgi request [11:29:52]url: /json_proto [11:29:52]query_string will be loaded in cgi processing [11:29:52]execute_cgi json_proto POST (null) [11:29:52]execute_cgi path=json_proto method=POST [11:29:52]POST find Content-Length [11:29:52]Host: 172.17.53.195:8080 [11:29:52]Content-Length: 677 [11:29:52]Content-Type: application/json [11:29:52] [11:29:52]POST finish read [11:29:52]Found Content-Length = 677 [11:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:52]execute_script... [11:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:52]POST & json_proto [11:29:52]process_json_proto [11:29:52]json parsed OK: [11:29:52]protocol is kg_v1.0 [11:29:52]action value=close_receipt [11:29:52]process_action close_receipt [11:29:52]cmd_close_receipt [11:29:52]MH_GetDate [11:29:52]Write to MH i2c: F0 00 00 19 43 4B [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: F0 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: F0 09 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: F0 09 00 19 43 00 42 3B 16 67 21 48 4A 65 66 [11:29:52]GetLastDocTimeStamp 1729509769 [11:29:52]current date 1729510210 [11:29:52]FM_GetShiftState [11:29:52]SAM_PROTO_GetShiftState [11:29:52]wFMCommunicate request_size=4 [11:29:52]MH_SAM_APDU [11:29:52]CAPDU: 80 13 01 00 [11:29:52]Write to MH i2c: E2 08 00 1A 43 80 13 01 00 00 00 00 00 DA [11:29:52]Write i2c OK [11:29:52]MH_I2C_Read... [11:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:52]Read from MH i2c: E2 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0E 00 [11:29:52]MH_I2C_Read... [11:29:52]Read from MH i2c: E2 0E 00 1A 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E3 [11:29:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:29:52]wFMCommunicate OK [11:29:52]SAM_PROTO_GetShiftState done [11:29:52]FM_GetShiftState done [11:29:52]opened in 1729470944 [11:29:52]opened+sec_in_day 1729557344 [11:29:52]quantity*price = 20003 [11:29:52]sum+1 = 20004 [11:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 88 21.10.2024 11:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165977 ФПД: 95037125704851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113010&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165977&fm=95037125704851&tin=02508201610067®Number=0000000000091764&sum=20000 [11:29:53]StoreToDocumentArchive [11:29:53]shift 535 fd 165977 [11:29:53]save to /storage/0535/doc_00165977 [11:29:53]save last doc name /storage/0535/doc_00165977 to /storage/kkm_last_doc_name [11:29:53]save OK [11:29:53]Clear old archive folders... [11:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:53]tlvbuf is 0186AEF0 [11:29:53]SAM_PROTO_ClearQueue [11:29:53]wFMCommunicate request_size=4 [11:29:53]MH_SAM_APDU [11:29:53]CAPDU: 80 09 00 00 [11:29:53]Write to MH i2c: E2 08 00 27 43 80 09 00 00 00 00 00 00 DC [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:53]Read from MH i2c: E2 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: E2 03 00 [11:29:53]MH_I2C_Read... [11:29:53]Read from MH i2c: E2 03 00 27 43 00 90 00 DE [11:29:53]RAPDU: 90 00 [11:29:53]wFMCommunicate OK [11:29:53]SAM_PROTO_ClearQueue done [11:29:53]KKMCreateOFDPacket [11:29:53]OFDProtocolAddRootSTLVToBuf [11:29:53]FM_MakeSignedData [11:29:53]FM_MakeSignedData [11:29:53]SAM_PROTO_SignData [11:29:53]wFMCommunicate request_size=4 [11:29:53]MH_SAM_APDU [11:29:53]CAPDU: 80 0D 01 02 [11:29:53]Write to MH i2c: E2 08 00 28 43 80 0D 01 02 00 00 00 00 E4 [11:29:53]Write i2c OK [11:29:53]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 28 43 00 90 00 DF [11:29:54]RAPDU: 90 00 [11:29:54]wFMCommunicate OK [11:29:54]wFMCommunicate request_size=255 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 42 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 88 02 00 35 04 06 00 56 [11:29:54]Write to MH i2c: E2 02 01 29 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 42 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 88 02 00 35 04 06 00 56 00 00 E0 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 29 43 00 90 00 E0 [11:29:54]RAPDU: 90 00 [11:29:54]wFMCommunicate OK [11:29:54]wFMCommunicate request_size=10 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 0D 02 02 05 6F 8E 1E 3C 93 [11:29:54]Write to MH i2c: E2 0D 00 2A 43 80 0D 02 02 05 00 6F 8E 1E 3C 93 00 00 DB [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 03 00 2A 43 00 90 00 E1 [11:29:54]RAPDU: 90 00 [11:29:54]wFMCommunicate OK [11:29:54]wFMCommunicate request_size=4 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 0D 03 02 [11:29:54]Write to MH i2c: E2 08 00 2B 43 80 0D 03 02 00 00 00 00 E9 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 0B 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 0B 00 2B 43 00 8C D9 8C 0B AF 0A CA 93 90 00 FC [11:29:54]RAPDU: 8C D9 8C 0B AF 0A CA 93 90 00 [11:29:54]wFMCommunicate OK [11:29:54]SAM_PROTO_SignData done [11:29:54]FM_MakeSignedData done [11:29:54]CreateOFDProtocolMessage [11:29:54]wFMCommunicate request_size=4 [11:29:54]MH_SAM_APDU [11:29:54]CAPDU: 80 11 00 00 [11:29:54]Write to MH i2c: E2 08 00 2C 43 80 11 00 00 00 00 00 00 E9 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:54]Read from MH i2c: E2 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 17 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: E2 17 00 2C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [11:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:29:54]wFMCommunicate OK [11:29:54]CreateOFDProtocolMessage done [11:29:54]OFDSenderStorePacket 165977 [11:29:54]StoreOFDPacket docnum=165977 [11:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 AF 07 01 33 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 42 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 88 02 00 35 04 06 00 56 6F 8E 1E 3C 93 8C D9 8C 0B AF 0A CA 93 [11:29:54]CheckFolder [11:29:54]dirname=/storage/ofd_packets [11:29:54]CheckFolder done [11:29:54]ProducePacketName [11:29:54]name=ofd_packets/00165977 [11:29:54]NVStorageSaveData ofd_packets/00165977 [11:29:54]File name is /storage/ofd_packets/00165977 [11:29:54]Write 301 bytes [11:29:54]NVStorageSaveData done [11:29:54]OFDSenderStorePacket done [11:29:54]KKMCreateOFDPacket done [11:29:54]NVStorageSaveData kkm_last_timestamp [11:29:54]File name is /storage/kkm_last_timestamp [11:29:54]Write 4 bytes [11:29:54]NVStorageSaveData done [11:29:54]ExternCall_PrintAddStr [11:29:54]wPrintStart [11:29:54]Write to MH i2c: 01 00 00 2D 43 70 [11:29:54]OFD Sender: Processing packet 165977 [packets to send 48, broken 47] [11:29:54]ProducePacketName [11:29:54]name=ofd_packets/00165977 [11:29:54]OFD Sender: To server: pG, [11:29:54]CommunicateWithHost lk.salyk.kg:30040 [11:29:54]ConnectInit lk.salyk.kg [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 2D 43 00 00 00 00 00 FF 0F 85 [11:29:54]RasterBufferAndPrint [11:29:54]line Счет N : (1)220548 [11:29:54]line ИНН: 02508201610067 [11:29:54]line Контрольно-Кассовый Чек [11:29:54]line ПРОДАЖА [11:29:54]line ТРК (МРК, ГНК) : 33 [11:29:54]line Товар: 2710124130 [11:29:54]line Аи-92-К-5 [11:29:54]line 2.990 * 66.90 [11:29:54]line = 200.03 [11:29:54]line НДС 12% НСП 1% [11:29:54]line > о реализуемом товаре [11:29:54]line ОКРУГЛЕНИЕ: -0.03 [11:29:54]line ИТОГО: 200.00 [11:29:54]line Внесено: 200.00 [11:29:54]line СДАЧА: 0.00 [11:29:54]line НСП 1% : 1.77 [11:29:54]line НДС 12% : 21.24 [11:29:54]line Наличными: 200.00 [11:29:54]line Безнал.: 0.00 [11:29:54]line Место: АЗС № 161 "Партнер Нефть" [11:29:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:29:54]line СНО: Общий режим [11:29:54]line Чек 88 21.10.2024 11:30 [11:29:54]line Смена: 535 ФФД: 1.0 [11:29:54]line ЗНМ: 0300000104 [11:29:54]line РНМ: 0000000000091764 [11:29:54]line Версия ККМ: 001 [11:29:54]line ФМ: 0000000000871759 [11:29:54]line ФД: 165977 [11:29:54]line ФПД: 95037125704851 [11:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113010&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165977&fm=95037125704851&tin=02508201610067®Number=0000000000091764&sum=20000 [11:29:54]written 0, free lines is 4095 [11:29:54]Connected sock=7 [11:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 AF 07 01 33 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 42 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 88 02 00 35 04 06 00 56 6F 8E 1E 3C 93 8C D9 8C 0B AF 0A CA 93 [11:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 59 41 47 00 4C 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 88 02 00 F4 03 04 00 B1 E1 15 67 B6 04 01 00 00 33 E2 8E 72 CF A7 50 B2 [11:29:54]CommunicateWithHost err = 0 [11:29:54]CheckOFDResponse [11:29:54]1017 (14) - 77093643461234 [11:29:54]1041 (16) - 0000000000871759 [11:29:54]1040 (4) - 165977 [11:29:54]1012 (4) - 21.10.2024 05:08 [11:29:54]1206 (1) - 0 [11:29:54]OFD Sender: Remove packet 165977 [11:29:54]ProducePacketName [11:29:54]name=ofd_packets/00165977 [11:29:54]NVStorageDeleteData [11:29:54]Write to MH i2c: 01 00 00 58 43 9B [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: 01 07 00 58 43 00 00 00 00 00 D4 0C 82 [11:29:54]RasterBufferAndPrint [11:29:54]line [11:29:54]line [11:29:54]line [11:29:54]line [11:29:54]line [11:29:54]written 0, free lines is 3293 [11:29:54]MH_Cut [11:29:54]Write to MH i2c: D1 01 00 5F 43 01 74 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: D1 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: D1 01 00 [11:29:54]MH_I2C_Read... [11:29:54]Read from MH i2c: D1 01 00 5F 43 00 73 [11:29:54]Write to MH i2c: 01 00 00 60 43 A3 [11:29:54]Write i2c OK [11:29:54]MH_I2C_Read... [11:29:55]OFD Sender: No OFD packet to send [11:29:55]*** Cut start [11:29:55]*** Partial cut [11:29:55]*** CUTSNS_PIN = 1 [11:29:55]*** CUTSNS_PIN = 0 [11:29:55]*** Brake cut motor [11:29:56]Read from MH i2c: 01 [11:29:56]MH_I2C_Read... [11:29:56]*** Stop cut motor [11:29:56]*** Cut end [11:29:56]Read from MH i2c: 01 07 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: 01 07 00 60 43 00 00 00 00 00 FF 0F B8 [11:29:56]process_action close_receipt done [11:29:56]requested_data is exist [11:29:56]produce_requested_data [11:29:56]requested_item fm.sn is exist - process it [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 11 00 00 [11:29:56]Write to MH i2c: E2 08 00 61 43 80 11 00 00 00 00 00 00 1E [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 17 00 61 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [11:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:29:56]wFMCommunicate OK [11:29:56]requested_item fd.num is exist - process it [11:29:56]SAM_PROTO_GetFieldsCounters [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 13 00 00 [11:29:56]Write to MH i2c: E2 08 00 62 43 80 13 00 00 00 00 00 00 21 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 62 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 62 00 62 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [11:29:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_GetFieldsCounters done [11:29:56]requested_item shift.num is exist - process it [11:29:56]requested_item shift.opened is exist - process it [11:29:56]req_shift_opened [11:29:56]FM_GetShiftState [11:29:56]SAM_PROTO_GetShiftState [11:29:56]wFMCommunicate request_size=4 [11:29:56]MH_SAM_APDU [11:29:56]CAPDU: 80 13 01 00 [11:29:56]Write to MH i2c: E2 08 00 63 43 80 13 01 00 00 00 00 00 23 [11:29:56]Write i2c OK [11:29:56]MH_I2C_Read... [11:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:56]Read from MH i2c: E2 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 [11:29:56]MH_I2C_Read... [11:29:56]Read from MH i2c: E2 0E 00 63 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2C [11:29:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:29:56]wFMCommunicate OK [11:29:56]SAM_PROTO_GetShiftState done [11:29:56]FM_GetShiftState done [11:29:56]req_shift_opened done [11:29:56]requested_item shift.open_date is exist - process it [11:29:56]req_shift_open_date [11:29:56]req_shift_open_date done [11:29:56]produce_requested_data done [11:29:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165977,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:29:56]process_action_free close_receipt [11:29:56]json_value_free [11:29:56]json_value_free done [11:29:56]process_json_proto returns [11:29:56]Send response to host [11:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165977,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:29:56]free response buf [11:29:56]execute_script done [11:29:56]execute_script returns [11:29:56]free content buf [11:29:56]Sock 6.Close socket [11:29:56]Sock 6.Thread stoped [11:30:00]OFD Sender: No OFD packet to send [11:30:04]accept exits with 5 [11:30:04]New connection [11:30:04]New thread 3066920292 created [11:30:04]Thread 3066776932 joined [11:30:04]Waiting for new connection... [11:30:04] Sock 5.Parse request [11:30:04]Sock 5.Check first char [11:30:04]Sock 5.First char is OK [11:30:04]request: POST /json_proto HTTP/1.0 [11:30:04]Method: POST [11:30:04]URL: /json_proto [11:30:04]Method is POST - this is cgi request [11:30:04]url: /json_proto [11:30:04]query_string will be loaded in cgi processing [11:30:04]execute_cgi json_proto POST (null) [11:30:04]execute_cgi path=json_proto method=POST [11:30:04]POST find Content-Length [11:30:04]Host: 172.17.53.195:8080 [11:30:04]Content-Length: 677 [11:30:04]Content-Type: application/json [11:30:04] [11:30:04]POST finish read [11:30:04]Found Content-Length = 677 [11:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:04]execute_script... [11: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)220547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:04]POST & json_proto [11:30:04]process_json_proto [11:30:04]json parsed OK: [11:30:04]protocol is kg_v1.0 [11:30:04]action value=close_receipt [11:30:04]process_action close_receipt [11:30:04]cmd_close_receipt [11:30:04]MH_GetDate [11:30:04]Write to MH i2c: F0 00 00 64 43 96 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: F0 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: F0 09 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: F0 09 00 64 43 00 4E 3B 16 67 21 48 4A 65 BD [11:30:04]GetLastDocTimeStamp 1729510210 [11:30:04]current date 1729510222 [11:30:04]FM_GetShiftState [11:30:04]SAM_PROTO_GetShiftState [11:30:04]wFMCommunicate request_size=4 [11:30:04]MH_SAM_APDU [11:30:04]CAPDU: 80 13 01 00 [11:30:04]Write to MH i2c: E2 08 00 65 43 80 13 01 00 00 00 00 00 25 [11:30:04]Write i2c OK [11:30:04]MH_I2C_Read... [11:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:04]Read from MH i2c: E2 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0E 00 [11:30:04]MH_I2C_Read... [11:30:04]Read from MH i2c: E2 0E 00 65 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2E [11:30:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:30:04]wFMCommunicate OK [11:30:04]SAM_PROTO_GetShiftState done [11:30:04]FM_GetShiftState done [11:30:04]opened in 1729470944 [11:30:04]opened+sec_in_day 1729557344 [11:30:04]quantity*price = 30038 [11:30:04]sum+1 = 30039 [11:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 89 21.10.2024 11:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165978 ФПД: 73742988665607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113022&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165978&fm=73742988665607&tin=02508201610067®Number=0000000000091764&sum=30000 [11:30:05]StoreToDocumentArchive [11:30:05]shift 535 fd 165978 [11:30:05]save to /storage/0535/doc_00165978 [11:30:05]save last doc name /storage/0535/doc_00165978 to /storage/kkm_last_doc_name [11:30:05]save OK [11:30:05]Clear old archive folders... [11:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:05]tlvbuf is 01522940 [11:30:05]SAM_PROTO_ClearQueue [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 09 00 00 [11:30:05]Write to MH i2c: E2 08 00 72 43 80 09 00 00 00 00 00 00 27 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 72 43 00 90 00 29 [11:30:05]RAPDU: 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_ClearQueue done [11:30:05]KKMCreateOFDPacket [11:30:05]OFDProtocolAddRootSTLVToBuf [11:30:05]FM_MakeSignedData [11:30:05]FM_MakeSignedData [11:30:05]SAM_PROTO_SignData [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 0D 01 02 [11:30:05]Write to MH i2c: E2 08 00 73 43 80 0D 01 02 00 00 00 00 2F [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 73 43 00 90 00 2A [11:30:05]RAPDU: 90 00 [11:30:05]wFMCommunicate OK [11:30:05]wFMCommunicate request_size=255 [11:30:05]MH_SAM_APDU [11:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4E 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 88 02 00 35 04 06 00 43 [11:30:05]Write to MH i2c: E2 02 01 74 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4E 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 88 02 00 35 04 06 00 43 00 00 58 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 74 43 00 90 00 2B [11:30:05]RAPDU: 90 00 [11:30:05]wFMCommunicate OK [11:30:05]wFMCommunicate request_size=10 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 0D 02 02 05 11 A0 A4 E3 07 [11:30:05]Write to MH i2c: E2 0D 00 75 43 80 0D 02 02 05 00 11 A0 A4 E3 07 00 00 7B [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 03 00 75 43 00 90 00 2C [11:30:05]RAPDU: 90 00 [11:30:05]wFMCommunicate OK [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 0D 03 02 [11:30:05]Write to MH i2c: E2 08 00 76 43 80 0D 03 02 00 00 00 00 34 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0B 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 0B 00 76 43 00 7D 27 E8 78 9D 01 D7 46 90 00 F4 [11:30:05]RAPDU: 7D 27 E8 78 9D 01 D7 46 90 00 [11:30:05]wFMCommunicate OK [11:30:05]SAM_PROTO_SignData done [11:30:05]FM_MakeSignedData done [11:30:05]CreateOFDProtocolMessage [11:30:05]wFMCommunicate request_size=4 [11:30:05]MH_SAM_APDU [11:30:05]CAPDU: 80 11 00 00 [11:30:05]Write to MH i2c: E2 08 00 77 43 80 11 00 00 00 00 00 00 34 [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:05]Read from MH i2c: E2 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: E2 17 00 [11:30:05]MH_I2C_Read... [11:30:05]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 35 39 90 00 8C [11:30:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:05]wFMCommunicate OK [11:30:05]CreateOFDProtocolMessage done [11:30:05]OFDSenderStorePacket 165978 [11:30:05]StoreOFDPacket docnum=165978 [11:30:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CC 50 07 01 8E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4E 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 88 02 00 35 04 06 00 43 11 A0 A4 E3 07 7D 27 E8 78 9D 01 D7 46 [11:30:05]CheckFolder [11:30:05]dirname=/storage/ofd_packets [11:30:05]CheckFolder done [11:30:05]ProducePacketName [11:30:05]name=ofd_packets/00165978 [11:30:05]NVStorageSaveData ofd_packets/00165978 [11:30:05]File name is /storage/ofd_packets/00165978 [11:30:05]Write 301 bytes [11:30:05]NVStorageSaveData done [11:30:05]OFDSenderStorePacket done [11:30:05]KKMCreateOFDPacket done [11:30:05]NVStorageSaveData kkm_last_timestamp [11:30:05]File name is /storage/kkm_last_timestamp [11:30:05]Write 4 bytes [11:30:05]NVStorageSaveData done [11:30:05]ExternCall_PrintAddStr [11:30:05]wPrintStart [11:30:05]Write to MH i2c: 01 00 00 78 43 BB [11:30:05]Write i2c OK [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 [11:30:05]MH_I2C_Read... [11:30:05]Read from MH i2c: 01 07 00 78 43 00 00 00 00 00 FF 0F D0 [11:30:05]RasterBufferAndPrint [11:30:05]line Счет N : (1)220547 [11:30:05]line ИНН: 02508201610067 [11:30:05]line Контрольно-Кассовый Чек [11:30:05]line ПРОДАЖА [11:30:05]line ТРК (МРК, ГНК) : 43 [11:30:05]line Товар: 2710124130 [11:30:05]line Аи-92-К-5 [11:30:05]line 4.490 * 66.90 [11:30:05]line = 300.38 [11:30:05]line НДС 12% НСП 1% [11:30:05]line > о реализуемом товаре [11:30:05]line ОКРУГЛЕНИЕ: -0.38 [11:30:05]line ИТОГО: 300.00 [11:30:05]line Внесено: 300.00 [11:30:05]line СДАЧА: 0.00 [11:30:05]line НСП 1% : 2.66 [11:30:05]line НДС 12% : 31.90 [11:30:05]line Наличными: 300.00 [11:30:05]line Безнал.: 0.00 [11:30:05]line Место: АЗС № 161 "Партнер Нефть" [11:30:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:30:05]line СНО: Общий режим [11:30:05]line Чек 89 21.10.2024 11:30 [11:30:05]line Смена: 535 ФФД: 1.0 [11:30:05]line ЗНМ: 0300000104 [11:30:05]line РНМ: 0000000000091764 [11:30:06]line Версия ККМ: 001 [11:30:06]line ФМ: 0000000000871759 [11:30:06]line ФД: 165978 [11:30:06]line ФПД: 73742988665607 [11:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113022&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165978&fm=73742988665607&tin=02508201610067®Number=0000000000091764&sum=30000 [11:30:06]written 0, free lines is 4095 [11:30:06]OFD Sender: Processing packet 165978 [packets to send 48, broken 47] [11:30:06]ProducePacketName [11:30:06]name=ofd_packets/00165978 [11:30:06]OFD Sender: To server: pG, [11:30:06]CommunicateWithHost lk.salyk.kg:30040 [11:30:06]ConnectInit lk.salyk.kg [11:30:06]Connected sock=7 [11: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 35 39 0F 01 00 00 CC 50 07 01 8E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 4E 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 88 02 00 35 04 06 00 43 11 A0 A4 E3 07 7D 27 E8 78 9D 01 D7 46 [11:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A 5B 47 00 F5 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 88 02 00 F4 03 04 00 BC E1 15 67 B6 04 01 00 00 1B 4A 8A 8A 9B FE D6 07 [11:30:06]CommunicateWithHost err = 0 [11:30:06]CheckOFDResponse [11:30:06]1017 (14) - 77093643461234 [11:30:06]1041 (16) - 0000000000871759 [11:30:06]1040 (4) - 165978 [11:30:06]1012 (4) - 21.10.2024 05:08 [11:30:06]1206 (1) - 0 [11:30:06]OFD Sender: Remove packet 165978 [11:30:06]ProducePacketName [11:30:06]name=ofd_packets/00165978 [11:30:06]NVStorageDeleteData [11:30:06]Write to MH i2c: 01 00 00 A3 43 E6 [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: 01 07 00 A3 43 00 00 00 00 00 DD 0C D6 [11:30:06]RasterBufferAndPrint [11:30:06]line [11:30:06]line [11:30:06]line [11:30:06]line [11:30:06]line [11:30:06]written 0, free lines is 3302 [11:30:06]MH_Cut [11:30:06]Write to MH i2c: D1 01 00 AA 43 01 BF [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: D1 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: D1 01 00 [11:30:06]MH_I2C_Read... [11:30:06]Read from MH i2c: D1 01 00 AA 43 00 BE [11:30:06]Write to MH i2c: 01 00 00 AB 43 EE [11:30:06]Write i2c OK [11:30:06]MH_I2C_Read... [11:30:06]OFD Sender: No OFD packet to send [11:30:07]*** Cut start [11:30:07]*** Partial cut [11:30:07]*** CUTSNS_PIN = 1 [11:30:07]*** CUTSNS_PIN = 0 [11:30:07]*** Brake cut motor [11:30:07]Read from MH i2c: 01 [11:30:07]MH_I2C_Read... [11:30:07]*** Stop cut motor [11:30:07]*** Cut end [11:30:07]Read from MH i2c: 01 07 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: 01 07 00 AB 43 00 00 00 00 00 FF 0F 03 [11:30:07]process_action close_receipt done [11:30:07]requested_data is exist [11:30:07]produce_requested_data [11:30:07]requested_item fm.sn is exist - process it [11:30:07]wFMCommunicate request_size=4 [11:30:07]MH_SAM_APDU [11:30:07]CAPDU: 80 11 00 00 [11:30:07]Write to MH i2c: E2 08 00 AC 43 80 11 00 00 00 00 00 00 69 [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:07]Read from MH i2c: E2 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 17 00 [11:30:07]MH_I2C_Read... [11:30:07]Read from MH i2c: E2 17 00 AC 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [11:30:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:30:07]wFMCommunicate OK [11:30:07]requested_item fd.num is exist - process it [11:30:07]SAM_PROTO_GetFieldsCounters [11:30:07]wFMCommunicate request_size=4 [11:30:07]MH_SAM_APDU [11:30:07]CAPDU: 80 13 00 00 [11:30:07]Write to MH i2c: E2 08 00 AD 43 80 13 00 00 00 00 00 00 6C [11:30:07]Write i2c OK [11:30:07]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 62 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 62 00 AD 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [11: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:08]wFMCommunicate OK [11:30:08]SAM_PROTO_GetFieldsCounters done [11:30:08]requested_item shift.num is exist - process it [11:30:08]requested_item shift.opened is exist - process it [11:30:08]req_shift_opened [11:30:08]FM_GetShiftState [11:30:08]SAM_PROTO_GetShiftState [11:30:08]wFMCommunicate request_size=4 [11:30:08]MH_SAM_APDU [11:30:08]CAPDU: 80 13 01 00 [11:30:08]Write to MH i2c: E2 08 00 AE 43 80 13 01 00 00 00 00 00 6E [11:30:08]Write i2c OK [11:30:08]MH_I2C_Read... [11:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:08]Read from MH i2c: E2 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 [11:30:08]MH_I2C_Read... [11:30:08]Read from MH i2c: E2 0E 00 AE 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 77 [11:30:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:30:08]wFMCommunicate OK [11:30:08]SAM_PROTO_GetShiftState done [11:30:08]FM_GetShiftState done [11:30:08]req_shift_opened done [11:30:08]requested_item shift.open_date is exist - process it [11:30:08]req_shift_open_date [11:30:08]req_shift_open_date done [11:30:08]produce_requested_data done [11:30:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165978,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:30:08]process_action_free close_receipt [11:30:08]json_value_free [11:30:08]json_value_free done [11:30:08]process_json_proto returns [11:30:08]Send response to host [11:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165978,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:30:08]free response buf [11:30:08]execute_script done [11:30:08]execute_script returns [11:30:08]free content buf [11:30:08]Sock 5.Close socket [11:30:08]Sock 5.Thread stoped [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:51]accept exits with 6 [11:32:51]New connection [11:32:51]New thread 3066776932 created [11:32:51]Thread 3066920292 joined [11:32:51]Waiting for new connection... [11:32:51] Sock 6.Parse request [11:32:51]Sock 6.Check first char [11:32:51]Sock 6.First char is OK [11:32:51]request: POST /json_proto HTTP/1.0 [11:32:51]Method: POST [11:32:51]URL: /json_proto [11:32:51]Method is POST - this is cgi request [11:32:51]url: /json_proto [11:32:51]query_string will be loaded in cgi processing [11:32:51]execute_cgi json_proto POST (null) [11:32:51]execute_cgi path=json_proto method=POST [11:32:51]POST find Content-Length [11:32:51]Host: 172.17.53.195:8080 [11:32:51]Content-Length: 769 [11:32:51]Content-Type: application/json [11:32:51] [11:32:51]POST finish read [11:32:51]Found Content-Length = 769 [11:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:51]execute_script... [11:32: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)220549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:51]POST & json_proto [11:32:51]process_json_proto [11:32:51]json parsed OK: [11:32:51]protocol is kg_v1.0 [11:32:51]action value=close_receipt [11:32:51]process_action close_receipt [11:32:51]cmd_close_receipt [11:32:51]MH_GetDate [11:32:51]Write to MH i2c: F0 00 00 AF 43 E1 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: F0 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: F0 09 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: F0 09 00 AF 43 00 F5 3B 16 67 21 48 4A 65 AF [11:32:51]GetLastDocTimeStamp 1729510222 [11:32:51]current date 1729510389 [11:32:51]FM_GetShiftState [11:32:51]SAM_PROTO_GetShiftState [11:32:51]wFMCommunicate request_size=4 [11:32:51]MH_SAM_APDU [11:32:51]CAPDU: 80 13 01 00 [11:32:51]Write to MH i2c: E2 08 00 B0 43 80 13 01 00 00 00 00 00 70 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 0E 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 0E 00 B0 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 79 [11:32:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:32:51]wFMCommunicate OK [11:32:51]SAM_PROTO_GetShiftState done [11:32:51]FM_GetShiftState done [11:32:51]opened in 1729470944 [11:32:51]opened+sec_in_day 1729557344 [11:32:51]quantity*price = 100015 [11:32:51]sum+1 = 100017 [11:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 90 21.10.2024 11:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165979 ФПД: 183269325747558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113309&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165979&fm=183269325747558&tin=02508201610067®Number=0000000000091764&sum=100016 [11:32:52]StoreToDocumentArchive [11:32:52]shift 535 fd 165979 [11:32:52]save to /storage/0535/doc_00165979 [11:32:52]save last doc name /storage/0535/doc_00165979 to /storage/kkm_last_doc_name [11:32:52]save OK [11:32:52]Clear old archive folders... [11:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:32:52]tlvbuf is 01522AD0 [11:32:52]SAM_PROTO_ClearQueue [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 09 00 00 [11:32:52]Write to MH i2c: E2 08 00 BD 43 80 09 00 00 00 00 00 00 72 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 BD 43 00 90 00 74 [11:32:52]RAPDU: 90 00 [11:32:52]wFMCommunicate OK [11:32:52]SAM_PROTO_ClearQueue done [11:32:52]KKMCreateOFDPacket [11:32:52]OFDProtocolAddRootSTLVToBuf [11:32:52]FM_MakeSignedData [11:32:52]FM_MakeSignedData [11:32:52]SAM_PROTO_SignData [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 0D 01 02 [11:32:52]Write to MH i2c: E2 08 00 BE 43 80 0D 01 02 00 00 00 00 7A [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 BE 43 00 90 00 75 [11:32:52]RAPDU: 90 00 [11:32:52]wFMCommunicate OK [11:32:52]wFMCommunicate request_size=255 [11:32:52]MH_SAM_APDU [11:32: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 88 02 00 35 04 06 00 A6 [11:32:52]Write to MH i2c: E2 02 01 BF 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 88 02 00 35 04 06 00 A6 00 00 D5 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 BF 43 00 90 00 76 [11:32:52]RAPDU: 90 00 [11:32:52]wFMCommunicate OK [11:32:52]wFMCommunicate request_size=10 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 0D 02 02 05 AE B7 0F 35 66 [11:32:52]Write to MH i2c: E2 0D 00 C0 43 80 0D 02 02 05 00 AE B7 0F 35 66 00 00 96 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 03 00 C0 43 00 90 00 77 [11:32:52]RAPDU: 90 00 [11:32:52]wFMCommunicate OK [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 0D 03 02 [11:32:52]Write to MH i2c: E2 08 00 C1 43 80 0D 03 02 00 00 00 00 7F [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 0B 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 0B 00 C1 43 00 C6 60 0A 59 28 34 BD AF 90 00 D1 [11:32:52]RAPDU: C6 60 0A 59 28 34 BD AF 90 00 [11:32:52]wFMCommunicate OK [11:32:52]SAM_PROTO_SignData done [11:32:52]FM_MakeSignedData done [11:32:52]CreateOFDProtocolMessage [11:32:52]wFMCommunicate request_size=4 [11:32:52]MH_SAM_APDU [11:32:52]CAPDU: 80 11 00 00 [11:32:52]Write to MH i2c: E2 08 00 C2 43 80 11 00 00 00 00 00 00 7F [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:52]Read from MH i2c: E2 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 17 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: E2 17 00 C2 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [11:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:32:52]wFMCommunicate OK [11:32:52]CreateOFDProtocolMessage done [11:32:52]OFDSenderStorePacket 165979 [11:32:52]StoreOFDPacket docnum=165979 [11:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 6B 07 01 D3 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 88 02 00 35 04 06 00 A6 AE B7 0F 35 66 C6 60 0A 59 28 34 BD AF [11:32:52]CheckFolder [11:32:52]dirname=/storage/ofd_packets [11:32:52]CheckFolder done [11:32:52]ProducePacketName [11:32:52]name=ofd_packets/00165979 [11:32:52]NVStorageSaveData ofd_packets/00165979 [11:32:52]File name is /storage/ofd_packets/00165979 [11:32:52]Write 301 bytes [11:32:52]NVStorageSaveData done [11:32:52]OFDSenderStorePacket done [11:32:52]KKMCreateOFDPacket done [11:32:52]NVStorageSaveData kkm_last_timestamp [11:32:52]File name is /storage/kkm_last_timestamp [11:32:52]Write 4 bytes [11:32:52]NVStorageSaveData done [11:32:52]ExternCall_PrintAddStr [11:32:52]wPrintStart [11:32:52]Write to MH i2c: 01 00 00 C3 43 06 [11:32:52]Write i2c OK [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: 01 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: 01 07 00 [11:32:52]MH_I2C_Read... [11:32:52]Read from MH i2c: 01 07 00 C3 43 00 00 00 00 00 FF 0F 1B [11:32:52]RasterBufferAndPrint [11:32:52]line Счет N : (1)220549 [11:32:52]line ИНН: 02508201610067 [11:32:52]line Контрольно-Кассовый Чек [11:32:52]line ПРОДАЖА [11:32:52]line ТРК (МРК, ГНК) : 13 [11:32:52]line Товар: 2710124130 [11:32:52]line Аи-92-К-5 [11:32:52]line 14.950 * 66.90 [11:32:52]line = 1000.16 [11:32:52]line НДС 12% НСП 1% [11:32:52]line > о реализуемом товаре [11:32:52]line ИТОГО: 1000.16 [11:32:52]line НСП 1% : 8.85 [11:32:52]line НДС 12% : 106.21 [11:32:52]line Наличными: 0.00 [11:32:52]line Безнал.: 1000.16 [11:32:52]line Место: АЗС № 161 "Партнер Нефть" [11:32:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:32:52]line СНО: Общий режим [11:32:52]line Чек 90 21.10.2024 11:33 [11:32:52]line Смена: 535 ФФД: 1.0 [11:32:52]line ЗНМ: 0300000104 [11:32:52]line РНМ: 0000000000091764 [11:32:52]line Версия ККМ: 001 [11:32:52]line Платежная система: Mbank [11:32:52]line ФМ: 0000000000871759 [11:32:52]line ФД: 165979 [11:32:52]line ФПД: 183269325747558 [11:32:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113309&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165979&fm=183269325747558&tin=02508201610067®Number=0000000000091764&sum=100016 [11:32:52]OFD Sender: Processing packet 165979 [packets to send 48, broken 47] [11:32:52]ProducePacketName [11:32:52]name=ofd_packets/00165979 [11:32:52]OFD Sender: To server: pG, [11:32:52]CommunicateWithHost lk.salyk.kg:30040 [11:32:52]ConnectInit lk.salyk.kg [11:32:52]written 0, free lines is 4095 [11:32:53]Connected sock=7 [11:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 67 6B 07 01 D3 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F5 3B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 88 02 00 35 04 06 00 A6 AE B7 0F 35 66 C6 60 0A 59 28 34 BD AF [11:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D4 30 47 00 5D 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 35 39 10 04 04 00 5B 88 02 00 F4 03 04 00 63 E2 15 67 B6 04 01 00 00 15 FA 5E 87 2B 4F C5 10 [11:32:53]CommunicateWithHost err = 0 [11:32:53]CheckOFDResponse [11:32:53]1017 (14) - 77093643461234 [11:32:53]1041 (16) - 0000000000871759 [11:32:53]1040 (4) - 165979 [11:32:53]1012 (4) - 21.10.2024 05:10 [11:32:53]1206 (1) - 0 [11:32:53]OFD Sender: Remove packet 165979 [11:32:53]ProducePacketName [11:32:53]name=ofd_packets/00165979 [11:32:53]NVStorageDeleteData [11:32:53]Write to MH i2c: 01 00 00 EC 43 2F [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: 01 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: 01 07 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: 01 07 00 EC 43 00 00 00 00 00 00 0D 43 [11:32:53]RasterBufferAndPrint [11:32:53]line [11:32:53]line [11:32:53]line [11:32:53]line [11:32:53]line [11:32:53]written 0, free lines is 3335 [11:32:53]MH_Cut [11:32:53]Write to MH i2c: D1 01 00 F3 43 01 08 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: D1 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: D1 01 00 [11:32:53]MH_I2C_Read... [11:32:53]Read from MH i2c: D1 01 00 F3 43 00 07 [11:32:53]Write to MH i2c: 01 00 00 F4 43 37 [11:32:53]Write i2c OK [11:32:53]MH_I2C_Read... [11:32:53]OFD Sender: No OFD packet to send [11:32:54]*** Cut start [11:32:54]*** Partial cut [11:32:54]*** CUTSNS_PIN = 1 [11:32:54]*** CUTSNS_PIN = 0 [11:32:54]*** Brake cut motor [11:32:54]Read from MH i2c: 01 [11:32:54]MH_I2C_Read... [11:32:54]*** Stop cut motor [11:32:54]*** Cut end [11:32:54]Read from MH i2c: 01 07 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: 01 07 00 F4 43 00 00 00 00 00 FF 0F 4C [11:32:54]process_action close_receipt done [11:32:54]requested_data is exist [11:32:54]produce_requested_data [11:32:54]requested_item fm.sn is exist - process it [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 11 00 00 [11:32:54]Write to MH i2c: E2 08 00 F5 43 80 11 00 00 00 00 00 00 B2 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:54]Read from MH i2c: E2 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 17 00 [11:32:54]MH_I2C_Read... [11:32:54]Read from MH i2c: E2 17 00 F5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [11:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:32:54]wFMCommunicate OK [11:32:54]requested_item fd.num is exist - process it [11:32:54]SAM_PROTO_GetFieldsCounters [11:32:54]wFMCommunicate request_size=4 [11:32:54]MH_SAM_APDU [11:32:54]CAPDU: 80 13 00 00 [11:32:54]Write to MH i2c: E2 08 00 F6 43 80 13 00 00 00 00 00 00 B5 [11:32:54]Write i2c OK [11:32:54]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 62 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 62 00 F6 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:32:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:55]wFMCommunicate OK [11:32:55]SAM_PROTO_GetFieldsCounters done [11:32:55]requested_item shift.num is exist - process it [11:32:55]requested_item shift.opened is exist - process it [11:32:55]req_shift_opened [11:32:55]FM_GetShiftState [11:32:55]SAM_PROTO_GetShiftState [11:32:55]wFMCommunicate request_size=4 [11:32:55]MH_SAM_APDU [11:32:55]CAPDU: 80 13 01 00 [11:32:55]Write to MH i2c: E2 08 00 F7 43 80 13 01 00 00 00 00 00 B7 [11:32:55]Write i2c OK [11:32:55]MH_I2C_Read... [11:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:55]Read from MH i2c: E2 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 0E 00 [11:32:55]MH_I2C_Read... [11:32:55]Read from MH i2c: E2 0E 00 F7 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C0 [11:32:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:32:55]wFMCommunicate OK [11:32:55]SAM_PROTO_GetShiftState done [11:32:55]FM_GetShiftState done [11:32:55]req_shift_opened done [11:32:55]requested_item shift.open_date is exist - process it [11:32:55]req_shift_open_date [11:32:55]req_shift_open_date done [11:32:55]produce_requested_data done [11:32:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165979,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:32:55]process_action_free close_receipt [11:32:55]json_value_free [11:32:55]json_value_free done [11:32:55]process_json_proto returns [11:32:55]Send response to host [11:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165979,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:32:55]free response buf [11:32:55]execute_script done [11:32:55]execute_script returns [11:32:55]free content buf [11:32:55]Sock 6.Close socket [11:32:55]Sock 6.Thread stoped [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:12]accept exits with 5 [11:34:12]New connection [11:34:12]New thread 3066920292 created [11:34:12]Thread 3066776932 joined [11:34:12]Waiting for new connection... [11:34:12] Sock 5.Parse request [11:34:12]Sock 5.Check first char [11:34:12]Sock 5.First char is OK [11:34:12]request: POST /json_proto HTTP/1.0 [11:34:12]Method: POST [11:34:12]URL: /json_proto [11:34:12]Method is POST - this is cgi request [11:34:12]url: /json_proto [11:34:12]query_string will be loaded in cgi processing [11:34:12]execute_cgi json_proto POST (null) [11:34:12]execute_cgi path=json_proto method=POST [11:34:12]POST find Content-Length [11:34:12]Host: 172.17.53.195:8080 [11:34:12]Content-Length: 766 [11:34:12]Content-Type: application/json [11:34:12] [11:34:12]POST finish read [11:34:12]Found Content-Length = 766 [11:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:12]execute_script... [11:34: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)220550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:12]POST & json_proto [11:34:12]process_json_proto [11:34:12]json parsed OK: [11:34:12]protocol is kg_v1.0 [11:34:12]action value=close_receipt [11:34:12]process_action close_receipt [11:34:12]cmd_close_receipt [11:34:12]MH_GetDate [11:34:12]Write to MH i2c: F0 00 00 F8 43 2A [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: F0 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: F0 09 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: F0 09 00 F8 43 00 46 3C 16 67 21 48 4A 65 4A [11:34:12]GetLastDocTimeStamp 1729510389 [11:34:12]current date 1729510470 [11:34:12]FM_GetShiftState [11:34:12]SAM_PROTO_GetShiftState [11:34:12]wFMCommunicate request_size=4 [11:34:12]MH_SAM_APDU [11:34:12]CAPDU: 80 13 01 00 [11:34:12]Write to MH i2c: E2 08 00 F9 43 80 13 01 00 00 00 00 00 B9 [11:34:12]Write i2c OK [11:34:12]MH_I2C_Read... [11:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:12]Read from MH i2c: E2 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 0E 00 [11:34:12]MH_I2C_Read... [11:34:12]Read from MH i2c: E2 0E 00 F9 43 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C2 [11:34:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:34:12]wFMCommunicate OK [11:34:12]SAM_PROTO_GetShiftState done [11:34:12]FM_GetShiftState done [11:34:12]opened in 1729470944 [11:34:12]opened+sec_in_day 1729557344 [11:34:12]quantity*price = 100050 [11:34:12]sum+1 = 100052 [11:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 91 21.10.2024 11:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165980 ФПД: 129538995525164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165980&fm=129538995525164&tin=02508201610067®Number=0000000000091764&sum=100051 [11:34:14]StoreToDocumentArchive [11:34:14]shift 535 fd 165980 [11:34:14]save to /storage/0535/doc_00165980 [11:34:14]save last doc name /storage/0535/doc_00165980 to /storage/kkm_last_doc_name [11:34:14]save OK [11:34:14]Clear old archive folders... [11:34:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:34:14]tlvbuf is 0179A6A0 [11:34:14]SAM_PROTO_ClearQueue [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 09 00 00 [11:34:14]Write to MH i2c: E2 08 00 06 44 80 09 00 00 00 00 00 00 BC [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 06 44 00 90 00 BE [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_ClearQueue done [11:34:14]KKMCreateOFDPacket [11:34:14]OFDProtocolAddRootSTLVToBuf [11:34:14]FM_MakeSignedData [11:34:14]FM_MakeSignedData [11:34:14]SAM_PROTO_SignData [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 01 02 [11:34:14]Write to MH i2c: E2 08 00 07 44 80 0D 01 02 00 00 00 00 C4 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 07 44 00 90 00 BF [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]wFMCommunicate request_size=255 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 46 3C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 88 02 00 35 04 06 00 75 D0 A5 D0 [11:34:14]Write to MH i2c: E2 02 01 08 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 46 3C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 88 02 00 35 04 06 00 75 D0 A5 D0 00 00 C9 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 08 44 00 90 00 C0 [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]wFMCommunicate request_size=7 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 02 02 02 16 2C [11:34:14]Write to MH i2c: E2 0A 00 09 44 80 0D 02 02 02 00 16 2C 00 00 0D [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 03 00 09 44 00 90 00 C1 [11:34:14]RAPDU: 90 00 [11:34:14]wFMCommunicate OK [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 0D 03 02 [11:34:14]Write to MH i2c: E2 08 00 0A 44 80 0D 03 02 00 00 00 00 C9 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0B 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 0B 00 0A 44 00 7C 28 21 D2 2E 71 FA 36 90 00 30 [11:34:14]RAPDU: 7C 28 21 D2 2E 71 FA 36 90 00 [11:34:14]wFMCommunicate OK [11:34:14]SAM_PROTO_SignData done [11:34:14]FM_MakeSignedData done [11:34:14]CreateOFDProtocolMessage [11:34:14]wFMCommunicate request_size=4 [11:34:14]MH_SAM_APDU [11:34:14]CAPDU: 80 11 00 00 [11:34:14]Write to MH i2c: E2 08 00 0B 44 80 11 00 00 00 00 00 00 C9 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:14]Read from MH i2c: E2 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 17 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: E2 17 00 0B 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [11:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:34:14]wFMCommunicate OK [11:34:14]CreateOFDProtocolMessage done [11:34:14]OFDSenderStorePacket 165980 [11:34:14]StoreOFDPacket docnum=165980 [11:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 46 F1 04 01 D3 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 46 3C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 88 02 00 35 04 06 00 75 D0 A5 D0 16 2C 7C 28 21 D2 2E 71 FA 36 [11:34:14]CheckFolder [11:34:14]dirname=/storage/ofd_packets [11:34:14]CheckFolder done [11:34:14]ProducePacketName [11:34:14]name=ofd_packets/00165980 [11:34:14]NVStorageSaveData ofd_packets/00165980 [11:34:14]File name is /storage/ofd_packets/00165980 [11:34:14]Write 298 bytes [11:34:14]NVStorageSaveData done [11:34:14]OFDSenderStorePacket done [11:34:14]KKMCreateOFDPacket done [11:34:14]NVStorageSaveData kkm_last_timestamp [11:34:14]File name is /storage/kkm_last_timestamp [11:34:14]Write 4 bytes [11:34:14]NVStorageSaveData done [11:34:14]ExternCall_PrintAddStr [11:34:14]wPrintStart [11:34:14]Write to MH i2c: 01 00 00 0C 44 50 [11:34:14]Write i2c OK [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 [11:34:14]MH_I2C_Read... [11:34:14]Read from MH i2c: 01 07 00 0C 44 00 00 00 00 00 FF 0F 65 [11:34:14]RasterBufferAndPrint [11:34:14]line Счет N : (1)220550 [11:34:14]line ИНН: 02508201610067 [11:34:14]line Контрольно-Кассовый Чек [11:34:14]line ПРОДАЖА [11:34:14]line ТРК (МРК, ГНК) : 31 [11:34:14]line Товар: 2710194210 [11:34:14]line ДТ-К-5 [11:34:14]line 13.130 * 76.20 [11:34:14]line = 1000.51 [11:34:14]line НДС 12% НСП 1% [11:34:14]line > о реализуемом товаре [11:34:14]line ИТОГО: 1000.51 [11:34:14]line НСП 1% : 8.85 [11:34:14]line НДС 12% : 106.25 [11:34:14]line Наличными: 0.00 [11:34:14]line Безнал.: 1000.51 [11:34:14]line Место: АЗС № 161 "Партнер Нефть" [11:34:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:34:14]line СНО: Общий режим [11:34:14]line Чек 91 21.10.2024 11:34 [11:34:14]line Смена: 535 ФФД: 1.0 [11:34:14]line ЗНМ: 0300000104 [11:34:14]line РНМ: 0000000000091764 [11:34:14]line Версия ККМ: 001 [11:34:14]line Платежная система: Mbank [11:34:14]line ФМ: 0000000000871759 [11:34:14]line ФД: 165980 [11:34:14]line ФПД: 129538995525164 [11:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T113430&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165980&fm=129538995525164&tin=02508201610067®Number=0000000000091764&sum=100051 [11:34:14]OFD Sender: Processing packet 165980 [packets to send 48, broken 47] [11:34:14]ProducePacketName [11:34:14]name=ofd_packets/00165980 [11:34:14]OFD Sender: To server: pG, [11:34:14]CommunicateWithHost lk.salyk.kg:30040 [11:34:14]ConnectInit lk.salyk.kg [11:34:14]written 0, free lines is 4095 [11:34:15]Connected sock=7 [11:34:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 46 F1 04 01 D3 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 46 3C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 88 02 00 35 04 06 00 75 D0 A5 D0 16 2C 7C 28 21 D2 2E 71 FA 36 [11:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 05 47 00 5F 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 88 02 00 F4 03 04 00 B5 E2 15 67 B6 04 01 00 00 A7 69 8B 53 21 DC 05 03 [11:34:15]CommunicateWithHost err = 0 [11:34:15]CheckOFDResponse [11:34:15]1017 (14) - 77093643461234 [11:34:15]1041 (16) - 0000000000871759 [11:34:15]1040 (4) - 165980 [11:34:15]1012 (4) - 21.10.2024 05:12 [11:34:15]1206 (1) - 0 [11:34:15]OFD Sender: Remove packet 165980 [11:34:15]ProducePacketName [11:34:15]name=ofd_packets/00165980 [11:34:15]NVStorageDeleteData [11:34:15]Write to MH i2c: 01 00 00 35 44 79 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: 01 07 00 35 44 00 00 00 00 00 F4 0C 80 [11:34:15]RasterBufferAndPrint [11:34:15]line [11:34:15]line [11:34:15]line [11:34:15]line [11:34:15]line [11:34:15]written 0, free lines is 3324 [11:34:15]MH_Cut [11:34:15]Write to MH i2c: D1 01 00 3C 44 01 52 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: D1 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: D1 01 00 [11:34:15]MH_I2C_Read... [11:34:15]Read from MH i2c: D1 01 00 3C 44 00 51 [11:34:15]Write to MH i2c: 01 00 00 3D 44 81 [11:34:15]Write i2c OK [11:34:15]MH_I2C_Read... [11:34:15]OFD Sender: No OFD packet to send [11:34:16]*** Cut start [11:34:16]*** Partial cut [11:34:16]*** CUTSNS_PIN = 1 [11:34:16]*** CUTSNS_PIN = 0 [11:34:16]*** Brake cut motor [11:34:16]Read from MH i2c: 01 [11:34:16]MH_I2C_Read... [11:34:16]*** Stop cut motor [11:34:16]*** Cut end [11:34:16]Read from MH i2c: 01 07 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: 01 07 00 3D 44 00 00 00 00 00 FF 0F 96 [11:34:16]process_action close_receipt done [11:34:16]requested_data is exist [11:34:16]produce_requested_data [11:34:16]requested_item fm.sn is exist - process it [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 11 00 00 [11:34:16]Write to MH i2c: E2 08 00 3E 44 80 11 00 00 00 00 00 00 FC [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 17 00 3E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [11:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:34:16]wFMCommunicate OK [11:34:16]requested_item fd.num is exist - process it [11:34:16]SAM_PROTO_GetFieldsCounters [11:34:16]wFMCommunicate request_size=4 [11:34:16]MH_SAM_APDU [11:34:16]CAPDU: 80 13 00 00 [11:34:16]Write to MH i2c: E2 08 00 3F 44 80 13 00 00 00 00 00 00 FF [11:34:16]Write i2c OK [11:34:16]MH_I2C_Read... [11:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:16]Read from MH i2c: E2 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 62 00 [11:34:16]MH_I2C_Read... [11:34:16]Read from MH i2c: E2 62 00 3F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:34:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:17]wFMCommunicate OK [11:34:17]SAM_PROTO_GetFieldsCounters done [11:34:17]requested_item shift.num is exist - process it [11:34:17]requested_item shift.opened is exist - process it [11:34:17]req_shift_opened [11:34:17]FM_GetShiftState [11:34:17]SAM_PROTO_GetShiftState [11:34:17]wFMCommunicate request_size=4 [11:34:17]MH_SAM_APDU [11:34:17]CAPDU: 80 13 01 00 [11:34:17]Write to MH i2c: E2 08 00 40 44 80 13 01 00 00 00 00 00 01 [11:34:17]Write i2c OK [11:34:17]MH_I2C_Read... [11:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:17]Read from MH i2c: E2 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 0E 00 [11:34:17]MH_I2C_Read... [11:34:17]Read from MH i2c: E2 0E 00 40 44 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0A [11:34:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:34:17]wFMCommunicate OK [11:34:17]SAM_PROTO_GetShiftState done [11:34:17]FM_GetShiftState done [11:34:17]req_shift_opened done [11:34:17]requested_item shift.open_date is exist - process it [11:34:17]req_shift_open_date [11:34:17]req_shift_open_date done [11:34:17]produce_requested_data done [11:34:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165980,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:34:17]process_action_free close_receipt [11:34:17]json_value_free [11:34:17]json_value_free done [11:34:17]process_json_proto returns [11:34:17]Send response to host [11:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165980,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:34:17]free response buf [11:34:17]execute_script done [11:34:17]execute_script returns [11:34:17]free content buf [11:34:17]Sock 5.Close socket [11:34:17]Sock 5.Thread stoped [11:34:20]OFD Sender: No OFD packet to send [11:34:25]OFD Sender: No OFD packet to send [11:34:30]OFD Sender: No OFD packet to send [11:34:35]OFD Sender: No OFD packet to send [11:34:40]OFD Sender: No OFD packet to send [11:34:45]OFD Sender: No OFD packet to send [11:34:50]OFD Sender: No OFD packet to send [11:34:55]OFD Sender: No OFD packet to send [11:35:00]OFD Sender: No OFD packet to send [11:35:05]OFD Sender: No OFD packet to send [11:35:10]OFD Sender: No OFD packet to send [11:35:15]OFD Sender: No OFD packet to send [11:35:20]OFD Sender: No OFD packet to send [11:35:25]OFD Sender: No OFD packet to send [11:35:30]OFD Sender: No OFD packet to send [11:35:35]OFD Sender: No OFD packet to send [11:35:40]OFD Sender: No OFD packet to send [11:35:45]OFD Sender: No OFD packet to send [11:35:50]OFD Sender: No OFD packet to send [11:35:55]OFD Sender: No OFD packet to send [11:36:00]OFD Sender: No OFD packet to send [11:36:05]OFD Sender: No OFD packet to send [11:36:10]OFD Sender: No OFD packet to send [11:36:15]OFD Sender: No OFD packet to send [11:36:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [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:26]accept exits with 6 [11:40:26]New connection [11:40:26]New thread 3066776932 created [11:40:26]Thread 3066920292 joined [11:40:26]Waiting for new connection... [11:40:26] Sock 6.Parse request [11:40:26]Sock 6.Check first char [11:40:26]Sock 6.First char is OK [11:40:26]request: POST /json_proto HTTP/1.0 [11:40:26]Method: POST [11:40:26]URL: /json_proto [11:40:26]Method is POST - this is cgi request [11:40:26]url: /json_proto [11:40:26]query_string will be loaded in cgi processing [11:40:26]execute_cgi json_proto POST (null) [11:40:26]execute_cgi path=json_proto method=POST [11:40:26]POST find Content-Length [11:40:26]Host: 172.17.53.195:8080 [11:40:26]Content-Length: 677 [11:40:26]Content-Type: application/json [11:40:26] [11:40:26]POST finish read [11:40:26]Found Content-Length = 677 [11:40:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:26]execute_script... [11:40:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:26]POST & json_proto [11:40:26]process_json_proto [11:40:26]json parsed OK: [11:40:26]protocol is kg_v1.0 [11:40:26]action value=close_receipt [11:40:26]process_action close_receipt [11:40:26]cmd_close_receipt [11:40:26]MH_GetDate [11:40:26]Write to MH i2c: F0 00 00 41 44 74 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: F0 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: F0 09 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: F0 09 00 41 44 00 BC 3D 16 67 21 48 4A 65 0B [11:40:26]GetLastDocTimeStamp 1729510470 [11:40:26]current date 1729510844 [11:40:26]FM_GetShiftState [11:40:26]SAM_PROTO_GetShiftState [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 13 01 00 [11:40:26]Write to MH i2c: E2 08 00 42 44 80 13 01 00 00 00 00 00 03 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 0E 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 0E 00 42 44 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0C [11:40:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:40:26]wFMCommunicate OK [11:40:26]SAM_PROTO_GetShiftState done [11:40:26]FM_GetShiftState done [11:40:26]opened in 1729470944 [11:40:26]opened+sec_in_day 1729557344 [11:40:26]quantity*price = 40006 [11:40:26]sum+1 = 40007 [11:40:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 92 21.10.2024 11:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165981 ФПД: 63730645159750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114044&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165981&fm=63730645159750&tin=02508201610067®Number=0000000000091764&sum=40000 [11:40:27]StoreToDocumentArchive [11:40:27]shift 535 fd 165981 [11:40:27]save to /storage/0535/doc_00165981 [11:40:27]save last doc name /storage/0535/doc_00165981 to /storage/kkm_last_doc_name [11:40:27]save OK [11:40:27]Clear old archive folders... [11:40:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:27]tlvbuf is 0177AD50 [11:40:27]SAM_PROTO_ClearQueue [11:40:27]wFMCommunicate request_size=4 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 09 00 00 [11:40:27]Write to MH i2c: E2 08 00 4F 44 80 09 00 00 00 00 00 00 05 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 03 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 03 00 4F 44 00 90 00 07 [11:40:27]RAPDU: 90 00 [11:40:27]wFMCommunicate OK [11:40:27]SAM_PROTO_ClearQueue done [11:40:27]KKMCreateOFDPacket [11:40:27]OFDProtocolAddRootSTLVToBuf [11:40:27]FM_MakeSignedData [11:40:27]FM_MakeSignedData [11:40:27]SAM_PROTO_SignData [11:40:27]wFMCommunicate request_size=4 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 0D 01 02 [11:40:27]Write to MH i2c: E2 08 00 50 44 80 0D 01 02 00 00 00 00 0D [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 03 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 03 00 50 44 00 90 00 08 [11:40:27]RAPDU: 90 00 [11:40:27]wFMCommunicate OK [11:40:27]wFMCommunicate request_size=255 [11:40:27]MH_SAM_APDU [11:40:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BC 3D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 88 02 00 35 04 06 00 39 [11:40:27]Write to MH i2c: E2 02 01 51 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BC 3D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 88 02 00 35 04 06 00 39 00 00 7D [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:28]Read from MH i2c: E2 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 03 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 03 00 51 44 00 90 00 09 [11:40:28]RAPDU: 90 00 [11:40:28]wFMCommunicate OK [11:40:28]wFMCommunicate request_size=10 [11:40:28]MH_SAM_APDU [11:40:28]CAPDU: 80 0D 02 02 05 F6 72 77 4F 46 [11:40:28]Write to MH i2c: E2 0D 00 52 44 80 0D 02 02 05 00 F6 72 77 4F 46 00 00 8E [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:28]Read from MH i2c: E2 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 03 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 03 00 52 44 00 90 00 0A [11:40:28]RAPDU: 90 00 [11:40:28]wFMCommunicate OK [11:40:28]wFMCommunicate request_size=4 [11:40:28]MH_SAM_APDU [11:40:28]CAPDU: 80 0D 03 02 [11:40:28]Write to MH i2c: E2 08 00 53 44 80 0D 03 02 00 00 00 00 12 [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:28]Read from MH i2c: E2 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 0B 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 0B 00 53 44 00 F8 F4 87 CE C7 B2 92 02 90 00 61 [11:40:28]RAPDU: F8 F4 87 CE C7 B2 92 02 90 00 [11:40:28]wFMCommunicate OK [11:40:28]SAM_PROTO_SignData done [11:40:28]FM_MakeSignedData done [11:40:28]CreateOFDProtocolMessage [11:40:28]wFMCommunicate request_size=4 [11:40:28]MH_SAM_APDU [11:40:28]CAPDU: 80 11 00 00 [11:40:28]Write to MH i2c: E2 08 00 54 44 80 11 00 00 00 00 00 00 12 [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:28]Read from MH i2c: E2 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 17 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: E2 17 00 54 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [11:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:40:28]wFMCommunicate OK [11:40:28]CreateOFDProtocolMessage done [11:40:28]OFDSenderStorePacket 165981 [11:40:28]StoreOFDPacket docnum=165981 [11:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 80 07 01 2E 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BC 3D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 88 02 00 35 04 06 00 39 F6 72 77 4F 46 F8 F4 87 CE C7 B2 92 02 [11:40:28]CheckFolder [11:40:28]dirname=/storage/ofd_packets [11:40:28]CheckFolder done [11:40:28]ProducePacketName [11:40:28]name=ofd_packets/00165981 [11:40:28]NVStorageSaveData ofd_packets/00165981 [11:40:28]File name is /storage/ofd_packets/00165981 [11:40:28]Write 301 bytes [11:40:28]NVStorageSaveData done [11:40:28]OFDSenderStorePacket done [11:40:28]KKMCreateOFDPacket done [11:40:28]NVStorageSaveData kkm_last_timestamp [11:40:28]File name is /storage/kkm_last_timestamp [11:40:28]Write 4 bytes [11:40:28]NVStorageSaveData done [11:40:28]ExternCall_PrintAddStr [11:40:28]wPrintStart [11:40:28]Write to MH i2c: 01 00 00 55 44 99 [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: 01 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: 01 07 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: 01 07 00 55 44 00 00 00 00 00 FF 0F AE [11:40:28]RasterBufferAndPrint [11:40:28]line Счет N : (1)220551 [11:40:28]line ИНН: 02508201610067 [11:40:28]line Контрольно-Кассовый Чек [11:40:28]line ПРОДАЖА [11:40:28]line ТРК (МРК, ГНК) : 33 [11:40:28]line Товар: 2710124130 [11:40:28]line Аи-92-К-5 [11:40:28]line 5.980 * 66.90 [11:40:28]line = 400.06 [11:40:28]line НДС 12% НСП 1% [11:40:28]line > о реализуемом товаре [11:40:28]line ОКРУГЛЕНИЕ: -0.06 [11:40:28]line ИТОГО: 400.00 [11:40:28]line Внесено: 400.00 [11:40:28]line СДАЧА: 0.00 [11:40:28]line НСП 1% : 3.54 [11:40:28]line НДС 12% : 42.48 [11:40:28]line Наличными: 400.00 [11:40:28]line Безнал.: 0.00 [11:40:28]line Место: АЗС № 161 "Партнер Нефть" [11:40:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:40:28]line СНО: Общий режим [11:40:28]line Чек 92 21.10.2024 11:40 [11:40:28]line Смена: 535 ФФД: 1.0 [11:40:28]line ЗНМ: 0300000104 [11:40:28]line РНМ: 0000000000091764 [11:40:28]line Версия ККМ: 001 [11:40:28]line ФМ: 0000000000871759 [11:40:28]line ФД: 165981 [11:40:28]line ФПД: 63730645159750 [11:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114044&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165981&fm=63730645159750&tin=02508201610067®Number=0000000000091764&sum=40000 [11:40:28]OFD Sender: Processing packet 165981 [packets to send 48, broken 47] [11:40:28]ProducePacketName [11:40:28]name=ofd_packets/00165981 [11:40:28]OFD Sender: To server: pG, [11:40:28]CommunicateWithHost lk.salyk.kg:30040 [11:40:28]ConnectInit lk.salyk.kg [11:40:28]written 0, free lines is 4095 [11:40:28]Connected sock=7 [11:40:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 80 07 01 2E 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 BC 3D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 88 02 00 35 04 06 00 39 F6 72 77 4F 46 F8 F4 87 CE C7 B2 92 02 [11:40:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DF 49 47 00 79 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 88 02 00 F4 03 04 00 2B E4 15 67 B6 04 01 00 00 3B 80 E9 9A 1B C6 C3 B7 [11:40:28]CommunicateWithHost err = 0 [11:40:28]CheckOFDResponse [11:40:28]1017 (14) - 77093643461234 [11:40:28]1041 (16) - 0000000000871759 [11:40:28]1040 (4) - 165981 [11:40:28]1012 (4) - 21.10.2024 05:18 [11:40:28]1206 (1) - 0 [11:40:28]OFD Sender: Remove packet 165981 [11:40:28]ProducePacketName [11:40:28]name=ofd_packets/00165981 [11:40:28]NVStorageDeleteData [11:40:28]Write to MH i2c: 01 00 00 80 44 C4 [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: 01 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: 01 07 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: 01 07 00 80 44 00 00 00 00 00 D4 0C AB [11:40:28]RasterBufferAndPrint [11:40:28]line [11:40:28]line [11:40:28]line [11:40:28]line [11:40:28]line [11:40:28]written 0, free lines is 3292 [11:40:28]MH_Cut [11:40:28]Write to MH i2c: D1 01 00 87 44 01 9D [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: D1 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: D1 01 00 [11:40:28]MH_I2C_Read... [11:40:28]Read from MH i2c: D1 01 00 87 44 00 9C [11:40:28]Write to MH i2c: 01 00 00 88 44 CC [11:40:28]Write i2c OK [11:40:28]MH_I2C_Read... [11:40:29]OFD Sender: No OFD packet to send [11:40:29]*** Cut start [11:40:29]*** Partial cut [11:40:29]*** CUTSNS_PIN = 1 [11:40:29]*** CUTSNS_PIN = 0 [11:40:30]*** Brake cut motor [11:40:30]Read from MH i2c: 01 [11:40:30]MH_I2C_Read... [11:40:30]*** Stop cut motor [11:40:30]*** Cut end [11:40:30]Read from MH i2c: 01 07 00 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: 01 07 00 88 44 00 00 00 00 00 FF 0F E1 [11:40:30]process_action close_receipt done [11:40:30]requested_data is exist [11:40:30]produce_requested_data [11:40:30]requested_item fm.sn is exist - process it [11:40:30]wFMCommunicate request_size=4 [11:40:30]MH_SAM_APDU [11:40:30]CAPDU: 80 11 00 00 [11:40:30]Write to MH i2c: E2 08 00 89 44 80 11 00 00 00 00 00 00 47 [11:40:30]Write i2c OK [11:40:30]MH_I2C_Read... [11:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:30]Read from MH i2c: E2 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 17 00 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 17 00 89 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [11:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:40:30]wFMCommunicate OK [11:40:30]requested_item fd.num is exist - process it [11:40:30]SAM_PROTO_GetFieldsCounters [11:40:30]wFMCommunicate request_size=4 [11:40:30]MH_SAM_APDU [11:40:30]CAPDU: 80 13 00 00 [11:40:30]Write to MH i2c: E2 08 00 8A 44 80 13 00 00 00 00 00 00 4A [11:40:30]Write i2c OK [11:40:30]MH_I2C_Read... [11:40:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:30]Read from MH i2c: E2 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 62 00 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 62 00 8A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:40:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:30]wFMCommunicate OK [11:40:30]SAM_PROTO_GetFieldsCounters done [11:40:30]requested_item shift.num is exist - process it [11:40:30]requested_item shift.opened is exist - process it [11:40:30]req_shift_opened [11:40:30]FM_GetShiftState [11:40:30]SAM_PROTO_GetShiftState [11:40:30]wFMCommunicate request_size=4 [11:40:30]MH_SAM_APDU [11:40:30]CAPDU: 80 13 01 00 [11:40:30]Write to MH i2c: E2 08 00 8B 44 80 13 01 00 00 00 00 00 4C [11:40:30]Write i2c OK [11:40:30]MH_I2C_Read... [11:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:30]Read from MH i2c: E2 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 0E 00 [11:40:30]MH_I2C_Read... [11:40:30]Read from MH i2c: E2 0E 00 8B 44 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 55 [11:40:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:40:30]wFMCommunicate OK [11:40:30]SAM_PROTO_GetShiftState done [11:40:30]FM_GetShiftState done [11:40:30]req_shift_opened done [11:40:30]requested_item shift.open_date is exist - process it [11:40:30]req_shift_open_date [11:40:30]req_shift_open_date done [11:40:30]produce_requested_data done [11:40:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165981,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:40:30]process_action_free close_receipt [11:40:30]json_value_free [11:40:30]json_value_free done [11:40:30]process_json_proto returns [11:40:30]Send response to host [11:40:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165981,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:40:30]free response buf [11:40:30]execute_script done [11:40:30]execute_script returns [11:40:30]free content buf [11:40:30]Sock 6.Close socket [11:40:30]Sock 6.Thread stoped [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:58]accept exits with 5 [11:41:58]New connection [11:41:58]New thread 3066920292 created [11:41:58]Thread 3066776932 joined [11:41:58]Waiting for new connection... [11:41:58] Sock 5.Parse request [11:41:58]Sock 5.Check first char [11:41:58]Sock 5.First char is OK [11:41:58]request: POST /json_proto HTTP/1.0 [11:41:58]Method: POST [11:41:58]URL: /json_proto [11:41:58]Method is POST - this is cgi request [11:41:58]url: /json_proto [11:41:58]query_string will be loaded in cgi processing [11:41:58]execute_cgi json_proto POST (null) [11:41:58]execute_cgi path=json_proto method=POST [11:41:58]POST find Content-Length [11:41:58]Host: 172.17.53.195:8080 [11:41:58]Content-Length: 677 [11:41:58]Content-Type: application/json [11:41:58] [11:41:58]POST finish read [11:41:58]Found Content-Length = 677 [11:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:58]execute_script... [11:41: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)220552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:58]POST & json_proto [11:41:58]process_json_proto [11:41:58]json parsed OK: [11:41:58]protocol is kg_v1.0 [11:41:58]action value=close_receipt [11:41:58]process_action close_receipt [11:41:58]cmd_close_receipt [11:41:58]MH_GetDate [11:41:58]Write to MH i2c: F0 00 00 8C 44 BF [11:41:58]Write i2c OK [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: F0 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: F0 09 00 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: F0 09 00 8C 44 00 18 3E 16 67 21 48 4A 65 B3 [11:41:58]GetLastDocTimeStamp 1729510844 [11:41:58]current date 1729510936 [11:41:58]FM_GetShiftState [11:41:58]SAM_PROTO_GetShiftState [11:41:58]wFMCommunicate request_size=4 [11:41:58]MH_SAM_APDU [11:41:58]CAPDU: 80 13 01 00 [11:41:58]Write to MH i2c: E2 08 00 8D 44 80 13 01 00 00 00 00 00 4E [11:41:58]Write i2c OK [11:41:58]MH_I2C_Read... [11:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:58]Read from MH i2c: E2 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: E2 0E 00 [11:41:58]MH_I2C_Read... [11:41:58]Read from MH i2c: E2 0E 00 8D 44 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 57 [11:41:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:41:58]wFMCommunicate OK [11:41:58]SAM_PROTO_GetShiftState done [11:41:58]FM_GetShiftState done [11:41:58]opened in 1729470944 [11:41:58]opened+sec_in_day 1729557344 [11:41:58]quantity*price = 50041 [11:41:58]sum+1 = 50042 [11:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 93 21.10.2024 11:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165982 ФПД: 222358658657515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165982&fm=222358658657515&tin=02508201610067®Number=0000000000091764&sum=50000 [11:42:00]StoreToDocumentArchive [11:42:00]shift 535 fd 165982 [11:42:00]save to /storage/0535/doc_00165982 [11:42:00]save last doc name /storage/0535/doc_00165982 to /storage/kkm_last_doc_name [11:42:00]save OK [11:42:00]Clear old archive folders... [11:42:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:00]tlvbuf is 0190C400 [11:42:00]SAM_PROTO_ClearQueue [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 09 00 00 [11:42:00]Write to MH i2c: E2 08 00 9A 44 80 09 00 00 00 00 00 00 50 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 9A 44 00 90 00 52 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]SAM_PROTO_ClearQueue done [11:42:00]KKMCreateOFDPacket [11:42:00]OFDProtocolAddRootSTLVToBuf [11:42:00]FM_MakeSignedData [11:42:00]FM_MakeSignedData [11:42:00]SAM_PROTO_SignData [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 01 02 [11:42:00]Write to MH i2c: E2 08 00 9B 44 80 0D 01 02 00 00 00 00 58 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 9B 44 00 90 00 53 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=255 [11:42:00]MH_SAM_APDU [11:42: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 18 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 88 02 00 35 04 06 00 CA [11:42:00]Write to MH i2c: E2 02 01 9C 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 18 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 88 02 00 35 04 06 00 CA 00 00 E9 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 9C 44 00 90 00 54 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=10 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 02 02 05 3B E8 DC AC EB [11:42:00]Write to MH i2c: E2 0D 00 9D 44 80 0D 02 02 05 00 3B E8 DC AC EB 00 00 FB [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 03 00 9D 44 00 90 00 55 [11:42:00]RAPDU: 90 00 [11:42:00]wFMCommunicate OK [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 0D 03 02 [11:42:00]Write to MH i2c: E2 08 00 9E 44 80 0D 03 02 00 00 00 00 5D [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 0B 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 0B 00 9E 44 00 F9 33 7A E9 10 FA CC 4E 90 00 11 [11:42:00]RAPDU: F9 33 7A E9 10 FA CC 4E 90 00 [11:42:00]wFMCommunicate OK [11:42:00]SAM_PROTO_SignData done [11:42:00]FM_MakeSignedData done [11:42:00]CreateOFDProtocolMessage [11:42:00]wFMCommunicate request_size=4 [11:42:00]MH_SAM_APDU [11:42:00]CAPDU: 80 11 00 00 [11:42:00]Write to MH i2c: E2 08 00 9F 44 80 11 00 00 00 00 00 00 5D [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:00]Read from MH i2c: E2 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 17 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: E2 17 00 9F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [11:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:42:00]wFMCommunicate OK [11:42:00]CreateOFDProtocolMessage done [11:42:00]OFDSenderStorePacket 165982 [11:42:00]StoreOFDPacket docnum=165982 [11:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A BF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 18 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 88 02 00 35 04 06 00 CA 3B E8 DC AC EB F9 33 7A E9 10 FA CC 4E [11:42:00]CheckFolder [11:42:00]dirname=/storage/ofd_packets [11:42:00]CheckFolder done [11:42:00]ProducePacketName [11:42:00]name=ofd_packets/00165982 [11:42:00]NVStorageSaveData ofd_packets/00165982 [11:42:00]File name is /storage/ofd_packets/00165982 [11:42:00]Write 301 bytes [11:42:00]NVStorageSaveData done [11:42:00]OFDSenderStorePacket done [11:42:00]KKMCreateOFDPacket done [11:42:00]NVStorageSaveData kkm_last_timestamp [11:42:00]File name is /storage/kkm_last_timestamp [11:42:00]Write 4 bytes [11:42:00]NVStorageSaveData done [11:42:00]ExternCall_PrintAddStr [11:42:00]wPrintStart [11:42:00]Write to MH i2c: 01 00 00 A0 44 E4 [11:42:00]Write i2c OK [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 07 00 [11:42:00]MH_I2C_Read... [11:42:00]Read from MH i2c: 01 07 00 A0 44 00 00 00 00 00 FF 0F F9 [11:42:00]RasterBufferAndPrint [11:42:00]line Счет N : (1)220552 [11:42:00]line ИНН: 02508201610067 [11:42:00]line Контрольно-Кассовый Чек [11:42:00]line ПРОДАЖА [11:42:00]line ТРК (МРК, ГНК) : 23 [11:42:00]line Товар: 2710124130 [11:42:00]line Аи-92-К-5 [11:42:00]line 7.480 * 66.90 [11:42:00]line = 500.41 [11:42:00]line НДС 12% НСП 1% [11:42:00]line > о реализуемом товаре [11:42:00]line ОКРУГЛЕНИЕ: -0.41 [11:42:00]line ИТОГО: 500.00 [11:42:00]line Внесено: 500.00 [11:42:00]line СДАЧА: 0.00 [11:42:00]line НСП 1% : 4.43 [11:42:00]line НДС 12% : 53.14 [11:42:00]line Наличными: 500.00 [11:42:00]line Безнал.: 0.00 [11:42:00]line Место: АЗС № 161 "Партнер Нефть" [11:42:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:42:00]line СНО: Общий режим [11:42:00]line Чек 93 21.10.2024 11:42 [11:42:00]line Смена: 535 ФФД: 1.0 [11:42:00]line ЗНМ: 0300000104 [11:42:00]line РНМ: 0000000000091764 [11:42:00]line Версия ККМ: 001 [11:42:00]line ФМ: 0000000000871759 [11:42:00]line ФД: 165982 [11:42:00]line ФПД: 222358658657515 [11:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114216&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165982&fm=222358658657515&tin=02508201610067®Number=0000000000091764&sum=50000 [11:42:00]OFD Sender: Processing packet 165982 [packets to send 48, broken 47] [11:42:00]ProducePacketName [11:42:00]name=ofd_packets/00165982 [11:42:00]OFD Sender: To server: pG, [11:42:00]CommunicateWithHost lk.salyk.kg:30040 [11:42:00]ConnectInit lk.salyk.kg [11:42:00]written 0, free lines is 4095 [11:42:00]Connected sock=7 [11:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A BF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 18 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 88 02 00 35 04 06 00 CA 3B E8 DC AC EB F9 33 7A E9 10 FA CC 4E [11:42:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FD BA 47 00 5A DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 88 02 00 F4 03 04 00 87 E4 15 67 B6 04 01 00 00 00 9B 53 EB 9C EC 3A C8 [11:42:01]CommunicateWithHost err = 0 [11:42:01]CheckOFDResponse [11:42:01]1017 (14) - 77093643461234 [11:42:01]1041 (16) - 0000000000871759 [11:42:01]1040 (4) - 165982 [11:42:01]1012 (4) - 21.10.2024 05:20 [11:42:01]1206 (1) - 0 [11:42:01]OFD Sender: Remove packet 165982 [11:42:01]ProducePacketName [11:42:01]name=ofd_packets/00165982 [11:42:01]NVStorageDeleteData [11:42:01]Write to MH i2c: 01 00 00 CB 44 0F [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: 01 07 00 CB 44 00 00 00 00 00 D9 0C FB [11:42:01]RasterBufferAndPrint [11:42:01]line [11:42:01]line [11:42:01]line [11:42:01]line [11:42:01]line [11:42:01]written 0, free lines is 3297 [11:42:01]MH_Cut [11:42:01]Write to MH i2c: D1 01 00 D2 44 01 E8 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: D1 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: D1 01 00 [11:42:01]MH_I2C_Read... [11:42:01]Read from MH i2c: D1 01 00 D2 44 00 E7 [11:42:01]Write to MH i2c: 01 00 00 D3 44 17 [11:42:01]Write i2c OK [11:42:01]MH_I2C_Read... [11:42:01]OFD Sender: No OFD packet to send [11:42:02]*** Cut start [11:42:02]*** Partial cut [11:42:02]*** CUTSNS_PIN = 1 [11:42:02]*** CUTSNS_PIN = 0 [11:42:02]*** Brake cut motor [11:42:02]Read from MH i2c: 01 [11:42:02]MH_I2C_Read... [11:42:02]*** Stop cut motor [11:42:02]*** Cut end [11:42:02]Read from MH i2c: 01 07 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: 01 07 00 D3 44 00 00 00 00 00 FF 0F 2C [11:42:02]process_action close_receipt done [11:42:02]requested_data is exist [11:42:02]produce_requested_data [11:42:02]requested_item fm.sn is exist - process it [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 11 00 00 [11:42:02]Write to MH i2c: E2 08 00 D4 44 80 11 00 00 00 00 00 00 92 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 17 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 17 00 D4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [11:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:42:02]wFMCommunicate OK [11:42:02]requested_item fd.num is exist - process it [11:42:02]SAM_PROTO_GetFieldsCounters [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 13 00 00 [11:42:02]Write to MH i2c: E2 08 00 D5 44 80 13 00 00 00 00 00 00 95 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:02]Read from MH i2c: E2 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 62 00 [11:42:02]MH_I2C_Read... [11:42:02]Read from MH i2c: E2 62 00 D5 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [11:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:02]wFMCommunicate OK [11:42:02]SAM_PROTO_GetFieldsCounters done [11:42:02]requested_item shift.num is exist - process it [11:42:02]requested_item shift.opened is exist - process it [11:42:02]req_shift_opened [11:42:02]FM_GetShiftState [11:42:02]SAM_PROTO_GetShiftState [11:42:02]wFMCommunicate request_size=4 [11:42:02]MH_SAM_APDU [11:42:02]CAPDU: 80 13 01 00 [11:42:02]Write to MH i2c: E2 08 00 D6 44 80 13 01 00 00 00 00 00 97 [11:42:02]Write i2c OK [11:42:02]MH_I2C_Read... [11:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:03]Read from MH i2c: E2 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 [11:42:03]MH_I2C_Read... [11:42:03]Read from MH i2c: E2 0E 00 D6 44 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A0 [11:42:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:42:03]wFMCommunicate OK [11:42:03]SAM_PROTO_GetShiftState done [11:42:03]FM_GetShiftState done [11:42:03]req_shift_opened done [11:42:03]requested_item shift.open_date is exist - process it [11:42:03]req_shift_open_date [11:42:03]req_shift_open_date done [11:42:03]produce_requested_data done [11:42:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165982,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:42:03]process_action_free close_receipt [11:42:03]json_value_free [11:42:03]json_value_free done [11:42:03]process_json_proto returns [11:42:03]Send response to host [11:42:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165982,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:42:03]free response buf [11:42:03]execute_script done [11:42:03]execute_script returns [11:42:03]free content buf [11:42:03]Sock 5.Close socket [11:42:03]Sock 5.Thread stoped [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:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:49]accept exits with 6 [11:45:49]New connection [11:45:49]New thread 3066776932 created [11:45:49]Thread 3066920292 joined [11:45:49]Waiting for new connection... [11:45:49] Sock 6.Parse request [11:45:49]Sock 6.Check first char [11:45:49]Sock 6.First char is OK [11:45:49]request: POST /json_proto HTTP/1.0 [11:45:49]Method: POST [11:45:49]URL: /json_proto [11:45:49]Method is POST - this is cgi request [11:45:49]url: /json_proto [11:45:49]query_string will be loaded in cgi processing [11:45:49]execute_cgi json_proto POST (null) [11:45:49]execute_cgi path=json_proto method=POST [11:45:49]POST find Content-Length [11:45:49]Host: 172.17.53.195:8080 [11:45:49]Content-Length: 682 [11:45:49]Content-Type: application/json [11:45:49] [11:45:49]POST finish read [11:45:49]Found Content-Length = 682 [11:45:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.040, "sum" : 1875.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1875.00, "payments": [ { "type": 0, "sum" : 1875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:49]execute_script... [11:45: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)220553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 28.040, "sum" : 1875.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1875.00, "payments": [ { "type": 0, "sum" : 1875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:49]POST & json_proto [11:45:49]process_json_proto [11:45:49]json parsed OK: [11:45:49]protocol is kg_v1.0 [11:45:49]action value=close_receipt [11:45:49]process_action close_receipt [11:45:49]cmd_close_receipt [11:45:49]MH_GetDate [11:45:49]Write to MH i2c: F0 00 00 D7 44 0A [11:45:49]Write i2c OK [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: F0 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: F0 09 00 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: F0 09 00 D7 44 00 FF 3E 16 67 21 48 4A 65 E5 [11:45:49]GetLastDocTimeStamp 1729510936 [11:45:49]current date 1729511167 [11:45:49]FM_GetShiftState [11:45:49]SAM_PROTO_GetShiftState [11:45:49]wFMCommunicate request_size=4 [11:45:49]MH_SAM_APDU [11:45:49]CAPDU: 80 13 01 00 [11:45:49]Write to MH i2c: E2 08 00 D8 44 80 13 01 00 00 00 00 00 99 [11:45:49]Write i2c OK [11:45:49]MH_I2C_Read... [11:45:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:49]Read from MH i2c: E2 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: E2 0E 00 [11:45:49]MH_I2C_Read... [11:45:49]Read from MH i2c: E2 0E 00 D8 44 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A2 [11:45:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:45:49]wFMCommunicate OK [11:45:49]SAM_PROTO_GetShiftState done [11:45:49]FM_GetShiftState done [11:45:49]opened in 1729470944 [11:45:49]opened+sec_in_day 1729557344 [11:45:49]quantity*price = 187587 [11:45:49]sum+1 = 187589 [11:45:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 1875.00 Внесено: 2000.00 СДАЧА: 125.00 НСП 1% : 16.60 НДС 12% : 199.21 Наличными: 1875.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 94 21.10.2024 11:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165983 ФПД: 190673683591936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114607&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165983&fm=190673683591936&tin=02508201610067®Number=0000000000091764&sum=187500 [11:45:50]StoreToDocumentArchive [11:45:50]shift 535 fd 165983 [11:45:50]save to /storage/0535/doc_00165983 [11:45:50]save last doc name /storage/0535/doc_00165983 to /storage/kkm_last_doc_name [11:45:50]save OK [11:45:50]Clear old archive folders... [11:45:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:50]tlvbuf is 014FE8F0 [11:45:50]SAM_PROTO_ClearQueue [11:45:50]wFMCommunicate request_size=4 [11:45:50]MH_SAM_APDU [11:45:50]CAPDU: 80 09 00 00 [11:45:50]Write to MH i2c: E2 08 00 E5 44 80 09 00 00 00 00 00 00 9B [11:45:50]Write i2c OK [11:45:50]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 E5 44 00 90 00 9D [11:45:51]RAPDU: 90 00 [11:45:51]wFMCommunicate OK [11:45:51]SAM_PROTO_ClearQueue done [11:45:51]KKMCreateOFDPacket [11:45:51]OFDProtocolAddRootSTLVToBuf [11:45:51]FM_MakeSignedData [11:45:51]FM_MakeSignedData [11:45:51]SAM_PROTO_SignData [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 0D 01 02 [11:45:51]Write to MH i2c: E2 08 00 E6 44 80 0D 01 02 00 00 00 00 A3 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 E6 44 00 90 00 9E [11:45:51]RAPDU: 90 00 [11:45:51]wFMCommunicate OK [11:45:51]wFMCommunicate request_size=255 [11:45:51]MH_SAM_APDU [11:45: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 88 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 4D 00 00 00 00 07 04 06 00 6C DC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FF 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 88 02 00 35 04 06 00 AD [11:45:51]Write to MH i2c: E2 02 01 E7 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 88 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 4D 00 00 00 00 07 04 06 00 6C DC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FF 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 88 02 00 35 04 06 00 AD 00 00 82 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 E7 44 00 90 00 9F [11:45:51]RAPDU: 90 00 [11:45:51]wFMCommunicate OK [11:45:51]wFMCommunicate request_size=10 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 0D 02 02 05 6A AD 2D B3 00 [11:45:51]Write to MH i2c: E2 0D 00 E8 44 80 0D 02 02 05 00 6A AD 2D B3 00 00 00 A7 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 03 00 E8 44 00 90 00 A0 [11:45:51]RAPDU: 90 00 [11:45:51]wFMCommunicate OK [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 0D 03 02 [11:45:51]Write to MH i2c: E2 08 00 E9 44 80 0D 03 02 00 00 00 00 A8 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0B 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 0B 00 E9 44 00 93 8E C9 3D DD EC EB 33 90 00 B7 [11:45:51]RAPDU: 93 8E C9 3D DD EC EB 33 90 00 [11:45:51]wFMCommunicate OK [11:45:51]SAM_PROTO_SignData done [11:45:51]FM_MakeSignedData done [11:45:51]CreateOFDProtocolMessage [11:45:51]wFMCommunicate request_size=4 [11:45:51]MH_SAM_APDU [11:45:51]CAPDU: 80 11 00 00 [11:45:51]Write to MH i2c: E2 08 00 EA 44 80 11 00 00 00 00 00 00 A8 [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:51]Read from MH i2c: E2 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 17 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: E2 17 00 EA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [11:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:51]wFMCommunicate OK [11:45:51]CreateOFDProtocolMessage done [11:45:51]OFDSenderStorePacket 165983 [11:45:51]StoreOFDPacket docnum=165983 [11:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C4 5B 07 01 A6 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 4D 00 00 00 00 07 04 06 00 6C DC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FF 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 88 02 00 35 04 06 00 AD 6A AD 2D B3 00 93 8E C9 3D DD EC EB 33 [11:45:51]CheckFolder [11:45:51]dirname=/storage/ofd_packets [11:45:51]CheckFolder done [11:45:51]ProducePacketName [11:45:51]name=ofd_packets/00165983 [11:45:51]NVStorageSaveData ofd_packets/00165983 [11:45:51]File name is /storage/ofd_packets/00165983 [11:45:51]Write 301 bytes [11:45:51]NVStorageSaveData done [11:45:51]OFDSenderStorePacket done [11:45:51]KKMCreateOFDPacket done [11:45:51]NVStorageSaveData kkm_last_timestamp [11:45:51]File name is /storage/kkm_last_timestamp [11:45:51]Write 4 bytes [11:45:51]NVStorageSaveData done [11:45:51]ExternCall_PrintAddStr [11:45:51]wPrintStart [11:45:51]Write to MH i2c: 01 00 00 EB 44 2F [11:45:51]Write i2c OK [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: 01 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: 01 07 00 [11:45:51]MH_I2C_Read... [11:45:51]Read from MH i2c: 01 07 00 EB 44 00 00 00 00 00 FF 0F 44 [11:45:51]RasterBufferAndPrint [11:45:51]line Счет N : (1)220553 [11:45:51]line ИНН: 02508201610067 [11:45:51]line Контрольно-Кассовый Чек [11:45:51]line ПРОДАЖА [11:45:51]line ТРК (МРК, ГНК) : 33 [11:45:51]line Товар: 2710124130 [11:45:51]line Аи-92-К-5 [11:45:51]line 28.040 * 66.90 [11:45:51]line = 1875.88 [11:45:51]line НДС 12% НСП 1% [11:45:51]line > о реализуемом товаре [11:45:51]line ОКРУГЛЕНИЕ: -0.88 [11:45:51]line ИТОГО: 1875.00 [11:45:51]line Внесено: 2000.00 [11:45:51]line СДАЧА: 125.00 [11:45:51]line НСП 1% : 16.60 [11:45:51]line НДС 12% : 199.21 [11:45:51]line Наличными: 1875.00 [11:45:51]line Безнал.: 0.00 [11:45:51]line Место: АЗС № 161 "Партнер Нефть" [11:45:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:45:51]line СНО: Общий режим [11:45:51]line Чек 94 21.10.2024 11:46 [11:45:51]line Смена: 535 ФФД: 1.0 [11:45:51]line ЗНМ: 0300000104 [11:45:51]line РНМ: 0000000000091764 [11:45:51]line Версия ККМ: 001 [11:45:51]line ФМ: 0000000000871759 [11:45:51]line ФД: 165983 [11:45:51]line ФПД: 190673683591936 [11:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114607&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165983&fm=190673683591936&tin=02508201610067®Number=0000000000091764&sum=187500 [11:45:51]OFD Sender: Processing packet 165983 [packets to send 48, broken 47] [11:45:51]ProducePacketName [11:45:51]name=ofd_packets/00165983 [11:45:51]OFD Sender: To server: pG, [11:45:51]CommunicateWithHost lk.salyk.kg:30040 [11:45:51]ConnectInit lk.salyk.kg [11:45:51]written 0, free lines is 4095 [11:45:51]Connected sock=7 [11:45:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C4 5B 07 01 A6 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 6D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C4 DC 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C DC 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 4D 00 00 00 00 07 04 06 00 6C DC 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 FF 3E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 88 02 00 35 04 06 00 AD 6A AD 2D B3 00 93 8E C9 3D DD EC EB 33 [11:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BB BE 47 00 6A 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 88 02 00 F4 03 04 00 6E E5 15 67 B6 04 01 00 00 39 55 07 5B 58 8E 34 4E [11:45:52]CommunicateWithHost err = 0 [11:45:52]CheckOFDResponse [11:45:52]1017 (14) - 77093643461234 [11:45:52]1041 (16) - 0000000000871759 [11:45:52]1040 (4) - 165983 [11:45:52]1012 (4) - 21.10.2024 05:23 [11:45:52]1206 (1) - 0 [11:45:52]OFD Sender: Remove packet 165983 [11:45:52]ProducePacketName [11:45:52]name=ofd_packets/00165983 [11:45:52]NVStorageDeleteData [11:45:52]Write to MH i2c: 01 00 00 16 45 5B [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: 01 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: 01 07 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: 01 07 00 16 45 00 00 00 00 00 D3 0C 41 [11:45:52]RasterBufferAndPrint [11:45:52]line [11:45:52]line [11:45:52]line [11:45:52]line [11:45:52]line [11:45:52]written 0, free lines is 3289 [11:45:52]MH_Cut [11:45:52]Write to MH i2c: D1 01 00 1D 45 01 34 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: D1 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: D1 01 00 [11:45:52]MH_I2C_Read... [11:45:52]Read from MH i2c: D1 01 00 1D 45 00 33 [11:45:52]Write to MH i2c: 01 00 00 1E 45 63 [11:45:52]Write i2c OK [11:45:52]MH_I2C_Read... [11:45:52]OFD Sender: No OFD packet to send [11:45:53]*** Cut start [11:45:53]*** Partial cut [11:45:53]*** CUTSNS_PIN = 1 [11:45:53]*** CUTSNS_PIN = 0 [11:45:53]*** Brake cut motor [11:45:53]Read from MH i2c: 01 [11:45:53]MH_I2C_Read... [11:45:53]*** Stop cut motor [11:45:53]*** Cut end [11:45:53]Read from MH i2c: 01 07 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: 01 07 00 1E 45 00 00 00 00 00 FF 0F 78 [11:45:53]process_action close_receipt done [11:45:53]requested_data is exist [11:45:53]produce_requested_data [11:45:53]requested_item fm.sn is exist - process it [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 11 00 00 [11:45:53]Write to MH i2c: E2 08 00 1F 45 80 11 00 00 00 00 00 00 DE [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 17 00 1F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [11:45:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:45:53]wFMCommunicate OK [11:45:53]requested_item fd.num is exist - process it [11:45:53]SAM_PROTO_GetFieldsCounters [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 13 00 00 [11:45:53]Write to MH i2c: E2 08 00 20 45 80 13 00 00 00 00 00 00 E1 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:53]Read from MH i2c: E2 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 62 00 [11:45:53]MH_I2C_Read... [11:45:53]Read from MH i2c: E2 62 00 20 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:45:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:53]wFMCommunicate OK [11:45:53]SAM_PROTO_GetFieldsCounters done [11:45:53]requested_item shift.num is exist - process it [11:45:53]requested_item shift.opened is exist - process it [11:45:53]req_shift_opened [11:45:53]FM_GetShiftState [11:45:53]SAM_PROTO_GetShiftState [11:45:53]wFMCommunicate request_size=4 [11:45:53]MH_SAM_APDU [11:45:53]CAPDU: 80 13 01 00 [11:45:53]Write to MH i2c: E2 08 00 21 45 80 13 01 00 00 00 00 00 E3 [11:45:53]Write i2c OK [11:45:53]MH_I2C_Read... [11:45:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:54]Read from MH i2c: E2 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 [11:45:54]MH_I2C_Read... [11:45:54]Read from MH i2c: E2 0E 00 21 45 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EC [11:45:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:45:54]wFMCommunicate OK [11:45:54]SAM_PROTO_GetShiftState done [11:45:54]FM_GetShiftState done [11:45:54]req_shift_opened done [11:45:54]requested_item shift.open_date is exist - process it [11:45:54]req_shift_open_date [11:45:54]req_shift_open_date done [11:45:54]produce_requested_data done [11:45:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165983,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:45:54]process_action_free close_receipt [11:45:54]json_value_free [11:45:54]json_value_free done [11:45:54]process_json_proto returns [11:45:54]Send response to host [11:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165983,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:45:54]free response buf [11:45:54]execute_script done [11:45:54]execute_script returns [11:45:54]free content buf [11:45:54]Sock 6.Close socket [11:45:54]Sock 6.Thread stoped [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:28]accept exits with 5 [11:47:28]New connection [11:47:28]New thread 3066920292 created [11:47:28]Thread 3066776932 joined [11:47:28]Waiting for new connection... [11:47:28] Sock 5.Parse request [11:47:28]Sock 5.Check first char [11:47:28]Sock 5.First char is OK [11:47:28]request: POST /json_proto HTTP/1.0 [11:47:28]Method: POST [11:47:28]URL: /json_proto [11:47:28]Method is POST - this is cgi request [11:47:28]url: /json_proto [11:47:28]query_string will be loaded in cgi processing [11:47:28]execute_cgi json_proto POST (null) [11:47:28]execute_cgi path=json_proto method=POST [11:47:28]POST find Content-Length [11:47:28]Host: 172.17.53.195:8080 [11:47:28]Content-Length: 677 [11:47:28]Content-Type: application/json [11:47:28] [11:47:28]POST finish read [11:47:28]Found Content-Length = 677 [11:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:28]execute_script... [11:47: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)220555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:28]POST & json_proto [11:47:28]process_json_proto [11:47:28]json parsed OK: [11:47:28]protocol is kg_v1.0 [11:47:28]action value=close_receipt [11:47:28]process_action close_receipt [11:47:28]cmd_close_receipt [11:47:28]MH_GetDate [11:47:28]Write to MH i2c: F0 00 00 22 45 56 [11:47:28]Write i2c OK [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: F0 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: F0 09 00 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: F0 09 00 22 45 00 62 3F 16 67 21 48 4A 65 95 [11:47:28]GetLastDocTimeStamp 1729511167 [11:47:28]current date 1729511266 [11:47:28]FM_GetShiftState [11:47:28]SAM_PROTO_GetShiftState [11:47:28]wFMCommunicate request_size=4 [11:47:28]MH_SAM_APDU [11:47:28]CAPDU: 80 13 01 00 [11:47:28]Write to MH i2c: E2 08 00 23 45 80 13 01 00 00 00 00 00 E5 [11:47:28]Write i2c OK [11:47:28]MH_I2C_Read... [11:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:28]Read from MH i2c: E2 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 0E 00 [11:47:28]MH_I2C_Read... [11:47:28]Read from MH i2c: E2 0E 00 23 45 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EE [11:47:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:47:28]wFMCommunicate OK [11:47:28]SAM_PROTO_GetShiftState done [11:47:28]FM_GetShiftState done [11:47:28]opened in 1729470944 [11:47:28]opened+sec_in_day 1729557344 [11:47:28]quantity*price = 34052 [11:47:28]sum+1 = 34053 [11:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 95 21.10.2024 11:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165984 ФПД: 225998877238735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114746&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165984&fm=225998877238735&tin=02508201610067®Number=0000000000091764&sum=34000 [11:47:29]StoreToDocumentArchive [11:47:29]shift 535 fd 165984 [11:47:29]save to /storage/0535/doc_00165984 [11:47:29]save last doc name /storage/0535/doc_00165984 to /storage/kkm_last_doc_name [11:47:29]save OK [11:47:29]Clear old archive folders... [11:47:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:29]tlvbuf is 015BD410 [11:47:29]SAM_PROTO_ClearQueue [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 09 00 00 [11:47:29]Write to MH i2c: E2 08 00 30 45 80 09 00 00 00 00 00 00 E7 [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 03 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 03 00 30 45 00 90 00 E9 [11:47:29]RAPDU: 90 00 [11:47:29]wFMCommunicate OK [11:47:29]SAM_PROTO_ClearQueue done [11:47:29]KKMCreateOFDPacket [11:47:29]OFDProtocolAddRootSTLVToBuf [11:47:29]FM_MakeSignedData [11:47:29]FM_MakeSignedData [11:47:29]SAM_PROTO_SignData [11:47:29]wFMCommunicate request_size=4 [11:47:29]MH_SAM_APDU [11:47:29]CAPDU: 80 0D 01 02 [11:47:29]Write to MH i2c: E2 08 00 31 45 80 0D 01 02 00 00 00 00 EF [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:29]Read from MH i2c: E2 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 03 00 [11:47:29]MH_I2C_Read... [11:47:29]Read from MH i2c: E2 03 00 31 45 00 90 00 EA [11:47:29]RAPDU: 90 00 [11:47:29]wFMCommunicate OK [11:47:29]wFMCommunicate request_size=255 [11:47:29]MH_SAM_APDU [11:47: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 62 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 88 02 00 35 04 06 00 CD [11:47:29]Write to MH i2c: E2 02 01 32 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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 62 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 88 02 00 35 04 06 00 CD 00 00 0B [11:47:29]Write i2c OK [11:47:29]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 32 45 00 90 00 EB [11:47:30]RAPDU: 90 00 [11:47:30]wFMCommunicate OK [11:47:30]wFMCommunicate request_size=10 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 0D 02 02 05 8B 76 CC 25 CF [11:47:30]Write to MH i2c: E2 0D 00 33 45 80 0D 02 02 05 00 8B 76 CC 25 CF 00 00 BD [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 03 00 33 45 00 90 00 EC [11:47:30]RAPDU: 90 00 [11:47:30]wFMCommunicate OK [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 0D 03 02 [11:47:30]Write to MH i2c: E2 08 00 34 45 80 0D 03 02 00 00 00 00 F4 [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 0B 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 0B 00 34 45 00 62 EA C5 BA ED 9C 17 CC 90 00 2C [11:47:30]RAPDU: 62 EA C5 BA ED 9C 17 CC 90 00 [11:47:30]wFMCommunicate OK [11:47:30]SAM_PROTO_SignData done [11:47:30]FM_MakeSignedData done [11:47:30]CreateOFDProtocolMessage [11:47:30]wFMCommunicate request_size=4 [11:47:30]MH_SAM_APDU [11:47:30]CAPDU: 80 11 00 00 [11:47:30]Write to MH i2c: E2 08 00 35 45 80 11 00 00 00 00 00 00 F4 [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:30]Read from MH i2c: E2 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 17 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: E2 17 00 35 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [11:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:30]wFMCommunicate OK [11:47:30]CreateOFDProtocolMessage done [11:47:30]OFDSenderStorePacket 165984 [11:47:30]StoreOFDPacket docnum=165984 [11:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F EB 07 01 C2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 62 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 88 02 00 35 04 06 00 CD 8B 76 CC 25 CF 62 EA C5 BA ED 9C 17 CC [11:47:30]CheckFolder [11:47:30]dirname=/storage/ofd_packets [11:47:30]CheckFolder done [11:47:30]ProducePacketName [11:47:30]name=ofd_packets/00165984 [11:47:30]NVStorageSaveData ofd_packets/00165984 [11:47:30]File name is /storage/ofd_packets/00165984 [11:47:30]Write 301 bytes [11:47:30]NVStorageSaveData done [11:47:30]OFDSenderStorePacket done [11:47:30]KKMCreateOFDPacket done [11:47:30]NVStorageSaveData kkm_last_timestamp [11:47:30]File name is /storage/kkm_last_timestamp [11:47:30]Write 4 bytes [11:47:30]NVStorageSaveData done [11:47:30]ExternCall_PrintAddStr [11:47:30]wPrintStart [11:47:30]Write to MH i2c: 01 00 00 36 45 7B [11:47:30]Write i2c OK [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: 01 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: 01 07 00 [11:47:30]MH_I2C_Read... [11:47:30]Read from MH i2c: 01 07 00 36 45 00 00 00 00 00 FF 0F 90 [11:47:30]RasterBufferAndPrint [11:47:30]line Счет N : (1)220555 [11:47:30]line ИНН: 02508201610067 [11:47:30]line Контрольно-Кассовый Чек [11:47:30]line ПРОДАЖА [11:47:30]line ТРК (МРК, ГНК) : 23 [11:47:30]line Товар: 2710124130 [11:47:30]line Аи-92-К-5 [11:47:30]line 5.090 * 66.90 [11:47:30]line = 340.52 [11:47:30]line НДС 12% НСП 1% [11:47:30]line > о реализуемом товаре [11:47:30]line ОКРУГЛЕНИЕ: -0.52 [11:47:30]line ИТОГО: 340.00 [11:47:30]line Внесено: 340.00 [11:47:30]line СДАЧА: 0.00 [11:47:30]line НСП 1% : 3.01 [11:47:30]line НДС 12% : 36.16 [11:47:30]line Наличными: 340.00 [11:47:30]line Безнал.: 0.00 [11:47:30]line Место: АЗС № 161 "Партнер Нефть" [11:47:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:47:30]line СНО: Общий режим [11:47:30]line Чек 95 21.10.2024 11:47 [11:47:30]line Смена: 535 ФФД: 1.0 [11:47:30]line ЗНМ: 0300000104 [11:47:30]line РНМ: 0000000000091764 [11:47:30]line Версия ККМ: 001 [11:47:30]line ФМ: 0000000000871759 [11:47:30]line ФД: 165984 [11:47:30]line ФПД: 225998877238735 [11:47:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114746&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165984&fm=225998877238735&tin=02508201610067®Number=0000000000091764&sum=34000 [11:47:30]OFD Sender: Processing packet 165984 [packets to send 48, broken 47] [11:47:30]ProducePacketName [11:47:30]name=ofd_packets/00165984 [11:47:30]OFD Sender: To server: pG, [11:47:30]CommunicateWithHost lk.salyk.kg:30040 [11:47:30]ConnectInit lk.salyk.kg [11:47:30]written 0, free lines is 4095 [11:47:30]Connected sock=9 [11:47:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F EB 07 01 C2 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 62 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 88 02 00 35 04 06 00 CD 8B 76 CC 25 CF 62 EA C5 BA ED 9C 17 CC [11:47:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E1 9A 47 00 32 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 88 02 00 F4 03 04 00 D1 E5 15 67 B6 04 01 00 00 3C 24 F0 88 96 4A 1E 9A [11:47:30]CommunicateWithHost err = 0 [11:47:30]CheckOFDResponse [11:47:30]1017 (14) - 77093643461234 [11:47:30]1041 (16) - 0000000000871759 [11:47:30]1040 (4) - 165984 [11:47:30]1012 (4) - 21.10.2024 05:25 [11:47:30]1206 (1) - 0 [11:47:30]OFD Sender: Remove packet 165984 [11:47:30]ProducePacketName [11:47:30]name=ofd_packets/00165984 [11:47:30]NVStorageDeleteData [11:47:31]Write to MH i2c: 01 00 00 61 45 A6 [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: 01 07 00 61 45 00 00 00 00 00 D3 0C 8C [11:47:31]RasterBufferAndPrint [11:47:31]line [11:47:31]line [11:47:31]line [11:47:31]line [11:47:31]line [11:47:31]written 0, free lines is 3289 [11:47:31]MH_Cut [11:47:31]Write to MH i2c: D1 01 00 68 45 01 7F [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: D1 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: D1 01 00 [11:47:31]MH_I2C_Read... [11:47:31]Read from MH i2c: D1 01 00 68 45 00 7E [11:47:31]Write to MH i2c: 01 00 00 69 45 AE [11:47:31]Write i2c OK [11:47:31]MH_I2C_Read... [11:47:31]OFD Sender: No OFD packet to send [11:47:31]*** Cut start [11:47:31]*** Partial cut [11:47:31]*** CUTSNS_PIN = 1 [11:47:31]*** CUTSNS_PIN = 0 [11:47:32]*** Brake cut motor [11:47:32]Read from MH i2c: 01 [11:47:32]MH_I2C_Read... [11:47:32]*** Stop cut motor [11:47:32]*** Cut end [11:47:32]Read from MH i2c: 01 07 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: 01 07 00 69 45 00 00 00 00 00 FF 0F C3 [11:47:32]process_action close_receipt done [11:47:32]requested_data is exist [11:47:32]produce_requested_data [11:47:32]requested_item fm.sn is exist - process it [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 11 00 00 [11:47:32]Write to MH i2c: E2 08 00 6A 45 80 11 00 00 00 00 00 00 29 [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 17 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 17 00 6A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [11:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:32]wFMCommunicate OK [11:47:32]requested_item fd.num is exist - process it [11:47:32]SAM_PROTO_GetFieldsCounters [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 13 00 00 [11:47:32]Write to MH i2c: E2 08 00 6B 45 80 13 00 00 00 00 00 00 2C [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 62 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 62 00 6B 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [11:47:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:32]wFMCommunicate OK [11:47:32]SAM_PROTO_GetFieldsCounters done [11:47:32]requested_item shift.num is exist - process it [11:47:32]requested_item shift.opened is exist - process it [11:47:32]req_shift_opened [11:47:32]FM_GetShiftState [11:47:32]SAM_PROTO_GetShiftState [11:47:32]wFMCommunicate request_size=4 [11:47:32]MH_SAM_APDU [11:47:32]CAPDU: 80 13 01 00 [11:47:32]Write to MH i2c: E2 08 00 6C 45 80 13 01 00 00 00 00 00 2E [11:47:32]Write i2c OK [11:47:32]MH_I2C_Read... [11:47:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:32]Read from MH i2c: E2 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 0E 00 [11:47:32]MH_I2C_Read... [11:47:32]Read from MH i2c: E2 0E 00 6C 45 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 37 [11:47:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:47:32]wFMCommunicate OK [11:47:32]SAM_PROTO_GetShiftState done [11:47:32]FM_GetShiftState done [11:47:32]req_shift_opened done [11:47:32]requested_item shift.open_date is exist - process it [11:47:32]req_shift_open_date [11:47:32]req_shift_open_date done [11:47:32]produce_requested_data done [11:47:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165984,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:47:32]process_action_free close_receipt [11:47:32]json_value_free [11:47:32]json_value_free done [11:47:32]process_json_proto returns [11:47:32]Send response to host [11:47:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165984,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:47:32]free response buf [11:47:32]execute_script done [11:47:32]execute_script returns [11:47:32]free content buf [11:47:32]Sock 5.Close socket [11:47:32]Sock 5.Thread stoped [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:52]accept exits with 6 [11:47:52]New connection [11:47:52]New thread 3066776932 created [11:47:52]Thread 3066920292 joined [11:47:52]Waiting for new connection... [11:47:52] Sock 6.Parse request [11:47:52]Sock 6.Check first char [11:47:52]Sock 6.First char is OK [11:47:52]request: POST /json_proto HTTP/1.0 [11:47:52]Method: POST [11:47:52]URL: /json_proto [11:47:52]Method is POST - this is cgi request [11:47:52]url: /json_proto [11:47:52]query_string will be loaded in cgi processing [11:47:52]execute_cgi json_proto POST (null) [11:47:52]execute_cgi path=json_proto method=POST [11:47:52]POST find Content-Length [11:47:52]Host: 172.17.53.195:8080 [11:47:52]Content-Length: 769 [11:47:52]Content-Type: application/json [11:47:52] [11:47:52]POST finish read [11:47:52]Found Content-Length = 769 [11:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:52]execute_script... [11:47: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)220554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:52]POST & json_proto [11:47:52]process_json_proto [11:47:52]json parsed OK: [11:47:52]protocol is kg_v1.0 [11:47:52]action value=close_receipt [11:47:52]process_action close_receipt [11:47:52]cmd_close_receipt [11:47:52]MH_GetDate [11:47:52]Write to MH i2c: F0 00 00 6D 45 A1 [11:47:52]Write i2c OK [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: F0 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: F0 09 00 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: F0 09 00 6D 45 00 7A 3F 16 67 21 48 4A 65 F8 [11:47:52]GetLastDocTimeStamp 1729511266 [11:47:52]current date 1729511290 [11:47:52]FM_GetShiftState [11:47:52]SAM_PROTO_GetShiftState [11:47:52]wFMCommunicate request_size=4 [11:47:52]MH_SAM_APDU [11:47:52]CAPDU: 80 13 01 00 [11:47:52]Write to MH i2c: E2 08 00 6E 45 80 13 01 00 00 00 00 00 30 [11:47:52]Write i2c OK [11:47:52]MH_I2C_Read... [11:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:52]Read from MH i2c: E2 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: E2 0E 00 [11:47:52]MH_I2C_Read... [11:47:52]Read from MH i2c: E2 0E 00 6E 45 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 39 [11:47:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:47:52]wFMCommunicate OK [11:47:52]SAM_PROTO_GetShiftState done [11:47:52]FM_GetShiftState done [11:47:52]opened in 1729470944 [11:47:52]opened+sec_in_day 1729557344 [11:47:52]quantity*price = 100015 [11:47:52]sum+1 = 100017 [11:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 96 21.10.2024 11:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165985 ФПД: 206799673899383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114810&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165985&fm=206799673899383&tin=02508201610067®Number=0000000000091764&sum=100016 [11:47:53]StoreToDocumentArchive [11:47:53]shift 535 fd 165985 [11:47:53]save to /storage/0535/doc_00165985 [11:47:53]save last doc name /storage/0535/doc_00165985 to /storage/kkm_last_doc_name [11:47:53]save OK [11:47:53]Clear old archive folders... [11:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:53]tlvbuf is 01A92010 [11:47:53]SAM_PROTO_ClearQueue [11:47:53]wFMCommunicate request_size=4 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 09 00 00 [11:47:53]Write to MH i2c: E2 08 00 7B 45 80 09 00 00 00 00 00 00 32 [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 7B 45 00 90 00 34 [11:47:53]RAPDU: 90 00 [11:47:53]wFMCommunicate OK [11:47:53]SAM_PROTO_ClearQueue done [11:47:53]KKMCreateOFDPacket [11:47:53]OFDProtocolAddRootSTLVToBuf [11:47:53]FM_MakeSignedData [11:47:53]FM_MakeSignedData [11:47:53]SAM_PROTO_SignData [11:47:53]wFMCommunicate request_size=4 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 0D 01 02 [11:47:53]Write to MH i2c: E2 08 00 7C 45 80 0D 01 02 00 00 00 00 3A [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 7C 45 00 90 00 35 [11:47:53]RAPDU: 90 00 [11:47:53]wFMCommunicate OK [11:47:53]wFMCommunicate request_size=255 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7A 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 88 02 00 35 04 06 00 BC [11:47:53]Write to MH i2c: E2 02 01 7D 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7A 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 88 02 00 35 04 06 00 BC 00 00 40 [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 7D 45 00 90 00 36 [11:47:53]RAPDU: 90 00 [11:47:53]wFMCommunicate OK [11:47:53]wFMCommunicate request_size=10 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 0D 02 02 05 15 4D 1A 39 77 [11:47:53]Write to MH i2c: E2 0D 00 7E 45 80 0D 02 02 05 00 15 4D 1A 39 77 00 00 73 [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 03 00 7E 45 00 90 00 37 [11:47:53]RAPDU: 90 00 [11:47:53]wFMCommunicate OK [11:47:53]wFMCommunicate request_size=4 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 0D 03 02 [11:47:53]Write to MH i2c: E2 08 00 7F 45 80 0D 03 02 00 00 00 00 3F [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 0B 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 0B 00 7F 45 00 A6 0E 55 FE 34 E5 2B 14 90 00 9F [11:47:53]RAPDU: A6 0E 55 FE 34 E5 2B 14 90 00 [11:47:53]wFMCommunicate OK [11:47:53]SAM_PROTO_SignData done [11:47:53]FM_MakeSignedData done [11:47:53]CreateOFDProtocolMessage [11:47:53]wFMCommunicate request_size=4 [11:47:53]MH_SAM_APDU [11:47:53]CAPDU: 80 11 00 00 [11:47:53]Write to MH i2c: E2 08 00 80 45 80 11 00 00 00 00 00 00 3F [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:53]Read from MH i2c: E2 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 17 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: E2 17 00 80 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [11:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:53]wFMCommunicate OK [11:47:53]CreateOFDProtocolMessage done [11:47:53]OFDSenderStorePacket 165985 [11:47:53]StoreOFDPacket docnum=165985 [11:47:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 18 07 01 CD C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7A 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 88 02 00 35 04 06 00 BC 15 4D 1A 39 77 A6 0E 55 FE 34 E5 2B 14 [11:47:53]CheckFolder [11:47:53]dirname=/storage/ofd_packets [11:47:53]CheckFolder done [11:47:53]ProducePacketName [11:47:53]name=ofd_packets/00165985 [11:47:53]NVStorageSaveData ofd_packets/00165985 [11:47:53]File name is /storage/ofd_packets/00165985 [11:47:53]Write 301 bytes [11:47:53]NVStorageSaveData done [11:47:53]OFDSenderStorePacket done [11:47:53]KKMCreateOFDPacket done [11:47:53]NVStorageSaveData kkm_last_timestamp [11:47:53]File name is /storage/kkm_last_timestamp [11:47:53]Write 4 bytes [11:47:53]NVStorageSaveData done [11:47:53]ExternCall_PrintAddStr [11:47:53]wPrintStart [11:47:53]Write to MH i2c: 01 00 00 81 45 C6 [11:47:53]Write i2c OK [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: 01 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: 01 07 00 [11:47:53]MH_I2C_Read... [11:47:53]Read from MH i2c: 01 07 00 81 45 00 00 00 00 00 FF 0F DB [11:47:53]RasterBufferAndPrint [11:47:53]line Счет N : (1)220554 [11:47:53]line ИНН: 02508201610067 [11:47:53]line Контрольно-Кассовый Чек [11:47:53]line ПРОДАЖА [11:47:53]line ТРК (МРК, ГНК) : 13 [11:47:53]line Товар: 2710124130 [11:47:53]line Аи-92-К-5 [11:47:53]line 14.950 * 66.90 [11:47:53]line = 1000.16 [11:47:53]line НДС 12% НСП 1% [11:47:53]line > о реализуемом товаре [11:47:53]line ИТОГО: 1000.16 [11:47:53]line НСП 1% : 8.85 [11:47:53]line НДС 12% : 106.21 [11:47:53]line Наличными: 0.00 [11:47:53]line Безнал.: 1000.16 [11:47:53]line Место: АЗС № 161 "Партнер Нефть" [11:47:53]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:47:53]line СНО: Общий режим [11:47:53]line Чек 96 21.10.2024 11:48 [11:47:53]line Смена: 535 ФФД: 1.0 [11:47:53]line ЗНМ: 0300000104 [11:47:53]line РНМ: 0000000000091764 [11:47:53]line Версия ККМ: 001 [11:47:53]line Платежная система: Mbank [11:47:53]line ФМ: 0000000000871759 [11:47:53]line ФД: 165985 [11:47:53]line ФПД: 206799673899383 [11:47:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114810&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165985&fm=206799673899383&tin=02508201610067®Number=0000000000091764&sum=100016 [11:47:54]written 0, free lines is 4095 [11:47:54]OFD Sender: Processing packet 165985 [packets to send 48, broken 47] [11:47:54]ProducePacketName [11:47:54]name=ofd_packets/00165985 [11:47:54]OFD Sender: To server: pG, [11:47:54]CommunicateWithHost lk.salyk.kg:30040 [11:47:54]ConnectInit lk.salyk.kg [11:47:54]Connected sock=7 [11:47:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 18 07 01 CD C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 7A 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 88 02 00 35 04 06 00 BC 15 4D 1A 39 77 A6 0E 55 FE 34 E5 2B 14 [11:47:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 17 1B 47 00 2C AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 88 02 00 F4 03 04 00 E8 E5 15 67 B6 04 01 00 00 C4 CA E4 40 E0 5C 46 B6 [11:47:54]CommunicateWithHost err = 0 [11:47:54]CheckOFDResponse [11:47:54]1017 (14) - 77093643461234 [11:47:54]1041 (16) - 0000000000871759 [11:47:54]1040 (4) - 165985 [11:47:54]1012 (4) - 21.10.2024 05:26 [11:47:54]1206 (1) - 0 [11:47:54]OFD Sender: Remove packet 165985 [11:47:54]ProducePacketName [11:47:54]name=ofd_packets/00165985 [11:47:54]NVStorageDeleteData [11:47:54]Write to MH i2c: 01 00 00 AA 45 EF [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 07 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: 01 07 00 AA 45 00 00 00 00 00 EF 0C F1 [11:47:54]RasterBufferAndPrint [11:47:54]line [11:47:54]line [11:47:54]line [11:47:54]line [11:47:54]line [11:47:54]written 0, free lines is 3322 [11:47:54]MH_Cut [11:47:54]Write to MH i2c: D1 01 00 B1 45 01 C8 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: D1 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: D1 01 00 [11:47:54]MH_I2C_Read... [11:47:54]Read from MH i2c: D1 01 00 B1 45 00 C7 [11:47:54]Write to MH i2c: 01 00 00 B2 45 F7 [11:47:54]Write i2c OK [11:47:54]MH_I2C_Read... [11:47:54]OFD Sender: No OFD packet to send [11:47:55]*** Cut start [11:47:55]*** Partial cut [11:47:55]*** CUTSNS_PIN = 1 [11:47:55]*** CUTSNS_PIN = 0 [11:47:55]*** Brake cut motor [11:47:55]Read from MH i2c: 01 [11:47:55]MH_I2C_Read... [11:47:55]*** Stop cut motor [11:47:55]*** Cut end [11:47:55]Read from MH i2c: 01 07 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: 01 07 00 B2 45 00 00 00 00 00 FF 0F 0C [11:47:55]process_action close_receipt done [11:47:55]requested_data is exist [11:47:55]produce_requested_data [11:47:55]requested_item fm.sn is exist - process it [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 11 00 00 [11:47:55]Write to MH i2c: E2 08 00 B3 45 80 11 00 00 00 00 00 00 72 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:55]Read from MH i2c: E2 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 17 00 [11:47:55]MH_I2C_Read... [11:47:55]Read from MH i2c: E2 17 00 B3 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [11:47:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:47:55]wFMCommunicate OK [11:47:55]requested_item fd.num is exist - process it [11:47:55]SAM_PROTO_GetFieldsCounters [11:47:55]wFMCommunicate request_size=4 [11:47:55]MH_SAM_APDU [11:47:55]CAPDU: 80 13 00 00 [11:47:55]Write to MH i2c: E2 08 00 B4 45 80 13 00 00 00 00 00 00 75 [11:47:55]Write i2c OK [11:47:55]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 62 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 62 00 B4 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [11:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetFieldsCounters done [11:47:56]requested_item shift.num is exist - process it [11:47:56]requested_item shift.opened is exist - process it [11:47:56]req_shift_opened [11:47:56]FM_GetShiftState [11:47:56]SAM_PROTO_GetShiftState [11:47:56]wFMCommunicate request_size=4 [11:47:56]MH_SAM_APDU [11:47:56]CAPDU: 80 13 01 00 [11:47:56]Write to MH i2c: E2 08 00 B5 45 80 13 01 00 00 00 00 00 77 [11:47:56]Write i2c OK [11:47:56]MH_I2C_Read... [11:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:56]Read from MH i2c: E2 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 [11:47:56]MH_I2C_Read... [11:47:56]Read from MH i2c: E2 0E 00 B5 45 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 80 [11:47:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:47:56]wFMCommunicate OK [11:47:56]SAM_PROTO_GetShiftState done [11:47:56]FM_GetShiftState done [11:47:56]req_shift_opened done [11:47:56]requested_item shift.open_date is exist - process it [11:47:56]req_shift_open_date [11:47:56]req_shift_open_date done [11:47:56]produce_requested_data done [11:47:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165985,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:47:56]process_action_free close_receipt [11:47:56]json_value_free [11:47:56]json_value_free done [11:47:56]process_json_proto returns [11:47:56]Send response to host [11:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165985,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:47:56]free response buf [11:47:56]execute_script done [11:47:56]execute_script returns [11:47:56]free content buf [11:47:56]Sock 6.Close socket [11:47:56]Sock 6.Thread stoped [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]accept exits with 5 [11:48:14]New connection [11:48:14]New thread 3066920292 created [11:48:14]Thread 3066776932 joined [11:48:14]Waiting for new connection... [11:48:14] Sock 5.Parse request [11:48:14]Sock 5.Check first char [11:48:14]Sock 5.First char is OK [11:48:14]request: POST /json_proto HTTP/1.0 [11:48:14]Method: POST [11:48:14]URL: /json_proto [11:48:14]Method is POST - this is cgi request [11:48:14]url: /json_proto [11:48:14]query_string will be loaded in cgi processing [11:48:14]execute_cgi json_proto POST (null) [11:48:14]execute_cgi path=json_proto method=POST [11:48:14]POST find Content-Length [11:48:14]Host: 172.17.53.195:8080 [11:48:14]Content-Length: 678 [11:48:14]Content-Type: application/json [11:48:14] [11:48:14]POST finish read [11:48:14]Found Content-Length = 678 [11:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.450, "sum" : 899.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:14]execute_script... [11:48: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)220556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.450, "sum" : 899.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:14]POST & json_proto [11:48:14]process_json_proto [11:48:14]json parsed OK: [11:48:14]protocol is kg_v1.0 [11:48:14]action value=close_receipt [11:48:14]process_action close_receipt [11:48:14]cmd_close_receipt [11:48:14]MH_GetDate [11:48:14]Write to MH i2c: F0 00 00 B6 45 EA [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: F0 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: F0 09 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: F0 09 00 B6 45 00 90 3F 16 67 21 48 4A 65 57 [11:48:14]GetLastDocTimeStamp 1729511290 [11:48:14]current date 1729511312 [11:48:14]FM_GetShiftState [11:48:14]SAM_PROTO_GetShiftState [11:48:14]wFMCommunicate request_size=4 [11:48:14]MH_SAM_APDU [11:48:14]CAPDU: 80 13 01 00 [11:48:14]Write to MH i2c: E2 08 00 B7 45 80 13 01 00 00 00 00 00 79 [11:48:14]Write i2c OK [11:48:14]MH_I2C_Read... [11:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:14]Read from MH i2c: E2 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 0E 00 [11:48:14]MH_I2C_Read... [11:48:14]Read from MH i2c: E2 0E 00 B7 45 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 82 [11:48:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:48:14]wFMCommunicate OK [11:48:14]SAM_PROTO_GetShiftState done [11:48:14]FM_GetShiftState done [11:48:14]opened in 1729470944 [11:48:14]opened+sec_in_day 1729557344 [11:48:14]quantity*price = 89980 [11:48:14]sum+1 = 89982 [11:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 899.00 Внесено: 900.00 СДАЧА: 1.00 НСП 1% : 7.96 НДС 12% : 95.55 Наличными: 899.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 97 21.10.2024 11:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165986 ФПД: 246030579660711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114832&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165986&fm=246030579660711&tin=02508201610067®Number=0000000000091764&sum=89900 [11:48:15]StoreToDocumentArchive [11:48:15]shift 535 fd 165986 [11:48:15]save to /storage/0535/doc_00165986 [11:48:15]save last doc name /storage/0535/doc_00165986 to /storage/kkm_last_doc_name [11:48:15]save OK [11:48:15]Clear old archive folders... [11:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:15]tlvbuf is 0186AF90 [11:48:15]SAM_PROTO_ClearQueue [11:48:15]wFMCommunicate request_size=4 [11:48:15]MH_SAM_APDU [11:48:15]CAPDU: 80 09 00 00 [11:48:15]Write to MH i2c: E2 08 00 C4 45 80 09 00 00 00 00 00 00 7B [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:15]Read from MH i2c: E2 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 C4 45 00 90 00 7D [11:48:15]RAPDU: 90 00 [11:48:15]wFMCommunicate OK [11:48:15]SAM_PROTO_ClearQueue done [11:48:15]KKMCreateOFDPacket [11:48:15]OFDProtocolAddRootSTLVToBuf [11:48:15]FM_MakeSignedData [11:48:15]FM_MakeSignedData [11:48:15]SAM_PROTO_SignData [11:48:15]wFMCommunicate request_size=4 [11:48:15]MH_SAM_APDU [11:48:15]CAPDU: 80 0D 01 02 [11:48:15]Write to MH i2c: E2 08 00 C5 45 80 0D 01 02 00 00 00 00 83 [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:15]Read from MH i2c: E2 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 [11:48:15]MH_I2C_Read... [11:48:15]Read from MH i2c: E2 03 00 C5 45 00 90 00 7E [11:48:15]RAPDU: 90 00 [11:48:15]wFMCommunicate OK [11:48:15]wFMCommunicate request_size=255 [11:48:15]MH_SAM_APDU [11:48: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 8A 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 25 00 00 00 00 07 04 06 00 2C 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 61 00 00 00 F4 03 04 00 90 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 88 02 00 35 04 06 00 DF [11:48:15]Write to MH i2c: E2 02 01 C6 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 8A 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 25 00 00 00 00 07 04 06 00 2C 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 61 00 00 00 F4 03 04 00 90 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 88 02 00 35 04 06 00 DF 00 00 AB [11:48:15]Write i2c OK [11:48:15]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 C6 45 00 90 00 7F [11:48:16]RAPDU: 90 00 [11:48:16]wFMCommunicate OK [11:48:16]wFMCommunicate request_size=10 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 0D 02 02 05 C3 75 4D F7 A7 [11:48:16]Write to MH i2c: E2 0D 00 C7 45 80 0D 02 02 05 00 C3 75 4D F7 A7 00 00 B3 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 03 00 C7 45 00 90 00 80 [11:48:16]RAPDU: 90 00 [11:48:16]wFMCommunicate OK [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 0D 03 02 [11:48:16]Write to MH i2c: E2 08 00 C8 45 80 0D 03 02 00 00 00 00 88 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0B 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 0B 00 C8 45 00 C6 42 F0 E1 80 D7 A7 AE 90 00 0E [11:48:16]RAPDU: C6 42 F0 E1 80 D7 A7 AE 90 00 [11:48:16]wFMCommunicate OK [11:48:16]SAM_PROTO_SignData done [11:48:16]FM_MakeSignedData done [11:48:16]CreateOFDProtocolMessage [11:48:16]wFMCommunicate request_size=4 [11:48:16]MH_SAM_APDU [11:48:16]CAPDU: 80 11 00 00 [11:48:16]Write to MH i2c: E2 08 00 C9 45 80 11 00 00 00 00 00 00 88 [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:16]Read from MH i2c: E2 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 17 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: E2 17 00 C9 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [11:48:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:16]wFMCommunicate OK [11:48:16]CreateOFDProtocolMessage done [11:48:16]OFDSenderStorePacket 165986 [11:48:16]StoreOFDPacket docnum=165986 [11:48:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 65 F9 07 01 83 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 25 00 00 00 00 07 04 06 00 2C 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 61 00 00 00 F4 03 04 00 90 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 88 02 00 35 04 06 00 DF C3 75 4D F7 A7 C6 42 F0 E1 80 D7 A7 AE [11:48:16]CheckFolder [11:48:16]dirname=/storage/ofd_packets [11:48:16]CheckFolder done [11:48:16]ProducePacketName [11:48:16]name=ofd_packets/00165986 [11:48:16]NVStorageSaveData ofd_packets/00165986 [11:48:16]File name is /storage/ofd_packets/00165986 [11:48:16]Write 301 bytes [11:48:16]NVStorageSaveData done [11:48:16]OFDSenderStorePacket done [11:48:16]KKMCreateOFDPacket done [11:48:16]NVStorageSaveData kkm_last_timestamp [11:48:16]File name is /storage/kkm_last_timestamp [11:48:16]Write 4 bytes [11:48:16]NVStorageSaveData done [11:48:16]ExternCall_PrintAddStr [11:48:16]wPrintStart [11:48:16]Write to MH i2c: 01 00 00 CA 45 0F [11:48:16]Write i2c OK [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 [11:48:16]MH_I2C_Read... [11:48:16]Read from MH i2c: 01 07 00 CA 45 00 00 00 00 00 FF 0F 24 [11:48:16]RasterBufferAndPrint [11:48:16]line Счет N : (1)220556 [11:48:16]line ИНН: 02508201610067 [11:48:16]line Контрольно-Кассовый Чек [11:48:16]line ПРОДАЖА [11:48:16]line ТРК (МРК, ГНК) : 43 [11:48:16]line Товар: 2710124130 [11:48:16]line Аи-92-К-5 [11:48:16]line 13.450 * 66.90 [11:48:16]line = 899.81 [11:48:16]line НДС 12% НСП 1% [11:48:16]line > о реализуемом товаре [11:48:16]line ОКРУГЛЕНИЕ: -0.81 [11:48:16]line ИТОГО: 899.00 [11:48:16]line Внесено: 900.00 [11:48:16]line СДАЧА: 1.00 [11:48:16]line НСП 1% : 7.96 [11:48:16]line НДС 12% : 95.55 [11:48:16]line Наличными: 899.00 [11:48:16]line Безнал.: 0.00 [11:48:16]line Место: АЗС № 161 "Партнер Нефть" [11:48:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:48:16]line СНО: Общий режим [11:48:16]line Чек 97 21.10.2024 11:48 [11:48:16]line Смена: 535 ФФД: 1.0 [11:48:16]line ЗНМ: 0300000104 [11:48:16]line РНМ: 0000000000091764 [11:48:16]line Версия ККМ: 001 [11:48:16]line ФМ: 0000000000871759 [11:48:16]line ФД: 165986 [11:48:16]line ФПД: 246030579660711 [11:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114832&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165986&fm=246030579660711&tin=02508201610067®Number=0000000000091764&sum=89900 [11:48:16]OFD Sender: Processing packet 165986 [packets to send 48, broken 47] [11:48:16]ProducePacketName [11:48:16]name=ofd_packets/00165986 [11:48:16]OFD Sender: To server: pG, [11:48:16]CommunicateWithHost lk.salyk.kg:30040 [11:48:16]ConnectInit lk.salyk.kg [11:48:16]written 0, free lines is 4095 [11:48:16]Connected sock=7 [11:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 65 F9 07 01 83 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7D 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 25 00 00 00 00 07 04 06 00 2C 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 61 00 00 00 F4 03 04 00 90 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 88 02 00 35 04 06 00 DF C3 75 4D F7 A7 C6 42 F0 E1 80 D7 A7 AE [11:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 90 65 47 00 28 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 88 02 00 F4 03 04 00 FF E5 15 67 B6 04 01 00 00 C7 ED 6E E7 53 C3 B2 D2 [11:48:16]CommunicateWithHost err = 0 [11:48:16]CheckOFDResponse [11:48:16]1017 (14) - 77093643461234 [11:48:16]1041 (16) - 0000000000871759 [11:48:16]1040 (4) - 165986 [11:48:16]1012 (4) - 21.10.2024 05:26 [11:48:16]1206 (1) - 0 [11:48:16]OFD Sender: Remove packet 165986 [11:48:16]ProducePacketName [11:48:16]name=ofd_packets/00165986 [11:48:16]NVStorageDeleteData [11:48:17]Write to MH i2c: 01 00 00 F5 45 3A [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 07 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: 01 07 00 F5 45 00 00 00 00 00 DA 0C 27 [11:48:17]RasterBufferAndPrint [11:48:17]line [11:48:17]line [11:48:17]line [11:48:17]line [11:48:17]line [11:48:17]written 0, free lines is 3301 [11:48:17]MH_Cut [11:48:17]Write to MH i2c: D1 01 00 FC 45 01 13 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: D1 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: D1 01 00 [11:48:17]MH_I2C_Read... [11:48:17]Read from MH i2c: D1 01 00 FC 45 00 12 [11:48:17]Write to MH i2c: 01 00 00 FD 45 42 [11:48:17]Write i2c OK [11:48:17]MH_I2C_Read... [11:48:17]OFD Sender: No OFD packet to send [11:48:17]*** Cut start [11:48:17]*** Partial cut [11:48:17]*** CUTSNS_PIN = 1 [11:48:17]*** CUTSNS_PIN = 0 [11:48:18]*** Brake cut motor [11:48:18]Read from MH i2c: 01 [11:48:18]MH_I2C_Read... [11:48:18]*** Stop cut motor [11:48:18]*** Cut end [11:48:18]Read from MH i2c: 01 07 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: 01 07 00 FD 45 00 00 00 00 00 FF 0F 57 [11:48:18]process_action close_receipt done [11:48:18]requested_data is exist [11:48:18]produce_requested_data [11:48:18]requested_item fm.sn is exist - process it [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 11 00 00 [11:48:18]Write to MH i2c: E2 08 00 FE 45 80 11 00 00 00 00 00 00 BD [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 17 00 FE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [11:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:48:18]wFMCommunicate OK [11:48:18]requested_item fd.num is exist - process it [11:48:18]SAM_PROTO_GetFieldsCounters [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 13 00 00 [11:48:18]Write to MH i2c: E2 08 00 FF 45 80 13 00 00 00 00 00 00 C0 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 62 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 62 00 FF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [11:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_GetFieldsCounters done [11:48:18]requested_item shift.num is exist - process it [11:48:18]requested_item shift.opened is exist - process it [11:48:18]req_shift_opened [11:48:18]FM_GetShiftState [11:48:18]SAM_PROTO_GetShiftState [11:48:18]wFMCommunicate request_size=4 [11:48:18]MH_SAM_APDU [11:48:18]CAPDU: 80 13 01 00 [11:48:18]Write to MH i2c: E2 08 00 00 46 80 13 01 00 00 00 00 00 C3 [11:48:18]Write i2c OK [11:48:18]MH_I2C_Read... [11:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:18]Read from MH i2c: E2 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0E 00 [11:48:18]MH_I2C_Read... [11:48:18]Read from MH i2c: E2 0E 00 00 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CC [11:48:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:48:18]wFMCommunicate OK [11:48:18]SAM_PROTO_GetShiftState done [11:48:18]FM_GetShiftState done [11:48:18]req_shift_opened done [11:48:18]requested_item shift.open_date is exist - process it [11:48:18]req_shift_open_date [11:48:18]req_shift_open_date done [11:48:18]produce_requested_data done [11:48:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165986,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:48:18]process_action_free close_receipt [11:48:18]json_value_free [11:48:18]json_value_free done [11:48:18]process_json_proto returns [11:48:18]Send response to host [11:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165986,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:48:18]free response buf [11:48:18]execute_script done [11:48:18]execute_script returns [11:48:18]free content buf [11:48:18]Sock 5.Close socket [11:48:18]Sock 5.Thread stoped [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:47]OFD Sender: No OFD packet to send [11:48:52]OFD Sender: No OFD packet to send [11:48:57]OFD Sender: No OFD packet to send [11:49:02]OFD Sender: No OFD packet to send [11:49:07]OFD Sender: No OFD packet to send [11:49:12]OFD Sender: No OFD packet to send [11:49:13]accept exits with 6 [11:49:13]New connection [11:49:13]New thread 3066776932 created [11:49:13]Thread 3066920292 joined [11:49:13]Waiting for new connection... [11:49:13] Sock 6.Parse request [11:49:13]Sock 6.Check first char [11:49:13]Sock 6.First char is OK [11:49:13]request: POST /json_proto HTTP/1.0 [11:49:13]Method: POST [11:49:13]URL: /json_proto [11:49:13]Method is POST - this is cgi request [11:49:13]url: /json_proto [11:49:13]query_string will be loaded in cgi processing [11:49:13]execute_cgi json_proto POST (null) [11:49:13]execute_cgi path=json_proto method=POST [11:49:13]POST find Content-Length [11:49:13]Host: 172.17.53.195:8080 [11:49:13]Content-Length: 678 [11:49:13]Content-Type: application/json [11:49:13] [11:49:13]POST finish read [11:49:13]Found Content-Length = 678 [11:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.110, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:13]execute_script... [11:49: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)220557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.110, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:13]POST & json_proto [11:49:13]process_json_proto [11:49:13]json parsed OK: [11:49:13]protocol is kg_v1.0 [11:49:13]action value=close_receipt [11:49:13]process_action close_receipt [11:49:13]cmd_close_receipt [11:49:13]MH_GetDate [11:49:13]Write to MH i2c: F0 00 00 01 46 36 [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: F0 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: F0 09 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: F0 09 00 01 46 00 CB 3F 16 67 21 48 4A 65 DE [11:49:13]GetLastDocTimeStamp 1729511312 [11:49:13]current date 1729511371 [11:49:13]FM_GetShiftState [11:49:13]SAM_PROTO_GetShiftState [11:49:13]wFMCommunicate request_size=4 [11:49:13]MH_SAM_APDU [11:49:13]CAPDU: 80 13 01 00 [11:49:13]Write to MH i2c: E2 08 00 02 46 80 13 01 00 00 00 00 00 C5 [11:49:13]Write i2c OK [11:49:13]MH_I2C_Read... [11:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:13]Read from MH i2c: E2 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 0E 00 [11:49:13]MH_I2C_Read... [11:49:13]Read from MH i2c: E2 0E 00 02 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CE [11:49:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:49:13]wFMCommunicate OK [11:49:13]SAM_PROTO_GetShiftState done [11:49:13]FM_GetShiftState done [11:49:13]opened in 1729470944 [11:49:13]opened+sec_in_day 1729557344 [11:49:13]quantity*price = 81015 [11:49:13]sum+1 = 81017 [11:49:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.03 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 98 21.10.2024 11:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165987 ФПД: 129056166914706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114931&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165987&fm=129056166914706&tin=02508201610067®Number=0000000000091764&sum=81000 [11:49:15]StoreToDocumentArchive [11:49:15]shift 535 fd 165987 [11:49:15]save to /storage/0535/doc_00165987 [11:49:15]save last doc name /storage/0535/doc_00165987 to /storage/kkm_last_doc_name [11:49:15]save OK [11:49:15]Clear old archive folders... [11:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:15]tlvbuf is 0186B320 [11:49:15]SAM_PROTO_ClearQueue [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 09 00 00 [11:49:15]Write to MH i2c: E2 08 00 0F 46 80 09 00 00 00 00 00 00 C7 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 0F 46 00 90 00 C9 [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_ClearQueue done [11:49:15]KKMCreateOFDPacket [11:49:15]OFDProtocolAddRootSTLVToBuf [11:49:15]FM_MakeSignedData [11:49:15]FM_MakeSignedData [11:49:15]SAM_PROTO_SignData [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 01 02 [11:49:15]Write to MH i2c: E2 08 00 10 46 80 0D 01 02 00 00 00 00 CF [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 10 46 00 90 00 CA [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=255 [11:49:15]MH_SAM_APDU [11:49: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 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CB 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 88 02 00 35 04 06 00 75 [11:49:15]Write to MH i2c: E2 02 01 11 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 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CB 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 88 02 00 35 04 06 00 75 00 00 87 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 11 46 00 90 00 CB [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=10 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 02 02 05 60 3A FC 2A 92 [11:49:15]Write to MH i2c: E2 0D 00 12 46 80 0D 02 02 05 00 60 3A FC 2A 92 00 00 2E [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 03 00 12 46 00 90 00 CC [11:49:15]RAPDU: 90 00 [11:49:15]wFMCommunicate OK [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 0D 03 02 [11:49:15]Write to MH i2c: E2 08 00 13 46 80 0D 03 02 00 00 00 00 D4 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0B 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 0B 00 13 46 00 08 13 4A 68 0F C8 B5 23 90 00 51 [11:49:15]RAPDU: 08 13 4A 68 0F C8 B5 23 90 00 [11:49:15]wFMCommunicate OK [11:49:15]SAM_PROTO_SignData done [11:49:15]FM_MakeSignedData done [11:49:15]CreateOFDProtocolMessage [11:49:15]wFMCommunicate request_size=4 [11:49:15]MH_SAM_APDU [11:49:15]CAPDU: 80 11 00 00 [11:49:15]Write to MH i2c: E2 08 00 14 46 80 11 00 00 00 00 00 00 D4 [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:15]Read from MH i2c: E2 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: E2 17 00 14 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [11:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:15]wFMCommunicate OK [11:49:15]CreateOFDProtocolMessage done [11:49:15]OFDSenderStorePacket 165987 [11:49:15]StoreOFDPacket docnum=165987 [11:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 EB 07 01 A7 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 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CB 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 88 02 00 35 04 06 00 75 60 3A FC 2A 92 08 13 4A 68 0F C8 B5 23 [11:49:15]CheckFolder [11:49:15]dirname=/storage/ofd_packets [11:49:15]CheckFolder done [11:49:15]ProducePacketName [11:49:15]name=ofd_packets/00165987 [11:49:15]NVStorageSaveData ofd_packets/00165987 [11:49:15]File name is /storage/ofd_packets/00165987 [11:49:15]Write 301 bytes [11:49:15]NVStorageSaveData done [11:49:15]OFDSenderStorePacket done [11:49:15]KKMCreateOFDPacket done [11:49:15]NVStorageSaveData kkm_last_timestamp [11:49:15]File name is /storage/kkm_last_timestamp [11:49:15]Write 4 bytes [11:49:15]NVStorageSaveData done [11:49:15]ExternCall_PrintAddStr [11:49:15]wPrintStart [11:49:15]Write to MH i2c: 01 00 00 15 46 5B [11:49:15]Write i2c OK [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 [11:49:15]MH_I2C_Read... [11:49:15]Read from MH i2c: 01 07 00 15 46 00 00 00 00 00 FF 0F 70 [11:49:15]RasterBufferAndPrint [11:49:15]line Счет N : (1)220557 [11:49:15]line ИНН: 02508201610067 [11:49:15]line Контрольно-Кассовый Чек [11:49:15]line ПРОДАЖА [11:49:15]line ТРК (МРК, ГНК) : 33 [11:49:15]line Товар: 2710124130 [11:49:15]line Аи-92-К-5 [11:49:15]line 12.110 * 66.90 [11:49:15]line = 810.16 [11:49:15]line НДС 12% НСП 1% [11:49:15]line > о реализуемом товаре [11:49:15]line ОКРУГЛЕНИЕ: -0.16 [11:49:15]line ИТОГО: 810.00 [11:49:15]line Внесено: 810.00 [11:49:15]line СДАЧА: 0.00 [11:49:15]line НСП 1% : 7.17 [11:49:15]line НДС 12% : 86.03 [11:49:15]line Наличными: 810.00 [11:49:15]line Безнал.: 0.00 [11:49:15]line Место: АЗС № 161 "Партнер Нефть" [11:49:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:49:15]line СНО: Общий режим [11:49:15]line Чек 98 21.10.2024 11:49 [11:49:15]line Смена: 535 ФФД: 1.0 [11:49:15]line ЗНМ: 0300000104 [11:49:15]line РНМ: 0000000000091764 [11:49:15]line Версия ККМ: 001 [11:49:15]line ФМ: 0000000000871759 [11:49:15]line ФД: 165987 [11:49:15]line ФПД: 129056166914706 [11:49:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T114931&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165987&fm=129056166914706&tin=02508201610067®Number=0000000000091764&sum=81000 [11:49:15]OFD Sender: Processing packet 165987 [packets to send 48, broken 47] [11:49:15]ProducePacketName [11:49:15]name=ofd_packets/00165987 [11:49:15]OFD Sender: To server: pG, [11:49:15]CommunicateWithHost lk.salyk.kg:30040 [11:49:15]ConnectInit lk.salyk.kg [11:49:15]written 0, free lines is 4095 [11:49:16]Connected sock=7 [11:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 EB 07 01 A7 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 4E 2F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CB 3F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 88 02 00 35 04 06 00 75 60 3A FC 2A 92 08 13 4A 68 0F C8 B5 23 [11:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1A C1 47 00 B9 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 88 02 00 F4 03 04 00 3A E6 15 67 B6 04 01 00 00 04 20 BD EA 77 72 BB 48 [11:49:16]CommunicateWithHost err = 0 [11:49:16]CheckOFDResponse [11:49:16]1017 (14) - 77093643461234 [11:49:16]1041 (16) - 0000000000871759 [11:49:16]1040 (4) - 165987 [11:49:16]1012 (4) - 21.10.2024 05:27 [11:49:16]1206 (1) - 0 [11:49:16]OFD Sender: Remove packet 165987 [11:49:16]ProducePacketName [11:49:16]name=ofd_packets/00165987 [11:49:16]NVStorageDeleteData [11:49:16]Write to MH i2c: 01 00 00 40 46 86 [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: 01 07 00 40 46 00 00 00 00 00 D4 0C 6D [11:49:16]RasterBufferAndPrint [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]line [11:49:16]written 0, free lines is 3292 [11:49:16]MH_Cut [11:49:16]Write to MH i2c: D1 01 00 47 46 01 5F [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 01 00 [11:49:16]MH_I2C_Read... [11:49:16]Read from MH i2c: D1 01 00 47 46 00 5E [11:49:16]Write to MH i2c: 01 00 00 48 46 8E [11:49:16]Write i2c OK [11:49:16]MH_I2C_Read... [11:49:16]OFD Sender: No OFD packet to send [11:49:17]*** Cut start [11:49:17]*** Partial cut [11:49:17]*** CUTSNS_PIN = 1 [11:49:17]*** CUTSNS_PIN = 0 [11:49:17]*** Brake cut motor [11:49:17]Read from MH i2c: 01 [11:49:17]MH_I2C_Read... [11:49:17]*** Stop cut motor [11:49:17]*** Cut end [11:49:17]Read from MH i2c: 01 07 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: 01 07 00 48 46 00 00 00 00 00 FF 0F A3 [11:49:17]process_action close_receipt done [11:49:17]requested_data is exist [11:49:17]produce_requested_data [11:49:17]requested_item fm.sn is exist - process it [11:49:17]wFMCommunicate request_size=4 [11:49:17]MH_SAM_APDU [11:49:17]CAPDU: 80 11 00 00 [11:49:17]Write to MH i2c: E2 08 00 49 46 80 11 00 00 00 00 00 00 09 [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:17]Read from MH i2c: E2 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 17 00 [11:49:17]MH_I2C_Read... [11:49:17]Read from MH i2c: E2 17 00 49 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [11:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:49:17]wFMCommunicate OK [11:49:17]requested_item fd.num is exist - process it [11:49:17]SAM_PROTO_GetFieldsCounters [11:49:17]wFMCommunicate request_size=4 [11:49:17]MH_SAM_APDU [11:49:17]CAPDU: 80 13 00 00 [11:49:17]Write to MH i2c: E2 08 00 4A 46 80 13 00 00 00 00 00 00 0C [11:49:17]Write i2c OK [11:49:17]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 62 00 4A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [11:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetFieldsCounters done [11:49:18]requested_item shift.num is exist - process it [11:49:18]requested_item shift.opened is exist - process it [11:49:18]req_shift_opened [11:49:18]FM_GetShiftState [11:49:18]SAM_PROTO_GetShiftState [11:49:18]wFMCommunicate request_size=4 [11:49:18]MH_SAM_APDU [11:49:18]CAPDU: 80 13 01 00 [11:49:18]Write to MH i2c: E2 08 00 4B 46 80 13 01 00 00 00 00 00 0E [11:49:18]Write i2c OK [11:49:18]MH_I2C_Read... [11:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:18]Read from MH i2c: E2 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 [11:49:18]MH_I2C_Read... [11:49:18]Read from MH i2c: E2 0E 00 4B 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 17 [11:49:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:49:18]wFMCommunicate OK [11:49:18]SAM_PROTO_GetShiftState done [11:49:18]FM_GetShiftState done [11:49:18]req_shift_opened done [11:49:18]requested_item shift.open_date is exist - process it [11:49:18]req_shift_open_date [11:49:18]req_shift_open_date done [11:49:18]produce_requested_data done [11:49:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165987,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:49:18]process_action_free close_receipt [11:49:18]json_value_free [11:49:18]json_value_free done [11:49:18]process_json_proto returns [11:49:18]Send response to host [11:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165987,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:49:18]free response buf [11:49:18]execute_script done [11:49:18]execute_script returns [11:49:18]free content buf [11:49:18]Sock 6.Close socket [11:49:18]Sock 6.Thread stoped [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:13]*** FLAG_PRN_PAP1 set [11:50:13]*** FLAG_PRN_PAP2 set [11:50:14]*** FLAG_PRN_PAP2 reset [11:50:14]*** FLAG_PRN_PAP2 set [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:26]*** FLAG_PRN_PAP2 reset [11:50:26]*** FLAG_PRN_PAP1 reset [11:50:27]*** FLAG_PRN_KEY set [11:50:28]*** FLAG_PRN_KEY reset [11:50:28]*** FLAG_PRN_KEY set [11:50:28]*** FLAG_PRN_KEY reset [11:50:28]*** FLAG_PRN_KEY set [11:50:28]*** FLAG_PRN_KEY reset [11:50:29]*** FLAG_PRN_KEY set [11:50:29]*** FLAG_PRN_KEY reset [11:50:29]*** FLAG_PRN_KEY set [11:50:29]*** FLAG_PRN_KEY reset [11:50:29]*** FLAG_PRN_PAP1 set [11:50:29]*** FLAG_PRN_PAP2 set [11:50:31]*** FLAG_PRN_PAP2 reset [11:50:31]OFD Sender: No OFD packet to send [11:50:32]*** FLAG_PRN_KEY set [11:50:33]*** FLAG_PRN_KEY reset [11:50:33]*** FLAG_PRN_KEY set [11:50:33]*** FLAG_PRN_KEY reset [11:50:36]*** FLAG_PRN_PAP2 set [11:50:36]OFD Sender: No OFD packet to send [11:50:38]*** FLAG_PRN_PAP2 reset [11:50:39]*** FLAG_PRN_KEY set [11:50:40]*** FLAG_PRN_KEY reset [11:50:40]*** FLAG_PRN_KEY set [11:50:40]*** FLAG_PRN_KEY reset [11:50:41]*** FLAG_PRN_KEY set [11:50:41]*** FLAG_PRN_KEY reset [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:50]*** FLAG_PRN_KEY set [11:50:50]*** FLAG_PRN_KEY reset [11:50:50]*** FLAG_PRN_KEY set [11:50:51]*** FLAG_PRN_KEY reset [11:50:51]*** FLAG_PRN_KEY set [11:50:51]*** FLAG_PRN_KEY reset [11:50:51]OFD Sender: No OFD packet to send [11:50:55]*** FLAG_PRN_KEY set [11:50:55]*** FLAG_PRN_KEY reset [11:50:56]*** FLAG_PRN_KEY set [11:50:56]*** FLAG_PRN_KEY reset [11:50:56]OFD Sender: No OFD packet to send [11:50:57]*** FLAG_PRN_PAP2 set [11:50:59]*** FLAG_PRN_PAP2 reset [11:50:59]*** FLAG_PRN_PAP1 reset [11:51:00]*** FLAG_PRN_KEY set [11:51:00]*** FLAG_PRN_KEY reset [11:51:00]*** FLAG_PRN_KEY set [11:51:01]*** FLAG_PRN_KEY reset [11:51:01]*** FLAG_PRN_KEY set [11:51:01]OFD Sender: No OFD packet to send [11:51:02]*** FLAG_PRN_KEY reset [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:33]accept exits with 5 [11:51:33]New connection [11:51:33]New thread 3066920292 created [11:51:33]Thread 3066776932 joined [11:51:33]Waiting for new connection... [11:51:33] Sock 5.Parse request [11:51:33]Sock 5.Check first char [11:51:33]Sock 5.First char is OK [11:51:33]request: POST /json_proto HTTP/1.0 [11:51:33]Method: POST [11:51:33]URL: /json_proto [11:51:33]Method is POST - this is cgi request [11:51:33]url: /json_proto [11:51:33]query_string will be loaded in cgi processing [11:51:33]execute_cgi json_proto POST (null) [11:51:33]execute_cgi path=json_proto method=POST [11:51:33]POST find Content-Length [11:51:33]Host: 172.17.53.195:8080 [11:51:33]Content-Length: 769 [11:51:33]Content-Type: application/json [11:51:33] [11:51:33]POST finish read [11:51:33]Found Content-Length = 769 [11:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:33]execute_script... [11:51:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:33]POST & json_proto [11:51:33]process_json_proto [11:51:33]json parsed OK: [11:51:33]protocol is kg_v1.0 [11:51:33]action value=close_receipt [11:51:33]process_action close_receipt [11:51:33]cmd_close_receipt [11:51:33]MH_GetDate [11:51:33]Write to MH i2c: F0 00 00 4C 46 81 [11:51:33]Write i2c OK [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: F0 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: F0 09 00 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: F0 09 00 4C 46 00 57 40 16 67 21 48 4A 65 B6 [11:51:33]GetLastDocTimeStamp 1729511371 [11:51:33]current date 1729511511 [11:51:33]FM_GetShiftState [11:51:33]SAM_PROTO_GetShiftState [11:51:33]wFMCommunicate request_size=4 [11:51:33]MH_SAM_APDU [11:51:33]CAPDU: 80 13 01 00 [11:51:33]Write to MH i2c: E2 08 00 4D 46 80 13 01 00 00 00 00 00 10 [11:51:33]Write i2c OK [11:51:33]MH_I2C_Read... [11:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:33]Read from MH i2c: E2 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: E2 0E 00 [11:51:33]MH_I2C_Read... [11:51:33]Read from MH i2c: E2 0E 00 4D 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [11:51:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:51:33]wFMCommunicate OK [11:51:33]SAM_PROTO_GetShiftState done [11:51:33]FM_GetShiftState done [11:51:33]opened in 1729470944 [11:51:33]opened+sec_in_day 1729557344 [11:51:33]quantity*price = 100015 [11:51:33]sum+1 = 100017 [11:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 99 21.10.2024 11:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165988 ФПД: 220548209078368 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115151&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165988&fm=220548209078368&tin=02508201610067®Number=0000000000091764&sum=100016 [11:51:34]StoreToDocumentArchive [11:51:34]shift 535 fd 165988 [11:51:34]save to /storage/0535/doc_00165988 [11:51:34]save last doc name /storage/0535/doc_00165988 to /storage/kkm_last_doc_name [11:51:34]save OK [11:51:34]Clear old archive folders... [11:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:34]tlvbuf is 01522A70 [11:51:34]SAM_PROTO_ClearQueue [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 09 00 00 [11:51:34]Write to MH i2c: E2 08 00 5A 46 80 09 00 00 00 00 00 00 12 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 5A 46 00 90 00 14 [11:51:34]RAPDU: 90 00 [11:51:34]wFMCommunicate OK [11:51:34]SAM_PROTO_ClearQueue done [11:51:34]KKMCreateOFDPacket [11:51:34]OFDProtocolAddRootSTLVToBuf [11:51:34]FM_MakeSignedData [11:51:34]FM_MakeSignedData [11:51:34]SAM_PROTO_SignData [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 0D 01 02 [11:51:34]Write to MH i2c: E2 08 00 5B 46 80 0D 01 02 00 00 00 00 1A [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 5B 46 00 90 00 15 [11:51:34]RAPDU: 90 00 [11:51:34]wFMCommunicate OK [11:51:34]wFMCommunicate request_size=255 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 40 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 88 02 00 35 04 06 00 C8 [11:51:34]Write to MH i2c: E2 02 01 5C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 40 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 88 02 00 35 04 06 00 C8 00 00 10 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:34]Read from MH i2c: E2 03 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 5C 46 00 90 00 16 [11:51:34]RAPDU: 90 00 [11:51:34]wFMCommunicate OK [11:51:34]wFMCommunicate request_size=10 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 0D 02 02 05 96 61 A8 70 60 [11:51:34]Write to MH i2c: E2 0D 00 5D 46 80 0D 02 02 05 00 96 61 A8 70 60 00 00 96 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 03 00 5D 46 00 90 00 17 [11:51:34]RAPDU: 90 00 [11:51:34]wFMCommunicate OK [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 0D 03 02 [11:51:34]Write to MH i2c: E2 08 00 5E 46 80 0D 03 02 00 00 00 00 1F [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 0B 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 0B 00 5E 46 00 A9 77 F9 64 99 53 8C 0B 90 00 20 [11:51:34]RAPDU: A9 77 F9 64 99 53 8C 0B 90 00 [11:51:34]wFMCommunicate OK [11:51:34]SAM_PROTO_SignData done [11:51:34]FM_MakeSignedData done [11:51:34]CreateOFDProtocolMessage [11:51:34]wFMCommunicate request_size=4 [11:51:34]MH_SAM_APDU [11:51:34]CAPDU: 80 11 00 00 [11:51:34]Write to MH i2c: E2 08 00 5F 46 80 11 00 00 00 00 00 00 1F [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:34]Read from MH i2c: E2 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 17 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: E2 17 00 5F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [11:51:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:51:34]wFMCommunicate OK [11:51:34]CreateOFDProtocolMessage done [11:51:34]OFDSenderStorePacket 165988 [11:51:34]StoreOFDPacket docnum=165988 [11:51:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 A7 07 01 F6 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 40 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 88 02 00 35 04 06 00 C8 96 61 A8 70 60 A9 77 F9 64 99 53 8C 0B [11:51:34]CheckFolder [11:51:34]dirname=/storage/ofd_packets [11:51:34]CheckFolder done [11:51:34]ProducePacketName [11:51:34]name=ofd_packets/00165988 [11:51:34]NVStorageSaveData ofd_packets/00165988 [11:51:34]File name is /storage/ofd_packets/00165988 [11:51:34]Write 301 bytes [11:51:34]NVStorageSaveData done [11:51:34]OFDSenderStorePacket done [11:51:34]KKMCreateOFDPacket done [11:51:34]NVStorageSaveData kkm_last_timestamp [11:51:34]File name is /storage/kkm_last_timestamp [11:51:34]Write 4 bytes [11:51:34]NVStorageSaveData done [11:51:34]ExternCall_PrintAddStr [11:51:34]wPrintStart [11:51:34]Write to MH i2c: 01 00 00 60 46 A6 [11:51:34]Write i2c OK [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: 01 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: 01 07 00 [11:51:34]MH_I2C_Read... [11:51:34]Read from MH i2c: 01 07 00 60 46 00 00 00 00 00 FF 0F BB [11:51:34]RasterBufferAndPrint [11:51:34]line Счет N : (1)220558 [11:51:34]line ИНН: 02508201610067 [11:51:34]line Контрольно-Кассовый Чек [11:51:34]line ПРОДАЖА [11:51:34]line ТРК (МРК, ГНК) : 23 [11:51:34]line Товар: 2710124130 [11:51:34]line Аи-92-К-5 [11:51:34]line 14.950 * 66.90 [11:51:34]line = 1000.16 [11:51:34]line НДС 12% НСП 1% [11:51:34]line > о реализуемом товаре [11:51:34]line ИТОГО: 1000.16 [11:51:34]line НСП 1% : 8.85 [11:51:34]line НДС 12% : 106.21 [11:51:34]line Наличными: 0.00 [11:51:34]line Безнал.: 1000.16 [11:51:34]line Место: АЗС № 161 "Партнер Нефть" [11:51:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:51:34]line СНО: Общий режим [11:51:34]line Чек 99 21.10.2024 11:51 [11:51:34]line Смена: 535 ФФД: 1.0 [11:51:34]line ЗНМ: 0300000104 [11:51:34]line РНМ: 0000000000091764 [11:51:34]line Версия ККМ: 001 [11:51:34]line Платежная система: Mbank [11:51:34]line ФМ: 0000000000871759 [11:51:34]line ФД: 165988 [11:51:34]line ФПД: 220548209078368 [11:51:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115151&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165988&fm=220548209078368&tin=02508201610067®Number=0000000000091764&sum=100016 [11:51:35]OFD Sender: Processing packet 165988 [packets to send 48, broken 47] [11:51:35]ProducePacketName [11:51:35]name=ofd_packets/00165988 [11:51:35]OFD Sender: To server: pG, [11:51:35]CommunicateWithHost lk.salyk.kg:30040 [11:51:35]ConnectInit lk.salyk.kg [11:51:35]written 0, free lines is 4095 [11:51:35]Connected sock=7 [11:51:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 A7 07 01 F6 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 57 40 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 88 02 00 35 04 06 00 C8 96 61 A8 70 60 A9 77 F9 64 99 53 8C 0B [11:51:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F0 33 47 00 EA 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 88 02 00 F4 03 04 00 C5 E6 15 67 B6 04 01 00 00 3C 88 86 D9 D1 6F 7D D7 [11:51:35]CommunicateWithHost err = 0 [11:51:35]CheckOFDResponse [11:51:35]1017 (14) - 77093643461234 [11:51:35]1041 (16) - 0000000000871759 [11:51:35]1040 (4) - 165988 [11:51:35]1012 (4) - 21.10.2024 05:29 [11:51:35]1206 (1) - 0 [11:51:35]OFD Sender: Remove packet 165988 [11:51:35]ProducePacketName [11:51:35]name=ofd_packets/00165988 [11:51:35]NVStorageDeleteData [11:51:35]Write to MH i2c: 01 00 00 89 46 CF [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 89 46 00 00 00 00 00 F2 0C D4 [11:51:35]RasterBufferAndPrint [11:51:35]line [11:51:35]line [11:51:35]line [11:51:35]line [11:51:35]line [11:51:35]written 0, free lines is 3320 [11:51:35]MH_Cut [11:51:35]Write to MH i2c: D1 01 00 90 46 01 A8 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: D1 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: D1 01 00 [11:51:35]MH_I2C_Read... [11:51:35]Read from MH i2c: D1 01 00 90 46 00 A7 [11:51:35]Write to MH i2c: 01 00 00 91 46 D7 [11:51:35]Write i2c OK [11:51:35]MH_I2C_Read... [11:51:35]OFD Sender: No OFD packet to send [11:51:36]*** Cut start [11:51:36]*** Partial cut [11:51:36]*** CUTSNS_PIN = 1 [11:51:36]*** CUTSNS_PIN = 0 [11:51:36]*** Brake cut motor [11:51:36]Read from MH i2c: 01 [11:51:37]MH_I2C_Read... [11:51:37]*** Stop cut motor [11:51:37]*** Cut end [11:51:37]Read from MH i2c: 01 07 00 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: 01 07 00 91 46 00 00 00 00 00 FF 0F EC [11:51:37]process_action close_receipt done [11:51:37]requested_data is exist [11:51:37]produce_requested_data [11:51:37]requested_item fm.sn is exist - process it [11:51:37]wFMCommunicate request_size=4 [11:51:37]MH_SAM_APDU [11:51:37]CAPDU: 80 11 00 00 [11:51:37]Write to MH i2c: E2 08 00 92 46 80 11 00 00 00 00 00 00 52 [11:51:37]Write i2c OK [11:51:37]MH_I2C_Read... [11:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:37]Read from MH i2c: E2 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 17 00 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 17 00 92 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [11:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:51:37]wFMCommunicate OK [11:51:37]requested_item fd.num is exist - process it [11:51:37]SAM_PROTO_GetFieldsCounters [11:51:37]wFMCommunicate request_size=4 [11:51:37]MH_SAM_APDU [11:51:37]CAPDU: 80 13 00 00 [11:51:37]Write to MH i2c: E2 08 00 93 46 80 13 00 00 00 00 00 00 55 [11:51:37]Write i2c OK [11:51:37]MH_I2C_Read... [11:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:37]Read from MH i2c: E2 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 62 00 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 62 00 93 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:37]wFMCommunicate OK [11:51:37]SAM_PROTO_GetFieldsCounters done [11:51:37]requested_item shift.num is exist - process it [11:51:37]requested_item shift.opened is exist - process it [11:51:37]req_shift_opened [11:51:37]FM_GetShiftState [11:51:37]SAM_PROTO_GetShiftState [11:51:37]wFMCommunicate request_size=4 [11:51:37]MH_SAM_APDU [11:51:37]CAPDU: 80 13 01 00 [11:51:37]Write to MH i2c: E2 08 00 94 46 80 13 01 00 00 00 00 00 57 [11:51:37]Write i2c OK [11:51:37]MH_I2C_Read... [11:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:37]Read from MH i2c: E2 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 0E 00 [11:51:37]MH_I2C_Read... [11:51:37]Read from MH i2c: E2 0E 00 94 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 60 [11:51:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:51:37]wFMCommunicate OK [11:51:37]SAM_PROTO_GetShiftState done [11:51:37]FM_GetShiftState done [11:51:37]req_shift_opened done [11:51:37]requested_item shift.open_date is exist - process it [11:51:37]req_shift_open_date [11:51:37]req_shift_open_date done [11:51:37]produce_requested_data done [11:51:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165988,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:51:37]process_action_free close_receipt [11:51:37]json_value_free [11:51:37]json_value_free done [11:51:37]process_json_proto returns [11:51:37]Send response to host [11:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165988,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:51:37]free response buf [11:51:37]execute_script done [11:51:37]execute_script returns [11:51:37]free content buf [11:51:37]Sock 5.Close socket [11:51:37]Sock 5.Thread stoped [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:11]OFD Sender: No OFD packet to send [11:52:16]OFD Sender: No OFD packet to send [11:52:21]OFD Sender: No OFD packet to send [11:52:26]OFD Sender: No OFD packet to send [11:52:31]OFD Sender: No OFD packet to send [11:52:36]OFD Sender: No OFD packet to send [11:52:41]OFD Sender: No OFD packet to send [11:52:46]OFD Sender: No OFD packet to send [11:52:51]OFD Sender: No OFD packet to send [11:52:56]OFD Sender: No OFD packet to send [11:53:01]OFD Sender: No OFD packet to send [11:53:06]OFD Sender: No OFD packet to send [11:53:11]OFD Sender: No OFD packet to send [11:53:16]OFD Sender: No OFD packet to send [11:53:21]OFD Sender: No OFD packet to send [11:53:26]OFD Sender: No OFD packet to send [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:19]accept exits with 6 [11:56:19]New connection [11:56:19]New thread 3066776932 created [11:56:19]Thread 3066920292 joined [11:56:19]Waiting for new connection... [11:56:19] Sock 6.Parse request [11:56:19]Sock 6.Check first char [11:56:19]Sock 6.First char is OK [11:56:19]request: POST /json_proto HTTP/1.0 [11:56:19]Method: POST [11:56:19]URL: /json_proto [11:56:19]Method is POST - this is cgi request [11:56:19]url: /json_proto [11:56:19]query_string will be loaded in cgi processing [11:56:19]execute_cgi json_proto POST (null) [11:56:19]execute_cgi path=json_proto method=POST [11:56:19]POST find Content-Length [11:56:19]Host: 172.17.53.195:8080 [11:56:19]Content-Length: 678 [11:56:19]Content-Type: application/json [11:56:19] [11:56:19]POST finish read [11:56:19]Found Content-Length = 678 [11:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:19]execute_script... [11:56: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)220559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:19]POST & json_proto [11:56:19]process_json_proto [11:56:19]json parsed OK: [11:56:19]protocol is kg_v1.0 [11:56:19]action value=close_receipt [11:56:19]process_action close_receipt [11:56:19]cmd_close_receipt [11:56:19]MH_GetDate [11:56:19]Write to MH i2c: F0 00 00 95 46 CA [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: F0 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: F0 09 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: F0 09 00 95 46 00 75 41 16 67 21 48 4A 65 1E [11:56:19]GetLastDocTimeStamp 1729511511 [11:56:19]current date 1729511797 [11:56:19]FM_GetShiftState [11:56:19]SAM_PROTO_GetShiftState [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 13 01 00 [11:56:19]Write to MH i2c: E2 08 00 96 46 80 13 01 00 00 00 00 00 59 [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0E 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0E 00 96 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 62 [11:56:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:56:19]wFMCommunicate OK [11:56:19]SAM_PROTO_GetShiftState done [11:56:19]FM_GetShiftState done [11:56:19]opened in 1729470944 [11:56:19]opened+sec_in_day 1729557344 [11:56:19]quantity*price = 67033 [11:56:19]sum+1 = 67035 [11:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 100 21.10.2024 11:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165989 ФПД: 179520172705565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115637&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165989&fm=179520172705565&tin=02508201610067®Number=0000000000091764&sum=67000 [11:56:20]StoreToDocumentArchive [11:56:20]shift 535 fd 165989 [11:56:20]save to /storage/0535/doc_00165989 [11:56:20]save last doc name /storage/0535/doc_00165989 to /storage/kkm_last_doc_name [11:56:20]save OK [11:56:20]Clear old archive folders... [11:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:20]tlvbuf is 015E9BE0 [11:56:20]SAM_PROTO_ClearQueue [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 09 00 00 [11:56:20]Write to MH i2c: E2 08 00 A3 46 80 09 00 00 00 00 00 00 5B [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 A3 46 00 90 00 5D [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]SAM_PROTO_ClearQueue done [11:56:20]KKMCreateOFDPacket [11:56:20]OFDProtocolAddRootSTLVToBuf [11:56:20]FM_MakeSignedData [11:56:20]FM_MakeSignedData [11:56:20]SAM_PROTO_SignData [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 01 02 [11:56:20]Write to MH i2c: E2 08 00 A4 46 80 0D 01 02 00 00 00 00 63 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 A4 46 00 90 00 5E [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=255 [11:56:20]MH_SAM_APDU [11:56: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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 75 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 88 02 00 35 04 06 00 A3 [11:56:20]Write to MH i2c: E2 02 01 A5 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 75 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 88 02 00 35 04 06 00 A3 00 00 D6 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 A5 46 00 90 00 5F [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=10 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 02 02 05 45 CC 1F C7 1D [11:56:20]Write to MH i2c: E2 0D 00 A6 46 80 0D 02 02 05 00 45 CC 1F C7 1D 00 00 84 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 03 00 A6 46 00 90 00 60 [11:56:20]RAPDU: 90 00 [11:56:20]wFMCommunicate OK [11:56:20]wFMCommunicate request_size=4 [11:56:20]MH_SAM_APDU [11:56:20]CAPDU: 80 0D 03 02 [11:56:20]Write to MH i2c: E2 08 00 A7 46 80 0D 03 02 00 00 00 00 68 [11:56:20]Write i2c OK [11:56:20]MH_I2C_Read... [11:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:20]Read from MH i2c: E2 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0B 00 [11:56:20]MH_I2C_Read... [11:56:20]Read from MH i2c: E2 0B 00 A7 46 00 2A 13 62 DB 28 93 4F 11 90 00 FE [11:56:20]RAPDU: 2A 13 62 DB 28 93 4F 11 90 00 [11:56:20]wFMCommunicate OK [11:56:21]SAM_PROTO_SignData done [11:56:21]FM_MakeSignedData done [11:56:21]CreateOFDProtocolMessage [11:56:21]wFMCommunicate request_size=4 [11:56:21]MH_SAM_APDU [11:56:21]CAPDU: 80 11 00 00 [11:56:21]Write to MH i2c: E2 08 00 A8 46 80 11 00 00 00 00 00 00 68 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:21]Read from MH i2c: E2 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 17 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: E2 17 00 A8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [11:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:56:21]wFMCommunicate OK [11:56:21]CreateOFDProtocolMessage done [11:56:21]OFDSenderStorePacket 165989 [11:56:21]StoreOFDPacket docnum=165989 [11:56:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 0C 07 01 04 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 75 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 88 02 00 35 04 06 00 A3 45 CC 1F C7 1D 2A 13 62 DB 28 93 4F 11 [11:56:21]CheckFolder [11:56:21]dirname=/storage/ofd_packets [11:56:21]CheckFolder done [11:56:21]ProducePacketName [11:56:21]name=ofd_packets/00165989 [11:56:21]NVStorageSaveData ofd_packets/00165989 [11:56:21]File name is /storage/ofd_packets/00165989 [11:56:21]Write 301 bytes [11:56:21]NVStorageSaveData done [11:56:21]OFDSenderStorePacket done [11:56:21]KKMCreateOFDPacket done [11:56:21]NVStorageSaveData kkm_last_timestamp [11:56:21]File name is /storage/kkm_last_timestamp [11:56:21]Write 4 bytes [11:56:21]NVStorageSaveData done [11:56:21]ExternCall_PrintAddStr [11:56:21]wPrintStart [11:56:21]Write to MH i2c: 01 00 00 A9 46 EF [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 A9 46 00 00 00 00 00 FF 0F 04 [11:56:21]RasterBufferAndPrint [11:56:21]line Счет N : (1)220559 [11:56:21]line ИНН: 02508201610067 [11:56:21]line Контрольно-Кассовый Чек [11:56:21]line ПРОДАЖА [11:56:21]line ТРК (МРК, ГНК) : 23 [11:56:21]line Товар: 2710124130 [11:56:21]line Аи-92-К-5 [11:56:21]line 10.020 * 66.90 [11:56:21]line = 670.34 [11:56:21]line НДС 12% НСП 1% [11:56:21]line > о реализуемом товаре [11:56:21]line ОКРУГЛЕНИЕ: -0.34 [11:56:21]line ИТОГО: 670.00 [11:56:21]line Внесено: 670.00 [11:56:21]line СДАЧА: 0.00 [11:56:21]line НСП 1% : 5.93 [11:56:21]line НДС 12% : 71.19 [11:56:21]line Наличными: 670.00 [11:56:21]line Безнал.: 0.00 [11:56:21]line Место: АЗС № 161 "Партнер Нефть" [11:56:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:56:21]line СНО: Общий режим [11:56:21]line Чек 100 21.10.2024 11:56 [11:56:21]line Смена: 535 ФФД: 1.0 [11:56:21]line ЗНМ: 0300000104 [11:56:21]line РНМ: 0000000000091764 [11:56:21]line Версия ККМ: 001 [11:56:21]line ФМ: 0000000000871759 [11:56:21]line ФД: 165989 [11:56:21]line ФПД: 179520172705565 [11:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115637&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165989&fm=179520172705565&tin=02508201610067®Number=0000000000091764&sum=67000 [11:56:21]OFD Sender: Processing packet 165989 [packets to send 48, broken 47] [11:56:21]ProducePacketName [11:56:21]name=ofd_packets/00165989 [11:56:21]OFD Sender: To server: pG, [11:56:21]CommunicateWithHost lk.salyk.kg:30040 [11:56:21]ConnectInit lk.salyk.kg [11:56:21]written 0, free lines is 4095 [11:56:21]Connected sock=7 [11:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 0C 07 01 04 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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 75 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 88 02 00 35 04 06 00 A3 45 CC 1F C7 1D 2A 13 62 DB 28 93 4F 11 [11:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0C C5 47 00 49 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 88 02 00 F4 03 04 00 E3 E7 15 67 B6 04 01 00 00 5B 39 FD CE CA E2 FB 87 [11:56:21]CommunicateWithHost err = 0 [11:56:21]CheckOFDResponse [11:56:21]1017 (14) - 77093643461234 [11:56:21]1041 (16) - 0000000000871759 [11:56:21]1040 (4) - 165989 [11:56:21]1012 (4) - 21.10.2024 05:34 [11:56:21]1206 (1) - 0 [11:56:21]OFD Sender: Remove packet 165989 [11:56:21]ProducePacketName [11:56:21]name=ofd_packets/00165989 [11:56:21]NVStorageDeleteData [11:56:21]Write to MH i2c: 01 00 00 D4 46 1A [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: 01 07 00 D4 46 00 00 00 00 00 D1 0C FE [11:56:21]RasterBufferAndPrint [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]line [11:56:21]written 0, free lines is 3288 [11:56:21]MH_Cut [11:56:21]Write to MH i2c: D1 01 00 DB 46 01 F3 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 01 00 [11:56:21]MH_I2C_Read... [11:56:21]Read from MH i2c: D1 01 00 DB 46 00 F2 [11:56:21]Write to MH i2c: 01 00 00 DC 46 22 [11:56:21]Write i2c OK [11:56:21]MH_I2C_Read... [11:56:22]OFD Sender: No OFD packet to send [11:56:22]*** Cut start [11:56:22]*** Partial cut [11:56:22]*** CUTSNS_PIN = 1 [11:56:22]*** CUTSNS_PIN = 0 [11:56:22]*** Brake cut motor [11:56:23]Read from MH i2c: 01 [11:56:23]MH_I2C_Read... [11:56:23]*** Stop cut motor [11:56:23]*** Cut end [11:56:23]Read from MH i2c: 01 07 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: 01 07 00 DC 46 00 00 00 00 00 FF 0F 37 [11:56:23]process_action close_receipt done [11:56:23]requested_data is exist [11:56:23]produce_requested_data [11:56:23]requested_item fm.sn is exist - process it [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 11 00 00 [11:56:23]Write to MH i2c: E2 08 00 DD 46 80 11 00 00 00 00 00 00 9D [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 17 00 DD 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [11:56:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:56:23]wFMCommunicate OK [11:56:23]requested_item fd.num is exist - process it [11:56:23]SAM_PROTO_GetFieldsCounters [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 13 00 00 [11:56:23]Write to MH i2c: E2 08 00 DE 46 80 13 00 00 00 00 00 00 A0 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 62 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 62 00 DE 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [11:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_GetFieldsCounters done [11:56:23]requested_item shift.num is exist - process it [11:56:23]requested_item shift.opened is exist - process it [11:56:23]req_shift_opened [11:56:23]FM_GetShiftState [11:56:23]SAM_PROTO_GetShiftState [11:56:23]wFMCommunicate request_size=4 [11:56:23]MH_SAM_APDU [11:56:23]CAPDU: 80 13 01 00 [11:56:23]Write to MH i2c: E2 08 00 DF 46 80 13 01 00 00 00 00 00 A2 [11:56:23]Write i2c OK [11:56:23]MH_I2C_Read... [11:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:23]Read from MH i2c: E2 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0E 00 [11:56:23]MH_I2C_Read... [11:56:23]Read from MH i2c: E2 0E 00 DF 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AB [11:56:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:56:23]wFMCommunicate OK [11:56:23]SAM_PROTO_GetShiftState done [11:56:23]FM_GetShiftState done [11:56:23]req_shift_opened done [11:56:23]requested_item shift.open_date is exist - process it [11:56:23]req_shift_open_date [11:56:23]req_shift_open_date done [11:56:23]produce_requested_data done [11:56:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165989,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:56:23]process_action_free close_receipt [11:56:23]json_value_free [11:56:23]json_value_free done [11:56:23]process_json_proto returns [11:56:23]Send response to host [11:56:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165989,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:56:23]free response buf [11:56:23]execute_script done [11:56:23]execute_script returns [11:56:23]free content buf [11:56:23]Sock 6.Close socket [11:56:23]Sock 6.Thread stoped [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:16]accept exits with 5 [11:57:16]New connection [11:57:16]New thread 3066920292 created [11:57:16]Thread 3066776932 joined [11:57:16]Waiting for new connection... [11:57:16] Sock 5.Parse request [11:57:16]Sock 5.Check first char [11:57:16]Sock 5.First char is OK [11:57:16]request: POST /json_proto HTTP/1.0 [11:57:16]Method: POST [11:57:16]URL: /json_proto [11:57:16]Method is POST - this is cgi request [11:57:16]url: /json_proto [11:57:16]query_string will be loaded in cgi processing [11:57:16]execute_cgi json_proto POST (null) [11:57:16]execute_cgi path=json_proto method=POST [11:57:16]POST find Content-Length [11:57:16]Host: 172.17.53.195:8080 [11:57:16]Content-Length: 677 [11:57:16]Content-Type: application/json [11:57:16] [11:57:16]POST finish read [11:57:16]Found Content-Length = 677 [11:57:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:16]execute_script... [11:57: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)220560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:16]POST & json_proto [11:57:16]process_json_proto [11:57:16]json parsed OK: [11:57:16]protocol is kg_v1.0 [11:57:16]action value=close_receipt [11:57:16]process_action close_receipt [11:57:16]cmd_close_receipt [11:57:16]MH_GetDate [11:57:16]Write to MH i2c: F0 00 00 E0 46 15 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: F0 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: F0 09 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: F0 09 00 E0 46 00 AE 41 16 67 21 48 4A 65 A2 [11:57:16]GetLastDocTimeStamp 1729511797 [11:57:16]current date 1729511854 [11:57:16]FM_GetShiftState [11:57:16]SAM_PROTO_GetShiftState [11:57:16]wFMCommunicate request_size=4 [11:57:16]MH_SAM_APDU [11:57:16]CAPDU: 80 13 01 00 [11:57:16]Write to MH i2c: E2 08 00 E1 46 80 13 01 00 00 00 00 00 A4 [11:57:16]Write i2c OK [11:57:16]MH_I2C_Read... [11:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:16]Read from MH i2c: E2 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0E 00 [11:57:16]MH_I2C_Read... [11:57:16]Read from MH i2c: E2 0E 00 E1 46 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AD [11:57:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:57:16]wFMCommunicate OK [11:57:16]SAM_PROTO_GetShiftState done [11:57:16]FM_GetShiftState done [11:57:16]opened in 1729470944 [11:57:16]opened+sec_in_day 1729557344 [11:57:16]quantity*price = 50041 [11:57:16]sum+1 = 50042 [11:57:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 101 21.10.2024 11:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165990 ФПД: 11383575684909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115734&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165990&fm=11383575684909&tin=02508201610067®Number=0000000000091764&sum=50000 [11:57:18]StoreToDocumentArchive [11:57:18]shift 535 fd 165990 [11:57:18]save to /storage/0535/doc_00165990 [11:57:18]save last doc name /storage/0535/doc_00165990 to /storage/kkm_last_doc_name [11:57:18]save OK [11:57:18]Clear old archive folders... [11:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:18]tlvbuf is 0184C3B0 [11:57:18]SAM_PROTO_ClearQueue [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 09 00 00 [11:57:18]Write to MH i2c: E2 08 00 EE 46 80 09 00 00 00 00 00 00 A6 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 EE 46 00 90 00 A8 [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_ClearQueue done [11:57:18]KKMCreateOFDPacket [11:57:18]OFDProtocolAddRootSTLVToBuf [11:57:18]FM_MakeSignedData [11:57:18]FM_MakeSignedData [11:57:18]SAM_PROTO_SignData [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 01 02 [11:57:18]Write to MH i2c: E2 08 00 EF 46 80 0D 01 02 00 00 00 00 AE [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 EF 46 00 90 00 A9 [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=255 [11:57:18]MH_SAM_APDU [11:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 88 02 00 35 04 06 00 0A [11:57:18]Write to MH i2c: E2 02 01 F0 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 88 02 00 35 04 06 00 0A 00 00 28 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 F0 46 00 90 00 AA [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=10 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 02 02 05 5A 71 FC 27 2D [11:57:18]Write to MH i2c: E2 0D 00 F1 46 80 0D 02 02 05 00 5A 71 FC 27 2D 00 00 D6 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 F1 46 00 90 00 AB [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 03 02 [11:57:18]Write to MH i2c: E2 08 00 F2 46 80 0D 03 02 00 00 00 00 B3 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0B 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0B 00 F2 46 00 92 16 5D 1B 95 3A D5 4D 90 00 C5 [11:57:18]RAPDU: 92 16 5D 1B 95 3A D5 4D 90 00 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_SignData done [11:57:18]FM_MakeSignedData done [11:57:18]CreateOFDProtocolMessage [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 11 00 00 [11:57:18]Write to MH i2c: E2 08 00 F3 46 80 11 00 00 00 00 00 00 B3 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 F3 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [11:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:18]wFMCommunicate OK [11:57:18]CreateOFDProtocolMessage done [11:57:18]OFDSenderStorePacket 165990 [11:57:18]StoreOFDPacket docnum=165990 [11:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 F9 07 01 D6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 88 02 00 35 04 06 00 0A 5A 71 FC 27 2D 92 16 5D 1B 95 3A D5 4D [11:57:18]CheckFolder [11:57:18]dirname=/storage/ofd_packets [11:57:18]CheckFolder done [11:57:18]ProducePacketName [11:57:18]name=ofd_packets/00165990 [11:57:18]NVStorageSaveData ofd_packets/00165990 [11:57:18]File name is /storage/ofd_packets/00165990 [11:57:18]Write 301 bytes [11:57:18]NVStorageSaveData done [11:57:18]OFDSenderStorePacket done [11:57:18]KKMCreateOFDPacket done [11:57:18]NVStorageSaveData kkm_last_timestamp [11:57:18]File name is /storage/kkm_last_timestamp [11:57:18]Write 4 bytes [11:57:18]NVStorageSaveData done [11:57:18]ExternCall_PrintAddStr [11:57:18]wPrintStart [11:57:18]Write to MH i2c: 01 00 00 F4 46 3A [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 F4 46 00 00 00 00 00 FF 0F 4F [11:57:18]RasterBufferAndPrint [11:57:18]line Счет N : (1)220560 [11:57:18]line ИНН: 02508201610067 [11:57:18]line Контрольно-Кассовый Чек [11:57:18]line ПРОДАЖА [11:57:18]line ТРК (МРК, ГНК) : 23 [11:57:18]line Товар: 2710124130 [11:57:18]line Аи-92-К-5 [11:57:18]line 7.480 * 66.90 [11:57:18]line = 500.41 [11:57:18]line НДС 12% НСП 1% [11:57:18]line > о реализуемом товаре [11:57:18]line ОКРУГЛЕНИЕ: -0.41 [11:57:18]line ИТОГО: 500.00 [11:57:18]line Внесено: 500.00 [11:57:18]line СДАЧА: 0.00 [11:57:18]line НСП 1% : 4.43 [11:57:18]line НДС 12% : 53.14 [11:57:18]line Наличными: 500.00 [11:57:18]line Безнал.: 0.00 [11:57:18]line Место: АЗС № 161 "Партнер Нефть" [11:57:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:57:18]line СНО: Общий режим [11:57:18]line Чек 101 21.10.2024 11:57 [11:57:18]line Смена: 535 ФФД: 1.0 [11:57:18]line ЗНМ: 0300000104 [11:57:18]line РНМ: 0000000000091764 [11:57:18]line Версия ККМ: 001 [11:57:18]line ФМ: 0000000000871759 [11:57:18]line ФД: 165990 [11:57:18]line ФПД: 11383575684909 [11:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115734&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165990&fm=11383575684909&tin=02508201610067®Number=0000000000091764&sum=50000 [11:57:18]OFD Sender: Processing packet 165990 [packets to send 48, broken 47] [11:57:18]ProducePacketName [11:57:18]name=ofd_packets/00165990 [11:57:18]OFD Sender: To server: pG, [11:57:18]CommunicateWithHost lk.salyk.kg:30040 [11:57:18]ConnectInit lk.salyk.kg [11:57:18]written 0, free lines is 4095 [11:57:19]Connected sock=6 [11:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 06 F9 07 01 D6 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 AE 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 88 02 00 35 04 06 00 0A 5A 71 FC 27 2D 92 16 5D 1B 95 3A D5 4D [11:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5B 43 47 00 49 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 88 02 00 F4 03 04 00 1D E8 15 67 B6 04 01 00 00 F3 41 49 AB E3 33 CB E5 [11:57:19]CommunicateWithHost err = 0 [11:57:19]CheckOFDResponse [11:57:19]1017 (14) - 77093643461234 [11:57:19]1041 (16) - 0000000000871759 [11:57:19]1040 (4) - 165990 [11:57:19]1012 (4) - 21.10.2024 05:35 [11:57:19]1206 (1) - 0 [11:57:19]OFD Sender: Remove packet 165990 [11:57:19]ProducePacketName [11:57:19]name=ofd_packets/00165990 [11:57:19]NVStorageDeleteData [11:57:19]Write to MH i2c: 01 00 00 1F 47 66 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 1F 47 00 00 00 00 00 D4 0C 4D [11:57:19]RasterBufferAndPrint [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]written 0, free lines is 3293 [11:57:19]MH_Cut [11:57:19]Write to MH i2c: D1 01 00 26 47 01 3F [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 01 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 01 00 26 47 00 3E [11:57:19]Write to MH i2c: 01 00 00 27 47 6E [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]OFD Sender: No OFD packet to send [11:57:20]*** Cut start [11:57:20]*** Partial cut [11:57:20]*** CUTSNS_PIN = 1 [11:57:20]*** CUTSNS_PIN = 0 [11:57:20]*** Brake cut motor [11:57:20]Read from MH i2c: 01 [11:57:20]MH_I2C_Read... [11:57:20]*** Stop cut motor [11:57:20]*** Cut end [11:57:20]Read from MH i2c: 01 07 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: 01 07 00 27 47 00 00 00 00 00 FF 0F 83 [11:57:20]process_action close_receipt done [11:57:20]requested_data is exist [11:57:20]produce_requested_data [11:57:20]requested_item fm.sn is exist - process it [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 11 00 00 [11:57:20]Write to MH i2c: E2 08 00 28 47 80 11 00 00 00 00 00 00 E9 [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 28 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [11:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:20]wFMCommunicate OK [11:57:20]requested_item fd.num is exist - process it [11:57:20]SAM_PROTO_GetFieldsCounters [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 00 00 [11:57:20]Write to MH i2c: E2 08 00 29 47 80 13 00 00 00 00 00 00 EC [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 62 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 62 00 29 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11:57:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:20]wFMCommunicate OK [11:57:20]SAM_PROTO_GetFieldsCounters done [11:57:20]requested_item shift.num is exist - process it [11:57:20]requested_item shift.opened is exist - process it [11:57:20]req_shift_opened [11:57:20]FM_GetShiftState [11:57:20]SAM_PROTO_GetShiftState [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 01 00 [11:57:20]Write to MH i2c: E2 08 00 2A 47 80 13 01 00 00 00 00 00 EE [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:21]Read from MH i2c: E2 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 0E 00 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 0E 00 2A 47 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F7 [11:57:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:57:21]wFMCommunicate OK [11:57:21]SAM_PROTO_GetShiftState done [11:57:21]FM_GetShiftState done [11:57:21]req_shift_opened done [11:57:21]requested_item shift.open_date is exist - process it [11:57:21]req_shift_open_date [11:57:21]req_shift_open_date done [11:57:21]produce_requested_data done [11:57:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165990,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:57:21]process_action_free close_receipt [11:57:21]json_value_free [11:57:21]json_value_free done [11:57:21]process_json_proto returns [11:57:21]Send response to host [11:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165990,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:57:21]free response buf [11:57:21]execute_script done [11:57:21]execute_script returns [11:57:21]free content buf [11:57:21]Sock 5.Close socket [11:57:21]Sock 5.Thread stoped [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:55]accept exits with 7 [11:57:55]New connection [11:57:55]New thread 3066776932 created [11:57:55]Thread 3066920292 joined [11:57:55]Waiting for new connection... [11:57:55] Sock 7.Parse request [11:57:55]Sock 7.Check first char [11:57:55]Sock 7.First char is OK [11:57:55]request: POST /json_proto HTTP/1.0 [11:57:55]Method: POST [11:57:55]URL: /json_proto [11:57:55]Method is POST - this is cgi request [11:57:55]url: /json_proto [11:57:55]query_string will be loaded in cgi processing [11:57:55]execute_cgi json_proto POST (null) [11:57:55]execute_cgi path=json_proto method=POST [11:57:55]POST find Content-Length [11:57:55]Host: 172.17.53.195:8080 [11:57:55]Content-Length: 682 [11:57:55]Content-Type: application/json [11:57:55] [11:57:55]POST finish read [11:57:55]Found Content-Length = 682 [11:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.020, "sum" : 1004.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1004.00, "payments": [ { "type": 0, "sum" : 1004.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:55]execute_script... [11:57: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)220562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.020, "sum" : 1004.84, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1005.00, "total" : 1004.00, "payments": [ { "type": 0, "sum" : 1004.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:55]POST & json_proto [11:57:55]process_json_proto [11:57:55]json parsed OK: [11:57:55]protocol is kg_v1.0 [11:57:55]action value=close_receipt [11:57:55]process_action close_receipt [11:57:55]cmd_close_receipt [11:57:55]MH_GetDate [11:57:55]Write to MH i2c: F0 00 00 2B 47 61 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: F0 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: F0 09 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: F0 09 00 2B 47 00 D5 41 16 67 21 48 4A 65 15 [11:57:55]GetLastDocTimeStamp 1729511854 [11:57:55]current date 1729511893 [11:57:55]FM_GetShiftState [11:57:55]SAM_PROTO_GetShiftState [11:57:55]wFMCommunicate request_size=4 [11:57:55]MH_SAM_APDU [11:57:55]CAPDU: 80 13 01 00 [11:57:55]Write to MH i2c: E2 08 00 2C 47 80 13 01 00 00 00 00 00 F0 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:55]Read from MH i2c: E2 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 0E 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: E2 0E 00 2C 47 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F9 [11:57:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:57:55]wFMCommunicate OK [11:57:55]SAM_PROTO_GetShiftState done [11:57:55]FM_GetShiftState done [11:57:55]opened in 1729470944 [11:57:55]opened+sec_in_day 1729557344 [11:57:55]quantity*price = 100483 [11:57:55]sum+1 = 100485 [11:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.84 ИТОГО: 1004.00 Внесено: 1005.00 СДАЧА: 1.00 НСП 1% : 8.89 НДС 12% : 106.71 Наличными: 1004.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 102 21.10.2024 11:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165991 ФПД: 229340755499295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165991&fm=229340755499295&tin=02508201610067®Number=0000000000091764&sum=100400 [11:57:56]StoreToDocumentArchive [11:57:56]shift 535 fd 165991 [11:57:56]save to /storage/0535/doc_00165991 [11:57:56]save last doc name /storage/0535/doc_00165991 to /storage/kkm_last_doc_name [11:57:56]save OK [11:57:56]Clear old archive folders... [11:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:56]tlvbuf is 0184BE30 [11:57:56]SAM_PROTO_ClearQueue [11:57:56]wFMCommunicate request_size=4 [11:57:56]MH_SAM_APDU [11:57:56]CAPDU: 80 09 00 00 [11:57:56]Write to MH i2c: E2 08 00 39 47 80 09 00 00 00 00 00 00 F2 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 39 47 00 90 00 F4 [11:57:56]RAPDU: 90 00 [11:57:56]wFMCommunicate OK [11:57:56]SAM_PROTO_ClearQueue done [11:57:56]KKMCreateOFDPacket [11:57:56]OFDProtocolAddRootSTLVToBuf [11:57:56]FM_MakeSignedData [11:57:56]FM_MakeSignedData [11:57:56]SAM_PROTO_SignData [11:57:56]wFMCommunicate request_size=4 [11:57:56]MH_SAM_APDU [11:57:56]CAPDU: 80 0D 01 02 [11:57:56]Write to MH i2c: E2 08 00 3A 47 80 0D 01 02 00 00 00 00 FA [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 3A 47 00 90 00 F5 [11:57:56]RAPDU: 90 00 [11:57:56]wFMCommunicate OK [11:57:56]wFMCommunicate request_size=255 [11:57:56]MH_SAM_APDU [11:57: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 AC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 84 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 29 00 00 00 00 07 04 06 00 30 88 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 D5 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 88 02 00 35 04 06 00 D0 [11:57:56]Write to MH i2c: E2 02 01 3B 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 AC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 84 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 29 00 00 00 00 07 04 06 00 30 88 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 D5 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 88 02 00 35 04 06 00 D0 00 00 D3 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 3B 47 00 90 00 F6 [11:57:56]RAPDU: 90 00 [11:57:56]wFMCommunicate OK [11:57:56]wFMCommunicate request_size=10 [11:57:56]MH_SAM_APDU [11:57:56]CAPDU: 80 0D 02 02 05 95 8E 43 99 1F [11:57:56]Write to MH i2c: E2 0D 00 3C 47 80 0D 02 02 05 00 95 8E 43 99 1F 00 00 25 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:56]Read from MH i2c: E2 03 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 03 00 3C 47 00 90 00 F7 [11:57:56]RAPDU: 90 00 [11:57:56]wFMCommunicate OK [11:57:56]wFMCommunicate request_size=4 [11:57:56]MH_SAM_APDU [11:57:56]CAPDU: 80 0D 03 02 [11:57:56]Write to MH i2c: E2 08 00 3D 47 80 0D 03 02 00 00 00 00 FF [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:56]Read from MH i2c: E2 0B 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 0B 00 3D 47 00 8B F6 BF A6 98 5B 62 66 90 00 A1 [11:57:56]RAPDU: 8B F6 BF A6 98 5B 62 66 90 00 [11:57:56]wFMCommunicate OK [11:57:56]SAM_PROTO_SignData done [11:57:56]FM_MakeSignedData done [11:57:56]CreateOFDProtocolMessage [11:57:56]wFMCommunicate request_size=4 [11:57:56]MH_SAM_APDU [11:57:56]CAPDU: 80 11 00 00 [11:57:56]Write to MH i2c: E2 08 00 3E 47 80 11 00 00 00 00 00 00 FF [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 17 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 17 00 3E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [11:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:56]wFMCommunicate OK [11:57:56]CreateOFDProtocolMessage done [11:57:56]OFDSenderStorePacket 165991 [11:57:56]StoreOFDPacket docnum=165991 [11:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 F1 07 01 2C C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 84 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 29 00 00 00 00 07 04 06 00 30 88 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 D5 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 88 02 00 35 04 06 00 D0 95 8E 43 99 1F 8B F6 BF A6 98 5B 62 66 [11:57:56]CheckFolder [11:57:56]dirname=/storage/ofd_packets [11:57:56]CheckFolder done [11:57:56]ProducePacketName [11:57:56]name=ofd_packets/00165991 [11:57:56]NVStorageSaveData ofd_packets/00165991 [11:57:56]File name is /storage/ofd_packets/00165991 [11:57:56]Write 301 bytes [11:57:56]NVStorageSaveData done [11:57:56]OFDSenderStorePacket done [11:57:56]KKMCreateOFDPacket done [11:57:56]NVStorageSaveData kkm_last_timestamp [11:57:56]File name is /storage/kkm_last_timestamp [11:57:56]Write 4 bytes [11:57:56]NVStorageSaveData done [11:57:56]ExternCall_PrintAddStr [11:57:56]wPrintStart [11:57:56]Write to MH i2c: 01 00 00 3F 47 86 [11:57:56]Write i2c OK [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: 01 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: 01 07 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: 01 07 00 3F 47 00 00 00 00 00 FF 0F 9B [11:57:56]RasterBufferAndPrint [11:57:56]line Счет N : (1)220562 [11:57:56]line ИНН: 02508201610067 [11:57:56]line Контрольно-Кассовый Чек [11:57:56]line ПРОДАЖА [11:57:56]line ТРК (МРК, ГНК) : 13 [11:57:56]line Товар: 2710124130 [11:57:56]line Аи-92-К-5 [11:57:56]line 15.020 * 66.90 [11:57:56]line = 1004.84 [11:57:56]line НДС 12% НСП 1% [11:57:56]line > о реализуемом товаре [11:57:56]line ОКРУГЛЕНИЕ: -0.84 [11:57:56]line ИТОГО: 1004.00 [11:57:56]line Внесено: 1005.00 [11:57:56]line СДАЧА: 1.00 [11:57:56]line НСП 1% : 8.89 [11:57:56]line НДС 12% : 106.71 [11:57:56]line Наличными: 1004.00 [11:57:56]line Безнал.: 0.00 [11:57:56]line Место: АЗС № 161 "Партнер Нефть" [11:57:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:57:56]line СНО: Общий режим [11:57:56]line Чек 102 21.10.2024 11:58 [11:57:56]line Смена: 535 ФФД: 1.0 [11:57:56]line ЗНМ: 0300000104 [11:57:56]line РНМ: 0000000000091764 [11:57:56]line Версия ККМ: 001 [11:57:56]line ФМ: 0000000000871759 [11:57:56]line ФД: 165991 [11:57:56]line ФПД: 229340755499295 [11:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115813&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165991&fm=229340755499295&tin=02508201610067®Number=0000000000091764&sum=100400 [11:57:57]OFD Sender: Processing packet 165991 [packets to send 48, broken 47] [11:57:57]ProducePacketName [11:57:57]name=ofd_packets/00165991 [11:57:57]OFD Sender: To server: pG, [11:57:57]CommunicateWithHost lk.salyk.kg:30040 [11:57:57]ConnectInit lk.salyk.kg [11:57:57]written 0, free lines is 4095 [11:57:57]Connected sock=6 [11:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 F1 07 01 2C C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 84 88 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 88 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 29 00 00 00 00 07 04 06 00 30 88 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 D5 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 88 02 00 35 04 06 00 D0 95 8E 43 99 1F 8B F6 BF A6 98 5B 62 66 [11:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D4 77 47 00 30 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 88 02 00 F4 03 04 00 43 E8 15 67 B6 04 01 00 00 0A 05 68 40 D5 A3 1A 14 [11:57:57]CommunicateWithHost err = 0 [11:57:57]CheckOFDResponse [11:57:57]1017 (14) - 77093643461234 [11:57:57]1041 (16) - 0000000000871759 [11:57:57]1040 (4) - 165991 [11:57:57]1012 (4) - 21.10.2024 05:36 [11:57:57]1206 (1) - 0 [11:57:57]OFD Sender: Remove packet 165991 [11:57:57]ProducePacketName [11:57:57]name=ofd_packets/00165991 [11:57:57]NVStorageDeleteData [11:57:57]Write to MH i2c: 01 00 00 6A 47 B1 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 6A 47 00 00 00 00 00 D3 0C 97 [11:57:57]RasterBufferAndPrint [11:57:57]line [11:57:57]line [11:57:57]line [11:57:57]line [11:57:57]line [11:57:57]written 0, free lines is 3292 [11:57:57]MH_Cut [11:57:57]Write to MH i2c: D1 01 00 71 47 01 8A [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: D1 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: D1 01 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: D1 01 00 71 47 00 89 [11:57:57]Write to MH i2c: 01 00 00 72 47 B9 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]OFD Sender: No OFD packet to send [11:57:58]*** Cut start [11:57:58]*** Partial cut [11:57:58]*** CUTSNS_PIN = 1 [11:57:58]*** CUTSNS_PIN = 0 [11:57:58]*** Brake cut motor [11:57:58]Read from MH i2c: 01 [11:57:58]MH_I2C_Read... [11:57:58]*** Stop cut motor [11:57:58]*** Cut end [11:57:58]Read from MH i2c: 01 07 00 [11:57:58]MH_I2C_Read... [11:57:59]Read from MH i2c: 01 07 00 72 47 00 00 00 00 00 FF 0F CE [11:57:59]process_action close_receipt done [11:57:59]requested_data is exist [11:57:59]produce_requested_data [11:57:59]requested_item fm.sn is exist - process it [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 11 00 00 [11:57:59]Write to MH i2c: E2 08 00 73 47 80 11 00 00 00 00 00 00 34 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 17 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 17 00 73 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [11:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:57:59]wFMCommunicate OK [11:57:59]requested_item fd.num is exist - process it [11:57:59]SAM_PROTO_GetFieldsCounters [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 13 00 00 [11:57:59]Write to MH i2c: E2 08 00 74 47 80 13 00 00 00 00 00 00 37 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 62 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 62 00 74 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:57:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:59]wFMCommunicate OK [11:57:59]SAM_PROTO_GetFieldsCounters done [11:57:59]requested_item shift.num is exist - process it [11:57:59]requested_item shift.opened is exist - process it [11:57:59]req_shift_opened [11:57:59]FM_GetShiftState [11:57:59]SAM_PROTO_GetShiftState [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 13 01 00 [11:57:59]Write to MH i2c: E2 08 00 75 47 80 13 01 00 00 00 00 00 39 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 0E 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 0E 00 75 47 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 42 [11:57:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:57:59]wFMCommunicate OK [11:57:59]SAM_PROTO_GetShiftState done [11:57:59]FM_GetShiftState done [11:57:59]req_shift_opened done [11:57:59]requested_item shift.open_date is exist - process it [11:57:59]req_shift_open_date [11:57:59]req_shift_open_date done [11:57:59]produce_requested_data done [11:57:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165991,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:57:59]process_action_free close_receipt [11:57:59]json_value_free [11:57:59]json_value_free done [11:57:59]process_json_proto returns [11:57:59]Send response to host [11:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165991,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:57:59]free response buf [11:57:59]execute_script done [11:57:59]execute_script returns [11:57:59]free content buf [11:57:59]Sock 7.Close socket [11:57:59]Sock 7.Thread stoped [11:58:00]accept exits with 5 [11:58:00]New connection [11:58:00]New thread 3066920292 created [11:58:00]Thread 3066776932 joined [11:58:00]Waiting for new connection... [11:58:00] Sock 5.Parse request [11:58:00]Sock 5.Check first char [11:58:00]Sock 5.First char is OK [11:58:00]request: POST /json_proto HTTP/1.0 [11:58:00]Method: POST [11:58:00]URL: /json_proto [11:58:00]Method is POST - this is cgi request [11:58:00]url: /json_proto [11:58:00]query_string will be loaded in cgi processing [11:58:00]execute_cgi json_proto POST (null) [11:58:00]execute_cgi path=json_proto method=POST [11:58:00]POST find Content-Length [11:58:00]Host: 172.17.53.195:8080 [11:58:00]Content-Length: 682 [11:58:00]Content-Type: application/json [11:58:00] [11:58:00]POST finish read [11:58:00]Found Content-Length = 682 [11:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:00]execute_script... [11:58: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)220561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:00]POST & json_proto [11:58:00]process_json_proto [11:58:00]json parsed OK: [11:58:00]protocol is kg_v1.0 [11:58:00]action value=close_receipt [11:58:00]process_action close_receipt [11:58:00]cmd_close_receipt [11:58:00]MH_GetDate [11:58:00]Write to MH i2c: F0 00 00 76 47 AC [11:58:00]Write i2c OK [11:58:00]MH_I2C_Read... [11:58:00]Read from MH i2c: F0 [11:58:00]MH_I2C_Read... [11:58:00]Read from MH i2c: F0 09 00 [11:58:00]MH_I2C_Read... [11:58:00]Read from MH i2c: F0 09 00 76 47 00 DA 41 16 67 21 48 4A 65 65 [11:58:00]GetLastDocTimeStamp 1729511893 [11:58:00]current date 1729511898 [11:58:00]FM_GetShiftState [11:58:00]SAM_PROTO_GetShiftState [11:58:00]wFMCommunicate request_size=4 [11:58:00]MH_SAM_APDU [11:58:00]CAPDU: 80 13 01 00 [11:58:00]Write to MH i2c: E2 08 00 77 47 80 13 01 00 00 00 00 00 3B [11:58:00]Write i2c OK [11:58:00]MH_I2C_Read... [11:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:00]Read from MH i2c: E2 [11:58:00]MH_I2C_Read... [11:58:00]Read from MH i2c: E2 0E 00 [11:58:00]MH_I2C_Read... [11:58:00]Read from MH i2c: E2 0E 00 77 47 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 44 [11:58:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:58:00]wFMCommunicate OK [11:58:00]SAM_PROTO_GetShiftState done [11:58:00]FM_GetShiftState done [11:58:00]opened in 1729470944 [11:58:00]opened+sec_in_day 1729557344 [11:58:00]quantity*price = 100015 [11:58:00]sum+1 = 100017 [11:58:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 103 21.10.2024 11:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165992 ФПД: 44372285997015 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115818&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165992&fm=44372285997015&tin=02508201610067®Number=0000000000091764&sum=100000 [11:58:01]StoreToDocumentArchive [11:58:01]shift 535 fd 165992 [11:58:01]save to /storage/0535/doc_00165992 [11:58:01]save last doc name /storage/0535/doc_00165992 to /storage/kkm_last_doc_name [11:58:01]save OK [11:58:01]Clear old archive folders... [11:58:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:01]tlvbuf is 018720E0 [11:58:01]SAM_PROTO_ClearQueue [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 09 00 00 [11:58:01]Write to MH i2c: E2 08 00 84 47 80 09 00 00 00 00 00 00 3D [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 84 47 00 90 00 3F [11:58:01]RAPDU: 90 00 [11:58:01]wFMCommunicate OK [11:58:01]SAM_PROTO_ClearQueue done [11:58:01]KKMCreateOFDPacket [11:58:01]OFDProtocolAddRootSTLVToBuf [11:58:01]FM_MakeSignedData [11:58:01]FM_MakeSignedData [11:58:01]SAM_PROTO_SignData [11:58:01]wFMCommunicate request_size=4 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 0D 01 02 [11:58:01]Write to MH i2c: E2 08 00 85 47 80 0D 01 02 00 00 00 00 45 [11:58:01]Write i2c OK [11:58:01]MH_I2C_Read... [11:58:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:01]Read from MH i2c: E2 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 [11:58:01]MH_I2C_Read... [11:58:01]Read from MH i2c: E2 03 00 85 47 00 90 00 40 [11:58:01]RAPDU: 90 00 [11:58:01]wFMCommunicate OK [11:58:01]wFMCommunicate request_size=255 [11:58:01]MH_SAM_APDU [11:58:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 DA 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 88 02 00 35 04 06 00 28 [11:58:01]Write to MH i2c: E2 02 01 86 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DA 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 88 02 00 35 04 06 00 28 00 00 07 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 03 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 03 00 86 47 00 90 00 41 [11:58:02]RAPDU: 90 00 [11:58:02]wFMCommunicate OK [11:58:02]wFMCommunicate request_size=10 [11:58:02]MH_SAM_APDU [11:58:02]CAPDU: 80 0D 02 02 05 5B 3A 58 3F D7 [11:58:02]Write to MH i2c: E2 0D 00 87 47 80 0D 02 02 05 00 5B 3A 58 3F D7 00 00 55 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 03 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 03 00 87 47 00 90 00 42 [11:58:02]RAPDU: 90 00 [11:58:02]wFMCommunicate OK [11:58:02]wFMCommunicate request_size=4 [11:58:02]MH_SAM_APDU [11:58:02]CAPDU: 80 0D 03 02 [11:58:02]Write to MH i2c: E2 08 00 88 47 80 0D 03 02 00 00 00 00 4A [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0B 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 0B 00 88 47 00 76 84 26 51 65 FC 83 CB 90 00 6B [11:58:02]RAPDU: 76 84 26 51 65 FC 83 CB 90 00 [11:58:02]wFMCommunicate OK [11:58:02]SAM_PROTO_SignData done [11:58:02]FM_MakeSignedData done [11:58:02]CreateOFDProtocolMessage [11:58:02]wFMCommunicate request_size=4 [11:58:02]MH_SAM_APDU [11:58:02]CAPDU: 80 11 00 00 [11:58:02]Write to MH i2c: E2 08 00 89 47 80 11 00 00 00 00 00 00 4A [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:02]Read from MH i2c: E2 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 17 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: E2 17 00 89 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A2 [11:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:58:02]wFMCommunicate OK [11:58:02]CreateOFDProtocolMessage done [11:58:02]OFDSenderStorePacket 165992 [11:58:02]StoreOFDPacket docnum=165992 [11:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 A5 07 01 A0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DA 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 88 02 00 35 04 06 00 28 5B 3A 58 3F D7 76 84 26 51 65 FC 83 CB [11:58:02]CheckFolder [11:58:02]dirname=/storage/ofd_packets [11:58:02]CheckFolder done [11:58:02]ProducePacketName [11:58:02]name=ofd_packets/00165992 [11:58:02]NVStorageSaveData ofd_packets/00165992 [11:58:02]File name is /storage/ofd_packets/00165992 [11:58:02]Write 301 bytes [11:58:02]NVStorageSaveData done [11:58:02]OFDSenderStorePacket done [11:58:02]KKMCreateOFDPacket done [11:58:02]NVStorageSaveData kkm_last_timestamp [11:58:02]File name is /storage/kkm_last_timestamp [11:58:02]Write 4 bytes [11:58:02]NVStorageSaveData done [11:58:02]ExternCall_PrintAddStr [11:58:02]wPrintStart [11:58:02]Write to MH i2c: 01 00 00 8A 47 D1 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 07 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 07 00 8A 47 00 00 00 00 00 FF 0F E6 [11:58:02]RasterBufferAndPrint [11:58:02]line Счет N : (1)220561 [11:58:02]line ИНН: 02508201610067 [11:58:02]line Контрольно-Кассовый Чек [11:58:02]line ПРОДАЖА [11:58:02]line ТРК (МРК, ГНК) : 33 [11:58:02]line Товар: 2710124130 [11:58:02]line Аи-92-К-5 [11:58:02]line 14.950 * 66.90 [11:58:02]line = 1000.16 [11:58:02]line НДС 12% НСП 1% [11:58:02]line > о реализуемом товаре [11:58:02]line ОКРУГЛЕНИЕ: -0.16 [11:58:02]line ИТОГО: 1000.00 [11:58:02]line Внесено: 1000.00 [11:58:02]line СДАЧА: 0.00 [11:58:02]line НСП 1% : 8.85 [11:58:02]line НДС 12% : 106.21 [11:58:02]line Наличными: 1000.00 [11:58:02]line Безнал.: 0.00 [11:58:02]line Место: АЗС № 161 "Партнер Нефть" [11:58:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [11:58:02]line СНО: Общий режим [11:58:02]line Чек 103 21.10.2024 11:58 [11:58:02]line Смена: 535 ФФД: 1.0 [11:58:02]line ЗНМ: 0300000104 [11:58:02]line РНМ: 0000000000091764 [11:58:02]line Версия ККМ: 001 [11:58:02]line ФМ: 0000000000871759 [11:58:02]line ФД: 165992 [11:58:02]line ФПД: 44372285997015 [11:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T115818&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165992&fm=44372285997015&tin=02508201610067®Number=0000000000091764&sum=100000 [11:58:02]written 0, free lines is 4095 [11:58:02]OFD Sender: Processing packet 165992 [packets to send 48, broken 47] [11:58:02]ProducePacketName [11:58:02]name=ofd_packets/00165992 [11:58:02]OFD Sender: To server: pG, [11:58:02]CommunicateWithHost lk.salyk.kg:30040 [11:58:02]ConnectInit lk.salyk.kg [11:58:02]Connected sock=7 [11:58:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 A5 07 01 A0 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 DA 41 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 88 02 00 35 04 06 00 28 5B 3A 58 3F D7 76 84 26 51 65 FC 83 CB [11:58:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE E6 47 00 34 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 88 02 00 F4 03 04 00 49 E8 15 67 B6 04 01 00 00 BC B3 21 D2 AC 95 63 55 [11:58:02]CommunicateWithHost err = 0 [11:58:02]CheckOFDResponse [11:58:02]1017 (14) - 77093643461234 [11:58:02]1041 (16) - 0000000000871759 [11:58:02]1040 (4) - 165992 [11:58:02]1012 (4) - 21.10.2024 05:36 [11:58:02]1206 (1) - 0 [11:58:02]OFD Sender: Remove packet 165992 [11:58:02]ProducePacketName [11:58:02]name=ofd_packets/00165992 [11:58:02]NVStorageDeleteData [11:58:02]Write to MH i2c: 01 00 00 B5 47 FC [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 07 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: 01 07 00 B5 47 00 00 00 00 00 DC 0C EB [11:58:02]RasterBufferAndPrint [11:58:02]line [11:58:02]line [11:58:02]line [11:58:02]line [11:58:02]line [11:58:02]written 0, free lines is 3308 [11:58:02]MH_Cut [11:58:02]Write to MH i2c: D1 01 00 BC 47 01 D5 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: D1 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: D1 01 00 [11:58:02]MH_I2C_Read... [11:58:02]Read from MH i2c: D1 01 00 BC 47 00 D4 [11:58:02]Write to MH i2c: 01 00 00 BD 47 04 [11:58:02]Write i2c OK [11:58:02]MH_I2C_Read... [11:58:03]OFD Sender: No OFD packet to send [11:58:03]*** Cut start [11:58:03]*** Partial cut [11:58:03]*** CUTSNS_PIN = 1 [11:58:03]*** CUTSNS_PIN = 0 [11:58:03]*** Brake cut motor [11:58:04]Read from MH i2c: 01 [11:58:04]MH_I2C_Read... [11:58:04]*** Stop cut motor [11:58:04]*** Cut end [11:58:04]Read from MH i2c: 01 07 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: 01 07 00 BD 47 00 00 00 00 00 FF 0F 19 [11:58:04]process_action close_receipt done [11:58:04]requested_data is exist [11:58:04]produce_requested_data [11:58:04]requested_item fm.sn is exist - process it [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 11 00 00 [11:58:04]Write to MH i2c: E2 08 00 BE 47 80 11 00 00 00 00 00 00 7F [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 17 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 17 00 BE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [11:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [11:58:04]wFMCommunicate OK [11:58:04]requested_item fd.num is exist - process it [11:58:04]SAM_PROTO_GetFieldsCounters [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 13 00 00 [11:58:04]Write to MH i2c: E2 08 00 BF 47 80 13 00 00 00 00 00 00 82 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 62 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 62 00 BF 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:58:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_GetFieldsCounters done [11:58:04]requested_item shift.num is exist - process it [11:58:04]requested_item shift.opened is exist - process it [11:58:04]req_shift_opened [11:58:04]FM_GetShiftState [11:58:04]SAM_PROTO_GetShiftState [11:58:04]wFMCommunicate request_size=4 [11:58:04]MH_SAM_APDU [11:58:04]CAPDU: 80 13 01 00 [11:58:04]Write to MH i2c: E2 08 00 C0 47 80 13 01 00 00 00 00 00 84 [11:58:04]Write i2c OK [11:58:04]MH_I2C_Read... [11:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:04]Read from MH i2c: E2 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0E 00 [11:58:04]MH_I2C_Read... [11:58:04]Read from MH i2c: E2 0E 00 C0 47 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8D [11:58:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [11:58:04]wFMCommunicate OK [11:58:04]SAM_PROTO_GetShiftState done [11:58:04]FM_GetShiftState done [11:58:04]req_shift_opened done [11:58:04]requested_item shift.open_date is exist - process it [11:58:04]req_shift_open_date [11:58:04]req_shift_open_date done [11:58:04]produce_requested_data done [11:58:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165992,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [11:58:04]process_action_free close_receipt [11:58:04]json_value_free [11:58:04]json_value_free done [11:58:04]process_json_proto returns [11:58:04]Send response to host [11:58:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165992,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [11:58:04]free response buf [11:58:04]execute_script done [11:58:04]execute_script returns [11:58:04]free content buf [11:58:04]Sock 5.Close socket [11:58:04]Sock 5.Thread stoped [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:25]accept exits with 6 [12:02:25]New connection [12:02:25]New thread 3066776932 created [12:02:25]Thread 3066920292 joined [12:02:25]Waiting for new connection... [12:02:25] Sock 6.Parse request [12:02:25]Sock 6.Check first char [12:02:25]Sock 6.First char is OK [12:02:25]request: POST /json_proto HTTP/1.0 [12:02:25]Method: POST [12:02:25]URL: /json_proto [12:02:25]Method is POST - this is cgi request [12:02:25]url: /json_proto [12:02:25]query_string will be loaded in cgi processing [12:02:25]execute_cgi json_proto POST (null) [12:02:25]execute_cgi path=json_proto method=POST [12:02:25]POST find Content-Length [12:02:25]Host: 172.17.53.195:8080 [12:02:25]Content-Length: 677 [12:02:25]Content-Type: application/json [12:02:25] [12:02:25]POST finish read [12:02:25]Found Content-Length = 677 [12:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.520, "sum" : 235.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 235.00, "total" : 235.00, "payments": [ { "type": 0, "sum" : 235.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:25]execute_script... [12:02: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)220564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.520, "sum" : 235.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 235.00, "total" : 235.00, "payments": [ { "type": 0, "sum" : 235.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:25]POST & json_proto [12:02:25]process_json_proto [12:02:25]json parsed OK: [12:02:25]protocol is kg_v1.0 [12:02:25]action value=close_receipt [12:02:25]process_action close_receipt [12:02:25]cmd_close_receipt [12:02:25]MH_GetDate [12:02:25]Write to MH i2c: F0 00 00 C1 47 F7 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 09 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: F0 09 00 C1 47 00 E3 42 16 67 21 48 4A 65 BA [12:02:25]GetLastDocTimeStamp 1729511898 [12:02:25]current date 1729512163 [12:02:25]FM_GetShiftState [12:02:25]SAM_PROTO_GetShiftState [12:02:25]wFMCommunicate request_size=4 [12:02:25]MH_SAM_APDU [12:02:25]CAPDU: 80 13 01 00 [12:02:25]Write to MH i2c: E2 08 00 C2 47 80 13 01 00 00 00 00 00 86 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:25]Read from MH i2c: E2 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: E2 0E 00 C2 47 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8F [12:02:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:02:25]wFMCommunicate OK [12:02:25]SAM_PROTO_GetShiftState done [12:02:25]FM_GetShiftState done [12:02:25]opened in 1729470944 [12:02:25]opened+sec_in_day 1729557344 [12:02:25]quantity*price = 23548 [12:02:25]sum+1 = 23550 [12:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 235.00 Внесено: 235.00 СДАЧА: 0.00 НСП 1% : 2.08 НДС 12% : 25.01 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 104 21.10.2024 12:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165993 ФПД: 208615437876353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120243&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165993&fm=208615437876353&tin=02508201610067®Number=0000000000091764&sum=23500 [12:02:26]StoreToDocumentArchive [12:02:26]shift 535 fd 165993 [12:02:26]save to /storage/0535/doc_00165993 [12:02:26]save last doc name /storage/0535/doc_00165993 to /storage/kkm_last_doc_name [12:02:26]save OK [12:02:26]Clear old archive folders... [12:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:26]tlvbuf is 01891F40 [12:02:26]SAM_PROTO_ClearQueue [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 09 00 00 [12:02:26]Write to MH i2c: E2 08 00 CF 47 80 09 00 00 00 00 00 00 88 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 CF 47 00 90 00 8A [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]SAM_PROTO_ClearQueue done [12:02:26]KKMCreateOFDPacket [12:02:26]OFDProtocolAddRootSTLVToBuf [12:02:26]FM_MakeSignedData [12:02:26]FM_MakeSignedData [12:02:26]SAM_PROTO_SignData [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 01 02 [12:02:26]Write to MH i2c: E2 08 00 D0 47 80 0D 01 02 00 00 00 00 90 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 03 00 D0 47 00 90 00 8B [12:02:26]RAPDU: 90 00 [12:02:26]wFMCommunicate OK [12:02:26]wFMCommunicate request_size=255 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E3 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 88 02 00 35 04 06 00 BD [12:02:26]Write to MH i2c: E2 02 01 D1 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 C0 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E3 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 88 02 00 35 04 06 00 BD 00 00 C1 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 03 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 03 00 D1 47 00 90 00 8C [12:02:27]RAPDU: 90 00 [12:02:27]wFMCommunicate OK [12:02:27]wFMCommunicate request_size=10 [12:02:27]MH_SAM_APDU [12:02:27]CAPDU: 80 0D 02 02 05 BC 11 11 BC 81 [12:02:27]Write to MH i2c: E2 0D 00 D2 47 80 0D 02 02 05 00 BC 11 11 BC 81 00 00 B8 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 03 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 03 00 D2 47 00 90 00 8D [12:02:27]RAPDU: 90 00 [12:02:27]wFMCommunicate OK [12:02:27]wFMCommunicate request_size=4 [12:02:27]MH_SAM_APDU [12:02:27]CAPDU: 80 0D 03 02 [12:02:27]Write to MH i2c: E2 08 00 D3 47 80 0D 03 02 00 00 00 00 95 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 0B 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 0B 00 D3 47 00 33 8B 32 8C 40 3D 72 9A 90 00 9B [12:02:27]RAPDU: 33 8B 32 8C 40 3D 72 9A 90 00 [12:02:27]wFMCommunicate OK [12:02:27]SAM_PROTO_SignData done [12:02:27]FM_MakeSignedData done [12:02:27]CreateOFDProtocolMessage [12:02:27]wFMCommunicate request_size=4 [12:02:27]MH_SAM_APDU [12:02:27]CAPDU: 80 11 00 00 [12:02:27]Write to MH i2c: E2 08 00 D4 47 80 11 00 00 00 00 00 00 95 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 17 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 17 00 D4 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [12:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:02:27]wFMCommunicate OK [12:02:27]CreateOFDProtocolMessage done [12:02:27]OFDSenderStorePacket 165993 [12:02:27]StoreOFDPacket docnum=165993 [12:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 45 19 07 01 E9 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 C0 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E3 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 88 02 00 35 04 06 00 BD BC 11 11 BC 81 33 8B 32 8C 40 3D 72 9A [12:02:27]CheckFolder [12:02:27]dirname=/storage/ofd_packets [12:02:27]CheckFolder done [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00165993 [12:02:27]NVStorageSaveData ofd_packets/00165993 [12:02:27]File name is /storage/ofd_packets/00165993 [12:02:27]Write 301 bytes [12:02:27]NVStorageSaveData done [12:02:27]OFDSenderStorePacket done [12:02:27]KKMCreateOFDPacket done [12:02:27]NVStorageSaveData kkm_last_timestamp [12:02:27]File name is /storage/kkm_last_timestamp [12:02:27]Write 4 bytes [12:02:27]NVStorageSaveData done [12:02:27]ExternCall_PrintAddStr [12:02:27]wPrintStart [12:02:27]Write to MH i2c: 01 00 00 D5 47 1C [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 07 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: 01 07 00 D5 47 00 00 00 00 00 FF 0F 31 [12:02:27]RasterBufferAndPrint [12:02:27]line Счет N : (1)220564 [12:02:27]line ИНН: 02508201610067 [12:02:27]line Контрольно-Кассовый Чек [12:02:27]line ПРОДАЖА [12:02:27]line ТРК (МРК, ГНК) : 23 [12:02:27]line Товар: 2710124130 [12:02:27]line Аи-92-К-5 [12:02:27]line 3.520 * 66.90 [12:02:27]line = 235.49 [12:02:27]line НДС 12% НСП 1% [12:02:27]line > о реализуемом товаре [12:02:27]line ОКРУГЛЕНИЕ: -0.49 [12:02:27]line ИТОГО: 235.00 [12:02:27]line Внесено: 235.00 [12:02:27]line СДАЧА: 0.00 [12:02:27]line НСП 1% : 2.08 [12:02:27]line НДС 12% : 25.01 [12:02:27]line Наличными: 235.00 [12:02:27]line Безнал.: 0.00 [12:02:27]line Место: АЗС № 161 "Партнер Нефть" [12:02:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:02:27]line СНО: Общий режим [12:02:27]line Чек 104 21.10.2024 12:02 [12:02:27]line Смена: 535 ФФД: 1.0 [12:02:27]line ЗНМ: 0300000104 [12:02:27]line РНМ: 0000000000091764 [12:02:27]line Версия ККМ: 001 [12:02:27]line ФМ: 0000000000871759 [12:02:27]line ФД: 165993 [12:02:27]line ФПД: 208615437876353 [12:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120243&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165993&fm=208615437876353&tin=02508201610067®Number=0000000000091764&sum=23500 [12:02:27]OFD Sender: Processing packet 165993 [packets to send 48, broken 47] [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00165993 [12:02:27]OFD Sender: To server: pG, [12:02:27]CommunicateWithHost lk.salyk.kg:30040 [12:02:27]ConnectInit lk.salyk.kg [12:02:27]written 0, free lines is 4095 [12:02:27]Connected sock=7 [12:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 45 19 07 01 E9 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 C0 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FD 5B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 E3 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 88 02 00 35 04 06 00 BD BC 11 11 BC 81 33 8B 32 8C 40 3D 72 9A [12:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 57 47 00 66 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 35 39 10 04 04 00 69 88 02 00 F4 03 04 00 52 E9 15 67 B6 04 01 00 00 4E AF 42 FF 26 00 EE F9 [12:02:27]CommunicateWithHost err = 0 [12:02:27]CheckOFDResponse [12:02:27]1017 (14) - 77093643461234 [12:02:27]1041 (16) - 0000000000871759 [12:02:27]1040 (4) - 165993 [12:02:27]1012 (4) - 21.10.2024 05:40 [12:02:27]1206 (1) - 0 [12:02:27]OFD Sender: Remove packet 165993 [12:02:27]ProducePacketName [12:02:27]name=ofd_packets/00165993 [12:02:27]NVStorageDeleteData [12:02:28]Write to MH i2c: 01 00 00 00 48 48 [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: 01 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: 01 07 00 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: 01 07 00 00 48 00 00 00 00 00 D7 0C 32 [12:02:28]RasterBufferAndPrint [12:02:28]line [12:02:28]line [12:02:28]line [12:02:28]line [12:02:28]line [12:02:28]written 0, free lines is 3295 [12:02:28]MH_Cut [12:02:28]Write to MH i2c: D1 01 00 07 48 01 21 [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: D1 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: D1 01 00 [12:02:28]MH_I2C_Read... [12:02:28]Read from MH i2c: D1 01 00 07 48 00 20 [12:02:28]Write to MH i2c: 01 00 00 08 48 50 [12:02:28]Write i2c OK [12:02:28]MH_I2C_Read... [12:02:28]OFD Sender: No OFD packet to send [12:02:28]*** Cut start [12:02:28]*** Partial cut [12:02:28]*** CUTSNS_PIN = 1 [12:02:28]*** CUTSNS_PIN = 0 [12:02:29]*** Brake cut motor [12:02:29]Read from MH i2c: 01 [12:02:29]MH_I2C_Read... [12:02:29]*** Stop cut motor [12:02:29]*** Cut end [12:02:29]Read from MH i2c: 01 07 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: 01 07 00 08 48 00 00 00 00 00 FF 0F 65 [12:02:29]process_action close_receipt done [12:02:29]requested_data is exist [12:02:29]produce_requested_data [12:02:29]requested_item fm.sn is exist - process it [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 11 00 00 [12:02:29]Write to MH i2c: E2 08 00 09 48 80 11 00 00 00 00 00 00 CB [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 17 00 09 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [12:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:02:29]wFMCommunicate OK [12:02:29]requested_item fd.num is exist - process it [12:02:29]SAM_PROTO_GetFieldsCounters [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 13 00 00 [12:02:29]Write to MH i2c: E2 08 00 0A 48 80 13 00 00 00 00 00 00 CE [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 62 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 62 00 0A 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:02:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_GetFieldsCounters done [12:02:29]requested_item shift.num is exist - process it [12:02:29]requested_item shift.opened is exist - process it [12:02:29]req_shift_opened [12:02:29]FM_GetShiftState [12:02:29]SAM_PROTO_GetShiftState [12:02:29]wFMCommunicate request_size=4 [12:02:29]MH_SAM_APDU [12:02:29]CAPDU: 80 13 01 00 [12:02:29]Write to MH i2c: E2 08 00 0B 48 80 13 01 00 00 00 00 00 D0 [12:02:29]Write i2c OK [12:02:29]MH_I2C_Read... [12:02:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:29]Read from MH i2c: E2 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0E 00 [12:02:29]MH_I2C_Read... [12:02:29]Read from MH i2c: E2 0E 00 0B 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D9 [12:02:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:02:29]wFMCommunicate OK [12:02:29]SAM_PROTO_GetShiftState done [12:02:29]FM_GetShiftState done [12:02:29]req_shift_opened done [12:02:29]requested_item shift.open_date is exist - process it [12:02:29]req_shift_open_date [12:02:29]req_shift_open_date done [12:02:29]produce_requested_data done [12:02:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165993,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:02:29]process_action_free close_receipt [12:02:29]json_value_free [12:02:29]json_value_free done [12:02:29]process_json_proto returns [12:02:29]Send response to host [12:02:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165993,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:02:29]free response buf [12:02:29]execute_script done [12:02:29]execute_script returns [12:02:29]free content buf [12:02:29]Sock 6.Close socket [12:02:29]Sock 6.Thread stoped [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:38]accept exits with 5 [12:02:38]New connection [12:02:38]New thread 3066920292 created [12:02:38]Thread 3066776932 joined [12:02:38]Waiting for new connection... [12:02:38] Sock 5.Parse request [12:02:38]Sock 5.Check first char [12:02:38]Sock 5.First char is OK [12:02:38]request: POST /json_proto HTTP/1.0 [12:02:38]Method: POST [12:02:38]URL: /json_proto [12:02:38]Method is POST - this is cgi request [12:02:38]url: /json_proto [12:02:38]query_string will be loaded in cgi processing [12:02:38]execute_cgi json_proto POST (null) [12:02:38]execute_cgi path=json_proto method=POST [12:02:38]POST find Content-Length [12:02:38]Host: 172.17.53.195:8080 [12:02:38]Content-Length: 766 [12:02:38]Content-Type: application/json [12:02:38] [12:02:38]POST finish read [12:02:38]Found Content-Length = 766 [12:02:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:38]execute_script... [12:02: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)220563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:38]POST & json_proto [12:02:38]process_json_proto [12:02:38]json parsed OK: [12:02:38]protocol is kg_v1.0 [12:02:38]action value=close_receipt [12:02:38]process_action close_receipt [12:02:38]cmd_close_receipt [12:02:38]MH_GetDate [12:02:38]Write to MH i2c: F0 00 00 0C 48 43 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 09 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: F0 09 00 0C 48 00 F1 42 16 67 21 48 4A 65 14 [12:02:38]GetLastDocTimeStamp 1729512163 [12:02:38]current date 1729512177 [12:02:38]FM_GetShiftState [12:02:38]SAM_PROTO_GetShiftState [12:02:38]wFMCommunicate request_size=4 [12:02:38]MH_SAM_APDU [12:02:38]CAPDU: 80 13 01 00 [12:02:38]Write to MH i2c: E2 08 00 0D 48 80 13 01 00 00 00 00 00 D2 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 0E 00 0D 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DB [12:02:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:02:39]wFMCommunicate OK [12:02:39]SAM_PROTO_GetShiftState done [12:02:39]FM_GetShiftState done [12:02:39]opened in 1729470944 [12:02:39]opened+sec_in_day 1729557344 [12:02:39]quantity*price = 40006 [12:02:39]sum+1 = 40007 [12:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 105 21.10.2024 12:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165994 ФПД: 81335911786404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165994&fm=81335911786404&tin=02508201610067®Number=0000000000091764&sum=40006 [12:02:40]StoreToDocumentArchive [12:02:40]shift 535 fd 165994 [12:02:40]save to /storage/0535/doc_00165994 [12:02:40]save last doc name /storage/0535/doc_00165994 to /storage/kkm_last_doc_name [12:02:40]save OK [12:02:40]Clear old archive folders... [12:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:40]tlvbuf is 016E4C20 [12:02:40]SAM_PROTO_ClearQueue [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 09 00 00 [12:02:40]Write to MH i2c: E2 08 00 1A 48 80 09 00 00 00 00 00 00 D4 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 1A 48 00 90 00 D6 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_ClearQueue done [12:02:40]KKMCreateOFDPacket [12:02:40]OFDProtocolAddRootSTLVToBuf [12:02:40]FM_MakeSignedData [12:02:40]FM_MakeSignedData [12:02:40]SAM_PROTO_SignData [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 01 02 [12:02:40]Write to MH i2c: E2 08 00 1B 48 80 0D 01 02 00 00 00 00 DC [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 1B 48 00 90 00 D7 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=255 [12:02:40]MH_SAM_APDU [12:02: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 88 02 00 35 04 06 00 49 [12:02:40]Write to MH i2c: E2 02 01 1C 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 88 02 00 35 04 06 00 49 00 00 BC [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 1C 48 00 90 00 D8 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=10 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 02 02 05 F9 7E 21 27 A4 [12:02:40]Write to MH i2c: E2 0D 00 1D 48 80 0D 02 02 05 00 F9 7E 21 27 A4 00 00 4C [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 03 00 1D 48 00 90 00 D9 [12:02:40]RAPDU: 90 00 [12:02:40]wFMCommunicate OK [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 0D 03 02 [12:02:40]Write to MH i2c: E2 08 00 1E 48 80 0D 03 02 00 00 00 00 E1 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0B 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0B 00 1E 48 00 DA CB EC 4F F2 4B 80 F2 90 00 71 [12:02:40]RAPDU: DA CB EC 4F F2 4B 80 F2 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_SignData done [12:02:40]FM_MakeSignedData done [12:02:40]CreateOFDProtocolMessage [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 11 00 00 [12:02:40]Write to MH i2c: E2 08 00 1F 48 80 11 00 00 00 00 00 00 E1 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 17 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 17 00 1F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [12:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:02:40]wFMCommunicate OK [12:02:40]CreateOFDProtocolMessage done [12:02:40]OFDSenderStorePacket 165994 [12:02:40]StoreOFDPacket docnum=165994 [12:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EA 37 07 01 F6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 88 02 00 35 04 06 00 49 F9 7E 21 27 A4 DA CB EC 4F F2 4B 80 F2 [12:02:40]CheckFolder [12:02:40]dirname=/storage/ofd_packets [12:02:40]CheckFolder done [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00165994 [12:02:40]NVStorageSaveData ofd_packets/00165994 [12:02:40]File name is /storage/ofd_packets/00165994 [12:02:40]Write 301 bytes [12:02:40]NVStorageSaveData done [12:02:40]OFDSenderStorePacket done [12:02:40]KKMCreateOFDPacket done [12:02:40]NVStorageSaveData kkm_last_timestamp [12:02:40]File name is /storage/kkm_last_timestamp [12:02:40]Write 4 bytes [12:02:40]NVStorageSaveData done [12:02:40]ExternCall_PrintAddStr [12:02:40]wPrintStart [12:02:40]Write to MH i2c: 01 00 00 20 48 68 [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: 01 07 00 20 48 00 00 00 00 00 FF 0F 7D [12:02:40]RasterBufferAndPrint [12:02:40]line Счет N : (1)220563 [12:02:40]line ИНН: 02508201610067 [12:02:40]line Контрольно-Кассовый Чек [12:02:40]line ПРОДАЖА [12:02:40]line ТРК (МРК, ГНК) : 13 [12:02:40]line Товар: 2710124130 [12:02:40]line Аи-92-К-5 [12:02:40]line 5.980 * 66.90 [12:02:40]line = 400.06 [12:02:40]line НДС 12% НСП 1% [12:02:40]line > о реализуемом товаре [12:02:40]line ИТОГО: 400.06 [12:02:40]line НСП 1% : 3.54 [12:02:40]line НДС 12% : 42.48 [12:02:40]line Наличными: 0.00 [12:02:40]line Безнал.: 400.06 [12:02:40]line Место: АЗС № 161 "Партнер Нефть" [12:02:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:02:40]line СНО: Общий режим [12:02:40]line Чек 105 21.10.2024 12:02 [12:02:40]line Смена: 535 ФФД: 1.0 [12:02:40]line ЗНМ: 0300000104 [12:02:40]line РНМ: 0000000000091764 [12:02:40]line Версия ККМ: 001 [12:02:40]line Платежная система: Mbank [12:02:40]line ФМ: 0000000000871759 [12:02:40]line ФД: 165994 [12:02:40]line ФПД: 81335911786404 [12:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165994&fm=81335911786404&tin=02508201610067®Number=0000000000091764&sum=40006 [12:02:40]written 0, free lines is 4095 [12:02:40]OFD Sender: Processing packet 165994 [packets to send 48, broken 47] [12:02:40]ProducePacketName [12:02:40]name=ofd_packets/00165994 [12:02:40]OFD Sender: To server: pG, [12:02:40]CommunicateWithHost lk.salyk.kg:30040 [12:02:40]ConnectInit lk.salyk.kg [12:02:40]Connected sock=7 [12:02:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EA 37 07 01 F6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F1 42 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 88 02 00 35 04 06 00 49 F9 7E 21 27 A4 DA CB EC 4F F2 4B 80 F2 [12:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C4 E3 47 00 8C B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 88 02 00 F4 03 04 00 5F E9 15 67 B6 04 01 00 00 77 50 55 30 4C 47 08 4E [12:02:41]CommunicateWithHost err = 0 [12:02:41]CheckOFDResponse [12:02:41]1017 (14) - 77093643461234 [12:02:41]1041 (16) - 0000000000871759 [12:02:41]1040 (4) - 165994 [12:02:41]1012 (4) - 21.10.2024 05:40 [12:02:41]1206 (1) - 0 [12:02:41]OFD Sender: Remove packet 165994 [12:02:41]ProducePacketName [12:02:41]name=ofd_packets/00165994 [12:02:41]NVStorageDeleteData [12:02:41]Write to MH i2c: 01 00 00 49 48 91 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: 01 07 00 49 48 00 00 00 00 00 02 0D A7 [12:02:41]RasterBufferAndPrint [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]line [12:02:41]written 0, free lines is 3337 [12:02:41]MH_Cut [12:02:41]Write to MH i2c: D1 01 00 50 48 01 6A [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 01 00 [12:02:41]MH_I2C_Read... [12:02:41]Read from MH i2c: D1 01 00 50 48 00 69 [12:02:41]Write to MH i2c: 01 00 00 51 48 99 [12:02:41]Write i2c OK [12:02:41]MH_I2C_Read... [12:02:41]OFD Sender: No OFD packet to send [12:02:41]*** Cut start [12:02:41]*** Partial cut [12:02:41]*** CUTSNS_PIN = 1 [12:02:41]*** CUTSNS_PIN = 0 [12:02:42]*** Brake cut motor [12:02:42]Read from MH i2c: 01 [12:02:42]MH_I2C_Read... [12:02:42]*** Stop cut motor [12:02:42]*** Cut end [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 51 48 00 00 00 00 00 FF 0F AE [12:02:42]process_action close_receipt done [12:02:42]requested_data is exist [12:02:42]produce_requested_data [12:02:42]requested_item fm.sn is exist - process it [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 11 00 00 [12:02:42]Write to MH i2c: E2 08 00 52 48 80 11 00 00 00 00 00 00 14 [12:02:42]Write i2c OK [12:02:42]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 52 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [12:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:02:42]wFMCommunicate OK [12:02:42]requested_item fd.num is exist - process it [12:02:42]SAM_PROTO_GetFieldsCounters [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 13 00 00 [12:02:42]Write to MH i2c: E2 08 00 53 48 80 13 00 00 00 00 00 00 17 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 62 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 62 00 53 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_GetFieldsCounters done [12:02:42]requested_item shift.num is exist - process it [12:02:42]requested_item shift.opened is exist - process it [12:02:42]req_shift_opened [12:02:42]FM_GetShiftState [12:02:42]SAM_PROTO_GetShiftState [12:02:42]wFMCommunicate request_size=4 [12:02:42]MH_SAM_APDU [12:02:42]CAPDU: 80 13 01 00 [12:02:42]Write to MH i2c: E2 08 00 54 48 80 13 01 00 00 00 00 00 19 [12:02:42]Write i2c OK [12:02:42]MH_I2C_Read... [12:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:42]Read from MH i2c: E2 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0E 00 [12:02:42]MH_I2C_Read... [12:02:42]Read from MH i2c: E2 0E 00 54 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 22 [12:02:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:02:42]wFMCommunicate OK [12:02:42]SAM_PROTO_GetShiftState done [12:02:42]FM_GetShiftState done [12:02:42]req_shift_opened done [12:02:42]requested_item shift.open_date is exist - process it [12:02:42]req_shift_open_date [12:02:42]req_shift_open_date done [12:02:42]produce_requested_data done [12:02:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165994,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:02:42]process_action_free close_receipt [12:02:42]json_value_free [12:02:42]json_value_free done [12:02:42]process_json_proto returns [12:02:42]Send response to host [12:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165994,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:02:42]free response buf [12:02:42]execute_script done [12:02:42]execute_script returns [12:02:42]free content buf [12:02:42]Sock 5.Close socket [12:02:42]Sock 5.Thread stoped [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]OFD Sender: No OFD packet to send [12:06:06]OFD Sender: No OFD packet to send [12:06:11]OFD Sender: No OFD packet to send [12:06:16]OFD Sender: No OFD packet to send [12:06:21]OFD Sender: No OFD packet to send [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:07:58]accept exits with 6 [12:07:58]New connection [12:07:58]New thread 3066776932 created [12:07:58]Thread 3066920292 joined [12:07:58]Waiting for new connection... [12:07:58] Sock 6.Parse request [12:07:58]Sock 6.Check first char [12:07:58]Sock 6.First char is OK [12:07:58]request: POST /json_proto HTTP/1.0 [12:07:58]Method: POST [12:07:58]URL: /json_proto [12:07:58]Method is POST - this is cgi request [12:07:58]url: /json_proto [12:07:58]query_string will be loaded in cgi processing [12:07:58]execute_cgi json_proto POST (null) [12:07:58]execute_cgi path=json_proto method=POST [12:07:58]POST find Content-Length [12:07:58]Host: 172.17.53.195:8080 [12:07:58]Content-Length: 679 [12:07:58]Content-Type: application/json [12:07:58] [12:07:58]POST finish read [12:07:58]Found Content-Length = 679 [12:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:58]execute_script... [12: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)220565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:58]POST & json_proto [12:07:58]process_json_proto [12:07:58]json parsed OK: [12:07:58]protocol is kg_v1.0 [12:07:58]action value=close_receipt [12:07:58]process_action close_receipt [12:07:58]cmd_close_receipt [12:07:58]MH_GetDate [12:07:58]Write to MH i2c: F0 00 00 55 48 8C [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: F0 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: F0 09 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: F0 09 00 55 48 00 30 44 16 67 21 48 4A 65 9E [12:07:58]GetLastDocTimeStamp 1729512177 [12:07:58]current date 1729512496 [12:07:58]FM_GetShiftState [12:07:58]SAM_PROTO_GetShiftState [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 13 01 00 [12:07:58]Write to MH i2c: E2 08 00 56 48 80 13 01 00 00 00 00 00 1B [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0E 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0E 00 56 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 24 [12:07:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_GetShiftState done [12:07:58]FM_GetShiftState done [12:07:58]opened in 1729470944 [12:07:58]opened+sec_in_day 1729557344 [12:07:58]quantity*price = 150037 [12:07:58]sum+1 = 150039 [12:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 106 21.10.2024 12:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165995 ФПД: 241734022173451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165995&fm=241734022173451&tin=02508201610067®Number=0000000000091764&sum=150000 [12:07:59]StoreToDocumentArchive [12:07:59]shift 535 fd 165995 [12:07:59]save to /storage/0535/doc_00165995 [12:07:59]save last doc name /storage/0535/doc_00165995 to /storage/kkm_last_doc_name [12:07:59]save OK [12:07:59]Clear old archive folders... [12:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:59]tlvbuf is 0163FCF0 [12:07:59]SAM_PROTO_ClearQueue [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 09 00 00 [12:07:59]Write to MH i2c: E2 08 00 63 48 80 09 00 00 00 00 00 00 1D [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 63 48 00 90 00 1F [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_ClearQueue done [12:07:59]KKMCreateOFDPacket [12:07:59]OFDProtocolAddRootSTLVToBuf [12:07:59]FM_MakeSignedData [12:07:59]FM_MakeSignedData [12:07:59]SAM_PROTO_SignData [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 01 02 [12:07:59]Write to MH i2c: E2 08 00 64 48 80 0D 01 02 00 00 00 00 25 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 64 48 00 90 00 20 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=255 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 30 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 88 02 00 35 04 06 00 DB DB 16 85 [12:07:59]Write to MH i2c: E2 02 01 65 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 6A 00 00 00 F4 03 04 00 30 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 88 02 00 35 04 06 00 DB DB 16 85 00 00 E2 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 65 48 00 90 00 21 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=7 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 02 93 0B [12:07:59]Write to MH i2c: E2 0A 00 66 48 80 0D 02 02 02 00 93 0B 00 00 CA [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 66 48 00 90 00 22 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 03 02 [12:07:59]Write to MH i2c: E2 08 00 67 48 80 0D 03 02 00 00 00 00 2A [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 0B 00 67 48 00 EA 00 12 63 07 04 4E A9 90 00 8C [12:07:59]RAPDU: EA 00 12 63 07 04 4E A9 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_SignData done [12:07:59]FM_MakeSignedData done [12:07:59]CreateOFDProtocolMessage [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 11 00 00 [12:07:59]Write to MH i2c: E2 08 00 68 48 80 11 00 00 00 00 00 00 2A [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 17 00 68 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [12:07:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:07:59]wFMCommunicate OK [12:07:59]CreateOFDProtocolMessage done [12:07:59]OFDSenderStorePacket 165995 [12:07:59]StoreOFDPacket docnum=165995 [12:07:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 21 B8 04 01 20 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 30 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 88 02 00 35 04 06 00 DB DB 16 85 93 0B EA 00 12 63 07 04 4E A9 [12:07:59]CheckFolder [12:07:59]dirname=/storage/ofd_packets [12:07:59]CheckFolder done [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00165995 [12:07:59]NVStorageSaveData ofd_packets/00165995 [12:07:59]File name is /storage/ofd_packets/00165995 [12:07:59]Write 298 bytes [12:07:59]NVStorageSaveData done [12:07:59]OFDSenderStorePacket done [12:07:59]KKMCreateOFDPacket done [12:07:59]NVStorageSaveData kkm_last_timestamp [12:07:59]File name is /storage/kkm_last_timestamp [12:07:59]Write 4 bytes [12:07:59]NVStorageSaveData done [12:07:59]ExternCall_PrintAddStr [12:07:59]wPrintStart [12:07:59]Write to MH i2c: 01 00 00 69 48 B1 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 69 48 00 00 00 00 00 FF 0F C6 [12:07:59]RasterBufferAndPrint [12:07:59]line Счет N : (1)220565 [12:07:59]line ИНН: 02508201610067 [12:07:59]line Контрольно-Кассовый Чек [12:07:59]line ПРОДАЖА [12:07:59]line ТРК (МРК, ГНК) : 21 [12:07:59]line Товар: 2710194210 [12:07:59]line ДТ-К-5 [12:07:59]line 19.690 * 76.20 [12:07:59]line = 1500.38 [12:07:59]line НДС 12% НСП 1% [12:07:59]line > о реализуемом товаре [12:07:59]line ОКРУГЛЕНИЕ: -0.38 [12:07:59]line ИТОГО: 1500.00 [12:07:59]line Внесено: 1500.00 [12:07:59]line СДАЧА: 0.00 [12:07:59]line НСП 1% : 13.28 [12:07:59]line НДС 12% : 159.33 [12:07:59]line Наличными: 1500.00 [12:07:59]line Безнал.: 0.00 [12:07:59]line Место: АЗС № 161 "Партнер Нефть" [12:07:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:07:59]line СНО: Общий режим [12:07:59]line Чек 106 21.10.2024 12:08 [12:07:59]line Смена: 535 ФФД: 1.0 [12:07:59]line ЗНМ: 0300000104 [12:07:59]line РНМ: 0000000000091764 [12:07:59]line Версия ККМ: 001 [12:07:59]line ФМ: 0000000000871759 [12:07:59]line ФД: 165995 [12:07:59]line ФПД: 241734022173451 [12:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165995&fm=241734022173451&tin=02508201610067®Number=0000000000091764&sum=150000 [12:08:00]OFD Sender: Processing packet 165995 [packets to send 48, broken 47] [12:08:00]ProducePacketName [12:08:00]name=ofd_packets/00165995 [12:08:00]OFD Sender: To server: pG, [12:08:00]CommunicateWithHost lk.salyk.kg:30040 [12:08:00]ConnectInit lk.salyk.kg [12:08:00]written 0, free lines is 4095 [12:08:00]Connected sock=7 [12: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 35 39 0C 01 00 00 21 B8 04 01 20 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 30 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 88 02 00 35 04 06 00 DB DB 16 85 93 0B EA 00 12 63 07 04 4E A9 [12:08:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F 24 47 00 00 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 88 02 00 F4 03 04 00 9E EA 15 67 B6 04 01 00 00 41 27 62 8E B4 BF A2 33 [12:08:00]CommunicateWithHost err = 0 [12:08:00]CheckOFDResponse [12:08:00]1017 (14) - 77093643461234 [12:08:00]1041 (16) - 0000000000871759 [12:08:00]1040 (4) - 165995 [12:08:00]1012 (4) - 21.10.2024 05:46 [12:08:00]1206 (1) - 0 [12:08:00]OFD Sender: Remove packet 165995 [12:08:00]ProducePacketName [12:08:00]name=ofd_packets/00165995 [12:08:00]NVStorageDeleteData [12:08:00]Write to MH i2c: 01 00 00 94 48 DC [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 94 48 00 00 00 00 00 D9 0C C8 [12:08:00]RasterBufferAndPrint [12:08:00]line [12:08:00]line [12:08:00]line [12:08:00]line [12:08:00]line [12:08:00]written 0, free lines is 3297 [12:08:00]MH_Cut [12:08:00]Write to MH i2c: D1 01 00 9B 48 01 B5 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: D1 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: D1 01 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: D1 01 00 9B 48 00 B4 [12:08:00]Write to MH i2c: 01 00 00 9C 48 E4 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]OFD Sender: No OFD packet to send [12:08:01]*** Cut start [12:08:01]*** Partial cut [12:08:01]*** CUTSNS_PIN = 1 [12:08:01]*** CUTSNS_PIN = 0 [12:08:01]*** Brake cut motor [12:08:02]Read from MH i2c: 01 [12:08:02]MH_I2C_Read... [12:08:02]*** Stop cut motor [12:08:02]*** Cut end [12:08:02]Read from MH i2c: 01 07 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: 01 07 00 9C 48 00 00 00 00 00 FF 0F F9 [12:08:02]process_action close_receipt done [12:08:02]requested_data is exist [12:08:02]produce_requested_data [12:08:02]requested_item fm.sn is exist - process it [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 11 00 00 [12:08:02]Write to MH i2c: E2 08 00 9D 48 80 11 00 00 00 00 00 00 5F [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 9D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [12:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:08:02]wFMCommunicate OK [12:08:02]requested_item fd.num is exist - process it [12:08:02]SAM_PROTO_GetFieldsCounters [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 00 00 [12:08:02]Write to MH i2c: E2 08 00 9E 48 80 13 00 00 00 00 00 00 62 [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 62 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 62 00 9E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:02]wFMCommunicate OK [12:08:02]SAM_PROTO_GetFieldsCounters done [12:08:02]requested_item shift.num is exist - process it [12:08:02]requested_item shift.opened is exist - process it [12:08:02]req_shift_opened [12:08:02]FM_GetShiftState [12:08:02]SAM_PROTO_GetShiftState [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 01 00 [12:08:02]Write to MH i2c: E2 08 00 9F 48 80 13 01 00 00 00 00 00 64 [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 0E 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 0E 00 9F 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6D [12:08:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:08:02]wFMCommunicate OK [12:08:02]SAM_PROTO_GetShiftState done [12:08:02]FM_GetShiftState done [12:08:02]req_shift_opened done [12:08:02]requested_item shift.open_date is exist - process it [12:08:02]req_shift_open_date [12:08:02]req_shift_open_date done [12:08:02]produce_requested_data done [12:08:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165995,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:08:02]process_action_free close_receipt [12:08:02]json_value_free [12:08:02]json_value_free done [12:08:02]process_json_proto returns [12:08:02]Send response to host [12:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165995,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:08:02]free response buf [12:08:02]execute_script done [12:08:02]execute_script returns [12:08:02]free content buf [12:08:02]Sock 6.Close socket [12:08:02]Sock 6.Thread stoped [12:08:06]OFD Sender: No OFD packet to send [12:08:06]accept exits with 5 [12:08:06]New connection [12:08:06]New thread 3066920292 created [12:08:06]Thread 3066776932 joined [12:08:06]Waiting for new connection... [12:08:06] Sock 5.Parse request [12:08:06]Sock 5.Check first char [12:08:06]Sock 5.First char is OK [12:08:06]request: POST /json_proto HTTP/1.0 [12:08:06]Method: POST [12:08:06]URL: /json_proto [12:08:06]Method is POST - this is cgi request [12:08:06]url: /json_proto [12:08:06]query_string will be loaded in cgi processing [12:08:06]execute_cgi json_proto POST (null) [12:08:06]execute_cgi path=json_proto method=POST [12:08:06]POST find Content-Length [12:08:06]Host: 172.17.53.195:8080 [12:08:06]Content-Length: 674 [12:08:06]Content-Type: application/json [12:08:06] [12:08:06]POST finish read [12:08:06]Found Content-Length = 674 [12:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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:08:06]execute_script... [12:08: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)220566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.630, "sum" : 200.41, "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:08:06]POST & json_proto [12:08:06]process_json_proto [12:08:06]json parsed OK: [12:08:06]protocol is kg_v1.0 [12:08:06]action value=close_receipt [12:08:06]process_action close_receipt [12:08:06]cmd_close_receipt [12:08:06]MH_GetDate [12:08:06]Write to MH i2c: F0 00 00 A0 48 D7 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: F0 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: F0 09 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: F0 09 00 A0 48 00 38 44 16 67 21 48 4A 65 F1 [12:08:06]GetLastDocTimeStamp 1729512496 [12:08:06]current date 1729512504 [12:08:06]FM_GetShiftState [12:08:06]SAM_PROTO_GetShiftState [12:08:06]wFMCommunicate request_size=4 [12:08:06]MH_SAM_APDU [12:08:06]CAPDU: 80 13 01 00 [12:08:06]Write to MH i2c: E2 08 00 A1 48 80 13 01 00 00 00 00 00 66 [12:08:06]Write i2c OK [12:08:06]MH_I2C_Read... [12:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:06]Read from MH i2c: E2 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 0E 00 [12:08:06]MH_I2C_Read... [12:08:06]Read from MH i2c: E2 0E 00 A1 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [12:08:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:08:06]wFMCommunicate OK [12:08:06]SAM_PROTO_GetShiftState done [12:08:06]FM_GetShiftState done [12:08:06]opened in 1729470944 [12:08:06]opened+sec_in_day 1729557344 [12:08:06]quantity*price = 20040 [12:08:06]sum+1 = 20042 [12:08:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 107 21.10.2024 12:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165996 ФПД: 98666836111141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165996&fm=98666836111141&tin=02508201610067®Number=0000000000091764&sum=20000 [12:08:07]StoreToDocumentArchive [12:08:07]shift 535 fd 165996 [12:08:07]save to /storage/0535/doc_00165996 [12:08:07]save last doc name /storage/0535/doc_00165996 to /storage/kkm_last_doc_name [12:08:07]save OK [12:08:07]Clear old archive folders... [12:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:08:07]tlvbuf is 01BAB060 [12:08:07]SAM_PROTO_ClearQueue [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 09 00 00 [12:08:07]Write to MH i2c: E2 08 00 AE 48 80 09 00 00 00 00 00 00 68 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 AE 48 00 90 00 6A [12:08:07]RAPDU: 90 00 [12:08:07]wFMCommunicate OK [12:08:07]SAM_PROTO_ClearQueue done [12:08:07]KKMCreateOFDPacket [12:08:07]OFDProtocolAddRootSTLVToBuf [12:08:07]FM_MakeSignedData [12:08:07]FM_MakeSignedData [12:08:07]SAM_PROTO_SignData [12:08:07]wFMCommunicate request_size=4 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 0D 01 02 [12:08:07]Write to MH i2c: E2 08 00 AF 48 80 0D 01 02 00 00 00 00 70 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:08:07]Read from MH i2c: E2 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 [12:08:07]MH_I2C_Read... [12:08:07]Read from MH i2c: E2 03 00 AF 48 00 90 00 6B [12:08:07]RAPDU: 90 00 [12:08:07]wFMCommunicate OK [12:08:07]wFMCommunicate request_size=255 [12:08:07]MH_SAM_APDU [12:08:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 38 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 88 02 00 35 04 06 00 59 BC A9 B7 [12:08:07]Write to MH i2c: E2 02 01 B0 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 38 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 88 02 00 35 04 06 00 59 BC A9 B7 00 00 69 [12:08:07]Write i2c OK [12:08:07]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 B0 48 00 90 00 6C [12:08:08]RAPDU: 90 00 [12:08:08]wFMCommunicate OK [12:08:08]wFMCommunicate request_size=7 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 0D 02 02 02 AF 25 [12:08:08]Write to MH i2c: E2 0A 00 B1 48 80 0D 02 02 02 00 AF 25 00 00 4B [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 03 00 B1 48 00 90 00 6D [12:08:08]RAPDU: 90 00 [12:08:08]wFMCommunicate OK [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 0D 03 02 [12:08:08]Write to MH i2c: E2 08 00 B2 48 80 0D 03 02 00 00 00 00 75 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0B 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 0B 00 B2 48 00 90 4B 5E BC A4 1E AC 56 90 00 2F [12:08:08]RAPDU: 90 4B 5E BC A4 1E AC 56 90 00 [12:08:08]wFMCommunicate OK [12:08:08]SAM_PROTO_SignData done [12:08:08]FM_MakeSignedData done [12:08:08]CreateOFDProtocolMessage [12:08:08]wFMCommunicate request_size=4 [12:08:08]MH_SAM_APDU [12:08:08]CAPDU: 80 11 00 00 [12:08:08]Write to MH i2c: E2 08 00 B3 48 80 11 00 00 00 00 00 00 75 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:08]Read from MH i2c: E2 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 17 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: E2 17 00 B3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [12:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:08:08]wFMCommunicate OK [12:08:08]CreateOFDProtocolMessage done [12:08:08]OFDSenderStorePacket 165996 [12:08:08]StoreOFDPacket docnum=165996 [12:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DB B4 04 01 A2 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 38 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 88 02 00 35 04 06 00 59 BC A9 B7 AF 25 90 4B 5E BC A4 1E AC 56 [12:08:08]CheckFolder [12:08:08]dirname=/storage/ofd_packets [12:08:08]CheckFolder done [12:08:08]ProducePacketName [12:08:08]name=ofd_packets/00165996 [12:08:08]NVStorageSaveData ofd_packets/00165996 [12:08:08]File name is /storage/ofd_packets/00165996 [12:08:08]Write 298 bytes [12:08:08]NVStorageSaveData done [12:08:08]OFDSenderStorePacket done [12:08:08]KKMCreateOFDPacket done [12:08:08]NVStorageSaveData kkm_last_timestamp [12:08:08]File name is /storage/kkm_last_timestamp [12:08:08]Write 4 bytes [12:08:08]NVStorageSaveData done [12:08:08]ExternCall_PrintAddStr [12:08:08]wPrintStart [12:08:08]Write to MH i2c: 01 00 00 B4 48 FC [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 07 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 07 00 B4 48 00 00 00 00 00 FF 0F 11 [12:08:08]RasterBufferAndPrint [12:08:08]line Счет N : (1)220566 [12:08:08]line ИНН: 02508201610067 [12:08:08]line Контрольно-Кассовый Чек [12:08:08]line ПРОДАЖА [12:08:08]line ТРК (МРК, ГНК) : 41 [12:08:08]line Товар: 2710194210 [12:08:08]line ДТ-К-5 [12:08:08]line 2.630 * 76.20 [12:08:08]line = 200.41 [12:08:08]line НДС 12% НСП 1% [12:08:08]line > о реализуемом товаре [12:08:08]line ОКРУГЛЕНИЕ: -0.41 [12:08:08]line ИТОГО: 200.00 [12:08:08]line Внесено: 200.00 [12:08:08]line СДАЧА: 0.00 [12:08:08]line НСП 1% : 1.77 [12:08:08]line НДС 12% : 21.28 [12:08:08]line Наличными: 200.00 [12:08:08]line Безнал.: 0.00 [12:08:08]line Место: АЗС № 161 "Партнер Нефть" [12:08:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:08:08]line СНО: Общий режим [12:08:08]line Чек 107 21.10.2024 12:08 [12:08:08]line Смена: 535 ФФД: 1.0 [12:08:08]line ЗНМ: 0300000104 [12:08:08]line РНМ: 0000000000091764 [12:08:08]line Версия ККМ: 001 [12:08:08]line ФМ: 0000000000871759 [12:08:08]line ФД: 165996 [12:08:08]line ФПД: 98666836111141 [12:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165996&fm=98666836111141&tin=02508201610067®Number=0000000000091764&sum=20000 [12:08:08]written 0, free lines is 4095 [12:08:08]OFD Sender: Processing packet 165996 [packets to send 48, broken 47] [12:08:08]ProducePacketName [12:08:08]name=ofd_packets/00165996 [12:08:08]OFD Sender: To server: pG, [12:08:08]CommunicateWithHost lk.salyk.kg:30040 [12:08:08]ConnectInit lk.salyk.kg [12:08:08]Connected sock=7 [12:08:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 DB B4 04 01 A2 6E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 0A 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 49 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 38 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 88 02 00 35 04 06 00 59 BC A9 B7 AF 25 90 4B 5E BC A4 1E AC 56 [12:08:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 42 47 00 26 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 88 02 00 F4 03 04 00 A6 EA 15 67 B6 04 01 00 00 5D 87 65 53 AE A8 B6 14 [12:08:08]CommunicateWithHost err = 0 [12:08:08]CheckOFDResponse [12:08:08]1017 (14) - 77093643461234 [12:08:08]1041 (16) - 0000000000871759 [12:08:08]1040 (4) - 165996 [12:08:08]1012 (4) - 21.10.2024 05:46 [12:08:08]1206 (1) - 0 [12:08:08]OFD Sender: Remove packet 165996 [12:08:08]ProducePacketName [12:08:08]name=ofd_packets/00165996 [12:08:08]NVStorageDeleteData [12:08:08]Write to MH i2c: 01 00 00 DF 48 27 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 07 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: 01 07 00 DF 48 00 00 00 00 00 DA 0C 14 [12:08:08]RasterBufferAndPrint [12:08:08]line [12:08:08]line [12:08:08]line [12:08:08]line [12:08:08]line [12:08:08]written 0, free lines is 3303 [12:08:08]MH_Cut [12:08:08]Write to MH i2c: D1 01 00 E6 48 01 00 [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: D1 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: D1 01 00 [12:08:08]MH_I2C_Read... [12:08:08]Read from MH i2c: D1 01 00 E6 48 00 FF [12:08:08]Write to MH i2c: 01 00 00 E7 48 2F [12:08:08]Write i2c OK [12:08:08]MH_I2C_Read... [12:08:09]OFD Sender: No OFD packet to send [12:08:09]*** Cut start [12:08:09]*** Partial cut [12:08:09]*** CUTSNS_PIN = 1 [12:08:09]*** CUTSNS_PIN = 0 [12:08:09]*** Brake cut motor [12:08:10]Read from MH i2c: 01 [12:08:10]MH_I2C_Read... [12:08:10]*** Stop cut motor [12:08:10]*** Cut end [12:08:10]Read from MH i2c: 01 07 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: 01 07 00 E7 48 00 00 00 00 00 FF 0F 44 [12:08:10]process_action close_receipt done [12:08:10]requested_data is exist [12:08:10]produce_requested_data [12:08:10]requested_item fm.sn is exist - process it [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 11 00 00 [12:08:10]Write to MH i2c: E2 08 00 E8 48 80 11 00 00 00 00 00 00 AA [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 17 00 E8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [12:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:08:10]wFMCommunicate OK [12:08:10]requested_item fd.num is exist - process it [12:08:10]SAM_PROTO_GetFieldsCounters [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 13 00 00 [12:08:10]Write to MH i2c: E2 08 00 E9 48 80 13 00 00 00 00 00 00 AD [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 62 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 62 00 E9 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [12:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_GetFieldsCounters done [12:08:10]requested_item shift.num is exist - process it [12:08:10]requested_item shift.opened is exist - process it [12:08:10]req_shift_opened [12:08:10]FM_GetShiftState [12:08:10]SAM_PROTO_GetShiftState [12:08:10]wFMCommunicate request_size=4 [12:08:10]MH_SAM_APDU [12:08:10]CAPDU: 80 13 01 00 [12:08:10]Write to MH i2c: E2 08 00 EA 48 80 13 01 00 00 00 00 00 AF [12:08:10]Write i2c OK [12:08:10]MH_I2C_Read... [12:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:10]Read from MH i2c: E2 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0E 00 [12:08:10]MH_I2C_Read... [12:08:10]Read from MH i2c: E2 0E 00 EA 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B8 [12:08:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:08:10]wFMCommunicate OK [12:08:10]SAM_PROTO_GetShiftState done [12:08:10]FM_GetShiftState done [12:08:10]req_shift_opened done [12:08:10]requested_item shift.open_date is exist - process it [12:08:10]req_shift_open_date [12:08:10]req_shift_open_date done [12:08:10]produce_requested_data done [12:08:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165996,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:08:10]process_action_free close_receipt [12:08:10]json_value_free [12:08:10]json_value_free done [12:08:10]process_json_proto returns [12:08:10]Send response to host [12:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165996,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:08:10]free response buf [12:08:10]execute_script done [12:08:10]execute_script returns [12:08:10]free content buf [12:08:10]Sock 5.Close socket [12:08:10]Sock 5.Thread stoped [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:17]accept exits with 6 [12:09:17]New connection [12:09:17]New thread 3066776932 created [12:09:17]Thread 3066920292 joined [12:09:17]Waiting for new connection... [12:09:17] Sock 6.Parse request [12:09:17]Sock 6.Check first char [12:09:17]Sock 6.First char is OK [12:09:17]request: POST /json_proto HTTP/1.0 [12:09:17]Method: POST [12:09:17]URL: /json_proto [12:09:17]Method is POST - this is cgi request [12:09:17]url: /json_proto [12:09:17]query_string will be loaded in cgi processing [12:09:17]execute_cgi json_proto POST (null) [12:09:17]execute_cgi path=json_proto method=POST [12:09:17]POST find Content-Length [12:09:17]Host: 172.17.53.195:8080 [12:09:17]Content-Length: 677 [12:09:17]Content-Type: application/json [12:09:17] [12:09:17]POST finish read [12:09:17]Found Content-Length = 677 [12:09:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [12:09:17]execute_script... [12:09:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [12:09:17]POST & json_proto [12:09:17]process_json_proto [12:09:17]json parsed OK: [12:09:17]protocol is kg_v1.0 [12:09:17]action value=close_receipt [12:09:17]process_action close_receipt [12:09:17]cmd_close_receipt [12:09:17]MH_GetDate [12:09:17]Write to MH i2c: F0 00 00 EB 48 22 [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: F0 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: F0 09 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: F0 09 00 EB 48 00 7F 44 16 67 21 48 4A 65 83 [12:09:17]GetLastDocTimeStamp 1729512504 [12:09:17]current date 1729512575 [12:09:17]FM_GetShiftState [12:09:17]SAM_PROTO_GetShiftState [12:09:17]wFMCommunicate request_size=4 [12:09:17]MH_SAM_APDU [12:09:17]CAPDU: 80 13 01 00 [12:09:17]Write to MH i2c: E2 08 00 EC 48 80 13 01 00 00 00 00 00 B1 [12:09:17]Write i2c OK [12:09:17]MH_I2C_Read... [12:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:17]Read from MH i2c: E2 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 0E 00 [12:09:17]MH_I2C_Read... [12:09:17]Read from MH i2c: E2 0E 00 EC 48 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BA [12:09:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:09:17]wFMCommunicate OK [12:09:17]SAM_PROTO_GetShiftState done [12:09:17]FM_GetShiftState done [12:09:17]opened in 1729470944 [12:09:17]opened+sec_in_day 1729557344 [12:09:17]quantity*price = 60027 [12:09:17]sum+1 = 60029 [12:09:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 108 21.10.2024 12:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165997 ФПД: 164714250304476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165997&fm=164714250304476&tin=02508201610067®Number=0000000000091764&sum=60000 [12:09:19]StoreToDocumentArchive [12:09:19]shift 535 fd 165997 [12:09:19]save to /storage/0535/doc_00165997 [12:09:19]save last doc name /storage/0535/doc_00165997 to /storage/kkm_last_doc_name [12:09:19]save OK [12:09:19]Clear old archive folders... [12:09:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:19]tlvbuf is 014459B0 [12:09:19]SAM_PROTO_ClearQueue [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 09 00 00 [12:09:19]Write to MH i2c: E2 08 00 F9 48 80 09 00 00 00 00 00 00 B3 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 F9 48 00 90 00 B5 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]SAM_PROTO_ClearQueue done [12:09:19]KKMCreateOFDPacket [12:09:19]OFDProtocolAddRootSTLVToBuf [12:09:19]FM_MakeSignedData [12:09:19]FM_MakeSignedData [12:09:19]SAM_PROTO_SignData [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 01 02 [12:09:19]Write to MH i2c: E2 08 00 FA 48 80 0D 01 02 00 00 00 00 BB [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 FA 48 00 90 00 B6 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=255 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 6C 00 00 00 F4 03 04 00 80 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 88 02 00 35 04 06 00 95 [12:09:19]Write to MH i2c: E2 02 01 FB 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 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 6C 00 00 00 F4 03 04 00 80 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 88 02 00 35 04 06 00 95 00 00 01 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]OFD Sender: No OFD packet to send [12:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 FB 48 00 90 00 B7 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=10 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 02 02 05 CE 86 60 FB DC [12:09:19]Write to MH i2c: E2 0D 00 FC 48 80 0D 02 02 05 00 CE 86 60 FB DC 00 00 53 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 03 00 FC 48 00 90 00 B8 [12:09:19]RAPDU: 90 00 [12:09:19]wFMCommunicate OK [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 0D 03 02 [12:09:19]Write to MH i2c: E2 08 00 FD 48 80 0D 03 02 00 00 00 00 C0 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 0B 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 0B 00 FD 48 00 0B 3A 15 42 B2 38 D1 8A 90 00 A2 [12:09:19]RAPDU: 0B 3A 15 42 B2 38 D1 8A 90 00 [12:09:19]wFMCommunicate OK [12:09:19]SAM_PROTO_SignData done [12:09:19]FM_MakeSignedData done [12:09:19]CreateOFDProtocolMessage [12:09:19]wFMCommunicate request_size=4 [12:09:19]MH_SAM_APDU [12:09:19]CAPDU: 80 11 00 00 [12:09:19]Write to MH i2c: E2 08 00 FE 48 80 11 00 00 00 00 00 00 C0 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:19]Read from MH i2c: E2 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 17 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: E2 17 00 FE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [12:09:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:09:19]wFMCommunicate OK [12:09:19]CreateOFDProtocolMessage done [12:09:19]OFDSenderStorePacket 165997 [12:09:19]StoreOFDPacket docnum=165997 [12:09:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 08 07 01 18 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 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 6C 00 00 00 F4 03 04 00 80 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 88 02 00 35 04 06 00 95 CE 86 60 FB DC 0B 3A 15 42 B2 38 D1 8A [12:09:19]CheckFolder [12:09:19]dirname=/storage/ofd_packets [12:09:19]CheckFolder done [12:09:19]ProducePacketName [12:09:19]name=ofd_packets/00165997 [12:09:19]NVStorageSaveData ofd_packets/00165997 [12:09:19]File name is /storage/ofd_packets/00165997 [12:09:19]Write 301 bytes [12:09:19]NVStorageSaveData done [12:09:19]OFDSenderStorePacket done [12:09:19]KKMCreateOFDPacket done [12:09:19]NVStorageSaveData kkm_last_timestamp [12:09:19]File name is /storage/kkm_last_timestamp [12:09:19]Write 4 bytes [12:09:19]NVStorageSaveData done [12:09:19]ExternCall_PrintAddStr [12:09:19]wPrintStart [12:09:19]Write to MH i2c: 01 00 00 FF 48 47 [12:09:19]Write i2c OK [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: 01 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: 01 07 00 [12:09:19]MH_I2C_Read... [12:09:19]Read from MH i2c: 01 07 00 FF 48 00 00 00 00 00 FF 0F 5C [12:09:19]RasterBufferAndPrint [12:09:19]line Счет N : (1)220567 [12:09:19]line ИНН: 02508201610067 [12:09:19]line Контрольно-Кассовый Чек [12:09:19]line ПРОДАЖА [12:09:19]line ТРК (МРК, ГНК) : 34 [12:09:19]line Товар: 2710124500 [12:09:19]line Аи-95-К-5 [12:09:19]line 8.090 * 74.20 [12:09:19]line = 600.28 [12:09:19]line НДС 12% НСП 1% [12:09:19]line > о реализуемом товаре [12:09:19]line ОКРУГЛЕНИЕ: -0.28 [12:09:19]line ИТОГО: 600.00 [12:09:19]line Внесено: 600.00 [12:09:19]line СДАЧА: 0.00 [12:09:19]line НСП 1% : 5.31 [12:09:19]line НДС 12% : 63.75 [12:09:19]line Наличными: 600.00 [12:09:19]line Безнал.: 0.00 [12:09:19]line Место: АЗС № 161 "Партнер Нефть" [12:09:19]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:09:19]line СНО: Общий режим [12:09:19]line Чек 108 21.10.2024 12:09 [12:09:19]line Смена: 535 ФФД: 1.0 [12:09:19]line ЗНМ: 0300000104 [12:09:19]line РНМ: 0000000000091764 [12:09:19]line Версия ККМ: 001 [12:09:19]line ФМ: 0000000000871759 [12:09:19]line ФД: 165997 [12:09:19]line ФПД: 164714250304476 [12:09:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T120936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165997&fm=164714250304476&tin=02508201610067®Number=0000000000091764&sum=60000 [12:09:19]OFD Sender: Processing packet 165997 [packets to send 48, broken 47] [12:09:19]ProducePacketName [12:09:19]name=ofd_packets/00165997 [12:09:19]OFD Sender: To server: pG, [12:09:19]CommunicateWithHost lk.salyk.kg:30040 [12:09:19]ConnectInit lk.salyk.kg [12:09:19]written 0, free lines is 4095 [12:09:20]Connected sock=7 [12:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2F 08 07 01 18 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 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 6C 00 00 00 F4 03 04 00 80 44 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 88 02 00 35 04 06 00 95 CE 86 60 FB DC 0B 3A 15 42 B2 38 D1 8A [12:09:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4D 8D 47 00 FA 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 88 02 00 F4 03 04 00 EE EA 15 67 B6 04 01 00 00 4F 40 73 E1 09 8C 49 FF [12:09:20]CommunicateWithHost err = 0 [12:09:20]CheckOFDResponse [12:09:20]1017 (14) - 77093643461234 [12:09:20]1041 (16) - 0000000000871759 [12:09:20]1040 (4) - 165997 [12:09:20]1012 (4) - 21.10.2024 05:47 [12:09:20]1206 (1) - 0 [12:09:20]OFD Sender: Remove packet 165997 [12:09:20]ProducePacketName [12:09:20]name=ofd_packets/00165997 [12:09:20]NVStorageDeleteData [12:09:20]Write to MH i2c: 01 00 00 2A 49 73 [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: 01 07 00 2A 49 00 00 00 00 00 D4 0C 5A [12:09:20]RasterBufferAndPrint [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]line [12:09:20]written 0, free lines is 3292 [12:09:20]MH_Cut [12:09:20]Write to MH i2c: D1 01 00 31 49 01 4C [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 01 00 [12:09:20]MH_I2C_Read... [12:09:20]Read from MH i2c: D1 01 00 31 49 00 4B [12:09:20]Write to MH i2c: 01 00 00 32 49 7B [12:09:20]Write i2c OK [12:09:20]MH_I2C_Read... [12:09:20]OFD Sender: No OFD packet to send [12:09:21]*** Cut start [12:09:21]*** Partial cut [12:09:21]*** CUTSNS_PIN = 1 [12:09:21]*** CUTSNS_PIN = 0 [12:09:21]*** Brake cut motor [12:09:21]Read from MH i2c: 01 [12:09:21]MH_I2C_Read... [12:09:21]*** Stop cut motor [12:09:21]*** Cut end [12:09:21]Read from MH i2c: 01 07 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: 01 07 00 32 49 00 00 00 00 00 FF 0F 90 [12:09:21]process_action close_receipt done [12:09:21]requested_data is exist [12:09:21]produce_requested_data [12:09:21]requested_item fm.sn is exist - process it [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 11 00 00 [12:09:21]Write to MH i2c: E2 08 00 33 49 80 11 00 00 00 00 00 00 F6 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:21]Read from MH i2c: E2 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 [12:09:21]MH_I2C_Read... [12:09:21]Read from MH i2c: E2 17 00 33 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [12:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:09:21]wFMCommunicate OK [12:09:21]requested_item fd.num is exist - process it [12:09:21]SAM_PROTO_GetFieldsCounters [12:09:21]wFMCommunicate request_size=4 [12:09:21]MH_SAM_APDU [12:09:21]CAPDU: 80 13 00 00 [12:09:21]Write to MH i2c: E2 08 00 34 49 80 13 00 00 00 00 00 00 F9 [12:09:21]Write i2c OK [12:09:21]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 62 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 62 00 34 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [12:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetFieldsCounters done [12:09:22]requested_item shift.num is exist - process it [12:09:22]requested_item shift.opened is exist - process it [12:09:22]req_shift_opened [12:09:22]FM_GetShiftState [12:09:22]SAM_PROTO_GetShiftState [12:09:22]wFMCommunicate request_size=4 [12:09:22]MH_SAM_APDU [12:09:22]CAPDU: 80 13 01 00 [12:09:22]Write to MH i2c: E2 08 00 35 49 80 13 01 00 00 00 00 00 FB [12:09:22]Write i2c OK [12:09:22]MH_I2C_Read... [12:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:22]Read from MH i2c: E2 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 [12:09:22]MH_I2C_Read... [12:09:22]Read from MH i2c: E2 0E 00 35 49 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 04 [12:09:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:09:22]wFMCommunicate OK [12:09:22]SAM_PROTO_GetShiftState done [12:09:22]FM_GetShiftState done [12:09:22]req_shift_opened done [12:09:22]requested_item shift.open_date is exist - process it [12:09:22]req_shift_open_date [12:09:22]req_shift_open_date done [12:09:22]produce_requested_data done [12:09:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165997,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:09:22]process_action_free close_receipt [12:09:22]json_value_free [12:09:22]json_value_free done [12:09:22]process_json_proto returns [12:09:22]Send response to host [12:09:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165997,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:09:22]free response buf [12:09:22]execute_script done [12:09:22]execute_script returns [12:09:22]free content buf [12:09:22]Sock 6.Close socket [12:09:22]Sock 6.Thread stoped [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:30]accept exits with 5 [12:17:30]New connection [12:17:30]New thread 3066920292 created [12:17:30]Thread 3066776932 joined [12:17:30]Waiting for new connection... [12:17:30] Sock 5.Parse request [12:17:30]Sock 5.Check first char [12:17:30]Sock 5.First char is OK [12:17:30]request: POST /json_proto HTTP/1.0 [12:17:30]Method: POST [12:17:30]URL: /json_proto [12:17:30]Method is POST - this is cgi request [12:17:30]url: /json_proto [12:17:30]query_string will be loaded in cgi processing [12:17:30]execute_cgi json_proto POST (null) [12:17:30]execute_cgi path=json_proto method=POST [12:17:30]POST find Content-Length [12:17:30]Host: 172.17.53.195:8080 [12:17:30]Content-Length: 677 [12:17:30]Content-Type: application/json [12:17:30] [12:17:30]POST finish read [12:17:30]Found Content-Length = 677 [12:17:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:30]execute_script... [12: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)220568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:30]POST & json_proto [12:17:30]process_json_proto [12:17:30]json parsed OK: [12:17:30]protocol is kg_v1.0 [12:17:30]action value=close_receipt [12:17:30]process_action close_receipt [12:17:30]cmd_close_receipt [12:17:30]MH_GetDate [12:17:30]Write to MH i2c: F0 00 00 36 49 6E [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: F0 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: F0 09 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: F0 09 00 36 49 00 6C 46 16 67 21 48 4A 65 BE [12:17:30]GetLastDocTimeStamp 1729512576 [12:17:30]current date 1729513068 [12:17:30]FM_GetShiftState [12:17:30]SAM_PROTO_GetShiftState [12:17:30]wFMCommunicate request_size=4 [12:17:30]MH_SAM_APDU [12:17:30]CAPDU: 80 13 01 00 [12:17:30]Write to MH i2c: E2 08 00 37 49 80 13 01 00 00 00 00 00 FD [12:17:30]Write i2c OK [12:17:30]MH_I2C_Read... [12:17:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:30]Read from MH i2c: E2 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 0E 00 [12:17:30]MH_I2C_Read... [12:17:30]Read from MH i2c: E2 0E 00 37 49 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 06 [12:17:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:17:30]wFMCommunicate OK [12:17:30]SAM_PROTO_GetShiftState done [12:17:30]FM_GetShiftState done [12:17:30]opened in 1729470944 [12:17:30]opened+sec_in_day 1729557344 [12:17:30]quantity*price = 30038 [12:17:30]sum+1 = 30039 [12:17:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 109 21.10.2024 12:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 165998 ФПД: 265676525710321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121748&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165998&fm=265676525710321&tin=02508201610067®Number=0000000000091764&sum=30000 [12:17:31]StoreToDocumentArchive [12:17:31]shift 535 fd 165998 [12:17:31]save to /storage/0535/doc_00165998 [12:17:31]save last doc name /storage/0535/doc_00165998 to /storage/kkm_last_doc_name [12:17:31]save OK [12:17:31]Clear old archive folders... [12:17:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:31]tlvbuf is 01A72D60 [12:17:31]SAM_PROTO_ClearQueue [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 09 00 00 [12:17:31]Write to MH i2c: E2 08 00 44 49 80 09 00 00 00 00 00 00 FF [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 44 49 00 90 00 01 [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_ClearQueue done [12:17:31]KKMCreateOFDPacket [12:17:31]OFDProtocolAddRootSTLVToBuf [12:17:31]FM_MakeSignedData [12:17:31]FM_MakeSignedData [12:17:31]SAM_PROTO_SignData [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 01 02 [12:17:31]Write to MH i2c: E2 08 00 45 49 80 0D 01 02 00 00 00 00 07 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 45 49 00 90 00 02 [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=255 [12:17:31]MH_SAM_APDU [12:17: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6C 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 88 02 00 35 04 06 00 F1 [12:17:31]Write to MH i2c: E2 02 01 46 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6C 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 88 02 00 35 04 06 00 F1 00 00 2F [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 46 49 00 90 00 03 [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=10 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 02 02 05 A1 A2 F0 AB F1 [12:17:31]Write to MH i2c: E2 0D 00 47 49 80 0D 02 02 05 00 A1 A2 F0 AB F1 00 00 E3 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 03 00 47 49 00 90 00 04 [12:17:31]RAPDU: 90 00 [12:17:31]wFMCommunicate OK [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 0D 03 02 [12:17:31]Write to MH i2c: E2 08 00 48 49 80 0D 03 02 00 00 00 00 0C [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0B 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 0B 00 48 49 00 15 83 AF A8 43 6E 02 8F 90 00 3E [12:17:31]RAPDU: 15 83 AF A8 43 6E 02 8F 90 00 [12:17:31]wFMCommunicate OK [12:17:31]SAM_PROTO_SignData done [12:17:31]FM_MakeSignedData done [12:17:31]CreateOFDProtocolMessage [12:17:31]wFMCommunicate request_size=4 [12:17:31]MH_SAM_APDU [12:17:31]CAPDU: 80 11 00 00 [12:17:31]Write to MH i2c: E2 08 00 49 49 80 11 00 00 00 00 00 00 0C [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:31]Read from MH i2c: E2 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: E2 17 00 49 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [12:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:17:31]wFMCommunicate OK [12:17:31]CreateOFDProtocolMessage done [12:17:31]OFDSenderStorePacket 165998 [12:17:31]StoreOFDPacket docnum=165998 [12:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 78 07 01 2E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6C 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 88 02 00 35 04 06 00 F1 A1 A2 F0 AB F1 15 83 AF A8 43 6E 02 8F [12:17:31]CheckFolder [12:17:31]dirname=/storage/ofd_packets [12:17:31]CheckFolder done [12:17:31]ProducePacketName [12:17:31]name=ofd_packets/00165998 [12:17:31]NVStorageSaveData ofd_packets/00165998 [12:17:31]File name is /storage/ofd_packets/00165998 [12:17:31]Write 301 bytes [12:17:31]NVStorageSaveData done [12:17:31]OFDSenderStorePacket done [12:17:31]KKMCreateOFDPacket done [12:17:31]NVStorageSaveData kkm_last_timestamp [12:17:31]File name is /storage/kkm_last_timestamp [12:17:31]Write 4 bytes [12:17:31]NVStorageSaveData done [12:17:31]ExternCall_PrintAddStr [12:17:31]wPrintStart [12:17:31]Write to MH i2c: 01 00 00 4A 49 93 [12:17:31]Write i2c OK [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 [12:17:31]MH_I2C_Read... [12:17:31]Read from MH i2c: 01 07 00 4A 49 00 00 00 00 00 FF 0F A8 [12:17:31]RasterBufferAndPrint [12:17:31]line Счет N : (1)220568 [12:17:31]line ИНН: 02508201610067 [12:17:31]line Контрольно-Кассовый Чек [12:17:31]line ПРОДАЖА [12:17:31]line ТРК (МРК, ГНК) : 13 [12:17:31]line Товар: 2710124130 [12:17:31]line Аи-92-К-5 [12:17:31]line 4.490 * 66.90 [12:17:31]line = 300.38 [12:17:31]line НДС 12% НСП 1% [12:17:31]line > о реализуемом товаре [12:17:31]line ОКРУГЛЕНИЕ: -0.38 [12:17:31]line ИТОГО: 300.00 [12:17:31]line Внесено: 300.00 [12:17:31]line СДАЧА: 0.00 [12:17:31]line НСП 1% : 2.66 [12:17:31]line НДС 12% : 31.90 [12:17:31]line Наличными: 300.00 [12:17:31]line Безнал.: 0.00 [12:17:31]line Место: АЗС № 161 "Партнер Нефть" [12:17:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:17:31]line СНО: Общий режим [12:17:31]line Чек 109 21.10.2024 12:17 [12:17:31]line Смена: 535 ФФД: 1.0 [12:17:31]line ЗНМ: 0300000104 [12:17:31]line РНМ: 0000000000091764 [12:17:31]line Версия ККМ: 001 [12:17:31]line ФМ: 0000000000871759 [12:17:31]line ФД: 165998 [12:17:31]line ФПД: 265676525710321 [12:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T121748&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165998&fm=265676525710321&tin=02508201610067®Number=0000000000091764&sum=30000 [12:17:32]OFD Sender: Processing packet 165998 [packets to send 48, broken 47] [12:17:32]ProducePacketName [12:17:32]name=ofd_packets/00165998 [12:17:32]OFD Sender: To server: pG, [12:17:32]CommunicateWithHost lk.salyk.kg:30040 [12:17:32]ConnectInit lk.salyk.kg [12:17:32]written 0, free lines is 4095 [12:17:32]Connected sock=9 [12: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 35 39 0F 01 00 00 C5 78 07 01 2E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 6C 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 88 02 00 35 04 06 00 F1 A1 A2 F0 AB F1 15 83 AF A8 43 6E 02 8F [12:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8F 25 47 00 7A 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 88 02 00 F4 03 04 00 DA EC 15 67 B6 04 01 00 00 3C BD 45 87 19 C8 19 F9 [12:17:32]CommunicateWithHost err = 0 [12:17:32]CheckOFDResponse [12:17:32]1017 (14) - 77093643461234 [12:17:32]1041 (16) - 0000000000871759 [12:17:32]1040 (4) - 165998 [12:17:32]1012 (4) - 21.10.2024 05:55 [12:17:32]1206 (1) - 0 [12:17:32]OFD Sender: Remove packet 165998 [12:17:32]ProducePacketName [12:17:32]name=ofd_packets/00165998 [12:17:32]NVStorageDeleteData [12:17:32]Write to MH i2c: 01 00 00 75 49 BE [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: 01 07 00 75 49 00 00 00 00 00 D0 0C A1 [12:17:32]RasterBufferAndPrint [12:17:32]line [12:17:32]line [12:17:32]line [12:17:32]line [12:17:32]line [12:17:32]written 0, free lines is 3285 [12:17:32]MH_Cut [12:17:32]Write to MH i2c: D1 01 00 7C 49 01 97 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: D1 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: D1 01 00 [12:17:32]MH_I2C_Read... [12:17:32]Read from MH i2c: D1 01 00 7C 49 00 96 [12:17:32]Write to MH i2c: 01 00 00 7D 49 C6 [12:17:32]Write i2c OK [12:17:32]MH_I2C_Read... [12:17:32]OFD Sender: No OFD packet to send [12:17:33]*** Cut start [12:17:33]*** Partial cut [12:17:33]*** CUTSNS_PIN = 1 [12:17:33]*** CUTSNS_PIN = 0 [12:17:33]*** Brake cut motor [12:17:34]Read from MH i2c: 01 [12:17:34]MH_I2C_Read... [12:17:34]*** Stop cut motor [12:17:34]*** Cut end [12:17:34]Read from MH i2c: 01 07 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: 01 07 00 7D 49 00 00 00 00 00 FF 0F DB [12:17:34]process_action close_receipt done [12:17:34]requested_data is exist [12:17:34]produce_requested_data [12:17:34]requested_item fm.sn is exist - process it [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 11 00 00 [12:17:34]Write to MH i2c: E2 08 00 7E 49 80 11 00 00 00 00 00 00 41 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 17 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 17 00 7E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [12:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:17:34]wFMCommunicate OK [12:17:34]requested_item fd.num is exist - process it [12:17:34]SAM_PROTO_GetFieldsCounters [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 13 00 00 [12:17:34]Write to MH i2c: E2 08 00 7F 49 80 13 00 00 00 00 00 00 44 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 62 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 62 00 7F 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:34]wFMCommunicate OK [12:17:34]SAM_PROTO_GetFieldsCounters done [12:17:34]requested_item shift.num is exist - process it [12:17:34]requested_item shift.opened is exist - process it [12:17:34]req_shift_opened [12:17:34]FM_GetShiftState [12:17:34]SAM_PROTO_GetShiftState [12:17:34]wFMCommunicate request_size=4 [12:17:34]MH_SAM_APDU [12:17:34]CAPDU: 80 13 01 00 [12:17:34]Write to MH i2c: E2 08 00 80 49 80 13 01 00 00 00 00 00 46 [12:17:34]Write i2c OK [12:17:34]MH_I2C_Read... [12:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:34]Read from MH i2c: E2 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 0E 00 [12:17:34]MH_I2C_Read... [12:17:34]Read from MH i2c: E2 0E 00 80 49 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4F [12:17:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:17:34]wFMCommunicate OK [12:17:34]SAM_PROTO_GetShiftState done [12:17:34]FM_GetShiftState done [12:17:34]req_shift_opened done [12:17:34]requested_item shift.open_date is exist - process it [12:17:34]req_shift_open_date [12:17:34]req_shift_open_date done [12:17:34]produce_requested_data done [12:17:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165998,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:17:34]process_action_free close_receipt [12:17:34]json_value_free [12:17:34]json_value_free done [12:17:34]process_json_proto returns [12:17:34]Send response to host [12:17:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165998,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:17:34]free response buf [12:17:34]execute_script done [12:17:34]execute_script returns [12:17:34]free content buf [12:17:34]Sock 5.Close socket [12:17:34]Sock 5.Thread stoped [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:08]OFD Sender: No OFD packet to send [12:18:13]OFD Sender: No OFD packet to send [12:18:18]OFD Sender: No OFD packet to send [12:18:23]OFD Sender: No OFD packet to send [12:18:28]OFD Sender: No OFD packet to send [12:18:33]OFD Sender: No OFD packet to send [12:18:38]OFD Sender: No OFD packet to send [12:18:43]OFD Sender: No OFD packet to send [12:18:48]OFD Sender: No OFD packet to send [12:18:53]OFD Sender: No OFD packet to send [12:18:58]OFD Sender: No OFD packet to send [12:19:03]OFD Sender: No OFD packet to send [12:19:08]OFD Sender: No OFD packet to send [12:19:13]OFD Sender: No OFD packet to send [12:19:18]OFD Sender: No OFD packet to send [12:19:23]OFD Sender: No OFD packet to send [12:19:28]OFD Sender: No OFD packet to send [12:19:33]OFD Sender: No OFD packet to send [12:19:38]OFD Sender: No OFD packet to send [12:19:43]OFD Sender: No OFD packet to send [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:54]accept exits with 6 [12:19:54]New connection [12:19:54]New thread 3066776932 created [12:19:54]Thread 3066920292 joined [12:19:54]Waiting for new connection... [12:19:54] Sock 6.Parse request [12:19:54]Sock 6.Check first char [12:19:54]Sock 6.First char is OK [12:19:54]request: POST /json_proto HTTP/1.0 [12:19:54]Method: POST [12:19:54]URL: /json_proto [12:19:54]Method is POST - this is cgi request [12:19:54]url: /json_proto [12:19:54]query_string will be loaded in cgi processing [12:19:54]execute_cgi json_proto POST (null) [12:19:54]execute_cgi path=json_proto method=POST [12:19:54]POST find Content-Length [12:19:54]Host: 172.17.53.195:8080 [12:19:54]Content-Length: 766 [12:19:54]Content-Type: application/json [12:19:54] [12:19:54]POST finish read [12:19:54]Found Content-Length = 766 [12:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:54]execute_script... [12:19: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)220569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:54]POST & json_proto [12:19:54]process_json_proto [12:19:54]json parsed OK: [12:19:54]protocol is kg_v1.0 [12:19:54]action value=close_receipt [12:19:54]process_action close_receipt [12:19:54]cmd_close_receipt [12:19:54]MH_GetDate [12:19:54]Write to MH i2c: F0 00 00 81 49 B9 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: F0 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: F0 09 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: F0 09 00 81 49 00 FC 46 16 67 21 48 4A 65 99 [12:19:54]GetLastDocTimeStamp 1729513068 [12:19:54]current date 1729513212 [12:19:54]FM_GetShiftState [12:19:54]SAM_PROTO_GetShiftState [12:19:54]wFMCommunicate request_size=4 [12:19:54]MH_SAM_APDU [12:19:54]CAPDU: 80 13 01 00 [12:19:54]Write to MH i2c: E2 08 00 82 49 80 13 01 00 00 00 00 00 48 [12:19:54]Write i2c OK [12:19:54]MH_I2C_Read... [12:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:54]Read from MH i2c: E2 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0E 00 [12:19:54]MH_I2C_Read... [12:19:54]Read from MH i2c: E2 0E 00 82 49 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 51 [12:19:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:19:54]wFMCommunicate OK [12:19:54]SAM_PROTO_GetShiftState done [12:19:54]FM_GetShiftState done [12:19:54]opened in 1729470944 [12:19:54]opened+sec_in_day 1729557344 [12:19:54]quantity*price = 100050 [12:19:54]sum+1 = 100052 [12:19:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 110 21.10.2024 12:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 165999 ФПД: 46042489622398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122012&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165999&fm=46042489622398&tin=02508201610067®Number=0000000000091764&sum=100051 [12:19:55]StoreToDocumentArchive [12:19:55]shift 535 fd 165999 [12:19:55]save to /storage/0535/doc_00165999 [12:19:55]save last doc name /storage/0535/doc_00165999 to /storage/kkm_last_doc_name [12:19:55]save OK [12:19:55]Clear old archive folders... [12:19:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:19:55]tlvbuf is 01616870 [12:19:55]SAM_PROTO_ClearQueue [12:19:55]wFMCommunicate request_size=4 [12:19:55]MH_SAM_APDU [12:19:55]CAPDU: 80 09 00 00 [12:19:55]Write to MH i2c: E2 08 00 8F 49 80 09 00 00 00 00 00 00 4A [12:19:55]Write i2c OK [12:19:55]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 8F 49 00 90 00 4C [12:19:56]RAPDU: 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_ClearQueue done [12:19:56]KKMCreateOFDPacket [12:19:56]OFDProtocolAddRootSTLVToBuf [12:19:56]FM_MakeSignedData [12:19:56]FM_MakeSignedData [12:19:56]SAM_PROTO_SignData [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 0D 01 02 [12:19:56]Write to MH i2c: E2 08 00 90 49 80 0D 01 02 00 00 00 00 52 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 90 49 00 90 00 4D [12:19:56]RAPDU: 90 00 [12:19:56]wFMCommunicate OK [12:19:56]wFMCommunicate request_size=255 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 88 02 00 35 04 06 00 29 E0 1A 3D [12:19:56]Write to MH i2c: E2 02 01 91 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 88 02 00 35 04 06 00 29 E0 1A 3D 00 00 E3 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 91 49 00 90 00 4E [12:19:56]RAPDU: 90 00 [12:19:56]wFMCommunicate OK [12:19:56]wFMCommunicate request_size=7 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 0D 02 02 02 0F 7E [12:19:56]Write to MH i2c: E2 0A 00 92 49 80 0D 02 02 02 00 0F 7E 00 00 E6 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 03 00 92 49 00 90 00 4F [12:19:56]RAPDU: 90 00 [12:19:56]wFMCommunicate OK [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 0D 03 02 [12:19:56]Write to MH i2c: E2 08 00 93 49 80 0D 03 02 00 00 00 00 57 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0B 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 0B 00 93 49 00 B3 99 5D 0B 2D F4 7E C3 90 00 6E [12:19:56]RAPDU: B3 99 5D 0B 2D F4 7E C3 90 00 [12:19:56]wFMCommunicate OK [12:19:56]SAM_PROTO_SignData done [12:19:56]FM_MakeSignedData done [12:19:56]CreateOFDProtocolMessage [12:19:56]wFMCommunicate request_size=4 [12:19:56]MH_SAM_APDU [12:19:56]CAPDU: 80 11 00 00 [12:19:56]Write to MH i2c: E2 08 00 94 49 80 11 00 00 00 00 00 00 57 [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:56]Read from MH i2c: E2 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: E2 17 00 94 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [12:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:19:56]wFMCommunicate OK [12:19:56]CreateOFDProtocolMessage done [12:19:56]OFDSenderStorePacket 165999 [12:19:56]StoreOFDPacket docnum=165999 [12:19:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5B F7 04 01 48 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 88 02 00 35 04 06 00 29 E0 1A 3D 0F 7E B3 99 5D 0B 2D F4 7E C3 [12:19:56]CheckFolder [12:19:56]dirname=/storage/ofd_packets [12:19:56]CheckFolder done [12:19:56]ProducePacketName [12:19:56]name=ofd_packets/00165999 [12:19:56]NVStorageSaveData ofd_packets/00165999 [12:19:56]File name is /storage/ofd_packets/00165999 [12:19:56]Write 298 bytes [12:19:56]NVStorageSaveData done [12:19:56]OFDSenderStorePacket done [12:19:56]KKMCreateOFDPacket done [12:19:56]NVStorageSaveData kkm_last_timestamp [12:19:56]File name is /storage/kkm_last_timestamp [12:19:56]Write 4 bytes [12:19:56]NVStorageSaveData done [12:19:56]ExternCall_PrintAddStr [12:19:56]wPrintStart [12:19:56]Write to MH i2c: 01 00 00 95 49 DE [12:19:56]Write i2c OK [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: 01 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: 01 07 00 [12:19:56]MH_I2C_Read... [12:19:56]Read from MH i2c: 01 07 00 95 49 00 00 00 00 00 FF 0F F3 [12:19:56]RasterBufferAndPrint [12:19:56]line Счет N : (1)220569 [12:19:56]line ИНН: 02508201610067 [12:19:56]line Контрольно-Кассовый Чек [12:19:56]line ПРОДАЖА [12:19:56]line ТРК (МРК, ГНК) : 11 [12:19:56]line Товар: 2710194210 [12:19:56]line ДТ-К-5 [12:19:56]line 13.130 * 76.20 [12:19:56]line = 1000.51 [12:19:56]line НДС 12% НСП 1% [12:19:56]line > о реализуемом товаре [12:19:56]line ИТОГО: 1000.51 [12:19:56]line НСП 1% : 8.85 [12:19:56]line НДС 12% : 106.25 [12:19:56]line Наличными: 0.00 [12:19:56]line Безнал.: 1000.51 [12:19:56]line Место: АЗС № 161 "Партнер Нефть" [12:19:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:19:56]line СНО: Общий режим [12:19:56]line Чек 110 21.10.2024 12:20 [12:19:56]line Смена: 535 ФФД: 1.0 [12:19:56]line ЗНМ: 0300000104 [12:19:56]line РНМ: 0000000000091764 [12:19:56]line Версия ККМ: 001 [12:19:56]line Платежная система: Mbank [12:19:56]line ФМ: 0000000000871759 [12:19:56]line ФД: 165999 [12:19:56]line ФПД: 46042489622398 [12:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122012&type=1&operation_type=1&fn_number=0000000000871759&fd_number=165999&fm=46042489622398&tin=02508201610067®Number=0000000000091764&sum=100051 [12:19:56]OFD Sender: Processing packet 165999 [packets to send 48, broken 47] [12:19:56]ProducePacketName [12:19:56]name=ofd_packets/00165999 [12:19:56]OFD Sender: To server: pG, [12:19:56]CommunicateWithHost lk.salyk.kg:30040 [12:19:56]ConnectInit lk.salyk.kg [12:19:56]written 0, free lines is 4095 [12:19:56]Connected sock=9 [12:19:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 5B F7 04 01 48 AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 FC 46 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 88 02 00 35 04 06 00 29 E0 1A 3D 0F 7E B3 99 5D 0B 2D F4 7E C3 [12:19:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8D 78 47 00 62 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 88 02 00 F4 03 04 00 6B ED 15 67 B6 04 01 00 00 2C 54 74 8E E0 5E 34 27 [12:19:57]CommunicateWithHost err = 0 [12:19:57]CheckOFDResponse [12:19:57]1017 (14) - 77093643461234 [12:19:57]1041 (16) - 0000000000871759 [12:19:57]1040 (4) - 165999 [12:19:57]1012 (4) - 21.10.2024 05:58 [12:19:57]1206 (1) - 0 [12:19:57]OFD Sender: Remove packet 165999 [12:19:57]ProducePacketName [12:19:57]name=ofd_packets/00165999 [12:19:57]NVStorageDeleteData [12:19:57]Write to MH i2c: 01 00 00 BE 49 07 [12:19:57]Write i2c OK [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: 01 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: 01 07 00 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: 01 07 00 BE 49 00 00 00 00 00 EB 0C 05 [12:19:57]RasterBufferAndPrint [12:19:57]line [12:19:57]line [12:19:57]line [12:19:57]line [12:19:57]line [12:19:57]written 0, free lines is 3314 [12:19:57]MH_Cut [12:19:57]Write to MH i2c: D1 01 00 C5 49 01 E0 [12:19:57]Write i2c OK [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: D1 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: D1 01 00 [12:19:57]MH_I2C_Read... [12:19:57]Read from MH i2c: D1 01 00 C5 49 00 DF [12:19:57]Write to MH i2c: 01 00 00 C6 49 0F [12:19:57]Write i2c OK [12:19:57]MH_I2C_Read... [12:19:57]OFD Sender: No OFD packet to send [12:19:58]*** Cut start [12:19:58]*** Partial cut [12:19:58]*** CUTSNS_PIN = 1 [12:19:58]*** CUTSNS_PIN = 0 [12:19:58]*** Brake cut motor [12:19:58]Read from MH i2c: 01 [12:19:58]MH_I2C_Read... [12:19:58]*** Stop cut motor [12:19:58]*** Cut end [12:19:58]Read from MH i2c: 01 07 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: 01 07 00 C6 49 00 00 00 00 00 FF 0F 24 [12:19:58]process_action close_receipt done [12:19:58]requested_data is exist [12:19:58]produce_requested_data [12:19:58]requested_item fm.sn is exist - process it [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 11 00 00 [12:19:58]Write to MH i2c: E2 08 00 C7 49 80 11 00 00 00 00 00 00 8A [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 17 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 17 00 C7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [12:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:19:58]wFMCommunicate OK [12:19:58]requested_item fd.num is exist - process it [12:19:58]SAM_PROTO_GetFieldsCounters [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 13 00 00 [12:19:58]Write to MH i2c: E2 08 00 C8 49 80 13 00 00 00 00 00 00 8D [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 62 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 62 00 C8 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [12:19:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:58]wFMCommunicate OK [12:19:58]SAM_PROTO_GetFieldsCounters done [12:19:58]requested_item shift.num is exist - process it [12:19:58]requested_item shift.opened is exist - process it [12:19:58]req_shift_opened [12:19:58]FM_GetShiftState [12:19:58]SAM_PROTO_GetShiftState [12:19:58]wFMCommunicate request_size=4 [12:19:58]MH_SAM_APDU [12:19:58]CAPDU: 80 13 01 00 [12:19:58]Write to MH i2c: E2 08 00 C9 49 80 13 01 00 00 00 00 00 8F [12:19:58]Write i2c OK [12:19:58]MH_I2C_Read... [12:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:58]Read from MH i2c: E2 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 0E 00 [12:19:58]MH_I2C_Read... [12:19:58]Read from MH i2c: E2 0E 00 C9 49 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 98 [12:19:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:19:58]wFMCommunicate OK [12:19:58]SAM_PROTO_GetShiftState done [12:19:58]FM_GetShiftState done [12:19:58]req_shift_opened done [12:19:58]requested_item shift.open_date is exist - process it [12:19:58]req_shift_open_date [12:19:58]req_shift_open_date done [12:19:58]produce_requested_data done [12:19:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":165999,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:19:58]process_action_free close_receipt [12:19:58]json_value_free [12:19:58]json_value_free done [12:19:58]process_json_proto returns [12:19:58]Send response to host [12:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":165999,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:19:58]free response buf [12:19:58]execute_script done [12:19:58]execute_script returns [12:19:58]free content buf [12:19:58]Sock 6.Close socket [12:19:58]Sock 6.Thread stoped [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:48]accept exits with 5 [12:22:48]New connection [12:22:48]New thread 3066920292 created [12:22:48]Thread 3066776932 joined [12:22:48]Waiting for new connection... [12:22:48] Sock 5.Parse request [12:22:48]Sock 5.Check first char [12:22:48]Sock 5.First char is OK [12:22:48]request: POST /json_proto HTTP/1.0 [12:22:48]Method: POST [12:22:48]URL: /json_proto [12:22:48]Method is POST - this is cgi request [12:22:48]url: /json_proto [12:22:48]query_string will be loaded in cgi processing [12:22:48]execute_cgi json_proto POST (null) [12:22:48]execute_cgi path=json_proto method=POST [12:22:48]POST find Content-Length [12:22:48]Host: 172.17.53.195:8080 [12:22:48]Content-Length: 769 [12:22:48]Content-Type: application/json [12:22:48] [12:22:48]POST finish read [12:22:48]Found Content-Length = 769 [12:22:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:48]execute_script... [12: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)220570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:48]POST & json_proto [12:22:48]process_json_proto [12:22:48]json parsed OK: [12:22:48]protocol is kg_v1.0 [12:22:48]action value=close_receipt [12:22:48]process_action close_receipt [12:22:48]cmd_close_receipt [12:22:48]MH_GetDate [12:22:48]Write to MH i2c: F0 00 00 CA 49 02 [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: F0 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: F0 09 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: F0 09 00 CA 49 00 AA 47 16 67 21 48 4A 65 91 [12:22:48]GetLastDocTimeStamp 1729513212 [12:22:48]current date 1729513386 [12:22:48]FM_GetShiftState [12:22:48]SAM_PROTO_GetShiftState [12:22:48]wFMCommunicate request_size=4 [12:22:48]MH_SAM_APDU [12:22:48]CAPDU: 80 13 01 00 [12:22:48]Write to MH i2c: E2 08 00 CB 49 80 13 01 00 00 00 00 00 91 [12:22:48]Write i2c OK [12:22:48]MH_I2C_Read... [12:22:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:48]Read from MH i2c: E2 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 0E 00 [12:22:48]MH_I2C_Read... [12:22:48]Read from MH i2c: E2 0E 00 CB 49 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9A [12:22:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:22:48]wFMCommunicate OK [12:22:48]SAM_PROTO_GetShiftState done [12:22:48]FM_GetShiftState done [12:22:48]opened in 1729470944 [12:22:48]opened+sec_in_day 1729557344 [12:22:48]quantity*price = 200031 [12:22:48]sum+1 = 200032 [12:22:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 111 21.10.2024 12:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166000 ФПД: 193747934553248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166000&fm=193747934553248&tin=02508201610067®Number=0000000000091764&sum=200031 [12:22:49]StoreToDocumentArchive [12:22:49]shift 535 fd 166000 [12:22:49]save to /storage/0535/doc_00166000 [12:22:49]save last doc name /storage/0535/doc_00166000 to /storage/kkm_last_doc_name [12:22:49]save OK [12:22:49]Clear old archive folders... [12:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:49]tlvbuf is 0157E680 [12:22:49]SAM_PROTO_ClearQueue [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 09 00 00 [12:22:49]Write to MH i2c: E2 08 00 D8 49 80 09 00 00 00 00 00 00 93 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 D8 49 00 90 00 95 [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]SAM_PROTO_ClearQueue done [12:22:49]KKMCreateOFDPacket [12:22:49]OFDProtocolAddRootSTLVToBuf [12:22:49]FM_MakeSignedData [12:22:49]FM_MakeSignedData [12:22:49]SAM_PROTO_SignData [12:22:49]wFMCommunicate request_size=4 [12:22:49]MH_SAM_APDU [12:22:49]CAPDU: 80 0D 01 02 [12:22:49]Write to MH i2c: E2 08 00 D9 49 80 0D 01 02 00 00 00 00 9B [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:49]Read from MH i2c: E2 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 [12:22:49]MH_I2C_Read... [12:22:49]Read from MH i2c: E2 03 00 D9 49 00 90 00 96 [12:22:49]RAPDU: 90 00 [12:22:49]wFMCommunicate OK [12:22:49]wFMCommunicate request_size=255 [12:22:49]MH_SAM_APDU [12: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 88 02 00 35 04 06 00 B0 [12:22:49]Write to MH i2c: E2 02 01 DA 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 88 02 00 35 04 06 00 B0 00 00 51 [12:22:49]Write i2c OK [12:22:49]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 03 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 03 00 DA 49 00 90 00 97 [12:22:50]RAPDU: 90 00 [12:22:50]wFMCommunicate OK [12:22:50]wFMCommunicate request_size=10 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 0D 02 02 05 36 74 D0 A4 A0 [12:22:50]Write to MH i2c: E2 0D 00 DB 49 80 0D 02 02 05 00 36 74 D0 A4 A0 00 00 66 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 03 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 03 00 DB 49 00 90 00 98 [12:22:50]RAPDU: 90 00 [12:22:50]wFMCommunicate OK [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 0D 03 02 [12:22:50]Write to MH i2c: E2 08 00 DC 49 80 0D 03 02 00 00 00 00 A0 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0B 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 0B 00 DC 49 00 67 1A A9 37 D3 D1 7E 24 90 00 48 [12:22:50]RAPDU: 67 1A A9 37 D3 D1 7E 24 90 00 [12:22:50]wFMCommunicate OK [12:22:50]SAM_PROTO_SignData done [12:22:50]FM_MakeSignedData done [12:22:50]CreateOFDProtocolMessage [12:22:50]wFMCommunicate request_size=4 [12:22:50]MH_SAM_APDU [12:22:50]CAPDU: 80 11 00 00 [12:22:50]Write to MH i2c: E2 08 00 DD 49 80 11 00 00 00 00 00 00 A0 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:50]Read from MH i2c: E2 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 17 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: E2 17 00 DD 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [12:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:22:50]wFMCommunicate OK [12:22:50]CreateOFDProtocolMessage done [12:22:50]OFDSenderStorePacket 166000 [12:22:50]StoreOFDPacket docnum=166000 [12:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 C4 07 01 7F C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 88 02 00 35 04 06 00 B0 36 74 D0 A4 A0 67 1A A9 37 D3 D1 7E 24 [12:22:50]CheckFolder [12:22:50]dirname=/storage/ofd_packets [12:22:50]CheckFolder done [12:22:50]ProducePacketName [12:22:50]name=ofd_packets/00166000 [12:22:50]NVStorageSaveData ofd_packets/00166000 [12:22:50]File name is /storage/ofd_packets/00166000 [12:22:50]Write 301 bytes [12:22:50]NVStorageSaveData done [12:22:50]OFDSenderStorePacket done [12:22:50]KKMCreateOFDPacket done [12:22:50]NVStorageSaveData kkm_last_timestamp [12:22:50]File name is /storage/kkm_last_timestamp [12:22:50]Write 4 bytes [12:22:50]NVStorageSaveData done [12:22:50]ExternCall_PrintAddStr [12:22:50]wPrintStart [12:22:50]Write to MH i2c: 01 00 00 DE 49 27 [12:22:50]Write i2c OK [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 [12:22:50]MH_I2C_Read... [12:22:50]Read from MH i2c: 01 07 00 DE 49 00 00 00 00 00 FF 0F 3C [12:22:50]RasterBufferAndPrint [12:22:50]line Счет N : (1)220570 [12:22:50]line ИНН: 02508201610067 [12:22:50]line Контрольно-Кассовый Чек [12:22:50]line ПРОДАЖА [12:22:50]line ТРК (МРК, ГНК) : 33 [12:22:50]line Товар: 2710124130 [12:22:50]line Аи-92-К-5 [12:22:50]line 29.900 * 66.90 [12:22:50]line = 2000.31 [12:22:50]line НДС 12% НСП 1% [12:22:50]line > о реализуемом товаре [12:22:50]line ИТОГО: 2000.31 [12:22:50]line НСП 1% : 17.70 [12:22:50]line НДС 12% : 212.42 [12:22:50]line Наличными: 0.00 [12:22:50]line Безнал.: 2000.31 [12:22:50]line Место: АЗС № 161 "Партнер Нефть" [12:22:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:22:50]line СНО: Общий режим [12:22:50]line Чек 111 21.10.2024 12:23 [12:22:50]line Смена: 535 ФФД: 1.0 [12:22:50]line ЗНМ: 0300000104 [12:22:50]line РНМ: 0000000000091764 [12:22:50]line Версия ККМ: 001 [12:22:50]line Платежная система: Mbank [12:22:50]line ФМ: 0000000000871759 [12:22:50]line ФД: 166000 [12:22:50]line ФПД: 193747934553248 [12:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166000&fm=193747934553248&tin=02508201610067®Number=0000000000091764&sum=200031 [12:22:50]written 0, free lines is 4095 [12:22:50]OFD Sender: Processing packet 166000 [packets to send 48, broken 47] [12:22:50]ProducePacketName [12:22:50]name=ofd_packets/00166000 [12:22:50]OFD Sender: To server: pG, [12:22:50]CommunicateWithHost lk.salyk.kg:30040 [12:22:50]ConnectInit lk.salyk.kg [12:22:50]Connected sock=7 [12: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 35 39 0F 01 00 00 25 C4 07 01 7F C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 AA 47 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 88 02 00 35 04 06 00 B0 36 74 D0 A4 A0 67 1A A9 37 D3 D1 7E 24 [12: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 35 39 4F 00 00 00 C6 DD 47 00 B8 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 88 02 00 F4 03 04 00 19 EE 15 67 B6 04 01 00 00 68 83 73 51 FD C6 3D F9 [12:22:51]CommunicateWithHost err = 0 [12:22:51]CheckOFDResponse [12:22:51]1017 (14) - 77093643461234 [12:22:51]1041 (16) - 0000000000871759 [12:22:51]1040 (4) - 166000 [12:22:51]1012 (4) - 21.10.2024 06:00 [12:22:51]1206 (1) - 0 [12:22:51]OFD Sender: Remove packet 166000 [12:22:51]ProducePacketName [12:22:51]name=ofd_packets/00166000 [12:22:51]NVStorageDeleteData [12:22:51]Write to MH i2c: 01 00 00 07 4A 51 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: 01 07 00 07 4A 00 00 00 00 00 EC 0C 50 [12:22:51]RasterBufferAndPrint [12:22:51]line [12:22:51]line [12:22:51]line [12:22:51]line [12:22:51]line [12:22:51]written 0, free lines is 3317 [12:22:51]MH_Cut [12:22:51]Write to MH i2c: D1 01 00 0E 4A 01 2A [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: D1 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: D1 01 00 [12:22:51]MH_I2C_Read... [12:22:51]Read from MH i2c: D1 01 00 0E 4A 00 29 [12:22:51]Write to MH i2c: 01 00 00 0F 4A 59 [12:22:51]Write i2c OK [12:22:51]MH_I2C_Read... [12:22:51]OFD Sender: No OFD packet to send [12:22:51]*** Cut start [12:22:51]*** Partial cut [12:22:51]*** CUTSNS_PIN = 1 [12:22:51]*** CUTSNS_PIN = 0 [12:22:52]*** Brake cut motor [12:22:52]Read from MH i2c: 01 [12:22:52]MH_I2C_Read... [12:22:52]*** Stop cut motor [12:22:52]*** Cut end [12:22:52]Read from MH i2c: 01 07 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: 01 07 00 0F 4A 00 00 00 00 00 FF 0F 6E [12:22:52]process_action close_receipt done [12:22:52]requested_data is exist [12:22:52]produce_requested_data [12:22:52]requested_item fm.sn is exist - process it [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 11 00 00 [12:22:52]Write to MH i2c: E2 08 00 10 4A 80 11 00 00 00 00 00 00 D4 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 17 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 17 00 10 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [12:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:22:52]wFMCommunicate OK [12:22:52]requested_item fd.num is exist - process it [12:22:52]SAM_PROTO_GetFieldsCounters [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 13 00 00 [12:22:52]Write to MH i2c: E2 08 00 11 4A 80 13 00 00 00 00 00 00 D7 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 62 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 62 00 11 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetFieldsCounters done [12:22:52]requested_item shift.num is exist - process it [12:22:52]requested_item shift.opened is exist - process it [12:22:52]req_shift_opened [12:22:52]FM_GetShiftState [12:22:52]SAM_PROTO_GetShiftState [12:22:52]wFMCommunicate request_size=4 [12:22:52]MH_SAM_APDU [12:22:52]CAPDU: 80 13 01 00 [12:22:52]Write to MH i2c: E2 08 00 12 4A 80 13 01 00 00 00 00 00 D9 [12:22:52]Write i2c OK [12:22:52]MH_I2C_Read... [12:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:52]Read from MH i2c: E2 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 [12:22:52]MH_I2C_Read... [12:22:52]Read from MH i2c: E2 0E 00 12 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E2 [12:22:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:22:52]wFMCommunicate OK [12:22:52]SAM_PROTO_GetShiftState done [12:22:52]FM_GetShiftState done [12:22:52]req_shift_opened done [12:22:52]requested_item shift.open_date is exist - process it [12:22:52]req_shift_open_date [12:22:52]req_shift_open_date done [12:22:52]produce_requested_data done [12:22:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166000,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:22:52]process_action_free close_receipt [12:22:52]json_value_free [12:22:52]json_value_free done [12:22:52]process_json_proto returns [12:22:52]Send response to host [12:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166000,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:22:52]free response buf [12:22:52]execute_script done [12:22:52]execute_script returns [12:22:52]free content buf [12:22:52]Sock 5.Close socket [12:22:52]Sock 5.Thread stoped [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [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:14]accept exits with 6 [12:25:14]New connection [12:25:14]New thread 3066776932 created [12:25:14]Thread 3066920292 joined [12:25:14]Waiting for new connection... [12:25:14] Sock 6.Parse request [12:25:14]Sock 6.Check first char [12:25:14]Sock 6.First char is OK [12:25:14]request: POST /json_proto HTTP/1.0 [12:25:14]Method: POST [12:25:14]URL: /json_proto [12:25:14]Method is POST - this is cgi request [12:25:14]url: /json_proto [12:25:14]query_string will be loaded in cgi processing [12:25:14]execute_cgi json_proto POST (null) [12:25:14]execute_cgi path=json_proto method=POST [12:25:14]POST find Content-Length [12:25:14]Host: 172.17.53.195:8080 [12:25:14]Content-Length: 677 [12:25:14]Content-Type: application/json [12:25:14] [12:25:14]POST finish read [12:25:14]Found Content-Length = 677 [12:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:14]execute_script... [12: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)220571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:14]POST & json_proto [12:25:14]process_json_proto [12:25:14]json parsed OK: [12:25:14]protocol is kg_v1.0 [12:25:14]action value=close_receipt [12:25:14]process_action close_receipt [12:25:14]cmd_close_receipt [12:25:14]MH_GetDate [12:25:14]Write to MH i2c: F0 00 00 13 4A 4C [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: F0 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: F0 09 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: F0 09 00 13 4A 00 3C 48 16 67 21 48 4A 65 6E [12:25:14]GetLastDocTimeStamp 1729513386 [12:25:14]current date 1729513532 [12:25:14]FM_GetShiftState [12:25:14]SAM_PROTO_GetShiftState [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 13 01 00 [12:25:14]Write to MH i2c: E2 08 00 14 4A 80 13 01 00 00 00 00 00 DB [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0E 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0E 00 14 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E4 [12:25:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:25:14]wFMCommunicate OK [12:25:14]SAM_PROTO_GetShiftState done [12:25:14]FM_GetShiftState done [12:25:14]opened in 1729470944 [12:25:14]opened+sec_in_day 1729557344 [12:25:14]quantity*price = 40006 [12:25:14]sum+1 = 40007 [12:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 112 21.10.2024 12:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166001 ФПД: 81176306432662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166001&fm=81176306432662&tin=02508201610067®Number=0000000000091764&sum=40000 [12:25:15]StoreToDocumentArchive [12:25:15]shift 535 fd 166001 [12:25:15]save to /storage/0535/doc_00166001 [12:25:15]save last doc name /storage/0535/doc_00166001 to /storage/kkm_last_doc_name [12:25:15]save OK [12:25:15]Clear old archive folders... [12:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:15]tlvbuf is 01456EE0 [12:25:15]SAM_PROTO_ClearQueue [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 09 00 00 [12:25:15]Write to MH i2c: E2 08 00 21 4A 80 09 00 00 00 00 00 00 DD [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 21 4A 00 90 00 DF [12:25:15]RAPDU: 90 00 [12:25:15]wFMCommunicate OK [12:25:15]SAM_PROTO_ClearQueue done [12:25:15]KKMCreateOFDPacket [12:25:15]OFDProtocolAddRootSTLVToBuf [12:25:15]FM_MakeSignedData [12:25:15]FM_MakeSignedData [12:25:15]SAM_PROTO_SignData [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 0D 01 02 [12:25:15]Write to MH i2c: E2 08 00 22 4A 80 0D 01 02 00 00 00 00 E5 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 22 4A 00 90 00 E0 [12:25:15]RAPDU: 90 00 [12:25:15]wFMCommunicate OK [12:25:15]wFMCommunicate request_size=255 [12:25:15]MH_SAM_APDU [12: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 88 02 00 35 04 06 00 49 [12:25:15]Write to MH i2c: E2 02 01 23 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 88 02 00 35 04 06 00 49 00 00 18 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 23 4A 00 90 00 E1 [12:25:15]RAPDU: 90 00 [12:25:15]wFMCommunicate OK [12:25:15]wFMCommunicate request_size=10 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 0D 02 02 05 D4 54 E8 BA 96 [12:25:15]Write to MH i2c: E2 0D 00 24 4A 80 0D 02 02 05 00 D4 54 E8 BA 96 00 00 52 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 03 00 24 4A 00 90 00 E2 [12:25:15]RAPDU: 90 00 [12:25:15]wFMCommunicate OK [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 0D 03 02 [12:25:15]Write to MH i2c: E2 08 00 25 4A 80 0D 03 02 00 00 00 00 EA [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 0B 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 0B 00 25 4A 00 81 24 DC B5 3D 3D B7 94 90 00 E6 [12:25:15]RAPDU: 81 24 DC B5 3D 3D B7 94 90 00 [12:25:15]wFMCommunicate OK [12:25:15]SAM_PROTO_SignData done [12:25:15]FM_MakeSignedData done [12:25:15]CreateOFDProtocolMessage [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 11 00 00 [12:25:15]Write to MH i2c: E2 08 00 26 4A 80 11 00 00 00 00 00 00 EA [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 17 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 17 00 26 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [12:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:15]wFMCommunicate OK [12:25:15]CreateOFDProtocolMessage done [12:25:15]OFDSenderStorePacket 166001 [12:25:15]StoreOFDPacket docnum=166001 [12:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 48 6A 07 01 A2 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 88 02 00 35 04 06 00 49 D4 54 E8 BA 96 81 24 DC B5 3D 3D B7 94 [12:25:15]CheckFolder [12:25:15]dirname=/storage/ofd_packets [12:25:15]CheckFolder done [12:25:15]ProducePacketName [12:25:15]name=ofd_packets/00166001 [12:25:15]NVStorageSaveData ofd_packets/00166001 [12:25:15]File name is /storage/ofd_packets/00166001 [12:25:15]Write 301 bytes [12:25:15]NVStorageSaveData done [12:25:15]OFDSenderStorePacket done [12:25:15]KKMCreateOFDPacket done [12:25:15]NVStorageSaveData kkm_last_timestamp [12:25:15]File name is /storage/kkm_last_timestamp [12:25:15]Write 4 bytes [12:25:15]NVStorageSaveData done [12:25:15]ExternCall_PrintAddStr [12:25:15]wPrintStart [12:25:15]Write to MH i2c: 01 00 00 27 4A 71 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 27 4A 00 00 00 00 00 FF 0F 86 [12:25:15]RasterBufferAndPrint [12:25:15]line Счет N : (1)220571 [12:25:15]line ИНН: 02508201610067 [12:25:15]line Контрольно-Кассовый Чек [12:25:15]line ПРОДАЖА [12:25:15]line ТРК (МРК, ГНК) : 13 [12:25:15]line Товар: 2710124130 [12:25:15]line Аи-92-К-5 [12:25:15]line 5.980 * 66.90 [12:25:15]line = 400.06 [12:25:15]line НДС 12% НСП 1% [12:25:15]line > о реализуемом товаре [12:25:15]line ОКРУГЛЕНИЕ: -0.06 [12:25:15]line ИТОГО: 400.00 [12:25:15]line Внесено: 400.00 [12:25:15]line СДАЧА: 0.00 [12:25:15]line НСП 1% : 3.54 [12:25:15]line НДС 12% : 42.48 [12:25:15]line Наличными: 400.00 [12:25:15]line Безнал.: 0.00 [12:25:15]line Место: АЗС № 161 "Партнер Нефть" [12:25:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:25:15]line СНО: Общий режим [12:25:15]line Чек 112 21.10.2024 12:25 [12:25:15]line Смена: 535 ФФД: 1.0 [12:25:15]line ЗНМ: 0300000104 [12:25:15]line РНМ: 0000000000091764 [12:25:15]line Версия ККМ: 001 [12:25:15]line ФМ: 0000000000871759 [12:25:15]line ФД: 166001 [12:25:15]line ФПД: 81176306432662 [12:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122532&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166001&fm=81176306432662&tin=02508201610067®Number=0000000000091764&sum=40000 [12:25:16]OFD Sender: Processing packet 166001 [packets to send 48, broken 47] [12:25:16]ProducePacketName [12:25:16]name=ofd_packets/00166001 [12:25:16]OFD Sender: To server: pG, [12:25:16]CommunicateWithHost lk.salyk.kg:30040 [12:25:16]ConnectInit lk.salyk.kg [12:25:16]written 0, free lines is 4095 [12:25:16]Connected sock=7 [12: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 35 39 0F 01 00 00 48 6A 07 01 A2 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 3C 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 88 02 00 35 04 06 00 49 D4 54 E8 BA 96 81 24 DC B5 3D 3D B7 94 [12: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 35 39 4F 00 00 00 68 2A 47 00 2A BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 88 02 00 F4 03 04 00 AA EE 15 67 B6 04 01 00 00 86 37 56 11 D6 C5 C7 6B [12:25:16]CommunicateWithHost err = 0 [12:25:16]CheckOFDResponse [12:25:16]1017 (14) - 77093643461234 [12:25:16]1041 (16) - 0000000000871759 [12:25:16]1040 (4) - 166001 [12:25:16]1012 (4) - 21.10.2024 06:03 [12:25:16]1206 (1) - 0 [12:25:16]OFD Sender: Remove packet 166001 [12:25:16]ProducePacketName [12:25:16]name=ofd_packets/00166001 [12:25:16]NVStorageDeleteData [12:25:16]Write to MH i2c: 01 00 00 52 4A 9C [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: 01 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: 01 07 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: 01 07 00 52 4A 00 00 00 00 00 C2 0C 71 [12:25:16]RasterBufferAndPrint [12:25:16]line [12:25:16]line [12:25:16]line [12:25:16]line [12:25:16]line [12:25:16]written 0, free lines is 3275 [12:25:16]MH_Cut [12:25:16]Write to MH i2c: D1 01 00 59 4A 01 75 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: D1 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: D1 01 00 [12:25:16]MH_I2C_Read... [12:25:16]Read from MH i2c: D1 01 00 59 4A 00 74 [12:25:16]Write to MH i2c: 01 00 00 5A 4A A4 [12:25:16]Write i2c OK [12:25:16]MH_I2C_Read... [12:25:17]OFD Sender: No OFD packet to send [12:25:17]*** Cut start [12:25:17]*** Partial cut [12:25:17]*** CUTSNS_PIN = 1 [12:25:17]*** CUTSNS_PIN = 0 [12:25:17]*** Brake cut motor [12:25:18]Read from MH i2c: 01 [12:25:18]MH_I2C_Read... [12:25:18]*** Stop cut motor [12:25:18]*** Cut end [12:25:18]Read from MH i2c: 01 07 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: 01 07 00 5A 4A 00 00 00 00 00 FF 0F B9 [12:25:18]process_action close_receipt done [12:25:18]requested_data is exist [12:25:18]produce_requested_data [12:25:18]requested_item fm.sn is exist - process it [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 11 00 00 [12:25:18]Write to MH i2c: E2 08 00 5B 4A 80 11 00 00 00 00 00 00 1F [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 17 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 17 00 5B 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [12:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:25:18]wFMCommunicate OK [12:25:18]requested_item fd.num is exist - process it [12:25:18]SAM_PROTO_GetFieldsCounters [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 13 00 00 [12:25:18]Write to MH i2c: E2 08 00 5C 4A 80 13 00 00 00 00 00 00 22 [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 62 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 62 00 5C 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:18]wFMCommunicate OK [12:25:18]SAM_PROTO_GetFieldsCounters done [12:25:18]requested_item shift.num is exist - process it [12:25:18]requested_item shift.opened is exist - process it [12:25:18]req_shift_opened [12:25:18]FM_GetShiftState [12:25:18]SAM_PROTO_GetShiftState [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 13 01 00 [12:25:18]Write to MH i2c: E2 08 00 5D 4A 80 13 01 00 00 00 00 00 24 [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 0E 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 0E 00 5D 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2D [12:25:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:25:18]wFMCommunicate OK [12:25:18]SAM_PROTO_GetShiftState done [12:25:18]FM_GetShiftState done [12:25:18]req_shift_opened done [12:25:18]requested_item shift.open_date is exist - process it [12:25:18]req_shift_open_date [12:25:18]req_shift_open_date done [12:25:18]produce_requested_data done [12:25:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166001,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:25:18]process_action_free close_receipt [12:25:18]json_value_free [12:25:18]json_value_free done [12:25:18]process_json_proto returns [12:25:18]Send response to host [12:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166001,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:25:18]free response buf [12:25:18]execute_script done [12:25:18]execute_script returns [12:25:18]free content buf [12:25:18]Sock 6.Close socket [12:25:18]Sock 6.Thread stoped [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:16]accept exits with 5 [12:27:16]New connection [12:27:16]New thread 3066920292 created [12:27:16]Thread 3066776932 joined [12:27:16]Waiting for new connection... [12:27:16] Sock 5.Parse request [12:27:16]Sock 5.Check first char [12:27:16]Sock 5.First char is OK [12:27:16]request: POST /json_proto HTTP/1.0 [12:27:16]Method: POST [12:27:16]URL: /json_proto [12:27:16]Method is POST - this is cgi request [12:27:16]url: /json_proto [12:27:16]query_string will be loaded in cgi processing [12:27:16]execute_cgi json_proto POST (null) [12:27:16]execute_cgi path=json_proto method=POST [12:27:16]POST find Content-Length [12:27:16]Host: 172.17.53.195:8080 [12:27:16]Content-Length: 677 [12:27:16]Content-Type: application/json [12:27:16] [12:27:16]POST finish read [12:27:16]Found Content-Length = 677 [12:27:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:16]execute_script... [12:27: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)220572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:16]POST & json_proto [12:27:16]process_json_proto [12:27:16]json parsed OK: [12:27:16]protocol is kg_v1.0 [12:27:16]action value=close_receipt [12:27:16]process_action close_receipt [12:27:16]cmd_close_receipt [12:27:16]MH_GetDate [12:27:16]Write to MH i2c: F0 00 00 5E 4A 97 [12:27:16]Write i2c OK [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: F0 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: F0 09 00 [12:27:16]MH_I2C_Read... [12:27:16]Read from MH i2c: F0 09 00 5E 4A 00 B7 48 16 67 21 48 4A 65 34 [12:27:16]GetLastDocTimeStamp 1729513532 [12:27:16]current date 1729513655 [12:27:16]FM_GetShiftState [12:27:16]SAM_PROTO_GetShiftState [12:27:16]wFMCommunicate request_size=4 [12:27:16]MH_SAM_APDU [12:27:16]CAPDU: 80 13 01 00 [12:27:16]Write to MH i2c: E2 08 00 5F 4A 80 13 01 00 00 00 00 00 26 [12:27:16]Write i2c OK [12:27:16]MH_I2C_Read... [12:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:17]Read from MH i2c: E2 [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: E2 0E 00 [12:27:17]MH_I2C_Read... [12:27:17]Read from MH i2c: E2 0E 00 5F 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2F [12:27:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:27:17]wFMCommunicate OK [12:27:17]SAM_PROTO_GetShiftState done [12:27:17]FM_GetShiftState done [12:27:17]opened in 1729470944 [12:27:17]opened+sec_in_day 1729557344 [12:27:17]quantity*price = 20003 [12:27:17]sum+1 = 20004 [12:27:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 113 21.10.2024 12:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166002 ФПД: 179197698018675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122735&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166002&fm=179197698018675&tin=02508201610067®Number=0000000000091764&sum=20000 [12:27:18]StoreToDocumentArchive [12:27:18]shift 535 fd 166002 [12:27:18]save to /storage/0535/doc_00166002 [12:27:18]save last doc name /storage/0535/doc_00166002 to /storage/kkm_last_doc_name [12:27:18]save OK [12:27:18]Clear old archive folders... [12:27:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:18]tlvbuf is 01A91A70 [12:27:18]SAM_PROTO_ClearQueue [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 09 00 00 [12:27:18]Write to MH i2c: E2 08 00 6C 4A 80 09 00 00 00 00 00 00 28 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 6C 4A 00 90 00 2A [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]SAM_PROTO_ClearQueue done [12:27:18]KKMCreateOFDPacket [12:27:18]OFDProtocolAddRootSTLVToBuf [12:27:18]FM_MakeSignedData [12:27:18]FM_MakeSignedData [12:27:18]SAM_PROTO_SignData [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 01 02 [12:27:18]Write to MH i2c: E2 08 00 6D 4A 80 0D 01 02 00 00 00 00 30 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 6D 4A 00 90 00 2B [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]wFMCommunicate request_size=255 [12:27:18]MH_SAM_APDU [12:27: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 88 02 00 35 04 06 00 A2 [12:27:18]Write to MH i2c: E2 02 01 6E 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 88 02 00 35 04 06 00 A2 00 00 2C [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 6E 4A 00 90 00 2C [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]wFMCommunicate request_size=10 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 02 02 05 FA B7 22 8D 73 [12:27:18]Write to MH i2c: E2 0D 00 6F 4A 80 0D 02 02 05 00 FA B7 22 8D 73 00 00 10 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 03 00 6F 4A 00 90 00 2D [12:27:18]RAPDU: 90 00 [12:27:18]wFMCommunicate OK [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 0D 03 02 [12:27:18]Write to MH i2c: E2 08 00 70 4A 80 0D 03 02 00 00 00 00 35 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 0B 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 0B 00 70 4A 00 44 08 1A D6 F8 FD 26 A7 90 00 34 [12:27:18]RAPDU: 44 08 1A D6 F8 FD 26 A7 90 00 [12:27:18]wFMCommunicate OK [12:27:18]SAM_PROTO_SignData done [12:27:18]FM_MakeSignedData done [12:27:18]CreateOFDProtocolMessage [12:27:18]wFMCommunicate request_size=4 [12:27:18]MH_SAM_APDU [12:27:18]CAPDU: 80 11 00 00 [12:27:18]Write to MH i2c: E2 08 00 71 4A 80 11 00 00 00 00 00 00 35 [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:18]Read from MH i2c: E2 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 17 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: E2 17 00 71 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [12:27:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:27:18]wFMCommunicate OK [12:27:18]CreateOFDProtocolMessage done [12:27:18]OFDSenderStorePacket 166002 [12:27:18]StoreOFDPacket docnum=166002 [12:27:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 61 07 07 01 30 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 88 02 00 35 04 06 00 A2 FA B7 22 8D 73 44 08 1A D6 F8 FD 26 A7 [12:27:18]CheckFolder [12:27:18]dirname=/storage/ofd_packets [12:27:18]CheckFolder done [12:27:18]ProducePacketName [12:27:18]name=ofd_packets/00166002 [12:27:18]NVStorageSaveData ofd_packets/00166002 [12:27:18]File name is /storage/ofd_packets/00166002 [12:27:18]Write 301 bytes [12:27:18]NVStorageSaveData done [12:27:18]OFDSenderStorePacket done [12:27:18]KKMCreateOFDPacket done [12:27:18]NVStorageSaveData kkm_last_timestamp [12:27:18]File name is /storage/kkm_last_timestamp [12:27:18]Write 4 bytes [12:27:18]NVStorageSaveData done [12:27:18]ExternCall_PrintAddStr [12:27:18]wPrintStart [12:27:18]Write to MH i2c: 01 00 00 72 4A BC [12:27:18]Write i2c OK [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: 01 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: 01 07 00 [12:27:18]MH_I2C_Read... [12:27:18]Read from MH i2c: 01 07 00 72 4A 00 00 00 00 00 FF 0F D1 [12:27:18]RasterBufferAndPrint [12:27:18]line Счет N : (1)220572 [12:27:18]line ИНН: 02508201610067 [12:27:18]line Контрольно-Кассовый Чек [12:27:18]line ПРОДАЖА [12:27:18]line ТРК (МРК, ГНК) : 13 [12:27:18]line Товар: 2710124130 [12:27:18]line Аи-92-К-5 [12:27:18]line 2.990 * 66.90 [12:27:18]line = 200.03 [12:27:18]line НДС 12% НСП 1% [12:27:18]line > о реализуемом товаре [12:27:18]line ОКРУГЛЕНИЕ: -0.03 [12:27:18]line ИТОГО: 200.00 [12:27:18]line Внесено: 200.00 [12:27:18]line СДАЧА: 0.00 [12:27:18]line НСП 1% : 1.77 [12:27:18]line НДС 12% : 21.24 [12:27:18]line Наличными: 200.00 [12:27:18]line Безнал.: 0.00 [12:27:18]line Место: АЗС № 161 "Партнер Нефть" [12:27:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:27:18]line СНО: Общий режим [12:27:18]line Чек 113 21.10.2024 12:27 [12:27:18]line Смена: 535 ФФД: 1.0 [12:27:18]line ЗНМ: 0300000104 [12:27:18]line РНМ: 0000000000091764 [12:27:18]line Версия ККМ: 001 [12:27:18]line ФМ: 0000000000871759 [12:27:18]line ФД: 166002 [12:27:18]line ФПД: 179197698018675 [12:27:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T122735&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166002&fm=179197698018675&tin=02508201610067®Number=0000000000091764&sum=20000 [12:27:19]OFD Sender: Processing packet 166002 [packets to send 48, broken 47] [12:27:19]ProducePacketName [12:27:19]name=ofd_packets/00166002 [12:27:19]OFD Sender: To server: pG, [12:27:19]CommunicateWithHost lk.salyk.kg:30040 [12:27:19]ConnectInit lk.salyk.kg [12:27:19]written 0, free lines is 4095 [12:27:19]Connected sock=7 [12: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 35 39 0F 01 00 00 61 07 07 01 30 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 48 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 72 88 02 00 35 04 06 00 A2 FA B7 22 8D 73 44 08 1A D6 F8 FD 26 A7 [12: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 35 39 4F 00 00 00 07 5D 47 00 A3 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 35 39 10 04 04 00 72 88 02 00 F4 03 04 00 25 EF 15 67 B6 04 01 00 00 BE 5C A3 10 8C 7C BD 90 [12:27:19]CommunicateWithHost err = 0 [12:27:19]CheckOFDResponse [12:27:19]1017 (14) - 77093643461234 [12:27:19]1041 (16) - 0000000000871759 [12:27:19]1040 (4) - 166002 [12:27:19]1012 (4) - 21.10.2024 06:05 [12:27:19]1206 (1) - 0 [12:27:19]OFD Sender: Remove packet 166002 [12:27:19]ProducePacketName [12:27:19]name=ofd_packets/00166002 [12:27:19]NVStorageDeleteData [12:27:19]Write to MH i2c: 01 00 00 9D 4A E7 [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: 01 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: 01 07 00 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: 01 07 00 9D 4A 00 00 00 00 00 C6 0C C0 [12:27:19]RasterBufferAndPrint [12:27:19]line [12:27:19]line [12:27:19]line [12:27:19]line [12:27:19]line [12:27:19]written 0, free lines is 3279 [12:27:19]MH_Cut [12:27:19]Write to MH i2c: D1 01 00 A4 4A 01 C0 [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: D1 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: D1 01 00 [12:27:19]MH_I2C_Read... [12:27:19]Read from MH i2c: D1 01 00 A4 4A 00 BF [12:27:19]Write to MH i2c: 01 00 00 A5 4A EF [12:27:19]Write i2c OK [12:27:19]MH_I2C_Read... [12:27:19]OFD Sender: No OFD packet to send [12:27:20]*** Cut start [12:27:20]*** Partial cut [12:27:20]*** CUTSNS_PIN = 1 [12:27:20]*** CUTSNS_PIN = 0 [12:27:20]*** Brake cut motor [12:27:20]Read from MH i2c: 01 [12:27:20]MH_I2C_Read... [12:27:20]*** Stop cut motor [12:27:20]*** Cut end [12:27:20]Read from MH i2c: 01 07 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: 01 07 00 A5 4A 00 00 00 00 00 FF 0F 04 [12:27:20]process_action close_receipt done [12:27:20]requested_data is exist [12:27:20]produce_requested_data [12:27:20]requested_item fm.sn is exist - process it [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 11 00 00 [12:27:20]Write to MH i2c: E2 08 00 A6 4A 80 11 00 00 00 00 00 00 6A [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:20]Read from MH i2c: E2 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 17 00 [12:27:20]MH_I2C_Read... [12:27:20]Read from MH i2c: E2 17 00 A6 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [12:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:27:20]wFMCommunicate OK [12:27:20]requested_item fd.num is exist - process it [12:27:20]SAM_PROTO_GetFieldsCounters [12:27:20]wFMCommunicate request_size=4 [12:27:20]MH_SAM_APDU [12:27:20]CAPDU: 80 13 00 00 [12:27:20]Write to MH i2c: E2 08 00 A7 4A 80 13 00 00 00 00 00 00 6D [12:27:20]Write i2c OK [12:27:20]MH_I2C_Read... [12:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:21]Read from MH i2c: E2 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 62 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 62 00 A7 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 72 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:21]wFMCommunicate OK [12:27:21]SAM_PROTO_GetFieldsCounters done [12:27:21]requested_item shift.num is exist - process it [12:27:21]requested_item shift.opened is exist - process it [12:27:21]req_shift_opened [12:27:21]FM_GetShiftState [12:27:21]SAM_PROTO_GetShiftState [12:27:21]wFMCommunicate request_size=4 [12:27:21]MH_SAM_APDU [12:27:21]CAPDU: 80 13 01 00 [12:27:21]Write to MH i2c: E2 08 00 A8 4A 80 13 01 00 00 00 00 00 6F [12:27:21]Write i2c OK [12:27:21]MH_I2C_Read... [12:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:21]Read from MH i2c: E2 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 0E 00 [12:27:21]MH_I2C_Read... [12:27:21]Read from MH i2c: E2 0E 00 A8 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 78 [12:27:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:27:21]wFMCommunicate OK [12:27:21]SAM_PROTO_GetShiftState done [12:27:21]FM_GetShiftState done [12:27:21]req_shift_opened done [12:27:21]requested_item shift.open_date is exist - process it [12:27:21]req_shift_open_date [12:27:21]req_shift_open_date done [12:27:21]produce_requested_data done [12:27:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166002,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:27:21]process_action_free close_receipt [12:27:21]json_value_free [12:27:21]json_value_free done [12:27:21]process_json_proto returns [12:27:21]Send response to host [12:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166002,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:27:21]free response buf [12:27:21]execute_script done [12:27:21]execute_script returns [12:27:21]free content buf [12:27:21]Sock 5.Close socket [12:27:21]Sock 5.Thread stoped [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28:49]OFD Sender: No OFD packet to send [12:28:54]OFD Sender: No OFD packet to send [12:28:59]OFD Sender: No OFD packet to send [12:29:04]OFD Sender: No OFD packet to send [12:29:09]OFD Sender: No OFD packet to send [12:29:14]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:44]OFD Sender: No OFD packet to send [12:29:49]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:07]accept exits with 6 [12:30:07]New connection [12:30:07]New thread 3066776932 created [12:30:07]Thread 3066920292 joined [12:30:07]Waiting for new connection... [12:30:07] Sock 6.Parse request [12:30:07]Sock 6.Check first char [12:30:07]Sock 6.First char is OK [12:30:07]request: POST /json_proto HTTP/1.0 [12:30:07]Method: POST [12:30:07]URL: /json_proto [12:30:07]Method is POST - this is cgi request [12:30:07]url: /json_proto [12:30:07]query_string will be loaded in cgi processing [12:30:07]execute_cgi json_proto POST (null) [12:30:07]execute_cgi path=json_proto method=POST [12:30:07]POST find Content-Length [12:30:07]Host: 172.17.53.195:8080 [12:30:07]Content-Length: 769 [12:30:07]Content-Type: application/json [12:30:07] [12:30:07]POST finish read [12:30:07]Found Content-Length = 769 [12:30:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:07]execute_script... [12:30: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)220573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:07]POST & json_proto [12:30:07]process_json_proto [12:30:07]json parsed OK: [12:30:07]protocol is kg_v1.0 [12:30:07]action value=close_receipt [12:30:07]process_action close_receipt [12:30:07]cmd_close_receipt [12:30:07]MH_GetDate [12:30:07]Write to MH i2c: F0 00 00 A9 4A E2 [12:30:07]Write i2c OK [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: F0 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: F0 09 00 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: F0 09 00 A9 4A 00 62 49 16 67 21 48 4A 65 2B [12:30:07]GetLastDocTimeStamp 1729513655 [12:30:07]current date 1729513826 [12:30:07]FM_GetShiftState [12:30:07]SAM_PROTO_GetShiftState [12:30:07]wFMCommunicate request_size=4 [12:30:07]MH_SAM_APDU [12:30:07]CAPDU: 80 13 01 00 [12:30:07]Write to MH i2c: E2 08 00 AA 4A 80 13 01 00 00 00 00 00 71 [12:30:07]Write i2c OK [12:30:07]MH_I2C_Read... [12:30:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:07]Read from MH i2c: E2 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: E2 0E 00 [12:30:07]MH_I2C_Read... [12:30:07]Read from MH i2c: E2 0E 00 AA 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7A [12:30:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:30:07]wFMCommunicate OK [12:30:07]SAM_PROTO_GetShiftState done [12:30:07]FM_GetShiftState done [12:30:07]opened in 1729470944 [12:30:07]opened+sec_in_day 1729557344 [12:30:07]quantity*price = 100015 [12:30:07]sum+1 = 100017 [12:30:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 114 21.10.2024 12:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166003 ФПД: 195384746003629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166003&fm=195384746003629&tin=02508201610067®Number=0000000000091764&sum=100016 [12:30:09]StoreToDocumentArchive [12:30:09]shift 535 fd 166003 [12:30:09]save to /storage/0535/doc_00166003 [12:30:09]save last doc name /storage/0535/doc_00166003 to /storage/kkm_last_doc_name [12:30:09]save OK [12:30:09]Clear old archive folders... [12:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:09]tlvbuf is 01616400 [12:30:09]SAM_PROTO_ClearQueue [12:30:09]wFMCommunicate request_size=4 [12:30:09]MH_SAM_APDU [12:30:09]CAPDU: 80 09 00 00 [12:30:09]Write to MH i2c: E2 08 00 B7 4A 80 09 00 00 00 00 00 00 73 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:09]Read from MH i2c: E2 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 B7 4A 00 90 00 75 [12:30:09]RAPDU: 90 00 [12:30:09]wFMCommunicate OK [12:30:09]SAM_PROTO_ClearQueue done [12:30:09]KKMCreateOFDPacket [12:30:09]OFDProtocolAddRootSTLVToBuf [12:30:09]FM_MakeSignedData [12:30:09]FM_MakeSignedData [12:30:09]SAM_PROTO_SignData [12:30:09]wFMCommunicate request_size=4 [12:30:09]MH_SAM_APDU [12:30:09]CAPDU: 80 0D 01 02 [12:30:09]Write to MH i2c: E2 08 00 B8 4A 80 0D 01 02 00 00 00 00 7B [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:09]Read from MH i2c: E2 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 B8 4A 00 90 00 76 [12:30:09]RAPDU: 90 00 [12:30:09]wFMCommunicate OK [12:30:09]wFMCommunicate request_size=255 [12:30:09]MH_SAM_APDU [12:30:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 62 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 88 02 00 35 04 06 00 B1 [12:30:09]Write to MH i2c: E2 02 01 B9 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 62 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 88 02 00 35 04 06 00 B1 00 00 8C [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:09]Read from MH i2c: E2 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 B9 4A 00 90 00 77 [12:30:09]RAPDU: 90 00 [12:30:09]wFMCommunicate OK [12:30:09]wFMCommunicate request_size=10 [12:30:09]MH_SAM_APDU [12:30:09]CAPDU: 80 0D 02 02 05 B3 8E 61 4C AD [12:30:09]Write to MH i2c: E2 0D 00 BA 4A 80 0D 02 02 05 00 B3 8E 61 4C AD 00 00 23 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:09]Read from MH i2c: E2 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 03 00 BA 4A 00 90 00 78 [12:30:09]RAPDU: 90 00 [12:30:09]wFMCommunicate OK [12:30:09]wFMCommunicate request_size=4 [12:30:09]MH_SAM_APDU [12:30:09]CAPDU: 80 0D 03 02 [12:30:09]Write to MH i2c: E2 08 00 BB 4A 80 0D 03 02 00 00 00 00 80 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:09]Read from MH i2c: E2 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 0B 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 0B 00 BB 4A 00 DB 71 79 17 C7 0F 79 B3 90 00 5F [12:30:09]RAPDU: DB 71 79 17 C7 0F 79 B3 90 00 [12:30:09]wFMCommunicate OK [12:30:09]SAM_PROTO_SignData done [12:30:09]FM_MakeSignedData done [12:30:09]CreateOFDProtocolMessage [12:30:09]wFMCommunicate request_size=4 [12:30:09]MH_SAM_APDU [12:30:09]CAPDU: 80 11 00 00 [12:30:09]Write to MH i2c: E2 08 00 BC 4A 80 11 00 00 00 00 00 00 80 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:09]Read from MH i2c: E2 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 17 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: E2 17 00 BC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [12:30:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:09]wFMCommunicate OK [12:30:09]CreateOFDProtocolMessage done [12:30:09]OFDSenderStorePacket 166003 [12:30:09]StoreOFDPacket docnum=166003 [12:30:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D C6 07 01 08 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 62 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 88 02 00 35 04 06 00 B1 B3 8E 61 4C AD DB 71 79 17 C7 0F 79 B3 [12:30:09]CheckFolder [12:30:09]dirname=/storage/ofd_packets [12:30:09]CheckFolder done [12:30:09]ProducePacketName [12:30:09]name=ofd_packets/00166003 [12:30:09]NVStorageSaveData ofd_packets/00166003 [12:30:09]File name is /storage/ofd_packets/00166003 [12:30:09]Write 301 bytes [12:30:09]NVStorageSaveData done [12:30:09]OFDSenderStorePacket done [12:30:09]KKMCreateOFDPacket done [12:30:09]NVStorageSaveData kkm_last_timestamp [12:30:09]File name is /storage/kkm_last_timestamp [12:30:09]Write 4 bytes [12:30:09]NVStorageSaveData done [12:30:09]ExternCall_PrintAddStr [12:30:09]wPrintStart [12:30:09]Write to MH i2c: 01 00 00 BD 4A 07 [12:30:09]Write i2c OK [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: 01 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: 01 07 00 [12:30:09]MH_I2C_Read... [12:30:09]Read from MH i2c: 01 07 00 BD 4A 00 00 00 00 00 FF 0F 1C [12:30:09]RasterBufferAndPrint [12:30:09]line Счет N : (1)220573 [12:30:09]line ИНН: 02508201610067 [12:30:09]line Контрольно-Кассовый Чек [12:30:09]line ПРОДАЖА [12:30:09]line ТРК (МРК, ГНК) : 13 [12:30:09]line Товар: 2710124130 [12:30:09]line Аи-92-К-5 [12:30:09]line 14.950 * 66.90 [12:30:09]line = 1000.16 [12:30:09]line НДС 12% НСП 1% [12:30:09]line > о реализуемом товаре [12:30:09]line ИТОГО: 1000.16 [12:30:09]line НСП 1% : 8.85 [12:30:09]line НДС 12% : 106.21 [12:30:09]line Наличными: 0.00 [12:30:09]line Безнал.: 1000.16 [12:30:09]line Место: АЗС № 161 "Партнер Нефть" [12:30:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:30:09]line СНО: Общий режим [12:30:09]line Чек 114 21.10.2024 12:30 [12:30:09]line Смена: 535 ФФД: 1.0 [12:30:09]line ЗНМ: 0300000104 [12:30:09]line РНМ: 0000000000091764 [12:30:09]line Версия ККМ: 001 [12:30:09]line Платежная система: Mbank [12:30:09]line ФМ: 0000000000871759 [12:30:09]line ФД: 166003 [12:30:09]line ФПД: 195384746003629 [12:30:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166003&fm=195384746003629&tin=02508201610067®Number=0000000000091764&sum=100016 [12:30:09]OFD Sender: Processing packet 166003 [packets to send 48, broken 47] [12:30:09]ProducePacketName [12:30:09]name=ofd_packets/00166003 [12:30:09]OFD Sender: To server: pG, [12:30:09]CommunicateWithHost lk.salyk.kg:30040 [12:30:09]ConnectInit lk.salyk.kg [12:30:09]Connected sock=9 [12:30:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D C6 07 01 08 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 written 0, free lines is 4095 [12:30:09]0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 62 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 88 02 00 35 04 06 00 B1 B3 8E 61 4C AD DB 71 79 17 C7 0F 79 B3 [12:30:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9B 9D 47 00 5C 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 73 88 02 00 F4 03 04 00 D0 EF 15 67 B6 04 01 00 00 5D 5B CB A4 D8 57 BF 20 [12:30:10]CommunicateWithHost err = 0 [12:30:10]CheckOFDResponse [12:30:10]1017 (14) - 77093643461234 [12:30:10]1041 (16) - 0000000000871759 [12:30:10]1040 (4) - 166003 [12:30:10]1012 (4) - 21.10.2024 06:08 [12:30:10]1206 (1) - 0 [12:30:10]OFD Sender: Remove packet 166003 [12:30:10]ProducePacketName [12:30:10]name=ofd_packets/00166003 [12:30:10]NVStorageDeleteData [12:30:10]Write to MH i2c: 01 00 00 E6 4A 30 [12:30:10]Write i2c OK [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: 01 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: 01 07 00 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: 01 07 00 E6 4A 00 00 00 00 00 EC 0C 2F [12:30:10]RasterBufferAndPrint [12:30:10]line [12:30:10]line [12:30:10]line [12:30:10]line [12:30:10]line [12:30:10]written 0, free lines is 3315 [12:30:10]MH_Cut [12:30:10]Write to MH i2c: D1 01 00 ED 4A 01 09 [12:30:10]Write i2c OK [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: D1 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: D1 01 00 [12:30:10]MH_I2C_Read... [12:30:10]Read from MH i2c: D1 01 00 ED 4A 00 08 [12:30:10]Write to MH i2c: 01 00 00 EE 4A 38 [12:30:10]Write i2c OK [12:30:10]MH_I2C_Read... [12:30:10]OFD Sender: No OFD packet to send [12:30:11]*** Cut start [12:30:11]*** Partial cut [12:30:11]*** CUTSNS_PIN = 1 [12:30:11]*** CUTSNS_PIN = 0 [12:30:11]*** Brake cut motor [12:30:11]Read from MH i2c: 01 [12:30:11]MH_I2C_Read... [12:30:11]*** Stop cut motor [12:30:11]*** Cut end [12:30:11]Read from MH i2c: 01 07 00 [12:30:11]MH_I2C_Read... [12:30:11]Read from MH i2c: 01 07 00 EE 4A 00 00 00 00 00 FF 0F 4D [12:30:11]process_action close_receipt done [12:30:11]requested_data is exist [12:30:11]produce_requested_data [12:30:11]requested_item fm.sn is exist - process it [12:30:11]wFMCommunicate request_size=4 [12:30:11]MH_SAM_APDU [12:30:11]CAPDU: 80 11 00 00 [12:30:11]Write to MH i2c: E2 08 00 EF 4A 80 11 00 00 00 00 00 00 B3 [12:30:11]Write i2c OK [12:30:11]MH_I2C_Read... [12:30:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:11]Read from MH i2c: E2 [12:30:11]MH_I2C_Read... [12:30:11]Read from MH i2c: E2 17 00 [12:30:11]MH_I2C_Read... [12:30:11]Read from MH i2c: E2 17 00 EF 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [12:30:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:30:11]wFMCommunicate OK [12:30:11]requested_item fd.num is exist - process it [12:30:11]SAM_PROTO_GetFieldsCounters [12:30:11]wFMCommunicate request_size=4 [12:30:11]MH_SAM_APDU [12:30:11]CAPDU: 80 13 00 00 [12:30:11]Write to MH i2c: E2 08 00 F0 4A 80 13 00 00 00 00 00 00 B6 [12:30:11]Write i2c OK [12:30:11]MH_I2C_Read... [12:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:12]Read from MH i2c: E2 [12:30:12]MH_I2C_Read... [12:30:12]Read from MH i2c: E2 62 00 [12:30:12]MH_I2C_Read... [12:30:12]Read from MH i2c: E2 62 00 F0 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 73 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:12]wFMCommunicate OK [12:30:12]SAM_PROTO_GetFieldsCounters done [12:30:12]requested_item shift.num is exist - process it [12:30:12]requested_item shift.opened is exist - process it [12:30:12]req_shift_opened [12:30:12]FM_GetShiftState [12:30:12]SAM_PROTO_GetShiftState [12:30:12]wFMCommunicate request_size=4 [12:30:12]MH_SAM_APDU [12:30:12]CAPDU: 80 13 01 00 [12:30:12]Write to MH i2c: E2 08 00 F1 4A 80 13 01 00 00 00 00 00 B8 [12:30:12]Write i2c OK [12:30:12]MH_I2C_Read... [12:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:12]Read from MH i2c: E2 [12:30:12]MH_I2C_Read... [12:30:12]Read from MH i2c: E2 0E 00 [12:30:12]MH_I2C_Read... [12:30:12]Read from MH i2c: E2 0E 00 F1 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C1 [12:30:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:30:12]wFMCommunicate OK [12:30:12]SAM_PROTO_GetShiftState done [12:30:12]FM_GetShiftState done [12:30:12]req_shift_opened done [12:30:12]requested_item shift.open_date is exist - process it [12:30:12]req_shift_open_date [12:30:12]req_shift_open_date done [12:30:12]produce_requested_data done [12:30:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166003,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:30:12]process_action_free close_receipt [12:30:12]json_value_free [12:30:12]json_value_free done [12:30:12]process_json_proto returns [12:30:12]Send response to host [12:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166003,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:30:12]free response buf [12:30:12]execute_script done [12:30:12]execute_script returns [12:30:12]free content buf [12:30:12]Sock 6.Close socket [12:30:12]Sock 6.Thread stoped [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:06]accept exits with 5 [12:32:06]New connection [12:32:06]New thread 3066920292 created [12:32:06]Thread 3066776932 joined [12:32:06]Waiting for new connection... [12:32:06] Sock 5.Parse request [12:32:06]Sock 5.Check first char [12:32:06]Sock 5.First char is OK [12:32:06]request: POST /json_proto HTTP/1.0 [12:32:06]Method: POST [12:32:06]URL: /json_proto [12:32:06]Method is POST - this is cgi request [12:32:06]url: /json_proto [12:32:06]query_string will be loaded in cgi processing [12:32:06]execute_cgi json_proto POST (null) [12:32:06]execute_cgi path=json_proto method=POST [12:32:06]POST find Content-Length [12:32:06]Host: 172.17.53.195:8080 [12:32:06]Content-Length: 677 [12:32:06]Content-Type: application/json [12:32:06] [12:32:06]POST finish read [12:32:06]Found Content-Length = 677 [12:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:06]execute_script... [12:32: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)220574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:06]POST & json_proto [12:32:06]process_json_proto [12:32:06]json parsed OK: [12:32:06]protocol is kg_v1.0 [12:32:06]action value=close_receipt [12:32:06]process_action close_receipt [12:32:06]cmd_close_receipt [12:32:06]MH_GetDate [12:32:06]Write to MH i2c: F0 00 00 F2 4A 2B [12:32:06]Write i2c OK [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: F0 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: F0 09 00 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: F0 09 00 F2 4A 00 D8 49 16 67 21 48 4A 65 EA [12:32:06]GetLastDocTimeStamp 1729513826 [12:32:06]current date 1729513944 [12:32:06]FM_GetShiftState [12:32:06]SAM_PROTO_GetShiftState [12:32:06]wFMCommunicate request_size=4 [12:32:06]MH_SAM_APDU [12:32:06]CAPDU: 80 13 01 00 [12:32:06]Write to MH i2c: E2 08 00 F3 4A 80 13 01 00 00 00 00 00 BA [12:32:06]Write i2c OK [12:32:06]MH_I2C_Read... [12:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:06]Read from MH i2c: E2 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 0E 00 [12:32:06]MH_I2C_Read... [12:32:06]Read from MH i2c: E2 0E 00 F3 4A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C3 [12:32:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:32:06]wFMCommunicate OK [12:32:06]SAM_PROTO_GetShiftState done [12:32:06]FM_GetShiftState done [12:32:06]opened in 1729470944 [12:32:06]opened+sec_in_day 1729557344 [12:32:06]quantity*price = 60009 [12:32:06]sum+1 = 60010 [12:32:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 115 21.10.2024 12:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166004 ФПД: 56978149974235 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123224&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166004&fm=56978149974235&tin=02508201610067®Number=0000000000091764&sum=60000 [12:32:07]StoreToDocumentArchive [12:32:07]shift 535 fd 166004 [12:32:07]save to /storage/0535/doc_00166004 [12:32:07]save last doc name /storage/0535/doc_00166004 to /storage/kkm_last_doc_name [12:32:07]save OK [12:32:07]Clear old archive folders... [12:32:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:07]tlvbuf is 015E9730 [12:32:07]SAM_PROTO_ClearQueue [12:32:07]wFMCommunicate request_size=4 [12:32:07]MH_SAM_APDU [12:32:07]CAPDU: 80 09 00 00 [12:32:07]Write to MH i2c: E2 08 00 00 4B 80 09 00 00 00 00 00 00 BD [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:07]Read from MH i2c: E2 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 03 00 [12:32:07]MH_I2C_Read... [12:32:07]Read from MH i2c: E2 03 00 00 4B 00 90 00 BF [12:32:07]RAPDU: 90 00 [12:32:07]wFMCommunicate OK [12:32:07]SAM_PROTO_ClearQueue done [12:32:07]KKMCreateOFDPacket [12:32:07]OFDProtocolAddRootSTLVToBuf [12:32:07]FM_MakeSignedData [12:32:07]FM_MakeSignedData [12:32:07]SAM_PROTO_SignData [12:32:07]wFMCommunicate request_size=4 [12:32:07]MH_SAM_APDU [12:32:07]CAPDU: 80 0D 01 02 [12:32:07]Write to MH i2c: E2 08 00 01 4B 80 0D 01 02 00 00 00 00 C5 [12:32:07]Write i2c OK [12:32:07]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 03 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 03 00 01 4B 00 90 00 C0 [12:32:08]RAPDU: 90 00 [12:32:08]wFMCommunicate OK [12:32:08]wFMCommunicate request_size=255 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D8 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 88 02 00 35 04 06 00 33 [12:32:08]Write to MH i2c: E2 02 01 02 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D8 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 88 02 00 35 04 06 00 33 00 00 93 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 03 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 03 00 02 4B 00 90 00 C1 [12:32:08]RAPDU: 90 00 [12:32:08]wFMCommunicate OK [12:32:08]wFMCommunicate request_size=10 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 0D 02 02 05 D2 42 63 A0 DB [12:32:08]Write to MH i2c: E2 0D 00 03 4B 80 0D 02 02 05 00 D2 42 63 A0 DB 00 00 C4 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 03 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 03 00 03 4B 00 90 00 C2 [12:32:08]RAPDU: 90 00 [12:32:08]wFMCommunicate OK [12:32:08]wFMCommunicate request_size=4 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 0D 03 02 [12:32:08]Write to MH i2c: E2 08 00 04 4B 80 0D 03 02 00 00 00 00 CA [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 0B 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 0B 00 04 4B 00 A8 77 2B 03 18 FB B9 2A 90 00 0E [12:32:08]RAPDU: A8 77 2B 03 18 FB B9 2A 90 00 [12:32:08]wFMCommunicate OK [12:32:08]SAM_PROTO_SignData done [12:32:08]FM_MakeSignedData done [12:32:08]CreateOFDProtocolMessage [12:32:08]wFMCommunicate request_size=4 [12:32:08]MH_SAM_APDU [12:32:08]CAPDU: 80 11 00 00 [12:32:08]Write to MH i2c: E2 08 00 05 4B 80 11 00 00 00 00 00 00 CA [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:08]Read from MH i2c: E2 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 17 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: E2 17 00 05 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [12:32:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:32:08]wFMCommunicate OK [12:32:08]CreateOFDProtocolMessage done [12:32:08]OFDSenderStorePacket 166004 [12:32:08]StoreOFDPacket docnum=166004 [12:32:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E 73 07 01 AF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D8 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 88 02 00 35 04 06 00 33 D2 42 63 A0 DB A8 77 2B 03 18 FB B9 2A [12:32:08]CheckFolder [12:32:08]dirname=/storage/ofd_packets [12:32:08]CheckFolder done [12:32:08]ProducePacketName [12:32:08]name=ofd_packets/00166004 [12:32:08]NVStorageSaveData ofd_packets/00166004 [12:32:08]File name is /storage/ofd_packets/00166004 [12:32:08]Write 301 bytes [12:32:08]NVStorageSaveData done [12:32:08]OFDSenderStorePacket done [12:32:08]KKMCreateOFDPacket done [12:32:08]NVStorageSaveData kkm_last_timestamp [12:32:08]File name is /storage/kkm_last_timestamp [12:32:08]Write 4 bytes [12:32:08]NVStorageSaveData done [12:32:08]ExternCall_PrintAddStr [12:32:08]wPrintStart [12:32:08]Write to MH i2c: 01 00 00 06 4B 51 [12:32:08]Write i2c OK [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: 01 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: 01 07 00 [12:32:08]MH_I2C_Read... [12:32:08]Read from MH i2c: 01 07 00 06 4B 00 00 00 00 00 FF 0F 66 [12:32:08]RasterBufferAndPrint [12:32:08]line Счет N : (1)220574 [12:32:08]line ИНН: 02508201610067 [12:32:08]line Контрольно-Кассовый Чек [12:32:08]line ПРОДАЖА [12:32:08]line ТРК (МРК, ГНК) : 23 [12:32:08]line Товар: 2710124130 [12:32:08]line Аи-92-К-5 [12:32:08]line 8.970 * 66.90 [12:32:08]line = 600.09 [12:32:08]line НДС 12% НСП 1% [12:32:08]line > о реализуемом товаре [12:32:08]line ОКРУГЛЕНИЕ: -0.09 [12:32:08]line ИТОГО: 600.00 [12:32:08]line Внесено: 600.00 [12:32:08]line СДАЧА: 0.00 [12:32:08]line НСП 1% : 5.31 [12:32:08]line НДС 12% : 63.73 [12:32:08]line Наличными: 600.00 [12:32:08]line Безнал.: 0.00 [12:32:08]line Место: АЗС № 161 "Партнер Нефть" [12:32:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:32:08]line СНО: Общий режим [12:32:08]line Чек 115 21.10.2024 12:32 [12:32:08]line Смена: 535 ФФД: 1.0 [12:32:08]line ЗНМ: 0300000104 [12:32:08]line РНМ: 0000000000091764 [12:32:08]line Версия ККМ: 001 [12:32:08]line ФМ: 0000000000871759 [12:32:08]line ФД: 166004 [12:32:08]line ФПД: 56978149974235 [12:32:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123224&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166004&fm=56978149974235&tin=02508201610067®Number=0000000000091764&sum=60000 [12:32:08]OFD Sender: Processing packet 166004 [packets to send 48, broken 47] [12:32:08]ProducePacketName [12:32:08]name=ofd_packets/00166004 [12:32:08]OFD Sender: To server: pG, [12:32:08]CommunicateWithHost lk.salyk.kg:30040 [12:32:08]ConnectInit lk.salyk.kg [12:32:08]written 0, free lines is 4095 [12:32:08]Connected sock=7 [12:32:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E 73 07 01 AF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 D8 49 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 88 02 00 35 04 06 00 33 D2 42 63 A0 DB A8 77 2B 03 18 FB B9 2A [12:32:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 76 58 47 00 B5 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 74 88 02 00 F4 03 04 00 47 F0 15 67 B6 04 01 00 00 86 90 03 48 CA 00 0D 82 [12:32:09]CommunicateWithHost err = 0 [12:32:09]CheckOFDResponse [12:32:09]1017 (14) - 77093643461234 [12:32:09]1041 (16) - 0000000000871759 [12:32:09]1040 (4) - 166004 [12:32:09]1012 (4) - 21.10.2024 06:10 [12:32:09]1206 (1) - 0 [12:32:09]OFD Sender: Remove packet 166004 [12:32:09]ProducePacketName [12:32:09]name=ofd_packets/00166004 [12:32:09]NVStorageDeleteData [12:32:09]Write to MH i2c: 01 00 00 31 4B 7C [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: 01 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: 01 07 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: 01 07 00 31 4B 00 00 00 00 00 CA 0C 59 [12:32:09]RasterBufferAndPrint [12:32:09]line [12:32:09]line [12:32:09]line [12:32:09]line [12:32:09]line [12:32:09]written 0, free lines is 3281 [12:32:09]MH_Cut [12:32:09]Write to MH i2c: D1 01 00 38 4B 01 55 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: D1 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: D1 01 00 [12:32:09]MH_I2C_Read... [12:32:09]Read from MH i2c: D1 01 00 38 4B 00 54 [12:32:09]Write to MH i2c: 01 00 00 39 4B 84 [12:32:09]Write i2c OK [12:32:09]MH_I2C_Read... [12:32:09]OFD Sender: No OFD packet to send [12:32:10]*** Cut start [12:32:10]*** Partial cut [12:32:10]*** CUTSNS_PIN = 1 [12:32:10]*** CUTSNS_PIN = 0 [12:32:10]*** Brake cut motor [12:32:10]Read from MH i2c: 01 [12:32:10]MH_I2C_Read... [12:32:10]*** Stop cut motor [12:32:10]*** Cut end [12:32:10]Read from MH i2c: 01 07 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: 01 07 00 39 4B 00 00 00 00 00 FF 0F 99 [12:32:10]process_action close_receipt done [12:32:10]requested_data is exist [12:32:10]produce_requested_data [12:32:10]requested_item fm.sn is exist - process it [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 11 00 00 [12:32:10]Write to MH i2c: E2 08 00 3A 4B 80 11 00 00 00 00 00 00 FF [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 17 00 3A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [12:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:32:10]wFMCommunicate OK [12:32:10]requested_item fd.num is exist - process it [12:32:10]SAM_PROTO_GetFieldsCounters [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 13 00 00 [12:32:10]Write to MH i2c: E2 08 00 3B 4B 80 13 00 00 00 00 00 00 02 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 62 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 62 00 3B 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 74 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_GetFieldsCounters done [12:32:10]requested_item shift.num is exist - process it [12:32:10]requested_item shift.opened is exist - process it [12:32:10]req_shift_opened [12:32:10]FM_GetShiftState [12:32:10]SAM_PROTO_GetShiftState [12:32:10]wFMCommunicate request_size=4 [12:32:10]MH_SAM_APDU [12:32:10]CAPDU: 80 13 01 00 [12:32:10]Write to MH i2c: E2 08 00 3C 4B 80 13 01 00 00 00 00 00 04 [12:32:10]Write i2c OK [12:32:10]MH_I2C_Read... [12:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:10]Read from MH i2c: E2 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0E 00 [12:32:10]MH_I2C_Read... [12:32:10]Read from MH i2c: E2 0E 00 3C 4B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0D [12:32:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:32:10]wFMCommunicate OK [12:32:10]SAM_PROTO_GetShiftState done [12:32:10]FM_GetShiftState done [12:32:10]req_shift_opened done [12:32:10]requested_item shift.open_date is exist - process it [12:32:10]req_shift_open_date [12:32:10]req_shift_open_date done [12:32:10]produce_requested_data done [12:32:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166004,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:32:10]process_action_free close_receipt [12:32:10]json_value_free [12:32:10]json_value_free done [12:32:10]process_json_proto returns [12:32:10]Send response to host [12:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166004,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:32:10]free response buf [12:32:10]execute_script done [12:32:10]execute_script returns [12:32:10]free content buf [12:32:10]Sock 5.Close socket [12:32:10]Sock 5.Thread stoped [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:56]accept exits with 6 [12:36:56]New connection [12:36:56]New thread 3066776932 created [12:36:56]Thread 3066920292 joined [12:36:56]Waiting for new connection... [12:36:56] Sock 6.Parse request [12:36:56]Sock 6.Check first char [12:36:56]Sock 6.First char is OK [12:36:56]request: POST /json_proto HTTP/1.0 [12:36:56]Method: POST [12:36:56]URL: /json_proto [12:36:56]Method is POST - this is cgi request [12:36:56]url: /json_proto [12:36:56]query_string will be loaded in cgi processing [12:36:56]execute_cgi json_proto POST (null) [12:36:56]execute_cgi path=json_proto method=POST [12:36:56]POST find Content-Length [12:36:56]Host: 172.17.53.195:8080 [12:36:56]Content-Length: 677 [12:36:56]Content-Type: application/json [12:36:56] [12:36:56]POST finish read [12:36:56]Found Content-Length = 677 [12:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:56]execute_script... [12:36:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:56]POST & json_proto [12:36:56]process_json_proto [12:36:56]json parsed OK: [12:36:56]protocol is kg_v1.0 [12:36:56]action value=close_receipt [12:36:56]process_action close_receipt [12:36:56]cmd_close_receipt [12:36:56]MH_GetDate [12:36:56]Write to MH i2c: F0 00 00 3D 4B 77 [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: F0 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: F0 09 00 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: F0 09 00 3D 4B 00 FA 4A 16 67 21 48 4A 65 59 [12:36:56]GetLastDocTimeStamp 1729513944 [12:36:56]current date 1729514234 [12:36:56]FM_GetShiftState [12:36:56]SAM_PROTO_GetShiftState [12:36:56]wFMCommunicate request_size=4 [12:36:56]MH_SAM_APDU [12:36:56]CAPDU: 80 13 01 00 [12:36:56]Write to MH i2c: E2 08 00 3E 4B 80 13 01 00 00 00 00 00 06 [12:36:56]Write i2c OK [12:36:56]MH_I2C_Read... [12:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:56]Read from MH i2c: E2 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: E2 0E 00 [12:36:56]MH_I2C_Read... [12:36:56]Read from MH i2c: E2 0E 00 3E 4B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0F [12:36:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:36:56]wFMCommunicate OK [12:36:56]SAM_PROTO_GetShiftState done [12:36:56]FM_GetShiftState done [12:36:56]opened in 1729470944 [12:36:56]opened+sec_in_day 1729557344 [12:36:56]quantity*price = 49974 [12:36:56]sum+1 = 49975 [12:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 116 21.10.2024 12:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166005 ФПД: 274694740590817 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123714&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166005&fm=274694740590817&tin=02508201610067®Number=0000000000091764&sum=49900 [12:36:57]StoreToDocumentArchive [12:36:57]shift 535 fd 166005 [12:36:57]save to /storage/0535/doc_00166005 [12:36:57]save last doc name /storage/0535/doc_00166005 to /storage/kkm_last_doc_name [12:36:57]save OK [12:36:57]Clear old archive folders... [12:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:57]tlvbuf is 01AFBC70 [12:36:57]SAM_PROTO_ClearQueue [12:36:57]wFMCommunicate request_size=4 [12:36:57]MH_SAM_APDU [12:36:57]CAPDU: 80 09 00 00 [12:36:57]Write to MH i2c: E2 08 00 4B 4B 80 09 00 00 00 00 00 00 08 [12:36:57]Write i2c OK [12:36:57]MH_I2C_Read... [12:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:57]Read from MH i2c: E2 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 4B 4B 00 90 00 0A [12:36:57]RAPDU: 90 00 [12:36:57]wFMCommunicate OK [12:36:57]SAM_PROTO_ClearQueue done [12:36:57]KKMCreateOFDPacket [12:36:57]OFDProtocolAddRootSTLVToBuf [12:36:57]FM_MakeSignedData [12:36:57]FM_MakeSignedData [12:36:57]SAM_PROTO_SignData [12:36:57]wFMCommunicate request_size=4 [12:36:57]MH_SAM_APDU [12:36:57]CAPDU: 80 0D 01 02 [12:36:57]Write to MH i2c: E2 08 00 4C 4B 80 0D 01 02 00 00 00 00 10 [12:36:57]Write i2c OK [12:36:57]MH_I2C_Read... [12:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:57]Read from MH i2c: E2 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 4C 4B 00 90 00 0B [12:36:57]RAPDU: 90 00 [12:36:57]wFMCommunicate OK [12:36:57]wFMCommunicate request_size=255 [12:36:57]MH_SAM_APDU [12:36: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 FA 4A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 88 02 00 35 04 06 00 F9 [12:36:57]Write to MH i2c: E2 02 01 4D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 FA 4A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 88 02 00 35 04 06 00 F9 00 00 CD [12:36:57]Write i2c OK [12:36:57]MH_I2C_Read... [12:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:57]Read from MH i2c: E2 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 4D 4B 00 90 00 0C [12:36:57]RAPDU: 90 00 [12:36:57]wFMCommunicate OK [12:36:57]wFMCommunicate request_size=10 [12:36:57]MH_SAM_APDU [12:36:57]CAPDU: 80 0D 02 02 05 D5 5A 6F 40 E1 [12:36:57]Write to MH i2c: E2 0D 00 4E 4B 80 0D 02 02 05 00 D5 5A 6F 40 E1 00 00 DC [12:36:57]Write i2c OK [12:36:57]MH_I2C_Read... [12:36:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:57]Read from MH i2c: E2 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 03 00 4E 4B 00 90 00 0D [12:36:57]RAPDU: 90 00 [12:36:57]wFMCommunicate OK [12:36:57]wFMCommunicate request_size=4 [12:36:57]MH_SAM_APDU [12:36:57]CAPDU: 80 0D 03 02 [12:36:57]Write to MH i2c: E2 08 00 4F 4B 80 0D 03 02 00 00 00 00 15 [12:36:57]Write i2c OK [12:36:57]MH_I2C_Read... [12:36:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:57]Read from MH i2c: E2 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 0B 00 [12:36:57]MH_I2C_Read... [12:36:57]Read from MH i2c: E2 0B 00 4F 4B 00 2A F3 12 47 67 F9 9B 98 90 00 1F [12:36:57]RAPDU: 2A F3 12 47 67 F9 9B 98 90 00 [12:36:57]wFMCommunicate OK [12:36:57]SAM_PROTO_SignData done [12:36:57]FM_MakeSignedData done [12:36:57]CreateOFDProtocolMessage [12:36:57]wFMCommunicate request_size=4 [12:36:57]MH_SAM_APDU [12:36:57]CAPDU: 80 11 00 00 [12:36:57]Write to MH i2c: E2 08 00 50 4B 80 11 00 00 00 00 00 00 15 [12:36:57]Write i2c OK [12:36:57]MH_I2C_Read... [12:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:58]Read from MH i2c: E2 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 17 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: E2 17 00 50 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6D [12:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:36:58]wFMCommunicate OK [12:36:58]CreateOFDProtocolMessage done [12:36:58]OFDSenderStorePacket 166005 [12:36:58]StoreOFDPacket docnum=166005 [12:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 22 07 01 26 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 FA 4A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 88 02 00 35 04 06 00 F9 D5 5A 6F 40 E1 2A F3 12 47 67 F9 9B 98 [12:36:58]CheckFolder [12:36:58]dirname=/storage/ofd_packets [12:36:58]CheckFolder done [12:36:58]ProducePacketName [12:36:58]name=ofd_packets/00166005 [12:36:58]NVStorageSaveData ofd_packets/00166005 [12:36:58]File name is /storage/ofd_packets/00166005 [12:36:58]Write 301 bytes [12:36:58]NVStorageSaveData done [12:36:58]OFDSenderStorePacket done [12:36:58]KKMCreateOFDPacket done [12:36:58]NVStorageSaveData kkm_last_timestamp [12:36:58]File name is /storage/kkm_last_timestamp [12:36:58]Write 4 bytes [12:36:58]NVStorageSaveData done [12:36:58]ExternCall_PrintAddStr [12:36:58]wPrintStart [12:36:58]Write to MH i2c: 01 00 00 51 4B 9C [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 07 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 07 00 51 4B 00 00 00 00 00 FF 0F B1 [12:36:58]RasterBufferAndPrint [12:36:58]line Счет N : (1)220576 [12:36:58]line ИНН: 02508201610067 [12:36:58]line Контрольно-Кассовый Чек [12:36:58]line ПРОДАЖА [12:36:58]line ТРК (МРК, ГНК) : 43 [12:36:58]line Товар: 2710124130 [12:36:58]line Аи-92-К-5 [12:36:58]line 7.470 * 66.90 [12:36:58]line = 499.74 [12:36:58]line НДС 12% НСП 1% [12:36:58]line > о реализуемом товаре [12:36:58]line ОКРУГЛЕНИЕ: -0.74 [12:36:58]line ИТОГО: 499.00 [12:36:58]line Внесено: 500.00 [12:36:58]line СДАЧА: 1.00 [12:36:58]line НСП 1% : 4.42 [12:36:58]line НДС 12% : 53.07 [12:36:58]line Наличными: 499.00 [12:36:58]line Безнал.: 0.00 [12:36:58]line Место: АЗС № 161 "Партнер Нефть" [12:36:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:36:58]line СНО: Общий режим [12:36:58]line Чек 116 21.10.2024 12:37 [12:36:58]line Смена: 535 ФФД: 1.0 [12:36:58]line ЗНМ: 0300000104 [12:36:58]line РНМ: 0000000000091764 [12:36:58]line Версия ККМ: 001 [12:36:58]line ФМ: 0000000000871759 [12:36:58]line ФД: 166005 [12:36:58]line ФПД: 274694740590817 [12:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123714&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166005&fm=274694740590817&tin=02508201610067®Number=0000000000091764&sum=49900 [12:36:58]OFD Sender: Processing packet 166005 [packets to send 48, broken 47] [12:36:58]ProducePacketName [12:36:58]name=ofd_packets/00166005 [12:36:58]OFD Sender: To server: pG, [12:36:58]CommunicateWithHost lk.salyk.kg:30040 [12:36:58]ConnectInit lk.salyk.kg [12:36:58]written 0, free lines is 4095 [12:36:58]Connected sock=7 [12:36:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 14 22 07 01 26 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 FA 4A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 75 88 02 00 35 04 06 00 F9 D5 5A 6F 40 E1 2A F3 12 47 67 F9 9B 98 [12:36:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F8 EC 47 00 AC 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 35 39 10 04 04 00 75 88 02 00 F4 03 04 00 68 F1 15 67 B6 04 01 00 00 B7 A1 F8 87 80 B0 51 7E [12:36:58]CommunicateWithHost err = 0 [12:36:58]CheckOFDResponse [12:36:58]1017 (14) - 77093643461234 [12:36:58]1041 (16) - 0000000000871759 [12:36:58]1040 (4) - 166005 [12:36:58]1012 (4) - 21.10.2024 06:15 [12:36:58]1206 (1) - 0 [12:36:58]OFD Sender: Remove packet 166005 [12:36:58]ProducePacketName [12:36:58]name=ofd_packets/00166005 [12:36:58]NVStorageDeleteData [12:36:58]Write to MH i2c: 01 00 00 7C 4B C7 [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 07 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: 01 07 00 7C 4B 00 00 00 00 00 C9 0C A3 [12:36:58]RasterBufferAndPrint [12:36:58]line [12:36:58]line [12:36:58]line [12:36:58]line [12:36:58]line [12:36:58]written 0, free lines is 3280 [12:36:58]MH_Cut [12:36:58]Write to MH i2c: D1 01 00 83 4B 01 A0 [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: D1 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: D1 01 00 [12:36:58]MH_I2C_Read... [12:36:58]Read from MH i2c: D1 01 00 83 4B 00 9F [12:36:58]Write to MH i2c: 01 00 00 84 4B CF [12:36:58]Write i2c OK [12:36:58]MH_I2C_Read... [12:36:59]OFD Sender: No OFD packet to send [12:36:59]*** Cut start [12:36:59]*** Partial cut [12:36:59]*** CUTSNS_PIN = 1 [12:36:59]*** CUTSNS_PIN = 0 [12:36:59]*** Brake cut motor [12:37:00]Read from MH i2c: 01 [12:37:00]MH_I2C_Read... [12:37:00]*** Stop cut motor [12:37:00]*** Cut end [12:37:00]Read from MH i2c: 01 07 00 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: 01 07 00 84 4B 00 00 00 00 00 FF 0F E4 [12:37:00]process_action close_receipt done [12:37:00]requested_data is exist [12:37:00]produce_requested_data [12:37:00]requested_item fm.sn is exist - process it [12:37:00]wFMCommunicate request_size=4 [12:37:00]MH_SAM_APDU [12:37:00]CAPDU: 80 11 00 00 [12:37:00]Write to MH i2c: E2 08 00 85 4B 80 11 00 00 00 00 00 00 4A [12:37:00]Write i2c OK [12:37:00]MH_I2C_Read... [12:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:00]Read from MH i2c: E2 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 17 00 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 17 00 85 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A2 [12:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:37:00]wFMCommunicate OK [12:37:00]requested_item fd.num is exist - process it [12:37:00]SAM_PROTO_GetFieldsCounters [12:37:00]wFMCommunicate request_size=4 [12:37:00]MH_SAM_APDU [12:37:00]CAPDU: 80 13 00 00 [12:37:00]Write to MH i2c: E2 08 00 86 4B 80 13 00 00 00 00 00 00 4D [12:37:00]Write i2c OK [12:37:00]MH_I2C_Read... [12:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:00]Read from MH i2c: E2 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 62 00 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 62 00 86 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [12:37:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 75 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:00]wFMCommunicate OK [12:37:00]SAM_PROTO_GetFieldsCounters done [12:37:00]requested_item shift.num is exist - process it [12:37:00]requested_item shift.opened is exist - process it [12:37:00]req_shift_opened [12:37:00]FM_GetShiftState [12:37:00]SAM_PROTO_GetShiftState [12:37:00]wFMCommunicate request_size=4 [12:37:00]MH_SAM_APDU [12:37:00]CAPDU: 80 13 01 00 [12:37:00]Write to MH i2c: E2 08 00 87 4B 80 13 01 00 00 00 00 00 4F [12:37:00]Write i2c OK [12:37:00]MH_I2C_Read... [12:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:00]Read from MH i2c: E2 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 0E 00 [12:37:00]MH_I2C_Read... [12:37:00]Read from MH i2c: E2 0E 00 87 4B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 58 [12:37:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:37:00]wFMCommunicate OK [12:37:00]SAM_PROTO_GetShiftState done [12:37:00]FM_GetShiftState done [12:37:00]req_shift_opened done [12:37:00]requested_item shift.open_date is exist - process it [12:37:00]req_shift_open_date [12:37:00]req_shift_open_date done [12:37:00]produce_requested_data done [12:37:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166005,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:37:00]process_action_free close_receipt [12:37:00]json_value_free [12:37:00]json_value_free done [12:37:00]process_json_proto returns [12:37:00]Send response to host [12:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166005,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:37:00]free response buf [12:37:00]execute_script done [12:37:00]execute_script returns [12:37:00]free content buf [12:37:00]Sock 6.Close socket [12:37:00]Sock 6.Thread stoped [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:51]accept exits with 5 [12:37:51]New connection [12:37:51]New thread 3066920292 created [12:37:51]Thread 3066776932 joined [12:37:51]Waiting for new connection... [12:37:51] Sock 5.Parse request [12:37:51]Sock 5.Check first char [12:37:51]Sock 5.First char is OK [12:37:51]request: POST /json_proto HTTP/1.0 [12:37:51]Method: POST [12:37:51]URL: /json_proto [12:37:51]Method is POST - this is cgi request [12:37:51]url: /json_proto [12:37:51]query_string will be loaded in cgi processing [12:37:51]execute_cgi json_proto POST (null) [12:37:51]execute_cgi path=json_proto method=POST [12:37:51]POST find Content-Length [12:37:51]Host: 172.17.53.195:8080 [12:37:51]Content-Length: 677 [12:37:51]Content-Type: application/json [12:37:51] [12:37:51]POST finish read [12:37:51]Found Content-Length = 677 [12:37:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:51]execute_script... [12:37: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)220577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:37:51]POST & json_proto [12:37:51]process_json_proto [12:37:51]json parsed OK: [12:37:51]protocol is kg_v1.0 [12:37:51]action value=close_receipt [12:37:51]process_action close_receipt [12:37:51]cmd_close_receipt [12:37:51]MH_GetDate [12:37:51]Write to MH i2c: F0 00 00 88 4B C2 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: F0 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: F0 09 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: F0 09 00 88 4B 00 31 4B 16 67 21 48 4A 65 DC [12:37:51]GetLastDocTimeStamp 1729514234 [12:37:51]current date 1729514289 [12:37:51]FM_GetShiftState [12:37:51]SAM_PROTO_GetShiftState [12:37:51]wFMCommunicate request_size=4 [12:37:51]MH_SAM_APDU [12:37:51]CAPDU: 80 13 01 00 [12:37:51]Write to MH i2c: E2 08 00 89 4B 80 13 01 00 00 00 00 00 51 [12:37:51]Write i2c OK [12:37:51]MH_I2C_Read... [12:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:51]Read from MH i2c: E2 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 0E 00 [12:37:51]MH_I2C_Read... [12:37:51]Read from MH i2c: E2 0E 00 89 4B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5A [12:37:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:37:51]wFMCommunicate OK [12:37:51]SAM_PROTO_GetShiftState done [12:37:51]FM_GetShiftState done [12:37:51]opened in 1729470944 [12:37:51]opened+sec_in_day 1729557344 [12:37:51]quantity*price = 20003 [12:37:51]sum+1 = 20004 [12:37:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 117 21.10.2024 12:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166006 ФПД: 59784585864842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166006&fm=59784585864842&tin=02508201610067®Number=0000000000091764&sum=20000 [12:37:52]StoreToDocumentArchive [12:37:52]shift 535 fd 166006 [12:37:52]save to /storage/0535/doc_00166006 [12:37:52]save last doc name /storage/0535/doc_00166006 to /storage/kkm_last_doc_name [12:37:52]save OK [12:37:52]Clear old archive folders... [12:37:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:37:52]tlvbuf is 01722CE0 [12:37:52]SAM_PROTO_ClearQueue [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 09 00 00 [12:37:52]Write to MH i2c: E2 08 00 96 4B 80 09 00 00 00 00 00 00 53 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 96 4B 00 90 00 55 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]SAM_PROTO_ClearQueue done [12:37:52]KKMCreateOFDPacket [12:37:52]OFDProtocolAddRootSTLVToBuf [12:37:52]FM_MakeSignedData [12:37:52]FM_MakeSignedData [12:37:52]SAM_PROTO_SignData [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 0D 01 02 [12:37:52]Write to MH i2c: E2 08 00 97 4B 80 0D 01 02 00 00 00 00 5B [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 97 4B 00 90 00 56 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]wFMCommunicate request_size=255 [12:37:52]MH_SAM_APDU [12:37: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 31 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 88 02 00 35 04 06 00 36 [12:37:52]Write to MH i2c: E2 02 01 98 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 31 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 88 02 00 35 04 06 00 36 00 00 70 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 98 4B 00 90 00 57 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]wFMCommunicate request_size=10 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 0D 02 02 05 5F AF 00 E6 8A [12:37:52]Write to MH i2c: E2 0D 00 99 4B 80 0D 02 02 05 00 5F AF 00 E6 8A 00 00 E6 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 03 00 99 4B 00 90 00 58 [12:37:52]RAPDU: 90 00 [12:37:52]wFMCommunicate OK [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 0D 03 02 [12:37:52]Write to MH i2c: E2 08 00 9A 4B 80 0D 03 02 00 00 00 00 60 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0B 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 0B 00 9A 4B 00 FD B9 33 F0 98 0D 28 81 90 00 88 [12:37:52]RAPDU: FD B9 33 F0 98 0D 28 81 90 00 [12:37:52]wFMCommunicate OK [12:37:52]SAM_PROTO_SignData done [12:37:52]FM_MakeSignedData done [12:37:52]CreateOFDProtocolMessage [12:37:52]wFMCommunicate request_size=4 [12:37:52]MH_SAM_APDU [12:37:52]CAPDU: 80 11 00 00 [12:37:52]Write to MH i2c: E2 08 00 9B 4B 80 11 00 00 00 00 00 00 60 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:52]Read from MH i2c: E2 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 17 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: E2 17 00 9B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B8 [12:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:37:52]wFMCommunicate OK [12:37:52]CreateOFDProtocolMessage done [12:37:52]OFDSenderStorePacket 166006 [12:37:52]StoreOFDPacket docnum=166006 [12:37:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 31 07 01 F6 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 31 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 88 02 00 35 04 06 00 36 5F AF 00 E6 8A FD B9 33 F0 98 0D 28 81 [12:37:52]CheckFolder [12:37:52]dirname=/storage/ofd_packets [12:37:52]CheckFolder done [12:37:52]ProducePacketName [12:37:52]name=ofd_packets/00166006 [12:37:52]NVStorageSaveData ofd_packets/00166006 [12:37:52]File name is /storage/ofd_packets/00166006 [12:37:52]Write 301 bytes [12:37:52]NVStorageSaveData done [12:37:52]OFDSenderStorePacket done [12:37:52]KKMCreateOFDPacket done [12:37:52]NVStorageSaveData kkm_last_timestamp [12:37:52]File name is /storage/kkm_last_timestamp [12:37:52]Write 4 bytes [12:37:52]NVStorageSaveData done [12:37:52]ExternCall_PrintAddStr [12:37:52]wPrintStart [12:37:52]Write to MH i2c: 01 00 00 9C 4B E7 [12:37:52]Write i2c OK [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 07 00 [12:37:52]MH_I2C_Read... [12:37:52]Read from MH i2c: 01 07 00 9C 4B 00 00 00 00 00 FF 0F FC [12:37:52]RasterBufferAndPrint [12:37:52]line Счет N : (1)220577 [12:37:52]line ИНН: 02508201610067 [12:37:52]line Контрольно-Кассовый Чек [12:37:52]line ПРОДАЖА [12:37:52]line ТРК (МРК, ГНК) : 23 [12:37:52]line Товар: 2710124130 [12:37:52]line Аи-92-К-5 [12:37:52]line 2.990 * 66.90 [12:37:52]line = 200.03 [12:37:52]line НДС 12% НСП 1% [12:37:52]line > о реализуемом товаре [12:37:52]line ОКРУГЛЕНИЕ: -0.03 [12:37:52]line ИТОГО: 200.00 [12:37:52]line Внесено: 200.00 [12:37:52]line СДАЧА: 0.00 [12:37:52]line НСП 1% : 1.77 [12:37:52]line НДС 12% : 21.24 [12:37:52]line Наличными: 200.00 [12:37:52]line Безнал.: 0.00 [12:37:52]line Место: АЗС № 161 "Партнер Нефть" [12:37:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:37:52]line СНО: Общий режим [12:37:52]line Чек 117 21.10.2024 12:38 [12:37:52]line Смена: 535 ФФД: 1.0 [12:37:52]line ЗНМ: 0300000104 [12:37:52]line РНМ: 0000000000091764 [12:37:52]line Версия ККМ: 001 [12:37:52]line ФМ: 0000000000871759 [12:37:52]line ФД: 166006 [12:37:52]line ФПД: 59784585864842 [12:37:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123809&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166006&fm=59784585864842&tin=02508201610067®Number=0000000000091764&sum=20000 [12:37:52]OFD Sender: Processing packet 166006 [packets to send 48, broken 47] [12:37:52]ProducePacketName [12:37:52]name=ofd_packets/00166006 [12:37:52]OFD Sender: To server: pG, [12:37:52]CommunicateWithHost lk.salyk.kg:30040 [12:37:52]ConnectInit lk.salyk.kg [12:37:52]written 0, free lines is 4095 [12:37:52]Connected sock=7 [12:37:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 70 31 07 01 F6 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 31 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 88 02 00 35 04 06 00 36 5F AF 00 E6 8A FD B9 33 F0 98 0D 28 81 [12:37:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 98 7C 47 00 15 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 76 88 02 00 F4 03 04 00 9F F1 15 67 B6 04 01 00 00 EA 74 24 76 F3 EC B5 FB [12:37:53]CommunicateWithHost err = 0 [12:37:53]CheckOFDResponse [12:37:53]1017 (14) - 77093643461234 [12:37:53]1041 (16) - 0000000000871759 [12:37:53]1040 (4) - 166006 [12:37:53]1012 (4) - 21.10.2024 06:15 [12:37:53]1206 (1) - 0 [12:37:53]OFD Sender: Remove packet 166006 [12:37:53]ProducePacketName [12:37:53]name=ofd_packets/00166006 [12:37:53]NVStorageDeleteData [12:37:53]Write to MH i2c: 01 00 00 C7 4B 12 [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: 01 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: 01 07 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: 01 07 00 C7 4B 00 00 00 00 00 CF 0C F4 [12:37:53]RasterBufferAndPrint [12:37:53]line [12:37:53]line [12:37:53]line [12:37:53]line [12:37:53]line [12:37:53]written 0, free lines is 3287 [12:37:53]MH_Cut [12:37:53]Write to MH i2c: D1 01 00 CE 4B 01 EB [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: D1 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: D1 01 00 [12:37:53]MH_I2C_Read... [12:37:53]Read from MH i2c: D1 01 00 CE 4B 00 EA [12:37:53]Write to MH i2c: 01 00 00 CF 4B 1A [12:37:53]Write i2c OK [12:37:53]MH_I2C_Read... [12:37:53]OFD Sender: No OFD packet to send [12:37:54]*** Cut start [12:37:54]*** Partial cut [12:37:54]*** CUTSNS_PIN = 1 [12:37:54]*** CUTSNS_PIN = 0 [12:37:54]*** Brake cut motor [12:37:54]Read from MH i2c: 01 [12:37:54]MH_I2C_Read... [12:37:54]*** Stop cut motor [12:37:54]*** Cut end [12:37:54]Read from MH i2c: 01 07 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: 01 07 00 CF 4B 00 00 00 00 00 FF 0F 2F [12:37:54]process_action close_receipt done [12:37:54]requested_data is exist [12:37:54]produce_requested_data [12:37:54]requested_item fm.sn is exist - process it [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 11 00 00 [12:37:54]Write to MH i2c: E2 08 00 D0 4B 80 11 00 00 00 00 00 00 95 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 17 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 17 00 D0 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [12:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:37:54]wFMCommunicate OK [12:37:54]requested_item fd.num is exist - process it [12:37:54]SAM_PROTO_GetFieldsCounters [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 13 00 00 [12:37:54]Write to MH i2c: E2 08 00 D1 4B 80 13 00 00 00 00 00 00 98 [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:37:54]Read from MH i2c: E2 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 62 00 [12:37:54]MH_I2C_Read... [12:37:54]Read from MH i2c: E2 62 00 D1 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [12:37:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 76 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:37:54]wFMCommunicate OK [12:37:54]SAM_PROTO_GetFieldsCounters done [12:37:54]requested_item shift.num is exist - process it [12:37:54]requested_item shift.opened is exist - process it [12:37:54]req_shift_opened [12:37:54]FM_GetShiftState [12:37:54]SAM_PROTO_GetShiftState [12:37:54]wFMCommunicate request_size=4 [12:37:54]MH_SAM_APDU [12:37:54]CAPDU: 80 13 01 00 [12:37:54]Write to MH i2c: E2 08 00 D2 4B 80 13 01 00 00 00 00 00 9A [12:37:54]Write i2c OK [12:37:54]MH_I2C_Read... [12:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:37:55]Read from MH i2c: E2 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 0E 00 [12:37:55]MH_I2C_Read... [12:37:55]Read from MH i2c: E2 0E 00 D2 4B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A3 [12:37:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:37:55]wFMCommunicate OK [12:37:55]SAM_PROTO_GetShiftState done [12:37:55]FM_GetShiftState done [12:37:55]req_shift_opened done [12:37:55]requested_item shift.open_date is exist - process it [12:37:55]req_shift_open_date [12:37:55]req_shift_open_date done [12:37:55]produce_requested_data done [12:37:55]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166006,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:37:55]process_action_free close_receipt [12:37:55]json_value_free [12:37:55]json_value_free done [12:37:55]process_json_proto returns [12:37:55]Send response to host [12:37:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166006,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:37:55]free response buf [12:37:55]execute_script done [12:37:55]execute_script returns [12:37:55]free content buf [12:37:55]Sock 5.Close socket [12:37:55]Sock 5.Thread stoped [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]accept exits with 6 [12:39:08]New connection [12:39:08]New thread 3066776932 created [12:39:08]Thread 3066920292 joined [12:39:08]Waiting for new connection... [12:39:08] Sock 6.Parse request [12:39:08]Sock 6.Check first char [12:39:08]Sock 6.First char is OK [12:39:08]request: POST /json_proto HTTP/1.0 [12:39:08]Method: POST [12:39:08]URL: /json_proto [12:39:08]Method is POST - this is cgi request [12:39:08]url: /json_proto [12:39:08]query_string will be loaded in cgi processing [12:39:08]execute_cgi json_proto POST (null) [12:39:08]execute_cgi path=json_proto method=POST [12:39:08]POST find Content-Length [12:39:08]Host: 172.17.53.195:8080 [12:39:08]Content-Length: 790 [12:39:08]Content-Type: application/json [12:39:08] [12:39:08]POST finish read [12:39:08]Found Content-Length = 790 [12:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 196.860, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:08]execute_script... [12:39: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)220575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 196.860, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:08]POST & json_proto [12:39:08]process_json_proto [12:39:08]json parsed OK: [12:39:08]protocol is kg_v1.0 [12:39:08]action value=close_receipt [12:39:08]process_action close_receipt [12:39:08]cmd_close_receipt [12:39:08]MH_GetDate [12:39:08]Write to MH i2c: F0 00 00 D3 4B 0D [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: F0 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: F0 09 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: F0 09 00 D3 4B 00 7E 4B 16 67 21 48 4A 65 74 [12:39:08]GetLastDocTimeStamp 1729514289 [12:39:08]current date 1729514366 [12:39:08]FM_GetShiftState [12:39:08]SAM_PROTO_GetShiftState [12:39:08]wFMCommunicate request_size=4 [12:39:08]MH_SAM_APDU [12:39:08]CAPDU: 80 13 01 00 [12:39:08]Write to MH i2c: E2 08 00 D4 4B 80 13 01 00 00 00 00 00 9C [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:08]Read from MH i2c: E2 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 0E 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 0E 00 D4 4B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A5 [12:39:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:39:08]wFMCommunicate OK [12:39:08]SAM_PROTO_GetShiftState done [12:39:08]FM_GetShiftState done [12:39:08]opened in 1729470944 [12:39:08]opened+sec_in_day 1729557344 [12:39:08]quantity*price = 0 [12:39:08]sum+1 = 1 [12:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 118 21.10.2024 12:39 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166007 ФПД: 180313694113335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123926&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166007&fm=180313694113335&tin=02508201610067®Number=0000000000091764&sum=0 [12:39:09]StoreToDocumentArchive [12:39:09]shift 535 fd 166007 [12:39:09]save to /storage/0535/doc_00166007 [12:39:09]save last doc name /storage/0535/doc_00166007 to /storage/kkm_last_doc_name [12:39:09]save OK [12:39:09]Clear old archive folders... [12:39:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:39:09]tlvbuf is 01445920 [12:39:09]SAM_PROTO_ClearQueue [12:39:09]wFMCommunicate request_size=4 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 09 00 00 [12:39:09]Write to MH i2c: E2 08 00 E1 4B 80 09 00 00 00 00 00 00 9E [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 E1 4B 00 90 00 A0 [12:39:09]RAPDU: 90 00 [12:39:09]wFMCommunicate OK [12:39:09]SAM_PROTO_ClearQueue done [12:39:09]KKMCreateOFDPacket [12:39:09]OFDProtocolAddRootSTLVToBuf [12:39:09]FM_MakeSignedData [12:39:09]FM_MakeSignedData [12:39:09]SAM_PROTO_SignData [12:39:09]wFMCommunicate request_size=4 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 0D 01 02 [12:39:09]Write to MH i2c: E2 08 00 E2 4B 80 0D 01 02 00 00 00 00 A6 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 E2 4B 00 90 00 A1 [12:39:09]RAPDU: 90 00 [12:39:09]wFMCommunicate OK [12:39:09]wFMCommunicate request_size=255 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7E 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 88 02 00 35 04 06 00 A3 FE 8D AF [12:39:09]Write to MH i2c: E2 02 01 E3 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7E 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 88 02 00 35 04 06 00 A3 FE 8D AF 00 00 BC [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 E3 4B 00 90 00 A2 [12:39:09]RAPDU: 90 00 [12:39:09]wFMCommunicate OK [12:39:09]wFMCommunicate request_size=7 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 0D 02 02 02 8E 37 [12:39:09]Write to MH i2c: E2 0A 00 E4 4B 80 0D 02 02 02 00 8E 37 00 00 72 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 03 00 E4 4B 00 90 00 A3 [12:39:09]RAPDU: 90 00 [12:39:09]wFMCommunicate OK [12:39:09]wFMCommunicate request_size=4 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 0D 03 02 [12:39:09]Write to MH i2c: E2 08 00 E5 4B 80 0D 03 02 00 00 00 00 AB [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 0B 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 0B 00 E5 4B 00 B9 C3 22 D7 8E 8F 59 F6 90 00 8D [12:39:09]RAPDU: B9 C3 22 D7 8E 8F 59 F6 90 00 [12:39:09]wFMCommunicate OK [12:39:09]SAM_PROTO_SignData done [12:39:09]FM_MakeSignedData done [12:39:09]CreateOFDProtocolMessage [12:39:09]wFMCommunicate request_size=4 [12:39:09]MH_SAM_APDU [12:39:09]CAPDU: 80 11 00 00 [12:39:09]Write to MH i2c: E2 08 00 E6 4B 80 11 00 00 00 00 00 00 AB [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:09]Read from MH i2c: E2 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 17 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: E2 17 00 E6 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 03 [12:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:39:09]wFMCommunicate OK [12:39:09]CreateOFDProtocolMessage done [12:39:09]OFDSenderStorePacket 166007 [12:39:09]StoreOFDPacket docnum=166007 [12:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C 58 04 01 9D 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7E 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 88 02 00 35 04 06 00 A3 FE 8D AF 8E 37 B9 C3 22 D7 8E 8F 59 F6 [12:39:09]CheckFolder [12:39:09]dirname=/storage/ofd_packets [12:39:09]CheckFolder done [12:39:09]ProducePacketName [12:39:09]name=ofd_packets/00166007 [12:39:09]NVStorageSaveData ofd_packets/00166007 [12:39:09]File name is /storage/ofd_packets/00166007 [12:39:09]Write 298 bytes [12:39:09]NVStorageSaveData done [12:39:09]OFDSenderStorePacket done [12:39:09]KKMCreateOFDPacket done [12:39:09]NVStorageSaveData kkm_last_timestamp [12:39:09]File name is /storage/kkm_last_timestamp [12:39:09]Write 4 bytes [12:39:09]NVStorageSaveData done [12:39:09]ExternCall_PrintAddStr [12:39:09]wPrintStart [12:39:09]Write to MH i2c: 01 00 00 E7 4B 32 [12:39:09]Write i2c OK [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: 01 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: 01 07 00 [12:39:09]MH_I2C_Read... [12:39:09]Read from MH i2c: 01 07 00 E7 4B 00 00 00 00 00 FF 0F 47 [12:39:09]RasterBufferAndPrint [12:39:09]line Счет N : (1)220575 [12:39:09]line ИНН: 02508201610067 [12:39:09]line Контрольно-Кассовый Чек [12:39:09]line ПРОДАЖА [12:39:09]line ТРК (МРК, ГНК) : 11 [12:39:09]line Товар: 2710194210 [12:39:09]line ДТ-К-5 [12:39:09]line 196.860 * 0.00 [12:39:09]line = 0.00 [12:39:09]line НДС 12% НСП 1% [12:39:09]line > о реализуемом товаре [12:39:09]line ИТОГО: 0.00 [12:39:09]line НСП 1% : 0.00 [12:39:09]line НДС 12% : 0.00 [12:39:09]line Наличными: 0.00 [12:39:09]line Безнал.: 0.00 [12:39:09]line Место: АЗС № 161 "Партнер Нефть" [12:39:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:39:09]line СНО: Общий режим [12:39:09]line Чек 118 21.10.2024 12:39 [12:39:09]line Смена: 535 ФФД: 1.0 [12:39:09]line ЗНМ: 0300000104 [12:39:09]line РНМ: 0000000000091764 [12:39:09]line Версия ККМ: 001 [12:39:09]line Талоны: Топливная Карта [12:39:09]line 38286 [12:39:09]line ФМ: 0000000000871759 [12:39:09]line ФД: 166007 [12:39:09]line ФПД: 180313694113335 [12:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T123926&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166007&fm=180313694113335&tin=02508201610067®Number=0000000000091764&sum=0 [12:39:10]OFD Sender: Processing packet 166007 [packets to send 48, broken 47] [12:39:10]ProducePacketName [12:39:10]name=ofd_packets/00166007 [12:39:10]OFD Sender: To server: pG, [12:39:10]CommunicateWithHost lk.salyk.kg:30040 [12:39:10]ConnectInit lk.salyk.kg [12:39:10]written 0, free lines is 4095 [12:39:10]Connected sock=7 [12:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C 58 04 01 9D 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 7E 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 88 02 00 35 04 06 00 A3 FE 8D AF 8E 37 B9 C3 22 D7 8E 8F 59 F6 [12:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 26 91 47 00 E1 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 77 88 02 00 F4 03 04 00 EC F1 15 67 B6 04 01 00 00 5E C0 FD 27 D3 B8 6C F2 [12:39:10]CommunicateWithHost err = 0 [12:39:10]CheckOFDResponse [12:39:10]1017 (14) - 77093643461234 [12:39:10]1041 (16) - 0000000000871759 [12:39:10]1040 (4) - 166007 [12:39:10]1012 (4) - 21.10.2024 06:17 [12:39:10]1206 (1) - 0 [12:39:10]OFD Sender: Remove packet 166007 [12:39:10]ProducePacketName [12:39:10]name=ofd_packets/00166007 [12:39:10]NVStorageDeleteData [12:39:10]Write to MH i2c: 01 00 00 11 4C 5D [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 07 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 07 00 11 4C 00 00 00 00 00 D4 0C 44 [12:39:10]RasterBufferAndPrint [12:39:10]line [12:39:10]line [12:39:10]line [12:39:10]line [12:39:10]line [12:39:10]written 0, free lines is 3290 [12:39:10]MH_Cut [12:39:10]Write to MH i2c: D1 01 00 18 4C 01 36 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: D1 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: D1 01 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: D1 01 00 18 4C 00 35 [12:39:10]Write to MH i2c: 01 00 00 19 4C 65 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:10]OFD Sender: No OFD packet to send [12:39:11]*** Cut start [12:39:11]*** Partial cut [12:39:11]*** CUTSNS_PIN = 1 [12:39:11]*** CUTSNS_PIN = 0 [12:39:11]*** Brake cut motor [12:39:12]Read from MH i2c: 01 [12:39:12]MH_I2C_Read... [12:39:12]*** Stop cut motor [12:39:12]*** Cut end [12:39:12]Read from MH i2c: 01 07 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: 01 07 00 19 4C 00 00 00 00 00 FF 0F 7A [12:39:12]process_action close_receipt done [12:39:12]requested_data is exist [12:39:12]produce_requested_data [12:39:12]requested_item fm.sn is exist - process it [12:39:12]wFMCommunicate request_size=4 [12:39:12]MH_SAM_APDU [12:39:12]CAPDU: 80 11 00 00 [12:39:12]Write to MH i2c: E2 08 00 1A 4C 80 11 00 00 00 00 00 00 E0 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 17 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 17 00 1A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [12:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:39:12]wFMCommunicate OK [12:39:12]requested_item fd.num is exist - process it [12:39:12]SAM_PROTO_GetFieldsCounters [12:39:12]wFMCommunicate request_size=4 [12:39:12]MH_SAM_APDU [12:39:12]CAPDU: 80 13 00 00 [12:39:12]Write to MH i2c: E2 08 00 1B 4C 80 13 00 00 00 00 00 00 E3 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 62 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 62 00 1B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [12:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 77 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:12]wFMCommunicate OK [12:39:12]SAM_PROTO_GetFieldsCounters done [12:39:12]requested_item shift.num is exist - process it [12:39:12]requested_item shift.opened is exist - process it [12:39:12]req_shift_opened [12:39:12]FM_GetShiftState [12:39:12]SAM_PROTO_GetShiftState [12:39:12]wFMCommunicate request_size=4 [12:39:12]MH_SAM_APDU [12:39:12]CAPDU: 80 13 01 00 [12:39:12]Write to MH i2c: E2 08 00 1C 4C 80 13 01 00 00 00 00 00 E5 [12:39:12]Write i2c OK [12:39:12]MH_I2C_Read... [12:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:12]Read from MH i2c: E2 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 0E 00 [12:39:12]MH_I2C_Read... [12:39:12]Read from MH i2c: E2 0E 00 1C 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EE [12:39:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:39:12]wFMCommunicate OK [12:39:12]SAM_PROTO_GetShiftState done [12:39:12]FM_GetShiftState done [12:39:12]req_shift_opened done [12:39:12]requested_item shift.open_date is exist - process it [12:39:12]req_shift_open_date [12:39:12]req_shift_open_date done [12:39:12]produce_requested_data done [12:39:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166007,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:39:12]process_action_free close_receipt [12:39:12]json_value_free [12:39:12]json_value_free done [12:39:12]process_json_proto returns [12:39:12]Send response to host [12:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166007,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:39:12]free response buf [12:39:12]execute_script done [12:39:12]execute_script returns [12:39:12]free content buf [12:39:12]Sock 6.Close socket [12:39:12]Sock 6.Thread stoped [12:39:16]OFD Sender: No OFD packet to send [12:39:21]OFD Sender: No OFD packet to send [12:39:26]OFD Sender: No OFD packet to send [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:39:56]accept exits with 5 [12:39:56]New connection [12:39:56]New thread 3066920292 created [12:39:56]Thread 3066776932 joined [12:39:56]Waiting for new connection... [12:39:56] Sock 5.Parse request [12:39:56]Sock 5.Check first char [12:39:56]Sock 5.First char is OK [12:39:56]request: POST /json_proto HTTP/1.0 [12:39:56]Method: POST [12:39:56]URL: /json_proto [12:39:56]Method is POST - this is cgi request [12:39:56]url: /json_proto [12:39:56]query_string will be loaded in cgi processing [12:39:56]execute_cgi json_proto POST (null) [12:39:56]execute_cgi path=json_proto method=POST [12:39:56]POST find Content-Length [12:39:56]Host: 172.17.53.195:8080 [12:39:56]Content-Length: 677 [12:39:56]Content-Type: application/json [12:39:56] [12:39:56]POST finish read [12:39:56]Found Content-Length = 677 [12:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [12:39:56]execute_script... [12:39: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)220579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [12:39:56]POST & json_proto [12:39:56]process_json_proto [12:39:56]json parsed OK: [12:39:56]protocol is kg_v1.0 [12:39:56]action value=close_receipt [12:39:56]process_action close_receipt [12:39:56]cmd_close_receipt [12:39:56]MH_GetDate [12:39:56]Write to MH i2c: F0 00 00 1D 4C 58 [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: F0 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: F0 09 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: F0 09 00 1D 4C 00 AF 4B 16 67 21 48 4A 65 F0 [12:39:56]GetLastDocTimeStamp 1729514366 [12:39:56]current date 1729514415 [12:39:56]FM_GetShiftState [12:39:56]SAM_PROTO_GetShiftState [12:39:56]wFMCommunicate request_size=4 [12:39:56]MH_SAM_APDU [12:39:56]CAPDU: 80 13 01 00 [12:39:56]Write to MH i2c: E2 08 00 1E 4C 80 13 01 00 00 00 00 00 E7 [12:39:56]Write i2c OK [12:39:56]MH_I2C_Read... [12:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:56]Read from MH i2c: E2 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: E2 0E 00 [12:39:56]MH_I2C_Read... [12:39:56]Read from MH i2c: E2 0E 00 1E 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F0 [12:39:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:39:56]wFMCommunicate OK [12:39:56]SAM_PROTO_GetShiftState done [12:39:56]FM_GetShiftState done [12:39:56]opened in 1729470944 [12:39:56]opened+sec_in_day 1729557344 [12:39:56]quantity*price = 30051 [12:39:56]sum+1 = 30052 [12:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 119 21.10.2024 12:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166008 ФПД: 149949102094170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124015&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166008&fm=149949102094170&tin=02508201610067®Number=0000000000091764&sum=30000 [12:39:58]StoreToDocumentArchive [12:39:58]shift 535 fd 166008 [12:39:58]save to /storage/0535/doc_00166008 [12:39:58]save last doc name /storage/0535/doc_00166008 to /storage/kkm_last_doc_name [12:39:58]save OK [12:39:58]Clear old archive folders... [12:39:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:58]tlvbuf is 01891D40 [12:39:58]SAM_PROTO_ClearQueue [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 09 00 00 [12:39:58]Write to MH i2c: E2 08 00 2B 4C 80 09 00 00 00 00 00 00 E9 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 2B 4C 00 90 00 EB [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_ClearQueue done [12:39:58]KKMCreateOFDPacket [12:39:58]OFDProtocolAddRootSTLVToBuf [12:39:58]FM_MakeSignedData [12:39:58]FM_MakeSignedData [12:39:58]SAM_PROTO_SignData [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 01 02 [12:39:58]Write to MH i2c: E2 08 00 2C 4C 80 0D 01 02 00 00 00 00 F1 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 2C 4C 00 90 00 EC [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=255 [12:39:58]MH_SAM_APDU [12:39: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 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 77 00 00 00 F4 03 04 00 AF 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 88 02 00 35 04 06 00 88 [12:39:58]Write to MH i2c: E2 02 01 2D 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 AF 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 88 02 00 35 04 06 00 88 00 00 40 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 2D 4C 00 90 00 ED [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=10 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 02 02 05 60 BE F6 F7 5A [12:39:58]Write to MH i2c: E2 0D 00 2E 4C 80 0D 02 02 05 00 60 BE F6 F7 5A 00 00 63 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 03 00 2E 4C 00 90 00 EE [12:39:58]RAPDU: 90 00 [12:39:58]wFMCommunicate OK [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 0D 03 02 [12:39:58]Write to MH i2c: E2 08 00 2F 4C 80 0D 03 02 00 00 00 00 F6 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0B 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 0B 00 2F 4C 00 0E 6B 19 A1 29 61 DB BB 90 00 4A [12:39:58]RAPDU: 0E 6B 19 A1 29 61 DB BB 90 00 [12:39:58]wFMCommunicate OK [12:39:58]SAM_PROTO_SignData done [12:39:58]FM_MakeSignedData done [12:39:58]CreateOFDProtocolMessage [12:39:58]wFMCommunicate request_size=4 [12:39:58]MH_SAM_APDU [12:39:58]CAPDU: 80 11 00 00 [12:39:58]Write to MH i2c: E2 08 00 30 4C 80 11 00 00 00 00 00 00 F6 [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:58]Read from MH i2c: E2 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 17 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: E2 17 00 30 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [12:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:39:58]wFMCommunicate OK [12:39:58]CreateOFDProtocolMessage done [12:39:58]OFDSenderStorePacket 166008 [12:39:58]StoreOFDPacket docnum=166008 [12:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF C6 07 01 C6 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 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 77 00 00 00 F4 03 04 00 AF 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 88 02 00 35 04 06 00 88 60 BE F6 F7 5A 0E 6B 19 A1 29 61 DB BB [12:39:58]CheckFolder [12:39:58]dirname=/storage/ofd_packets [12:39:58]CheckFolder done [12:39:58]ProducePacketName [12:39:58]name=ofd_packets/00166008 [12:39:58]NVStorageSaveData ofd_packets/00166008 [12:39:58]File name is /storage/ofd_packets/00166008 [12:39:58]Write 301 bytes [12:39:58]NVStorageSaveData done [12:39:58]OFDSenderStorePacket done [12:39:58]KKMCreateOFDPacket done [12:39:58]NVStorageSaveData kkm_last_timestamp [12:39:58]File name is /storage/kkm_last_timestamp [12:39:58]Write 4 bytes [12:39:58]NVStorageSaveData done [12:39:58]ExternCall_PrintAddStr [12:39:58]wPrintStart [12:39:58]Write to MH i2c: 01 00 00 31 4C 7D [12:39:58]Write i2c OK [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 07 00 [12:39:58]MH_I2C_Read... [12:39:58]Read from MH i2c: 01 07 00 31 4C 00 00 00 00 00 FF 0F 92 [12:39:58]RasterBufferAndPrint [12:39:58]line Счет N : (1)220579 [12:39:58]line ИНН: 02508201610067 [12:39:58]line Контрольно-Кассовый Чек [12:39:58]line ПРОДАЖА [12:39:58]line ТРК (МРК, ГНК) : 24 [12:39:58]line Товар: 2710124500 [12:39:58]line Аи-95-К-5 [12:39:58]line 4.050 * 74.20 [12:39:58]line = 300.51 [12:39:58]line НДС 12% НСП 1% [12:39:58]line > о реализуемом товаре [12:39:58]line ОКРУГЛЕНИЕ: -0.51 [12:39:58]line ИТОГО: 300.00 [12:39:58]line Внесено: 300.00 [12:39:58]line СДАЧА: 0.00 [12:39:58]line НСП 1% : 2.66 [12:39:58]line НДС 12% : 31.91 [12:39:58]line Наличными: 300.00 [12:39:58]line Безнал.: 0.00 [12:39:58]line Место: АЗС № 161 "Партнер Нефть" [12:39:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:39:58]line СНО: Общий режим [12:39:58]line Чек 119 21.10.2024 12:40 [12:39:58]line Смена: 535 ФФД: 1.0 [12:39:58]line ЗНМ: 0300000104 [12:39:58]line РНМ: 0000000000091764 [12:39:58]line Версия ККМ: 001 [12:39:58]line ФМ: 0000000000871759 [12:39:58]line ФД: 166008 [12:39:58]line ФПД: 149949102094170 [12:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124015&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166008&fm=149949102094170&tin=02508201610067®Number=0000000000091764&sum=30000 [12:39:58]OFD Sender: Processing packet 166008 [packets to send 48, broken 47] [12:39:58]ProducePacketName [12:39:58]name=ofd_packets/00166008 [12:39:58]OFD Sender: To server: pG, [12:39:58]CommunicateWithHost lk.salyk.kg:30040 [12:39:58]ConnectInit lk.salyk.kg [12:39:58]written 0, free lines is 4095 [12:39:59]Connected sock=7 [12:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF C6 07 01 C6 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 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 77 00 00 00 F4 03 04 00 AF 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 88 02 00 35 04 06 00 88 60 BE F6 F7 5A 0E 6B 19 A1 29 61 DB BB [12:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AC FF 47 00 10 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 78 88 02 00 F4 03 04 00 1D F2 15 67 B6 04 01 00 00 AF 96 2D C7 42 2E D8 6A [12:39:59]CommunicateWithHost err = 0 [12:39:59]CheckOFDResponse [12:39:59]1017 (14) - 77093643461234 [12:39:59]1041 (16) - 0000000000871759 [12:39:59]1040 (4) - 166008 [12:39:59]1012 (4) - 21.10.2024 06:18 [12:39:59]1206 (1) - 0 [12:39:59]OFD Sender: Remove packet 166008 [12:39:59]ProducePacketName [12:39:59]name=ofd_packets/00166008 [12:39:59]NVStorageDeleteData [12:39:59]Write to MH i2c: 01 00 00 5C 4C A8 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 07 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: 01 07 00 5C 4C 00 00 00 00 00 BF 0C 7A [12:39:59]RasterBufferAndPrint [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]line [12:39:59]written 0, free lines is 3269 [12:39:59]MH_Cut [12:39:59]Write to MH i2c: D1 01 00 63 4C 01 81 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 01 00 [12:39:59]MH_I2C_Read... [12:39:59]Read from MH i2c: D1 01 00 63 4C 00 80 [12:39:59]Write to MH i2c: 01 00 00 64 4C B0 [12:39:59]Write i2c OK [12:39:59]MH_I2C_Read... [12:39:59]OFD Sender: No OFD packet to send [12:40:00]*** Cut start [12:40:00]*** Partial cut [12:40:00]*** CUTSNS_PIN = 1 [12:40:00]*** CUTSNS_PIN = 0 [12:40:00]*** Brake cut motor [12:40:00]Read from MH i2c: 01 [12:40:00]MH_I2C_Read... [12:40:00]*** Stop cut motor [12:40:00]*** Cut end [12:40:00]Read from MH i2c: 01 07 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: 01 07 00 64 4C 00 00 00 00 00 FF 0F C5 [12:40:00]process_action close_receipt done [12:40:00]requested_data is exist [12:40:00]produce_requested_data [12:40:00]requested_item fm.sn is exist - process it [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 11 00 00 [12:40:00]Write to MH i2c: E2 08 00 65 4C 80 11 00 00 00 00 00 00 2B [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:00]Read from MH i2c: E2 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 [12:40:00]MH_I2C_Read... [12:40:00]Read from MH i2c: E2 17 00 65 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [12:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:40:00]wFMCommunicate OK [12:40:00]requested_item fd.num is exist - process it [12:40:00]SAM_PROTO_GetFieldsCounters [12:40:00]wFMCommunicate request_size=4 [12:40:00]MH_SAM_APDU [12:40:00]CAPDU: 80 13 00 00 [12:40:00]Write to MH i2c: E2 08 00 66 4C 80 13 00 00 00 00 00 00 2E [12:40:00]Write i2c OK [12:40:00]MH_I2C_Read... [12:40:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 62 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 62 00 66 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [12:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 78 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_GetFieldsCounters done [12:40:01]requested_item shift.num is exist - process it [12:40:01]requested_item shift.opened is exist - process it [12:40:01]req_shift_opened [12:40:01]FM_GetShiftState [12:40:01]SAM_PROTO_GetShiftState [12:40:01]wFMCommunicate request_size=4 [12:40:01]MH_SAM_APDU [12:40:01]CAPDU: 80 13 01 00 [12:40:01]Write to MH i2c: E2 08 00 67 4C 80 13 01 00 00 00 00 00 30 [12:40:01]Write i2c OK [12:40:01]MH_I2C_Read... [12:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:01]Read from MH i2c: E2 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 [12:40:01]MH_I2C_Read... [12:40:01]Read from MH i2c: E2 0E 00 67 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 39 [12:40:01]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:40:01]wFMCommunicate OK [12:40:01]SAM_PROTO_GetShiftState done [12:40:01]FM_GetShiftState done [12:40:01]req_shift_opened done [12:40:01]requested_item shift.open_date is exist - process it [12:40:01]req_shift_open_date [12:40:01]req_shift_open_date done [12:40:01]produce_requested_data done [12:40:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166008,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:40:01]process_action_free close_receipt [12:40:01]json_value_free [12:40:01]json_value_free done [12:40:01]process_json_proto returns [12:40:01]Send response to host [12:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166008,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:40:01]free response buf [12:40:01]execute_script done [12:40:01]execute_script returns [12:40:01]free content buf [12:40:01]Sock 5.Close socket [12:40:01]Sock 5.Thread stoped [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:13]accept exits with 6 [12:41:13]New connection [12:41:13]New thread 3066776932 created [12:41:13]Thread 3066920292 joined [12:41:13]Waiting for new connection... [12:41:13] Sock 6.Parse request [12:41:13]Sock 6.Check first char [12:41:13]Sock 6.First char is OK [12:41:13]request: POST /json_proto HTTP/1.0 [12:41:13]Method: POST [12:41:13]URL: /json_proto [12:41:13]Method is POST - this is cgi request [12:41:13]url: /json_proto [12:41:13]query_string will be loaded in cgi processing [12:41:13]execute_cgi json_proto POST (null) [12:41:13]execute_cgi path=json_proto method=POST [12:41:13]POST find Content-Length [12:41:13]Host: 172.17.53.195:8080 [12:41:13]Content-Length: 769 [12:41:13]Content-Type: application/json [12:41:13] [12:41:13]POST finish read [12:41:13]Found Content-Length = 769 [12:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.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: Mbank", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:13]execute_script... [12: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)220580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.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: Mbank", "payments": [ { "type": 1, "sum" : 1200.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:13]POST & json_proto [12:41:13]process_json_proto [12:41:13]json parsed OK: [12:41:13]protocol is kg_v1.0 [12:41:13]action value=close_receipt [12:41:13]process_action close_receipt [12:41:13]cmd_close_receipt [12:41:13]MH_GetDate [12:41:13]Write to MH i2c: F0 00 00 68 4C A3 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: F0 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: F0 09 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: F0 09 00 68 4C 00 FB 4B 16 67 21 48 4A 65 87 [12:41:13]GetLastDocTimeStamp 1729514415 [12:41:13]current date 1729514491 [12:41:13]FM_GetShiftState [12:41:13]SAM_PROTO_GetShiftState [12:41:13]wFMCommunicate request_size=4 [12:41:13]MH_SAM_APDU [12:41:13]CAPDU: 80 13 01 00 [12:41:13]Write to MH i2c: E2 08 00 69 4C 80 13 01 00 00 00 00 00 32 [12:41:13]Write i2c OK [12:41:13]MH_I2C_Read... [12:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:13]Read from MH i2c: E2 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 0E 00 [12:41:13]MH_I2C_Read... [12:41:13]Read from MH i2c: E2 0E 00 69 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3B [12:41:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:41:13]wFMCommunicate OK [12:41:13]SAM_PROTO_GetShiftState done [12:41:13]FM_GetShiftState done [12:41:13]opened in 1729470944 [12:41:13]opened+sec_in_day 1729557344 [12:41:13]quantity*price = 120055 [12:41:13]sum+1 = 120057 [12:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.56 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 0.00 Безнал.: 1200.56 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 120 21.10.2024 12:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166009 ФПД: 1181339186819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124131&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166009&fm=1181339186819&tin=02508201610067®Number=0000000000091764&sum=120056 [12:41:14]StoreToDocumentArchive [12:41:14]shift 535 fd 166009 [12:41:14]save to /storage/0535/doc_00166009 [12:41:14]save last doc name /storage/0535/doc_00166009 to /storage/kkm_last_doc_name [12:41:14]save OK [12:41:14]Clear old archive folders... [12:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:14]tlvbuf is 0166B290 [12:41:14]SAM_PROTO_ClearQueue [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 09 00 00 [12:41:14]Write to MH i2c: E2 08 00 76 4C 80 09 00 00 00 00 00 00 34 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 76 4C 00 90 00 36 [12:41:14]RAPDU: 90 00 [12:41:14]wFMCommunicate OK [12:41:14]SAM_PROTO_ClearQueue done [12:41:14]KKMCreateOFDPacket [12:41:14]OFDProtocolAddRootSTLVToBuf [12:41:14]FM_MakeSignedData [12:41:14]FM_MakeSignedData [12:41:14]SAM_PROTO_SignData [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 0D 01 02 [12:41:14]Write to MH i2c: E2 08 00 77 4C 80 0D 01 02 00 00 00 00 3C [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 77 4C 00 90 00 37 [12:41:14]RAPDU: 90 00 [12:41:14]wFMCommunicate OK [12:41:14]wFMCommunicate request_size=255 [12:41:14]MH_SAM_APDU [12: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 FB 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 88 02 00 35 04 06 00 01 [12:41:14]Write to MH i2c: E2 02 01 78 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 FB 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 88 02 00 35 04 06 00 01 00 00 C3 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 78 4C 00 90 00 38 [12:41:14]RAPDU: 90 00 [12:41:14]wFMCommunicate OK [12:41:14]wFMCommunicate request_size=10 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 0D 02 02 05 13 0D 4D 76 83 [12:41:14]Write to MH i2c: E2 0D 00 79 4C 80 0D 02 02 05 00 13 0D 4D 76 83 00 00 AF [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 03 00 79 4C 00 90 00 39 [12:41:14]RAPDU: 90 00 [12:41:14]wFMCommunicate OK [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 0D 03 02 [12:41:14]Write to MH i2c: E2 08 00 7A 4C 80 0D 03 02 00 00 00 00 41 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 0B 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 0B 00 7A 4C 00 54 62 F5 54 EE F9 97 38 90 00 F7 [12:41:14]RAPDU: 54 62 F5 54 EE F9 97 38 90 00 [12:41:14]wFMCommunicate OK [12:41:14]SAM_PROTO_SignData done [12:41:14]FM_MakeSignedData done [12:41:14]CreateOFDProtocolMessage [12:41:14]wFMCommunicate request_size=4 [12:41:14]MH_SAM_APDU [12:41:14]CAPDU: 80 11 00 00 [12:41:14]Write to MH i2c: E2 08 00 7B 4C 80 11 00 00 00 00 00 00 41 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:14]Read from MH i2c: E2 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 17 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: E2 17 00 7B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [12:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:41:14]wFMCommunicate OK [12:41:14]CreateOFDProtocolMessage done [12:41:14]OFDSenderStorePacket 166009 [12:41:14]StoreOFDPacket docnum=166009 [12:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE 64 07 01 98 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 FB 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 88 02 00 35 04 06 00 01 13 0D 4D 76 83 54 62 F5 54 EE F9 97 38 [12:41:14]CheckFolder [12:41:14]dirname=/storage/ofd_packets [12:41:14]CheckFolder done [12:41:14]ProducePacketName [12:41:14]name=ofd_packets/00166009 [12:41:14]NVStorageSaveData ofd_packets/00166009 [12:41:14]File name is /storage/ofd_packets/00166009 [12:41:14]Write 301 bytes [12:41:14]NVStorageSaveData done [12:41:14]OFDSenderStorePacket done [12:41:14]KKMCreateOFDPacket done [12:41:14]NVStorageSaveData kkm_last_timestamp [12:41:14]File name is /storage/kkm_last_timestamp [12:41:14]Write 4 bytes [12:41:14]NVStorageSaveData done [12:41:14]ExternCall_PrintAddStr [12:41:14]wPrintStart [12:41:14]Write to MH i2c: 01 00 00 7C 4C C8 [12:41:14]Write i2c OK [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: 01 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: 01 07 00 [12:41:14]MH_I2C_Read... [12:41:14]Read from MH i2c: 01 07 00 7C 4C 00 00 00 00 00 FF 0F DD [12:41:14]RasterBufferAndPrint [12:41:14]line Счет N : (1)220580 [12:41:14]line ИНН: 02508201610067 [12:41:14]line Контрольно-Кассовый Чек [12:41:14]line ПРОДАЖА [12:41:14]line ТРК (МРК, ГНК) : 34 [12:41:14]line Товар: 2710124500 [12:41:14]line Аи-95-К-5 [12:41:14]line 16.180 * 74.20 [12:41:14]line = 1200.56 [12:41:14]line НДС 12% НСП 1% [12:41:14]line > о реализуемом товаре [12:41:14]line ИТОГО: 1200.56 [12:41:14]line НСП 1% : 10.62 [12:41:14]line НДС 12% : 127.49 [12:41:14]line Наличными: 0.00 [12:41:14]line Безнал.: 1200.56 [12:41:14]line Место: АЗС № 161 "Партнер Нефть" [12:41:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:41:14]line СНО: Общий режим [12:41:14]line Чек 120 21.10.2024 12:41 [12:41:14]line Смена: 535 ФФД: 1.0 [12:41:14]line ЗНМ: 0300000104 [12:41:14]line РНМ: 0000000000091764 [12:41:14]line Версия ККМ: 001 [12:41:14]line Платежная система: Mbank [12:41:14]line ФМ: 0000000000871759 [12:41:14]line ФД: 166009 [12:41:14]line ФПД: 1181339186819 [12:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124131&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166009&fm=1181339186819&tin=02508201610067®Number=0000000000091764&sum=120056 [12:41:14]written 0, free lines is 4095 [12:41:14]OFD Sender: Processing packet 166009 [packets to send 48, broken 47] [12:41:14]ProducePacketName [12:41:14]name=ofd_packets/00166009 [12:41:15]OFD Sender: To server: pG, [12:41:15]CommunicateWithHost lk.salyk.kg:30040 [12:41:15]ConnectInit lk.salyk.kg [12:41:15]Connected sock=7 [12: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 35 39 0F 01 00 00 CE 64 07 01 98 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 FB 4B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 88 02 00 35 04 06 00 01 13 0D 4D 76 83 54 62 F5 54 EE F9 97 38 [12:41:15]Write to MH i2c: 01 00 00 A5 4C F1 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 07 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: 01 07 00 A5 4C 00 00 00 00 00 F5 0C F9 [12:41:15]RasterBufferAndPrint [12:41:15]line [12:41:15]line [12:41:15]line [12:41:15]line [12:41:15]line [12:41:15]written 0, free lines is 3324 [12:41:15]MH_Cut [12:41:15]Write to MH i2c: D1 01 00 AC 4C 01 CA [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: D1 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: D1 01 00 [12:41:15]MH_I2C_Read... [12:41:15]Read from MH i2c: D1 01 00 AC 4C 00 C9 [12:41:15]Write to MH i2c: 01 00 00 AD 4C F9 [12:41:15]Write i2c OK [12:41:15]MH_I2C_Read... [12: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 35 39 4F 00 00 00 D9 4F 47 00 9F 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 79 88 02 00 F4 03 04 00 69 F2 15 67 B6 04 01 00 00 E3 1D BA 28 1E EB F5 E3 [12:41:15]CommunicateWithHost err = 0 [12:41:15]CheckOFDResponse [12:41:15]1017 (14) - 77093643461234 [12:41:15]1041 (16) - 0000000000871759 [12:41:15]1040 (4) - 166009 [12:41:15]1012 (4) - 21.10.2024 06:19 [12:41:15]1206 (1) - 0 [12:41:15]OFD Sender: Remove packet 166009 [12:41:15]ProducePacketName [12:41:15]name=ofd_packets/00166009 [12:41:15]NVStorageDeleteData [12:41:15]OFD Sender: No OFD packet to send [12:41:16]*** Cut start [12:41:16]*** Partial cut [12:41:16]*** CUTSNS_PIN = 1 [12:41:16]*** CUTSNS_PIN = 0 [12:41:16]*** Brake cut motor [12:41:16]Read from MH i2c: 01 [12:41:16]MH_I2C_Read... [12:41:16]*** Stop cut motor [12:41:16]*** Cut end [12:41:16]Read from MH i2c: 01 07 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: 01 07 00 AD 4C 00 00 00 00 00 FF 0F 0E [12:41:16]process_action close_receipt done [12:41:16]requested_data is exist [12:41:16]produce_requested_data [12:41:16]requested_item fm.sn is exist - process it [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 11 00 00 [12:41:16]Write to MH i2c: E2 08 00 AE 4C 80 11 00 00 00 00 00 00 74 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 17 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 17 00 AE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [12:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:41:16]wFMCommunicate OK [12:41:16]requested_item fd.num is exist - process it [12:41:16]SAM_PROTO_GetFieldsCounters [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 00 00 [12:41:16]Write to MH i2c: E2 08 00 AF 4C 80 13 00 00 00 00 00 00 77 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 62 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 62 00 AF 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 79 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetFieldsCounters done [12:41:16]requested_item shift.num is exist - process it [12:41:16]requested_item shift.opened is exist - process it [12:41:16]req_shift_opened [12:41:16]FM_GetShiftState [12:41:16]SAM_PROTO_GetShiftState [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 01 00 [12:41:16]Write to MH i2c: E2 08 00 B0 4C 80 13 01 00 00 00 00 00 79 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 B0 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 82 [12:41:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetShiftState done [12:41:16]FM_GetShiftState done [12:41:16]req_shift_opened done [12:41:16]requested_item shift.open_date is exist - process it [12:41:16]req_shift_open_date [12:41:16]req_shift_open_date done [12:41:16]produce_requested_data done [12:41:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166009,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:41:16]process_action_free close_receipt [12:41:16]json_value_free [12:41:16]json_value_free done [12:41:16]process_json_proto returns [12:41:16]Send response to host [12:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166009,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:41:16]free response buf [12:41:16]execute_script done [12:41:16]execute_script returns [12:41:16]free content buf [12:41:16]Sock 6.Close socket [12:41:16]Sock 6.Thread stoped [12:41:21]OFD Sender: No OFD packet to send [12:41:26]OFD Sender: No OFD packet to send [12:41:31]OFD Sender: No OFD packet to send [12:41:36]OFD Sender: No OFD packet to send [12:41:41]OFD Sender: No OFD packet to send [12:41:46]OFD Sender: No OFD packet to send [12:41:51]OFD Sender: No OFD packet to send [12:41:56]OFD Sender: No OFD packet to send [12:42:01]OFD Sender: No OFD packet to send [12:42:06]OFD Sender: No OFD packet to send [12:42:11]OFD Sender: No OFD packet to send [12:42:16]OFD Sender: No OFD packet to send [12:42:21]OFD Sender: No OFD packet to send [12:42:26]OFD Sender: No OFD packet to send [12:42:31]OFD Sender: No OFD packet to send [12:42:36]OFD Sender: No OFD packet to send [12:42:41]OFD Sender: No OFD packet to send [12:42:46]OFD Sender: No OFD packet to send [12:42:47]accept exits with 5 [12:42:47]New connection [12:42:47]New thread 3066920292 created [12:42:47]Thread 3066776932 joined [12:42:47]Waiting for new connection... [12:42:47] Sock 5.Parse request [12:42:47]Sock 5.Check first char [12:42:47]Sock 5.First char is OK [12:42:47]request: POST /json_proto HTTP/1.0 [12:42:47]Method: POST [12:42:47]URL: /json_proto [12:42:47]Method is POST - this is cgi request [12:42:47]url: /json_proto [12:42:47]query_string will be loaded in cgi processing [12:42:47]execute_cgi json_proto POST (null) [12:42:47]execute_cgi path=json_proto method=POST [12:42:47]POST find Content-Length [12:42:47]Host: 172.17.53.195:8080 [12:42:47]Content-Length: 677 [12:42:47]Content-Type: application/json [12:42:47] [12:42:47]POST finish read [12:42:47]Found Content-Length = 677 [12:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:47]execute_script... [12:42: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)220581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:47]POST & json_proto [12:42:47]process_json_proto [12:42:47]json parsed OK: [12:42:47]protocol is kg_v1.0 [12:42:47]action value=close_receipt [12:42:47]process_action close_receipt [12:42:47]cmd_close_receipt [12:42:47]MH_GetDate [12:42:47]Write to MH i2c: F0 00 00 B1 4C EC [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: F0 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: F0 09 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: F0 09 00 B1 4C 00 5A 4C 16 67 21 48 4A 65 30 [12:42:47]GetLastDocTimeStamp 1729514491 [12:42:47]current date 1729514586 [12:42:47]FM_GetShiftState [12:42:47]SAM_PROTO_GetShiftState [12:42:47]wFMCommunicate request_size=4 [12:42:47]MH_SAM_APDU [12:42:47]CAPDU: 80 13 01 00 [12:42:47]Write to MH i2c: E2 08 00 B2 4C 80 13 01 00 00 00 00 00 7B [12:42:47]Write i2c OK [12:42:47]MH_I2C_Read... [12:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:47]Read from MH i2c: E2 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: E2 0E 00 [12:42:47]MH_I2C_Read... [12:42:47]Read from MH i2c: E2 0E 00 B2 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 84 [12:42:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:42:47]wFMCommunicate OK [12:42:47]SAM_PROTO_GetShiftState done [12:42:47]FM_GetShiftState done [12:42:47]opened in 1729470944 [12:42:47]opened+sec_in_day 1729557344 [12:42:47]quantity*price = 50041 [12:42:47]sum+1 = 50042 [12:42:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 121 21.10.2024 12:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166010 ФПД: 172755399364231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166010&fm=172755399364231&tin=02508201610067®Number=0000000000091764&sum=50000 [12:42:48]StoreToDocumentArchive [12:42:48]shift 535 fd 166010 [12:42:48]save to /storage/0535/doc_00166010 [12:42:48]save last doc name /storage/0535/doc_00166010 to /storage/kkm_last_doc_name [12:42:48]save OK [12:42:48]Clear old archive folders... [12:42:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:48]tlvbuf is 01512E20 [12:42:48]SAM_PROTO_ClearQueue [12:42:48]wFMCommunicate request_size=4 [12:42:48]MH_SAM_APDU [12:42:48]CAPDU: 80 09 00 00 [12:42:48]Write to MH i2c: E2 08 00 BF 4C 80 09 00 00 00 00 00 00 7D [12:42:48]Write i2c OK [12:42:48]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 BF 4C 00 90 00 7F [12:42:49]RAPDU: 90 00 [12:42:49]wFMCommunicate OK [12:42:49]SAM_PROTO_ClearQueue done [12:42:49]KKMCreateOFDPacket [12:42:49]OFDProtocolAddRootSTLVToBuf [12:42:49]FM_MakeSignedData [12:42:49]FM_MakeSignedData [12:42:49]SAM_PROTO_SignData [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 0D 01 02 [12:42:49]Write to MH i2c: E2 08 00 C0 4C 80 0D 01 02 00 00 00 00 85 [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 C0 4C 00 90 00 80 [12:42:49]RAPDU: 90 00 [12:42:49]wFMCommunicate OK [12:42:49]wFMCommunicate request_size=255 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 4C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 88 02 00 35 04 06 00 9D [12:42:49]Write to MH i2c: E2 02 01 C1 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 4C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 88 02 00 35 04 06 00 9D 00 00 71 [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 C1 4C 00 90 00 81 [12:42:49]RAPDU: 90 00 [12:42:49]wFMCommunicate OK [12:42:49]wFMCommunicate request_size=10 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 0D 02 02 05 1E C0 36 4E 87 [12:42:49]Write to MH i2c: E2 0D 00 C2 4C 80 0D 02 02 05 00 1E C0 36 4E 87 00 00 7B [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 03 00 C2 4C 00 90 00 82 [12:42:49]RAPDU: 90 00 [12:42:49]wFMCommunicate OK [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 0D 03 02 [12:42:49]Write to MH i2c: E2 08 00 C3 4C 80 0D 03 02 00 00 00 00 8A [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 0B 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 0B 00 C3 4C 00 B6 7C 80 7D 76 13 67 81 90 00 2B [12:42:49]RAPDU: B6 7C 80 7D 76 13 67 81 90 00 [12:42:49]wFMCommunicate OK [12:42:49]SAM_PROTO_SignData done [12:42:49]FM_MakeSignedData done [12:42:49]CreateOFDProtocolMessage [12:42:49]wFMCommunicate request_size=4 [12:42:49]MH_SAM_APDU [12:42:49]CAPDU: 80 11 00 00 [12:42:49]Write to MH i2c: E2 08 00 C4 4C 80 11 00 00 00 00 00 00 8A [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:49]Read from MH i2c: E2 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 17 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: E2 17 00 C4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [12:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:49]wFMCommunicate OK [12:42:49]CreateOFDProtocolMessage done [12:42:49]OFDSenderStorePacket 166010 [12:42:49]StoreOFDPacket docnum=166010 [12:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 BC 07 01 F4 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 4C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 88 02 00 35 04 06 00 9D 1E C0 36 4E 87 B6 7C 80 7D 76 13 67 81 [12:42:49]CheckFolder [12:42:49]dirname=/storage/ofd_packets [12:42:49]CheckFolder done [12:42:49]ProducePacketName [12:42:49]name=ofd_packets/00166010 [12:42:49]NVStorageSaveData ofd_packets/00166010 [12:42:49]File name is /storage/ofd_packets/00166010 [12:42:49]Write 301 bytes [12:42:49]NVStorageSaveData done [12:42:49]OFDSenderStorePacket done [12:42:49]KKMCreateOFDPacket done [12:42:49]NVStorageSaveData kkm_last_timestamp [12:42:49]File name is /storage/kkm_last_timestamp [12:42:49]Write 4 bytes [12:42:49]NVStorageSaveData done [12:42:49]ExternCall_PrintAddStr [12:42:49]wPrintStart [12:42:49]Write to MH i2c: 01 00 00 C5 4C 11 [12:42:49]Write i2c OK [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: 01 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: 01 07 00 [12:42:49]MH_I2C_Read... [12:42:49]Read from MH i2c: 01 07 00 C5 4C 00 00 00 00 00 FF 0F 26 [12:42:49]RasterBufferAndPrint [12:42:49]line Счет N : (1)220581 [12:42:49]line ИНН: 02508201610067 [12:42:49]line Контрольно-Кассовый Чек [12:42:49]line ПРОДАЖА [12:42:49]line ТРК (МРК, ГНК) : 43 [12:42:49]line Товар: 2710124130 [12:42:49]line Аи-92-К-5 [12:42:49]line 7.480 * 66.90 [12:42:49]line = 500.41 [12:42:49]line НДС 12% НСП 1% [12:42:49]line > о реализуемом товаре [12:42:49]line ОКРУГЛЕНИЕ: -0.41 [12:42:49]line ИТОГО: 500.00 [12:42:49]line Внесено: 500.00 [12:42:49]line СДАЧА: 0.00 [12:42:49]line НСП 1% : 4.43 [12:42:49]line НДС 12% : 53.14 [12:42:49]line Наличными: 500.00 [12:42:49]line Безнал.: 0.00 [12:42:49]line Место: АЗС № 161 "Партнер Нефть" [12:42:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:42:49]line СНО: Общий режим [12:42:49]line Чек 121 21.10.2024 12:43 [12:42:49]line Смена: 535 ФФД: 1.0 [12:42:49]line ЗНМ: 0300000104 [12:42:49]line РНМ: 0000000000091764 [12:42:49]line Версия ККМ: 001 [12:42:49]line ФМ: 0000000000871759 [12:42:49]line ФД: 166010 [12:42:49]line ФПД: 172755399364231 [12:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166010&fm=172755399364231&tin=02508201610067®Number=0000000000091764&sum=50000 [12:42:49]OFD Sender: Processing packet 166010 [packets to send 48, broken 47] [12:42:49]ProducePacketName [12:42:49]name=ofd_packets/00166010 [12:42:49]OFD Sender: To server: pG, [12:42:49]CommunicateWithHost lk.salyk.kg:30040 [12:42:49]ConnectInit lk.salyk.kg [12:42:49]written 0, free lines is 4095 [12:42:49]Connected sock=7 [12:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D3 BC 07 01 F4 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 5A 4C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 88 02 00 35 04 06 00 9D 1E C0 36 4E 87 B6 7C 80 7D 76 13 67 81 [12:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F2 83 47 00 27 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7A 88 02 00 F4 03 04 00 C8 F2 15 67 B6 04 01 00 00 48 44 81 D6 0E 66 F2 DA [12:42:50]CommunicateWithHost err = 0 [12:42:50]CheckOFDResponse [12:42:50]1017 (14) - 77093643461234 [12:42:50]1041 (16) - 0000000000871759 [12:42:50]1040 (4) - 166010 [12:42:50]1012 (4) - 21.10.2024 06:20 [12:42:50]1206 (1) - 0 [12:42:50]OFD Sender: Remove packet 166010 [12:42:50]ProducePacketName [12:42:50]name=ofd_packets/00166010 [12:42:50]NVStorageDeleteData [12:42:50]Write to MH i2c: 01 00 00 F0 4C 3C [12:42:50]Write i2c OK [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: 01 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: 01 07 00 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: 01 07 00 F0 4C 00 00 00 00 00 D6 0C 25 [12:42:50]RasterBufferAndPrint [12:42:50]line [12:42:50]line [12:42:50]line [12:42:50]line [12:42:50]line [12:42:50]written 0, free lines is 3293 [12:42:50]MH_Cut [12:42:50]Write to MH i2c: D1 01 00 F7 4C 01 15 [12:42:50]Write i2c OK [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: D1 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: D1 01 00 [12:42:50]MH_I2C_Read... [12:42:50]Read from MH i2c: D1 01 00 F7 4C 00 14 [12:42:50]Write to MH i2c: 01 00 00 F8 4C 44 [12:42:50]Write i2c OK [12:42:50]MH_I2C_Read... [12:42:50]OFD Sender: No OFD packet to send [12:42:51]*** Cut start [12:42:51]*** Partial cut [12:42:51]*** CUTSNS_PIN = 1 [12:42:51]*** CUTSNS_PIN = 0 [12:42:51]*** Brake cut motor [12:42:51]Read from MH i2c: 01 [12:42:51]MH_I2C_Read... [12:42:51]*** Stop cut motor [12:42:51]*** Cut end [12:42:51]Read from MH i2c: 01 07 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: 01 07 00 F8 4C 00 00 00 00 00 FF 0F 59 [12:42:51]process_action close_receipt done [12:42:51]requested_data is exist [12:42:51]produce_requested_data [12:42:51]requested_item fm.sn is exist - process it [12:42:51]wFMCommunicate request_size=4 [12:42:51]MH_SAM_APDU [12:42:51]CAPDU: 80 11 00 00 [12:42:51]Write to MH i2c: E2 08 00 F9 4C 80 11 00 00 00 00 00 00 BF [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:51]Read from MH i2c: E2 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 17 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 17 00 F9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [12:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:42:51]wFMCommunicate OK [12:42:51]requested_item fd.num is exist - process it [12:42:51]SAM_PROTO_GetFieldsCounters [12:42:51]wFMCommunicate request_size=4 [12:42:51]MH_SAM_APDU [12:42:51]CAPDU: 80 13 00 00 [12:42:51]Write to MH i2c: E2 08 00 FA 4C 80 13 00 00 00 00 00 00 C2 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:51]Read from MH i2c: E2 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 62 00 [12:42:51]MH_I2C_Read... [12:42:51]Read from MH i2c: E2 62 00 FA 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [12:42:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:51]wFMCommunicate OK [12:42:51]SAM_PROTO_GetFieldsCounters done [12:42:51]requested_item shift.num is exist - process it [12:42:51]requested_item shift.opened is exist - process it [12:42:51]req_shift_opened [12:42:51]FM_GetShiftState [12:42:51]SAM_PROTO_GetShiftState [12:42:51]wFMCommunicate request_size=4 [12:42:51]MH_SAM_APDU [12:42:51]CAPDU: 80 13 01 00 [12:42:51]Write to MH i2c: E2 08 00 FB 4C 80 13 01 00 00 00 00 00 C4 [12:42:51]Write i2c OK [12:42:51]MH_I2C_Read... [12:42:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:52]Read from MH i2c: E2 [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: E2 0E 00 [12:42:52]MH_I2C_Read... [12:42:52]Read from MH i2c: E2 0E 00 FB 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [12:42:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:42:52]wFMCommunicate OK [12:42:52]SAM_PROTO_GetShiftState done [12:42:52]FM_GetShiftState done [12:42:52]req_shift_opened done [12:42:52]requested_item shift.open_date is exist - process it [12:42:52]req_shift_open_date [12:42:52]req_shift_open_date done [12:42:52]produce_requested_data done [12:42:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166010,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:42:52]process_action_free close_receipt [12:42:52]json_value_free [12:42:52]json_value_free done [12:42:52]process_json_proto returns [12:42:52]Send response to host [12:42:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166010,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:42:52]free response buf [12:42:52]execute_script done [12:42:52]execute_script returns [12:42:52]free content buf [12:42:52]Sock 5.Close socket [12:42:52]Sock 5.Thread stoped [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]accept exits with 6 [12:46:00]New connection [12:46:00]New thread 3066776932 created [12:46:00]Thread 3066920292 joined [12:46:00]Waiting for new connection... [12:46:00] Sock 6.Parse request [12:46:00]Sock 6.Check first char [12:46:00]Sock 6.First char is OK [12:46:00]request: POST /json_proto HTTP/1.0 [12:46:00]Method: POST [12:46:00]URL: /json_proto [12:46:00]Method is POST - this is cgi request [12:46:00]url: /json_proto [12:46:00]query_string will be loaded in cgi processing [12:46:00]execute_cgi json_proto POST (null) [12:46:00]execute_cgi path=json_proto method=POST [12:46:00]POST find Content-Length [12:46:00]Host: 172.17.53.195:8080 [12:46:00]Content-Length: 766 [12:46:00]Content-Type: application/json [12:46:00] [12:46:00]POST finish read [12:46:00]Found Content-Length = 766 [12:46:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:00]execute_script... [12:46:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:00]POST & json_proto [12:46:00]process_json_proto [12:46:00]json parsed OK: [12:46:00]protocol is kg_v1.0 [12:46:00]action value=close_receipt [12:46:00]process_action close_receipt [12:46:00]cmd_close_receipt [12:46:00]MH_GetDate [12:46:00]Write to MH i2c: F0 00 00 FC 4C 37 [12:46:00]Write i2c OK [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: F0 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: F0 09 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: F0 09 00 FC 4C 00 1A 4D 16 67 21 48 4A 65 3C [12:46:00]GetLastDocTimeStamp 1729514586 [12:46:00]current date 1729514778 [12:46:00]FM_GetShiftState [12:46:00]SAM_PROTO_GetShiftState [12:46:00]wFMCommunicate request_size=4 [12:46:00]MH_SAM_APDU [12:46:00]CAPDU: 80 13 01 00 [12:46:00]Write to MH i2c: E2 08 00 FD 4C 80 13 01 00 00 00 00 00 C6 [12:46:00]Write i2c OK [12:46:00]MH_I2C_Read... [12:46:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:00]Read from MH i2c: E2 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 0E 00 [12:46:00]MH_I2C_Read... [12:46:00]Read from MH i2c: E2 0E 00 FD 4C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CF [12:46:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:46:00]wFMCommunicate OK [12:46:00]SAM_PROTO_GetShiftState done [12:46:00]FM_GetShiftState done [12:46:00]opened in 1729470944 [12:46:00]opened+sec_in_day 1729557344 [12:46:00]quantity*price = 400050 [12:46:00]sum+1 = 400051 [12:46:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 122 21.10.2024 12:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166011 ФПД: 147219760805217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124618&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166011&fm=147219760805217&tin=02508201610067®Number=0000000000091764&sum=400050 [12:46:01]StoreToDocumentArchive [12:46:01]shift 535 fd 166011 [12:46:01]save to /storage/0535/doc_00166011 [12:46:01]save last doc name /storage/0535/doc_00166011 to /storage/kkm_last_doc_name [12:46:01]save OK [12:46:01]Clear old archive folders... [12:46:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:01]tlvbuf is 014A6ED0 [12:46:01]SAM_PROTO_ClearQueue [12:46:01]wFMCommunicate request_size=4 [12:46:01]MH_SAM_APDU [12:46:01]CAPDU: 80 09 00 00 [12:46:01]Write to MH i2c: E2 08 00 0A 4D 80 09 00 00 00 00 00 00 C9 [12:46:01]Write i2c OK [12:46:01]MH_I2C_Read... [12:46:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:01]Read from MH i2c: E2 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 03 00 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 03 00 0A 4D 00 90 00 CB [12:46:01]RAPDU: 90 00 [12:46:01]wFMCommunicate OK [12:46:01]SAM_PROTO_ClearQueue done [12:46:01]KKMCreateOFDPacket [12:46:01]OFDProtocolAddRootSTLVToBuf [12:46:01]FM_MakeSignedData [12:46:01]FM_MakeSignedData [12:46:01]SAM_PROTO_SignData [12:46:01]wFMCommunicate request_size=4 [12:46:01]MH_SAM_APDU [12:46:01]CAPDU: 80 0D 01 02 [12:46:01]Write to MH i2c: E2 08 00 0B 4D 80 0D 01 02 00 00 00 00 D1 [12:46:01]Write i2c OK [12:46:01]MH_I2C_Read... [12:46:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:01]Read from MH i2c: E2 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 03 00 [12:46:01]MH_I2C_Read... [12:46:01]Read from MH i2c: E2 03 00 0B 4D 00 90 00 CC [12:46:01]RAPDU: 90 00 [12:46:01]wFMCommunicate OK [12:46:01]wFMCommunicate request_size=255 [12:46:01]MH_SAM_APDU [12:46:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 88 02 00 35 04 06 00 85 E5 45 8B [12:46:01]Write to MH i2c: E2 02 01 0C 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 88 02 00 35 04 06 00 85 E5 45 8B 00 00 9C [12:46:01]Write i2c OK [12:46:01]MH_I2C_Read... [12:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:02]Read from MH i2c: E2 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 03 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 03 00 0C 4D 00 90 00 CD [12:46:02]RAPDU: 90 00 [12:46:02]wFMCommunicate OK [12:46:02]wFMCommunicate request_size=7 [12:46:02]MH_SAM_APDU [12:46:02]CAPDU: 80 0D 02 02 02 F5 61 [12:46:02]Write to MH i2c: E2 0A 00 0D 4D 80 0D 02 02 02 00 F5 61 00 00 2E [12:46:02]Write i2c OK [12:46:02]MH_I2C_Read... [12:46:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:02]Read from MH i2c: E2 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 03 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 03 00 0D 4D 00 90 00 CE [12:46:02]RAPDU: 90 00 [12:46:02]wFMCommunicate OK [12:46:02]wFMCommunicate request_size=4 [12:46:02]MH_SAM_APDU [12:46:02]CAPDU: 80 0D 03 02 [12:46:02]Write to MH i2c: E2 08 00 0E 4D 80 0D 03 02 00 00 00 00 D6 [12:46:02]Write i2c OK [12:46:02]MH_I2C_Read... [12:46:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:02]Read from MH i2c: E2 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 0B 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 0B 00 0E 4D 00 43 3A B8 89 15 F9 01 3E 90 00 E2 [12:46:02]RAPDU: 43 3A B8 89 15 F9 01 3E 90 00 [12:46:02]wFMCommunicate OK [12:46:02]SAM_PROTO_SignData done [12:46:02]FM_MakeSignedData done [12:46:02]CreateOFDProtocolMessage [12:46:02]wFMCommunicate request_size=4 [12:46:02]MH_SAM_APDU [12:46:02]CAPDU: 80 11 00 00 [12:46:02]Write to MH i2c: E2 08 00 0F 4D 80 11 00 00 00 00 00 00 D6 [12:46:02]Write i2c OK [12:46:02]MH_I2C_Read... [12:46:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:02]Read from MH i2c: E2 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 17 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: E2 17 00 0F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [12:46:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:02]wFMCommunicate OK [12:46:02]CreateOFDProtocolMessage done [12:46:02]OFDSenderStorePacket 166011 [12:46:02]StoreOFDPacket docnum=166011 [12:46:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 18 7D 04 01 87 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 88 02 00 35 04 06 00 85 E5 45 8B F5 61 43 3A B8 89 15 F9 01 3E [12:46:02]CheckFolder [12:46:02]dirname=/storage/ofd_packets [12:46:02]CheckFolder done [12:46:02]ProducePacketName [12:46:02]name=ofd_packets/00166011 [12:46:02]NVStorageSaveData ofd_packets/00166011 [12:46:02]File name is /storage/ofd_packets/00166011 [12:46:02]Write 298 bytes [12:46:02]NVStorageSaveData done [12:46:02]OFDSenderStorePacket done [12:46:02]KKMCreateOFDPacket done [12:46:02]NVStorageSaveData kkm_last_timestamp [12:46:02]File name is /storage/kkm_last_timestamp [12:46:02]Write 4 bytes [12:46:02]NVStorageSaveData done [12:46:02]ExternCall_PrintAddStr [12:46:02]wPrintStart [12:46:02]Write to MH i2c: 01 00 00 10 4D 5D [12:46:02]Write i2c OK [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: 01 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: 01 07 00 [12:46:02]MH_I2C_Read... [12:46:02]Read from MH i2c: 01 07 00 10 4D 00 00 00 00 00 FF 0F 72 [12:46:02]RasterBufferAndPrint [12:46:02]line Счет N : (1)220583 [12:46:02]line ИНН: 02508201610067 [12:46:02]line Контрольно-Кассовый Чек [12:46:02]line ПРОДАЖА [12:46:02]line ТРК (МРК, ГНК) : 31 [12:46:02]line Товар: 2710194210 [12:46:02]line ДТ-К-5 [12:46:02]line 52.500 * 76.20 [12:46:02]line = 4000.50 [12:46:02]line НДС 12% НСП 1% [12:46:02]line > о реализуемом товаре [12:46:02]line ИТОГО: 4000.50 [12:46:02]line НСП 1% : 35.40 [12:46:02]line НДС 12% : 424.83 [12:46:02]line Наличными: 0.00 [12:46:02]line Безнал.: 4000.50 [12:46:02]line Место: АЗС № 161 "Партнер Нефть" [12:46:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:46:02]line СНО: Общий режим [12:46:02]line Чек 122 21.10.2024 12:46 [12:46:02]line Смена: 535 ФФД: 1.0 [12:46:02]line ЗНМ: 0300000104 [12:46:02]line РНМ: 0000000000091764 [12:46:02]line Версия ККМ: 001 [12:46:02]line Платежная система: Mbank [12:46:02]line ФМ: 0000000000871759 [12:46:02]line ФД: 166011 [12:46:02]line ФПД: 147219760805217 [12:46:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124618&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166011&fm=147219760805217&tin=02508201610067®Number=0000000000091764&sum=400050 [12:46:02]OFD Sender: Processing packet 166011 [packets to send 48, broken 47] [12:46:02]ProducePacketName [12:46:02]name=ofd_packets/00166011 [12:46:02]OFD Sender: To server: pG, [12:46:02]CommunicateWithHost lk.salyk.kg:30040 [12:46:02]ConnectInit lk.salyk.kg [12:46:02]written 0, free lines is 4095 [12:46:02]Connected sock=7 [12:46:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 18 7D 04 01 87 84 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 1A 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 88 02 00 35 04 06 00 85 E5 45 8B F5 61 43 3A B8 89 15 F9 01 3E [12:46:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 59 4E 47 00 80 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7B 88 02 00 F4 03 04 00 89 F3 15 67 B6 04 01 00 00 7F 7F 37 CF 82 C5 5D C1 [12:46:02]CommunicateWithHost err = 0 [12:46:02]CheckOFDResponse [12:46:02]1017 (14) - 77093643461234 [12:46:02]1041 (16) - 0000000000871759 [12:46:02]1040 (4) - 166011 [12:46:02]1012 (4) - 21.10.2024 06:24 [12:46:02]1206 (1) - 0 [12:46:02]OFD Sender: Remove packet 166011 [12:46:02]ProducePacketName [12:46:02]name=ofd_packets/00166011 [12:46:02]NVStorageDeleteData [12:46:03]Write to MH i2c: 01 00 00 39 4D 86 [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: 01 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: 01 07 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: 01 07 00 39 4D 00 00 00 00 00 EE 0C 87 [12:46:03]RasterBufferAndPrint [12:46:03]line [12:46:03]line [12:46:03]line [12:46:03]line [12:46:03]line [12:46:03]written 0, free lines is 3317 [12:46:03]MH_Cut [12:46:03]Write to MH i2c: D1 01 00 40 4D 01 5F [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: D1 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: D1 01 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: D1 01 00 40 4D 00 5E [12:46:03]Write to MH i2c: 01 00 00 41 4D 8E [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]OFD Sender: No OFD packet to send [12:46:03]*** Cut start [12:46:03]*** Partial cut [12:46:03]*** CUTSNS_PIN = 1 [12:46:03]*** CUTSNS_PIN = 0 [12:46:04]*** Brake cut motor [12:46:04]Read from MH i2c: 01 [12:46:04]MH_I2C_Read... [12:46:04]*** Stop cut motor [12:46:04]*** Cut end [12:46:04]Read from MH i2c: 01 07 00 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: 01 07 00 41 4D 00 00 00 00 00 FF 0F A3 [12:46:04]process_action close_receipt done [12:46:04]requested_data is exist [12:46:04]produce_requested_data [12:46:04]requested_item fm.sn is exist - process it [12:46:04]wFMCommunicate request_size=4 [12:46:04]MH_SAM_APDU [12:46:04]CAPDU: 80 11 00 00 [12:46:04]Write to MH i2c: E2 08 00 42 4D 80 11 00 00 00 00 00 00 09 [12:46:04]Write i2c OK [12:46:04]MH_I2C_Read... [12:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:04]Read from MH i2c: E2 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 17 00 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 17 00 42 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [12:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:04]wFMCommunicate OK [12:46:04]requested_item fd.num is exist - process it [12:46:04]SAM_PROTO_GetFieldsCounters [12:46:04]wFMCommunicate request_size=4 [12:46:04]MH_SAM_APDU [12:46:04]CAPDU: 80 13 00 00 [12:46:04]Write to MH i2c: E2 08 00 43 4D 80 13 00 00 00 00 00 00 0C [12:46:04]Write i2c OK [12:46:04]MH_I2C_Read... [12:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:04]Read from MH i2c: E2 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 62 00 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 62 00 43 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [12:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:04]wFMCommunicate OK [12:46:04]SAM_PROTO_GetFieldsCounters done [12:46:04]requested_item shift.num is exist - process it [12:46:04]requested_item shift.opened is exist - process it [12:46:04]req_shift_opened [12:46:04]FM_GetShiftState [12:46:04]SAM_PROTO_GetShiftState [12:46:04]wFMCommunicate request_size=4 [12:46:04]MH_SAM_APDU [12:46:04]CAPDU: 80 13 01 00 [12:46:04]Write to MH i2c: E2 08 00 44 4D 80 13 01 00 00 00 00 00 0E [12:46:04]Write i2c OK [12:46:04]MH_I2C_Read... [12:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:04]Read from MH i2c: E2 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 0E 00 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 0E 00 44 4D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 17 [12:46:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:46:04]wFMCommunicate OK [12:46:04]SAM_PROTO_GetShiftState done [12:46:04]FM_GetShiftState done [12:46:04]req_shift_opened done [12:46:04]requested_item shift.open_date is exist - process it [12:46:04]req_shift_open_date [12:46:04]req_shift_open_date done [12:46:04]produce_requested_data done [12:46:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166011,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:46:04]process_action_free close_receipt [12:46:04]json_value_free [12:46:04]json_value_free done [12:46:04]process_json_proto returns [12:46:04]Send response to host [12:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166011,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:46:04]free response buf [12:46:04]execute_script done [12:46:04]execute_script returns [12:46:04]free content buf [12:46:04]Sock 6.Close socket [12:46:04]Sock 6.Thread stoped [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:21]accept exits with 5 [12:46:21]New connection [12:46:21]New thread 3066920292 created [12:46:21]Thread 3066776932 joined [12:46:21]Waiting for new connection... [12:46:21] Sock 5.Parse request [12:46:21]Sock 5.Check first char [12:46:21]Sock 5.First char is OK [12:46:21]request: POST /json_proto HTTP/1.0 [12:46:21]Method: POST [12:46:21]URL: /json_proto [12:46:21]Method is POST - this is cgi request [12:46:21]url: /json_proto [12:46:21]query_string will be loaded in cgi processing [12:46:21]execute_cgi json_proto POST (null) [12:46:21]execute_cgi path=json_proto method=POST [12:46:21]POST find Content-Length [12:46:21]Host: 172.17.53.195:8080 [12:46:21]Content-Length: 676 [12:46:21]Content-Type: application/json [12:46:21] [12:46:21]POST finish read [12:46:21]Found Content-Length = 676 [12:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:21]execute_script... [12: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)220584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:21]POST & json_proto [12:46:21]process_json_proto [12:46:21]json parsed OK: [12:46:21]protocol is kg_v1.0 [12:46:21]action value=close_receipt [12:46:21]process_action close_receipt [12:46:21]cmd_close_receipt [12:46:21]MH_GetDate [12:46:21]Write to MH i2c: F0 00 00 45 4D 81 [12:46:21]Write i2c OK [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: F0 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: F0 09 00 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: F0 09 00 45 4D 00 30 4D 16 67 21 48 4A 65 9C [12:46:21]GetLastDocTimeStamp 1729514778 [12:46:21]current date 1729514800 [12:46:21]FM_GetShiftState [12:46:21]SAM_PROTO_GetShiftState [12:46:21]wFMCommunicate request_size=4 [12:46:21]MH_SAM_APDU [12:46:21]CAPDU: 80 13 01 00 [12:46:21]Write to MH i2c: E2 08 00 46 4D 80 13 01 00 00 00 00 00 10 [12:46:21]Write i2c OK [12:46:21]MH_I2C_Read... [12:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:21]Read from MH i2c: E2 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: E2 0E 00 [12:46:21]MH_I2C_Read... [12:46:21]Read from MH i2c: E2 0E 00 46 4D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [12:46:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:46:21]wFMCommunicate OK [12:46:21]SAM_PROTO_GetShiftState done [12:46:21]FM_GetShiftState done [12:46:21]opened in 1729470944 [12:46:21]opened+sec_in_day 1729557344 [12:46:21]quantity*price = 99974 [12:46:21]sum+1 = 99975 [12:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 123 21.10.2024 12:46 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166012 ФПД: 253271375378157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124640&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166012&fm=253271375378157&tin=02508201610067®Number=0000000000091764&sum=99900 [12:46:22]StoreToDocumentArchive [12:46:22]shift 535 fd 166012 [12:46:22]save to /storage/0535/doc_00166012 [12:46:22]save last doc name /storage/0535/doc_00166012 to /storage/kkm_last_doc_name [12:46:22]save OK [12:46:22]Clear old archive folders... [12:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:22]tlvbuf is 0144AEC0 [12:46:22]SAM_PROTO_ClearQueue [12:46:22]wFMCommunicate request_size=4 [12:46:22]MH_SAM_APDU [12:46:22]CAPDU: 80 09 00 00 [12:46:22]Write to MH i2c: E2 08 00 53 4D 80 09 00 00 00 00 00 00 12 [12:46:22]Write i2c OK [12:46:22]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:23]Read from MH i2c: E2 03 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 53 4D 00 90 00 14 [12:46:23]RAPDU: 90 00 [12:46:23]wFMCommunicate OK [12:46:23]SAM_PROTO_ClearQueue done [12:46:23]KKMCreateOFDPacket [12:46:23]OFDProtocolAddRootSTLVToBuf [12:46:23]FM_MakeSignedData [12:46:23]FM_MakeSignedData [12:46:23]SAM_PROTO_SignData [12:46:23]wFMCommunicate request_size=4 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 0D 01 02 [12:46:23]Write to MH i2c: E2 08 00 54 4D 80 0D 01 02 00 00 00 00 1A [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 54 4D 00 90 00 15 [12:46:23]RAPDU: 90 00 [12:46:23]wFMCommunicate OK [12:46:23]wFMCommunicate request_size=255 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 30 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 88 02 00 35 04 06 00 E6 59 56 5C [12:46:23]Write to MH i2c: E2 02 01 55 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 30 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 88 02 00 35 04 06 00 E6 59 56 5C 00 00 04 [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 55 4D 00 90 00 16 [12:46:23]RAPDU: 90 00 [12:46:23]wFMCommunicate OK [12:46:23]wFMCommunicate request_size=7 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 0D 02 02 02 76 ED [12:46:23]Write to MH i2c: E2 0A 00 56 4D 80 0D 02 02 02 00 76 ED 00 00 84 [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 03 00 56 4D 00 90 00 17 [12:46:23]RAPDU: 90 00 [12:46:23]wFMCommunicate OK [12:46:23]wFMCommunicate request_size=4 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 0D 03 02 [12:46:23]Write to MH i2c: E2 08 00 57 4D 80 0D 03 02 00 00 00 00 1F [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 0B 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 0B 00 57 4D 00 A1 33 75 BA 15 EF 0D 7E 90 00 B2 [12:46:23]RAPDU: A1 33 75 BA 15 EF 0D 7E 90 00 [12:46:23]wFMCommunicate OK [12:46:23]SAM_PROTO_SignData done [12:46:23]FM_MakeSignedData done [12:46:23]CreateOFDProtocolMessage [12:46:23]wFMCommunicate request_size=4 [12:46:23]MH_SAM_APDU [12:46:23]CAPDU: 80 11 00 00 [12:46:23]Write to MH i2c: E2 08 00 58 4D 80 11 00 00 00 00 00 00 1F [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]OFD Sender: No OFD packet to send [12:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:23]Read from MH i2c: E2 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 17 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: E2 17 00 58 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [12:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:23]wFMCommunicate OK [12:46:23]CreateOFDProtocolMessage done [12:46:23]OFDSenderStorePacket 166012 [12:46:23]StoreOFDPacket docnum=166012 [12:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD B9 04 01 4E 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 30 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 88 02 00 35 04 06 00 E6 59 56 5C 76 ED A1 33 75 BA 15 EF 0D 7E [12:46:23]CheckFolder [12:46:23]dirname=/storage/ofd_packets [12:46:23]CheckFolder done [12:46:23]ProducePacketName [12:46:23]name=ofd_packets/00166012 [12:46:23]NVStorageSaveData ofd_packets/00166012 [12:46:23]File name is /storage/ofd_packets/00166012 [12:46:23]Write 298 bytes [12:46:23]NVStorageSaveData done [12:46:23]OFDSenderStorePacket done [12:46:23]KKMCreateOFDPacket done [12:46:23]NVStorageSaveData kkm_last_timestamp [12:46:23]File name is /storage/kkm_last_timestamp [12:46:23]Write 4 bytes [12:46:23]NVStorageSaveData done [12:46:23]ExternCall_PrintAddStr [12:46:23]wPrintStart [12:46:23]Write to MH i2c: 01 00 00 59 4D A6 [12:46:23]Write i2c OK [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 07 00 [12:46:23]MH_I2C_Read... [12:46:23]Read from MH i2c: 01 07 00 59 4D 00 00 00 00 00 FF 0F BB [12:46:23]RasterBufferAndPrint [12:46:23]line Счет N : (1)220584 [12:46:23]line ИНН: 02508201610067 [12:46:23]line Контрольно-Кассовый Чек [12:46:23]line ПРОДАЖА [12:46:23]line ТРК (МРК, ГНК) : 11 [12:46:23]line Товар: 2710194210 [12:46:23]line ДТ-К-5 [12:46:23]line 13.120 * 76.20 [12:46:23]line = 999.74 [12:46:23]line НДС 12% НСП 1% [12:46:23]line > о реализуемом товаре [12:46:23]line ОКРУГЛЕНИЕ: -0.74 [12:46:23]line ИТОГО: 999.00 [12:46:23]line Внесено: 1000.00 [12:46:23]line СДАЧА: 1.00 [12:46:23]line НСП 1% : 8.85 [12:46:23]line НДС 12% : 106.17 [12:46:23]line Наличными: 999.00 [12:46:23]line Безнал.: 0.00 [12:46:23]line Место: АЗС № 161 "Партнер Нефть" [12:46:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:46:23]line СНО: Общий режим [12:46:23]line Чек 123 21.10.2024 12:46 [12:46:23]line Смена: 535 ФФД: 1.0 [12:46:23]line ЗНМ: 0300000104 [12:46:23]line РНМ: 0000000000091764 [12:46:23]line Версия ККМ: 001 [12:46:23]line ФМ: 0000000000871759 [12:46:23]line ФД: 166012 [12:46:23]line ФПД: 253271375378157 [12:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124640&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166012&fm=253271375378157&tin=02508201610067®Number=0000000000091764&sum=99900 [12:46:23]OFD Sender: Processing packet 166012 [packets to send 48, broken 47] [12:46:23]ProducePacketName [12:46:23]name=ofd_packets/00166012 [12:46:23]OFD Sender: To server: pG, [12:46:23]CommunicateWithHost lk.salyk.kg:30040 [12:46:23]ConnectInit lk.salyk.kg [12:46:23]written 0, free lines is 4095 [12:46:23]Connected sock=7 [12:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD B9 04 01 4E 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 30 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 88 02 00 35 04 06 00 E6 59 56 5C 76 ED A1 33 75 BA 15 EF 0D 7E [12:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 14 30 47 00 60 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7C 88 02 00 F4 03 04 00 9E F3 15 67 B6 04 01 00 00 8B 64 8C E0 9F 64 B4 B4 [12:46:24]CommunicateWithHost err = 0 [12:46:24]CheckOFDResponse [12:46:24]1017 (14) - 77093643461234 [12:46:24]1041 (16) - 0000000000871759 [12:46:24]1040 (4) - 166012 [12:46:24]1012 (4) - 21.10.2024 06:24 [12:46:24]1206 (1) - 0 [12:46:24]OFD Sender: Remove packet 166012 [12:46:24]ProducePacketName [12:46:24]name=ofd_packets/00166012 [12:46:24]NVStorageDeleteData [12:46:24]Write to MH i2c: 01 00 00 84 4D D1 [12:46:24]Write i2c OK [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: 01 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: 01 07 00 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: 01 07 00 84 4D 00 00 00 00 00 CA 0C AE [12:46:24]RasterBufferAndPrint [12:46:24]line [12:46:24]line [12:46:24]line [12:46:24]line [12:46:24]line [12:46:24]written 0, free lines is 3279 [12:46:24]MH_Cut [12:46:24]Write to MH i2c: D1 01 00 8B 4D 01 AA [12:46:24]Write i2c OK [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: D1 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: D1 01 00 [12:46:24]MH_I2C_Read... [12:46:24]Read from MH i2c: D1 01 00 8B 4D 00 A9 [12:46:24]Write to MH i2c: 01 00 00 8C 4D D9 [12:46:24]Write i2c OK [12:46:24]MH_I2C_Read... [12:46:24]OFD Sender: No OFD packet to send [12:46:25]*** Cut start [12:46:25]*** Partial cut [12:46:25]*** CUTSNS_PIN = 1 [12:46:25]*** CUTSNS_PIN = 0 [12:46:25]*** Brake cut motor [12:46:25]Read from MH i2c: 01 [12:46:25]MH_I2C_Read... [12:46:25]*** Stop cut motor [12:46:25]*** Cut end [12:46:25]Read from MH i2c: 01 07 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: 01 07 00 8C 4D 00 00 00 00 00 FF 0F EE [12:46:25]process_action close_receipt done [12:46:25]requested_data is exist [12:46:25]produce_requested_data [12:46:25]requested_item fm.sn is exist - process it [12:46:25]wFMCommunicate request_size=4 [12:46:25]MH_SAM_APDU [12:46:25]CAPDU: 80 11 00 00 [12:46:25]Write to MH i2c: E2 08 00 8D 4D 80 11 00 00 00 00 00 00 54 [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 17 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 17 00 8D 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [12:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:46:25]wFMCommunicate OK [12:46:25]requested_item fd.num is exist - process it [12:46:25]SAM_PROTO_GetFieldsCounters [12:46:25]wFMCommunicate request_size=4 [12:46:25]MH_SAM_APDU [12:46:25]CAPDU: 80 13 00 00 [12:46:25]Write to MH i2c: E2 08 00 8E 4D 80 13 00 00 00 00 00 00 57 [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 62 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 62 00 8E 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:25]wFMCommunicate OK [12:46:25]SAM_PROTO_GetFieldsCounters done [12:46:25]requested_item shift.num is exist - process it [12:46:25]requested_item shift.opened is exist - process it [12:46:25]req_shift_opened [12:46:25]FM_GetShiftState [12:46:25]SAM_PROTO_GetShiftState [12:46:25]wFMCommunicate request_size=4 [12:46:25]MH_SAM_APDU [12:46:25]CAPDU: 80 13 01 00 [12:46:25]Write to MH i2c: E2 08 00 8F 4D 80 13 01 00 00 00 00 00 59 [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 8F 4D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 62 [12:46:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:46:25]wFMCommunicate OK [12:46:25]SAM_PROTO_GetShiftState done [12:46:25]FM_GetShiftState done [12:46:25]req_shift_opened done [12:46:25]requested_item shift.open_date is exist - process it [12:46:25]req_shift_open_date [12:46:25]req_shift_open_date done [12:46:25]produce_requested_data done [12:46:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166012,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:46:25]process_action_free close_receipt [12:46:25]json_value_free [12:46:25]json_value_free done [12:46:25]process_json_proto returns [12:46:25]Send response to host [12:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166012,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:46:25]free response buf [12:46:25]execute_script done [12:46:25]execute_script returns [12:46:25]free content buf [12:46:25]Sock 5.Close socket [12:46:25]Sock 5.Thread stoped [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]accept exits with 6 [12:47:24]New connection [12:47:24]New thread 3066776932 created [12:47:24]Thread 3066920292 joined [12:47:24]Waiting for new connection... [12:47:24] Sock 6.Parse request [12:47:24]Sock 6.Check first char [12:47:24]Sock 6.First char is OK [12:47:24]request: POST /json_proto HTTP/1.0 [12:47:24]Method: POST [12:47:24]URL: /json_proto [12:47:24]Method is POST - this is cgi request [12:47:24]url: /json_proto [12:47:24]query_string will be loaded in cgi processing [12:47:24]execute_cgi json_proto POST (null) [12:47:24]execute_cgi path=json_proto method=POST [12:47:24]POST find Content-Length [12:47:24]Host: 172.17.53.195:8080 [12:47:24]Content-Length: 677 [12:47:24]Content-Type: application/json [12:47:24] [12:47:24]POST finish read [12:47:24]Found Content-Length = 677 [12:47:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:24]execute_script... [12:47: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)220585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:24]POST & json_proto [12:47:24]process_json_proto [12:47:24]json parsed OK: [12:47:24]protocol is kg_v1.0 [12:47:24]action value=close_receipt [12:47:24]process_action close_receipt [12:47:24]cmd_close_receipt [12:47:24]MH_GetDate [12:47:24]Write to MH i2c: F0 00 00 90 4D CC [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: F0 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: F0 09 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: F0 09 00 90 4D 00 6E 4D 16 67 21 48 4A 65 25 [12:47:24]GetLastDocTimeStamp 1729514800 [12:47:24]current date 1729514862 [12:47:24]FM_GetShiftState [12:47:24]SAM_PROTO_GetShiftState [12:47:24]wFMCommunicate request_size=4 [12:47:24]MH_SAM_APDU [12:47:24]CAPDU: 80 13 01 00 [12:47:24]Write to MH i2c: E2 08 00 91 4D 80 13 01 00 00 00 00 00 5B [12:47:24]Write i2c OK [12:47:24]MH_I2C_Read... [12:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:24]Read from MH i2c: E2 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 0E 00 [12:47:24]MH_I2C_Read... [12:47:24]Read from MH i2c: E2 0E 00 91 4D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 64 [12:47:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:47:24]wFMCommunicate OK [12:47:24]SAM_PROTO_GetShiftState done [12:47:24]FM_GetShiftState done [12:47:24]opened in 1729470944 [12:47:24]opened+sec_in_day 1729557344 [12:47:24]quantity*price = 40006 [12:47:24]sum+1 = 40007 [12:47:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 124 21.10.2024 12:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166013 ФПД: 160550626882434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124742&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166013&fm=160550626882434&tin=02508201610067®Number=0000000000091764&sum=40000 [12:47:25]StoreToDocumentArchive [12:47:25]shift 535 fd 166013 [12:47:25]save to /storage/0535/doc_00166013 [12:47:25]save last doc name /storage/0535/doc_00166013 to /storage/kkm_last_doc_name [12:47:25]save OK [12:47:25]Clear old archive folders... [12:47:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:25]tlvbuf is 014DA8A0 [12:47:25]SAM_PROTO_ClearQueue [12:47:25]wFMCommunicate request_size=4 [12:47:25]MH_SAM_APDU [12:47:25]CAPDU: 80 09 00 00 [12:47:25]Write to MH i2c: E2 08 00 9E 4D 80 09 00 00 00 00 00 00 5D [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:25]Read from MH i2c: E2 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 9E 4D 00 90 00 5F [12:47:25]RAPDU: 90 00 [12:47:25]wFMCommunicate OK [12:47:25]SAM_PROTO_ClearQueue done [12:47:25]KKMCreateOFDPacket [12:47:25]OFDProtocolAddRootSTLVToBuf [12:47:25]FM_MakeSignedData [12:47:25]FM_MakeSignedData [12:47:25]SAM_PROTO_SignData [12:47:25]wFMCommunicate request_size=4 [12:47:25]MH_SAM_APDU [12:47:25]CAPDU: 80 0D 01 02 [12:47:25]Write to MH i2c: E2 08 00 9F 4D 80 0D 01 02 00 00 00 00 65 [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:25]Read from MH i2c: E2 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 9F 4D 00 90 00 60 [12:47:25]RAPDU: 90 00 [12:47:25]wFMCommunicate OK [12:47:25]wFMCommunicate request_size=255 [12:47:25]MH_SAM_APDU [12:47: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6E 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 88 02 00 35 04 06 00 92 [12:47:25]Write to MH i2c: E2 02 01 A0 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6E 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 88 02 00 35 04 06 00 92 00 00 30 [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:25]Read from MH i2c: E2 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 A0 4D 00 90 00 61 [12:47:25]RAPDU: 90 00 [12:47:25]wFMCommunicate OK [12:47:25]wFMCommunicate request_size=10 [12:47:25]MH_SAM_APDU [12:47:25]CAPDU: 80 0D 02 02 05 05 1B 15 73 82 [12:47:25]Write to MH i2c: E2 0D 00 A1 4D 80 0D 02 02 05 00 05 1B 15 73 82 00 00 9C [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:25]Read from MH i2c: E2 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 [12:47:25]MH_I2C_Read... [12:47:25]Read from MH i2c: E2 03 00 A1 4D 00 90 00 62 [12:47:25]RAPDU: 90 00 [12:47:25]wFMCommunicate OK [12:47:25]wFMCommunicate request_size=4 [12:47:25]MH_SAM_APDU [12:47:25]CAPDU: 80 0D 03 02 [12:47:25]Write to MH i2c: E2 08 00 A2 4D 80 0D 03 02 00 00 00 00 6A [12:47:25]Write i2c OK [12:47:25]MH_I2C_Read... [12:47:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:26]Read from MH i2c: E2 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 0B 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 0B 00 A2 4D 00 35 B8 A7 15 98 D6 29 B5 90 00 60 [12:47:26]RAPDU: 35 B8 A7 15 98 D6 29 B5 90 00 [12:47:26]wFMCommunicate OK [12:47:26]SAM_PROTO_SignData done [12:47:26]FM_MakeSignedData done [12:47:26]CreateOFDProtocolMessage [12:47:26]wFMCommunicate request_size=4 [12:47:26]MH_SAM_APDU [12:47:26]CAPDU: 80 11 00 00 [12:47:26]Write to MH i2c: E2 08 00 A3 4D 80 11 00 00 00 00 00 00 6A [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:26]Read from MH i2c: E2 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 17 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: E2 17 00 A3 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [12:47:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:47:26]wFMCommunicate OK [12:47:26]CreateOFDProtocolMessage done [12:47:26]OFDSenderStorePacket 166013 [12:47:26]StoreOFDPacket docnum=166013 [12:47:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 FD 07 01 80 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6E 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 88 02 00 35 04 06 00 92 05 1B 15 73 82 35 B8 A7 15 98 D6 29 B5 [12:47:26]CheckFolder [12:47:26]dirname=/storage/ofd_packets [12:47:26]CheckFolder done [12:47:26]ProducePacketName [12:47:26]name=ofd_packets/00166013 [12:47:26]NVStorageSaveData ofd_packets/00166013 [12:47:26]File name is /storage/ofd_packets/00166013 [12:47:26]Write 301 bytes [12:47:26]NVStorageSaveData done [12:47:26]OFDSenderStorePacket done [12:47:26]KKMCreateOFDPacket done [12:47:26]NVStorageSaveData kkm_last_timestamp [12:47:26]File name is /storage/kkm_last_timestamp [12:47:26]Write 4 bytes [12:47:26]NVStorageSaveData done [12:47:26]ExternCall_PrintAddStr [12:47:26]wPrintStart [12:47:26]Write to MH i2c: 01 00 00 A4 4D F1 [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 07 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 07 00 A4 4D 00 00 00 00 00 FF 0F 06 [12:47:26]RasterBufferAndPrint [12:47:26]line Счет N : (1)220585 [12:47:26]line ИНН: 02508201610067 [12:47:26]line Контрольно-Кассовый Чек [12:47:26]line ПРОДАЖА [12:47:26]line ТРК (МРК, ГНК) : 43 [12:47:26]line Товар: 2710124130 [12:47:26]line Аи-92-К-5 [12:47:26]line 5.980 * 66.90 [12:47:26]line = 400.06 [12:47:26]line НДС 12% НСП 1% [12:47:26]line > о реализуемом товаре [12:47:26]line ОКРУГЛЕНИЕ: -0.06 [12:47:26]line ИТОГО: 400.00 [12:47:26]line Внесено: 400.00 [12:47:26]line СДАЧА: 0.00 [12:47:26]line НСП 1% : 3.54 [12:47:26]line НДС 12% : 42.48 [12:47:26]line Наличными: 400.00 [12:47:26]line Безнал.: 0.00 [12:47:26]line Место: АЗС № 161 "Партнер Нефть" [12:47:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:47:26]line СНО: Общий режим [12:47:26]line Чек 124 21.10.2024 12:47 [12:47:26]line Смена: 535 ФФД: 1.0 [12:47:26]line ЗНМ: 0300000104 [12:47:26]line РНМ: 0000000000091764 [12:47:26]line Версия ККМ: 001 [12:47:26]line ФМ: 0000000000871759 [12:47:26]line ФД: 166013 [12:47:26]line ФПД: 160550626882434 [12:47:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124742&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166013&fm=160550626882434&tin=02508201610067®Number=0000000000091764&sum=40000 [12:47:26]OFD Sender: Processing packet 166013 [packets to send 48, broken 47] [12:47:26]ProducePacketName [12:47:26]name=ofd_packets/00166013 [12:47:26]OFD Sender: To server: pG, [12:47:26]CommunicateWithHost lk.salyk.kg:30040 [12:47:26]ConnectInit lk.salyk.kg [12:47:26]written 0, free lines is 4095 [12:47:26]Connected sock=9 [12:47:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 FD 07 01 80 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6E 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 88 02 00 35 04 06 00 92 05 1B 15 73 82 35 B8 A7 15 98 D6 29 B5 [12:47:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FE FD 47 00 B0 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7D 88 02 00 F4 03 04 00 DD F3 15 67 B6 04 01 00 00 C9 9B B7 36 AB 39 92 99 [12:47:26]CommunicateWithHost err = 0 [12:47:26]CheckOFDResponse [12:47:26]1017 (14) - 77093643461234 [12:47:26]1041 (16) - 0000000000871759 [12:47:26]1040 (4) - 166013 [12:47:26]1012 (4) - 21.10.2024 06:25 [12:47:26]1206 (1) - 0 [12:47:26]OFD Sender: Remove packet 166013 [12:47:26]ProducePacketName [12:47:26]name=ofd_packets/00166013 [12:47:26]NVStorageDeleteData [12:47:26]Write to MH i2c: 01 00 00 CF 4D 1C [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 07 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: 01 07 00 CF 4D 00 00 00 00 00 D1 0C 00 [12:47:26]RasterBufferAndPrint [12:47:26]line [12:47:26]line [12:47:26]line [12:47:26]line [12:47:26]line [12:47:26]written 0, free lines is 3287 [12:47:26]MH_Cut [12:47:26]Write to MH i2c: D1 01 00 D6 4D 01 F5 [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: D1 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: D1 01 00 [12:47:26]MH_I2C_Read... [12:47:26]Read from MH i2c: D1 01 00 D6 4D 00 F4 [12:47:26]Write to MH i2c: 01 00 00 D7 4D 24 [12:47:26]Write i2c OK [12:47:26]MH_I2C_Read... [12:47:27]OFD Sender: No OFD packet to send [12:47:27]*** Cut start [12:47:27]*** Partial cut [12:47:27]*** CUTSNS_PIN = 1 [12:47:27]*** CUTSNS_PIN = 0 [12:47:27]*** Brake cut motor [12:47:28]Read from MH i2c: 01 [12:47:28]MH_I2C_Read... [12:47:28]*** Stop cut motor [12:47:28]*** Cut end [12:47:28]Read from MH i2c: 01 07 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: 01 07 00 D7 4D 00 00 00 00 00 FF 0F 39 [12:47:28]process_action close_receipt done [12:47:28]requested_data is exist [12:47:28]produce_requested_data [12:47:28]requested_item fm.sn is exist - process it [12:47:28]wFMCommunicate request_size=4 [12:47:28]MH_SAM_APDU [12:47:28]CAPDU: 80 11 00 00 [12:47:28]Write to MH i2c: E2 08 00 D8 4D 80 11 00 00 00 00 00 00 9F [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:28]Read from MH i2c: E2 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 17 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 17 00 D8 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [12:47:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:47:28]wFMCommunicate OK [12:47:28]requested_item fd.num is exist - process it [12:47:28]SAM_PROTO_GetFieldsCounters [12:47:28]wFMCommunicate request_size=4 [12:47:28]MH_SAM_APDU [12:47:28]CAPDU: 80 13 00 00 [12:47:28]Write to MH i2c: E2 08 00 D9 4D 80 13 00 00 00 00 00 00 A2 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:28]Read from MH i2c: E2 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 62 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 62 00 D9 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [12:47:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:28]wFMCommunicate OK [12:47:28]SAM_PROTO_GetFieldsCounters done [12:47:28]requested_item shift.num is exist - process it [12:47:28]requested_item shift.opened is exist - process it [12:47:28]req_shift_opened [12:47:28]FM_GetShiftState [12:47:28]SAM_PROTO_GetShiftState [12:47:28]wFMCommunicate request_size=4 [12:47:28]MH_SAM_APDU [12:47:28]CAPDU: 80 13 01 00 [12:47:28]Write to MH i2c: E2 08 00 DA 4D 80 13 01 00 00 00 00 00 A4 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:28]Read from MH i2c: E2 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 0E 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 0E 00 DA 4D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AD [12:47:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:47:28]wFMCommunicate OK [12:47:28]SAM_PROTO_GetShiftState done [12:47:28]FM_GetShiftState done [12:47:28]req_shift_opened done [12:47:28]requested_item shift.open_date is exist - process it [12:47:28]req_shift_open_date [12:47:28]req_shift_open_date done [12:47:28]produce_requested_data done [12:47:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166013,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:47:28]process_action_free close_receipt [12:47:28]json_value_free [12:47:28]json_value_free done [12:47:28]process_json_proto returns [12:47:28]Send response to host [12:47:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166013,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:47:28]free response buf [12:47:28]execute_script done [12:47:28]execute_script returns [12:47:28]free content buf [12:47:28]Sock 6.Close socket [12:47:28]Sock 6.Thread stoped [12:47:28]accept exits with 5 [12:47:28]New connection [12:47:28]New thread 3066920292 created [12:47:28]Thread 3066776932 joined [12:47:28]Waiting for new connection... [12:47:28] Sock 5.Parse request [12:47:28]Sock 5.Check first char [12:47:28]Sock 5.First char is OK [12:47:28]request: POST /json_proto HTTP/1.0 [12:47:28]Method: POST [12:47:28]URL: /json_proto [12:47:28]Method is POST - this is cgi request [12:47:28]url: /json_proto [12:47:28]query_string will be loaded in cgi processing [12:47:28]execute_cgi json_proto POST (null) [12:47:28]execute_cgi path=json_proto method=POST [12:47:28]POST find Content-Length [12:47:28]Host: 172.17.53.195:8080 [12:47:28]Content-Length: 790 [12:47:28]Content-Type: application/json [12:47:28] [12:47:28]POST finish read [12:47:28]Found Content-Length = 790 [12:47:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 196.860, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:28]execute_script... [12:47: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)220582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 196.860, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:28]POST & json_proto [12:47:28]process_json_proto [12:47:28]json parsed OK: [12:47:28]protocol is kg_v1.0 [12:47:28]action value=close_receipt [12:47:28]process_action close_receipt [12:47:28]cmd_close_receipt [12:47:28]MH_GetDate [12:47:28]Write to MH i2c: F0 00 00 DB 4D 17 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: F0 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: F0 09 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: F0 09 00 DB 4D 00 72 4D 16 67 21 48 4A 65 74 [12:47:28]GetLastDocTimeStamp 1729514862 [12:47:28]current date 1729514866 [12:47:28]FM_GetShiftState [12:47:28]SAM_PROTO_GetShiftState [12:47:28]wFMCommunicate request_size=4 [12:47:28]MH_SAM_APDU [12:47:28]CAPDU: 80 13 01 00 [12:47:28]Write to MH i2c: E2 08 00 DC 4D 80 13 01 00 00 00 00 00 A6 [12:47:28]Write i2c OK [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 [12:47:28]MH_I2C_Read... [12:47:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:28]Read from MH i2c: E2 0E 00 [12:47:28]MH_I2C_Read... [12:47:28]Read from MH i2c: E2 0E 00 DC 4D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AF [12:47:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:47:28]wFMCommunicate OK [12:47:28]SAM_PROTO_GetShiftState done [12:47:28]FM_GetShiftState done [12:47:28]opened in 1729470944 [12:47:28]opened+sec_in_day 1729557344 [12:47:28]quantity*price = 0 [12:47:28]sum+1 = 1 [12:47:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 125 21.10.2024 12:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166014 ФПД: 44585684291352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124747&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166014&fm=44585684291352&tin=02508201610067®Number=0000000000091764&sum=0 [12:47:30]StoreToDocumentArchive [12:47:30]shift 535 fd 166014 [12:47:30]save to /storage/0535/doc_00166014 [12:47:30]save last doc name /storage/0535/doc_00166014 to /storage/kkm_last_doc_name [12:47:30]save OK [12:47:30]Clear old archive folders... [12:47:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:47:30]tlvbuf is 014DA310 [12:47:30]SAM_PROTO_ClearQueue [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 09 00 00 [12:47:30]Write to MH i2c: E2 08 00 E9 4D 80 09 00 00 00 00 00 00 A8 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 E9 4D 00 90 00 AA [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]SAM_PROTO_ClearQueue done [12:47:30]KKMCreateOFDPacket [12:47:30]OFDProtocolAddRootSTLVToBuf [12:47:30]FM_MakeSignedData [12:47:30]FM_MakeSignedData [12:47:30]SAM_PROTO_SignData [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 01 02 [12:47:30]Write to MH i2c: E2 08 00 EA 4D 80 0D 01 02 00 00 00 00 B0 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 EA 4D 00 90 00 AB [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=255 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 88 02 00 35 04 06 00 28 8C E9 DF [12:47:30]Write to MH i2c: E2 02 01 EB 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 88 02 00 35 04 06 00 28 8C E9 DF 00 00 6A [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 EB 4D 00 90 00 AC [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=7 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 02 02 02 CF 18 [12:47:30]Write to MH i2c: E2 0A 00 EC 4D 80 0D 02 02 02 00 CF 18 00 00 9E [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 03 00 EC 4D 00 90 00 AD [12:47:30]RAPDU: 90 00 [12:47:30]wFMCommunicate OK [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 0D 03 02 [12:47:30]Write to MH i2c: E2 08 00 ED 4D 80 0D 03 02 00 00 00 00 B5 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 0B 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 0B 00 ED 4D 00 0D 33 21 E6 93 2A 1F 7E 90 00 57 [12:47:30]RAPDU: 0D 33 21 E6 93 2A 1F 7E 90 00 [12:47:30]wFMCommunicate OK [12:47:30]SAM_PROTO_SignData done [12:47:30]FM_MakeSignedData done [12:47:30]CreateOFDProtocolMessage [12:47:30]wFMCommunicate request_size=4 [12:47:30]MH_SAM_APDU [12:47:30]CAPDU: 80 11 00 00 [12:47:30]Write to MH i2c: E2 08 00 EE 4D 80 11 00 00 00 00 00 00 B5 [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:30]Read from MH i2c: E2 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 17 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: E2 17 00 EE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [12:47:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:47:30]wFMCommunicate OK [12:47:30]CreateOFDProtocolMessage done [12:47:30]OFDSenderStorePacket 166014 [12:47:30]StoreOFDPacket docnum=166014 [12:47:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FF 5F 04 01 5E F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 88 02 00 35 04 06 00 28 8C E9 DF CF 18 0D 33 21 E6 93 2A 1F 7E [12:47:30]CheckFolder [12:47:30]dirname=/storage/ofd_packets [12:47:30]CheckFolder done [12:47:30]ProducePacketName [12:47:30]name=ofd_packets/00166014 [12:47:30]NVStorageSaveData ofd_packets/00166014 [12:47:30]File name is /storage/ofd_packets/00166014 [12:47:30]Write 298 bytes [12:47:30]NVStorageSaveData done [12:47:30]OFDSenderStorePacket done [12:47:30]KKMCreateOFDPacket done [12:47:30]NVStorageSaveData kkm_last_timestamp [12:47:30]File name is /storage/kkm_last_timestamp [12:47:30]Write 4 bytes [12:47:30]NVStorageSaveData done [12:47:30]ExternCall_PrintAddStr [12:47:30]wPrintStart [12:47:30]Write to MH i2c: 01 00 00 EF 4D 3C [12:47:30]Write i2c OK [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 07 00 [12:47:30]MH_I2C_Read... [12:47:30]Read from MH i2c: 01 07 00 EF 4D 00 00 00 00 00 FF 0F 51 [12:47:30]RasterBufferAndPrint [12:47:30]line Счет N : (1)220582 [12:47:30]line ИНН: 02508201610067 [12:47:30]line Контрольно-Кассовый Чек [12:47:30]line ПРОДАЖА [12:47:30]line ТРК (МРК, ГНК) : 21 [12:47:30]line Товар: 2710194210 [12:47:30]line ДТ-К-5 [12:47:30]line 196.860 * 0.00 [12:47:30]line = 0.00 [12:47:30]line НДС 12% НСП 1% [12:47:30]line > о реализуемом товаре [12:47:30]line ИТОГО: 0.00 [12:47:30]line НСП 1% : 0.00 [12:47:30]line НДС 12% : 0.00 [12:47:30]line Наличными: 0.00 [12:47:30]line Безнал.: 0.00 [12:47:30]line Место: АЗС № 161 "Партнер Нефть" [12:47:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:47:31]line СНО: Общий режим [12:47:31]line Чек 125 21.10.2024 12:47 [12:47:31]line Смена: 535 ФФД: 1.0 [12:47:31]line ЗНМ: 0300000104 [12:47:31]line РНМ: 0000000000091764 [12:47:31]line Версия ККМ: 001 [12:47:31]line Талоны: Топливная Карта [12:47:31]line 38286 [12:47:31]line ФМ: 0000000000871759 [12:47:31]line ФД: 166014 [12:47:31]line ФПД: 44585684291352 [12:47:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124747&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166014&fm=44585684291352&tin=02508201610067®Number=0000000000091764&sum=0 [12:47:31]OFD Sender: Processing packet 166014 [packets to send 48, broken 47] [12:47:31]ProducePacketName [12:47:31]name=ofd_packets/00166014 [12:47:31]OFD Sender: To server: pG, [12:47:31]CommunicateWithHost lk.salyk.kg:30040 [12:47:31]ConnectInit lk.salyk.kg [12:47:31]written 0, free lines is 4095 [12:47:31]Connected sock=7 [12: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 35 39 0C 01 00 00 FF 5F 04 01 5E F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 00 03 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 73 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7E 88 02 00 35 04 06 00 28 8C E9 DF CF 18 0D 33 21 E6 93 2A 1F 7E [12: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 35 39 4F 00 00 00 E4 DB 47 00 5B 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 35 39 10 04 04 00 7E 88 02 00 F4 03 04 00 E1 F3 15 67 B6 04 01 00 00 46 60 BF 2F C9 D2 6B 69 [12:47:31]CommunicateWithHost err = 0 [12:47:31]CheckOFDResponse [12:47:31]1017 (14) - 77093643461234 [12:47:31]1041 (16) - 0000000000871759 [12:47:31]1040 (4) - 166014 [12:47:31]1012 (4) - 21.10.2024 06:25 [12:47:31]1206 (1) - 0 [12:47:31]OFD Sender: Remove packet 166014 [12:47:31]ProducePacketName [12:47:31]name=ofd_packets/00166014 [12:47:31]NVStorageDeleteData [12:47:31]Write to MH i2c: 01 00 00 19 4E 67 [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 07 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: 01 07 00 19 4E 00 00 00 00 00 EC 0C 66 [12:47:31]RasterBufferAndPrint [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]line [12:47:31]written 0, free lines is 3319 [12:47:31]MH_Cut [12:47:31]Write to MH i2c: D1 01 00 20 4E 01 40 [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 01 00 [12:47:31]MH_I2C_Read... [12:47:31]Read from MH i2c: D1 01 00 20 4E 00 3F [12:47:31]Write to MH i2c: 01 00 00 21 4E 6F [12:47:31]Write i2c OK [12:47:31]MH_I2C_Read... [12:47:31]OFD Sender: No OFD packet to send [12:47:32]*** Cut start [12:47:32]*** Partial cut [12:47:32]*** CUTSNS_PIN = 1 [12:47:32]*** CUTSNS_PIN = 0 [12:47:32]*** Brake cut motor [12:47:32]Read from MH i2c: 01 [12:47:32]MH_I2C_Read... [12:47:32]*** Stop cut motor [12:47:32]*** Cut end [12:47:32]Read from MH i2c: 01 07 00 [12:47:32]MH_I2C_Read... [12:47:32]Read from MH i2c: 01 07 00 21 4E 00 00 00 00 00 FF 0F 84 [12:47:32]process_action close_receipt done [12:47:32]requested_data is exist [12:47:32]produce_requested_data [12:47:32]requested_item fm.sn is exist - process it [12:47:32]wFMCommunicate request_size=4 [12:47:32]MH_SAM_APDU [12:47:32]CAPDU: 80 11 00 00 [12:47:32]Write to MH i2c: E2 08 00 22 4E 80 11 00 00 00 00 00 00 EA [12:47:32]Write i2c OK [12:47:32]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 17 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 17 00 22 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [12:47:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:47:33]wFMCommunicate OK [12:47:33]requested_item fd.num is exist - process it [12:47:33]SAM_PROTO_GetFieldsCounters [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 13 00 00 [12:47:33]Write to MH i2c: E2 08 00 23 4E 80 13 00 00 00 00 00 00 ED [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 62 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 62 00 23 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [12: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_GetFieldsCounters done [12:47:33]requested_item shift.num is exist - process it [12:47:33]requested_item shift.opened is exist - process it [12:47:33]req_shift_opened [12:47:33]FM_GetShiftState [12:47:33]SAM_PROTO_GetShiftState [12:47:33]wFMCommunicate request_size=4 [12:47:33]MH_SAM_APDU [12:47:33]CAPDU: 80 13 01 00 [12:47:33]Write to MH i2c: E2 08 00 24 4E 80 13 01 00 00 00 00 00 EF [12:47:33]Write i2c OK [12:47:33]MH_I2C_Read... [12:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:33]Read from MH i2c: E2 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 [12:47:33]MH_I2C_Read... [12:47:33]Read from MH i2c: E2 0E 00 24 4E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F8 [12:47:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:47:33]wFMCommunicate OK [12:47:33]SAM_PROTO_GetShiftState done [12:47:33]FM_GetShiftState done [12:47:33]req_shift_opened done [12:47:33]requested_item shift.open_date is exist - process it [12:47:33]req_shift_open_date [12:47:33]req_shift_open_date done [12:47:33]produce_requested_data done [12:47:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166014,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:47:33]process_action_free close_receipt [12:47:33]json_value_free [12:47:33]json_value_free done [12:47:33]process_json_proto returns [12:47:33]Send response to host [12:47:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166014,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:47:33]free response buf [12:47:33]execute_script done [12:47:33]execute_script returns [12:47:33]free content buf [12:47:33]Sock 5.Close socket [12:47:33]Sock 5.Thread stoped [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]accept exits with 6 [12:48:06]New connection [12:48:06]New thread 3066776932 created [12:48:06]Thread 3066920292 joined [12:48:06]Waiting for new connection... [12:48:06] Sock 6.Parse request [12:48:06]Sock 6.Check first char [12:48:06]Sock 6.First char is OK [12:48:06]request: POST /json_proto HTTP/1.0 [12:48:06]Method: POST [12:48:06]URL: /json_proto [12:48:06]Method is POST - this is cgi request [12:48:06]url: /json_proto [12:48:06]query_string will be loaded in cgi processing [12:48:06]execute_cgi json_proto POST (null) [12:48:06]execute_cgi path=json_proto method=POST [12:48:06]POST find Content-Length [12:48:06]Host: 172.17.53.195:8080 [12:48:06]Content-Length: 677 [12:48:06]Content-Type: application/json [12:48:06] [12:48:06]POST finish read [12:48:06]Found Content-Length = 677 [12:48:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [12:48:06]execute_script... [12: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)220586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [12:48:06]POST & json_proto [12:48:06]process_json_proto [12:48:06]json parsed OK: [12:48:06]protocol is kg_v1.0 [12:48:06]action value=close_receipt [12:48:06]process_action close_receipt [12:48:06]cmd_close_receipt [12:48:06]MH_GetDate [12:48:06]Write to MH i2c: F0 00 00 25 4E 62 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: F0 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: F0 09 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: F0 09 00 25 4E 00 98 4D 16 67 21 48 4A 65 E5 [12:48:06]GetLastDocTimeStamp 1729514867 [12:48:06]current date 1729514904 [12:48:06]FM_GetShiftState [12:48:06]SAM_PROTO_GetShiftState [12:48:06]wFMCommunicate request_size=4 [12:48:06]MH_SAM_APDU [12:48:06]CAPDU: 80 13 01 00 [12:48:06]Write to MH i2c: E2 08 00 26 4E 80 13 01 00 00 00 00 00 F1 [12:48:06]Write i2c OK [12:48:06]MH_I2C_Read... [12:48:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:06]Read from MH i2c: E2 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0E 00 [12:48:06]MH_I2C_Read... [12:48:06]Read from MH i2c: E2 0E 00 26 4E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FA [12:48:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:48:06]wFMCommunicate OK [12:48:06]SAM_PROTO_GetShiftState done [12:48:06]FM_GetShiftState done [12:48:06]opened in 1729470944 [12:48:06]opened+sec_in_day 1729557344 [12:48:06]quantity*price = 40068 [12:48:06]sum+1 = 40069 [12:48:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 126 21.10.2024 12:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166015 ФПД: 118319664518875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166015&fm=118319664518875&tin=02508201610067®Number=0000000000091764&sum=40000 [12:48:07]StoreToDocumentArchive [12:48:07]shift 535 fd 166015 [12:48:07]save to /storage/0535/doc_00166015 [12:48:07]save last doc name /storage/0535/doc_00166015 to /storage/kkm_last_doc_name [12:48:07]save OK [12:48:07]Clear old archive folders... [12:48:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:07]tlvbuf is 015FC770 [12:48:07]SAM_PROTO_ClearQueue [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 09 00 00 [12:48:07]Write to MH i2c: E2 08 00 33 4E 80 09 00 00 00 00 00 00 F3 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 03 00 33 4E 00 90 00 F5 [12:48:07]RAPDU: 90 00 [12:48:07]wFMCommunicate OK [12:48:07]SAM_PROTO_ClearQueue done [12:48:07]KKMCreateOFDPacket [12:48:07]OFDProtocolAddRootSTLVToBuf [12:48:07]FM_MakeSignedData [12:48:07]FM_MakeSignedData [12:48:07]SAM_PROTO_SignData [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 0D 01 02 [12:48:07]Write to MH i2c: E2 08 00 34 4E 80 0D 01 02 00 00 00 00 FB [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 34 4E 00 90 00 F6 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]wFMCommunicate request_size=255 [12:48:08]MH_SAM_APDU [12: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 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 7E 00 00 00 F4 03 04 00 99 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 88 02 00 35 04 06 00 6B [12:48:08]Write to MH i2c: E2 02 01 35 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7E 00 00 00 F4 03 04 00 99 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 88 02 00 35 04 06 00 6B 00 00 AE [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 35 4E 00 90 00 F7 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]wFMCommunicate request_size=10 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 0D 02 02 05 9C 71 92 D6 DB [12:48:08]Write to MH i2c: E2 0D 00 36 4E 80 0D 02 02 05 00 9C 71 92 D6 DB 00 00 58 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 03 00 36 4E 00 90 00 F8 [12:48:08]RAPDU: 90 00 [12:48:08]wFMCommunicate OK [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 0D 03 02 [12:48:08]Write to MH i2c: E2 08 00 37 4E 80 0D 03 02 00 00 00 00 00 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 0B 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 0B 00 37 4E 00 FA C9 F8 E0 BA 9B 17 24 90 00 2C [12:48:08]RAPDU: FA C9 F8 E0 BA 9B 17 24 90 00 [12:48:08]wFMCommunicate OK [12:48:08]SAM_PROTO_SignData done [12:48:08]FM_MakeSignedData done [12:48:08]CreateOFDProtocolMessage [12:48:08]wFMCommunicate request_size=4 [12:48:08]MH_SAM_APDU [12:48:08]CAPDU: 80 11 00 00 [12:48:08]Write to MH i2c: E2 08 00 38 4E 80 11 00 00 00 00 00 00 00 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:08]Read from MH i2c: E2 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 17 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: E2 17 00 38 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [12:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:48:08]wFMCommunicate OK [12:48:08]CreateOFDProtocolMessage done [12:48:08]OFDSenderStorePacket 166015 [12:48:08]StoreOFDPacket docnum=166015 [12:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 63 07 01 86 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 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 7E 00 00 00 F4 03 04 00 99 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 88 02 00 35 04 06 00 6B 9C 71 92 D6 DB FA C9 F8 E0 BA 9B 17 24 [12:48:08]CheckFolder [12:48:08]dirname=/storage/ofd_packets [12:48:08]CheckFolder done [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00166015 [12:48:08]NVStorageSaveData ofd_packets/00166015 [12:48:08]File name is /storage/ofd_packets/00166015 [12:48:08]Write 301 bytes [12:48:08]NVStorageSaveData done [12:48:08]OFDSenderStorePacket done [12:48:08]KKMCreateOFDPacket done [12:48:08]NVStorageSaveData kkm_last_timestamp [12:48:08]File name is /storage/kkm_last_timestamp [12:48:08]Write 4 bytes [12:48:08]NVStorageSaveData done [12:48:08]ExternCall_PrintAddStr [12:48:08]wPrintStart [12:48:08]Write to MH i2c: 01 00 00 39 4E 87 [12:48:08]Write i2c OK [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 07 00 [12:48:08]MH_I2C_Read... [12:48:08]Read from MH i2c: 01 07 00 39 4E 00 00 00 00 00 FF 0F 9C [12:48:08]RasterBufferAndPrint [12:48:08]line Счет N : (1)220586 [12:48:08]line ИНН: 02508201610067 [12:48:08]line Контрольно-Кассовый Чек [12:48:08]line ПРОДАЖА [12:48:08]line ТРК (МРК, ГНК) : 34 [12:48:08]line Товар: 2710124500 [12:48:08]line Аи-95-К-5 [12:48:08]line 5.400 * 74.20 [12:48:08]line = 400.68 [12:48:08]line НДС 12% НСП 1% [12:48:08]line > о реализуемом товаре [12:48:08]line ОКРУГЛЕНИЕ: -0.68 [12:48:08]line ИТОГО: 400.00 [12:48:08]line Внесено: 400.00 [12:48:08]line СДАЧА: 0.00 [12:48:08]line НСП 1% : 3.55 [12:48:08]line НДС 12% : 42.55 [12:48:08]line Наличными: 400.00 [12:48:08]line Безнал.: 0.00 [12:48:08]line Место: АЗС № 161 "Партнер Нефть" [12:48:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:48:08]line СНО: Общий режим [12:48:08]line Чек 126 21.10.2024 12:48 [12:48:08]line Смена: 535 ФФД: 1.0 [12:48:08]line ЗНМ: 0300000104 [12:48:08]line РНМ: 0000000000091764 [12:48:08]line Версия ККМ: 001 [12:48:08]line ФМ: 0000000000871759 [12:48:08]line ФД: 166015 [12:48:08]line ФПД: 118319664518875 [12:48:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124825&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166015&fm=118319664518875&tin=02508201610067®Number=0000000000091764&sum=40000 [12:48:08]OFD Sender: Processing packet 166015 [packets to send 48, broken 47] [12:48:08]ProducePacketName [12:48:08]name=ofd_packets/00166015 [12:48:08]OFD Sender: To server: pG, [12:48:08]CommunicateWithHost lk.salyk.kg:30040 [12:48:08]ConnectInit lk.salyk.kg [12:48:08]written 0, free lines is 4095 [12:48:08]Connected sock=7 [12:48:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 88 63 07 01 86 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 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 7E 00 00 00 F4 03 04 00 99 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 88 02 00 35 04 06 00 6B 9C 71 92 D6 DB FA C9 F8 E0 BA 9B 17 24 [12: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 35 39 4F 00 00 00 77 C3 47 00 17 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 7F 88 02 00 F4 03 04 00 07 F4 15 67 B6 04 01 00 00 70 16 14 31 F0 24 78 6B [12:48:09]CommunicateWithHost err = 0 [12:48:09]CheckOFDResponse [12:48:09]1017 (14) - 77093643461234 [12:48:09]1041 (16) - 0000000000871759 [12:48:09]1040 (4) - 166015 [12:48:09]1012 (4) - 21.10.2024 06:26 [12:48:09]1206 (1) - 0 [12:48:09]OFD Sender: Remove packet 166015 [12:48:09]ProducePacketName [12:48:09]name=ofd_packets/00166015 [12:48:09]NVStorageDeleteData [12:48:09]Write to MH i2c: 01 00 00 64 4E B2 [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: 01 07 00 64 4E 00 00 00 00 00 C4 0C 89 [12:48:09]RasterBufferAndPrint [12:48:09]line [12:48:09]line [12:48:09]line [12:48:09]line [12:48:09]line [12:48:09]written 0, free lines is 3274 [12:48:09]MH_Cut [12:48:09]Write to MH i2c: D1 01 00 6B 4E 01 8B [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: D1 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: D1 01 00 [12:48:09]MH_I2C_Read... [12:48:09]Read from MH i2c: D1 01 00 6B 4E 00 8A [12:48:09]Write to MH i2c: 01 00 00 6C 4E BA [12:48:09]Write i2c OK [12:48:09]MH_I2C_Read... [12:48:09]OFD Sender: No OFD packet to send [12:48:10]*** Cut start [12:48:10]*** Partial cut [12:48:10]*** CUTSNS_PIN = 1 [12:48:10]*** CUTSNS_PIN = 0 [12:48:10]*** Brake cut motor [12:48:10]Read from MH i2c: 01 [12:48:10]MH_I2C_Read... [12:48:10]*** Stop cut motor [12:48:10]*** Cut end [12:48:10]Read from MH i2c: 01 07 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: 01 07 00 6C 4E 00 00 00 00 00 FF 0F CF [12:48:10]process_action close_receipt done [12:48:10]requested_data is exist [12:48:10]produce_requested_data [12:48:10]requested_item fm.sn is exist - process it [12:48:10]wFMCommunicate request_size=4 [12:48:10]MH_SAM_APDU [12:48:10]CAPDU: 80 11 00 00 [12:48:10]Write to MH i2c: E2 08 00 6D 4E 80 11 00 00 00 00 00 00 35 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:10]Read from MH i2c: E2 17 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 17 00 6D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [12:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:48:10]wFMCommunicate OK [12:48:10]requested_item fd.num is exist - process it [12:48:10]SAM_PROTO_GetFieldsCounters [12:48:10]wFMCommunicate request_size=4 [12:48:10]MH_SAM_APDU [12:48:10]CAPDU: 80 13 00 00 [12:48:10]Write to MH i2c: E2 08 00 6E 4E 80 13 00 00 00 00 00 00 38 [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 62 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 62 00 6E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [12:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 7F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:10]wFMCommunicate OK [12:48:10]SAM_PROTO_GetFieldsCounters done [12:48:10]requested_item shift.num is exist - process it [12:48:10]requested_item shift.opened is exist - process it [12:48:10]req_shift_opened [12:48:10]FM_GetShiftState [12:48:10]SAM_PROTO_GetShiftState [12:48:10]wFMCommunicate request_size=4 [12:48:10]MH_SAM_APDU [12:48:10]CAPDU: 80 13 01 00 [12:48:10]Write to MH i2c: E2 08 00 6F 4E 80 13 01 00 00 00 00 00 3A [12:48:10]Write i2c OK [12:48:10]MH_I2C_Read... [12:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:10]Read from MH i2c: E2 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 0E 00 [12:48:10]MH_I2C_Read... [12:48:10]Read from MH i2c: E2 0E 00 6F 4E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 43 [12:48:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:48:10]wFMCommunicate OK [12:48:10]SAM_PROTO_GetShiftState done [12:48:10]FM_GetShiftState done [12:48:10]req_shift_opened done [12:48:10]requested_item shift.open_date is exist - process it [12:48:10]req_shift_open_date [12:48:10]req_shift_open_date done [12:48:10]produce_requested_data done [12:48:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166015,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:48:10]process_action_free close_receipt [12:48:10]json_value_free [12:48:10]json_value_free done [12:48:10]process_json_proto returns [12:48:10]Send response to host [12:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166015,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:48:10]free response buf [12:48:10]execute_script done [12:48:10]execute_script returns [12:48:10]free content buf [12:48:10]Sock 6.Close socket [12:48:10]Sock 6.Thread stoped [12:48:14]OFD Sender: No OFD packet to send [12:48:19]OFD Sender: No OFD packet to send [12:48:24]OFD Sender: No OFD packet to send [12:48:29]OFD Sender: No OFD packet to send [12:48:33]accept exits with 5 [12:48:33]New connection [12:48:33]New thread 3066920292 created [12:48:33]Thread 3066776932 joined [12:48:33]Waiting for new connection... [12:48:33] Sock 5.Parse request [12:48:33]Sock 5.Check first char [12:48:33]Sock 5.First char is OK [12:48:33]request: POST /json_proto HTTP/1.0 [12:48:33]Method: POST [12:48:33]URL: /json_proto [12:48:33]Method is POST - this is cgi request [12:48:33]url: /json_proto [12:48:33]query_string will be loaded in cgi processing [12:48:33]execute_cgi json_proto POST (null) [12:48:33]execute_cgi path=json_proto method=POST [12:48:33]POST find Content-Length [12:48:33]Host: 172.17.53.195:8080 [12:48:33]Content-Length: 678 [12:48:33]Content-Type: application/json [12:48:33] [12:48:33]POST finish read [12:48:33]Found Content-Length = 678 [12:48:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:33]execute_script... [12:48: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)220587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:33]POST & json_proto [12:48:33]process_json_proto [12:48:33]json parsed OK: [12:48:33]protocol is kg_v1.0 [12:48:33]action value=close_receipt [12:48:33]process_action close_receipt [12:48:33]cmd_close_receipt [12:48:33]MH_GetDate [12:48:33]Write to MH i2c: F0 00 00 70 4E AD [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: F0 09 00 70 4E 00 B3 4D 16 67 21 48 4A 65 4B [12:48:33]GetLastDocTimeStamp 1729514905 [12:48:33]current date 1729514931 [12:48:33]FM_GetShiftState [12:48:33]SAM_PROTO_GetShiftState [12:48:33]wFMCommunicate request_size=4 [12:48:33]MH_SAM_APDU [12:48:33]CAPDU: 80 13 01 00 [12:48:33]Write to MH i2c: E2 08 00 71 4E 80 13 01 00 00 00 00 00 3C [12:48:33]Write i2c OK [12:48:33]MH_I2C_Read... [12:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:33]Read from MH i2c: E2 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 [12:48:33]MH_I2C_Read... [12:48:33]Read from MH i2c: E2 0E 00 71 4E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 45 [12:48:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:48:33]wFMCommunicate OK [12:48:33]SAM_PROTO_GetShiftState done [12:48:33]FM_GetShiftState done [12:48:33]opened in 1729470944 [12:48:33]opened+sec_in_day 1729557344 [12:48:33]quantity*price = 80012 [12:48:33]sum+1 = 80013 [12:48:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 127 21.10.2024 12:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166016 ФПД: 152128044993825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166016&fm=152128044993825&tin=02508201610067®Number=0000000000091764&sum=80000 [12:48:34]StoreToDocumentArchive [12:48:34]shift 535 fd 166016 [12:48:34]save to /storage/0535/doc_00166016 [12:48:34]save last doc name /storage/0535/doc_00166016 to /storage/kkm_last_doc_name [12:48:34]save OK [12:48:34]Clear old archive folders... [12:48:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:34]tlvbuf is 014FEE90 [12:48:34]SAM_PROTO_ClearQueue [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 09 00 00 [12:48:34]Write to MH i2c: E2 08 00 7E 4E 80 09 00 00 00 00 00 00 3E [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 7E 4E 00 90 00 40 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]SAM_PROTO_ClearQueue done [12:48:34]KKMCreateOFDPacket [12:48:34]OFDProtocolAddRootSTLVToBuf [12:48:34]FM_MakeSignedData [12:48:34]FM_MakeSignedData [12:48:34]SAM_PROTO_SignData [12:48:34]wFMCommunicate request_size=4 [12:48:34]MH_SAM_APDU [12:48:34]CAPDU: 80 0D 01 02 [12:48:34]Write to MH i2c: E2 08 00 7F 4E 80 0D 01 02 00 00 00 00 46 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:34]Read from MH i2c: E2 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 [12:48:34]MH_I2C_Read... [12:48:34]Read from MH i2c: E2 03 00 7F 4E 00 90 00 41 [12:48:34]RAPDU: 90 00 [12:48:34]wFMCommunicate OK [12:48:34]wFMCommunicate request_size=255 [12:48:34]MH_SAM_APDU [12:48: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B3 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 88 02 00 35 04 06 00 8A [12:48:34]Write to MH i2c: E2 02 01 80 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B3 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 88 02 00 35 04 06 00 8A 00 00 71 [12:48:34]Write i2c OK [12:48:34]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 80 4E 00 90 00 42 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=10 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 02 02 05 5C 12 15 0D 21 [12:48:35]Write to MH i2c: E2 0D 00 81 4E 80 0D 02 02 05 00 5C 12 15 0D 21 00 00 04 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 03 00 81 4E 00 90 00 43 [12:48:35]RAPDU: 90 00 [12:48:35]wFMCommunicate OK [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 0D 03 02 [12:48:35]Write to MH i2c: E2 08 00 82 4E 80 0D 03 02 00 00 00 00 4B [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 0B 00 82 4E 00 62 EF 75 5A FF E3 7C 2A 90 00 F4 [12:48:35]RAPDU: 62 EF 75 5A FF E3 7C 2A 90 00 [12:48:35]wFMCommunicate OK [12:48:35]SAM_PROTO_SignData done [12:48:35]FM_MakeSignedData done [12:48:35]CreateOFDProtocolMessage [12:48:35]wFMCommunicate request_size=4 [12:48:35]MH_SAM_APDU [12:48:35]CAPDU: 80 11 00 00 [12:48:35]Write to MH i2c: E2 08 00 83 4E 80 11 00 00 00 00 00 00 4B [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:35]Read from MH i2c: E2 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: E2 17 00 83 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [12:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:48:35]wFMCommunicate OK [12:48:35]CreateOFDProtocolMessage done [12:48:35]OFDSenderStorePacket 166016 [12:48:35]StoreOFDPacket docnum=166016 [12:48:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 F0 07 01 19 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B3 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 88 02 00 35 04 06 00 8A 5C 12 15 0D 21 62 EF 75 5A FF E3 7C 2A [12:48:35]CheckFolder [12:48:35]dirname=/storage/ofd_packets [12:48:35]CheckFolder done [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00166016 [12:48:35]NVStorageSaveData ofd_packets/00166016 [12:48:35]File name is /storage/ofd_packets/00166016 [12:48:35]Write 301 bytes [12:48:35]NVStorageSaveData done [12:48:35]OFDSenderStorePacket done [12:48:35]KKMCreateOFDPacket done [12:48:35]NVStorageSaveData kkm_last_timestamp [12:48:35]File name is /storage/kkm_last_timestamp [12:48:35]Write 4 bytes [12:48:35]NVStorageSaveData done [12:48:35]ExternCall_PrintAddStr [12:48:35]wPrintStart [12:48:35]Write to MH i2c: 01 00 00 84 4E D2 [12:48:35]Write i2c OK [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 [12:48:35]MH_I2C_Read... [12:48:35]Read from MH i2c: 01 07 00 84 4E 00 00 00 00 00 FF 0F E7 [12:48:35]RasterBufferAndPrint [12:48:35]line Счет N : (1)220587 [12:48:35]line ИНН: 02508201610067 [12:48:35]line Контрольно-Кассовый Чек [12:48:35]line ПРОДАЖА [12:48:35]line ТРК (МРК, ГНК) : 43 [12:48:35]line Товар: 2710124130 [12:48:35]line Аи-92-К-5 [12:48:35]line 11.960 * 66.90 [12:48:35]line = 800.12 [12:48:35]line НДС 12% НСП 1% [12:48:35]line > о реализуемом товаре [12:48:35]line ОКРУГЛЕНИЕ: -0.12 [12:48:35]line ИТОГО: 800.00 [12:48:35]line Внесено: 800.00 [12:48:35]line СДАЧА: 0.00 [12:48:35]line НСП 1% : 7.08 [12:48:35]line НДС 12% : 84.97 [12:48:35]line Наличными: 800.00 [12:48:35]line Безнал.: 0.00 [12:48:35]line Место: АЗС № 161 "Партнер Нефть" [12:48:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:48:35]line СНО: Общий режим [12:48:35]line Чек 127 21.10.2024 12:48 [12:48:35]line Смена: 535 ФФД: 1.0 [12:48:35]line ЗНМ: 0300000104 [12:48:35]line РНМ: 0000000000091764 [12:48:35]line Версия ККМ: 001 [12:48:35]line ФМ: 0000000000871759 [12:48:35]line ФД: 166016 [12:48:35]line ФПД: 152128044993825 [12:48:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166016&fm=152128044993825&tin=02508201610067®Number=0000000000091764&sum=80000 [12:48:35]OFD Sender: Processing packet 166016 [packets to send 48, broken 47] [12:48:35]ProducePacketName [12:48:35]name=ofd_packets/00166016 [12:48:35]OFD Sender: To server: pG, [12:48:35]CommunicateWithHost lk.salyk.kg:30040 [12:48:35]ConnectInit lk.salyk.kg [12:48:35]written 0, free lines is 4095 [12:48:36]Write to MH i2c: 01 00 00 AF 4E FD [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: 01 07 00 AF 4E 00 00 00 00 00 CB 0C DB [12:48:36]RasterBufferAndPrint [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]line [12:48:36]written 0, free lines is 3282 [12:48:36]MH_Cut [12:48:36]Write to MH i2c: D1 01 00 B6 4E 01 D6 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 [12:48:36]MH_I2C_Read... [12:48:36]Read from MH i2c: D1 01 00 B6 4E 00 D5 [12:48:36]Write to MH i2c: 01 00 00 B7 4E 05 [12:48:36]Write i2c OK [12:48:36]MH_I2C_Read... [12:48:36]*** Cut start [12:48:36]*** Partial cut [12:48:36]*** CUTSNS_PIN = 1 [12:48:36]*** CUTSNS_PIN = 0 [12:48:37]*** Brake cut motor [12:48:37]Read from MH i2c: 01 [12:48:37]MH_I2C_Read... [12:48:37]*** Stop cut motor [12:48:37]*** Cut end [12:48:37]Read from MH i2c: 01 07 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: 01 07 00 B7 4E 00 00 00 00 00 FF 0F 1A [12:48:37]process_action close_receipt done [12:48:37]requested_data is exist [12:48:37]produce_requested_data [12:48:37]requested_item fm.sn is exist - process it [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 11 00 00 [12:48:37]Write to MH i2c: E2 08 00 B8 4E 80 11 00 00 00 00 00 00 80 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 17 00 B8 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [12:48:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:48:37]wFMCommunicate OK [12:48:37]requested_item fd.num is exist - process it [12:48:37]SAM_PROTO_GetFieldsCounters [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 00 00 [12:48:37]Write to MH i2c: E2 08 00 B9 4E 80 13 00 00 00 00 00 00 83 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 62 00 B9 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [12:48:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 80 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetFieldsCounters done [12:48:37]requested_item shift.num is exist - process it [12:48:37]requested_item shift.opened is exist - process it [12:48:37]req_shift_opened [12:48:37]FM_GetShiftState [12:48:37]SAM_PROTO_GetShiftState [12:48:37]wFMCommunicate request_size=4 [12:48:37]MH_SAM_APDU [12:48:37]CAPDU: 80 13 01 00 [12:48:37]Write to MH i2c: E2 08 00 BA 4E 80 13 01 00 00 00 00 00 85 [12:48:37]Write i2c OK [12:48:37]MH_I2C_Read... [12:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:37]Read from MH i2c: E2 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 [12:48:37]MH_I2C_Read... [12:48:37]Read from MH i2c: E2 0E 00 BA 4E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8E [12:48:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:48:37]wFMCommunicate OK [12:48:37]SAM_PROTO_GetShiftState done [12:48:37]FM_GetShiftState done [12:48:37]req_shift_opened done [12:48:37]requested_item shift.open_date is exist - process it [12:48:37]req_shift_open_date [12:48:37]req_shift_open_date done [12:48:37]produce_requested_data done [12:48:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166016,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:48:37]process_action_free close_receipt [12:48:37]json_value_free [12:48:37]json_value_free done [12:48:37]process_json_proto returns [12:48:37]Send response to host [12:48:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166016,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:48:37]free response buf [12:48:37]execute_script done [12:48:37]execute_script returns [12:48:37]free content buf [12:48:37]Sock 5.Close socket [12:48:37]Sock 5.Thread stoped [12:49:10]accept exits with 6 [12:49:10]New connection [12:49:10]New thread 3066776932 created [12:49:10]Thread 3066920292 joined [12:49:10]Waiting for new connection... [12:49:10] Sock 6.Parse request [12:49:10]Sock 6.Check first char [12:49:10]Sock 6.First char is OK [12:49:10]request: POST /json_proto HTTP/1.0 [12:49:10]Method: POST [12:49:10]URL: /json_proto [12:49:10]Method is POST - this is cgi request [12:49:10]url: /json_proto [12:49:10]query_string will be loaded in cgi processing [12:49:10]execute_cgi json_proto POST (null) [12:49:10]execute_cgi path=json_proto method=POST [12:49:10]POST find Content-Length [12:49:10]Host: 172.17.53.195:8080 [12:49:10]Content-Length: 677 [12:49:10]Content-Type: application/json [12:49:10] [12:49:10]POST finish read [12:49:10]Found Content-Length = 677 [12:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.320, "sum" : 489.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:10]execute_script... [12:49: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)220588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.320, "sum" : 489.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:10]POST & json_proto [12:49:10]process_json_proto [12:49:10]json parsed OK: [12:49:10]protocol is kg_v1.0 [12:49:10]action value=close_receipt [12:49:10]process_action close_receipt [12:49:10]cmd_close_receipt [12:49:10]MH_GetDate [12:49:10]Write to MH i2c: F0 00 00 BB 4E F8 [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: F0 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: F0 09 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: F0 09 00 BB 4E 00 D9 4D 16 67 21 48 4A 65 BC [12:49:10]GetLastDocTimeStamp 1729514931 [12:49:10]current date 1729514969 [12:49:10]FM_GetShiftState [12:49:10]SAM_PROTO_GetShiftState [12:49:10]wFMCommunicate request_size=4 [12:49:10]MH_SAM_APDU [12:49:10]CAPDU: 80 13 01 00 [12:49:10]Write to MH i2c: E2 08 00 BC 4E 80 13 01 00 00 00 00 00 87 [12:49:10]Write i2c OK [12:49:10]MH_I2C_Read... [12:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:10]Read from MH i2c: E2 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 0E 00 [12:49:10]MH_I2C_Read... [12:49:10]Read from MH i2c: E2 0E 00 BC 4E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 90 [12:49:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:49:10]wFMCommunicate OK [12:49:10]SAM_PROTO_GetShiftState done [12:49:10]FM_GetShiftState done [12:49:10]opened in 1729470944 [12:49:10]opened+sec_in_day 1729557344 [12:49:10]quantity*price = 48970 [12:49:10]sum+1 = 48972 [12:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 489.00 Внесено: 490.00 СДАЧА: 1.00 НСП 1% : 4.33 НДС 12% : 52.00 Наличными: 489.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 128 21.10.2024 12:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166017 ФПД: 146342838894317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124929&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166017&fm=146342838894317&tin=02508201610067®Number=0000000000091764&sum=48900 [12:49:12]StoreToDocumentArchive [12:49:12]shift 535 fd 166017 [12:49:12]save to /storage/0535/doc_00166017 [12:49:12]save last doc name /storage/0535/doc_00166017 to /storage/kkm_last_doc_name [12:49:12]save OK [12:49:12]Clear old archive folders... [12:49:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:12]tlvbuf is 018A2BC0 [12:49:12]SAM_PROTO_ClearQueue [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 09 00 00 [12:49:12]Write to MH i2c: E2 08 00 C9 4E 80 09 00 00 00 00 00 00 89 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 C9 4E 00 90 00 8B [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]SAM_PROTO_ClearQueue done [12:49:12]KKMCreateOFDPacket [12:49:12]OFDProtocolAddRootSTLVToBuf [12:49:12]FM_MakeSignedData [12:49:12]FM_MakeSignedData [12:49:12]SAM_PROTO_SignData [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 01 02 [12:49:12]Write to MH i2c: E2 08 00 CA 4E 80 0D 01 02 00 00 00 00 91 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 CA 4E 00 90 00 8C [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]wFMCommunicate request_size=255 [12:49:12]MH_SAM_APDU [12:49: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 98 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D9 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 88 02 00 35 04 06 00 85 [12:49:12]Write to MH i2c: E2 02 01 CB 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D9 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 88 02 00 35 04 06 00 85 00 00 04 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 CB 4E 00 90 00 8D [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]wFMCommunicate request_size=10 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 02 02 05 19 18 ED 7E ED [12:49:12]Write to MH i2c: E2 0D 00 CC 4E 80 0D 02 02 05 00 19 18 ED 7E ED 00 00 27 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 03 00 CC 4E 00 90 00 8E [12:49:12]RAPDU: 90 00 [12:49:12]wFMCommunicate OK [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 0D 03 02 [12:49:12]Write to MH i2c: E2 08 00 CD 4E 80 0D 03 02 00 00 00 00 96 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 0B 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 0B 00 CD 4E 00 BE B2 A5 3D 64 6A 00 D4 90 00 8B [12:49:12]RAPDU: BE B2 A5 3D 64 6A 00 D4 90 00 [12:49:12]wFMCommunicate OK [12:49:12]SAM_PROTO_SignData done [12:49:12]FM_MakeSignedData done [12:49:12]CreateOFDProtocolMessage [12:49:12]wFMCommunicate request_size=4 [12:49:12]MH_SAM_APDU [12:49:12]CAPDU: 80 11 00 00 [12:49:12]Write to MH i2c: E2 08 00 CE 4E 80 11 00 00 00 00 00 00 96 [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:12]Read from MH i2c: E2 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 17 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: E2 17 00 CE 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [12:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:49:12]wFMCommunicate OK [12:49:12]CreateOFDProtocolMessage done [12:49:12]OFDSenderStorePacket 166017 [12:49:12]StoreOFDPacket docnum=166017 [12:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 0F 07 01 6F 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 98 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D9 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 88 02 00 35 04 06 00 85 19 18 ED 7E ED BE B2 A5 3D 64 6A 00 D4 [12:49:12]CheckFolder [12:49:12]dirname=/storage/ofd_packets [12:49:12]CheckFolder done [12:49:12]ProducePacketName [12:49:12]name=ofd_packets/00166017 [12:49:12]NVStorageSaveData ofd_packets/00166017 [12:49:12]File name is /storage/ofd_packets/00166017 [12:49:12]Write 301 bytes [12:49:12]NVStorageSaveData done [12:49:12]OFDSenderStorePacket done [12:49:12]KKMCreateOFDPacket done [12:49:12]NVStorageSaveData kkm_last_timestamp [12:49:12]File name is /storage/kkm_last_timestamp [12:49:12]Write 4 bytes [12:49:12]NVStorageSaveData done [12:49:12]ExternCall_PrintAddStr [12:49:12]wPrintStart [12:49:12]Write to MH i2c: 01 00 00 CF 4E 1D [12:49:12]Write i2c OK [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: 01 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: 01 07 00 [12:49:12]MH_I2C_Read... [12:49:12]Read from MH i2c: 01 07 00 CF 4E 00 00 00 00 00 FF 0F 32 [12:49:12]RasterBufferAndPrint [12:49:12]line Счет N : (1)220588 [12:49:12]line ИНН: 02508201610067 [12:49:12]line Контрольно-Кассовый Чек [12:49:12]line ПРОДАЖА [12:49:12]line ТРК (МРК, ГНК) : 13 [12:49:12]line Товар: 2710124130 [12:49:12]line Аи-92-К-5 [12:49:12]line 7.320 * 66.90 [12:49:12]line = 489.71 [12:49:12]line НДС 12% НСП 1% [12:49:12]line > о реализуемом товаре [12:49:12]line ОКРУГЛЕНИЕ: -0.71 [12:49:12]line ИТОГО: 489.00 [12:49:12]line Внесено: 490.00 [12:49:12]line СДАЧА: 1.00 [12:49:12]line НСП 1% : 4.33 [12:49:12]line НДС 12% : 52.00 [12:49:12]line Наличными: 489.00 [12:49:12]line Безнал.: 0.00 [12:49:12]line Место: АЗС № 161 "Партнер Нефть" [12:49:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:49:12]line СНО: Общий режим [12:49:12]line Чек 128 21.10.2024 12:49 [12:49:12]line Смена: 535 ФФД: 1.0 [12:49:12]line ЗНМ: 0300000104 [12:49:12]line РНМ: 0000000000091764 [12:49:12]line Версия ККМ: 001 [12:49:12]line ФМ: 0000000000871759 [12:49:12]line ФД: 166017 [12:49:12]line ФПД: 146342838894317 [12:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T124929&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166017&fm=146342838894317&tin=02508201610067®Number=0000000000091764&sum=48900 [12:49:12]written 0, free lines is 4095 [12:49:13]Write to MH i2c: 01 00 00 FA 4E 48 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 07 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: 01 07 00 FA 4E 00 00 00 00 00 CB 0C 26 [12:49:13]RasterBufferAndPrint [12:49:13]line [12:49:13]line [12:49:13]line [12:49:13]line [12:49:13]line [12:49:13]written 0, free lines is 3278 [12:49:13]MH_Cut [12:49:13]Write to MH i2c: D1 01 00 01 4F 01 22 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: D1 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: D1 01 00 [12:49:13]MH_I2C_Read... [12:49:13]Read from MH i2c: D1 01 00 01 4F 00 21 [12:49:13]Write to MH i2c: 01 00 00 02 4F 51 [12:49:13]Write i2c OK [12:49:13]MH_I2C_Read... [12:49:14]*** Cut start [12:49:14]*** Partial cut [12:49:14]*** CUTSNS_PIN = 1 [12:49:14]*** CUTSNS_PIN = 0 [12:49:14]*** Brake cut motor [12:49:14]Read from MH i2c: 01 [12:49:14]MH_I2C_Read... [12:49:14]*** Stop cut motor [12:49:14]*** Cut end [12:49:14]Read from MH i2c: 01 07 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: 01 07 00 02 4F 00 00 00 00 00 FF 0F 66 [12:49:14]process_action close_receipt done [12:49:14]requested_data is exist [12:49:14]produce_requested_data [12:49:14]requested_item fm.sn is exist - process it [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 11 00 00 [12:49:14]Write to MH i2c: E2 08 00 03 4F 80 11 00 00 00 00 00 00 CC [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:14]Read from MH i2c: E2 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 17 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 17 00 03 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [12:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:49:14]wFMCommunicate OK [12:49:14]requested_item fd.num is exist - process it [12:49:14]SAM_PROTO_GetFieldsCounters [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 13 00 00 [12:49:14]Write to MH i2c: E2 08 00 04 4F 80 13 00 00 00 00 00 00 CF [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:14]Read from MH i2c: E2 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 62 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 62 00 04 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 81 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:14]wFMCommunicate OK [12:49:14]SAM_PROTO_GetFieldsCounters done [12:49:14]requested_item shift.num is exist - process it [12:49:14]requested_item shift.opened is exist - process it [12:49:14]req_shift_opened [12:49:14]FM_GetShiftState [12:49:14]SAM_PROTO_GetShiftState [12:49:14]wFMCommunicate request_size=4 [12:49:14]MH_SAM_APDU [12:49:14]CAPDU: 80 13 01 00 [12:49:14]Write to MH i2c: E2 08 00 05 4F 80 13 01 00 00 00 00 00 D1 [12:49:14]Write i2c OK [12:49:14]MH_I2C_Read... [12:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:14]Read from MH i2c: E2 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 0E 00 [12:49:14]MH_I2C_Read... [12:49:14]Read from MH i2c: E2 0E 00 05 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DA [12:49:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:49:14]wFMCommunicate OK [12:49:14]SAM_PROTO_GetShiftState done [12:49:14]FM_GetShiftState done [12:49:14]req_shift_opened done [12:49:14]requested_item shift.open_date is exist - process it [12:49:14]req_shift_open_date [12:49:14]req_shift_open_date done [12:49:14]produce_requested_data done [12:49:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166017,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:49:14]process_action_free close_receipt [12:49:14]json_value_free [12:49:14]json_value_free done [12:49:14]process_json_proto returns [12:49:14]Send response to host [12:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166017,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:49:14]free response buf [12:49:14]execute_script done [12:49:14]execute_script returns [12:49:14]free content buf [12:49:14]Sock 6.Close socket [12:49:14]Sock 6.Thread stoped [12:50:46]accept exits with 5 [12:50:46]New connection [12:50:46]New thread 3066920292 created [12:50:46]Thread 3066776932 joined [12:50:46]Waiting for new connection... [12:50:46] Sock 5.Parse request [12:50:46]Sock 5.Check first char [12:50:46]Sock 5.First char is OK [12:50:46]request: POST /json_proto HTTP/1.0 [12:50:46]Method: POST [12:50:46]URL: /json_proto [12:50:46]Method is POST - this is cgi request [12:50:46]url: /json_proto [12:50:46]query_string will be loaded in cgi processing [12:50:46]execute_cgi json_proto POST (null) [12:50:46]execute_cgi path=json_proto method=POST [12:50:46]POST find Content-Length [12:50:46]Host: 172.17.53.195:8080 [12:50:46]Content-Length: 677 [12:50:46]Content-Type: application/json [12:50:46] [12:50:46]POST finish read [12:50:46]Found Content-Length = 677 [12:50:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [12:50:46]execute_script... [12:50: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)220589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [12:50:46]POST & json_proto [12:50:46]process_json_proto [12:50:46]json parsed OK: [12:50:46]protocol is kg_v1.0 [12:50:46]action value=close_receipt [12:50:46]process_action close_receipt [12:50:46]cmd_close_receipt [12:50:46]MH_GetDate [12:50:46]Write to MH i2c: F0 00 00 06 4F 44 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: F0 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: F0 09 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: F0 09 00 06 4F 00 38 4E 16 67 21 48 4A 65 68 [12:50:46]GetLastDocTimeStamp 1729514969 [12:50:46]current date 1729515064 [12:50:46]FM_GetShiftState [12:50:46]SAM_PROTO_GetShiftState [12:50:46]wFMCommunicate request_size=4 [12:50:46]MH_SAM_APDU [12:50:46]CAPDU: 80 13 01 00 [12:50:46]Write to MH i2c: E2 08 00 07 4F 80 13 01 00 00 00 00 00 D3 [12:50:46]Write i2c OK [12:50:46]MH_I2C_Read... [12:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:46]Read from MH i2c: E2 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 [12:50:46]MH_I2C_Read... [12:50:46]Read from MH i2c: E2 0E 00 07 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [12:50:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:50:46]wFMCommunicate OK [12:50:46]SAM_PROTO_GetShiftState done [12:50:46]FM_GetShiftState done [12:50:46]opened in 1729470944 [12:50:46]opened+sec_in_day 1729557344 [12:50:46]quantity*price = 60027 [12:50:46]sum+1 = 60029 [12:50:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 129 21.10.2024 12:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166018 ФПД: 163926022454077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166018&fm=163926022454077&tin=02508201610067®Number=0000000000091764&sum=60000 [12:50:47]StoreToDocumentArchive [12:50:47]shift 535 fd 166018 [12:50:47]save to /storage/0535/doc_00166018 [12:50:47]save last doc name /storage/0535/doc_00166018 to /storage/kkm_last_doc_name [12:50:47]save OK [12:50:47]Clear old archive folders... [12:50:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:50:47]tlvbuf is 014B2F00 [12:50:47]SAM_PROTO_ClearQueue [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 09 00 00 [12:50:47]Write to MH i2c: E2 08 00 14 4F 80 09 00 00 00 00 00 00 D5 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 14 4F 00 90 00 D7 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]SAM_PROTO_ClearQueue done [12:50:47]KKMCreateOFDPacket [12:50:47]OFDProtocolAddRootSTLVToBuf [12:50:47]FM_MakeSignedData [12:50:47]FM_MakeSignedData [12:50:47]SAM_PROTO_SignData [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 01 02 [12:50:47]Write to MH i2c: E2 08 00 15 4F 80 0D 01 02 00 00 00 00 DD [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 15 4F 00 90 00 D8 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=255 [12:50:47]MH_SAM_APDU [12:50: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 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 81 00 00 00 F4 03 04 00 38 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 88 02 00 35 04 06 00 95 [12:50:47]Write to MH i2c: E2 02 01 16 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 81 00 00 00 F4 03 04 00 38 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 88 02 00 35 04 06 00 95 00 00 0F [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]ConnectInit Can't connect to host [12:50:47]CommunicateWithHost connect error [12:50:47]CommunicateWithHost err = -1 [12:50:47]OFD Sender: Server communicate error [12:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 16 4F 00 90 00 D9 [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=10 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 02 02 05 17 00 56 7B 3D [12:50:47]Write to MH i2c: E2 0D 00 17 4F 80 0D 02 02 05 00 17 00 56 7B 3D 00 00 0F [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]OFD Sender: Processing packet 166016 [packets to send 49, broken 47] [12:50:47]ProducePacketName [12:50:47]name=ofd_packets/00166016 [12:50:47]OFD Sender: To server: pG, [12:50:47]CommunicateWithHost lk.salyk.kg:30040 [12:50:47]ConnectInit lk.salyk.kg [12:50:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 03 00 17 4F 00 90 00 DA [12:50:47]RAPDU: 90 00 [12:50:47]wFMCommunicate OK [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 0D 03 02 [12:50:47]Write to MH i2c: E2 08 00 18 4F 80 0D 03 02 00 00 00 00 E2 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 0B 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 0B 00 18 4F 00 59 82 1F 19 20 C0 93 5F 90 00 C8 [12:50:47]RAPDU: 59 82 1F 19 20 C0 93 5F 90 00 [12:50:47]wFMCommunicate OK [12:50:47]SAM_PROTO_SignData done [12:50:47]FM_MakeSignedData done [12:50:47]CreateOFDProtocolMessage [12:50:47]wFMCommunicate request_size=4 [12:50:47]MH_SAM_APDU [12:50:47]CAPDU: 80 11 00 00 [12:50:47]Write to MH i2c: E2 08 00 19 4F 80 11 00 00 00 00 00 00 E2 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Connected sock=7 [12:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 30 F0 07 01 19 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B3 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 88 02 00 35 04 06 00 8A 5C 12 15 0D 21 62 EF 75 5A FF E3 7C 2A [12:50:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:47]Read from MH i2c: E2 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 17 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: E2 17 00 19 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [12:50:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:50:47]wFMCommunicate OK [12:50:47]CreateOFDProtocolMessage done [12:50:47]OFDSenderStorePacket 166018 [12:50:47]StoreOFDPacket docnum=166018 [12:50:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 CB 07 01 42 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 38 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 88 02 00 35 04 06 00 95 17 00 56 7B 3D 59 82 1F 19 20 C0 93 5F [12:50:47]CheckFolder [12:50:47]dirname=/storage/ofd_packets [12:50:47]CheckFolder done [12:50:47]ProducePacketName [12:50:47]name=ofd_packets/00166018 [12:50:47]NVStorageSaveData ofd_packets/00166018 [12:50:47]File name is /storage/ofd_packets/00166018 [12:50:47]Write 301 bytes [12:50:47]NVStorageSaveData done [12:50:47]OFDSenderStorePacket done [12:50:47]KKMCreateOFDPacket done [12:50:47]NVStorageSaveData kkm_last_timestamp [12:50:47]File name is /storage/kkm_last_timestamp [12:50:47]Write 4 bytes [12:50:47]NVStorageSaveData done [12:50:47]ExternCall_PrintAddStr [12:50:47]wPrintStart [12:50:47]Write to MH i2c: 01 00 00 1A 4F 69 [12:50:47]Write i2c OK [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 [12:50:47]MH_I2C_Read... [12:50:47]Read from MH i2c: 01 07 00 1A 4F 00 00 00 00 00 FF 0F 7E [12:50:47]RasterBufferAndPrint [12:50:47]line Счет N : (1)220589 [12:50:47]line ИНН: 02508201610067 [12:50:47]line Контрольно-Кассовый Чек [12:50:47]line ПРОДАЖА [12:50:47]line ТРК (МРК, ГНК) : 24 [12:50:47]line Товар: 2710124500 [12:50:47]line Аи-95-К-5 [12:50:48]line 8.090 * 74.20 [12:50:48]line = 600.28 [12:50:48]line НДС 12% НСП 1% [12:50:48]line > о реализуемом товаре [12:50:48]line ОКРУГЛЕНИЕ: -0.28 [12:50:48]line ИТОГО: 600.00 [12:50:48]line Внесено: 600.00 [12:50:48]line СДАЧА: 0.00 [12:50:48]line НСП 1% : 5.31 [12:50:48]line НДС 12% : 63.75 [12:50:48]line Наличными: 600.00 [12:50:48]line Безнал.: 0.00 [12:50:48]line Место: АЗС № 161 "Партнер Нефть" [12:50:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:50:48]line СНО: Общий режим [12:50:48]line Чек 129 21.10.2024 12:51 [12:50:48]line Смена: 535 ФФД: 1.0 [12:50:48]line ЗНМ: 0300000104 [12:50:48]line РНМ: 0000000000091764 [12:50:48]line Версия ККМ: 001 [12:50:48]line ФМ: 0000000000871759 [12:50:48]line ФД: 166018 [12:50:48]line ФПД: 163926022454077 [12:50:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166018&fm=163926022454077&tin=02508201610067®Number=0000000000091764&sum=60000 [12:50:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E9 46 47 00 E5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 80 88 02 00 F4 03 04 00 A6 F4 15 67 B6 04 01 00 00 43 96 8A CC C2 D9 60 AD [12:50:48]CommunicateWithHost err = 0 [12:50:48]CheckOFDResponse [12:50:48]1017 (14) - 77093643461234 [12:50:48]1041 (16) - 0000000000871759 [12:50:48]1040 (4) - 166016 [12:50:48]1012 (4) - 21.10.2024 06:28 [12:50:48]1206 (1) - 0 [12:50:48]OFD Sender: Remove packet 166016 [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00166016 [12:50:48]NVStorageDeleteData [12:50:48]written 0, free lines is 4095 [12:50:48]Write to MH i2c: 01 00 00 45 4F 94 [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: 01 07 00 45 4F 00 00 00 00 00 C8 0C 6F [12:50:48]RasterBufferAndPrint [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]line [12:50:48]written 0, free lines is 3278 [12:50:48]MH_Cut [12:50:48]Write to MH i2c: D1 01 00 4C 4F 01 6D [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 01 00 [12:50:48]MH_I2C_Read... [12:50:48]Read from MH i2c: D1 01 00 4C 4F 00 6C [12:50:48]Write to MH i2c: 01 00 00 4D 4F 9C [12:50:48]Write i2c OK [12:50:48]MH_I2C_Read... [12:50:48]OFD Sender: Processing packet 166017 [packets to send 49, broken 47] [12:50:48]ProducePacketName [12:50:48]name=ofd_packets/00166017 [12:50:48]OFD Sender: To server: pG, [12:50:48]CommunicateWithHost lk.salyk.kg:30040 [12:50:48]ConnectInit lk.salyk.kg [12:50:48]Connected sock=7 [12:50:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 0F 07 01 6F 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 98 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 4B BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 D9 4D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 88 02 00 35 04 06 00 85 19 18 ED 7E ED BE B2 A5 3D 64 6A 00 D4 [12:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D9 FE 47 00 E5 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 81 88 02 00 F4 03 04 00 A7 F4 15 67 B6 04 01 00 00 0C 17 CF 11 5A 2E 48 A9 [12:50:49]CommunicateWithHost err = 0 [12:50:49]CheckOFDResponse [12:50:49]1017 (14) - 77093643461234 [12:50:49]1041 (16) - 0000000000871759 [12:50:49]1040 (4) - 166017 [12:50:49]1012 (4) - 21.10.2024 06:28 [12:50:49]1206 (1) - 0 [12:50:49]OFD Sender: Remove packet 166017 [12:50:49]ProducePacketName [12:50:49]name=ofd_packets/00166017 [12:50:49]NVStorageDeleteData [12:50:49]*** Cut start [12:50:49]*** Partial cut [12:50:49]*** CUTSNS_PIN = 1 [12:50:49]*** CUTSNS_PIN = 0 [12:50:49]OFD Sender: Processing packet 166018 [packets to send 48, broken 47] [12:50:49]ProducePacketName [12:50:49]name=ofd_packets/00166018 [12:50:49]OFD Sender: To server: pG, [12:50:49]CommunicateWithHost lk.salyk.kg:30040 [12:50:49]ConnectInit lk.salyk.kg [12:50:49]Connected sock=7 [12:50:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 91 CB 07 01 42 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 81 00 00 00 F4 03 04 00 38 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 88 02 00 35 04 06 00 95 17 00 56 7B 3D 59 82 1F 19 20 C0 93 5F [12:50:49]*** Brake cut motor [12:50:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AA 82 47 00 CF 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 82 88 02 00 F4 03 04 00 A8 F4 15 67 B6 04 01 00 00 41 31 99 F3 2E 10 C2 C9 [12:50:49]CommunicateWithHost err = 0 [12:50:49]CheckOFDResponse [12:50:49]1017 (14) - 77093643461234 [12:50:49]1041 (16) - 0000000000871759 [12:50:49]1040 (4) - 166018 [12:50:49]1012 (4) - 21.10.2024 06:28 [12:50:49]1206 (1) - 0 [12:50:49]OFD Sender: Remove packet 166018 [12:50:49]ProducePacketName [12:50:49]name=ofd_packets/00166018 [12:50:49]NVStorageDeleteData [12:50:50]Read from MH i2c: 01 [12:50:50]MH_I2C_Read... [12:50:50]*** Stop cut motor [12:50:50]*** Cut end [12:50:50]Read from MH i2c: 01 07 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: 01 07 00 4D 4F 00 00 00 00 00 FF 0F B1 [12:50:50]process_action close_receipt done [12:50:50]requested_data is exist [12:50:50]produce_requested_data [12:50:50]requested_item fm.sn is exist - process it [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 11 00 00 [12:50:50]Write to MH i2c: E2 08 00 4E 4F 80 11 00 00 00 00 00 00 17 [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 17 00 4E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [12:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:50:50]wFMCommunicate OK [12:50:50]requested_item fd.num is exist - process it [12:50:50]SAM_PROTO_GetFieldsCounters [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 00 00 [12:50:50]Write to MH i2c: E2 08 00 4F 4F 80 13 00 00 00 00 00 00 1A [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 62 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 62 00 4F 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [12:50:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 82 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetFieldsCounters done [12:50:50]requested_item shift.num is exist - process it [12:50:50]requested_item shift.opened is exist - process it [12:50:50]req_shift_opened [12:50:50]FM_GetShiftState [12:50:50]SAM_PROTO_GetShiftState [12:50:50]wFMCommunicate request_size=4 [12:50:50]MH_SAM_APDU [12:50:50]CAPDU: 80 13 01 00 [12:50:50]Write to MH i2c: E2 08 00 50 4F 80 13 01 00 00 00 00 00 1C [12:50:50]Write i2c OK [12:50:50]MH_I2C_Read... [12:50:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:50:50]OFD Sender: No OFD packet to send [12:50:50]Read from MH i2c: E2 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 [12:50:50]MH_I2C_Read... [12:50:50]Read from MH i2c: E2 0E 00 50 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 25 [12:50:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:50:50]wFMCommunicate OK [12:50:50]SAM_PROTO_GetShiftState done [12:50:50]FM_GetShiftState done [12:50:50]req_shift_opened done [12:50:50]requested_item shift.open_date is exist - process it [12:50:50]req_shift_open_date [12:50:50]req_shift_open_date done [12:50:50]produce_requested_data done [12:50:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166018,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:50:50]process_action_free close_receipt [12:50:50]json_value_free [12:50:50]json_value_free done [12:50:50]process_json_proto returns [12:50:50]Send response to host [12:50:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166018,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:50:50]free response buf [12:50:50]execute_script done [12:50:50]execute_script returns [12:50:50]free content buf [12:50:50]Sock 5.Close socket [12:50:50]Sock 5.Thread stoped [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]accept exits with 6 [12:51:20]New connection [12:51:20]New thread 3066776932 created [12:51:20]Thread 3066920292 joined [12:51:20]Waiting for new connection... [12:51:20] Sock 6.Parse request [12:51:20]Sock 6.Check first char [12:51:20]Sock 6.First char is OK [12:51:20]request: POST /json_proto HTTP/1.0 [12:51:20]Method: POST [12:51:20]URL: /json_proto [12:51:20]Method is POST - this is cgi request [12:51:20]url: /json_proto [12:51:20]query_string will be loaded in cgi processing [12:51:20]execute_cgi json_proto POST (null) [12:51:20]execute_cgi path=json_proto method=POST [12:51:20]POST find Content-Length [12:51:20]Host: 172.17.53.195:8080 [12:51:20]Content-Length: 677 [12:51:20]Content-Type: application/json [12:51:20] [12:51:20]POST finish read [12:51:20]Found Content-Length = 677 [12:51:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:20]execute_script... [12:51: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)220590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:20]POST & json_proto [12:51:20]process_json_proto [12:51:20]json parsed OK: [12:51:20]protocol is kg_v1.0 [12:51:20]action value=close_receipt [12:51:20]process_action close_receipt [12:51:20]cmd_close_receipt [12:51:20]MH_GetDate [12:51:20]Write to MH i2c: F0 00 00 51 4F 8F [12:51:20]Write i2c OK [12:51:20]MH_I2C_Read... [12:51:20]Read from MH i2c: F0 [12:51:20]MH_I2C_Read... [12:51:20]Read from MH i2c: F0 09 00 [12:51:20]MH_I2C_Read... [12:51:20]Read from MH i2c: F0 09 00 51 4F 00 5A 4E 16 67 21 48 4A 65 D5 [12:51:20]GetLastDocTimeStamp 1729515064 [12:51:20]current date 1729515098 [12:51:20]FM_GetShiftState [12:51:20]SAM_PROTO_GetShiftState [12:51:20]wFMCommunicate request_size=4 [12:51:20]MH_SAM_APDU [12:51:20]CAPDU: 80 13 01 00 [12:51:20]Write to MH i2c: E2 08 00 52 4F 80 13 01 00 00 00 00 00 1E [12:51:20]Write i2c OK [12:51:20]MH_I2C_Read... [12:51:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:20]Read from MH i2c: E2 [12:51:20]MH_I2C_Read... [12:51:20]Read from MH i2c: E2 0E 00 [12:51:20]MH_I2C_Read... [12:51:20]Read from MH i2c: E2 0E 00 52 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 27 [12:51:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:51:20]wFMCommunicate OK [12:51:20]SAM_PROTO_GetShiftState done [12:51:20]FM_GetShiftState done [12:51:20]opened in 1729470944 [12:51:20]opened+sec_in_day 1729557344 [12:51:20]quantity*price = 50041 [12:51:20]sum+1 = 50042 [12:51:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 130 21.10.2024 12:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166019 ФПД: 62131987821195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125138&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166019&fm=62131987821195&tin=02508201610067®Number=0000000000091764&sum=50000 [12:51:21]StoreToDocumentArchive [12:51:21]shift 535 fd 166019 [12:51:21]save to /storage/0535/doc_00166019 [12:51:21]save last doc name /storage/0535/doc_00166019 to /storage/kkm_last_doc_name [12:51:21]save OK [12:51:21]Clear old archive folders... [12:51:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:51:21]tlvbuf is 016C7600 [12:51:21]SAM_PROTO_ClearQueue [12:51:21]wFMCommunicate request_size=4 [12:51:21]MH_SAM_APDU [12:51:21]CAPDU: 80 09 00 00 [12:51:21]Write to MH i2c: E2 08 00 5F 4F 80 09 00 00 00 00 00 00 20 [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:21]Read from MH i2c: E2 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 5F 4F 00 90 00 22 [12:51:21]RAPDU: 90 00 [12:51:21]wFMCommunicate OK [12:51:21]SAM_PROTO_ClearQueue done [12:51:21]KKMCreateOFDPacket [12:51:21]OFDProtocolAddRootSTLVToBuf [12:51:21]FM_MakeSignedData [12:51:21]FM_MakeSignedData [12:51:21]SAM_PROTO_SignData [12:51:21]wFMCommunicate request_size=4 [12:51:21]MH_SAM_APDU [12:51:21]CAPDU: 80 0D 01 02 [12:51:21]Write to MH i2c: E2 08 00 60 4F 80 0D 01 02 00 00 00 00 28 [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:21]Read from MH i2c: E2 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 60 4F 00 90 00 23 [12:51:21]RAPDU: 90 00 [12:51:21]wFMCommunicate OK [12:51:21]wFMCommunicate request_size=255 [12:51:21]MH_SAM_APDU [12:51: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5A 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 88 02 00 35 04 06 00 38 [12:51:21]Write to MH i2c: E2 02 01 61 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5A 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 88 02 00 35 04 06 00 38 00 00 C3 [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:21]Read from MH i2c: E2 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 61 4F 00 90 00 24 [12:51:21]RAPDU: 90 00 [12:51:21]wFMCommunicate OK [12:51:21]wFMCommunicate request_size=10 [12:51:21]MH_SAM_APDU [12:51:21]CAPDU: 80 0D 02 02 05 82 3B 10 32 8B [12:51:21]Write to MH i2c: E2 0D 00 62 4F 80 0D 02 02 05 00 82 3B 10 32 8B 00 00 BF [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:21]Read from MH i2c: E2 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 03 00 62 4F 00 90 00 25 [12:51:21]RAPDU: 90 00 [12:51:21]wFMCommunicate OK [12:51:21]wFMCommunicate request_size=4 [12:51:21]MH_SAM_APDU [12:51:21]CAPDU: 80 0D 03 02 [12:51:21]Write to MH i2c: E2 08 00 63 4F 80 0D 03 02 00 00 00 00 2D [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:21]Read from MH i2c: E2 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 0B 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 0B 00 63 4F 00 90 05 53 66 E7 8A 79 53 90 00 B9 [12:51:21]RAPDU: 90 05 53 66 E7 8A 79 53 90 00 [12:51:21]wFMCommunicate OK [12:51:21]SAM_PROTO_SignData done [12:51:21]FM_MakeSignedData done [12:51:21]CreateOFDProtocolMessage [12:51:21]wFMCommunicate request_size=4 [12:51:21]MH_SAM_APDU [12:51:21]CAPDU: 80 11 00 00 [12:51:21]Write to MH i2c: E2 08 00 64 4F 80 11 00 00 00 00 00 00 2D [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:21]Read from MH i2c: E2 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 17 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: E2 17 00 64 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 85 [12:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:51:21]wFMCommunicate OK [12:51:21]CreateOFDProtocolMessage done [12:51:21]OFDSenderStorePacket 166019 [12:51:21]StoreOFDPacket docnum=166019 [12:51:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 02 07 01 49 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5A 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 88 02 00 35 04 06 00 38 82 3B 10 32 8B 90 05 53 66 E7 8A 79 53 [12:51:21]CheckFolder [12:51:21]dirname=/storage/ofd_packets [12:51:21]CheckFolder done [12:51:21]ProducePacketName [12:51:21]name=ofd_packets/00166019 [12:51:21]NVStorageSaveData ofd_packets/00166019 [12:51:21]File name is /storage/ofd_packets/00166019 [12:51:21]Write 301 bytes [12:51:21]NVStorageSaveData done [12:51:21]OFDSenderStorePacket done [12:51:21]KKMCreateOFDPacket done [12:51:21]NVStorageSaveData kkm_last_timestamp [12:51:21]File name is /storage/kkm_last_timestamp [12:51:21]Write 4 bytes [12:51:21]NVStorageSaveData done [12:51:21]ExternCall_PrintAddStr [12:51:21]wPrintStart [12:51:21]Write to MH i2c: 01 00 00 65 4F B4 [12:51:21]Write i2c OK [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: 01 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: 01 07 00 [12:51:21]MH_I2C_Read... [12:51:21]Read from MH i2c: 01 07 00 65 4F 00 00 00 00 00 FF 0F C9 [12:51:21]RasterBufferAndPrint [12:51:21]line Счет N : (1)220590 [12:51:21]line ИНН: 02508201610067 [12:51:21]line Контрольно-Кассовый Чек [12:51:21]line ПРОДАЖА [12:51:21]line ТРК (МРК, ГНК) : 13 [12:51:21]line Товар: 2710124130 [12:51:21]line Аи-92-К-5 [12:51:21]line 7.480 * 66.90 [12:51:21]line = 500.41 [12:51:21]line НДС 12% НСП 1% [12:51:21]line > о реализуемом товаре [12:51:21]line ОКРУГЛЕНИЕ: -0.41 [12:51:21]line ИТОГО: 500.00 [12:51:21]line Внесено: 500.00 [12:51:21]line СДАЧА: 0.00 [12:51:21]line НСП 1% : 4.43 [12:51:21]line НДС 12% : 53.14 [12:51:21]line Наличными: 500.00 [12:51:21]line Безнал.: 0.00 [12:51:21]line Место: АЗС № 161 "Партнер Нефть" [12:51:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:51:21]line СНО: Общий режим [12:51:21]line Чек 130 21.10.2024 12:51 [12:51:21]line Смена: 535 ФФД: 1.0 [12:51:21]line ЗНМ: 0300000104 [12:51:21]line РНМ: 0000000000091764 [12:51:21]line Версия ККМ: 001 [12:51:21]line ФМ: 0000000000871759 [12:51:21]line ФД: 166019 [12:51:21]line ФПД: 62131987821195 [12:51:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125138&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166019&fm=62131987821195&tin=02508201610067®Number=0000000000091764&sum=50000 [12:51:22]OFD Sender: Processing packet 166019 [packets to send 48, broken 47] [12:51:22]ProducePacketName [12:51:22]name=ofd_packets/00166019 [12:51:22]OFD Sender: To server: pG, [12:51:22]CommunicateWithHost lk.salyk.kg:30040 [12:51:22]ConnectInit lk.salyk.kg [12:51:22]written 0, free lines is 4095 [12:51:22]Connected sock=7 [12:51:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BA 02 07 01 49 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 5A 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 88 02 00 35 04 06 00 38 82 3B 10 32 8B 90 05 53 66 E7 8A 79 53 [12:51:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 66 5A 47 00 C6 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 83 88 02 00 F4 03 04 00 C8 F4 15 67 B6 04 01 00 00 8D 86 C3 FC 72 83 FA 5E [12:51:22]CommunicateWithHost err = 0 [12:51:22]CheckOFDResponse [12:51:22]1017 (14) - 77093643461234 [12:51:22]1041 (16) - 0000000000871759 [12:51:22]1040 (4) - 166019 [12:51:22]1012 (4) - 21.10.2024 06:29 [12:51:22]1206 (1) - 0 [12:51:22]OFD Sender: Remove packet 166019 [12:51:22]ProducePacketName [12:51:22]name=ofd_packets/00166019 [12:51:22]NVStorageDeleteData [12:51:22]Write to MH i2c: 01 00 00 90 4F DF [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: 01 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: 01 07 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: 01 07 00 90 4F 00 00 00 00 00 D0 0C C2 [12:51:22]RasterBufferAndPrint [12:51:22]line [12:51:22]line [12:51:22]line [12:51:22]line [12:51:22]line [12:51:22]written 0, free lines is 3287 [12:51:22]MH_Cut [12:51:22]Write to MH i2c: D1 01 00 97 4F 01 B8 [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: D1 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: D1 01 00 [12:51:22]MH_I2C_Read... [12:51:22]Read from MH i2c: D1 01 00 97 4F 00 B7 [12:51:22]Write to MH i2c: 01 00 00 98 4F E7 [12:51:22]Write i2c OK [12:51:22]MH_I2C_Read... [12:51:23]OFD Sender: No OFD packet to send [12:51:23]*** Cut start [12:51:23]*** Partial cut [12:51:23]*** CUTSNS_PIN = 1 [12:51:23]*** CUTSNS_PIN = 0 [12:51:23]*** Brake cut motor [12:51:24]Read from MH i2c: 01 [12:51:24]MH_I2C_Read... [12:51:24]*** Stop cut motor [12:51:24]*** Cut end [12:51:24]Read from MH i2c: 01 07 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: 01 07 00 98 4F 00 00 00 00 00 FF 0F FC [12:51:24]process_action close_receipt done [12:51:24]requested_data is exist [12:51:24]produce_requested_data [12:51:24]requested_item fm.sn is exist - process it [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 11 00 00 [12:51:24]Write to MH i2c: E2 08 00 99 4F 80 11 00 00 00 00 00 00 62 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 17 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 17 00 99 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [12:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:51:24]wFMCommunicate OK [12:51:24]requested_item fd.num is exist - process it [12:51:24]SAM_PROTO_GetFieldsCounters [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 13 00 00 [12:51:24]Write to MH i2c: E2 08 00 9A 4F 80 13 00 00 00 00 00 00 65 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 62 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 62 00 9A 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:51:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 83 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:51:24]wFMCommunicate OK [12:51:24]SAM_PROTO_GetFieldsCounters done [12:51:24]requested_item shift.num is exist - process it [12:51:24]requested_item shift.opened is exist - process it [12:51:24]req_shift_opened [12:51:24]FM_GetShiftState [12:51:24]SAM_PROTO_GetShiftState [12:51:24]wFMCommunicate request_size=4 [12:51:24]MH_SAM_APDU [12:51:24]CAPDU: 80 13 01 00 [12:51:24]Write to MH i2c: E2 08 00 9B 4F 80 13 01 00 00 00 00 00 67 [12:51:24]Write i2c OK [12:51:24]MH_I2C_Read... [12:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:24]Read from MH i2c: E2 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 0E 00 [12:51:24]MH_I2C_Read... [12:51:24]Read from MH i2c: E2 0E 00 9B 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 70 [12:51:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:51:24]wFMCommunicate OK [12:51:24]SAM_PROTO_GetShiftState done [12:51:24]FM_GetShiftState done [12:51:24]req_shift_opened done [12:51:24]requested_item shift.open_date is exist - process it [12:51:24]req_shift_open_date [12:51:24]req_shift_open_date done [12:51:24]produce_requested_data done [12:51:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166019,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:51:24]process_action_free close_receipt [12:51:24]json_value_free [12:51:24]json_value_free done [12:51:24]process_json_proto returns [12:51:24]Send response to host [12:51:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166019,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:51:24]free response buf [12:51:24]execute_script done [12:51:24]execute_script returns [12:51:24]free content buf [12:51:24]Sock 6.Close socket [12:51:24]Sock 6.Thread stoped [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:17]accept exits with 5 [12:53:17]New connection [12:53:17]New thread 3066920292 created [12:53:17]Thread 3066776932 joined [12:53:17]Waiting for new connection... [12:53:17] Sock 5.Parse request [12:53:17]Sock 5.Check first char [12:53:17]Sock 5.First char is OK [12:53:17]request: POST /json_proto HTTP/1.0 [12:53:17]Method: POST [12:53:17]URL: /json_proto [12:53:17]Method is POST - this is cgi request [12:53:17]url: /json_proto [12:53:17]query_string will be loaded in cgi processing [12:53:17]execute_cgi json_proto POST (null) [12:53:17]execute_cgi path=json_proto method=POST [12:53:17]POST find Content-Length [12:53:17]Host: 172.17.53.195:8080 [12:53:17]Content-Length: 677 [12:53:17]Content-Type: application/json [12:53:17] [12:53:17]POST finish read [12:53:17]Found Content-Length = 677 [12:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.080, "sum" : 339.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 339.00, "payments": [ { "type": 0, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:17]execute_script... [12:53: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)220591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.080, "sum" : 339.85, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 339.00, "payments": [ { "type": 0, "sum" : 339.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:17]POST & json_proto [12:53:17]process_json_proto [12:53:17]json parsed OK: [12:53:17]protocol is kg_v1.0 [12:53:17]action value=close_receipt [12:53:17]process_action close_receipt [12:53:17]cmd_close_receipt [12:53:17]MH_GetDate [12:53:17]Write to MH i2c: F0 00 00 9C 4F DA [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: F0 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: F0 09 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: F0 09 00 9C 4F 00 CF 4E 16 67 21 48 4A 65 95 [12:53:17]GetLastDocTimeStamp 1729515098 [12:53:17]current date 1729515215 [12:53:17]FM_GetShiftState [12:53:17]SAM_PROTO_GetShiftState [12:53:17]wFMCommunicate request_size=4 [12:53:17]MH_SAM_APDU [12:53:17]CAPDU: 80 13 01 00 [12:53:17]Write to MH i2c: E2 08 00 9D 4F 80 13 01 00 00 00 00 00 69 [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:17]Read from MH i2c: E2 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 0E 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 0E 00 9D 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 72 [12:53:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:53:17]wFMCommunicate OK [12:53:17]SAM_PROTO_GetShiftState done [12:53:17]FM_GetShiftState done [12:53:17]opened in 1729470944 [12:53:17]opened+sec_in_day 1729557344 [12:53:17]quantity*price = 33985 [12:53:17]sum+1 = 33986 [12:53:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.85 ИТОГО: 339.00 Внесено: 340.00 СДАЧА: 1.00 НСП 1% : 3.01 НДС 12% : 36.09 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 131 21.10.2024 12:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166020 ФПД: 192831093915717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166020&fm=192831093915717&tin=02508201610067®Number=0000000000091764&sum=33900 [12:53:18]StoreToDocumentArchive [12:53:18]shift 535 fd 166020 [12:53:18]save to /storage/0535/doc_00166020 [12:53:18]save last doc name /storage/0535/doc_00166020 to /storage/kkm_last_doc_name [12:53:18]save OK [12:53:18]Clear old archive folders... [12:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:18]tlvbuf is 01B8E7F0 [12:53:18]SAM_PROTO_ClearQueue [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 09 00 00 [12:53:18]Write to MH i2c: E2 08 00 AA 4F 80 09 00 00 00 00 00 00 6B [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 AA 4F 00 90 00 6D [12:53:18]RAPDU: 90 00 [12:53:18]wFMCommunicate OK [12:53:18]SAM_PROTO_ClearQueue done [12:53:18]KKMCreateOFDPacket [12:53:18]OFDProtocolAddRootSTLVToBuf [12:53:18]FM_MakeSignedData [12:53:18]FM_MakeSignedData [12:53:18]SAM_PROTO_SignData [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 0D 01 02 [12:53:18]Write to MH i2c: E2 08 00 AB 4F 80 0D 01 02 00 00 00 00 73 [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 AB 4F 00 90 00 6E [12:53:18]RAPDU: 90 00 [12:53:18]wFMCommunicate OK [12:53:18]wFMCommunicate request_size=255 [12:53:18]MH_SAM_APDU [12:53: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 D8 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C1 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CF 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 88 02 00 35 04 06 00 AF [12:53:18]Write to MH i2c: E2 02 01 AC 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C1 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CF 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 88 02 00 35 04 06 00 AF 00 00 18 [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 AC 4F 00 90 00 6F [12:53:18]RAPDU: 90 00 [12:53:18]wFMCommunicate OK [12:53:18]wFMCommunicate request_size=10 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 0D 02 02 05 60 FC DA C0 45 [12:53:18]Write to MH i2c: E2 0D 00 AD 4F 80 0D 02 02 05 00 60 FC DA C0 45 00 00 BB [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 03 00 AD 4F 00 90 00 70 [12:53:18]RAPDU: 90 00 [12:53:18]wFMCommunicate OK [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 0D 03 02 [12:53:18]Write to MH i2c: E2 08 00 AE 4F 80 0D 03 02 00 00 00 00 78 [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 0B 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 0B 00 AE 4F 00 73 75 E8 D7 F4 0E 92 21 90 00 D5 [12:53:18]RAPDU: 73 75 E8 D7 F4 0E 92 21 90 00 [12:53:18]wFMCommunicate OK [12:53:18]SAM_PROTO_SignData done [12:53:18]FM_MakeSignedData done [12:53:18]CreateOFDProtocolMessage [12:53:18]wFMCommunicate request_size=4 [12:53:18]MH_SAM_APDU [12:53:18]CAPDU: 80 11 00 00 [12:53:18]Write to MH i2c: E2 08 00 AF 4F 80 11 00 00 00 00 00 00 78 [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:18]Read from MH i2c: E2 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 17 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: E2 17 00 AF 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D0 [12:53:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:18]wFMCommunicate OK [12:53:18]CreateOFDProtocolMessage done [12:53:18]OFDSenderStorePacket 166020 [12:53:18]StoreOFDPacket docnum=166020 [12:53:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AF 17 07 01 04 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 D8 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C1 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CF 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 88 02 00 35 04 06 00 AF 60 FC DA C0 45 73 75 E8 D7 F4 0E 92 21 [12:53:18]CheckFolder [12:53:18]dirname=/storage/ofd_packets [12:53:18]CheckFolder done [12:53:18]ProducePacketName [12:53:18]name=ofd_packets/00166020 [12:53:18]NVStorageSaveData ofd_packets/00166020 [12:53:18]File name is /storage/ofd_packets/00166020 [12:53:18]Write 301 bytes [12:53:18]NVStorageSaveData done [12:53:18]OFDSenderStorePacket done [12:53:18]KKMCreateOFDPacket done [12:53:18]NVStorageSaveData kkm_last_timestamp [12:53:18]File name is /storage/kkm_last_timestamp [12:53:18]Write 4 bytes [12:53:18]NVStorageSaveData done [12:53:18]ExternCall_PrintAddStr [12:53:18]wPrintStart [12:53:18]Write to MH i2c: 01 00 00 B0 4F FF [12:53:18]Write i2c OK [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: 01 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: 01 07 00 [12:53:18]MH_I2C_Read... [12:53:18]Read from MH i2c: 01 07 00 B0 4F 00 00 00 00 00 FF 0F 14 [12:53:18]RasterBufferAndPrint [12:53:18]line Счет N : (1)220591 [12:53:18]line ИНН: 02508201610067 [12:53:18]line Контрольно-Кассовый Чек [12:53:18]line ПРОДАЖА [12:53:18]line ТРК (МРК, ГНК) : 43 [12:53:18]line Товар: 2710124130 [12:53:18]line Аи-92-К-5 [12:53:18]line 5.080 * 66.90 [12:53:18]line = 339.85 [12:53:18]line НДС 12% НСП 1% [12:53:18]line > о реализуемом товаре [12:53:18]line ОКРУГЛЕНИЕ: -0.85 [12:53:18]line ИТОГО: 339.00 [12:53:18]line Внесено: 340.00 [12:53:18]line СДАЧА: 1.00 [12:53:18]line НСП 1% : 3.01 [12:53:18]line НДС 12% : 36.09 [12:53:18]line Наличными: 339.00 [12:53:18]line Безнал.: 0.00 [12:53:18]line Место: АЗС № 161 "Партнер Нефть" [12:53:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:53:18]line СНО: Общий режим [12:53:18]line Чек 131 21.10.2024 12:53 [12:53:18]line Смена: 535 ФФД: 1.0 [12:53:18]line ЗНМ: 0300000104 [12:53:18]line РНМ: 0000000000091764 [12:53:18]line Версия ККМ: 001 [12:53:18]line ФМ: 0000000000871759 [12:53:18]line ФД: 166020 [12:53:18]line ФПД: 192831093915717 [12:53:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125335&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166020&fm=192831093915717&tin=02508201610067®Number=0000000000091764&sum=33900 [12:53:19]OFD Sender: Processing packet 166020 [packets to send 48, broken 47] [12:53:19]ProducePacketName [12:53:19]name=ofd_packets/00166020 [12:53:19]OFD Sender: To server: pG, [12:53:19]CommunicateWithHost lk.salyk.kg:30040 [12:53:19]ConnectInit lk.salyk.kg [12:53:19]written 0, free lines is 4095 [12:53:19]Connected sock=7 [12:53:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AF 17 07 01 04 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 D8 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C1 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CF 4E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 88 02 00 35 04 06 00 AF 60 FC DA C0 45 73 75 E8 D7 F4 0E 92 21 [12:53:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 65 47 00 C3 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 84 88 02 00 F4 03 04 00 3D F5 15 67 B6 04 01 00 00 39 D0 EB F5 00 7A 88 65 [12:53:19]CommunicateWithHost err = 0 [12:53:19]CheckOFDResponse [12:53:19]1017 (14) - 77093643461234 [12:53:19]1041 (16) - 0000000000871759 [12:53:19]1040 (4) - 166020 [12:53:19]1012 (4) - 21.10.2024 06:31 [12:53:19]1206 (1) - 0 [12:53:19]OFD Sender: Remove packet 166020 [12:53:19]ProducePacketName [12:53:19]name=ofd_packets/00166020 [12:53:19]NVStorageDeleteData [12:53:19]Write to MH i2c: 01 00 00 DB 4F 2A [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: 01 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: 01 07 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: 01 07 00 DB 4F 00 00 00 00 00 CD 0C 0A [12:53:19]RasterBufferAndPrint [12:53:19]line [12:53:19]line [12:53:19]line [12:53:19]line [12:53:19]line [12:53:19]written 0, free lines is 3287 [12:53:19]MH_Cut [12:53:19]Write to MH i2c: D1 01 00 E2 4F 01 03 [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: D1 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: D1 01 00 [12:53:19]MH_I2C_Read... [12:53:19]Read from MH i2c: D1 01 00 E2 4F 00 02 [12:53:19]Write to MH i2c: 01 00 00 E3 4F 32 [12:53:19]Write i2c OK [12:53:19]MH_I2C_Read... [12:53:19]OFD Sender: No OFD packet to send [12:53:20]*** Cut start [12:53:20]*** Partial cut [12:53:20]*** CUTSNS_PIN = 1 [12:53:20]*** CUTSNS_PIN = 0 [12:53:20]*** Brake cut motor [12:53:21]Read from MH i2c: 01 [12:53:21]MH_I2C_Read... [12:53:21]*** Stop cut motor [12:53:21]*** Cut end [12:53:21]Read from MH i2c: 01 07 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: 01 07 00 E3 4F 00 00 00 00 00 FF 0F 47 [12:53:21]process_action close_receipt done [12:53:21]requested_data is exist [12:53:21]produce_requested_data [12:53:21]requested_item fm.sn is exist - process it [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 11 00 00 [12:53:21]Write to MH i2c: E2 08 00 E4 4F 80 11 00 00 00 00 00 00 AD [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 17 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 17 00 E4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [12:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:53:21]wFMCommunicate OK [12:53:21]requested_item fd.num is exist - process it [12:53:21]SAM_PROTO_GetFieldsCounters [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 13 00 00 [12:53:21]Write to MH i2c: E2 08 00 E5 4F 80 13 00 00 00 00 00 00 B0 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 62 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 62 00 E5 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [12:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 84 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:21]wFMCommunicate OK [12:53:21]SAM_PROTO_GetFieldsCounters done [12:53:21]requested_item shift.num is exist - process it [12:53:21]requested_item shift.opened is exist - process it [12:53:21]req_shift_opened [12:53:21]FM_GetShiftState [12:53:21]SAM_PROTO_GetShiftState [12:53:21]wFMCommunicate request_size=4 [12:53:21]MH_SAM_APDU [12:53:21]CAPDU: 80 13 01 00 [12:53:21]Write to MH i2c: E2 08 00 E6 4F 80 13 01 00 00 00 00 00 B2 [12:53:21]Write i2c OK [12:53:21]MH_I2C_Read... [12:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:21]Read from MH i2c: E2 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 0E 00 [12:53:21]MH_I2C_Read... [12:53:21]Read from MH i2c: E2 0E 00 E6 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BB [12:53:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:53:21]wFMCommunicate OK [12:53:21]SAM_PROTO_GetShiftState done [12:53:21]FM_GetShiftState done [12:53:21]req_shift_opened done [12:53:21]requested_item shift.open_date is exist - process it [12:53:21]req_shift_open_date [12:53:21]req_shift_open_date done [12:53:21]produce_requested_data done [12:53:21]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166020,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:53:21]process_action_free close_receipt [12:53:21]json_value_free [12:53:21]json_value_free done [12:53:21]process_json_proto returns [12:53:21]Send response to host [12:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166020,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:53:21]free response buf [12:53:21]execute_script done [12:53:21]execute_script returns [12:53:21]free content buf [12:53:21]Sock 5.Close socket [12:53:21]Sock 5.Thread stoped [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:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:35]accept exits with 6 [12:54:35]New connection [12:54:35]New thread 3066776932 created [12:54:35]Thread 3066920292 joined [12:54:35]Waiting for new connection... [12:54:35] Sock 6.Parse request [12:54:35]Sock 6.Check first char [12:54:35]Sock 6.First char is OK [12:54:35]request: POST /json_proto HTTP/1.0 [12:54:35]Method: POST [12:54:35]URL: /json_proto [12:54:35]Method is POST - this is cgi request [12:54:35]url: /json_proto [12:54:35]query_string will be loaded in cgi processing [12:54:35]execute_cgi json_proto POST (null) [12:54:35]execute_cgi path=json_proto method=POST [12:54:35]POST find Content-Length [12:54:35]Host: 172.17.53.195:8080 [12:54:35]Content-Length: 677 [12:54:35]Content-Type: application/json [12:54:35] [12:54:35]POST finish read [12:54:35]Found Content-Length = 677 [12:54:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:35]execute_script... [12:54: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)220592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:54:35]POST & json_proto [12:54:35]process_json_proto [12:54:35]json parsed OK: [12:54:35]protocol is kg_v1.0 [12:54:35]action value=close_receipt [12:54:35]process_action close_receipt [12:54:35]cmd_close_receipt [12:54:35]MH_GetDate [12:54:35]Write to MH i2c: F0 00 00 E7 4F 25 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: F0 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: F0 09 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: F0 09 00 E7 4F 00 1D 4F 16 67 21 48 4A 65 2F [12:54:35]GetLastDocTimeStamp 1729515215 [12:54:35]current date 1729515293 [12:54:35]FM_GetShiftState [12:54:35]SAM_PROTO_GetShiftState [12:54:35]wFMCommunicate request_size=4 [12:54:35]MH_SAM_APDU [12:54:35]CAPDU: 80 13 01 00 [12:54:35]Write to MH i2c: E2 08 00 E8 4F 80 13 01 00 00 00 00 00 B4 [12:54:35]Write i2c OK [12:54:35]MH_I2C_Read... [12:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:35]Read from MH i2c: E2 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 0E 00 [12:54:35]MH_I2C_Read... [12:54:35]Read from MH i2c: E2 0E 00 E8 4F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BD [12:54:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:54:35]wFMCommunicate OK [12:54:35]SAM_PROTO_GetShiftState done [12:54:35]FM_GetShiftState done [12:54:35]opened in 1729470944 [12:54:35]opened+sec_in_day 1729557344 [12:54:35]quantity*price = 20003 [12:54:35]sum+1 = 20004 [12:54:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 132 21.10.2024 12:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166021 ФПД: 107649700272737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166021&fm=107649700272737&tin=02508201610067®Number=0000000000091764&sum=20000 [12:54:36]StoreToDocumentArchive [12:54:36]shift 535 fd 166021 [12:54:36]save to /storage/0535/doc_00166021 [12:54:36]save last doc name /storage/0535/doc_00166021 to /storage/kkm_last_doc_name [12:54:36]save OK [12:54:36]Clear old archive folders... [12:54:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:36]tlvbuf is 01839E70 [12:54:36]SAM_PROTO_ClearQueue [12:54:36]wFMCommunicate request_size=4 [12:54:36]MH_SAM_APDU [12:54:36]CAPDU: 80 09 00 00 [12:54:36]Write to MH i2c: E2 08 00 F5 4F 80 09 00 00 00 00 00 00 B6 [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:36]Read from MH i2c: E2 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 03 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 03 00 F5 4F 00 90 00 B8 [12:54:36]RAPDU: 90 00 [12:54:36]wFMCommunicate OK [12:54:36]SAM_PROTO_ClearQueue done [12:54:36]KKMCreateOFDPacket [12:54:36]OFDProtocolAddRootSTLVToBuf [12:54:36]FM_MakeSignedData [12:54:36]FM_MakeSignedData [12:54:36]SAM_PROTO_SignData [12:54:36]wFMCommunicate request_size=4 [12:54:36]MH_SAM_APDU [12:54:36]CAPDU: 80 0D 01 02 [12:54:36]Write to MH i2c: E2 08 00 F6 4F 80 0D 01 02 00 00 00 00 BE [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:36]Read from MH i2c: E2 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 03 00 [12:54:36]MH_I2C_Read... [12:54:36]Read from MH i2c: E2 03 00 F6 4F 00 90 00 B9 [12:54:36]RAPDU: 90 00 [12:54:36]wFMCommunicate OK [12:54:36]wFMCommunicate request_size=255 [12:54:36]MH_SAM_APDU [12:54:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 1D 4F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 88 02 00 35 04 06 00 61 [12:54:36]Write to MH i2c: E2 02 01 F7 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 1D 4F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 88 02 00 35 04 06 00 61 00 00 0C [12:54:36]Write i2c OK [12:54:36]MH_I2C_Read... [12:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:37]Read from MH i2c: E2 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 03 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 03 00 F7 4F 00 90 00 BA [12:54:37]RAPDU: 90 00 [12:54:37]wFMCommunicate OK [12:54:37]wFMCommunicate request_size=10 [12:54:37]MH_SAM_APDU [12:54:37]CAPDU: 80 0D 02 02 05 E8 26 25 1A 61 [12:54:37]Write to MH i2c: E2 0D 00 F8 4F 80 0D 02 02 05 00 E8 26 25 1A 61 00 00 79 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:37]Read from MH i2c: E2 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 03 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 03 00 F8 4F 00 90 00 BB [12:54:37]RAPDU: 90 00 [12:54:37]wFMCommunicate OK [12:54:37]wFMCommunicate request_size=4 [12:54:37]MH_SAM_APDU [12:54:37]CAPDU: 80 0D 03 02 [12:54:37]Write to MH i2c: E2 08 00 F9 4F 80 0D 03 02 00 00 00 00 C3 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:37]Read from MH i2c: E2 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 0B 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 0B 00 F9 4F 00 81 2A E6 8E 99 93 D2 BA 90 00 9B [12:54:37]RAPDU: 81 2A E6 8E 99 93 D2 BA 90 00 [12:54:37]wFMCommunicate OK [12:54:37]SAM_PROTO_SignData done [12:54:37]FM_MakeSignedData done [12:54:37]CreateOFDProtocolMessage [12:54:37]wFMCommunicate request_size=4 [12:54:37]MH_SAM_APDU [12:54:37]CAPDU: 80 11 00 00 [12:54:37]Write to MH i2c: E2 08 00 FA 4F 80 11 00 00 00 00 00 00 C3 [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:37]Read from MH i2c: E2 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 17 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: E2 17 00 FA 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [12:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:54:37]wFMCommunicate OK [12:54:37]CreateOFDProtocolMessage done [12:54:37]OFDSenderStorePacket 166021 [12:54:37]StoreOFDPacket docnum=166021 [12:54:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 E9 07 01 43 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 1D 4F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 88 02 00 35 04 06 00 61 E8 26 25 1A 61 81 2A E6 8E 99 93 D2 BA [12:54:37]CheckFolder [12:54:37]dirname=/storage/ofd_packets [12:54:37]CheckFolder done [12:54:37]ProducePacketName [12:54:37]name=ofd_packets/00166021 [12:54:37]NVStorageSaveData ofd_packets/00166021 [12:54:37]File name is /storage/ofd_packets/00166021 [12:54:37]Write 301 bytes [12:54:37]NVStorageSaveData done [12:54:37]OFDSenderStorePacket done [12:54:37]KKMCreateOFDPacket done [12:54:37]NVStorageSaveData kkm_last_timestamp [12:54:37]File name is /storage/kkm_last_timestamp [12:54:37]Write 4 bytes [12:54:37]NVStorageSaveData done [12:54:37]ExternCall_PrintAddStr [12:54:37]wPrintStart [12:54:37]Write to MH i2c: 01 00 00 FB 4F 4A [12:54:37]Write i2c OK [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: 01 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: 01 07 00 [12:54:37]MH_I2C_Read... [12:54:37]Read from MH i2c: 01 07 00 FB 4F 00 00 00 00 00 FF 0F 5F [12:54:37]RasterBufferAndPrint [12:54:37]line Счет N : (1)220592 [12:54:37]line ИНН: 02508201610067 [12:54:37]line Контрольно-Кассовый Чек [12:54:37]line ПРОДАЖА [12:54:37]line ТРК (МРК, ГНК) : 23 [12:54:37]line Товар: 2710124130 [12:54:37]line Аи-92-К-5 [12:54:37]line 2.990 * 66.90 [12:54:37]line = 200.03 [12:54:37]line НДС 12% НСП 1% [12:54:37]line > о реализуемом товаре [12:54:37]line ОКРУГЛЕНИЕ: -0.03 [12:54:37]line ИТОГО: 200.00 [12:54:37]line Внесено: 200.00 [12:54:37]line СДАЧА: 0.00 [12:54:37]line НСП 1% : 1.77 [12:54:37]line НДС 12% : 21.24 [12:54:37]line Наличными: 200.00 [12:54:37]line Безнал.: 0.00 [12:54:37]line Место: АЗС № 161 "Партнер Нефть" [12:54:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:54:37]line СНО: Общий режим [12:54:37]line Чек 132 21.10.2024 12:54 [12:54:37]line Смена: 535 ФФД: 1.0 [12:54:37]line ЗНМ: 0300000104 [12:54:37]line РНМ: 0000000000091764 [12:54:37]line Версия ККМ: 001 [12:54:37]line ФМ: 0000000000871759 [12:54:37]line ФД: 166021 [12:54:37]line ФПД: 107649700272737 [12:54:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T125453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166021&fm=107649700272737&tin=02508201610067®Number=0000000000091764&sum=20000 [12:54:37]OFD Sender: Processing packet 166021 [packets to send 48, broken 47] [12:54:37]ProducePacketName [12:54:37]name=ofd_packets/00166021 [12:54:37]OFD Sender: To server: pG, [12:54:37]CommunicateWithHost lk.salyk.kg:30040 [12:54:37]ConnectInit lk.salyk.kg [12:54:37]written 0, free lines is 4095 [12:54:37]Connected sock=7 [12:54:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 E9 07 01 43 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 1D 4F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 88 02 00 35 04 06 00 61 E8 26 25 1A 61 81 2A E6 8E 99 93 D2 BA [12:54:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8A 4F 47 00 9E E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 85 88 02 00 F4 03 04 00 8C F5 15 67 B6 04 01 00 00 B5 09 A5 52 F6 34 C1 B3 [12:54:37]CommunicateWithHost err = 0 [12:54:37]CheckOFDResponse [12:54:37]1017 (14) - 77093643461234 [12:54:37]1041 (16) - 0000000000871759 [12:54:37]1040 (4) - 166021 [12:54:37]1012 (4) - 21.10.2024 06:32 [12:54:37]1206 (1) - 0 [12:54:37]OFD Sender: Remove packet 166021 [12:54:37]ProducePacketName [12:54:37]name=ofd_packets/00166021 [12:54:37]NVStorageDeleteData [12:54:38]Write to MH i2c: 01 00 00 26 50 76 [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: 01 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: 01 07 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: 01 07 00 26 50 00 00 00 00 00 BE 0C 47 [12:54:38]RasterBufferAndPrint [12:54:38]line [12:54:38]line [12:54:38]line [12:54:38]line [12:54:38]line [12:54:38]written 0, free lines is 3272 [12:54:38]MH_Cut [12:54:38]Write to MH i2c: D1 01 00 2D 50 01 4F [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: D1 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: D1 01 00 [12:54:38]MH_I2C_Read... [12:54:38]Read from MH i2c: D1 01 00 2D 50 00 4E [12:54:38]Write to MH i2c: 01 00 00 2E 50 7E [12:54:38]Write i2c OK [12:54:38]MH_I2C_Read... [12:54:38]OFD Sender: No OFD packet to send [12:54:38]*** Cut start [12:54:38]*** Partial cut [12:54:38]*** CUTSNS_PIN = 1 [12:54:38]*** CUTSNS_PIN = 0 [12:54:39]*** Brake cut motor [12:54:39]Read from MH i2c: 01 [12:54:39]MH_I2C_Read... [12:54:39]*** Stop cut motor [12:54:39]*** Cut end [12:54:39]Read from MH i2c: 01 07 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: 01 07 00 2E 50 00 00 00 00 00 FF 0F 93 [12:54:39]process_action close_receipt done [12:54:39]requested_data is exist [12:54:39]produce_requested_data [12:54:39]requested_item fm.sn is exist - process it [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 11 00 00 [12:54:39]Write to MH i2c: E2 08 00 2F 50 80 11 00 00 00 00 00 00 F9 [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 17 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 17 00 2F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 51 [12:54:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:54:39]wFMCommunicate OK [12:54:39]requested_item fd.num is exist - process it [12:54:39]SAM_PROTO_GetFieldsCounters [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 13 00 00 [12:54:39]Write to MH i2c: E2 08 00 30 50 80 13 00 00 00 00 00 00 FC [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 62 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 62 00 30 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:54:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 85 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:39]wFMCommunicate OK [12:54:39]SAM_PROTO_GetFieldsCounters done [12:54:39]requested_item shift.num is exist - process it [12:54:39]requested_item shift.opened is exist - process it [12:54:39]req_shift_opened [12:54:39]FM_GetShiftState [12:54:39]SAM_PROTO_GetShiftState [12:54:39]wFMCommunicate request_size=4 [12:54:39]MH_SAM_APDU [12:54:39]CAPDU: 80 13 01 00 [12:54:39]Write to MH i2c: E2 08 00 31 50 80 13 01 00 00 00 00 00 FE [12:54:39]Write i2c OK [12:54:39]MH_I2C_Read... [12:54:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:39]Read from MH i2c: E2 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 0E 00 [12:54:39]MH_I2C_Read... [12:54:39]Read from MH i2c: E2 0E 00 31 50 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 07 [12:54:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:54:39]wFMCommunicate OK [12:54:39]SAM_PROTO_GetShiftState done [12:54:39]FM_GetShiftState done [12:54:39]req_shift_opened done [12:54:39]requested_item shift.open_date is exist - process it [12:54:39]req_shift_open_date [12:54:39]req_shift_open_date done [12:54:39]produce_requested_data done [12:54:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166021,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:54:39]process_action_free close_receipt [12:54:39]json_value_free [12:54:39]json_value_free done [12:54:39]process_json_proto returns [12:54:39]Send response to host [12:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166021,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:54:39]free response buf [12:54:39]execute_script done [12:54:39]execute_script returns [12:54:39]free content buf [12:54:39]Sock 6.Close socket [12:54:39]Sock 6.Thread stoped [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56:48]OFD Sender: No OFD packet to send [12:56:53]OFD Sender: No OFD packet to send [12:56:58]OFD Sender: No OFD packet to send [12:57:03]OFD Sender: No OFD packet to send [12:57:08]OFD Sender: No OFD packet to send [12:57:13]OFD Sender: No OFD packet to send [12:57:18]OFD Sender: No OFD packet to send [12:57:23]OFD Sender: No OFD packet to send [12:57:28]OFD Sender: No OFD packet to send [12:57:33]OFD Sender: No OFD packet to send [12:57:38]OFD Sender: No OFD packet to send [12:57:43]OFD Sender: No OFD packet to send [12:57:48]OFD Sender: No OFD packet to send [12:57:53]OFD Sender: No OFD packet to send [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:46]accept exits with 5 [12:59:46]New connection [12:59:46]New thread 3066920292 created [12:59:46]Thread 3066776932 joined [12:59:46]Waiting for new connection... [12:59:46] Sock 5.Parse request [12:59:46]Sock 5.Check first char [12:59:46]Sock 5.First char is OK [12:59:46]request: POST /json_proto HTTP/1.0 [12:59:46]Method: POST [12:59:46]URL: /json_proto [12:59:46]Method is POST - this is cgi request [12:59:46]url: /json_proto [12:59:46]query_string will be loaded in cgi processing [12:59:46]execute_cgi json_proto POST (null) [12:59:46]execute_cgi path=json_proto method=POST [12:59:46]POST find Content-Length [12:59:46]Host: 172.17.53.195:8080 [12:59:46]Content-Length: 677 [12:59:46]Content-Type: application/json [12:59:46] [12:59:46]POST finish read [12:59:46]Found Content-Length = 677 [12:59:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "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" ] } } [12:59:46]execute_script... [12:59: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)220593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "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" ] } } [12:59:46]POST & json_proto [12:59:46]process_json_proto [12:59:46]json parsed OK: [12:59:46]protocol is kg_v1.0 [12:59:46]action value=close_receipt [12:59:46]process_action close_receipt [12:59:46]cmd_close_receipt [12:59:46]MH_GetDate [12:59:46]Write to MH i2c: F0 00 00 32 50 71 [12:59:46]Write i2c OK [12:59:46]MH_I2C_Read... [12:59:46]Read from MH i2c: F0 [12:59:46]MH_I2C_Read... [12:59:46]Read from MH i2c: F0 09 00 [12:59:46]MH_I2C_Read... [12:59:46]Read from MH i2c: F0 09 00 32 50 00 54 50 16 67 21 48 4A 65 B3 [12:59:46]GetLastDocTimeStamp 1729515293 [12:59:46]current date 1729515604 [12:59:46]FM_GetShiftState [12:59:46]SAM_PROTO_GetShiftState [12:59:46]wFMCommunicate request_size=4 [12:59:46]MH_SAM_APDU [12:59:46]CAPDU: 80 13 01 00 [12:59:46]Write to MH i2c: E2 08 00 33 50 80 13 01 00 00 00 00 00 00 [12:59:46]Write i2c OK [12:59:46]MH_I2C_Read... [12:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:46]Read from MH i2c: E2 [12:59:46]MH_I2C_Read... [12:59:46]Read from MH i2c: E2 0E 00 [12:59:46]MH_I2C_Read... [12:59:46]Read from MH i2c: E2 0E 00 33 50 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 09 [12:59:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:59:46]wFMCommunicate OK [12:59:46]SAM_PROTO_GetShiftState done [12:59:46]FM_GetShiftState done [12:59:46]opened in 1729470944 [12:59:46]opened+sec_in_day 1729557344 [12:59:46]quantity*price = 65026 [12:59:46]sum+1 = 65028 [12:59:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 133 21.10.2024 13:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166022 ФПД: 184606838754399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166022&fm=184606838754399&tin=02508201610067®Number=0000000000091764&sum=65000 [12:59:47]StoreToDocumentArchive [12:59:47]shift 535 fd 166022 [12:59:47]save to /storage/0535/doc_00166022 [12:59:47]save last doc name /storage/0535/doc_00166022 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 01469F30 [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 40 50 80 09 00 00 00 00 00 00 02 [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 40 50 00 90 00 04 [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 41 50 80 0D 01 02 00 00 00 00 0A [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 41 50 00 90 00 05 [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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 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 85 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 88 02 00 35 04 06 00 A7 [12:59:47]Write to MH i2c: E2 02 01 42 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 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 85 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 88 02 00 35 04 06 00 A7 00 00 09 [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 42 50 00 90 00 06 [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 E6 21 0C 0C 5F [12:59:47]Write to MH i2c: E2 0D 00 43 50 80 0D 02 02 05 00 E6 21 0C 0C 5F 00 00 95 [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:48]Read from MH i2c: E2 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 03 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 03 00 43 50 00 90 00 07 [12:59:48]RAPDU: 90 00 [12:59:48]wFMCommunicate OK [12:59:48]wFMCommunicate request_size=4 [12:59:48]MH_SAM_APDU [12:59:48]CAPDU: 80 0D 03 02 [12:59:48]Write to MH i2c: E2 08 00 44 50 80 0D 03 02 00 00 00 00 0F [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:48]Read from MH i2c: E2 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 0B 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 0B 00 44 50 00 22 E2 6F 26 B6 45 24 1F 90 00 E7 [12:59:48]RAPDU: 22 E2 6F 26 B6 45 24 1F 90 00 [12:59:48]wFMCommunicate OK [12:59:48]SAM_PROTO_SignData done [12:59:48]FM_MakeSignedData done [12:59:48]CreateOFDProtocolMessage [12:59:48]wFMCommunicate request_size=4 [12:59:48]MH_SAM_APDU [12:59:48]CAPDU: 80 11 00 00 [12:59:48]Write to MH i2c: E2 08 00 45 50 80 11 00 00 00 00 00 00 0F [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:48]Read from MH i2c: E2 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 17 00 [12:59:48]MH_I2C_Read... [12:59:48]Read from MH i2c: E2 17 00 45 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [12:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:59:48]wFMCommunicate OK [12:59:48]CreateOFDProtocolMessage done [12:59:48]OFDSenderStorePacket 166022 [12:59:48]StoreOFDPacket docnum=166022 [12:59:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 08 04 07 01 FA 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 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 85 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 88 02 00 35 04 06 00 A7 E6 21 0C 0C 5F 22 E2 6F 26 B6 45 24 1F [12:59:48]CheckFolder [12:59:48]dirname=/storage/ofd_packets [12:59:48]CheckFolder done [12:59:48]ProducePacketName [12:59:48]name=ofd_packets/00166022 [12:59:48]NVStorageSaveData ofd_packets/00166022 [12:59:48]File name is /storage/ofd_packets/00166022 [12:59:48]Write 301 bytes [12:59:48]NVStorageSaveData done [12:59:48]OFDSenderStorePacket done [12:59:48]KKMCreateOFDPacket done [12:59:48]NVStorageSaveData kkm_last_timestamp [12:59:48]File name is /storage/kkm_last_timestamp [12:59:48]Write 4 bytes [12:59:48]NVStorageSaveData done [12:59:48]ExternCall_PrintAddStr [12:59:48]wPrintStart [12:59:48]Write to MH i2c: 01 00 00 46 50 96 [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 46 50 00 00 00 00 00 FF 0F AB [12:59:48]RasterBufferAndPrint [12:59:48]line Счет N : (1)220593 [12:59:48]line ИНН: 02508201610067 [12:59:48]line Контрольно-Кассовый Чек [12:59:48]line ПРОДАЖА [12:59:48]line ТРК (МРК, ГНК) : 33 [12:59:48]line Товар: 2710124130 [12:59:48]line Аи-92-К-5 [12:59:48]line 9.720 * 66.90 [12:59:48]line = 650.27 [12:59:48]line НДС 12% НСП 1% [12:59:48]line > о реализуемом товаре [12:59:48]line ОКРУГЛЕНИЕ: -0.27 [12:59:48]line ИТОГО: 650.00 [12:59:48]line Внесено: 650.00 [12:59:48]line СДАЧА: 0.00 [12:59:48]line НСП 1% : 5.75 [12:59:48]line НДС 12% : 69.05 [12:59:48]line Наличными: 650.00 [12:59:48]line Безнал.: 0.00 [12:59:48]line Место: АЗС № 161 "Партнер Нефть" [12:59:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [12:59:48]line СНО: Общий режим [12:59:48]line Чек 133 21.10.2024 13:00 [12:59:48]line Смена: 535 ФФД: 1.0 [12:59:48]line ЗНМ: 0300000104 [12:59:48]line РНМ: 0000000000091764 [12:59:48]line Версия ККМ: 001 [12:59:48]line ФМ: 0000000000871759 [12:59:48]line ФД: 166022 [12:59:48]line ФПД: 184606838754399 [12:59:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130004&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166022&fm=184606838754399&tin=02508201610067®Number=0000000000091764&sum=65000 [12:59:48]OFD Sender: Processing packet 166022 [packets to send 48, broken 47] [12:59:48]ProducePacketName [12:59:48]name=ofd_packets/00166022 [12:59:48]OFD Sender: To server: pG, [12:59:48]CommunicateWithHost lk.salyk.kg:30040 [12:59:48]ConnectInit lk.salyk.kg [12:59:48]written 0, free lines is 4095 [12:59:48]Connected sock=6 [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 35 39 0F 01 00 00 08 04 07 01 FA 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 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 85 00 00 00 F4 03 04 00 54 50 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 88 02 00 35 04 06 00 A7 E6 21 0C 0C 5F 22 E2 6F 26 B6 45 24 1F [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 35 39 4F 00 00 00 A4 D9 47 00 E8 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 86 88 02 00 F4 03 04 00 C3 F6 15 67 B6 04 01 00 00 CB F0 27 F9 72 60 F3 8F [12:59:48]CommunicateWithHost err = 0 [12:59:48]CheckOFDResponse [12:59:48]1017 (14) - 77093643461234 [12:59:48]1041 (16) - 0000000000871759 [12:59:48]1040 (4) - 166022 [12:59:48]1012 (4) - 21.10.2024 06:37 [12:59:48]1206 (1) - 0 [12:59:48]OFD Sender: Remove packet 166022 [12:59:48]ProducePacketName [12:59:48]name=ofd_packets/00166022 [12:59:48]NVStorageDeleteData [12:59:48]Write to MH i2c: 01 00 00 71 50 C1 [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 71 50 00 00 00 00 00 D1 0C A5 [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 3287 [12:59:48]MH_Cut [12:59:48]Write to MH i2c: D1 01 00 78 50 01 9A [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 78 50 00 99 [12:59:48]Write to MH i2c: 01 00 00 79 50 C9 [12:59:48]Write i2c OK [12:59:48]MH_I2C_Read... [12:59:49]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:50]Read from MH i2c: 01 [12:59:50]MH_I2C_Read... [12:59:50]*** Stop cut motor [12:59:50]*** Cut end [12:59:50]Read from MH i2c: 01 07 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: 01 07 00 79 50 00 00 00 00 00 FF 0F DE [12:59:50]process_action close_receipt done [12:59:50]requested_data is exist [12:59:50]produce_requested_data [12:59:50]requested_item fm.sn is exist - process it [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 11 00 00 [12:59:50]Write to MH i2c: E2 08 00 7A 50 80 11 00 00 00 00 00 00 44 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 17 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 17 00 7A 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9C [12:59:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [12:59:50]wFMCommunicate OK [12:59:50]requested_item fd.num is exist - process it [12:59:50]SAM_PROTO_GetFieldsCounters [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 13 00 00 [12:59:50]Write to MH i2c: E2 08 00 7B 50 80 13 00 00 00 00 00 00 47 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 62 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 62 00 7B 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:59:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 86 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:50]wFMCommunicate OK [12:59:50]SAM_PROTO_GetFieldsCounters done [12:59:50]requested_item shift.num is exist - process it [12:59:50]requested_item shift.opened is exist - process it [12:59:50]req_shift_opened [12:59:50]FM_GetShiftState [12:59:50]SAM_PROTO_GetShiftState [12:59:50]wFMCommunicate request_size=4 [12:59:50]MH_SAM_APDU [12:59:50]CAPDU: 80 13 01 00 [12:59:50]Write to MH i2c: E2 08 00 7C 50 80 13 01 00 00 00 00 00 49 [12:59:50]Write i2c OK [12:59:50]MH_I2C_Read... [12:59:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:50]Read from MH i2c: E2 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 0E 00 [12:59:50]MH_I2C_Read... [12:59:50]Read from MH i2c: E2 0E 00 7C 50 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 52 [12:59:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [12:59:50]wFMCommunicate OK [12:59:50]SAM_PROTO_GetShiftState done [12:59:50]FM_GetShiftState done [12:59:50]req_shift_opened done [12:59:50]requested_item shift.open_date is exist - process it [12:59:50]req_shift_open_date [12:59:50]req_shift_open_date done [12:59:50]produce_requested_data done [12:59:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166022,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [12:59:50]process_action_free close_receipt [12:59:50]json_value_free [12:59:50]json_value_free done [12:59:50]process_json_proto returns [12:59:50]Send response to host [12:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166022,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [12:59:50]free response buf [12:59:50]execute_script done [12:59:50]execute_script returns [12:59:50]free content buf [12:59:50]Sock 5.Close socket [12:59:50]Sock 5.Thread stoped [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:21]accept exits with 7 [13:05:21]New connection [13:05:21]New thread 3066776932 created [13:05:21]Thread 3066920292 joined [13:05:21]Waiting for new connection... [13:05:21] Sock 7.Parse request [13:05:21]Sock 7.Check first char [13:05:21]Sock 7.First char is OK [13:05:21]request: POST /json_proto HTTP/1.0 [13:05:21]Method: POST [13:05:21]URL: /json_proto [13:05:21]Method is POST - this is cgi request [13:05:21]url: /json_proto [13:05:21]query_string will be loaded in cgi processing [13:05:21]execute_cgi json_proto POST (null) [13:05:21]execute_cgi path=json_proto method=POST [13:05:21]POST find Content-Length [13:05:21]Host: 172.17.53.195:8080 [13:05:21]Content-Length: 767 [13:05:21]Content-Type: application/json [13:05:21] [13:05:21]POST finish read [13:05:21]Found Content-Length = 767 [13:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.700, "sum" : 849.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 849.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:21]execute_script... [13:05:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.700, "sum" : 849.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 849.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:21]POST & json_proto [13:05:21]process_json_proto [13:05:21]json parsed OK: [13:05:21]protocol is kg_v1.0 [13:05:21]action value=close_receipt [13:05:21]process_action close_receipt [13:05:21]cmd_close_receipt [13:05:21]MH_GetDate [13:05:21]Write to MH i2c: F0 00 00 7D 50 BC [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: F0 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: F0 09 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: F0 09 00 7D 50 00 A4 51 16 67 21 48 4A 65 4F [13:05:21]GetLastDocTimeStamp 1729515604 [13:05:21]current date 1729515940 [13:05:21]FM_GetShiftState [13:05:21]SAM_PROTO_GetShiftState [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 13 01 00 [13:05:21]Write to MH i2c: E2 08 00 7E 50 80 13 01 00 00 00 00 00 4B [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:22]Read from MH i2c: E2 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0E 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: E2 0E 00 7E 50 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 54 [13:05:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:05:22]wFMCommunicate OK [13:05:22]SAM_PROTO_GetShiftState done [13:05:22]FM_GetShiftState done [13:05:22]opened in 1729470944 [13:05:22]opened+sec_in_day 1729557344 [13:05:22]quantity*price = 84963 [13:05:22]sum+1 = 84964 [13:05:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 849.63 НСП 1% : 7.52 НДС 12% : 90.23 Наличными: 0.00 Безнал.: 849.63 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 134 21.10.2024 13:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166023 ФПД: 91312938520451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130540&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166023&fm=91312938520451&tin=02508201610067®Number=0000000000091764&sum=84963 [13:05:23]StoreToDocumentArchive [13:05:23]shift 535 fd 166023 [13:05:23]save to /storage/0535/doc_00166023 [13:05:23]save last doc name /storage/0535/doc_00166023 to /storage/kkm_last_doc_name [13:05:23]save OK [13:05:23]Clear old archive folders... [13:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:23]tlvbuf is 014DA730 [13:05:23]SAM_PROTO_ClearQueue [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 09 00 00 [13:05:23]Write to MH i2c: E2 08 00 8B 50 80 09 00 00 00 00 00 00 4D [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 8B 50 00 90 00 4F [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_ClearQueue done [13:05:23]KKMCreateOFDPacket [13:05:23]OFDProtocolAddRootSTLVToBuf [13:05:23]FM_MakeSignedData [13:05:23]FM_MakeSignedData [13:05:23]SAM_PROTO_SignData [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 01 02 [13:05:23]Write to MH i2c: E2 08 00 8C 50 80 0D 01 02 00 00 00 00 55 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]wFMCommunicate request_size=255 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A4 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 88 02 00 35 04 06 00 53 [13:05:23]Write to MH i2c: E2 02 01 8D 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A4 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 88 02 00 35 04 06 00 53 00 00 C5 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 8D 50 00 90 00 51 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]wFMCommunicate request_size=10 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 02 02 05 0C 73 43 8F 83 [13:05:23]Write to MH i2c: E2 0D 00 8E 50 80 0D 02 02 05 00 0C 73 43 8F 83 00 00 36 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 03 00 8E 50 00 90 00 52 [13:05:23]RAPDU: 90 00 [13:05:23]wFMCommunicate OK [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 0D 03 02 [13:05:23]Write to MH i2c: E2 08 00 8F 50 80 0D 03 02 00 00 00 00 5A [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0B 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0B 00 8F 50 00 F3 CA BA 78 F1 2A 05 A3 90 00 0D [13:05:23]RAPDU: F3 CA BA 78 F1 2A 05 A3 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_SignData done [13:05:23]FM_MakeSignedData done [13:05:23]CreateOFDProtocolMessage [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 11 00 00 [13:05:23]Write to MH i2c: E2 08 00 90 50 80 11 00 00 00 00 00 00 5A [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 90 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [13:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:23]wFMCommunicate OK [13:05:23]CreateOFDProtocolMessage done [13:05:23]OFDSenderStorePacket 166023 [13:05:23]StoreOFDPacket docnum=166023 [13:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 92 CD 07 01 85 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A4 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 88 02 00 35 04 06 00 53 0C 73 43 8F 83 F3 CA BA 78 F1 2A 05 A3 [13:05:23]CheckFolder [13:05:23]dirname=/storage/ofd_packets [13:05:23]CheckFolder done [13:05:23]ProducePacketName [13:05:23]name=ofd_packets/00166023 [13:05:23]NVStorageSaveData ofd_packets/00166023 [13:05:23]File name is /storage/ofd_packets/00166023 [13:05:23]Write 301 bytes [13:05:23]NVStorageSaveData done [13:05:23]OFDSenderStorePacket done [13:05:23]KKMCreateOFDPacket done [13:05:23]NVStorageSaveData kkm_last_timestamp [13:05:23]File name is /storage/kkm_last_timestamp [13:05:23]Write 4 bytes [13:05:23]NVStorageSaveData done [13:05:23]ExternCall_PrintAddStr [13:05:23]wPrintStart [13:05:23]Write to MH i2c: 01 00 00 91 50 E1 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 91 50 00 00 00 00 00 FF 0F F6 [13:05:23]RasterBufferAndPrint [13:05:23]line Счет N : (1)220594 [13:05:23]line ИНН: 02508201610067 [13:05:23]line Контрольно-Кассовый Чек [13:05:23]line ПРОДАЖА [13:05:23]line ТРК (МРК, ГНК) : 13 [13:05:23]line Товар: 2710124130 [13:05:23]line Аи-92-К-5 [13:05:23]line 12.700 * 66.90 [13:05:23]line = 849.63 [13:05:23]line НДС 12% НСП 1% [13:05:23]line > о реализуемом товаре [13:05:23]line ИТОГО: 849.63 [13:05:23]line НСП 1% : 7.52 [13:05:23]line НДС 12% : 90.23 [13:05:23]line Наличными: 0.00 [13:05:23]line Безнал.: 849.63 [13:05:23]line Место: АЗС № 161 "Партнер Нефть" [13:05:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:05:23]line СНО: Общий режим [13:05:23]line Чек 134 21.10.2024 13:05 [13:05:23]line Смена: 535 ФФД: 1.0 [13:05:23]line ЗНМ: 0300000104 [13:05:23]line РНМ: 0000000000091764 [13:05:23]line Версия ККМ: 001 [13:05:23]line Платежная система: Mbank [13:05:23]line ФМ: 0000000000871759 [13:05:23]line ФД: 166023 [13:05:23]line ФПД: 91312938520451 [13:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130540&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166023&fm=91312938520451&tin=02508201610067®Number=0000000000091764&sum=84963 [13:05:23]written 0, free lines is 4095 [13:05:23]OFD Sender: Processing packet 166023 [packets to send 48, broken 47] [13:05:23]ProducePacketName [13:05:23]name=ofd_packets/00166023 [13:05:23]OFD Sender: To server: pG, [13:05:23]CommunicateWithHost lk.salyk.kg:30040 [13:05:23]ConnectInit lk.salyk.kg [13:05:23]Connected sock=6 [13:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 92 CD 07 01 85 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E3 4B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E3 4B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E3 4B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 A4 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 88 02 00 35 04 06 00 53 0C 73 43 8F 83 F3 CA BA 78 F1 2A 05 A3 [13:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BB 4B 47 00 AA EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 87 88 02 00 F4 03 04 00 12 F8 15 67 B6 04 01 00 00 B3 0C 1E FE 3F E5 0D 89 [13:05:24]CommunicateWithHost err = 0 [13:05:24]CheckOFDResponse [13:05:24]1017 (14) - 77093643461234 [13:05:24]1041 (16) - 0000000000871759 [13:05:24]1040 (4) - 166023 [13:05:24]1012 (4) - 21.10.2024 06:43 [13:05:24]1206 (1) - 0 [13:05:24]OFD Sender: Remove packet 166023 [13:05:24]ProducePacketName [13:05:24]name=ofd_packets/00166023 [13:05:24]NVStorageDeleteData [13:05:24]Write to MH i2c: 01 00 00 BA 50 0A [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 07 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: 01 07 00 BA 50 00 00 00 00 00 F8 0C 15 [13:05:24]RasterBufferAndPrint [13:05:24]line [13:05:24]line [13:05:24]line [13:05:24]line [13:05:24]line [13:05:24]written 0, free lines is 3328 [13:05:24]MH_Cut [13:05:24]Write to MH i2c: D1 01 00 C1 50 01 E3 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: D1 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: D1 01 00 [13:05:24]MH_I2C_Read... [13:05:24]Read from MH i2c: D1 01 00 C1 50 00 E2 [13:05:24]Write to MH i2c: 01 00 00 C2 50 12 [13:05:24]Write i2c OK [13:05:24]MH_I2C_Read... [13:05:24]OFD Sender: No OFD packet to send [13:05:24]*** Cut start [13:05:24]*** Partial cut [13:05:24]*** CUTSNS_PIN = 1 [13:05:24]*** CUTSNS_PIN = 0 [13:05:25]*** Brake cut motor [13:05:25]Read from MH i2c: 01 [13:05:25]MH_I2C_Read... [13:05:25]*** Stop cut motor [13:05:25]*** Cut end [13:05:25]Read from MH i2c: 01 07 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: 01 07 00 C2 50 00 00 00 00 00 FF 0F 27 [13:05:25]process_action close_receipt done [13:05:25]requested_data is exist [13:05:25]produce_requested_data [13:05:25]requested_item fm.sn is exist - process it [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 11 00 00 [13:05:25]Write to MH i2c: E2 08 00 C3 50 80 11 00 00 00 00 00 00 8D [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 17 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 17 00 C3 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E5 [13:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:05:25]wFMCommunicate OK [13:05:25]requested_item fd.num is exist - process it [13:05:25]SAM_PROTO_GetFieldsCounters [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 13 00 00 [13:05:25]Write to MH i2c: E2 08 00 C4 50 80 13 00 00 00 00 00 00 90 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 62 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 62 00 C4 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [13:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 87 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_GetFieldsCounters done [13:05:25]requested_item shift.num is exist - process it [13:05:25]requested_item shift.opened is exist - process it [13:05:25]req_shift_opened [13:05:25]FM_GetShiftState [13:05:25]SAM_PROTO_GetShiftState [13:05:25]wFMCommunicate request_size=4 [13:05:25]MH_SAM_APDU [13:05:25]CAPDU: 80 13 01 00 [13:05:25]Write to MH i2c: E2 08 00 C5 50 80 13 01 00 00 00 00 00 92 [13:05:25]Write i2c OK [13:05:25]MH_I2C_Read... [13:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:25]Read from MH i2c: E2 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0E 00 [13:05:25]MH_I2C_Read... [13:05:25]Read from MH i2c: E2 0E 00 C5 50 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9B [13:05:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:05:25]wFMCommunicate OK [13:05:25]SAM_PROTO_GetShiftState done [13:05:25]FM_GetShiftState done [13:05:25]req_shift_opened done [13:05:25]requested_item shift.open_date is exist - process it [13:05:25]req_shift_open_date [13:05:25]req_shift_open_date done [13:05:25]produce_requested_data done [13:05:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166023,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:05:25]process_action_free close_receipt [13:05:25]json_value_free [13:05:25]json_value_free done [13:05:25]process_json_proto returns [13:05:25]Send response to host [13:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166023,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:05:25]free response buf [13:05:25]execute_script done [13:05:25]execute_script returns [13:05:25]free content buf [13:05:25]Sock 7.Close socket [13:05:25]Sock 7.Thread stoped [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [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:46]accept exits with 5 [13:06:46]New connection [13:06:46]New thread 3066920292 created [13:06:46]Thread 3066776932 joined [13:06:46]Waiting for new connection... [13:06:46] Sock 5.Parse request [13:06:46]Sock 5.Check first char [13:06:46]Sock 5.First char is OK [13:06:46]request: POST /json_proto HTTP/1.0 [13:06:46]Method: POST [13:06:46]URL: /json_proto [13:06:46]Method is POST - this is cgi request [13:06:46]url: /json_proto [13:06:46]query_string will be loaded in cgi processing [13:06:46]execute_cgi json_proto POST (null) [13:06:46]execute_cgi path=json_proto method=POST [13:06:46]POST find Content-Length [13:06:46]Host: 172.17.53.195:8080 [13:06:46]Content-Length: 677 [13:06:46]Content-Type: application/json [13:06:46] [13:06:46]POST finish read [13:06:46]Found Content-Length = 677 [13:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:46]execute_script... [13:06: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)220596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:46]POST & json_proto [13:06:46]process_json_proto [13:06:46]json parsed OK: [13:06:46]protocol is kg_v1.0 [13:06:46]action value=close_receipt [13:06:46]process_action close_receipt [13:06:46]cmd_close_receipt [13:06:46]MH_GetDate [13:06:46]Write to MH i2c: F0 00 00 C6 50 05 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: F0 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: F0 09 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: F0 09 00 C6 50 00 F9 51 16 67 21 48 4A 65 ED [13:06:46]GetLastDocTimeStamp 1729515940 [13:06:46]current date 1729516025 [13:06:46]FM_GetShiftState [13:06:46]SAM_PROTO_GetShiftState [13:06:46]wFMCommunicate request_size=4 [13:06:46]MH_SAM_APDU [13:06:46]CAPDU: 80 13 01 00 [13:06:46]Write to MH i2c: E2 08 00 C7 50 80 13 01 00 00 00 00 00 94 [13:06:46]Write i2c OK [13:06:46]MH_I2C_Read... [13:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:46]Read from MH i2c: E2 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 0E 00 [13:06:46]MH_I2C_Read... [13:06:46]Read from MH i2c: E2 0E 00 C7 50 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9D [13:06:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:06:46]wFMCommunicate OK [13:06:46]SAM_PROTO_GetShiftState done [13:06:46]FM_GetShiftState done [13:06:46]opened in 1729470944 [13:06:46]opened+sec_in_day 1729557344 [13:06:46]quantity*price = 50041 [13:06:46]sum+1 = 50042 [13:06:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 135 21.10.2024 13:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166024 ФПД: 19727418743759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166024&fm=19727418743759&tin=02508201610067®Number=0000000000091764&sum=50000 [13:06:47]StoreToDocumentArchive [13:06:47]shift 535 fd 166024 [13:06:47]save to /storage/0535/doc_00166024 [13:06:47]save last doc name /storage/0535/doc_00166024 to /storage/kkm_last_doc_name [13:06:47]save OK [13:06:47]Clear old archive folders... [13:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:47]tlvbuf is 01891D20 [13:06:47]SAM_PROTO_ClearQueue [13:06:47]wFMCommunicate request_size=4 [13:06:47]MH_SAM_APDU [13:06:47]CAPDU: 80 09 00 00 [13:06:47]Write to MH i2c: E2 08 00 D4 50 80 09 00 00 00 00 00 00 96 [13:06:47]Write i2c OK [13:06:47]MH_I2C_Read... [13:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:47]Read from MH i2c: E2 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: E2 03 00 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: E2 03 00 D4 50 00 90 00 98 [13:06:47]RAPDU: 90 00 [13:06:47]wFMCommunicate OK [13:06:47]SAM_PROTO_ClearQueue done [13:06:47]KKMCreateOFDPacket [13:06:47]OFDProtocolAddRootSTLVToBuf [13:06:47]FM_MakeSignedData [13:06:47]FM_MakeSignedData [13:06:47]SAM_PROTO_SignData [13:06:47]wFMCommunicate request_size=4 [13:06:47]MH_SAM_APDU [13:06:47]CAPDU: 80 0D 01 02 [13:06:47]Write to MH i2c: E2 08 00 D5 50 80 0D 01 02 00 00 00 00 9E [13:06:47]Write i2c OK [13:06:47]MH_I2C_Read... [13:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:47]Read from MH i2c: E2 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: E2 03 00 [13:06:47]MH_I2C_Read... [13:06:47]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [13:06:47]RAPDU: 90 00 [13:06:47]wFMCommunicate OK [13:06:47]wFMCommunicate request_size=255 [13:06:47]MH_SAM_APDU [13:06:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 F9 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 88 02 00 35 04 06 00 11 [13:06:47]Write to MH i2c: E2 02 01 D6 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 88 02 00 35 04 06 00 11 00 00 BE [13:06:47]Write i2c OK [13:06:47]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 03 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [13:06:48]RAPDU: 90 00 [13:06:48]wFMCommunicate OK [13:06:48]wFMCommunicate request_size=10 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 0D 02 02 05 F1 25 C9 5B CF [13:06:48]Write to MH i2c: E2 0D 00 D7 50 80 0D 02 02 05 00 F1 25 C9 5B CF 00 00 B4 [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 03 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 03 00 D7 50 00 90 00 9B [13:06:48]RAPDU: 90 00 [13:06:48]wFMCommunicate OK [13:06:48]wFMCommunicate request_size=4 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 0D 03 02 [13:06:48]Write to MH i2c: E2 08 00 D8 50 80 0D 03 02 00 00 00 00 A3 [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 0B 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 0B 00 D8 50 00 5C 29 C3 15 63 F1 F7 BB 90 00 07 [13:06:48]RAPDU: 5C 29 C3 15 63 F1 F7 BB 90 00 [13:06:48]wFMCommunicate OK [13:06:48]SAM_PROTO_SignData done [13:06:48]FM_MakeSignedData done [13:06:48]CreateOFDProtocolMessage [13:06:48]wFMCommunicate request_size=4 [13:06:48]MH_SAM_APDU [13:06:48]CAPDU: 80 11 00 00 [13:06:48]Write to MH i2c: E2 08 00 D9 50 80 11 00 00 00 00 00 00 A3 [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:48]Read from MH i2c: E2 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 17 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: E2 17 00 D9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FB [13:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:06:48]wFMCommunicate OK [13:06:48]CreateOFDProtocolMessage done [13:06:48]OFDSenderStorePacket 166024 [13:06:48]StoreOFDPacket docnum=166024 [13:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5A 66 07 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 88 02 00 35 04 06 00 11 F1 25 C9 5B CF 5C 29 C3 15 63 F1 F7 BB [13:06:48]CheckFolder [13:06:48]dirname=/storage/ofd_packets [13:06:48]CheckFolder done [13:06:48]ProducePacketName [13:06:48]name=ofd_packets/00166024 [13:06:48]NVStorageSaveData ofd_packets/00166024 [13:06:48]File name is /storage/ofd_packets/00166024 [13:06:48]Write 301 bytes [13:06:48]NVStorageSaveData done [13:06:48]OFDSenderStorePacket done [13:06:48]KKMCreateOFDPacket done [13:06:48]NVStorageSaveData kkm_last_timestamp [13:06:48]File name is /storage/kkm_last_timestamp [13:06:48]Write 4 bytes [13:06:48]NVStorageSaveData done [13:06:48]ExternCall_PrintAddStr [13:06:48]wPrintStart [13:06:48]Write to MH i2c: 01 00 00 DA 50 2A [13:06:48]Write i2c OK [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: 01 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: 01 07 00 [13:06:48]MH_I2C_Read... [13:06:48]Read from MH i2c: 01 07 00 DA 50 00 00 00 00 00 FF 0F 3F [13:06:48]RasterBufferAndPrint [13:06:48]line Счет N : (1)220596 [13:06:48]line ИНН: 02508201610067 [13:06:48]line Контрольно-Кассовый Чек [13:06:48]line ПРОДАЖА [13:06:48]line ТРК (МРК, ГНК) : 23 [13:06:48]line Товар: 2710124130 [13:06:48]line Аи-92-К-5 [13:06:48]line 7.480 * 66.90 [13:06:48]line = 500.41 [13:06:48]line НДС 12% НСП 1% [13:06:48]line > о реализуемом товаре [13:06:48]line ОКРУГЛЕНИЕ: -0.41 [13:06:48]line ИТОГО: 500.00 [13:06:48]line Внесено: 500.00 [13:06:48]line СДАЧА: 0.00 [13:06:48]line НСП 1% : 4.43 [13:06:48]line НДС 12% : 53.14 [13:06:48]line Наличными: 500.00 [13:06:48]line Безнал.: 0.00 [13:06:48]line Место: АЗС № 161 "Партнер Нефть" [13:06:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:06:48]line СНО: Общий режим [13:06:48]line Чек 135 21.10.2024 13:07 [13:06:48]line Смена: 535 ФФД: 1.0 [13:06:48]line ЗНМ: 0300000104 [13:06:48]line РНМ: 0000000000091764 [13:06:48]line Версия ККМ: 001 [13:06:48]line ФМ: 0000000000871759 [13:06:48]line ФД: 166024 [13:06:48]line ФПД: 19727418743759 [13:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166024&fm=19727418743759&tin=02508201610067®Number=0000000000091764&sum=50000 [13:06:48]OFD Sender: Processing packet 166024 [packets to send 48, broken 47] [13:06:48]ProducePacketName [13:06:48]name=ofd_packets/00166024 [13:06:48]OFD Sender: To server: pG, [13:06:48]CommunicateWithHost lk.salyk.kg:30040 [13:06:48]ConnectInit lk.salyk.kg [13:06:48]written 0, free lines is 4095 [13:06:48]Connected sock=7 [13:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5A 66 07 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 F9 51 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 88 02 00 35 04 06 00 11 F1 25 C9 5B CF 5C 29 C3 15 63 F1 F7 BB [13:06:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BD 7D 47 00 03 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 88 88 02 00 F4 03 04 00 67 F8 15 67 B6 04 01 00 00 36 7C 4A FC 7B FD 8C C8 [13:06:49]CommunicateWithHost err = 0 [13:06:49]CheckOFDResponse [13:06:49]1017 (14) - 77093643461234 [13:06:49]1041 (16) - 0000000000871759 [13:06:49]1040 (4) - 166024 [13:06:49]1012 (4) - 21.10.2024 06:44 [13:06:49]1206 (1) - 0 [13:06:49]OFD Sender: Remove packet 166024 [13:06:49]ProducePacketName [13:06:49]name=ofd_packets/00166024 [13:06:49]NVStorageDeleteData [13:06:49]Write to MH i2c: 01 00 00 05 51 56 [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: 01 07 00 05 51 00 00 00 00 00 CE 0C 37 [13:06:49]RasterBufferAndPrint [13:06:49]line [13:06:49]line [13:06:49]line [13:06:49]line [13:06:49]line [13:06:49]written 0, free lines is 3285 [13:06:49]MH_Cut [13:06:49]Write to MH i2c: D1 01 00 0C 51 01 2F [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: D1 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: D1 01 00 [13:06:49]MH_I2C_Read... [13:06:49]Read from MH i2c: D1 01 00 0C 51 00 2E [13:06:49]Write to MH i2c: 01 00 00 0D 51 5E [13:06:49]Write i2c OK [13:06:49]MH_I2C_Read... [13:06:49]OFD Sender: No OFD packet to send [13:06:49]*** Cut start [13:06:49]*** Partial cut [13:06:49]*** CUTSNS_PIN = 1 [13:06:49]*** CUTSNS_PIN = 0 [13:06:50]*** Brake cut motor [13:06:50]Read from MH i2c: 01 [13:06:50]MH_I2C_Read... [13:06:50]*** Stop cut motor [13:06:50]*** Cut end [13:06:50]Read from MH i2c: 01 07 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: 01 07 00 0D 51 00 00 00 00 00 FF 0F 73 [13:06:50]process_action close_receipt done [13:06:50]requested_data is exist [13:06:50]produce_requested_data [13:06:50]requested_item fm.sn is exist - process it [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 11 00 00 [13:06:50]Write to MH i2c: E2 08 00 0E 51 80 11 00 00 00 00 00 00 D9 [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:50]Read from MH i2c: E2 17 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 17 00 0E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [13:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:06:50]wFMCommunicate OK [13:06:50]requested_item fd.num is exist - process it [13:06:50]SAM_PROTO_GetFieldsCounters [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 13 00 00 [13:06:50]Write to MH i2c: E2 08 00 0F 51 80 13 00 00 00 00 00 00 DC [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 62 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 62 00 0F 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [13:06:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 88 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:50]wFMCommunicate OK [13:06:50]SAM_PROTO_GetFieldsCounters done [13:06:50]requested_item shift.num is exist - process it [13:06:50]requested_item shift.opened is exist - process it [13:06:50]req_shift_opened [13:06:50]FM_GetShiftState [13:06:50]SAM_PROTO_GetShiftState [13:06:50]wFMCommunicate request_size=4 [13:06:50]MH_SAM_APDU [13:06:50]CAPDU: 80 13 01 00 [13:06:50]Write to MH i2c: E2 08 00 10 51 80 13 01 00 00 00 00 00 DE [13:06:50]Write i2c OK [13:06:50]MH_I2C_Read... [13:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:50]Read from MH i2c: E2 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0E 00 [13:06:50]MH_I2C_Read... [13:06:50]Read from MH i2c: E2 0E 00 10 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E7 [13:06:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:06:50]wFMCommunicate OK [13:06:50]SAM_PROTO_GetShiftState done [13:06:50]FM_GetShiftState done [13:06:50]req_shift_opened done [13:06:50]requested_item shift.open_date is exist - process it [13:06:50]req_shift_open_date [13:06:50]req_shift_open_date done [13:06:50]produce_requested_data done [13:06:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166024,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:06:50]process_action_free close_receipt [13:06:50]json_value_free [13:06:50]json_value_free done [13:06:50]process_json_proto returns [13:06:50]Send response to host [13:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166024,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:06:50]free response buf [13:06:50]execute_script done [13:06:50]execute_script returns [13:06:50]free content buf [13:06:50]Sock 5.Close socket [13:06:50]Sock 5.Thread stoped [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:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:31]accept exits with 6 [13:07:31]New connection [13:07:31]New thread 3066776932 created [13:07:31]Thread 3066920292 joined [13:07:31]Waiting for new connection... [13:07:31] Sock 6.Parse request [13:07:31]Sock 6.Check first char [13:07:31]Sock 6.First char is OK [13:07:31]request: POST /json_proto HTTP/1.0 [13:07:31]Method: POST [13:07:31]URL: /json_proto [13:07:31]Method is POST - this is cgi request [13:07:31]url: /json_proto [13:07:31]query_string will be loaded in cgi processing [13:07:31]execute_cgi json_proto POST (null) [13:07:31]execute_cgi path=json_proto method=POST [13:07:31]POST find Content-Length [13:07:31]Host: 172.17.53.195:8080 [13:07:31]Content-Length: 682 [13:07:31]Content-Type: application/json [13:07:31] [13:07:31]POST finish read [13:07:31]Found Content-Length = 682 [13:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:31]execute_script... [13:07:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:31]POST & json_proto [13:07:31]process_json_proto [13:07:31]json parsed OK: [13:07:31]protocol is kg_v1.0 [13:07:31]action value=close_receipt [13:07:31]process_action close_receipt [13:07:31]cmd_close_receipt [13:07:31]MH_GetDate [13:07:31]Write to MH i2c: F0 00 00 11 51 51 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: F0 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: F0 09 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: F0 09 00 11 51 00 26 52 16 67 21 48 4A 65 67 [13:07:31]GetLastDocTimeStamp 1729516025 [13:07:31]current date 1729516070 [13:07:31]FM_GetShiftState [13:07:31]SAM_PROTO_GetShiftState [13:07:31]wFMCommunicate request_size=4 [13:07:31]MH_SAM_APDU [13:07:31]CAPDU: 80 13 01 00 [13:07:31]Write to MH i2c: E2 08 00 12 51 80 13 01 00 00 00 00 00 E0 [13:07:31]Write i2c OK [13:07:31]MH_I2C_Read... [13:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:31]Read from MH i2c: E2 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 [13:07:31]MH_I2C_Read... [13:07:31]Read from MH i2c: E2 0E 00 12 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E9 [13:07:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:07:31]wFMCommunicate OK [13:07:31]SAM_PROTO_GetShiftState done [13:07:31]FM_GetShiftState done [13:07:31]opened in 1729470944 [13:07:31]opened+sec_in_day 1729557344 [13:07:31]quantity*price = 200031 [13:07:31]sum+1 = 200032 [13:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 136 21.10.2024 13:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166025 ФПД: 19402519546096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166025&fm=19402519546096&tin=02508201610067®Number=0000000000091764&sum=200000 [13:07:33]StoreToDocumentArchive [13:07:33]shift 535 fd 166025 [13:07:33]save to /storage/0535/doc_00166025 [13:07:33]save last doc name /storage/0535/doc_00166025 to /storage/kkm_last_doc_name [13:07:33]save OK [13:07:33]Clear old archive folders... [13:07:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:33]tlvbuf is 01512D00 [13:07:33]SAM_PROTO_ClearQueue [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 09 00 00 [13:07:33]Write to MH i2c: E2 08 00 1F 51 80 09 00 00 00 00 00 00 E2 [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 1F 51 00 90 00 E4 [13:07:33]RAPDU: 90 00 [13:07:33]wFMCommunicate OK [13:07:33]SAM_PROTO_ClearQueue done [13:07:33]KKMCreateOFDPacket [13:07:33]OFDProtocolAddRootSTLVToBuf [13:07:33]FM_MakeSignedData [13:07:33]FM_MakeSignedData [13:07:33]SAM_PROTO_SignData [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 0D 01 02 [13:07:33]Write to MH i2c: E2 08 00 20 51 80 0D 01 02 00 00 00 00 EA [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [13:07:33]RAPDU: 90 00 [13:07:33]wFMCommunicate OK [13:07:33]wFMCommunicate request_size=255 [13:07:33]MH_SAM_APDU [13:07: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 26 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 88 02 00 35 04 06 00 11 [13:07:33]Write to MH i2c: E2 02 01 21 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 26 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 88 02 00 35 04 06 00 11 00 00 7C [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 21 51 00 90 00 E6 [13:07:33]RAPDU: 90 00 [13:07:33]wFMCommunicate OK [13:07:33]wFMCommunicate request_size=10 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 0D 02 02 05 A5 80 49 08 F0 [13:07:33]Write to MH i2c: E2 0D 00 22 51 80 0D 02 02 05 00 A5 80 49 08 F0 00 00 5D [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 03 00 22 51 00 90 00 E7 [13:07:33]RAPDU: 90 00 [13:07:33]wFMCommunicate OK [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 0D 03 02 [13:07:33]Write to MH i2c: E2 08 00 23 51 80 0D 03 02 00 00 00 00 EF [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 0B 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 0B 00 23 51 00 19 DF D5 4B AE E6 F3 9A 90 00 29 [13:07:33]RAPDU: 19 DF D5 4B AE E6 F3 9A 90 00 [13:07:33]wFMCommunicate OK [13:07:33]SAM_PROTO_SignData done [13:07:33]FM_MakeSignedData done [13:07:33]CreateOFDProtocolMessage [13:07:33]wFMCommunicate request_size=4 [13:07:33]MH_SAM_APDU [13:07:33]CAPDU: 80 11 00 00 [13:07:33]Write to MH i2c: E2 08 00 24 51 80 11 00 00 00 00 00 00 EF [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:33]Read from MH i2c: E2 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 17 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: E2 17 00 24 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [13:07:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:07:33]wFMCommunicate OK [13:07:33]CreateOFDProtocolMessage done [13:07:33]OFDSenderStorePacket 166025 [13:07:33]StoreOFDPacket docnum=166025 [13:07:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 92 F4 07 01 81 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 26 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 88 02 00 35 04 06 00 11 A5 80 49 08 F0 19 DF D5 4B AE E6 F3 9A [13:07:33]CheckFolder [13:07:33]dirname=/storage/ofd_packets [13:07:33]CheckFolder done [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00166025 [13:07:33]NVStorageSaveData ofd_packets/00166025 [13:07:33]File name is /storage/ofd_packets/00166025 [13:07:33]Write 301 bytes [13:07:33]NVStorageSaveData done [13:07:33]OFDSenderStorePacket done [13:07:33]KKMCreateOFDPacket done [13:07:33]NVStorageSaveData kkm_last_timestamp [13:07:33]File name is /storage/kkm_last_timestamp [13:07:33]Write 4 bytes [13:07:33]NVStorageSaveData done [13:07:33]ExternCall_PrintAddStr [13:07:33]wPrintStart [13:07:33]Write to MH i2c: 01 00 00 25 51 76 [13:07:33]Write i2c OK [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: 01 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: 01 07 00 [13:07:33]MH_I2C_Read... [13:07:33]Read from MH i2c: 01 07 00 25 51 00 00 00 00 00 FF 0F 8B [13:07:33]RasterBufferAndPrint [13:07:33]line Счет N : (1)220595 [13:07:33]line ИНН: 02508201610067 [13:07:33]line Контрольно-Кассовый Чек [13:07:33]line ПРОДАЖА [13:07:33]line ТРК (МРК, ГНК) : 43 [13:07:33]line Товар: 2710124130 [13:07:33]line Аи-92-К-5 [13:07:33]line 29.900 * 66.90 [13:07:33]line = 2000.31 [13:07:33]line НДС 12% НСП 1% [13:07:33]line > о реализуемом товаре [13:07:33]line ОКРУГЛЕНИЕ: -0.31 [13:07:33]line ИТОГО: 2000.00 [13:07:33]line Внесено: 2000.00 [13:07:33]line СДАЧА: 0.00 [13:07:33]line НСП 1% : 17.70 [13:07:33]line НДС 12% : 212.42 [13:07:33]line Наличными: 2000.00 [13:07:33]line Безнал.: 0.00 [13:07:33]line Место: АЗС № 161 "Партнер Нефть" [13:07:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:07:33]line СНО: Общий режим [13:07:33]line Чек 136 21.10.2024 13:07 [13:07:33]line Смена: 535 ФФД: 1.0 [13:07:33]line ЗНМ: 0300000104 [13:07:33]line РНМ: 0000000000091764 [13:07:33]line Версия ККМ: 001 [13:07:33]line ФМ: 0000000000871759 [13:07:33]line ФД: 166025 [13:07:33]line ФПД: 19402519546096 [13:07:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166025&fm=19402519546096&tin=02508201610067®Number=0000000000091764&sum=200000 [13:07:33]OFD Sender: Processing packet 166025 [packets to send 48, broken 47] [13:07:33]ProducePacketName [13:07:33]name=ofd_packets/00166025 [13:07:33]OFD Sender: To server: pG, [13:07:33]CommunicateWithHost lk.salyk.kg:30040 [13:07:33]ConnectInit lk.salyk.kg [13:07:33]written 0, free lines is 4095 [13:07:34]Connected sock=7 [13:07:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 92 F4 07 01 81 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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 26 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 88 02 00 35 04 06 00 11 A5 80 49 08 F0 19 DF D5 4B AE E6 F3 9A [13:07:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 73 47 00 E2 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 89 88 02 00 F4 03 04 00 94 F8 15 67 B6 04 01 00 00 82 8E 9D F2 36 43 02 F2 [13:07:34]CommunicateWithHost err = 0 [13:07:34]CheckOFDResponse [13:07:34]1017 (14) - 77093643461234 [13:07:34]1041 (16) - 0000000000871759 [13:07:34]1040 (4) - 166025 [13:07:34]1012 (4) - 21.10.2024 06:45 [13:07:34]1206 (1) - 0 [13:07:34]OFD Sender: Remove packet 166025 [13:07:34]ProducePacketName [13:07:34]name=ofd_packets/00166025 [13:07:34]NVStorageDeleteData [13:07:34]Write to MH i2c: 01 00 00 50 51 A1 [13:07:34]Write i2c OK [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: 01 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: 01 07 00 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: 01 07 00 50 51 00 00 00 00 00 CC 0C 80 [13:07:34]RasterBufferAndPrint [13:07:34]line [13:07:34]line [13:07:34]line [13:07:34]line [13:07:34]line [13:07:34]written 0, free lines is 3282 [13:07:34]MH_Cut [13:07:34]Write to MH i2c: D1 01 00 57 51 01 7A [13:07:34]Write i2c OK [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: D1 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: D1 01 00 [13:07:34]MH_I2C_Read... [13:07:34]Read from MH i2c: D1 01 00 57 51 00 79 [13:07:34]Write to MH i2c: 01 00 00 58 51 A9 [13:07:34]Write i2c OK [13:07:34]MH_I2C_Read... [13:07:34]OFD Sender: No OFD packet to send [13:07:35]*** Cut start [13:07:35]*** Partial cut [13:07:35]*** CUTSNS_PIN = 1 [13:07:35]*** CUTSNS_PIN = 0 [13:07:35]*** Brake cut motor [13:07:35]Read from MH i2c: 01 [13:07:35]MH_I2C_Read... [13:07:35]*** Stop cut motor [13:07:35]*** Cut end [13:07:35]Read from MH i2c: 01 07 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: 01 07 00 58 51 00 00 00 00 00 FF 0F BE [13:07:35]process_action close_receipt done [13:07:35]requested_data is exist [13:07:35]produce_requested_data [13:07:35]requested_item fm.sn is exist - process it [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 11 00 00 [13:07:35]Write to MH i2c: E2 08 00 59 51 80 11 00 00 00 00 00 00 24 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:35]Read from MH i2c: E2 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 17 00 [13:07:35]MH_I2C_Read... [13:07:35]Read from MH i2c: E2 17 00 59 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7C [13:07:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:07:35]wFMCommunicate OK [13:07:35]requested_item fd.num is exist - process it [13:07:35]SAM_PROTO_GetFieldsCounters [13:07:35]wFMCommunicate request_size=4 [13:07:35]MH_SAM_APDU [13:07:35]CAPDU: 80 13 00 00 [13:07:35]Write to MH i2c: E2 08 00 5A 51 80 13 00 00 00 00 00 00 27 [13:07:35]Write i2c OK [13:07:35]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 62 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 62 00 5A 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [13:07:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 89 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_GetFieldsCounters done [13:07:36]requested_item shift.num is exist - process it [13:07:36]requested_item shift.opened is exist - process it [13:07:36]req_shift_opened [13:07:36]FM_GetShiftState [13:07:36]SAM_PROTO_GetShiftState [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 13 01 00 [13:07:36]Write to MH i2c: E2 08 00 5B 51 80 13 01 00 00 00 00 00 29 [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0E 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0E 00 5B 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 32 [13:07:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_GetShiftState done [13:07:36]FM_GetShiftState done [13:07:36]req_shift_opened done [13:07:36]requested_item shift.open_date is exist - process it [13:07:36]req_shift_open_date [13:07:36]req_shift_open_date done [13:07:36]produce_requested_data done [13:07:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166025,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:07:36]process_action_free close_receipt [13:07:36]json_value_free [13:07:36]json_value_free done [13:07:36]process_json_proto returns [13:07:36]Send response to host [13:07:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166025,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:07:36]free response buf [13:07:36]execute_script done [13:07:36]execute_script returns [13:07:36]free content buf [13:07:36]Sock 6.Close socket [13:07:36]Sock 6.Thread stoped [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:56]accept exits with 5 [13:08:56]New connection [13:08:56]New thread 3066920292 created [13:08:56]Thread 3066776932 joined [13:08:56]Waiting for new connection... [13:08:56] Sock 5.Parse request [13:08:56]Sock 5.Check first char [13:08:56]Sock 5.First char is OK [13:08:56]request: POST /json_proto HTTP/1.0 [13:08:56]Method: POST [13:08:56]URL: /json_proto [13:08:56]Method is POST - this is cgi request [13:08:56]url: /json_proto [13:08:56]query_string will be loaded in cgi processing [13:08:56]execute_cgi json_proto POST (null) [13:08:56]execute_cgi path=json_proto method=POST [13:08:56]POST find Content-Length [13:08:56]Host: 172.17.53.195:8080 [13:08:56]Content-Length: 678 [13:08:56]Content-Type: application/json [13:08:56] [13:08:56]POST finish read [13:08:56]Found Content-Length = 678 [13:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:56]execute_script... [13:08:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:56]POST & json_proto [13:08:56]process_json_proto [13:08:56]json parsed OK: [13:08:56]protocol is kg_v1.0 [13:08:56]action value=close_receipt [13:08:56]process_action close_receipt [13:08:56]cmd_close_receipt [13:08:56]MH_GetDate [13:08:56]Write to MH i2c: F0 00 00 5C 51 9C [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: F0 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: F0 09 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: F0 09 00 5C 51 00 7A 52 16 67 21 48 4A 65 06 [13:08:56]GetLastDocTimeStamp 1729516070 [13:08:56]current date 1729516154 [13:08:56]FM_GetShiftState [13:08:56]SAM_PROTO_GetShiftState [13:08:56]wFMCommunicate request_size=4 [13:08:56]MH_SAM_APDU [13:08:56]CAPDU: 80 13 01 00 [13:08:56]Write to MH i2c: E2 08 00 5D 51 80 13 01 00 00 00 00 00 2B [13:08:56]Write i2c OK [13:08:56]MH_I2C_Read... [13:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:56]Read from MH i2c: E2 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 [13:08:56]MH_I2C_Read... [13:08:56]Read from MH i2c: E2 0E 00 5D 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 34 [13:08:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:08:56]wFMCommunicate OK [13:08:56]SAM_PROTO_GetShiftState done [13:08:56]FM_GetShiftState done [13:08:56]opened in 1729470944 [13:08:56]opened+sec_in_day 1729557344 [13:08:56]quantity*price = 80012 [13:08:56]sum+1 = 80013 [13:08:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 137 21.10.2024 13:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166026 ФПД: 137738588051808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130914&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166026&fm=137738588051808&tin=02508201610067®Number=0000000000091764&sum=80000 [13:08:57]StoreToDocumentArchive [13:08:57]shift 535 fd 166026 [13:08:57]save to /storage/0535/doc_00166026 [13:08:57]save last doc name /storage/0535/doc_00166026 to /storage/kkm_last_doc_name [13:08:57]save OK [13:08:57]Clear old archive folders... [13:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:57]tlvbuf is 0186AF20 [13:08:57]SAM_PROTO_ClearQueue [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 09 00 00 [13:08:57]Write to MH i2c: E2 08 00 6A 51 80 09 00 00 00 00 00 00 2D [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 6A 51 00 90 00 2F [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]SAM_PROTO_ClearQueue done [13:08:57]KKMCreateOFDPacket [13:08:57]OFDProtocolAddRootSTLVToBuf [13:08:57]FM_MakeSignedData [13:08:57]FM_MakeSignedData [13:08:57]SAM_PROTO_SignData [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 01 02 [13:08:57]Write to MH i2c: E2 08 00 6B 51 80 0D 01 02 00 00 00 00 35 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 6B 51 00 90 00 30 [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=255 [13:08:57]MH_SAM_APDU [13:08: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7A 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 88 02 00 35 04 06 00 7D [13:08:57]Write to MH i2c: E2 02 01 6C 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7A 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 88 02 00 35 04 06 00 7D 00 00 33 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 6C 51 00 90 00 31 [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=10 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 02 02 05 45 C3 9C D9 60 [13:08:57]Write to MH i2c: E2 0D 00 6D 51 80 0D 02 02 05 00 45 C3 9C D9 60 00 00 1F [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 03 00 6D 51 00 90 00 32 [13:08:57]RAPDU: 90 00 [13:08:57]wFMCommunicate OK [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 0D 03 02 [13:08:57]Write to MH i2c: E2 08 00 6E 51 80 0D 03 02 00 00 00 00 3A [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 0B 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 0B 00 6E 51 00 DD 3C 4E C5 6E 99 09 BD 90 00 34 [13:08:57]RAPDU: DD 3C 4E C5 6E 99 09 BD 90 00 [13:08:57]wFMCommunicate OK [13:08:57]SAM_PROTO_SignData done [13:08:57]FM_MakeSignedData done [13:08:57]CreateOFDProtocolMessage [13:08:57]wFMCommunicate request_size=4 [13:08:57]MH_SAM_APDU [13:08:57]CAPDU: 80 11 00 00 [13:08:57]Write to MH i2c: E2 08 00 6F 51 80 11 00 00 00 00 00 00 3A [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:57]Read from MH i2c: E2 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 17 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: E2 17 00 6F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [13:08:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:08:57]wFMCommunicate OK [13:08:57]CreateOFDProtocolMessage done [13:08:57]OFDSenderStorePacket 166026 [13:08:57]StoreOFDPacket docnum=166026 [13:08:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 2B 07 01 92 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7A 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 88 02 00 35 04 06 00 7D 45 C3 9C D9 60 DD 3C 4E C5 6E 99 09 BD [13:08:57]CheckFolder [13:08:57]dirname=/storage/ofd_packets [13:08:57]CheckFolder done [13:08:57]ProducePacketName [13:08:57]name=ofd_packets/00166026 [13:08:57]NVStorageSaveData ofd_packets/00166026 [13:08:57]File name is /storage/ofd_packets/00166026 [13:08:57]Write 301 bytes [13:08:57]NVStorageSaveData done [13:08:57]OFDSenderStorePacket done [13:08:57]KKMCreateOFDPacket done [13:08:57]NVStorageSaveData kkm_last_timestamp [13:08:57]File name is /storage/kkm_last_timestamp [13:08:57]Write 4 bytes [13:08:57]NVStorageSaveData done [13:08:57]ExternCall_PrintAddStr [13:08:57]wPrintStart [13:08:57]Write to MH i2c: 01 00 00 70 51 C1 [13:08:57]Write i2c OK [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 07 00 [13:08:57]MH_I2C_Read... [13:08:57]Read from MH i2c: 01 07 00 70 51 00 00 00 00 00 FF 0F D6 [13:08:57]RasterBufferAndPrint [13:08:57]line Счет N : (1)220597 [13:08:57]line ИНН: 02508201610067 [13:08:57]line Контрольно-Кассовый Чек [13:08:57]line ПРОДАЖА [13:08:57]line ТРК (МРК, ГНК) : 23 [13:08:57]line Товар: 2710124130 [13:08:57]line Аи-92-К-5 [13:08:57]line 11.960 * 66.90 [13:08:57]line = 800.12 [13:08:57]line НДС 12% НСП 1% [13:08:57]line > о реализуемом товаре [13:08:57]line ОКРУГЛЕНИЕ: -0.12 [13:08:57]line ИТОГО: 800.00 [13:08:57]line Внесено: 800.00 [13:08:57]line СДАЧА: 0.00 [13:08:57]line НСП 1% : 7.08 [13:08:57]line НДС 12% : 84.97 [13:08:57]line Наличными: 800.00 [13:08:57]line Безнал.: 0.00 [13:08:57]line Место: АЗС № 161 "Партнер Нефть" [13:08:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:08:57]line СНО: Общий режим [13:08:57]line Чек 137 21.10.2024 13:09 [13:08:57]line Смена: 535 ФФД: 1.0 [13:08:57]line ЗНМ: 0300000104 [13:08:57]line РНМ: 0000000000091764 [13:08:57]line Версия ККМ: 001 [13:08:57]line ФМ: 0000000000871759 [13:08:57]line ФД: 166026 [13:08:57]line ФПД: 137738588051808 [13:08:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T130914&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166026&fm=137738588051808&tin=02508201610067®Number=0000000000091764&sum=80000 [13:08:58]OFD Sender: Processing packet 166026 [packets to send 48, broken 47] [13:08:58]ProducePacketName [13:08:58]name=ofd_packets/00166026 [13:08:58]OFD Sender: To server: pG, [13:08:58]CommunicateWithHost lk.salyk.kg:30040 [13:08:58]ConnectInit lk.salyk.kg [13:08:58]written 0, free lines is 4095 [13:08:58]Connected sock=7 [13:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 2B 07 01 92 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 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 7A 52 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 88 02 00 35 04 06 00 7D 45 C3 9C D9 60 DD 3C 4E C5 6E 99 09 BD [13:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 14 47 00 FB 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8A 88 02 00 F4 03 04 00 E8 F8 15 67 B6 04 01 00 00 84 7E 43 1A 75 CB 30 E0 [13:08:58]CommunicateWithHost err = 0 [13:08:58]CheckOFDResponse [13:08:58]1017 (14) - 77093643461234 [13:08:58]1041 (16) - 0000000000871759 [13:08:58]1040 (4) - 166026 [13:08:58]1012 (4) - 21.10.2024 06:47 [13:08:58]1206 (1) - 0 [13:08:58]OFD Sender: Remove packet 166026 [13:08:58]ProducePacketName [13:08:58]name=ofd_packets/00166026 [13:08:58]NVStorageDeleteData [13:08:58]Write to MH i2c: 01 00 00 9B 51 EC [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 07 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: 01 07 00 9B 51 00 00 00 00 00 CD 0C CC [13:08:58]RasterBufferAndPrint [13:08:58]line [13:08:58]line [13:08:58]line [13:08:58]line [13:08:58]line [13:08:58]written 0, free lines is 3283 [13:08:58]MH_Cut [13:08:58]Write to MH i2c: D1 01 00 A2 51 01 C5 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: D1 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: D1 01 00 [13:08:58]MH_I2C_Read... [13:08:58]Read from MH i2c: D1 01 00 A2 51 00 C4 [13:08:58]Write to MH i2c: 01 00 00 A3 51 F4 [13:08:58]Write i2c OK [13:08:58]MH_I2C_Read... [13:08:58]OFD Sender: No OFD packet to send [13:08:59]*** Cut start [13:08:59]*** Partial cut [13:08:59]*** CUTSNS_PIN = 1 [13:08:59]*** CUTSNS_PIN = 0 [13:08:59]*** Brake cut motor [13:09:00]Read from MH i2c: 01 [13:09:00]MH_I2C_Read... [13:09:00]*** Stop cut motor [13:09:00]*** Cut end [13:09:00]Read from MH i2c: 01 07 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: 01 07 00 A3 51 00 00 00 00 00 FF 0F 09 [13:09:00]process_action close_receipt done [13:09:00]requested_data is exist [13:09:00]produce_requested_data [13:09:00]requested_item fm.sn is exist - process it [13:09:00]wFMCommunicate request_size=4 [13:09:00]MH_SAM_APDU [13:09:00]CAPDU: 80 11 00 00 [13:09:00]Write to MH i2c: E2 08 00 A4 51 80 11 00 00 00 00 00 00 6F [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:00]Read from MH i2c: E2 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 17 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 17 00 A4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C7 [13:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:09:00]wFMCommunicate OK [13:09:00]requested_item fd.num is exist - process it [13:09:00]SAM_PROTO_GetFieldsCounters [13:09:00]wFMCommunicate request_size=4 [13:09:00]MH_SAM_APDU [13:09:00]CAPDU: 80 13 00 00 [13:09:00]Write to MH i2c: E2 08 00 A5 51 80 13 00 00 00 00 00 00 72 [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:00]Read from MH i2c: E2 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 62 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 62 00 A5 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [13:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:00]wFMCommunicate OK [13:09:00]SAM_PROTO_GetFieldsCounters done [13:09:00]requested_item shift.num is exist - process it [13:09:00]requested_item shift.opened is exist - process it [13:09:00]req_shift_opened [13:09:00]FM_GetShiftState [13:09:00]SAM_PROTO_GetShiftState [13:09:00]wFMCommunicate request_size=4 [13:09:00]MH_SAM_APDU [13:09:00]CAPDU: 80 13 01 00 [13:09:00]Write to MH i2c: E2 08 00 A6 51 80 13 01 00 00 00 00 00 74 [13:09:00]Write i2c OK [13:09:00]MH_I2C_Read... [13:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:00]Read from MH i2c: E2 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 0E 00 [13:09:00]MH_I2C_Read... [13:09:00]Read from MH i2c: E2 0E 00 A6 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7D [13:09:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:09:00]wFMCommunicate OK [13:09:00]SAM_PROTO_GetShiftState done [13:09:00]FM_GetShiftState done [13:09:00]req_shift_opened done [13:09:00]requested_item shift.open_date is exist - process it [13:09:00]req_shift_open_date [13:09:00]req_shift_open_date done [13:09:00]produce_requested_data done [13:09:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166026,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:09:00]process_action_free close_receipt [13:09:00]json_value_free [13:09:00]json_value_free done [13:09:00]process_json_proto returns [13:09:00]Send response to host [13:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166026,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:09:00]free response buf [13:09:00]execute_script done [13:09:00]execute_script returns [13:09:00]free content buf [13:09:00]Sock 5.Close socket [13:09:00]Sock 5.Thread stoped [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:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:11]accept exits with 6 [13:11:11]New connection [13:11:11]New thread 3066776932 created [13:11:11]Thread 3066920292 joined [13:11:11]Waiting for new connection... [13:11:11] Sock 6.Parse request [13:11:11]Sock 6.Check first char [13:11:11]Sock 6.First char is OK [13:11:11]request: POST /json_proto HTTP/1.0 [13:11:11]Method: POST [13:11:11]URL: /json_proto [13:11:11]Method is POST - this is cgi request [13:11:11]url: /json_proto [13:11:11]query_string will be loaded in cgi processing [13:11:11]execute_cgi json_proto POST (null) [13:11:11]execute_cgi path=json_proto method=POST [13:11:11]POST find Content-Length [13:11:11]Host: 172.17.53.195:8080 [13:11:11]Content-Length: 677 [13:11:11]Content-Type: application/json [13:11:11] [13:11:11]POST finish read [13:11:11]Found Content-Length = 677 [13:11:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:11]execute_script... [13:11: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)220598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:11]POST & json_proto [13:11:11]process_json_proto [13:11:11]json parsed OK: [13:11:11]protocol is kg_v1.0 [13:11:11]action value=close_receipt [13:11:11]process_action close_receipt [13:11:11]cmd_close_receipt [13:11:11]MH_GetDate [13:11:11]Write to MH i2c: F0 00 00 A7 51 E7 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: F0 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: F0 09 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: F0 09 00 A7 51 00 02 53 16 67 21 48 4A 65 DA [13:11:11]GetLastDocTimeStamp 1729516154 [13:11:11]current date 1729516290 [13:11:11]FM_GetShiftState [13:11:11]SAM_PROTO_GetShiftState [13:11:11]wFMCommunicate request_size=4 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 13 01 00 [13:11:11]Write to MH i2c: E2 08 00 A8 51 80 13 01 00 00 00 00 00 76 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:12]Read from MH i2c: E2 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 0E 00 [13:11:12]MH_I2C_Read... [13:11:12]Read from MH i2c: E2 0E 00 A8 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7F [13:11:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:11:12]wFMCommunicate OK [13:11:12]SAM_PROTO_GetShiftState done [13:11:12]FM_GetShiftState done [13:11:12]opened in 1729470944 [13:11:12]opened+sec_in_day 1729557344 [13:11:12]quantity*price = 50041 [13:11:12]sum+1 = 50042 [13:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 138 21.10.2024 13:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166027 ФПД: 29277102069942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166027&fm=29277102069942&tin=02508201610067®Number=0000000000091764&sum=50000 [13:11:13]StoreToDocumentArchive [13:11:13]shift 535 fd 166027 [13:11:13]save to /storage/0535/doc_00166027 [13:11:13]save last doc name /storage/0535/doc_00166027 to /storage/kkm_last_doc_name [13:11:13]save OK [13:11:13]Clear old archive folders... [13:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:13]tlvbuf is 014DA7B0 [13:11:13]SAM_PROTO_ClearQueue [13:11:13]wFMCommunicate request_size=4 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 09 00 00 [13:11:13]Write to MH i2c: E2 08 00 B5 51 80 09 00 00 00 00 00 00 78 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 B5 51 00 90 00 7A [13:11:13]RAPDU: 90 00 [13:11:13]wFMCommunicate OK [13:11:13]SAM_PROTO_ClearQueue done [13:11:13]KKMCreateOFDPacket [13:11:13]OFDProtocolAddRootSTLVToBuf [13:11:13]FM_MakeSignedData [13:11:13]FM_MakeSignedData [13:11:13]SAM_PROTO_SignData [13:11:13]wFMCommunicate request_size=4 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 0D 01 02 [13:11:13]Write to MH i2c: E2 08 00 B6 51 80 0D 01 02 00 00 00 00 80 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 B6 51 00 90 00 7B [13:11:13]RAPDU: 90 00 [13:11:13]wFMCommunicate OK [13:11:13]wFMCommunicate request_size=255 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 02 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 88 02 00 35 04 06 00 1A [13:11:13]Write to MH i2c: E2 02 01 B7 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 02 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 88 02 00 35 04 06 00 1A 00 00 BA [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 B7 51 00 90 00 7C [13:11:13]RAPDU: 90 00 [13:11:13]wFMCommunicate OK [13:11:13]wFMCommunicate request_size=10 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 0D 02 02 05 A0 9B 44 D8 B6 [13:11:13]Write to MH i2c: E2 0D 00 B8 51 80 0D 02 02 05 00 A0 9B 44 D8 B6 00 00 9A [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 03 00 B8 51 00 90 00 7D [13:11:13]RAPDU: 90 00 [13:11:13]wFMCommunicate OK [13:11:13]wFMCommunicate request_size=4 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 0D 03 02 [13:11:13]Write to MH i2c: E2 08 00 B9 51 80 0D 03 02 00 00 00 00 85 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 0B 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 0B 00 B9 51 00 2E 29 1F CE 5D 5D 6B 6B 90 00 5A [13:11:13]RAPDU: 2E 29 1F CE 5D 5D 6B 6B 90 00 [13:11:13]wFMCommunicate OK [13:11:13]SAM_PROTO_SignData done [13:11:13]FM_MakeSignedData done [13:11:13]CreateOFDProtocolMessage [13:11:13]wFMCommunicate request_size=4 [13:11:13]MH_SAM_APDU [13:11:13]CAPDU: 80 11 00 00 [13:11:13]Write to MH i2c: E2 08 00 BA 51 80 11 00 00 00 00 00 00 85 [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:13]Read from MH i2c: E2 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 17 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: E2 17 00 BA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [13:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:13]wFMCommunicate OK [13:11:13]CreateOFDProtocolMessage done [13:11:13]OFDSenderStorePacket 166027 [13:11:13]StoreOFDPacket docnum=166027 [13:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D0 0D 07 01 2C AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 02 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 88 02 00 35 04 06 00 1A A0 9B 44 D8 B6 2E 29 1F CE 5D 5D 6B 6B [13:11:13]CheckFolder [13:11:13]dirname=/storage/ofd_packets [13:11:13]CheckFolder done [13:11:13]ProducePacketName [13:11:13]name=ofd_packets/00166027 [13:11:13]NVStorageSaveData ofd_packets/00166027 [13:11:13]File name is /storage/ofd_packets/00166027 [13:11:13]Write 301 bytes [13:11:13]NVStorageSaveData done [13:11:13]OFDSenderStorePacket done [13:11:13]KKMCreateOFDPacket done [13:11:13]NVStorageSaveData kkm_last_timestamp [13:11:13]File name is /storage/kkm_last_timestamp [13:11:13]Write 4 bytes [13:11:13]NVStorageSaveData done [13:11:13]ExternCall_PrintAddStr [13:11:13]wPrintStart [13:11:13]Write to MH i2c: 01 00 00 BB 51 0C [13:11:13]Write i2c OK [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: 01 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: 01 07 00 [13:11:13]MH_I2C_Read... [13:11:13]Read from MH i2c: 01 07 00 BB 51 00 00 00 00 00 FF 0F 21 [13:11:13]RasterBufferAndPrint [13:11:13]line Счет N : (1)220598 [13:11:13]line ИНН: 02508201610067 [13:11:13]line Контрольно-Кассовый Чек [13:11:13]line ПРОДАЖА [13:11:13]line ТРК (МРК, ГНК) : 23 [13:11:13]line Товар: 2710124130 [13:11:13]line Аи-92-К-5 [13:11:13]line 7.480 * 66.90 [13:11:13]line = 500.41 [13:11:13]line НДС 12% НСП 1% [13:11:13]line > о реализуемом товаре [13:11:13]line ОКРУГЛЕНИЕ: -0.41 [13:11:13]line ИТОГО: 500.00 [13:11:13]line Внесено: 500.00 [13:11:13]line СДАЧА: 0.00 [13:11:13]line НСП 1% : 4.43 [13:11:13]line НДС 12% : 53.14 [13:11:13]line Наличными: 500.00 [13:11:13]line Безнал.: 0.00 [13:11:13]line Место: АЗС № 161 "Партнер Нефть" [13:11:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:11:13]line СНО: Общий режим [13:11:13]line Чек 138 21.10.2024 13:11 [13:11:13]line Смена: 535 ФФД: 1.0 [13:11:13]line ЗНМ: 0300000104 [13:11:13]line РНМ: 0000000000091764 [13:11:13]line Версия ККМ: 001 [13:11:13]line ФМ: 0000000000871759 [13:11:13]line ФД: 166027 [13:11:13]line ФПД: 29277102069942 [13:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166027&fm=29277102069942&tin=02508201610067®Number=0000000000091764&sum=50000 [13:11:14]OFD Sender: Processing packet 166027 [packets to send 48, broken 47] [13:11:14]ProducePacketName [13:11:14]name=ofd_packets/00166027 [13:11:14]OFD Sender: To server: pG, [13:11:14]CommunicateWithHost lk.salyk.kg:30040 [13:11:14]ConnectInit lk.salyk.kg [13:11:14]written 0, free lines is 4095 [13:11:14]Write to MH i2c: 01 00 00 E6 51 37 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: 01 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: 01 07 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: 01 07 00 E6 51 00 00 00 00 00 C2 0C 0C [13:11:14]RasterBufferAndPrint [13:11:14]line [13:11:14]line [13:11:14]line [13:11:14]line [13:11:14]line [13:11:14]written 0, free lines is 3272 [13:11:14]MH_Cut [13:11:14]Write to MH i2c: D1 01 00 ED 51 01 10 [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: D1 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: D1 01 00 [13:11:14]MH_I2C_Read... [13:11:14]Read from MH i2c: D1 01 00 ED 51 00 0F [13:11:14]Write to MH i2c: 01 00 00 EE 51 3F [13:11:14]Write i2c OK [13:11:14]MH_I2C_Read... [13:11:15]*** Cut start [13:11:15]*** Partial cut [13:11:15]*** CUTSNS_PIN = 1 [13:11:15]*** CUTSNS_PIN = 0 [13:11:15]*** Brake cut motor [13:11:15]Read from MH i2c: 01 [13:11:15]MH_I2C_Read... [13:11:15]*** Stop cut motor [13:11:15]*** Cut end [13:11:15]Read from MH i2c: 01 07 00 [13:11:15]MH_I2C_Read... [13:11:15]Read from MH i2c: 01 07 00 EE 51 00 00 00 00 00 FF 0F 54 [13:11:15]process_action close_receipt done [13:11:15]requested_data is exist [13:11:15]produce_requested_data [13:11:15]requested_item fm.sn is exist - process it [13:11:15]wFMCommunicate request_size=4 [13:11:15]MH_SAM_APDU [13:11:15]CAPDU: 80 11 00 00 [13:11:15]Write to MH i2c: E2 08 00 EF 51 80 11 00 00 00 00 00 00 BA [13:11:15]Write i2c OK [13:11:15]MH_I2C_Read... [13:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 17 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 17 00 EF 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 12 [13:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:11:16]wFMCommunicate OK [13:11:16]requested_item fd.num is exist - process it [13:11:16]SAM_PROTO_GetFieldsCounters [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 13 00 00 [13:11:16]Write to MH i2c: E2 08 00 F0 51 80 13 00 00 00 00 00 00 BD [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 62 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 62 00 F0 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [13:11:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:16]wFMCommunicate OK [13:11:16]SAM_PROTO_GetFieldsCounters done [13:11:16]requested_item shift.num is exist - process it [13:11:16]requested_item shift.opened is exist - process it [13:11:16]req_shift_opened [13:11:16]FM_GetShiftState [13:11:16]SAM_PROTO_GetShiftState [13:11:16]wFMCommunicate request_size=4 [13:11:16]MH_SAM_APDU [13:11:16]CAPDU: 80 13 01 00 [13:11:16]Write to MH i2c: E2 08 00 F1 51 80 13 01 00 00 00 00 00 BF [13:11:16]Write i2c OK [13:11:16]MH_I2C_Read... [13:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:16]Read from MH i2c: E2 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 0E 00 [13:11:16]MH_I2C_Read... [13:11:16]Read from MH i2c: E2 0E 00 F1 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C8 [13:11:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:11:16]wFMCommunicate OK [13:11:16]SAM_PROTO_GetShiftState done [13:11:16]FM_GetShiftState done [13:11:16]req_shift_opened done [13:11:16]requested_item shift.open_date is exist - process it [13:11:16]req_shift_open_date [13:11:16]req_shift_open_date done [13:11:16]produce_requested_data done [13:11:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166027,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:11:16]process_action_free close_receipt [13:11:16]json_value_free [13:11:16]json_value_free done [13:11:16]process_json_proto returns [13:11:16]Send response to host [13:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166027,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:11:16]free response buf [13:11:16]execute_script done [13:11:16]execute_script returns [13:11:16]free content buf [13:11:16]Sock 6.Close socket [13:11:16]Sock 6.Thread stoped [13:12:37]accept exits with 5 [13:12:37]New connection [13:12:37]New thread 3066920292 created [13:12:37]Thread 3066776932 joined [13:12:37]Waiting for new connection... [13:12:37] Sock 5.Parse request [13:12:37]Sock 5.Check first char [13:12:37]Sock 5.First char is OK [13:12:37]request: POST /json_proto HTTP/1.0 [13:12:37]Method: POST [13:12:37]URL: /json_proto [13:12:37]Method is POST - this is cgi request [13:12:37]url: /json_proto [13:12:37]query_string will be loaded in cgi processing [13:12:37]execute_cgi json_proto POST (null) [13:12:37]execute_cgi path=json_proto method=POST [13:12:37]POST find Content-Length [13:12:37]Host: 172.17.53.195:8080 [13:12:37]Content-Length: 677 [13:12:37]Content-Type: application/json [13:12:37] [13:12:37]POST finish read [13:12:37]Found Content-Length = 677 [13:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:37]execute_script... [13:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:37]POST & json_proto [13:12:37]process_json_proto [13:12:37]json parsed OK: [13:12:37]protocol is kg_v1.0 [13:12:37]action value=close_receipt [13:12:37]process_action close_receipt [13:12:37]cmd_close_receipt [13:12:37]MH_GetDate [13:12:37]Write to MH i2c: F0 00 00 F2 51 32 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 09 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: F0 09 00 F2 51 00 58 53 16 67 21 48 4A 65 7B [13:12:37]GetLastDocTimeStamp 1729516290 [13:12:37]current date 1729516376 [13:12:37]FM_GetShiftState [13:12:37]SAM_PROTO_GetShiftState [13:12:37]wFMCommunicate request_size=4 [13:12:37]MH_SAM_APDU [13:12:37]CAPDU: 80 13 01 00 [13:12:37]Write to MH i2c: E2 08 00 F3 51 80 13 01 00 00 00 00 00 C1 [13:12:37]Write i2c OK [13:12:37]MH_I2C_Read... [13:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:37]Read from MH i2c: E2 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 [13:12:37]MH_I2C_Read... [13:12:37]Read from MH i2c: E2 0E 00 F3 51 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CA [13:12:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:12:37]wFMCommunicate OK [13:12:37]SAM_PROTO_GetShiftState done [13:12:37]FM_GetShiftState done [13:12:37]opened in 1729470944 [13:12:37]opened+sec_in_day 1729557344 [13:12:37]quantity*price = 10035 [13:12:37]sum+1 = 10036 [13:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 139 21.10.2024 13:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166028 ФПД: 13327952105049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131256&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166028&fm=13327952105049&tin=02508201610067®Number=0000000000091764&sum=10000 [13:12:39]StoreToDocumentArchive [13:12:39]shift 535 fd 166028 [13:12:39]save to /storage/0535/doc_00166028 [13:12:39]save last doc name /storage/0535/doc_00166028 to /storage/kkm_last_doc_name [13:12:39]save OK [13:12:39]Clear old archive folders... [13:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:39]tlvbuf is 01BCC190 [13:12:39]SAM_PROTO_ClearQueue [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 09 00 00 [13:12:39]Write to MH i2c: E2 08 00 00 52 80 09 00 00 00 00 00 00 C4 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 00 52 00 90 00 C6 [13:12:39]RAPDU: 90 00 [13:12:39]wFMCommunicate OK [13:12:39]SAM_PROTO_ClearQueue done [13:12:39]KKMCreateOFDPacket [13:12:39]OFDProtocolAddRootSTLVToBuf [13:12:39]FM_MakeSignedData [13:12:39]FM_MakeSignedData [13:12:39]SAM_PROTO_SignData [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 0D 01 02 [13:12:39]Write to MH i2c: E2 08 00 01 52 80 0D 01 02 00 00 00 00 CC [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 01 52 00 90 00 C7 [13:12:39]RAPDU: 90 00 [13:12:39]wFMCommunicate OK [13:12:39]wFMCommunicate request_size=255 [13:12:39]MH_SAM_APDU [13:12: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 58 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 88 02 00 35 04 06 00 0C [13:12:39]Write to MH i2c: E2 02 01 02 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 58 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 88 02 00 35 04 06 00 0C 00 00 37 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 02 52 00 90 00 C8 [13:12:39]RAPDU: 90 00 [13:12:39]wFMCommunicate OK [13:12:39]wFMCommunicate request_size=10 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 0D 02 02 05 1F 27 D9 CE 59 [13:12:39]Write to MH i2c: E2 0D 00 03 52 80 0D 02 02 05 00 1F 27 D9 CE 59 00 00 1F [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 03 00 03 52 00 90 00 C9 [13:12:39]RAPDU: 90 00 [13:12:39]wFMCommunicate OK [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 0D 03 02 [13:12:39]Write to MH i2c: E2 08 00 04 52 80 0D 03 02 00 00 00 00 D1 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 0B 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 0B 00 04 52 00 8E 9F DB B9 6B 22 52 E6 90 00 58 [13:12:39]RAPDU: 8E 9F DB B9 6B 22 52 E6 90 00 [13:12:39]wFMCommunicate OK [13:12:39]SAM_PROTO_SignData done [13:12:39]FM_MakeSignedData done [13:12:39]CreateOFDProtocolMessage [13:12:39]wFMCommunicate request_size=4 [13:12:39]MH_SAM_APDU [13:12:39]CAPDU: 80 11 00 00 [13:12:39]Write to MH i2c: E2 08 00 05 52 80 11 00 00 00 00 00 00 D1 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:39]Read from MH i2c: E2 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 17 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: E2 17 00 05 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [13:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:12:39]wFMCommunicate OK [13:12:39]CreateOFDProtocolMessage done [13:12:39]OFDSenderStorePacket 166028 [13:12:39]StoreOFDPacket docnum=166028 [13:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 3B 07 01 FF 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 58 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 88 02 00 35 04 06 00 0C 1F 27 D9 CE 59 8E 9F DB B9 6B 22 52 E6 [13:12:39]CheckFolder [13:12:39]dirname=/storage/ofd_packets [13:12:39]CheckFolder done [13:12:39]ProducePacketName [13:12:39]name=ofd_packets/00166028 [13:12:39]NVStorageSaveData ofd_packets/00166028 [13:12:39]File name is /storage/ofd_packets/00166028 [13:12:39]Write 301 bytes [13:12:39]NVStorageSaveData done [13:12:39]OFDSenderStorePacket done [13:12:39]KKMCreateOFDPacket done [13:12:39]NVStorageSaveData kkm_last_timestamp [13:12:39]File name is /storage/kkm_last_timestamp [13:12:39]Write 4 bytes [13:12:39]NVStorageSaveData done [13:12:39]ExternCall_PrintAddStr [13:12:39]wPrintStart [13:12:39]Write to MH i2c: 01 00 00 06 52 58 [13:12:39]Write i2c OK [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 [13:12:39]MH_I2C_Read... [13:12:39]Read from MH i2c: 01 07 00 06 52 00 00 00 00 00 FF 0F 6D [13:12:39]RasterBufferAndPrint [13:12:39]line Счет N : (1)220599 [13:12:39]line ИНН: 02508201610067 [13:12:39]line Контрольно-Кассовый Чек [13:12:39]line ПРОДАЖА [13:12:39]line ТРК (МРК, ГНК) : 23 [13:12:39]line Товар: 2710124130 [13:12:39]line Аи-92-К-5 [13:12:39]line 1.500 * 66.90 [13:12:39]line = 100.35 [13:12:39]line НДС 12% НСП 1% [13:12:39]line > о реализуемом товаре [13:12:39]line ОКРУГЛЕНИЕ: -0.35 [13:12:39]line ИТОГО: 100.00 [13:12:39]line Внесено: 100.00 [13:12:39]line СДАЧА: 0.00 [13:12:39]line НСП 1% : 0.89 [13:12:39]line НДС 12% : 10.66 [13:12:39]line Наличными: 100.00 [13:12:39]line Безнал.: 0.00 [13:12:39]line Место: АЗС № 161 "Партнер Нефть" [13:12:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:12:39]line СНО: Общий режим [13:12:39]line Чек 139 21.10.2024 13:12 [13:12:39]line Смена: 535 ФФД: 1.0 [13:12:39]line ЗНМ: 0300000104 [13:12:39]line РНМ: 0000000000091764 [13:12:39]line Версия ККМ: 001 [13:12:39]line ФМ: 0000000000871759 [13:12:39]line ФД: 166028 [13:12:39]line ФПД: 13327952105049 [13:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131256&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166028&fm=13327952105049&tin=02508201610067®Number=0000000000091764&sum=10000 [13:12:39]written 0, free lines is 4095 [13:12:40]Write to MH i2c: 01 00 00 31 52 83 [13:12:40]Write i2c OK [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: 01 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: 01 07 00 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: 01 07 00 31 52 00 00 00 00 00 BE 0C 54 [13:12:40]RasterBufferAndPrint [13:12:40]line [13:12:40]line [13:12:40]line [13:12:40]line [13:12:40]line [13:12:40]written 0, free lines is 3269 [13:12:40]MH_Cut [13:12:40]Write to MH i2c: D1 01 00 38 52 01 5C [13:12:40]Write i2c OK [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: D1 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: D1 01 00 [13:12:40]MH_I2C_Read... [13:12:40]Read from MH i2c: D1 01 00 38 52 00 5B [13:12:40]Write to MH i2c: 01 00 00 39 52 8B [13:12:40]Write i2c OK [13:12:40]MH_I2C_Read... [13:12:41]*** Cut start [13:12:41]*** Partial cut [13:12:41]*** CUTSNS_PIN = 1 [13:12:41]*** CUTSNS_PIN = 0 [13:12:41]*** Brake cut motor [13:12:41]Read from MH i2c: 01 [13:12:41]MH_I2C_Read... [13:12:41]*** Stop cut motor [13:12:41]*** Cut end [13:12:41]Read from MH i2c: 01 07 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: 01 07 00 39 52 00 00 00 00 00 FF 0F A0 [13:12:41]process_action close_receipt done [13:12:41]requested_data is exist [13:12:41]produce_requested_data [13:12:41]requested_item fm.sn is exist - process it [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 11 00 00 [13:12:41]Write to MH i2c: E2 08 00 3A 52 80 11 00 00 00 00 00 00 06 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 17 00 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 17 00 3A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5E [13:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:12:41]wFMCommunicate OK [13:12:41]requested_item fd.num is exist - process it [13:12:41]SAM_PROTO_GetFieldsCounters [13:12:41]wFMCommunicate request_size=4 [13:12:41]MH_SAM_APDU [13:12:41]CAPDU: 80 13 00 00 [13:12:41]Write to MH i2c: E2 08 00 3B 52 80 13 00 00 00 00 00 00 09 [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:41]Read from MH i2c: E2 [13:12:41]MH_I2C_Read... [13:12:41]Read from MH i2c: E2 62 00 [13:12:41]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 62 00 3B 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [13:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:42]wFMCommunicate OK [13:12:42]SAM_PROTO_GetFieldsCounters done [13:12:42]requested_item shift.num is exist - process it [13:12:42]requested_item shift.opened is exist - process it [13:12:42]req_shift_opened [13:12:42]FM_GetShiftState [13:12:42]SAM_PROTO_GetShiftState [13:12:42]wFMCommunicate request_size=4 [13:12:42]MH_SAM_APDU [13:12:42]CAPDU: 80 13 01 00 [13:12:42]Write to MH i2c: E2 08 00 3C 52 80 13 01 00 00 00 00 00 0B [13:12:42]Write i2c OK [13:12:42]MH_I2C_Read... [13:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:42]Read from MH i2c: E2 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 0E 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 0E 00 3C 52 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 14 [13:12:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:12:42]wFMCommunicate OK [13:12:42]SAM_PROTO_GetShiftState done [13:12:42]FM_GetShiftState done [13:12:42]req_shift_opened done [13:12:42]requested_item shift.open_date is exist - process it [13:12:42]req_shift_open_date [13:12:42]req_shift_open_date done [13:12:42]produce_requested_data done [13:12:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166028,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:12:42]process_action_free close_receipt [13:12:42]json_value_free [13:12:42]json_value_free done [13:12:42]process_json_proto returns [13:12:42]Send response to host [13:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166028,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:12:42]free response buf [13:12:42]execute_script done [13:12:42]execute_script returns [13:12:42]free content buf [13:12:42]Sock 5.Close socket [13:12:42]Sock 5.Thread stoped [13:13:24]ConnectInit Can't connect to host [13:13:24]CommunicateWithHost connect error [13:13:24]CommunicateWithHost err = -1 [13:13:24]OFD Sender: Server communicate error [13:13:24]OFD Sender: Processing packet 166027 [packets to send 49, broken 47] [13:13:24]ProducePacketName [13:13:24]name=ofd_packets/00166027 [13:13:24]OFD Sender: To server: pG, [13:13:24]CommunicateWithHost lk.salyk.kg:30040 [13:13:24]ConnectInit lk.salyk.kg [13:13:24]Connected sock=5 [13:13:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D0 0D 07 01 2C AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 02 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8B 88 02 00 35 04 06 00 1A A0 9B 44 D8 B6 2E 29 1F CE 5D 5D 6B 6B [13:13:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E5 04 47 00 05 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 35 39 10 04 04 00 8B 88 02 00 F4 03 04 00 F3 F9 15 67 B6 04 01 00 00 95 70 94 E2 78 09 35 B9 [13:13:24]CommunicateWithHost err = 0 [13:13:24]CheckOFDResponse [13:13:24]1017 (14) - 77093643461234 [13:13:24]1041 (16) - 0000000000871759 [13:13:24]1040 (4) - 166027 [13:13:24]1012 (4) - 21.10.2024 06:51 [13:13:24]1206 (1) - 0 [13:13:24]OFD Sender: Remove packet 166027 [13:13:24]ProducePacketName [13:13:24]name=ofd_packets/00166027 [13:13:24]NVStorageDeleteData [13:13:25]OFD Sender: Processing packet 166028 [packets to send 48, broken 47] [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00166028 [13:13:25]OFD Sender: To server: pG, [13:13:25]CommunicateWithHost lk.salyk.kg:30040 [13:13:25]ConnectInit lk.salyk.kg [13:13:25]Connected sock=5 [13:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3B 3B 07 01 FF 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 58 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 88 02 00 35 04 06 00 0C 1F 27 D9 CE 59 8E 9F DB B9 6B 22 52 E6 [13:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 3B 47 00 A0 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8C 88 02 00 F4 03 04 00 F4 F9 15 67 B6 04 01 00 00 A6 9C 73 B1 EE 8E 43 B4 [13:13:25]CommunicateWithHost err = 0 [13:13:25]CheckOFDResponse [13:13:25]1017 (14) - 77093643461234 [13:13:25]1041 (16) - 0000000000871759 [13:13:25]1040 (4) - 166028 [13:13:25]1012 (4) - 21.10.2024 06:51 [13:13:25]1206 (1) - 0 [13:13:25]OFD Sender: Remove packet 166028 [13:13:25]ProducePacketName [13:13:25]name=ofd_packets/00166028 [13:13:25]NVStorageDeleteData [13:13:26]OFD Sender: No OFD packet to send [13:13:31]OFD Sender: No OFD packet to send [13:13:36]OFD Sender: No OFD packet to send [13:13:41]OFD Sender: No OFD packet to send [13:13:46]OFD Sender: No OFD packet to send [13:13:51]OFD Sender: No OFD packet to send [13:13:56]OFD Sender: No OFD packet to send [13:13:56]accept exits with 6 [13:13:56]New connection [13:13:56]New thread 3066776932 created [13:13:56]Thread 3066920292 joined [13:13:56]Waiting for new connection... [13:13:56] Sock 6.Parse request [13:13:56]Sock 6.Check first char [13:13:56]Sock 6.First char is OK [13:13:56]request: POST /json_proto HTTP/1.0 [13:13:56]Method: POST [13:13:56]URL: /json_proto [13:13:56]Method is POST - this is cgi request [13:13:56]url: /json_proto [13:13:56]query_string will be loaded in cgi processing [13:13:56]execute_cgi json_proto POST (null) [13:13:56]execute_cgi path=json_proto method=POST [13:13:56]POST find Content-Length [13:13:56]Host: 172.17.53.195:8080 [13:13:56]Content-Length: 677 [13:13:56]Content-Type: application/json [13:13:56] [13:13:56]POST finish read [13:13:56]Found Content-Length = 677 [13:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:56]execute_script... [13:13:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:56]POST & json_proto [13:13:56]process_json_proto [13:13:56]json parsed OK: [13:13:56]protocol is kg_v1.0 [13:13:56]action value=close_receipt [13:13:56]process_action close_receipt [13:13:56]cmd_close_receipt [13:13:56]MH_GetDate [13:13:56]Write to MH i2c: F0 00 00 3D 52 7E [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 09 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: F0 09 00 3D 52 00 A7 53 16 67 21 48 4A 65 16 [13:13:56]GetLastDocTimeStamp 1729516376 [13:13:56]current date 1729516455 [13:13:56]FM_GetShiftState [13:13:56]SAM_PROTO_GetShiftState [13:13:56]wFMCommunicate request_size=4 [13:13:56]MH_SAM_APDU [13:13:56]CAPDU: 80 13 01 00 [13:13:56]Write to MH i2c: E2 08 00 3E 52 80 13 01 00 00 00 00 00 0D [13:13:56]Write i2c OK [13:13:56]MH_I2C_Read... [13:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:56]Read from MH i2c: E2 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 0E 00 [13:13:56]MH_I2C_Read... [13:13:56]Read from MH i2c: E2 0E 00 3E 52 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 16 [13:13:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:13:56]wFMCommunicate OK [13:13:56]SAM_PROTO_GetShiftState done [13:13:56]FM_GetShiftState done [13:13:56]opened in 1729470944 [13:13:56]opened+sec_in_day 1729557344 [13:13:56]quantity*price = 60009 [13:13:56]sum+1 = 60010 [13:13:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 140 21.10.2024 13:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166029 ФПД: 237543319821461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131415&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166029&fm=237543319821461&tin=02508201610067®Number=0000000000091764&sum=60000 [13:13:57]StoreToDocumentArchive [13:13:57]shift 535 fd 166029 [13:13:57]save to /storage/0535/doc_00166029 [13:13:57]save last doc name /storage/0535/doc_00166029 to /storage/kkm_last_doc_name [13:13:57]save OK [13:13:57]Clear old archive folders... [13:13:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:13:57]tlvbuf is 01470A80 [13:13:57]SAM_PROTO_ClearQueue [13:13:57]wFMCommunicate request_size=4 [13:13:57]MH_SAM_APDU [13:13:57]CAPDU: 80 09 00 00 [13:13:57]Write to MH i2c: E2 08 00 4B 52 80 09 00 00 00 00 00 00 0F [13:13:57]Write i2c OK [13:13:57]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 4B 52 00 90 00 11 [13:13:58]RAPDU: 90 00 [13:13:58]wFMCommunicate OK [13:13:58]SAM_PROTO_ClearQueue done [13:13:58]KKMCreateOFDPacket [13:13:58]OFDProtocolAddRootSTLVToBuf [13:13:58]FM_MakeSignedData [13:13:58]FM_MakeSignedData [13:13:58]SAM_PROTO_SignData [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 0D 01 02 [13:13:58]Write to MH i2c: E2 08 00 4C 52 80 0D 01 02 00 00 00 00 17 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 4C 52 00 90 00 12 [13:13:58]RAPDU: 90 00 [13:13:58]wFMCommunicate OK [13:13:58]wFMCommunicate request_size=255 [13:13:58]MH_SAM_APDU [13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 A7 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 88 02 00 35 04 06 00 D8 [13:13:58]Write to MH i2c: E2 02 01 4D 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 A7 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 88 02 00 35 04 06 00 D8 00 00 95 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 4D 52 00 90 00 13 [13:13:58]RAPDU: 90 00 [13:13:58]wFMCommunicate OK [13:13:58]wFMCommunicate request_size=10 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 0D 02 02 05 0B 5D 32 5C 95 [13:13:58]Write to MH i2c: E2 0D 00 4E 52 80 0D 02 02 05 00 0B 5D 32 5C 95 00 00 AF [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 03 00 4E 52 00 90 00 14 [13:13:58]RAPDU: 90 00 [13:13:58]wFMCommunicate OK [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 0D 03 02 [13:13:58]Write to MH i2c: E2 08 00 4F 52 80 0D 03 02 00 00 00 00 1C [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 0B 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 0B 00 4F 52 00 85 6F BB 2E 39 5E 92 A4 90 00 C7 [13:13:58]RAPDU: 85 6F BB 2E 39 5E 92 A4 90 00 [13:13:58]wFMCommunicate OK [13:13:58]SAM_PROTO_SignData done [13:13:58]FM_MakeSignedData done [13:13:58]CreateOFDProtocolMessage [13:13:58]wFMCommunicate request_size=4 [13:13:58]MH_SAM_APDU [13:13:58]CAPDU: 80 11 00 00 [13:13:58]Write to MH i2c: E2 08 00 50 52 80 11 00 00 00 00 00 00 1C [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:58]Read from MH i2c: E2 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 17 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: E2 17 00 50 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [13:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:13:58]wFMCommunicate OK [13:13:58]CreateOFDProtocolMessage done [13:13:58]OFDSenderStorePacket 166029 [13:13:58]StoreOFDPacket docnum=166029 [13:13:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E BD 07 01 DF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 A7 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 88 02 00 35 04 06 00 D8 0B 5D 32 5C 95 85 6F BB 2E 39 5E 92 A4 [13:13:58]CheckFolder [13:13:58]dirname=/storage/ofd_packets [13:13:58]CheckFolder done [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00166029 [13:13:58]NVStorageSaveData ofd_packets/00166029 [13:13:58]File name is /storage/ofd_packets/00166029 [13:13:58]Write 301 bytes [13:13:58]NVStorageSaveData done [13:13:58]OFDSenderStorePacket done [13:13:58]KKMCreateOFDPacket done [13:13:58]NVStorageSaveData kkm_last_timestamp [13:13:58]File name is /storage/kkm_last_timestamp [13:13:58]Write 4 bytes [13:13:58]NVStorageSaveData done [13:13:58]ExternCall_PrintAddStr [13:13:58]wPrintStart [13:13:58]Write to MH i2c: 01 00 00 51 52 A3 [13:13:58]Write i2c OK [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 [13:13:58]MH_I2C_Read... [13:13:58]Read from MH i2c: 01 07 00 51 52 00 00 00 00 00 FF 0F B8 [13:13:58]RasterBufferAndPrint [13:13:58]line Счет N : (1)220600 [13:13:58]line ИНН: 02508201610067 [13:13:58]line Контрольно-Кассовый Чек [13:13:58]line ПРОДАЖА [13:13:58]line ТРК (МРК, ГНК) : 43 [13:13:58]line Товар: 2710124130 [13:13:58]line Аи-92-К-5 [13:13:58]line 8.970 * 66.90 [13:13:58]line = 600.09 [13:13:58]line НДС 12% НСП 1% [13:13:58]line > о реализуемом товаре [13:13:58]line ОКРУГЛЕНИЕ: -0.09 [13:13:58]line ИТОГО: 600.00 [13:13:58]line Внесено: 600.00 [13:13:58]line СДАЧА: 0.00 [13:13:58]line НСП 1% : 5.31 [13:13:58]line НДС 12% : 63.73 [13:13:58]line Наличными: 600.00 [13:13:58]line Безнал.: 0.00 [13:13:58]line Место: АЗС № 161 "Партнер Нефть" [13:13:58]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:13:58]line СНО: Общий режим [13:13:58]line Чек 140 21.10.2024 13:14 [13:13:58]line Смена: 535 ФФД: 1.0 [13:13:58]line ЗНМ: 0300000104 [13:13:58]line РНМ: 0000000000091764 [13:13:58]line Версия ККМ: 001 [13:13:58]line ФМ: 0000000000871759 [13:13:58]line ФД: 166029 [13:13:58]line ФПД: 237543319821461 [13:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131415&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166029&fm=237543319821461&tin=02508201610067®Number=0000000000091764&sum=60000 [13:13:58]OFD Sender: Processing packet 166029 [packets to send 48, broken 47] [13:13:58]ProducePacketName [13:13:58]name=ofd_packets/00166029 [13:13:58]OFD Sender: To server: pG, [13:13:58]CommunicateWithHost lk.salyk.kg:30040 [13:13:58]ConnectInit lk.salyk.kg [13:13:58]written 0, free lines is 4095 [13:13:59]Connected sock=7 [13: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 35 39 0F 01 00 00 8E BD 07 01 DF 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 A7 53 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 88 02 00 35 04 06 00 D8 0B 5D 32 5C 95 85 6F BB 2E 39 5E 92 A4 [13:13:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DE 30 47 00 C2 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8D 88 02 00 F4 03 04 00 15 FA 15 67 B6 04 01 00 00 62 50 BB 4B 5E C1 C5 FC [13:13:59]CommunicateWithHost err = 0 [13:13:59]CheckOFDResponse [13:13:59]1017 (14) - 77093643461234 [13:13:59]1041 (16) - 0000000000871759 [13:13:59]1040 (4) - 166029 [13:13:59]1012 (4) - 21.10.2024 06:52 [13:13:59]1206 (1) - 0 [13:13:59]OFD Sender: Remove packet 166029 [13:13:59]ProducePacketName [13:13:59]name=ofd_packets/00166029 [13:13:59]NVStorageDeleteData [13:13:59]Write to MH i2c: 01 00 00 7C 52 CE [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: 01 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: 01 07 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: 01 07 00 7C 52 00 00 00 00 00 D0 0C B1 [13:13:59]RasterBufferAndPrint [13:13:59]line [13:13:59]line [13:13:59]line [13:13:59]line [13:13:59]line [13:13:59]written 0, free lines is 3287 [13:13:59]MH_Cut [13:13:59]Write to MH i2c: D1 01 00 83 52 01 A7 [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: D1 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: D1 01 00 [13:13:59]MH_I2C_Read... [13:13:59]Read from MH i2c: D1 01 00 83 52 00 A6 [13:13:59]Write to MH i2c: 01 00 00 84 52 D6 [13:13:59]Write i2c OK [13:13:59]MH_I2C_Read... [13:13:59]OFD Sender: No OFD packet to send [13:14:00]*** Cut start [13:14:00]*** Partial cut [13:14:00]*** CUTSNS_PIN = 1 [13:14:00]*** CUTSNS_PIN = 0 [13:14:00]*** Brake cut motor [13:14:00]Read from MH i2c: 01 [13:14:00]MH_I2C_Read... [13:14:00]*** Stop cut motor [13:14:00]*** Cut end [13:14:00]Read from MH i2c: 01 07 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: 01 07 00 84 52 00 00 00 00 00 FF 0F EB [13:14:00]process_action close_receipt done [13:14:00]requested_data is exist [13:14:00]produce_requested_data [13:14:00]requested_item fm.sn is exist - process it [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 11 00 00 [13:14:00]Write to MH i2c: E2 08 00 85 52 80 11 00 00 00 00 00 00 51 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 17 00 85 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [13:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:14:00]wFMCommunicate OK [13:14:00]requested_item fd.num is exist - process it [13:14:00]SAM_PROTO_GetFieldsCounters [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 00 00 [13:14:00]Write to MH i2c: E2 08 00 86 52 80 13 00 00 00 00 00 00 54 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 62 00 86 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [13:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetFieldsCounters done [13:14:00]requested_item shift.num is exist - process it [13:14:00]requested_item shift.opened is exist - process it [13:14:00]req_shift_opened [13:14:00]FM_GetShiftState [13:14:00]SAM_PROTO_GetShiftState [13:14:00]wFMCommunicate request_size=4 [13:14:00]MH_SAM_APDU [13:14:00]CAPDU: 80 13 01 00 [13:14:00]Write to MH i2c: E2 08 00 87 52 80 13 01 00 00 00 00 00 56 [13:14:00]Write i2c OK [13:14:00]MH_I2C_Read... [13:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:00]Read from MH i2c: E2 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 [13:14:00]MH_I2C_Read... [13:14:00]Read from MH i2c: E2 0E 00 87 52 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5F [13:14:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:14:00]wFMCommunicate OK [13:14:00]SAM_PROTO_GetShiftState done [13:14:00]FM_GetShiftState done [13:14:00]req_shift_opened done [13:14:00]requested_item shift.open_date is exist - process it [13:14:00]req_shift_open_date [13:14:00]req_shift_open_date done [13:14:00]produce_requested_data done [13:14:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166029,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:14:00]process_action_free close_receipt [13:14:00]json_value_free [13:14:00]json_value_free done [13:14:00]process_json_proto returns [13:14:00]Send response to host [13:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166029,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:14:00]free response buf [13:14:00]execute_script done [13:14:00]execute_script returns [13:14:00]free content buf [13:14:00]Sock 6.Close socket [13:14:00]Sock 6.Thread stoped [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]accept exits with 5 [13:18:39]New connection [13:18:39]New thread 3066920292 created [13:18:39]Thread 3066776932 joined [13:18:39]Waiting for new connection... [13:18:39] Sock 5.Parse request [13:18:39]Sock 5.Check first char [13:18:39]Sock 5.First char is OK [13:18:39]request: POST /json_proto HTTP/1.0 [13:18:39]Method: POST [13:18:39]URL: /json_proto [13:18:39]Method is POST - this is cgi request [13:18:39]url: /json_proto [13:18:39]query_string will be loaded in cgi processing [13:18:39]execute_cgi json_proto POST (null) [13:18:39]execute_cgi path=json_proto method=POST [13:18:39]POST find Content-Length [13:18:39]Host: 172.17.53.195:8080 [13:18:39]Content-Length: 769 [13:18:39]Content-Type: application/json [13:18:39] [13:18:39]POST finish read [13:18:39]Found Content-Length = 769 [13:18:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:39]execute_script... [13:18: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)220601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:39]POST & json_proto [13:18:39]process_json_proto [13:18:39]json parsed OK: [13:18:39]protocol is kg_v1.0 [13:18:39]action value=close_receipt [13:18:39]process_action close_receipt [13:18:39]cmd_close_receipt [13:18:39]MH_GetDate [13:18:39]Write to MH i2c: F0 00 00 88 52 C9 [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: F0 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: F0 09 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: F0 09 00 88 52 00 C2 54 16 67 21 48 4A 65 7D [13:18:39]GetLastDocTimeStamp 1729516455 [13:18:39]current date 1729516738 [13:18:39]FM_GetShiftState [13:18:39]SAM_PROTO_GetShiftState [13:18:39]wFMCommunicate request_size=4 [13:18:39]MH_SAM_APDU [13:18:39]CAPDU: 80 13 01 00 [13:18:39]Write to MH i2c: E2 08 00 89 52 80 13 01 00 00 00 00 00 58 [13:18:39]Write i2c OK [13:18:39]MH_I2C_Read... [13:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:39]Read from MH i2c: E2 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 0E 00 [13:18:39]MH_I2C_Read... [13:18:39]Read from MH i2c: E2 0E 00 89 52 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 61 [13:18:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:18:39]wFMCommunicate OK [13:18:39]SAM_PROTO_GetShiftState done [13:18:39]FM_GetShiftState done [13:18:39]opened in 1729470944 [13:18:39]opened+sec_in_day 1729557344 [13:18:39]quantity*price = 100015 [13:18:39]sum+1 = 100017 [13:18:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 141 21.10.2024 13:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166030 ФПД: 61630286032708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131858&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166030&fm=61630286032708&tin=02508201610067®Number=0000000000091764&sum=100016 [13:18:41]StoreToDocumentArchive [13:18:41]shift 535 fd 166030 [13:18:41]save to /storage/0535/doc_00166030 [13:18:41]save last doc name /storage/0535/doc_00166030 to /storage/kkm_last_doc_name [13:18:41]save OK [13:18:41]Clear old archive folders... [13:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:41]tlvbuf is 014B2E90 [13:18:41]SAM_PROTO_ClearQueue [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 09 00 00 [13:18:41]Write to MH i2c: E2 08 00 96 52 80 09 00 00 00 00 00 00 5A [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 96 52 00 90 00 5C [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_ClearQueue done [13:18:41]KKMCreateOFDPacket [13:18:41]OFDProtocolAddRootSTLVToBuf [13:18:41]FM_MakeSignedData [13:18:41]FM_MakeSignedData [13:18:41]SAM_PROTO_SignData [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 01 02 [13:18:41]Write to MH i2c: E2 08 00 97 52 80 0D 01 02 00 00 00 00 62 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 97 52 00 90 00 5D [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=255 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 54 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 88 02 00 35 04 06 00 38 [13:18:41]Write to MH i2c: E2 02 01 98 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 54 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 88 02 00 35 04 06 00 38 00 00 9B [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 98 52 00 90 00 5E [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=10 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 02 02 05 0D 6B 4E 6F 44 [13:18:41]Write to MH i2c: E2 0D 00 99 52 80 0D 02 02 05 00 0D 6B 4E 6F 44 00 00 E8 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 03 00 99 52 00 90 00 5F [13:18:41]RAPDU: 90 00 [13:18:41]wFMCommunicate OK [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 0D 03 02 [13:18:41]Write to MH i2c: E2 08 00 9A 52 80 0D 03 02 00 00 00 00 67 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0B 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 0B 00 9A 52 00 A9 A5 06 27 B9 26 52 81 90 00 95 [13:18:41]RAPDU: A9 A5 06 27 B9 26 52 81 90 00 [13:18:41]wFMCommunicate OK [13:18:41]SAM_PROTO_SignData done [13:18:41]FM_MakeSignedData done [13:18:41]CreateOFDProtocolMessage [13:18:41]wFMCommunicate request_size=4 [13:18:41]MH_SAM_APDU [13:18:41]CAPDU: 80 11 00 00 [13:18:41]Write to MH i2c: E2 08 00 9B 52 80 11 00 00 00 00 00 00 67 [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:41]Read from MH i2c: E2 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: E2 17 00 9B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [13:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:18:41]wFMCommunicate OK [13:18:41]CreateOFDProtocolMessage done [13:18:41]OFDSenderStorePacket 166030 [13:18:41]StoreOFDPacket docnum=166030 [13:18:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 12 CF 07 01 94 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 54 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 88 02 00 35 04 06 00 38 0D 6B 4E 6F 44 A9 A5 06 27 B9 26 52 81 [13:18:41]CheckFolder [13:18:41]dirname=/storage/ofd_packets [13:18:41]CheckFolder done [13:18:41]ProducePacketName [13:18:41]name=ofd_packets/00166030 [13:18:41]NVStorageSaveData ofd_packets/00166030 [13:18:41]File name is /storage/ofd_packets/00166030 [13:18:41]Write 301 bytes [13:18:41]NVStorageSaveData done [13:18:41]OFDSenderStorePacket done [13:18:41]KKMCreateOFDPacket done [13:18:41]NVStorageSaveData kkm_last_timestamp [13:18:41]File name is /storage/kkm_last_timestamp [13:18:41]Write 4 bytes [13:18:41]NVStorageSaveData done [13:18:41]ExternCall_PrintAddStr [13:18:41]wPrintStart [13:18:41]Write to MH i2c: 01 00 00 9C 52 EE [13:18:41]Write i2c OK [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 07 00 [13:18:41]MH_I2C_Read... [13:18:41]Read from MH i2c: 01 07 00 9C 52 00 00 00 00 00 FF 0F 03 [13:18:41]RasterBufferAndPrint [13:18:41]line Счет N : (1)220601 [13:18:41]line ИНН: 02508201610067 [13:18:41]line Контрольно-Кассовый Чек [13:18:41]line ПРОДАЖА [13:18:41]line ТРК (МРК, ГНК) : 23 [13:18:41]line Товар: 2710124130 [13:18:41]line Аи-92-К-5 [13:18:41]line 14.950 * 66.90 [13:18:41]line = 1000.16 [13:18:41]line НДС 12% НСП 1% [13:18:41]line > о реализуемом товаре [13:18:41]line ИТОГО: 1000.16 [13:18:41]line НСП 1% : 8.85 [13:18:41]line НДС 12% : 106.21 [13:18:41]line Наличными: 0.00 [13:18:41]line Безнал.: 1000.16 [13:18:41]line Место: АЗС № 161 "Партнер Нефть" [13:18:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:18:41]line СНО: Общий режим [13:18:41]line Чек 141 21.10.2024 13:18 [13:18:41]line Смена: 535 ФФД: 1.0 [13:18:41]line ЗНМ: 0300000104 [13:18:41]line РНМ: 0000000000091764 [13:18:41]line Версия ККМ: 001 [13:18:41]line Платежная система: Mbank [13:18:41]line ФМ: 0000000000871759 [13:18:41]line ФД: 166030 [13:18:41]line ФПД: 61630286032708 [13:18:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T131858&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166030&fm=61630286032708&tin=02508201610067®Number=0000000000091764&sum=100016 [13:18:41]written 0, free lines is 4095 [13:18:41]OFD Sender: Processing packet 166030 [packets to send 48, broken 47] [13:18:41]ProducePacketName [13:18:41]name=ofd_packets/00166030 [13:18:41]OFD Sender: To server: pG, [13:18:41]CommunicateWithHost lk.salyk.kg:30040 [13:18:41]ConnectInit lk.salyk.kg [13:18:42]Connected sock=7 [13:18:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 12 CF 07 01 94 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C2 54 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 88 02 00 35 04 06 00 38 0D 6B 4E 6F 44 A9 A5 06 27 B9 26 52 81 [13:18:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BE 84 47 00 5F 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8E 88 02 00 F4 03 04 00 30 FB 15 67 B6 04 01 00 00 7C 1F 9B 31 0B 45 D1 E3 [13:18:42]CommunicateWithHost err = 0 [13:18:42]CheckOFDResponse [13:18:42]1017 (14) - 77093643461234 [13:18:42]1041 (16) - 0000000000871759 [13:18:42]1040 (4) - 166030 [13:18:42]1012 (4) - 21.10.2024 06:56 [13:18:42]1206 (1) - 0 [13:18:42]OFD Sender: Remove packet 166030 [13:18:42]ProducePacketName [13:18:42]name=ofd_packets/00166030 [13:18:42]NVStorageDeleteData [13:18:42]Write to MH i2c: 01 00 00 C5 52 17 [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: 01 07 00 C5 52 00 00 00 00 00 E5 0C 0F [13:18:42]RasterBufferAndPrint [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]line [13:18:42]written 0, free lines is 3307 [13:18:42]MH_Cut [13:18:42]Write to MH i2c: D1 01 00 CC 52 01 F0 [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: D1 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: D1 01 00 [13:18:42]MH_I2C_Read... [13:18:42]Read from MH i2c: D1 01 00 CC 52 00 EF [13:18:42]Write to MH i2c: 01 00 00 CD 52 1F [13:18:42]Write i2c OK [13:18:42]MH_I2C_Read... [13:18:42]OFD Sender: No OFD packet to send [13:18:43]*** Cut start [13:18:43]*** Partial cut [13:18:43]*** CUTSNS_PIN = 1 [13:18:43]*** CUTSNS_PIN = 0 [13:18:43]*** Brake cut motor [13:18:43]Read from MH i2c: 01 [13:18:43]MH_I2C_Read... [13:18:43]*** Stop cut motor [13:18:43]*** Cut end [13:18:43]Read from MH i2c: 01 07 00 [13:18:43]MH_I2C_Read... [13:18:43]Read from MH i2c: 01 07 00 CD 52 00 00 00 00 00 FF 0F 34 [13:18:43]process_action close_receipt done [13:18:43]requested_data is exist [13:18:43]produce_requested_data [13:18:43]requested_item fm.sn is exist - process it [13:18:43]wFMCommunicate request_size=4 [13:18:43]MH_SAM_APDU [13:18:43]CAPDU: 80 11 00 00 [13:18:43]Write to MH i2c: E2 08 00 CE 52 80 11 00 00 00 00 00 00 9A [13:18:43]Write i2c OK [13:18:43]MH_I2C_Read... [13:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:43]Read from MH i2c: E2 [13:18:43]MH_I2C_Read... [13:18:43]Read from MH i2c: E2 17 00 [13:18:43]MH_I2C_Read... [13:18:43]Read from MH i2c: E2 17 00 CE 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [13:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:18:43]wFMCommunicate OK [13:18:43]requested_item fd.num is exist - process it [13:18:43]SAM_PROTO_GetFieldsCounters [13:18:43]wFMCommunicate request_size=4 [13:18:43]MH_SAM_APDU [13:18:43]CAPDU: 80 13 00 00 [13:18:43]Write to MH i2c: E2 08 00 CF 52 80 13 00 00 00 00 00 00 9D [13:18:43]Write i2c OK [13:18:43]MH_I2C_Read... [13:18:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:43]Read from MH i2c: E2 [13:18:43]MH_I2C_Read... [13:18:43]Read from MH i2c: E2 62 00 [13:18:43]MH_I2C_Read... [13:18:43]Read from MH i2c: E2 62 00 CF 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [13:18:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:43]wFMCommunicate OK [13:18:43]SAM_PROTO_GetFieldsCounters done [13:18:43]requested_item shift.num is exist - process it [13:18:43]requested_item shift.opened is exist - process it [13:18:43]req_shift_opened [13:18:43]FM_GetShiftState [13:18:43]SAM_PROTO_GetShiftState [13:18:43]wFMCommunicate request_size=4 [13:18:43]MH_SAM_APDU [13:18:43]CAPDU: 80 13 01 00 [13:18:43]Write to MH i2c: E2 08 00 D0 52 80 13 01 00 00 00 00 00 9F [13:18:43]Write i2c OK [13:18:43]MH_I2C_Read... [13:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:44]Read from MH i2c: E2 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 0E 00 [13:18:44]MH_I2C_Read... [13:18:44]Read from MH i2c: E2 0E 00 D0 52 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A8 [13:18:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:18:44]wFMCommunicate OK [13:18:44]SAM_PROTO_GetShiftState done [13:18:44]FM_GetShiftState done [13:18:44]req_shift_opened done [13:18:44]requested_item shift.open_date is exist - process it [13:18:44]req_shift_open_date [13:18:44]req_shift_open_date done [13:18:44]produce_requested_data done [13:18:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166030,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:18:44]process_action_free close_receipt [13:18:44]json_value_free [13:18:44]json_value_free done [13:18:44]process_json_proto returns [13:18:44]Send response to host [13:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166030,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:18:44]free response buf [13:18:44]execute_script done [13:18:44]execute_script returns [13:18:44]free content buf [13:18:44]Sock 5.Close socket [13:18:44]Sock 5.Thread stoped [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:22]accept exits with 6 [13:28:22]New connection [13:28:22]New thread 3066776932 created [13:28:22]Thread 3066920292 joined [13:28:22]Waiting for new connection... [13:28:22] Sock 6.Parse request [13:28:22]Sock 6.Check first char [13:28:22]Sock 6.First char is OK [13:28:22]request: POST /json_proto HTTP/1.0 [13:28:22]Method: POST [13:28:22]URL: /json_proto [13:28:22]Method is POST - this is cgi request [13:28:22]url: /json_proto [13:28:22]query_string will be loaded in cgi processing [13:28:22]execute_cgi json_proto POST (null) [13:28:22]execute_cgi path=json_proto method=POST [13:28:22]POST find Content-Length [13:28:22]Host: 172.17.53.195:8080 [13:28:22]Content-Length: 766 [13:28:22]Content-Type: application/json [13:28:22] [13:28:22]POST finish read [13:28:22]Found Content-Length = 766 [13:28:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:22]execute_script... [13:28:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:22]POST & json_proto [13:28:22]process_json_proto [13:28:22]json parsed OK: [13:28:22]protocol is kg_v1.0 [13:28:22]action value=close_receipt [13:28:22]process_action close_receipt [13:28:22]cmd_close_receipt [13:28:22]MH_GetDate [13:28:22]Write to MH i2c: F0 00 00 D1 52 12 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 09 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: F0 09 00 D1 52 00 08 57 16 67 21 48 4A 65 0F [13:28:22]GetLastDocTimeStamp 1729516738 [13:28:22]current date 1729517320 [13:28:22]FM_GetShiftState [13:28:22]SAM_PROTO_GetShiftState [13:28:22]wFMCommunicate request_size=4 [13:28:22]MH_SAM_APDU [13:28:22]CAPDU: 80 13 01 00 [13:28:22]Write to MH i2c: E2 08 00 D2 52 80 13 01 00 00 00 00 00 A1 [13:28:22]Write i2c OK [13:28:22]MH_I2C_Read... [13:28:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:22]Read from MH i2c: E2 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: E2 0E 00 [13:28:22]MH_I2C_Read... [13:28:22]Read from MH i2c: E2 0E 00 D2 52 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AA [13:28:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:28:22]wFMCommunicate OK [13:28:22]SAM_PROTO_GetShiftState done [13:28:22]FM_GetShiftState done [13:28:22]opened in 1729470944 [13:28:22]opened+sec_in_day 1729557344 [13:28:22]quantity*price = 400050 [13:28:22]sum+1 = 400051 [13:28:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 142 21.10.2024 13:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166031 ФПД: 215479980948003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132840&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166031&fm=215479980948003&tin=02508201610067®Number=0000000000091764&sum=400050 [13:28:23]StoreToDocumentArchive [13:28:23]shift 535 fd 166031 [13:28:23]save to /storage/0535/doc_00166031 [13:28:23]save last doc name /storage/0535/doc_00166031 to /storage/kkm_last_doc_name [13:28:23]save OK [13:28:23]Clear old archive folders... [13:28:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:28:23]tlvbuf is 018B04D0 [13:28:23]SAM_PROTO_ClearQueue [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 09 00 00 [13:28:23]Write to MH i2c: E2 08 00 DF 52 80 09 00 00 00 00 00 00 A3 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 DF 52 00 90 00 A5 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]SAM_PROTO_ClearQueue done [13:28:23]KKMCreateOFDPacket [13:28:23]OFDProtocolAddRootSTLVToBuf [13:28:23]FM_MakeSignedData [13:28:23]FM_MakeSignedData [13:28:23]SAM_PROTO_SignData [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 01 02 [13:28:23]Write to MH i2c: E2 08 00 E0 52 80 0D 01 02 00 00 00 00 AB [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 E0 52 00 90 00 A6 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]wFMCommunicate request_size=255 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 08 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 88 02 00 35 04 06 00 C3 FA 57 B8 [13:28:23]Write to MH i2c: E2 02 01 E1 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 08 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 88 02 00 35 04 06 00 C3 FA 57 B8 00 00 28 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 E1 52 00 90 00 A7 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]wFMCommunicate request_size=7 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 02 02 02 7A 23 [13:28:23]Write to MH i2c: E2 0A 00 E2 52 80 0D 02 02 02 00 7A 23 00 00 4F [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 03 00 E2 52 00 90 00 A8 [13:28:23]RAPDU: 90 00 [13:28:23]wFMCommunicate OK [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 0D 03 02 [13:28:23]Write to MH i2c: E2 08 00 E3 52 80 0D 03 02 00 00 00 00 B0 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:23]Read from MH i2c: E2 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 0B 00 [13:28:23]MH_I2C_Read... [13:28:23]Read from MH i2c: E2 0B 00 E3 52 00 0D 6A FC BB F3 5D FC 20 90 00 4B [13:28:23]RAPDU: 0D 6A FC BB F3 5D FC 20 90 00 [13:28:23]wFMCommunicate OK [13:28:23]SAM_PROTO_SignData done [13:28:23]FM_MakeSignedData done [13:28:23]CreateOFDProtocolMessage [13:28:23]wFMCommunicate request_size=4 [13:28:23]MH_SAM_APDU [13:28:23]CAPDU: 80 11 00 00 [13:28:23]Write to MH i2c: E2 08 00 E4 52 80 11 00 00 00 00 00 00 B0 [13:28:23]Write i2c OK [13:28:23]MH_I2C_Read... [13:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:24]Read from MH i2c: E2 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 17 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: E2 17 00 E4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [13:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:28:24]wFMCommunicate OK [13:28:24]CreateOFDProtocolMessage done [13:28:24]OFDSenderStorePacket 166031 [13:28:24]StoreOFDPacket docnum=166031 [13:28:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4D 48 04 01 26 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 08 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 88 02 00 35 04 06 00 C3 FA 57 B8 7A 23 0D 6A FC BB F3 5D FC 20 [13:28:24]CheckFolder [13:28:24]dirname=/storage/ofd_packets [13:28:24]CheckFolder done [13:28:24]ProducePacketName [13:28:24]name=ofd_packets/00166031 [13:28:24]NVStorageSaveData ofd_packets/00166031 [13:28:24]File name is /storage/ofd_packets/00166031 [13:28:24]Write 298 bytes [13:28:24]NVStorageSaveData done [13:28:24]OFDSenderStorePacket done [13:28:24]KKMCreateOFDPacket done [13:28:24]NVStorageSaveData kkm_last_timestamp [13:28:24]File name is /storage/kkm_last_timestamp [13:28:24]Write 4 bytes [13:28:24]NVStorageSaveData done [13:28:24]ExternCall_PrintAddStr [13:28:24]wPrintStart [13:28:24]Write to MH i2c: 01 00 00 E5 52 37 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 E5 52 00 00 00 00 00 FF 0F 4C [13:28:24]RasterBufferAndPrint [13:28:24]line Счет N : (1)220602 [13:28:24]line ИНН: 02508201610067 [13:28:24]line Контрольно-Кассовый Чек [13:28:24]line ПРОДАЖА [13:28:24]line ТРК (МРК, ГНК) : 31 [13:28:24]line Товар: 2710194210 [13:28:24]line ДТ-К-5 [13:28:24]line 52.500 * 76.20 [13:28:24]line = 4000.50 [13:28:24]line НДС 12% НСП 1% [13:28:24]line > о реализуемом товаре [13:28:24]line ИТОГО: 4000.50 [13:28:24]line НСП 1% : 35.40 [13:28:24]line НДС 12% : 424.83 [13:28:24]line Наличными: 0.00 [13:28:24]line Безнал.: 4000.50 [13:28:24]line Место: АЗС № 161 "Партнер Нефть" [13:28:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:28:24]line СНО: Общий режим [13:28:24]line Чек 142 21.10.2024 13:28 [13:28:24]line Смена: 535 ФФД: 1.0 [13:28:24]line ЗНМ: 0300000104 [13:28:24]line РНМ: 0000000000091764 [13:28:24]line Версия ККМ: 001 [13:28:24]line Платежная система: Mbank [13:28:24]line ФМ: 0000000000871759 [13:28:24]line ФД: 166031 [13:28:24]line ФПД: 215479980948003 [13:28:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132840&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166031&fm=215479980948003&tin=02508201610067®Number=0000000000091764&sum=400050 [13:28:24]written 0, free lines is 4095 [13:28:24]OFD Sender: Processing packet 166031 [packets to send 48, broken 47] [13:28:24]ProducePacketName [13:28:24]name=ofd_packets/00166031 [13:28:24]OFD Sender: To server: pG, [13:28:24]CommunicateWithHost lk.salyk.kg:30040 [13:28:24]ConnectInit lk.salyk.kg [13:28:24]Connected sock=9 [13:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4D 48 04 01 26 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 08 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 88 02 00 35 04 06 00 C3 FA 57 B8 7A 23 0D 6A FC BB F3 5D FC 20 [13:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2A 46 47 00 3A E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 8F 88 02 00 F4 03 04 00 76 FD 15 67 B6 04 01 00 00 1D 22 C2 2C A1 E5 1D 0D [13:28:24]CommunicateWithHost err = 0 [13:28:24]CheckOFDResponse [13:28:24]1017 (14) - 77093643461234 [13:28:24]1041 (16) - 0000000000871759 [13:28:24]1040 (4) - 166031 [13:28:24]1012 (4) - 21.10.2024 07:06 [13:28:24]1206 (1) - 0 [13:28:24]OFD Sender: Remove packet 166031 [13:28:24]ProducePacketName [13:28:24]name=ofd_packets/00166031 [13:28:24]NVStorageDeleteData [13:28:24]Write to MH i2c: 01 00 00 0E 53 61 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: 01 07 00 0E 53 00 00 00 00 00 FA 0C 6E [13:28:24]RasterBufferAndPrint [13:28:24]line [13:28:24]line [13:28:24]line [13:28:24]line [13:28:24]line [13:28:24]written 0, free lines is 3326 [13:28:24]MH_Cut [13:28:24]Write to MH i2c: D1 01 00 15 53 01 3A [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: D1 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: D1 01 00 [13:28:24]MH_I2C_Read... [13:28:24]Read from MH i2c: D1 01 00 15 53 00 39 [13:28:24]Write to MH i2c: 01 00 00 16 53 69 [13:28:24]Write i2c OK [13:28:24]MH_I2C_Read... [13:28:24]OFD Sender: No OFD packet to send [13:28:25]*** Cut start [13:28:25]*** Partial cut [13:28:25]*** CUTSNS_PIN = 1 [13:28:25]*** CUTSNS_PIN = 0 [13:28:25]*** Brake cut motor [13:28:25]Read from MH i2c: 01 [13:28:25]MH_I2C_Read... [13:28:25]*** Stop cut motor [13:28:25]*** Cut end [13:28:25]Read from MH i2c: 01 07 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: 01 07 00 16 53 00 00 00 00 00 FF 0F 7E [13:28:25]process_action close_receipt done [13:28:25]requested_data is exist [13:28:25]produce_requested_data [13:28:25]requested_item fm.sn is exist - process it [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 11 00 00 [13:28:25]Write to MH i2c: E2 08 00 17 53 80 11 00 00 00 00 00 00 E4 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:25]Read from MH i2c: E2 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 17 00 [13:28:25]MH_I2C_Read... [13:28:25]Read from MH i2c: E2 17 00 17 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [13:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:28:25]wFMCommunicate OK [13:28:25]requested_item fd.num is exist - process it [13:28:25]SAM_PROTO_GetFieldsCounters [13:28:25]wFMCommunicate request_size=4 [13:28:25]MH_SAM_APDU [13:28:25]CAPDU: 80 13 00 00 [13:28:25]Write to MH i2c: E2 08 00 18 53 80 13 00 00 00 00 00 00 E7 [13:28:25]Write i2c OK [13:28:25]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 62 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 62 00 18 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [13:28:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 8F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:26]wFMCommunicate OK [13:28:26]SAM_PROTO_GetFieldsCounters done [13:28:26]requested_item shift.num is exist - process it [13:28:26]requested_item shift.opened is exist - process it [13:28:26]req_shift_opened [13:28:26]FM_GetShiftState [13:28:26]SAM_PROTO_GetShiftState [13:28:26]wFMCommunicate request_size=4 [13:28:26]MH_SAM_APDU [13:28:26]CAPDU: 80 13 01 00 [13:28:26]Write to MH i2c: E2 08 00 19 53 80 13 01 00 00 00 00 00 E9 [13:28:26]Write i2c OK [13:28:26]MH_I2C_Read... [13:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:26]Read from MH i2c: E2 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 0E 00 [13:28:26]MH_I2C_Read... [13:28:26]Read from MH i2c: E2 0E 00 19 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F2 [13:28:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:28:26]wFMCommunicate OK [13:28:26]SAM_PROTO_GetShiftState done [13:28:26]FM_GetShiftState done [13:28:26]req_shift_opened done [13:28:26]requested_item shift.open_date is exist - process it [13:28:26]req_shift_open_date [13:28:26]req_shift_open_date done [13:28:26]produce_requested_data done [13:28:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166031,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:28:26]process_action_free close_receipt [13:28:26]json_value_free [13:28:26]json_value_free done [13:28:26]process_json_proto returns [13:28:26]Send response to host [13:28:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166031,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:28:26]free response buf [13:28:26]execute_script done [13:28:26]execute_script returns [13:28:26]free content buf [13:28:26]Sock 6.Close socket [13:28:26]Sock 6.Thread stoped [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:15]accept exits with 5 [13:29:15]New connection [13:29:15]New thread 3066920292 created [13:29:15]Thread 3066776932 joined [13:29:15]Waiting for new connection... [13:29:15] Sock 5.Parse request [13:29:15]Sock 5.Check first char [13:29:15]Sock 5.First char is OK [13:29:15]request: POST /json_proto HTTP/1.0 [13:29:15]Method: POST [13:29:15]URL: /json_proto [13:29:15]Method is POST - this is cgi request [13:29:15]url: /json_proto [13:29:15]query_string will be loaded in cgi processing [13:29:15]execute_cgi json_proto POST (null) [13:29:15]execute_cgi path=json_proto method=POST [13:29:15]POST find Content-Length [13:29:15]Host: 172.17.53.195:8080 [13:29:15]Content-Length: 677 [13:29:15]Content-Type: application/json [13:29:15] [13:29:15]POST finish read [13:29:15]Found Content-Length = 677 [13:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:15]execute_script... [13:29: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)220603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:29:15]POST & json_proto [13:29:15]process_json_proto [13:29:15]json parsed OK: [13:29:15]protocol is kg_v1.0 [13:29:15]action value=close_receipt [13:29:15]process_action close_receipt [13:29:15]cmd_close_receipt [13:29:15]MH_GetDate [13:29:15]Write to MH i2c: F0 00 00 1A 53 5C [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: F0 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: F0 09 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: F0 09 00 1A 53 00 3E 57 16 67 21 48 4A 65 8F [13:29:15]GetLastDocTimeStamp 1729517320 [13:29:15]current date 1729517374 [13:29:15]FM_GetShiftState [13:29:15]SAM_PROTO_GetShiftState [13:29:15]wFMCommunicate request_size=4 [13:29:15]MH_SAM_APDU [13:29:15]CAPDU: 80 13 01 00 [13:29:15]Write to MH i2c: E2 08 00 1B 53 80 13 01 00 00 00 00 00 EB [13:29:15]Write i2c OK [13:29:15]MH_I2C_Read... [13:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:15]Read from MH i2c: E2 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0E 00 [13:29:15]MH_I2C_Read... [13:29:15]Read from MH i2c: E2 0E 00 1B 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F4 [13:29:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:29:15]wFMCommunicate OK [13:29:15]SAM_PROTO_GetShiftState done [13:29:15]FM_GetShiftState done [13:29:15]opened in 1729470944 [13:29:15]opened+sec_in_day 1729557344 [13:29:15]quantity*price = 60009 [13:29:15]sum+1 = 60010 [13:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 143 21.10.2024 13:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166032 ФПД: 113789386831900 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132934&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166032&fm=113789386831900&tin=02508201610067®Number=0000000000091764&sum=60000 [13:29:17]StoreToDocumentArchive [13:29:17]shift 535 fd 166032 [13:29:17]save to /storage/0535/doc_00166032 [13:29:17]save last doc name /storage/0535/doc_00166032 to /storage/kkm_last_doc_name [13:29:17]save OK [13:29:17]Clear old archive folders... [13:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:29:17]tlvbuf is 015ADEB0 [13:29:17]SAM_PROTO_ClearQueue [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 09 00 00 [13:29:17]Write to MH i2c: E2 08 00 28 53 80 09 00 00 00 00 00 00 ED [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 28 53 00 90 00 EF [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_ClearQueue done [13:29:17]KKMCreateOFDPacket [13:29:17]OFDProtocolAddRootSTLVToBuf [13:29:17]FM_MakeSignedData [13:29:17]FM_MakeSignedData [13:29:17]SAM_PROTO_SignData [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 01 02 [13:29:17]Write to MH i2c: E2 08 00 29 53 80 0D 01 02 00 00 00 00 F5 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 29 53 00 90 00 F0 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]wFMCommunicate request_size=255 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3E 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 88 02 00 35 04 06 00 67 [13:29:17]Write to MH i2c: E2 02 01 2A 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3E 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 88 02 00 35 04 06 00 67 00 00 A3 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 2A 53 00 90 00 F1 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]wFMCommunicate request_size=10 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 02 02 05 7D A7 FB 38 1C [13:29:17]Write to MH i2c: E2 0D 00 2B 53 80 0D 02 02 05 00 7D A7 FB 38 1C 00 00 75 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 03 00 2B 53 00 90 00 F2 [13:29:17]RAPDU: 90 00 [13:29:17]wFMCommunicate OK [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 0D 03 02 [13:29:17]Write to MH i2c: E2 08 00 2C 53 80 0D 03 02 00 00 00 00 FA [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0B 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 0B 00 2C 53 00 AB DF 2B 7D 65 2C 9F 0D 90 00 6A [13:29:17]RAPDU: AB DF 2B 7D 65 2C 9F 0D 90 00 [13:29:17]wFMCommunicate OK [13:29:17]SAM_PROTO_SignData done [13:29:17]FM_MakeSignedData done [13:29:17]CreateOFDProtocolMessage [13:29:17]wFMCommunicate request_size=4 [13:29:17]MH_SAM_APDU [13:29:17]CAPDU: 80 11 00 00 [13:29:17]Write to MH i2c: E2 08 00 2D 53 80 11 00 00 00 00 00 00 FA [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:17]Read from MH i2c: E2 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: E2 17 00 2D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [13:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:29:17]wFMCommunicate OK [13:29:17]CreateOFDProtocolMessage done [13:29:17]OFDSenderStorePacket 166032 [13:29:17]StoreOFDPacket docnum=166032 [13:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 5A 07 01 D8 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3E 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 88 02 00 35 04 06 00 67 7D A7 FB 38 1C AB DF 2B 7D 65 2C 9F 0D [13:29:17]CheckFolder [13:29:17]dirname=/storage/ofd_packets [13:29:17]CheckFolder done [13:29:17]ProducePacketName [13:29:17]name=ofd_packets/00166032 [13:29:17]NVStorageSaveData ofd_packets/00166032 [13:29:17]File name is /storage/ofd_packets/00166032 [13:29:17]Write 301 bytes [13:29:17]NVStorageSaveData done [13:29:17]OFDSenderStorePacket done [13:29:17]KKMCreateOFDPacket done [13:29:17]NVStorageSaveData kkm_last_timestamp [13:29:17]File name is /storage/kkm_last_timestamp [13:29:17]Write 4 bytes [13:29:17]NVStorageSaveData done [13:29:17]ExternCall_PrintAddStr [13:29:17]wPrintStart [13:29:17]Write to MH i2c: 01 00 00 2E 53 81 [13:29:17]Write i2c OK [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 07 00 [13:29:17]MH_I2C_Read... [13:29:17]Read from MH i2c: 01 07 00 2E 53 00 00 00 00 00 FF 0F 96 [13:29:17]RasterBufferAndPrint [13:29:17]line Счет N : (1)220603 [13:29:17]line ИНН: 02508201610067 [13:29:17]line Контрольно-Кассовый Чек [13:29:17]line ПРОДАЖА [13:29:17]line ТРК (МРК, ГНК) : 23 [13:29:17]line Товар: 2710124130 [13:29:17]line Аи-92-К-5 [13:29:17]line 8.970 * 66.90 [13:29:17]line = 600.09 [13:29:17]line НДС 12% НСП 1% [13:29:17]line > о реализуемом товаре [13:29:17]line ОКРУГЛЕНИЕ: -0.09 [13:29:17]line ИТОГО: 600.00 [13:29:17]line Внесено: 600.00 [13:29:17]line СДАЧА: 0.00 [13:29:17]line НСП 1% : 5.31 [13:29:17]line НДС 12% : 63.73 [13:29:17]line Наличными: 600.00 [13:29:17]line Безнал.: 0.00 [13:29:17]line Место: АЗС № 161 "Партнер Нефть" [13:29:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:29:17]line СНО: Общий режим [13:29:17]line Чек 143 21.10.2024 13:29 [13:29:17]line Смена: 535 ФФД: 1.0 [13:29:17]line ЗНМ: 0300000104 [13:29:17]line РНМ: 0000000000091764 [13:29:17]line Версия ККМ: 001 [13:29:17]line ФМ: 0000000000871759 [13:29:17]line ФД: 166032 [13:29:17]line ФПД: 113789386831900 [13:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T132934&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166032&fm=113789386831900&tin=02508201610067®Number=0000000000091764&sum=60000 [13:29:17]OFD Sender: Processing packet 166032 [packets to send 48, broken 47] [13:29:17]ProducePacketName [13:29:17]name=ofd_packets/00166032 [13:29:17]OFD Sender: To server: pG, [13:29:17]CommunicateWithHost lk.salyk.kg:30040 [13:29:17]ConnectInit lk.salyk.kg [13:29:17]written 0, free lines is 4095 [13:29:18]Connected sock=7 [13:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 5A 07 01 D8 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 3E 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 90 88 02 00 35 04 06 00 67 7D A7 FB 38 1C AB DF 2B 7D 65 2C 9F 0D [13:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 46 61 47 00 E5 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 35 39 10 04 04 00 90 88 02 00 F4 03 04 00 AC FD 15 67 B6 04 01 00 00 D8 23 A6 E0 C5 41 CA A1 [13:29:18]CommunicateWithHost err = 0 [13:29:18]CheckOFDResponse [13:29:18]1017 (14) - 77093643461234 [13:29:18]1041 (16) - 0000000000871759 [13:29:18]1040 (4) - 166032 [13:29:18]1012 (4) - 21.10.2024 07:07 [13:29:18]1206 (1) - 0 [13:29:18]OFD Sender: Remove packet 166032 [13:29:18]ProducePacketName [13:29:18]name=ofd_packets/00166032 [13:29:18]NVStorageDeleteData [13:29:18]Write to MH i2c: 01 00 00 59 53 AC [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: 01 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: 01 07 00 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: 01 07 00 59 53 00 00 00 00 00 CD 0C 8C [13:29:18]RasterBufferAndPrint [13:29:18]line [13:29:18]line [13:29:18]line [13:29:18]line [13:29:18]line [13:29:18]written 0, free lines is 3281 [13:29:18]MH_Cut [13:29:18]Write to MH i2c: D1 01 00 60 53 01 85 [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: D1 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: D1 01 00 [13:29:18]MH_I2C_Read... [13:29:18]Read from MH i2c: D1 01 00 60 53 00 84 [13:29:18]Write to MH i2c: 01 00 00 61 53 B4 [13:29:18]Write i2c OK [13:29:18]MH_I2C_Read... [13:29:18]OFD Sender: No OFD packet to send [13:29:19]*** Cut start [13:29:19]*** Partial cut [13:29:19]*** CUTSNS_PIN = 1 [13:29:19]*** CUTSNS_PIN = 0 [13:29:19]*** Brake cut motor [13:29:19]Read from MH i2c: 01 [13:29:19]MH_I2C_Read... [13:29:19]*** Stop cut motor [13:29:19]*** Cut end [13:29:19]Read from MH i2c: 01 07 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: 01 07 00 61 53 00 00 00 00 00 FF 0F C9 [13:29:19]process_action close_receipt done [13:29:19]requested_data is exist [13:29:19]produce_requested_data [13:29:19]requested_item fm.sn is exist - process it [13:29:19]wFMCommunicate request_size=4 [13:29:19]MH_SAM_APDU [13:29:19]CAPDU: 80 11 00 00 [13:29:19]Write to MH i2c: E2 08 00 62 53 80 11 00 00 00 00 00 00 2F [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:29:19]Read from MH i2c: E2 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 17 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 17 00 62 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 87 [13:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:29:19]wFMCommunicate OK [13:29:19]requested_item fd.num is exist - process it [13:29:19]SAM_PROTO_GetFieldsCounters [13:29:19]wFMCommunicate request_size=4 [13:29:19]MH_SAM_APDU [13:29:19]CAPDU: 80 13 00 00 [13:29:19]Write to MH i2c: E2 08 00 63 53 80 13 00 00 00 00 00 00 32 [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:29:19]Read from MH i2c: E2 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 62 00 [13:29:19]MH_I2C_Read... [13:29:19]Read from MH i2c: E2 62 00 63 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [13:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 90 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:29:19]wFMCommunicate OK [13:29:19]SAM_PROTO_GetFieldsCounters done [13:29:19]requested_item shift.num is exist - process it [13:29:19]requested_item shift.opened is exist - process it [13:29:19]req_shift_opened [13:29:19]FM_GetShiftState [13:29:19]SAM_PROTO_GetShiftState [13:29:19]wFMCommunicate request_size=4 [13:29:19]MH_SAM_APDU [13:29:19]CAPDU: 80 13 01 00 [13:29:19]Write to MH i2c: E2 08 00 64 53 80 13 01 00 00 00 00 00 34 [13:29:19]Write i2c OK [13:29:19]MH_I2C_Read... [13:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:29:20]Read from MH i2c: E2 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0E 00 [13:29:20]MH_I2C_Read... [13:29:20]Read from MH i2c: E2 0E 00 64 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3D [13:29:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:29:20]wFMCommunicate OK [13:29:20]SAM_PROTO_GetShiftState done [13:29:20]FM_GetShiftState done [13:29:20]req_shift_opened done [13:29:20]requested_item shift.open_date is exist - process it [13:29:20]req_shift_open_date [13:29:20]req_shift_open_date done [13:29:20]produce_requested_data done [13:29:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166032,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:29:20]process_action_free close_receipt [13:29:20]json_value_free [13:29:20]json_value_free done [13:29:20]process_json_proto returns [13:29:20]Send response to host [13:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166032,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:29:20]free response buf [13:29:20]execute_script done [13:29:20]execute_script returns [13:29:20]free content buf [13:29:20]Sock 5.Close socket [13:29:20]Sock 5.Thread stoped [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:50]accept exits with 6 [13:31:50]New connection [13:31:50]New thread 3066776932 created [13:31:50]Thread 3066920292 joined [13:31:50]Waiting for new connection... [13:31:50] Sock 6.Parse request [13:31:50]Sock 6.Check first char [13:31:50]Sock 6.First char is OK [13:31:50]request: POST /json_proto HTTP/1.0 [13:31:50]Method: POST [13:31:50]URL: /json_proto [13:31:50]Method is POST - this is cgi request [13:31:50]url: /json_proto [13:31:50]query_string will be loaded in cgi processing [13:31:50]execute_cgi json_proto POST (null) [13:31:50]execute_cgi path=json_proto method=POST [13:31:50]POST find Content-Length [13:31:50]Host: 172.17.53.195:8080 [13:31:50]Content-Length: 677 [13:31:50]Content-Type: application/json [13:31:50] [13:31:50]POST finish read [13:31:50]Found Content-Length = 677 [13:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:50]execute_script... [13:31: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)220605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:50]POST & json_proto [13:31:50]process_json_proto [13:31:50]json parsed OK: [13:31:50]protocol is kg_v1.0 [13:31:50]action value=close_receipt [13:31:50]process_action close_receipt [13:31:50]cmd_close_receipt [13:31:50]MH_GetDate [13:31:50]Write to MH i2c: F0 00 00 65 53 A7 [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: F0 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: F0 09 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: F0 09 00 65 53 00 D8 57 16 67 21 48 4A 65 74 [13:31:50]GetLastDocTimeStamp 1729517374 [13:31:50]current date 1729517528 [13:31:50]FM_GetShiftState [13:31:50]SAM_PROTO_GetShiftState [13:31:50]wFMCommunicate request_size=4 [13:31:50]MH_SAM_APDU [13:31:50]CAPDU: 80 13 01 00 [13:31:50]Write to MH i2c: E2 08 00 66 53 80 13 01 00 00 00 00 00 36 [13:31:50]Write i2c OK [13:31:50]MH_I2C_Read... [13:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:50]Read from MH i2c: E2 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: E2 0E 00 [13:31:50]MH_I2C_Read... [13:31:50]Read from MH i2c: E2 0E 00 66 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3F [13:31:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:31:50]wFMCommunicate OK [13:31:50]SAM_PROTO_GetShiftState done [13:31:50]FM_GetShiftState done [13:31:50]opened in 1729470944 [13:31:50]opened+sec_in_day 1729557344 [13:31:50]quantity*price = 20003 [13:31:50]sum+1 = 20004 [13:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 144 21.10.2024 13:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166033 ФПД: 265475056236920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166033&fm=265475056236920&tin=02508201610067®Number=0000000000091764&sum=20000 [13:31:51]StoreToDocumentArchive [13:31:51]shift 535 fd 166033 [13:31:51]save to /storage/0535/doc_00166033 [13:31:51]save last doc name /storage/0535/doc_00166033 to /storage/kkm_last_doc_name [13:31:51]save OK [13:31:51]Clear old archive folders... [13:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:31:51]tlvbuf is 01BAB340 [13:31:51]SAM_PROTO_ClearQueue [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 09 00 00 [13:31:51]Write to MH i2c: E2 08 00 73 53 80 09 00 00 00 00 00 00 38 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 73 53 00 90 00 3A [13:31:51]RAPDU: 90 00 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_ClearQueue done [13:31:51]KKMCreateOFDPacket [13:31:51]OFDProtocolAddRootSTLVToBuf [13:31:51]FM_MakeSignedData [13:31:51]FM_MakeSignedData [13:31:51]SAM_PROTO_SignData [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 0D 01 02 [13:31:51]Write to MH i2c: E2 08 00 74 53 80 0D 01 02 00 00 00 00 40 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 74 53 00 90 00 3B [13:31:51]RAPDU: 90 00 [13:31:51]wFMCommunicate OK [13:31:51]wFMCommunicate request_size=255 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D8 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 88 02 00 35 04 06 00 F1 [13:31:51]Write to MH i2c: E2 02 01 75 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D8 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 88 02 00 35 04 06 00 F1 00 00 F9 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 75 53 00 90 00 3C [13:31:51]RAPDU: 90 00 [13:31:51]wFMCommunicate OK [13:31:51]wFMCommunicate request_size=10 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 0D 02 02 05 72 BA 6C 79 78 [13:31:51]Write to MH i2c: E2 0D 00 76 53 80 0D 02 02 05 00 72 BA 6C 79 78 00 00 D6 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 03 00 76 53 00 90 00 3D [13:31:51]RAPDU: 90 00 [13:31:51]wFMCommunicate OK [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 0D 03 02 [13:31:51]Write to MH i2c: E2 08 00 77 53 80 0D 03 02 00 00 00 00 45 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0B 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 0B 00 77 53 00 DA 36 D9 1B 3E F3 9A 24 90 00 39 [13:31:51]RAPDU: DA 36 D9 1B 3E F3 9A 24 90 00 [13:31:51]wFMCommunicate OK [13:31:51]SAM_PROTO_SignData done [13:31:51]FM_MakeSignedData done [13:31:51]CreateOFDProtocolMessage [13:31:51]wFMCommunicate request_size=4 [13:31:51]MH_SAM_APDU [13:31:51]CAPDU: 80 11 00 00 [13:31:51]Write to MH i2c: E2 08 00 78 53 80 11 00 00 00 00 00 00 45 [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:51]Read from MH i2c: E2 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 17 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: E2 17 00 78 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [13:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:31:51]wFMCommunicate OK [13:31:51]CreateOFDProtocolMessage done [13:31:51]OFDSenderStorePacket 166033 [13:31:51]StoreOFDPacket docnum=166033 [13:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 3E 07 01 7C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D8 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 88 02 00 35 04 06 00 F1 72 BA 6C 79 78 DA 36 D9 1B 3E F3 9A 24 [13:31:51]CheckFolder [13:31:51]dirname=/storage/ofd_packets [13:31:51]CheckFolder done [13:31:51]ProducePacketName [13:31:51]name=ofd_packets/00166033 [13:31:51]NVStorageSaveData ofd_packets/00166033 [13:31:51]File name is /storage/ofd_packets/00166033 [13:31:51]Write 301 bytes [13:31:51]NVStorageSaveData done [13:31:51]OFDSenderStorePacket done [13:31:51]KKMCreateOFDPacket done [13:31:51]NVStorageSaveData kkm_last_timestamp [13:31:51]File name is /storage/kkm_last_timestamp [13:31:51]Write 4 bytes [13:31:51]NVStorageSaveData done [13:31:51]ExternCall_PrintAddStr [13:31:51]wPrintStart [13:31:51]Write to MH i2c: 01 00 00 79 53 CC [13:31:51]Write i2c OK [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: 01 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: 01 07 00 [13:31:51]MH_I2C_Read... [13:31:51]Read from MH i2c: 01 07 00 79 53 00 00 00 00 00 FF 0F E1 [13:31:51]RasterBufferAndPrint [13:31:51]line Счет N : (1)220605 [13:31:51]line ИНН: 02508201610067 [13:31:51]line Контрольно-Кассовый Чек [13:31:51]line ПРОДАЖА [13:31:51]line ТРК (МРК, ГНК) : 33 [13:31:51]line Товар: 2710124130 [13:31:51]line Аи-92-К-5 [13:31:51]line 2.990 * 66.90 [13:31:51]line = 200.03 [13:31:51]line НДС 12% НСП 1% [13:31:51]line > о реализуемом товаре [13:31:51]line ОКРУГЛЕНИЕ: -0.03 [13:31:51]line ИТОГО: 200.00 [13:31:51]line Внесено: 200.00 [13:31:51]line СДАЧА: 0.00 [13:31:51]line НСП 1% : 1.77 [13:31:51]line НДС 12% : 21.24 [13:31:51]line Наличными: 200.00 [13:31:51]line Безнал.: 0.00 [13:31:51]line Место: АЗС № 161 "Партнер Нефть" [13:31:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:31:51]line СНО: Общий режим [13:31:51]line Чек 144 21.10.2024 13:32 [13:31:51]line Смена: 535 ФФД: 1.0 [13:31:51]line ЗНМ: 0300000104 [13:31:51]line РНМ: 0000000000091764 [13:31:51]line Версия ККМ: 001 [13:31:51]line ФМ: 0000000000871759 [13:31:51]line ФД: 166033 [13:31:51]line ФПД: 265475056236920 [13:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133208&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166033&fm=265475056236920&tin=02508201610067®Number=0000000000091764&sum=20000 [13:31:51]OFD Sender: Processing packet 166033 [packets to send 48, broken 47] [13:31:51]ProducePacketName [13:31:51]name=ofd_packets/00166033 [13:31:52]OFD Sender: To server: pG, [13:31:52]CommunicateWithHost lk.salyk.kg:30040 [13:31:52]ConnectInit lk.salyk.kg [13:31:52]written 0, free lines is 4095 [13:31:52]Connected sock=5 [13:31:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 3E 07 01 7C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 D8 57 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 88 02 00 35 04 06 00 F1 72 BA 6C 79 78 DA 36 D9 1B 3E F3 9A 24 [13:31:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C4 4A 47 00 C0 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 91 88 02 00 F4 03 04 00 47 FE 15 67 B6 04 01 00 00 9B A3 6C BD 12 2F 04 DB [13:31:52]CommunicateWithHost err = 0 [13:31:52]CheckOFDResponse [13:31:52]1017 (14) - 77093643461234 [13:31:52]1041 (16) - 0000000000871759 [13:31:52]1040 (4) - 166033 [13:31:52]1012 (4) - 21.10.2024 07:09 [13:31:52]1206 (1) - 0 [13:31:52]OFD Sender: Remove packet 166033 [13:31:52]ProducePacketName [13:31:52]name=ofd_packets/00166033 [13:31:52]NVStorageDeleteData [13:31:52]Write to MH i2c: 01 00 00 A4 53 F7 [13:31:52]Write i2c OK [13:31:52]MH_I2C_Read... [13:31:52]Read from MH i2c: 01 [13:31:52]MH_I2C_Read... [13:31:52]Read from MH i2c: 01 07 00 [13:31:52]MH_I2C_Read... [13:31:52]Read from MH i2c: 01 07 00 A4 53 00 00 00 00 00 BE 0C C8 [13:31:52]RasterBufferAndPrint [13:31:52]line [13:31:52]line [13:31:52]line [13:31:52]line [13:31:52]line [13:31:52]written 0, free lines is 3271 [13:31:52]MH_Cut [13:31:52]Write to MH i2c: D1 01 00 AB 53 01 D0 [13:31:52]Write i2c OK [13:31:52]MH_I2C_Read... [13:31:52]Read from MH i2c: D1 [13:31:52]MH_I2C_Read... [13:31:52]Read from MH i2c: D1 01 00 [13:31:52]MH_I2C_Read... [13:31:52]Read from MH i2c: D1 01 00 AB 53 00 CF [13:31:52]Write to MH i2c: 01 00 00 AC 53 FF [13:31:52]Write i2c OK [13:31:52]MH_I2C_Read... [13:31:53]OFD Sender: No OFD packet to send [13:31:53]*** Cut start [13:31:53]*** Partial cut [13:31:53]*** CUTSNS_PIN = 1 [13:31:53]*** CUTSNS_PIN = 0 [13:31:53]*** Brake cut motor [13:31:54]Read from MH i2c: 01 [13:31:54]MH_I2C_Read... [13:31:54]*** Stop cut motor [13:31:54]*** Cut end [13:31:54]Read from MH i2c: 01 07 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: 01 07 00 AC 53 00 00 00 00 00 FF 0F 14 [13:31:54]process_action close_receipt done [13:31:54]requested_data is exist [13:31:54]produce_requested_data [13:31:54]requested_item fm.sn is exist - process it [13:31:54]wFMCommunicate request_size=4 [13:31:54]MH_SAM_APDU [13:31:54]CAPDU: 80 11 00 00 [13:31:54]Write to MH i2c: E2 08 00 AD 53 80 11 00 00 00 00 00 00 7A [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:54]Read from MH i2c: E2 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 17 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 17 00 AD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D2 [13:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:31:54]wFMCommunicate OK [13:31:54]requested_item fd.num is exist - process it [13:31:54]SAM_PROTO_GetFieldsCounters [13:31:54]wFMCommunicate request_size=4 [13:31:54]MH_SAM_APDU [13:31:54]CAPDU: 80 13 00 00 [13:31:54]Write to MH i2c: E2 08 00 AE 53 80 13 00 00 00 00 00 00 7D [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:54]Read from MH i2c: E2 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 62 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 62 00 AE 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [13:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 91 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:54]wFMCommunicate OK [13:31:54]SAM_PROTO_GetFieldsCounters done [13:31:54]requested_item shift.num is exist - process it [13:31:54]requested_item shift.opened is exist - process it [13:31:54]req_shift_opened [13:31:54]FM_GetShiftState [13:31:54]SAM_PROTO_GetShiftState [13:31:54]wFMCommunicate request_size=4 [13:31:54]MH_SAM_APDU [13:31:54]CAPDU: 80 13 01 00 [13:31:54]Write to MH i2c: E2 08 00 AF 53 80 13 01 00 00 00 00 00 7F [13:31:54]Write i2c OK [13:31:54]MH_I2C_Read... [13:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:54]Read from MH i2c: E2 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 0E 00 [13:31:54]MH_I2C_Read... [13:31:54]Read from MH i2c: E2 0E 00 AF 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 88 [13:31:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:31:54]wFMCommunicate OK [13:31:54]SAM_PROTO_GetShiftState done [13:31:54]FM_GetShiftState done [13:31:54]req_shift_opened done [13:31:54]requested_item shift.open_date is exist - process it [13:31:54]req_shift_open_date [13:31:54]req_shift_open_date done [13:31:54]produce_requested_data done [13:31:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166033,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:31:54]process_action_free close_receipt [13:31:54]json_value_free [13:31:54]json_value_free done [13:31:54]process_json_proto returns [13:31:54]Send response to host [13:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166033,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:31:54]free response buf [13:31:54]execute_script done [13:31:54]execute_script returns [13:31:54]free content buf [13:31:54]Sock 6.Close socket [13:31:54]Sock 6.Thread stoped [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:10]accept exits with 7 [13:33:10]New connection [13:33:10]New thread 3066920292 created [13:33:10]Thread 3066776932 joined [13:33:10]Waiting for new connection... [13:33:10] Sock 7.Parse request [13:33:10]Sock 7.Check first char [13:33:10]Sock 7.First char is OK [13:33:10]request: POST /json_proto HTTP/1.0 [13:33:10]Method: POST [13:33:10]URL: /json_proto [13:33:10]Method is POST - this is cgi request [13:33:10]url: /json_proto [13:33:10]query_string will be loaded in cgi processing [13:33:10]execute_cgi json_proto POST (null) [13:33:10]execute_cgi path=json_proto method=POST [13:33:10]POST find Content-Length [13:33:10]Host: 172.17.53.195:8080 [13:33:10]Content-Length: 769 [13:33:10]Content-Type: application/json [13:33:10] [13:33:10]POST finish read [13:33:10]Found Content-Length = 769 [13:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 19.550, "sum" : 1450.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1450.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:10]execute_script... [13:33:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 19.550, "sum" : 1450.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1450.61 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:10]POST & json_proto [13:33:10]process_json_proto [13:33:10]json parsed OK: [13:33:10]protocol is kg_v1.0 [13:33:10]action value=close_receipt [13:33:10]process_action close_receipt [13:33:10]cmd_close_receipt [13:33:10]MH_GetDate [13:33:10]Write to MH i2c: F0 00 00 B0 53 F2 [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: F0 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: F0 09 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: F0 09 00 B0 53 00 28 58 16 67 21 48 4A 65 10 [13:33:10]GetLastDocTimeStamp 1729517528 [13:33:10]current date 1729517608 [13:33:10]FM_GetShiftState [13:33:10]SAM_PROTO_GetShiftState [13:33:10]wFMCommunicate request_size=4 [13:33:10]MH_SAM_APDU [13:33:10]CAPDU: 80 13 01 00 [13:33:10]Write to MH i2c: E2 08 00 B1 53 80 13 01 00 00 00 00 00 81 [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:10]Read from MH i2c: E2 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 0E 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: E2 0E 00 B1 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8A [13:33:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:33:10]wFMCommunicate OK [13:33:10]SAM_PROTO_GetShiftState done [13:33:10]FM_GetShiftState done [13:33:10]opened in 1729470944 [13:33:10]opened+sec_in_day 1729557344 [13:33:10]quantity*price = 145061 [13:33:10]sum+1 = 145062 [13:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1450.61 НСП 1% : 12.84 НДС 12% : 154.05 Наличными: 0.00 Безнал.: 1450.61 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 145 21.10.2024 13:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166034 ФПД: 238360950153387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133328&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166034&fm=238360950153387&tin=02508201610067®Number=0000000000091764&sum=145061 [13:33:11]StoreToDocumentArchive [13:33:11]shift 535 fd 166034 [13:33:11]save to /storage/0535/doc_00166034 [13:33:11]save last doc name /storage/0535/doc_00166034 to /storage/kkm_last_doc_name [13:33:11]save OK [13:33:11]Clear old archive folders... [13:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:11]tlvbuf is 0161C100 [13:33:11]SAM_PROTO_ClearQueue [13:33:11]wFMCommunicate request_size=4 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 09 00 00 [13:33:11]Write to MH i2c: E2 08 00 BE 53 80 09 00 00 00 00 00 00 83 [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 BE 53 00 90 00 85 [13:33:11]RAPDU: 90 00 [13:33:11]wFMCommunicate OK [13:33:11]SAM_PROTO_ClearQueue done [13:33:11]KKMCreateOFDPacket [13:33:11]OFDProtocolAddRootSTLVToBuf [13:33:11]FM_MakeSignedData [13:33:11]FM_MakeSignedData [13:33:11]SAM_PROTO_SignData [13:33:11]wFMCommunicate request_size=4 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 0D 01 02 [13:33:11]Write to MH i2c: E2 08 00 BF 53 80 0D 01 02 00 00 00 00 8B [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 BF 53 00 90 00 86 [13:33:11]RAPDU: 90 00 [13:33:11]wFMCommunicate OK [13:33:11]wFMCommunicate request_size=255 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 88 02 00 35 04 06 00 D8 [13:33:11]Write to MH i2c: E2 02 01 C0 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 88 02 00 35 04 06 00 D8 00 00 06 [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 C0 53 00 90 00 87 [13:33:11]RAPDU: 90 00 [13:33:11]wFMCommunicate OK [13:33:11]wFMCommunicate request_size=10 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 0D 02 02 05 C9 BB C3 20 AB [13:33:11]Write to MH i2c: E2 0D 00 C1 53 80 0D 02 02 05 00 C9 BB C3 20 AB 00 00 AA [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 03 00 C1 53 00 90 00 88 [13:33:11]RAPDU: 90 00 [13:33:11]wFMCommunicate OK [13:33:11]wFMCommunicate request_size=4 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 0D 03 02 [13:33:11]Write to MH i2c: E2 08 00 C2 53 80 0D 03 02 00 00 00 00 90 [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 0B 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 0B 00 C2 53 00 C1 5A 82 B5 BA 11 58 0B 90 00 11 [13:33:11]RAPDU: C1 5A 82 B5 BA 11 58 0B 90 00 [13:33:11]wFMCommunicate OK [13:33:11]SAM_PROTO_SignData done [13:33:11]FM_MakeSignedData done [13:33:11]CreateOFDProtocolMessage [13:33:11]wFMCommunicate request_size=4 [13:33:11]MH_SAM_APDU [13:33:11]CAPDU: 80 11 00 00 [13:33:11]Write to MH i2c: E2 08 00 C3 53 80 11 00 00 00 00 00 00 90 [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:11]Read from MH i2c: E2 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 17 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: E2 17 00 C3 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [13:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:33:11]wFMCommunicate OK [13:33:11]CreateOFDProtocolMessage done [13:33:11]OFDSenderStorePacket 166034 [13:33:11]StoreOFDPacket docnum=166034 [13:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 A3 07 01 03 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 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 4C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 88 02 00 35 04 06 00 D8 C9 BB C3 20 AB C1 5A 82 B5 BA 11 58 0B [13:33:11]CheckFolder [13:33:11]dirname=/storage/ofd_packets [13:33:11]CheckFolder done [13:33:11]ProducePacketName [13:33:11]name=ofd_packets/00166034 [13:33:11]NVStorageSaveData ofd_packets/00166034 [13:33:11]File name is /storage/ofd_packets/00166034 [13:33:11]Write 301 bytes [13:33:11]NVStorageSaveData done [13:33:11]OFDSenderStorePacket done [13:33:11]KKMCreateOFDPacket done [13:33:11]NVStorageSaveData kkm_last_timestamp [13:33:11]File name is /storage/kkm_last_timestamp [13:33:11]Write 4 bytes [13:33:11]NVStorageSaveData done [13:33:11]ExternCall_PrintAddStr [13:33:11]wPrintStart [13:33:11]Write to MH i2c: 01 00 00 C4 53 17 [13:33:11]Write i2c OK [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: 01 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: 01 07 00 [13:33:11]MH_I2C_Read... [13:33:11]Read from MH i2c: 01 07 00 C4 53 00 00 00 00 00 FF 0F 2C [13:33:11]RasterBufferAndPrint [13:33:11]line Счет N : (1)220604 [13:33:11]line ИНН: 02508201610067 [13:33:11]line Контрольно-Кассовый Чек [13:33:11]line ПРОДАЖА [13:33:11]line ТРК (МРК, ГНК) : 14 [13:33:11]line Товар: 2710124500 [13:33:11]line Аи-95-К-5 [13:33:11]line 19.550 * 74.20 [13:33:11]line = 1450.61 [13:33:11]line НДС 12% НСП 1% [13:33:11]line > о реализуемом товаре [13:33:11]line ИТОГО: 1450.61 [13:33:11]line НСП 1% : 12.84 [13:33:11]line НДС 12% : 154.05 [13:33:11]line Наличными: 0.00 [13:33:11]line Безнал.: 1450.61 [13:33:11]line Место: АЗС № 161 "Партнер Нефть" [13:33:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:33:11]line СНО: Общий режим [13:33:11]line Чек 145 21.10.2024 13:33 [13:33:11]line Смена: 535 ФФД: 1.0 [13:33:11]line ЗНМ: 0300000104 [13:33:11]line РНМ: 0000000000091764 [13:33:11]line Версия ККМ: 001 [13:33:11]line Платежная система: Mbank [13:33:11]line ФМ: 0000000000871759 [13:33:11]line ФД: 166034 [13:33:11]line ФПД: 238360950153387 [13:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133328&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166034&fm=238360950153387&tin=02508201610067®Number=0000000000091764&sum=145061 [13:33:12]written 0, free lines is 4095 [13:33:12]OFD Sender: Processing packet 166034 [packets to send 48, broken 47] [13:33:12]ProducePacketName [13:33:12]name=ofd_packets/00166034 [13:33:12]OFD Sender: To server: pG, [13:33:12]CommunicateWithHost lk.salyk.kg:30040 [13:33:12]ConnectInit lk.salyk.kg [13:33:12]Connected sock=6 [13:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 A3 07 01 03 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 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 4C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 A5 36 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A5 36 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A5 36 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 28 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 88 02 00 35 04 06 00 D8 C9 BB C3 20 AB C1 5A 82 B5 BA 11 58 0B [13:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A6 84 47 00 D3 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 92 88 02 00 F4 03 04 00 96 FE 15 67 B6 04 01 00 00 57 C5 16 27 3D 66 B8 81 [13:33:12]CommunicateWithHost err = 0 [13:33:12]CheckOFDResponse [13:33:12]1017 (14) - 77093643461234 [13:33:12]1041 (16) - 0000000000871759 [13:33:12]1040 (4) - 166034 [13:33:12]1012 (4) - 21.10.2024 07:11 [13:33:12]1206 (1) - 0 [13:33:12]OFD Sender: Remove packet 166034 [13:33:12]ProducePacketName [13:33:12]name=ofd_packets/00166034 [13:33:12]NVStorageDeleteData [13:33:12]Write to MH i2c: 01 00 00 ED 53 40 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 07 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 07 00 ED 53 00 00 00 00 00 EC 0C 3F [13:33:12]RasterBufferAndPrint [13:33:12]line [13:33:12]line [13:33:12]line [13:33:12]line [13:33:12]line [13:33:12]written 0, free lines is 3315 [13:33:12]MH_Cut [13:33:12]Write to MH i2c: D1 01 00 F4 53 01 19 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: D1 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: D1 01 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: D1 01 00 F4 53 00 18 [13:33:12]Write to MH i2c: 01 00 00 F5 53 48 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]OFD Sender: No OFD packet to send [13:33:13]*** Cut start [13:33:13]*** Partial cut [13:33:13]*** CUTSNS_PIN = 1 [13:33:13]*** CUTSNS_PIN = 0 [13:33:13]*** Brake cut motor [13:33:13]Read from MH i2c: 01 [13:33:13]MH_I2C_Read... [13:33:13]*** Stop cut motor [13:33:14]*** Cut end [13:33:14]Read from MH i2c: 01 07 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: 01 07 00 F5 53 00 00 00 00 00 FF 0F 5D [13:33:14]process_action close_receipt done [13:33:14]requested_data is exist [13:33:14]produce_requested_data [13:33:14]requested_item fm.sn is exist - process it [13:33:14]wFMCommunicate request_size=4 [13:33:14]MH_SAM_APDU [13:33:14]CAPDU: 80 11 00 00 [13:33:14]Write to MH i2c: E2 08 00 F6 53 80 11 00 00 00 00 00 00 C3 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:14]Read from MH i2c: E2 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 17 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 17 00 F6 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1B [13:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:33:14]wFMCommunicate OK [13:33:14]requested_item fd.num is exist - process it [13:33:14]SAM_PROTO_GetFieldsCounters [13:33:14]wFMCommunicate request_size=4 [13:33:14]MH_SAM_APDU [13:33:14]CAPDU: 80 13 00 00 [13:33:14]Write to MH i2c: E2 08 00 F7 53 80 13 00 00 00 00 00 00 C6 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:14]Read from MH i2c: E2 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 62 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 62 00 F7 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:33:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 92 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:14]wFMCommunicate OK [13:33:14]SAM_PROTO_GetFieldsCounters done [13:33:14]requested_item shift.num is exist - process it [13:33:14]requested_item shift.opened is exist - process it [13:33:14]req_shift_opened [13:33:14]FM_GetShiftState [13:33:14]SAM_PROTO_GetShiftState [13:33:14]wFMCommunicate request_size=4 [13:33:14]MH_SAM_APDU [13:33:14]CAPDU: 80 13 01 00 [13:33:14]Write to MH i2c: E2 08 00 F8 53 80 13 01 00 00 00 00 00 C8 [13:33:14]Write i2c OK [13:33:14]MH_I2C_Read... [13:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:14]Read from MH i2c: E2 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 0E 00 [13:33:14]MH_I2C_Read... [13:33:14]Read from MH i2c: E2 0E 00 F8 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D1 [13:33:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:33:14]wFMCommunicate OK [13:33:14]SAM_PROTO_GetShiftState done [13:33:14]FM_GetShiftState done [13:33:14]req_shift_opened done [13:33:14]requested_item shift.open_date is exist - process it [13:33:14]req_shift_open_date [13:33:14]req_shift_open_date done [13:33:14]produce_requested_data done [13:33:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166034,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:33:14]process_action_free close_receipt [13:33:14]json_value_free [13:33:14]json_value_free done [13:33:14]process_json_proto returns [13:33:14]Send response to host [13:33:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166034,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:33:14]free response buf [13:33:14]execute_script done [13:33:14]execute_script returns [13:33:14]free content buf [13:33:14]Sock 7.Close socket [13:33:14]Sock 7.Thread stoped [13:33:17]OFD Sender: No OFD packet to send [13:33:22]OFD Sender: No OFD packet to send [13:33:27]OFD Sender: No OFD packet to send [13:33:32]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:05]accept exits with 5 [13:35:05]New connection [13:35:05]New thread 3066776932 created [13:35:05]Thread 3066920292 joined [13:35:05]Waiting for new connection... [13:35:05] Sock 5.Parse request [13:35:05]Sock 5.Check first char [13:35:05]Sock 5.First char is OK [13:35:05]request: POST /json_proto HTTP/1.0 [13:35:05]Method: POST [13:35:05]URL: /json_proto [13:35:05]Method is POST - this is cgi request [13:35:05]url: /json_proto [13:35:05]query_string will be loaded in cgi processing [13:35:05]execute_cgi json_proto POST (null) [13:35:05]execute_cgi path=json_proto method=POST [13:35:05]POST find Content-Length [13:35:05]Host: 172.17.53.195:8080 [13:35:05]Content-Length: 674 [13:35:05]Content-Type: application/json [13:35:05] [13:35:05]POST finish read [13:35:05]Found Content-Length = 674 [13:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:05]execute_script... [13: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)220606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:35:05]POST & json_proto [13:35:05]process_json_proto [13:35:05]json parsed OK: [13:35:05]protocol is kg_v1.0 [13:35:05]action value=close_receipt [13:35:05]process_action close_receipt [13:35:05]cmd_close_receipt [13:35:05]MH_GetDate [13:35:05]Write to MH i2c: F0 00 00 F9 53 3B [13:35:05]Write i2c OK [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: F0 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: F0 09 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: F0 09 00 F9 53 00 9C 58 16 67 21 48 4A 65 CD [13:35:05]GetLastDocTimeStamp 1729517608 [13:35:05]current date 1729517724 [13:35:05]FM_GetShiftState [13:35:05]SAM_PROTO_GetShiftState [13:35:05]wFMCommunicate request_size=4 [13:35:05]MH_SAM_APDU [13:35:05]CAPDU: 80 13 01 00 [13:35:05]Write to MH i2c: E2 08 00 FA 53 80 13 01 00 00 00 00 00 CA [13:35:05]Write i2c OK [13:35:05]MH_I2C_Read... [13:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:05]Read from MH i2c: E2 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 0E 00 [13:35:05]MH_I2C_Read... [13:35:05]Read from MH i2c: E2 0E 00 FA 53 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D3 [13:35:05]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:35:05]wFMCommunicate OK [13:35:05]SAM_PROTO_GetShiftState done [13:35:05]FM_GetShiftState done [13:35:05]opened in 1729470944 [13:35:05]opened+sec_in_day 1729557344 [13:35:05]quantity*price = 50063 [13:35:05]sum+1 = 50064 [13:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 146 21.10.2024 13:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166035 ФПД: 48171474002219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133524&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166035&fm=48171474002219&tin=02508201610067®Number=0000000000091764&sum=50000 [13:35:06]StoreToDocumentArchive [13:35:06]shift 535 fd 166035 [13:35:06]save to /storage/0535/doc_00166035 [13:35:06]save last doc name /storage/0535/doc_00166035 to /storage/kkm_last_doc_name [13:35:06]save OK [13:35:06]Clear old archive folders... [13:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:35:06]tlvbuf is 01469E00 [13:35:06]SAM_PROTO_ClearQueue [13:35:06]wFMCommunicate request_size=4 [13:35:06]MH_SAM_APDU [13:35:06]CAPDU: 80 09 00 00 [13:35:06]Write to MH i2c: E2 08 00 07 54 80 09 00 00 00 00 00 00 CD [13:35:06]Write i2c OK [13:35:06]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 07 54 00 90 00 CF [13:35:07]RAPDU: 90 00 [13:35:07]wFMCommunicate OK [13:35:07]SAM_PROTO_ClearQueue done [13:35:07]KKMCreateOFDPacket [13:35:07]OFDProtocolAddRootSTLVToBuf [13:35:07]FM_MakeSignedData [13:35:07]FM_MakeSignedData [13:35:07]SAM_PROTO_SignData [13:35:07]wFMCommunicate request_size=4 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 0D 01 02 [13:35:07]Write to MH i2c: E2 08 00 08 54 80 0D 01 02 00 00 00 00 D5 [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 08 54 00 90 00 D0 [13:35:07]RAPDU: 90 00 [13:35:07]wFMCommunicate OK [13:35:07]wFMCommunicate request_size=255 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 92 00 00 00 F4 03 04 00 9C 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 88 02 00 35 04 06 00 2B CF CB 98 [13:35:07]Write to MH i2c: E2 02 01 09 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 92 00 00 00 F4 03 04 00 9C 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 88 02 00 35 04 06 00 2B CF CB 98 00 00 7F [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 09 54 00 90 00 D1 [13:35:07]RAPDU: 90 00 [13:35:07]wFMCommunicate OK [13:35:07]wFMCommunicate request_size=7 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 0D 02 02 02 A1 2B [13:35:07]Write to MH i2c: E2 0A 00 0A 54 80 0D 02 02 02 00 A1 2B 00 00 A8 [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 03 00 0A 54 00 90 00 D2 [13:35:07]RAPDU: 90 00 [13:35:07]wFMCommunicate OK [13:35:07]wFMCommunicate request_size=4 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 0D 03 02 [13:35:07]Write to MH i2c: E2 08 00 0B 54 80 0D 03 02 00 00 00 00 DA [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 0B 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 0B 00 0B 54 00 3D BE 37 65 34 48 01 51 90 00 40 [13:35:07]RAPDU: 3D BE 37 65 34 48 01 51 90 00 [13:35:07]wFMCommunicate OK [13:35:07]SAM_PROTO_SignData done [13:35:07]FM_MakeSignedData done [13:35:07]CreateOFDProtocolMessage [13:35:07]wFMCommunicate request_size=4 [13:35:07]MH_SAM_APDU [13:35:07]CAPDU: 80 11 00 00 [13:35:07]Write to MH i2c: E2 08 00 0C 54 80 11 00 00 00 00 00 00 DA [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:07]Read from MH i2c: E2 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 17 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: E2 17 00 0C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 32 [13:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:35:07]wFMCommunicate OK [13:35:07]CreateOFDProtocolMessage done [13:35:07]OFDSenderStorePacket 166035 [13:35:07]StoreOFDPacket docnum=166035 [13:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3E 8A 04 01 B8 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 92 00 00 00 F4 03 04 00 9C 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 88 02 00 35 04 06 00 2B CF CB 98 A1 2B 3D BE 37 65 34 48 01 51 [13:35:07]CheckFolder [13:35:07]dirname=/storage/ofd_packets [13:35:07]CheckFolder done [13:35:07]ProducePacketName [13:35:07]name=ofd_packets/00166035 [13:35:07]NVStorageSaveData ofd_packets/00166035 [13:35:07]File name is /storage/ofd_packets/00166035 [13:35:07]Write 298 bytes [13:35:07]NVStorageSaveData done [13:35:07]OFDSenderStorePacket done [13:35:07]KKMCreateOFDPacket done [13:35:07]NVStorageSaveData kkm_last_timestamp [13:35:07]File name is /storage/kkm_last_timestamp [13:35:07]Write 4 bytes [13:35:07]NVStorageSaveData done [13:35:07]ExternCall_PrintAddStr [13:35:07]wPrintStart [13:35:07]Write to MH i2c: 01 00 00 0D 54 61 [13:35:07]Write i2c OK [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: 01 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: 01 07 00 [13:35:07]MH_I2C_Read... [13:35:07]Read from MH i2c: 01 07 00 0D 54 00 00 00 00 00 FF 0F 76 [13:35:07]RasterBufferAndPrint [13:35:07]line Счет N : (1)220606 [13:35:07]line ИНН: 02508201610067 [13:35:07]line Контрольно-Кассовый Чек [13:35:07]line ПРОДАЖА [13:35:07]line ТРК (МРК, ГНК) : 31 [13:35:07]line Товар: 2710194210 [13:35:07]line ДТ-К-5 [13:35:07]line 6.570 * 76.20 [13:35:07]line = 500.63 [13:35:07]line НДС 12% НСП 1% [13:35:07]line > о реализуемом товаре [13:35:07]line ОКРУГЛЕНИЕ: -0.63 [13:35:07]line ИТОГО: 500.00 [13:35:07]line Внесено: 500.00 [13:35:07]line СДАЧА: 0.00 [13:35:07]line НСП 1% : 4.43 [13:35:07]line НДС 12% : 53.16 [13:35:07]line Наличными: 500.00 [13:35:07]line Безнал.: 0.00 [13:35:07]line Место: АЗС № 161 "Партнер Нефть" [13:35:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:35:07]line СНО: Общий режим [13:35:07]line Чек 146 21.10.2024 13:35 [13:35:07]line Смена: 535 ФФД: 1.0 [13:35:07]line ЗНМ: 0300000104 [13:35:07]line РНМ: 0000000000091764 [13:35:07]line Версия ККМ: 001 [13:35:07]line ФМ: 0000000000871759 [13:35:07]line ФД: 166035 [13:35:07]line ФПД: 48171474002219 [13:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T133524&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166035&fm=48171474002219&tin=02508201610067®Number=0000000000091764&sum=50000 [13:35:07]OFD Sender: Processing packet 166035 [packets to send 48, broken 47] [13:35:07]ProducePacketName [13:35:07]name=ofd_packets/00166035 [13:35:07]OFD Sender: To server: pG, [13:35:07]CommunicateWithHost lk.salyk.kg:30040 [13:35:07]ConnectInit lk.salyk.kg [13:35:07]written 0, free lines is 4095 [13:35:07]Connected sock=7 [13: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 35 39 0C 01 00 00 3E 8A 04 01 B8 14 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 92 00 00 00 F4 03 04 00 9C 58 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 88 02 00 35 04 06 00 2B CF CB 98 A1 2B 3D BE 37 65 34 48 01 51 [13: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 35 39 4F 00 00 00 A2 E0 47 00 CB 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 93 88 02 00 F4 03 04 00 0A FF 15 67 B6 04 01 00 00 8D 93 A7 AC 7F 57 30 E6 [13:35:08]CommunicateWithHost err = 0 [13:35:08]CheckOFDResponse [13:35:08]1017 (14) - 77093643461234 [13:35:08]1041 (16) - 0000000000871759 [13:35:08]1040 (4) - 166035 [13:35:08]1012 (4) - 21.10.2024 07:13 [13:35:08]1206 (1) - 0 [13:35:08]OFD Sender: Remove packet 166035 [13:35:08]ProducePacketName [13:35:08]name=ofd_packets/00166035 [13:35:08]NVStorageDeleteData [13:35:08]Write to MH i2c: 01 00 00 38 54 8C [13:35:08]Write i2c OK [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: 01 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: 01 07 00 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: 01 07 00 38 54 00 00 00 00 00 DA 0C 79 [13:35:08]RasterBufferAndPrint [13:35:08]line [13:35:08]line [13:35:08]line [13:35:08]line [13:35:08]line [13:35:08]written 0, free lines is 3297 [13:35:08]MH_Cut [13:35:08]Write to MH i2c: D1 01 00 3F 54 01 65 [13:35:08]Write i2c OK [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: D1 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: D1 01 00 [13:35:08]MH_I2C_Read... [13:35:08]Read from MH i2c: D1 01 00 3F 54 00 64 [13:35:08]Write to MH i2c: 01 00 00 40 54 94 [13:35:08]Write i2c OK [13:35:08]MH_I2C_Read... [13:35:08]OFD Sender: No OFD packet to send [13:35:09]*** Cut start [13:35:09]*** Partial cut [13:35:09]*** CUTSNS_PIN = 1 [13:35:09]*** CUTSNS_PIN = 0 [13:35:09]*** Brake cut motor [13:35:09]Read from MH i2c: 01 [13:35:09]MH_I2C_Read... [13:35:09]*** Stop cut motor [13:35:09]*** Cut end [13:35:09]Read from MH i2c: 01 07 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: 01 07 00 40 54 00 00 00 00 00 FF 0F A9 [13:35:09]process_action close_receipt done [13:35:09]requested_data is exist [13:35:09]produce_requested_data [13:35:09]requested_item fm.sn is exist - process it [13:35:09]wFMCommunicate request_size=4 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 11 00 00 [13:35:09]Write to MH i2c: E2 08 00 41 54 80 11 00 00 00 00 00 00 0F [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:35:09]Read from MH i2c: E2 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 17 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 17 00 41 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 67 [13:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:35:09]wFMCommunicate OK [13:35:09]requested_item fd.num is exist - process it [13:35:09]SAM_PROTO_GetFieldsCounters [13:35:09]wFMCommunicate request_size=4 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 13 00 00 [13:35:09]Write to MH i2c: E2 08 00 42 54 80 13 00 00 00 00 00 00 12 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:35:09]Read from MH i2c: E2 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 62 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 62 00 42 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [13: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 93 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:35:09]wFMCommunicate OK [13:35:09]SAM_PROTO_GetFieldsCounters done [13:35:09]requested_item shift.num is exist - process it [13:35:09]requested_item shift.opened is exist - process it [13:35:09]req_shift_opened [13:35:09]FM_GetShiftState [13:35:09]SAM_PROTO_GetShiftState [13:35:09]wFMCommunicate request_size=4 [13:35:09]MH_SAM_APDU [13:35:09]CAPDU: 80 13 01 00 [13:35:09]Write to MH i2c: E2 08 00 43 54 80 13 01 00 00 00 00 00 14 [13:35:09]Write i2c OK [13:35:09]MH_I2C_Read... [13:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:35:09]Read from MH i2c: E2 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 0E 00 [13:35:09]MH_I2C_Read... [13:35:09]Read from MH i2c: E2 0E 00 43 54 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1D [13:35:09]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:35:09]wFMCommunicate OK [13:35:09]SAM_PROTO_GetShiftState done [13:35:09]FM_GetShiftState done [13:35:09]req_shift_opened done [13:35:09]requested_item shift.open_date is exist - process it [13:35:09]req_shift_open_date [13:35:09]req_shift_open_date done [13:35:09]produce_requested_data done [13:35:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166035,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:35:09]process_action_free close_receipt [13:35:09]json_value_free [13:35:09]json_value_free done [13:35:09]process_json_proto returns [13:35:09]Send response to host [13:35:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166035,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:35:09]free response buf [13:35:09]execute_script done [13:35:09]execute_script returns [13:35:09]free content buf [13:35:09]Sock 5.Close socket [13:35:09]Sock 5.Thread stoped [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:08]OFD Sender: No OFD packet to send [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:43]OFD Sender: No OFD packet to send [13:37:48]OFD Sender: No OFD packet to send [13:37:53]OFD Sender: No OFD packet to send [13:37:58]OFD Sender: No OFD packet to send [13:38:03]OFD Sender: No OFD packet to send [13:38:08]OFD Sender: No OFD packet to send [13:38:13]OFD Sender: No OFD packet to send [13:38:18]OFD Sender: No OFD packet to send [13:38:23]OFD Sender: No OFD packet to send [13:38:28]OFD Sender: No OFD packet to send [13:38:33]OFD Sender: No OFD packet to send [13:38:38]OFD Sender: No OFD packet to send [13:38:43]OFD Sender: No OFD packet to send [13:38:48]OFD Sender: No OFD packet to send [13:38:53]OFD Sender: No OFD packet to send [13:38:58]OFD Sender: No OFD packet to send [13:39:03]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:39]OFD Sender: No OFD packet to send [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:55]accept exits with 6 [13:41:55]New connection [13:41:55]New thread 3066920292 created [13:41:55]Thread 3066776932 joined [13:41:55]Waiting for new connection... [13:41:55] Sock 6.Parse request [13:41:55]Sock 6.Check first char [13:41:55]Sock 6.First char is OK [13:41:55]request: POST /json_proto HTTP/1.0 [13:41:55]Method: POST [13:41:55]URL: /json_proto [13:41:55]Method is POST - this is cgi request [13:41:55]url: /json_proto [13:41:55]query_string will be loaded in cgi processing [13:41:55]execute_cgi json_proto POST (null) [13:41:55]execute_cgi path=json_proto method=POST [13:41:55]POST find Content-Length [13:41:55]Host: 172.17.53.195:8080 [13:41:55]Content-Length: 677 [13:41:55]Content-Type: application/json [13:41:55] [13:41:55]POST finish read [13:41:55]Found Content-Length = 677 [13:41:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:55]execute_script... [13:41: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)220607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:55]POST & json_proto [13:41:55]process_json_proto [13:41:55]json parsed OK: [13:41:55]protocol is kg_v1.0 [13:41:55]action value=close_receipt [13:41:55]process_action close_receipt [13:41:55]cmd_close_receipt [13:41:55]MH_GetDate [13:41:55]Write to MH i2c: F0 00 00 44 54 87 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: F0 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: F0 09 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: F0 09 00 44 54 00 36 5A 16 67 21 48 4A 65 B5 [13:41:55]GetLastDocTimeStamp 1729517724 [13:41:55]current date 1729518134 [13:41:55]FM_GetShiftState [13:41:55]SAM_PROTO_GetShiftState [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 13 01 00 [13:41:55]Write to MH i2c: E2 08 00 45 54 80 13 01 00 00 00 00 00 16 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 0E 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 0E 00 45 54 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1F [13:41:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:41:55]wFMCommunicate OK [13:41:55]SAM_PROTO_GetShiftState done [13:41:55]FM_GetShiftState done [13:41:55]opened in 1729470944 [13:41:55]opened+sec_in_day 1729557344 [13:41:55]quantity*price = 50041 [13:41:55]sum+1 = 50042 [13:41:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 147 21.10.2024 13:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166036 ФПД: 93280955947855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134214&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166036&fm=93280955947855&tin=02508201610067®Number=0000000000091764&sum=50000 [13:41:56]StoreToDocumentArchive [13:41:56]shift 535 fd 166036 [13:41:56]save to /storage/0535/doc_00166036 [13:41:56]save last doc name /storage/0535/doc_00166036 to /storage/kkm_last_doc_name [13:41:56]save OK [13:41:56]Clear old archive folders... [13:41:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:56]tlvbuf is 0161C1E0 [13:41:56]SAM_PROTO_ClearQueue [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 09 00 00 [13:41:56]Write to MH i2c: E2 08 00 52 54 80 09 00 00 00 00 00 00 18 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 03 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 03 00 52 54 00 90 00 1A [13:41:56]RAPDU: 90 00 [13:41:56]wFMCommunicate OK [13:41:56]SAM_PROTO_ClearQueue done [13:41:56]KKMCreateOFDPacket [13:41:56]OFDProtocolAddRootSTLVToBuf [13:41:56]FM_MakeSignedData [13:41:56]FM_MakeSignedData [13:41:56]SAM_PROTO_SignData [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 0D 01 02 [13:41:56]Write to MH i2c: E2 08 00 53 54 80 0D 01 02 00 00 00 00 20 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 03 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 03 00 53 54 00 90 00 1B [13:41:56]RAPDU: 90 00 [13:41:56]wFMCommunicate OK [13:41:56]wFMCommunicate request_size=255 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 36 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 88 02 00 35 04 06 00 54 [13:41:56]Write to MH i2c: E2 02 01 54 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 36 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 88 02 00 35 04 06 00 54 00 00 E1 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 54 54 00 90 00 1C [13:41:57]RAPDU: 90 00 [13:41:57]wFMCommunicate OK [13:41:57]wFMCommunicate request_size=10 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 0D 02 02 05 D6 AA 3E 5B 4F [13:41:57]Write to MH i2c: E2 0D 00 55 54 80 0D 02 02 05 00 D6 AA 3E 5B 4F 00 00 95 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 03 00 55 54 00 90 00 1D [13:41:57]RAPDU: 90 00 [13:41:57]wFMCommunicate OK [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 0D 03 02 [13:41:57]Write to MH i2c: E2 08 00 56 54 80 0D 03 02 00 00 00 00 25 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 0B 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 0B 00 56 54 00 1F 26 F7 B8 D4 F2 97 5E 90 00 D5 [13:41:57]RAPDU: 1F 26 F7 B8 D4 F2 97 5E 90 00 [13:41:57]wFMCommunicate OK [13:41:57]SAM_PROTO_SignData done [13:41:57]FM_MakeSignedData done [13:41:57]CreateOFDProtocolMessage [13:41:57]wFMCommunicate request_size=4 [13:41:57]MH_SAM_APDU [13:41:57]CAPDU: 80 11 00 00 [13:41:57]Write to MH i2c: E2 08 00 57 54 80 11 00 00 00 00 00 00 25 [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:57]Read from MH i2c: E2 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 17 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: E2 17 00 57 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [13:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:41:57]wFMCommunicate OK [13:41:57]CreateOFDProtocolMessage done [13:41:57]OFDSenderStorePacket 166036 [13:41:57]StoreOFDPacket docnum=166036 [13:41:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 11 B1 07 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 88 02 00 35 04 06 00 54 D6 AA 3E 5B 4F 1F 26 F7 B8 D4 F2 97 5E [13:41:57]CheckFolder [13:41:57]dirname=/storage/ofd_packets [13:41:57]CheckFolder done [13:41:57]ProducePacketName [13:41:57]name=ofd_packets/00166036 [13:41:57]NVStorageSaveData ofd_packets/00166036 [13:41:57]File name is /storage/ofd_packets/00166036 [13:41:57]Write 301 bytes [13:41:57]NVStorageSaveData done [13:41:57]OFDSenderStorePacket done [13:41:57]KKMCreateOFDPacket done [13:41:57]NVStorageSaveData kkm_last_timestamp [13:41:57]File name is /storage/kkm_last_timestamp [13:41:57]Write 4 bytes [13:41:57]NVStorageSaveData done [13:41:57]ExternCall_PrintAddStr [13:41:57]wPrintStart [13:41:57]Write to MH i2c: 01 00 00 58 54 AC [13:41:57]Write i2c OK [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: 01 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: 01 07 00 [13:41:57]MH_I2C_Read... [13:41:57]Read from MH i2c: 01 07 00 58 54 00 00 00 00 00 FF 0F C1 [13:41:57]RasterBufferAndPrint [13:41:57]line Счет N : (1)220607 [13:41:57]line ИНН: 02508201610067 [13:41:57]line Контрольно-Кассовый Чек [13:41:57]line ПРОДАЖА [13:41:57]line ТРК (МРК, ГНК) : 33 [13:41:57]line Товар: 2710124130 [13:41:57]line Аи-92-К-5 [13:41:57]line 7.480 * 66.90 [13:41:57]line = 500.41 [13:41:57]line НДС 12% НСП 1% [13:41:57]line > о реализуемом товаре [13:41:57]line ОКРУГЛЕНИЕ: -0.41 [13:41:57]line ИТОГО: 500.00 [13:41:57]line Внесено: 500.00 [13:41:57]line СДАЧА: 0.00 [13:41:57]line НСП 1% : 4.43 [13:41:57]line НДС 12% : 53.14 [13:41:57]line Наличными: 500.00 [13:41:57]line Безнал.: 0.00 [13:41:57]line Место: АЗС № 161 "Партнер Нефть" [13:41:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:41:57]line СНО: Общий режим [13:41:57]line Чек 147 21.10.2024 13:42 [13:41:57]line Смена: 535 ФФД: 1.0 [13:41:57]line ЗНМ: 0300000104 [13:41:57]line РНМ: 0000000000091764 [13:41:57]line Версия ККМ: 001 [13:41:57]line ФМ: 0000000000871759 [13:41:57]line ФД: 166036 [13:41:57]line ФПД: 93280955947855 [13:41:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134214&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166036&fm=93280955947855&tin=02508201610067®Number=0000000000091764&sum=50000 [13:41:57]OFD Sender: Processing packet 166036 [packets to send 48, broken 47] [13:41:57]ProducePacketName [13:41:57]name=ofd_packets/00166036 [13:41:57]OFD Sender: To server: pG, [13:41:57]CommunicateWithHost lk.salyk.kg:30040 [13:41:57]ConnectInit lk.salyk.kg [13:41:57]written 0, free lines is 4095 [13:41:57]Connected sock=9 [13:41:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 11 B1 07 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 94 88 02 00 35 04 06 00 54 D6 AA 3E 5B 4F 1F 26 F7 B8 D4 F2 97 5E [13:41:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 78 D1 47 00 A1 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 35 39 10 04 04 00 94 88 02 00 F4 03 04 00 A4 00 16 67 B6 04 01 00 00 14 A7 47 14 1A 9D D0 0E [13:41:57]CommunicateWithHost err = 0 [13:41:57]CheckOFDResponse [13:41:57]1017 (14) - 77093643461234 [13:41:57]1041 (16) - 0000000000871759 [13:41:57]1040 (4) - 166036 [13:41:57]1012 (4) - 21.10.2024 07:20 [13:41:57]1206 (1) - 0 [13:41:57]OFD Sender: Remove packet 166036 [13:41:57]ProducePacketName [13:41:57]name=ofd_packets/00166036 [13:41:57]NVStorageDeleteData [13:41:58]Write to MH i2c: 01 00 00 83 54 D7 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 07 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: 01 07 00 83 54 00 00 00 00 00 D1 0C BB [13:41:58]RasterBufferAndPrint [13:41:58]line [13:41:58]line [13:41:58]line [13:41:58]line [13:41:58]line [13:41:58]written 0, free lines is 3287 [13:41:58]MH_Cut [13:41:58]Write to MH i2c: D1 01 00 8A 54 01 B0 [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: D1 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: D1 01 00 [13:41:58]MH_I2C_Read... [13:41:58]Read from MH i2c: D1 01 00 8A 54 00 AF [13:41:58]Write to MH i2c: 01 00 00 8B 54 DF [13:41:58]Write i2c OK [13:41:58]MH_I2C_Read... [13:41:58]OFD Sender: No OFD packet to send [13:41:58]*** Cut start [13:41:58]*** Partial cut [13:41:58]*** CUTSNS_PIN = 1 [13:41:59]*** CUTSNS_PIN = 0 [13:41:59]*** Brake cut motor [13:41:59]Read from MH i2c: 01 [13:41:59]MH_I2C_Read... [13:41:59]*** Stop cut motor [13:41:59]*** Cut end [13:41:59]Read from MH i2c: 01 07 00 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: 01 07 00 8B 54 00 00 00 00 00 FF 0F F4 [13:41:59]process_action close_receipt done [13:41:59]requested_data is exist [13:41:59]produce_requested_data [13:41:59]requested_item fm.sn is exist - process it [13:41:59]wFMCommunicate request_size=4 [13:41:59]MH_SAM_APDU [13:41:59]CAPDU: 80 11 00 00 [13:41:59]Write to MH i2c: E2 08 00 8C 54 80 11 00 00 00 00 00 00 5A [13:41:59]Write i2c OK [13:41:59]MH_I2C_Read... [13:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:59]Read from MH i2c: E2 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: E2 17 00 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: E2 17 00 8C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B2 [13:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:41:59]wFMCommunicate OK [13:41:59]requested_item fd.num is exist - process it [13:41:59]SAM_PROTO_GetFieldsCounters [13:41:59]wFMCommunicate request_size=4 [13:41:59]MH_SAM_APDU [13:41:59]CAPDU: 80 13 00 00 [13:41:59]Write to MH i2c: E2 08 00 8D 54 80 13 00 00 00 00 00 00 5D [13:41:59]Write i2c OK [13:41:59]MH_I2C_Read... [13:41:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:59]Read from MH i2c: E2 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: E2 62 00 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: E2 62 00 8D 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [13:41:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 94 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:59]wFMCommunicate OK [13:41:59]SAM_PROTO_GetFieldsCounters done [13:41:59]requested_item shift.num is exist - process it [13:41:59]requested_item shift.opened is exist - process it [13:41:59]req_shift_opened [13:41:59]FM_GetShiftState [13:41:59]SAM_PROTO_GetShiftState [13:41:59]wFMCommunicate request_size=4 [13:41:59]MH_SAM_APDU [13:41:59]CAPDU: 80 13 01 00 [13:41:59]Write to MH i2c: E2 08 00 8E 54 80 13 01 00 00 00 00 00 5F [13:41:59]Write i2c OK [13:41:59]MH_I2C_Read... [13:41:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:59]Read from MH i2c: E2 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: E2 0E 00 [13:41:59]MH_I2C_Read... [13:41:59]Read from MH i2c: E2 0E 00 8E 54 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 68 [13:41:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:41:59]wFMCommunicate OK [13:41:59]SAM_PROTO_GetShiftState done [13:41:59]FM_GetShiftState done [13:41:59]req_shift_opened done [13:41:59]requested_item shift.open_date is exist - process it [13:41:59]req_shift_open_date [13:41:59]req_shift_open_date done [13:41:59]produce_requested_data done [13:41:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166036,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:41:59]process_action_free close_receipt [13:41:59]json_value_free [13:41:59]json_value_free done [13:41:59]process_json_proto returns [13:41:59]Send response to host [13:41:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166036,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:41:59]free response buf [13:41:59]execute_script done [13:41:59]execute_script returns [13:41:59]free content buf [13:41:59]Sock 6.Close socket [13:41:59]Sock 6.Thread stoped [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]accept exits with 5 [13:43:58]New connection [13:43:58]New thread 3066776932 created [13:43:58]Thread 3066920292 joined [13:43:58]Waiting for new connection... [13:43:58] Sock 5.Parse request [13:43:58]Sock 5.Check first char [13:43:58]Sock 5.First char is OK [13:43:58]request: POST /json_proto HTTP/1.0 [13:43:58]Method: POST [13:43:58]URL: /json_proto [13:43:58]Method is POST - this is cgi request [13:43:58]url: /json_proto [13:43:58]query_string will be loaded in cgi processing [13:43:58]execute_cgi json_proto POST (null) [13:43:58]execute_cgi path=json_proto method=POST [13:43:58]POST find Content-Length [13:43:58]Host: 172.17.53.195:8080 [13:43:58]Content-Length: 674 [13:43:58]Content-Type: application/json [13:43:58] [13:43:58]POST finish read [13:43:58]Found Content-Length = 674 [13:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [13:43:58]execute_script... [13:43:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [13:43:58]POST & json_proto [13:43:58]process_json_proto [13:43:58]json parsed OK: [13:43:58]protocol is kg_v1.0 [13:43:58]action value=close_receipt [13:43:58]process_action close_receipt [13:43:58]cmd_close_receipt [13:43:58]MH_GetDate [13:43:58]Write to MH i2c: F0 00 00 8F 54 D2 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: F0 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: F0 09 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: F0 09 00 8F 54 00 B0 5A 16 67 21 48 4A 65 7A [13:43:58]GetLastDocTimeStamp 1729518134 [13:43:58]current date 1729518256 [13:43:58]FM_GetShiftState [13:43:58]SAM_PROTO_GetShiftState [13:43:58]wFMCommunicate request_size=4 [13:43:58]MH_SAM_APDU [13:43:58]CAPDU: 80 13 01 00 [13:43:58]Write to MH i2c: E2 08 00 90 54 80 13 01 00 00 00 00 00 61 [13:43:58]Write i2c OK [13:43:58]MH_I2C_Read... [13:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:58]Read from MH i2c: E2 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 0E 00 [13:43:58]MH_I2C_Read... [13:43:58]Read from MH i2c: E2 0E 00 90 54 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6A [13:43:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:43:58]wFMCommunicate OK [13:43:58]SAM_PROTO_GetShiftState done [13:43:58]FM_GetShiftState done [13:43:58]opened in 1729470944 [13:43:58]opened+sec_in_day 1729557344 [13:43:58]quantity*price = 60045 [13:43:58]sum+1 = 60047 [13:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 148 21.10.2024 13:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166037 ФПД: 210096445885878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134417&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166037&fm=210096445885878&tin=02508201610067®Number=0000000000091764&sum=60000 [13:43:59]StoreToDocumentArchive [13:43:59]shift 535 fd 166037 [13:43:59]save to /storage/0535/doc_00166037 [13:43:59]save last doc name /storage/0535/doc_00166037 to /storage/kkm_last_doc_name [13:43:59]save OK [13:43:59]Clear old archive folders... [13:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:43:59]tlvbuf is 01640130 [13:43:59]SAM_PROTO_ClearQueue [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 09 00 00 [13:43:59]Write to MH i2c: E2 08 00 9D 54 80 09 00 00 00 00 00 00 63 [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 9D 54 00 90 00 65 [13:43:59]RAPDU: 90 00 [13:43:59]wFMCommunicate OK [13:43:59]SAM_PROTO_ClearQueue done [13:43:59]KKMCreateOFDPacket [13:43:59]OFDProtocolAddRootSTLVToBuf [13:43:59]FM_MakeSignedData [13:43:59]FM_MakeSignedData [13:43:59]SAM_PROTO_SignData [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 0D 01 02 [13:43:59]Write to MH i2c: E2 08 00 9E 54 80 0D 01 02 00 00 00 00 6B [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 03 00 9E 54 00 90 00 66 [13:43:59]RAPDU: 90 00 [13:43:59]wFMCommunicate OK [13:43:59]wFMCommunicate request_size=255 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 88 02 00 35 04 06 00 BF 14 E4 06 [13:43:59]Write to MH i2c: E2 02 01 9F 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 88 02 00 35 04 06 00 BF 14 E4 06 00 00 C9 [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 9F 54 00 90 00 67 [13:44:00]RAPDU: 90 00 [13:44:00]wFMCommunicate OK [13:44:00]wFMCommunicate request_size=7 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 0D 02 02 02 8D B6 [13:44:00]Write to MH i2c: E2 0A 00 A0 54 80 0D 02 02 02 00 8D B6 00 00 B5 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 A0 54 00 90 00 68 [13:44:00]RAPDU: 90 00 [13:44:00]wFMCommunicate OK [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 0D 03 02 [13:44:00]Write to MH i2c: E2 08 00 A1 54 80 0D 03 02 00 00 00 00 70 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 0B 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 0B 00 A1 54 00 1B 46 18 EC 64 02 0C 5C 90 00 A4 [13:44:00]RAPDU: 1B 46 18 EC 64 02 0C 5C 90 00 [13:44:00]wFMCommunicate OK [13:44:00]SAM_PROTO_SignData done [13:44:00]FM_MakeSignedData done [13:44:00]CreateOFDProtocolMessage [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 11 00 00 [13:44:00]Write to MH i2c: E2 08 00 A2 54 80 11 00 00 00 00 00 00 70 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 17 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 17 00 A2 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [13:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:44:00]wFMCommunicate OK [13:44:00]CreateOFDProtocolMessage done [13:44:00]OFDSenderStorePacket 166037 [13:44:00]StoreOFDPacket docnum=166037 [13:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F0 55 04 01 8B A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 88 02 00 35 04 06 00 BF 14 E4 06 8D B6 1B 46 18 EC 64 02 0C 5C [13:44:00]CheckFolder [13:44:00]dirname=/storage/ofd_packets [13:44:00]CheckFolder done [13:44:00]ProducePacketName [13:44:00]name=ofd_packets/00166037 [13:44:00]NVStorageSaveData ofd_packets/00166037 [13:44:00]File name is /storage/ofd_packets/00166037 [13:44:00]Write 298 bytes [13:44:00]NVStorageSaveData done [13:44:00]OFDSenderStorePacket done [13:44:00]KKMCreateOFDPacket done [13:44:00]NVStorageSaveData kkm_last_timestamp [13:44:00]File name is /storage/kkm_last_timestamp [13:44:00]Write 4 bytes [13:44:00]NVStorageSaveData done [13:44:00]ExternCall_PrintAddStr [13:44:00]wPrintStart [13:44:00]Write to MH i2c: 01 00 00 A3 54 F7 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 A3 54 00 00 00 00 00 FF 0F 0C [13:44:00]RasterBufferAndPrint [13:44:00]line Счет N : (1)220608 [13:44:00]line ИНН: 02508201610067 [13:44:00]line Контрольно-Кассовый Чек [13:44:00]line ПРОДАЖА [13:44:00]line ТРК (МРК, ГНК) : 21 [13:44:00]line Товар: 2710194210 [13:44:00]line ДТ-К-5 [13:44:00]line 7.880 * 76.20 [13:44:00]line = 600.46 [13:44:00]line НДС 12% НСП 1% [13:44:00]line > о реализуемом товаре [13:44:00]line ОКРУГЛЕНИЕ: -0.46 [13:44:00]line ИТОГО: 600.00 [13:44:00]line Внесено: 600.00 [13:44:00]line СДАЧА: 0.00 [13:44:00]line НСП 1% : 5.31 [13:44:00]line НДС 12% : 63.77 [13:44:00]line Наличными: 600.00 [13:44:00]line Безнал.: 0.00 [13:44:00]line Место: АЗС № 161 "Партнер Нефть" [13:44:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:44:00]line СНО: Общий режим [13:44:00]line Чек 148 21.10.2024 13:44 [13:44:00]line Смена: 535 ФФД: 1.0 [13:44:00]line ЗНМ: 0300000104 [13:44:00]line РНМ: 0000000000091764 [13:44:00]line Версия ККМ: 001 [13:44:00]line ФМ: 0000000000871759 [13:44:00]line ФД: 166037 [13:44:00]line ФПД: 210096445885878 [13:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134417&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166037&fm=210096445885878&tin=02508201610067®Number=0000000000091764&sum=60000 [13:44:00]OFD Sender: Processing packet 166037 [packets to send 48, broken 47] [13:44:00]ProducePacketName [13:44:00]name=ofd_packets/00166037 [13:44:00]OFD Sender: To server: pG, [13:44:00]CommunicateWithHost lk.salyk.kg:30040 [13:44:00]ConnectInit lk.salyk.kg [13:44:00]written 0, free lines is 4095 [13:44:00]Connected sock=7 [13:44:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F0 55 04 01 8B A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 B1 5A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 88 02 00 35 04 06 00 BF 14 E4 06 8D B6 1B 46 18 EC 64 02 0C 5C [13:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A D1 47 00 91 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 95 88 02 00 F4 03 04 00 1F 01 16 67 B6 04 01 00 00 81 7B 80 91 D0 FE 96 D8 [13:44:00]CommunicateWithHost err = 0 [13:44:00]CheckOFDResponse [13:44:00]1017 (14) - 77093643461234 [13:44:00]1041 (16) - 0000000000871759 [13:44:00]1040 (4) - 166037 [13:44:00]1012 (4) - 21.10.2024 07:22 [13:44:00]1206 (1) - 0 [13:44:00]OFD Sender: Remove packet 166037 [13:44:00]ProducePacketName [13:44:00]name=ofd_packets/00166037 [13:44:00]NVStorageDeleteData [13:44:00]Write to MH i2c: 01 00 00 CE 54 22 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 CE 54 00 00 00 00 00 D1 0C 06 [13:44:00]RasterBufferAndPrint [13:44:00]line [13:44:00]line [13:44:00]line [13:44:00]line [13:44:00]line [13:44:00]written 0, free lines is 3288 [13:44:01]MH_Cut [13:44:01]Write to MH i2c: D1 01 00 D5 54 01 FB [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: D1 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: D1 01 00 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: D1 01 00 D5 54 00 FA [13:44:01]Write to MH i2c: 01 00 00 D6 54 2A [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:01]OFD Sender: No OFD packet to send [13:44:01]*** Cut start [13:44:01]*** Partial cut [13:44:01]*** CUTSNS_PIN = 1 [13:44:01]*** CUTSNS_PIN = 0 [13:44:02]*** Brake cut motor [13:44:02]Read from MH i2c: 01 [13:44:02]MH_I2C_Read... [13:44:02]*** Stop cut motor [13:44:02]*** Cut end [13:44:02]Read from MH i2c: 01 07 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: 01 07 00 D6 54 00 00 00 00 00 FF 0F 3F [13:44:02]process_action close_receipt done [13:44:02]requested_data is exist [13:44:02]produce_requested_data [13:44:02]requested_item fm.sn is exist - process it [13:44:02]wFMCommunicate request_size=4 [13:44:02]MH_SAM_APDU [13:44:02]CAPDU: 80 11 00 00 [13:44:02]Write to MH i2c: E2 08 00 D7 54 80 11 00 00 00 00 00 00 A5 [13:44:02]Write i2c OK [13:44:02]MH_I2C_Read... [13:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:02]Read from MH i2c: E2 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 17 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 17 00 D7 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [13:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:44:02]wFMCommunicate OK [13:44:02]requested_item fd.num is exist - process it [13:44:02]SAM_PROTO_GetFieldsCounters [13:44:02]wFMCommunicate request_size=4 [13:44:02]MH_SAM_APDU [13:44:02]CAPDU: 80 13 00 00 [13:44:02]Write to MH i2c: E2 08 00 D8 54 80 13 00 00 00 00 00 00 A8 [13:44:02]Write i2c OK [13:44:02]MH_I2C_Read... [13:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:02]Read from MH i2c: E2 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 62 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 62 00 D8 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [13:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 95 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:02]wFMCommunicate OK [13:44:02]SAM_PROTO_GetFieldsCounters done [13:44:02]requested_item shift.num is exist - process it [13:44:02]requested_item shift.opened is exist - process it [13:44:02]req_shift_opened [13:44:02]FM_GetShiftState [13:44:02]SAM_PROTO_GetShiftState [13:44:02]wFMCommunicate request_size=4 [13:44:02]MH_SAM_APDU [13:44:02]CAPDU: 80 13 01 00 [13:44:02]Write to MH i2c: E2 08 00 D9 54 80 13 01 00 00 00 00 00 AA [13:44:02]Write i2c OK [13:44:02]MH_I2C_Read... [13:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:02]Read from MH i2c: E2 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 0E 00 [13:44:02]MH_I2C_Read... [13:44:02]Read from MH i2c: E2 0E 00 D9 54 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B3 [13:44:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:44:02]wFMCommunicate OK [13:44:02]SAM_PROTO_GetShiftState done [13:44:02]FM_GetShiftState done [13:44:02]req_shift_opened done [13:44:02]requested_item shift.open_date is exist - process it [13:44:02]req_shift_open_date [13:44:02]req_shift_open_date done [13:44:02]produce_requested_data done [13:44:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166037,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:44:02]process_action_free close_receipt [13:44:02]json_value_free [13:44:02]json_value_free done [13:44:02]process_json_proto returns [13:44:02]Send response to host [13:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166037,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:44:02]free response buf [13:44:02]execute_script done [13:44:02]execute_script returns [13:44:02]free content buf [13:44:02]Sock 5.Close socket [13:44:02]Sock 5.Thread stoped [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:07]accept exits with 6 [13:49:07]New connection [13:49:07]New thread 3066920292 created [13:49:07]Thread 3066776932 joined [13:49:07]Waiting for new connection... [13:49:07] Sock 6.Parse request [13:49:07]Sock 6.Check first char [13:49:07]Sock 6.First char is OK [13:49:07]request: POST /json_proto HTTP/1.0 [13:49:07]Method: POST [13:49:07]URL: /json_proto [13:49:07]Method is POST - this is cgi request [13:49:07]url: /json_proto [13:49:07]query_string will be loaded in cgi processing [13:49:07]execute_cgi json_proto POST (null) [13:49:07]execute_cgi path=json_proto method=POST [13:49:07]POST find Content-Length [13:49:07]Host: 172.17.53.195:8080 [13:49:07]Content-Length: 766 [13:49:07]Content-Type: application/json [13:49:07] [13:49:07]POST finish read [13:49:07]Found Content-Length = 766 [13:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:07]execute_script... [13:49: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)220609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:07]POST & json_proto [13:49:07]process_json_proto [13:49:07]json parsed OK: [13:49:07]protocol is kg_v1.0 [13:49:07]action value=close_receipt [13:49:07]process_action close_receipt [13:49:07]cmd_close_receipt [13:49:07]MH_GetDate [13:49:07]Write to MH i2c: F0 00 00 DA 54 1D [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: F0 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: F0 09 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: F0 09 00 DA 54 00 E5 5B 16 67 21 48 4A 65 FB [13:49:07]GetLastDocTimeStamp 1729518257 [13:49:07]current date 1729518565 [13:49:07]FM_GetShiftState [13:49:07]SAM_PROTO_GetShiftState [13:49:07]wFMCommunicate request_size=4 [13:49:07]MH_SAM_APDU [13:49:07]CAPDU: 80 13 01 00 [13:49:07]Write to MH i2c: E2 08 00 DB 54 80 13 01 00 00 00 00 00 AC [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0E 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0E 00 DB 54 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B5 [13:49:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:49:07]wFMCommunicate OK [13:49:07]SAM_PROTO_GetShiftState done [13:49:07]FM_GetShiftState done [13:49:07]opened in 1729470944 [13:49:07]opened+sec_in_day 1729557344 [13:49:07]quantity*price = 100050 [13:49:07]sum+1 = 100052 [13:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 149 21.10.2024 13:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166038 ФПД: 104540714293965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134925&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166038&fm=104540714293965&tin=02508201610067®Number=0000000000091764&sum=100051 [13:49:08]StoreToDocumentArchive [13:49:08]shift 535 fd 166038 [13:49:08]save to /storage/0535/doc_00166038 [13:49:08]save last doc name /storage/0535/doc_00166038 to /storage/kkm_last_doc_name [13:49:08]save OK [13:49:08]Clear old archive folders... [13:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:49:08]tlvbuf is 01BAB4F0 [13:49:08]SAM_PROTO_ClearQueue [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 09 00 00 [13:49:08]Write to MH i2c: E2 08 00 E8 54 80 09 00 00 00 00 00 00 AE [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 E8 54 00 90 00 B0 [13:49:08]RAPDU: 90 00 [13:49:08]wFMCommunicate OK [13:49:08]SAM_PROTO_ClearQueue done [13:49:08]KKMCreateOFDPacket [13:49:08]OFDProtocolAddRootSTLVToBuf [13:49:08]FM_MakeSignedData [13:49:08]FM_MakeSignedData [13:49:08]SAM_PROTO_SignData [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 0D 01 02 [13:49:08]Write to MH i2c: E2 08 00 E9 54 80 0D 01 02 00 00 00 00 B6 [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 E9 54 00 90 00 B1 [13:49:08]RAPDU: 90 00 [13:49:08]wFMCommunicate OK [13:49:08]wFMCommunicate request_size=255 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E5 5B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 88 02 00 35 04 06 00 5F 14 48 23 [13:49:08]Write to MH i2c: E2 02 01 EA 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E5 5B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 88 02 00 35 04 06 00 5F 14 48 23 00 00 11 [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 EA 54 00 90 00 B2 [13:49:08]RAPDU: 90 00 [13:49:08]wFMCommunicate OK [13:49:08]wFMCommunicate request_size=7 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 0D 02 02 02 DA CD [13:49:08]Write to MH i2c: E2 0A 00 EB 54 80 0D 02 02 02 00 DA CD 00 00 64 [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 03 00 EB 54 00 90 00 B3 [13:49:08]RAPDU: 90 00 [13:49:08]wFMCommunicate OK [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 0D 03 02 [13:49:08]Write to MH i2c: E2 08 00 EC 54 80 0D 03 02 00 00 00 00 BB [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 0B 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 0B 00 EC 54 00 8F F8 92 13 3E 9F 33 30 90 00 28 [13:49:08]RAPDU: 8F F8 92 13 3E 9F 33 30 90 00 [13:49:08]wFMCommunicate OK [13:49:08]SAM_PROTO_SignData done [13:49:08]FM_MakeSignedData done [13:49:08]CreateOFDProtocolMessage [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 11 00 00 [13:49:08]Write to MH i2c: E2 08 00 ED 54 80 11 00 00 00 00 00 00 BB [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 17 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 17 00 ED 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [13:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:49:08]wFMCommunicate OK [13:49:08]CreateOFDProtocolMessage done [13:49:08]OFDSenderStorePacket 166038 [13:49:08]StoreOFDPacket docnum=166038 [13:49:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 52 7A 04 01 7B 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E5 5B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 88 02 00 35 04 06 00 5F 14 48 23 DA CD 8F F8 92 13 3E 9F 33 30 [13:49:08]CheckFolder [13:49:08]dirname=/storage/ofd_packets [13:49:08]CheckFolder done [13:49:08]ProducePacketName [13:49:08]name=ofd_packets/00166038 [13:49:08]NVStorageSaveData ofd_packets/00166038 [13:49:08]File name is /storage/ofd_packets/00166038 [13:49:08]Write 298 bytes [13:49:08]NVStorageSaveData done [13:49:08]OFDSenderStorePacket done [13:49:08]KKMCreateOFDPacket done [13:49:08]NVStorageSaveData kkm_last_timestamp [13:49:08]File name is /storage/kkm_last_timestamp [13:49:08]Write 4 bytes [13:49:08]NVStorageSaveData done [13:49:08]ExternCall_PrintAddStr [13:49:08]wPrintStart [13:49:08]Write to MH i2c: 01 00 00 EE 54 42 [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: 01 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: 01 07 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: 01 07 00 EE 54 00 00 00 00 00 FF 0F 57 [13:49:08]RasterBufferAndPrint [13:49:08]line Счет N : (1)220609 [13:49:08]line ИНН: 02508201610067 [13:49:08]line Контрольно-Кассовый Чек [13:49:08]line ПРОДАЖА [13:49:08]line ТРК (МРК, ГНК) : 41 [13:49:08]line Товар: 2710194210 [13:49:08]line ДТ-К-5 [13:49:08]line 13.130 * 76.20 [13:49:08]line = 1000.51 [13:49:08]line НДС 12% НСП 1% [13:49:08]line > о реализуемом товаре [13:49:08]line ИТОГО: 1000.51 [13:49:08]line НСП 1% : 8.85 [13:49:08]line НДС 12% : 106.25 [13:49:08]line Наличными: 0.00 [13:49:08]line Безнал.: 1000.51 [13:49:08]line Место: АЗС № 161 "Партнер Нефть" [13:49:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:49:08]line СНО: Общий режим [13:49:08]line Чек 149 21.10.2024 13:49 [13:49:08]line Смена: 535 ФФД: 1.0 [13:49:08]line ЗНМ: 0300000104 [13:49:08]line РНМ: 0000000000091764 [13:49:08]line Версия ККМ: 001 [13:49:08]line Платежная система: Mbank [13:49:08]line ФМ: 0000000000871759 [13:49:08]line ФД: 166038 [13:49:08]line ФПД: 104540714293965 [13:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T134925&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166038&fm=104540714293965&tin=02508201610067®Number=0000000000091764&sum=100051 [13:49:09]OFD Sender: Processing packet 166038 [packets to send 48, broken 47] [13:49:09]ProducePacketName [13:49:09]name=ofd_packets/00166038 [13:49:09]OFD Sender: To server: pG, [13:49:09]CommunicateWithHost lk.salyk.kg:30040 [13:49:09]ConnectInit lk.salyk.kg [13:49:09]written 0, free lines is 4095 [13:49:09]Connected sock=7 [13:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 52 7A 04 01 7B 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 E5 5B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 96 88 02 00 35 04 06 00 5F 14 48 23 DA CD 8F F8 92 13 3E 9F 33 30 [13:49:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7A 83 47 00 10 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 35 39 10 04 04 00 96 88 02 00 F4 03 04 00 54 02 16 67 B6 04 01 00 00 CA 62 8B 6A E3 53 67 1D [13:49:09]CommunicateWithHost err = 0 [13:49:09]CheckOFDResponse [13:49:09]1017 (14) - 77093643461234 [13:49:09]1041 (16) - 0000000000871759 [13:49:09]1040 (4) - 166038 [13:49:09]1012 (4) - 21.10.2024 07:27 [13:49:09]1206 (1) - 0 [13:49:09]OFD Sender: Remove packet 166038 [13:49:09]ProducePacketName [13:49:09]name=ofd_packets/00166038 [13:49:09]NVStorageDeleteData [13:49:09]Write to MH i2c: 01 00 00 17 55 6C [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: 01 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: 01 07 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: 01 07 00 17 55 00 00 00 00 00 FD 0C 7C [13:49:09]RasterBufferAndPrint [13:49:09]line [13:49:09]line [13:49:09]line [13:49:09]line [13:49:09]line [13:49:09]written 0, free lines is 3332 [13:49:09]MH_Cut [13:49:09]Write to MH i2c: D1 01 00 1E 55 01 45 [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: D1 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: D1 01 00 [13:49:09]MH_I2C_Read... [13:49:09]Read from MH i2c: D1 01 00 1E 55 00 44 [13:49:09]Write to MH i2c: 01 00 00 1F 55 74 [13:49:09]Write i2c OK [13:49:09]MH_I2C_Read... [13:49:10]OFD Sender: No OFD packet to send [13:49:10]*** Cut start [13:49:10]*** Partial cut [13:49:10]*** CUTSNS_PIN = 1 [13:49:10]*** CUTSNS_PIN = 0 [13:49:10]*** Brake cut motor [13:49:11]Read from MH i2c: 01 [13:49:11]MH_I2C_Read... [13:49:11]*** Stop cut motor [13:49:11]*** Cut end [13:49:11]Read from MH i2c: 01 07 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: 01 07 00 1F 55 00 00 00 00 00 FF 0F 89 [13:49:11]process_action close_receipt done [13:49:11]requested_data is exist [13:49:11]produce_requested_data [13:49:11]requested_item fm.sn is exist - process it [13:49:11]wFMCommunicate request_size=4 [13:49:11]MH_SAM_APDU [13:49:11]CAPDU: 80 11 00 00 [13:49:11]Write to MH i2c: E2 08 00 20 55 80 11 00 00 00 00 00 00 EF [13:49:11]Write i2c OK [13:49:11]MH_I2C_Read... [13:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:11]Read from MH i2c: E2 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 17 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 17 00 20 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [13:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:49:11]wFMCommunicate OK [13:49:11]requested_item fd.num is exist - process it [13:49:11]SAM_PROTO_GetFieldsCounters [13:49:11]wFMCommunicate request_size=4 [13:49:11]MH_SAM_APDU [13:49:11]CAPDU: 80 13 00 00 [13:49:11]Write to MH i2c: E2 08 00 21 55 80 13 00 00 00 00 00 00 F2 [13:49:11]Write i2c OK [13:49:11]MH_I2C_Read... [13:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:11]Read from MH i2c: E2 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 62 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 62 00 21 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [13:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 96 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:11]wFMCommunicate OK [13:49:11]SAM_PROTO_GetFieldsCounters done [13:49:11]requested_item shift.num is exist - process it [13:49:11]requested_item shift.opened is exist - process it [13:49:11]req_shift_opened [13:49:11]FM_GetShiftState [13:49:11]SAM_PROTO_GetShiftState [13:49:11]wFMCommunicate request_size=4 [13:49:11]MH_SAM_APDU [13:49:11]CAPDU: 80 13 01 00 [13:49:11]Write to MH i2c: E2 08 00 22 55 80 13 01 00 00 00 00 00 F4 [13:49:11]Write i2c OK [13:49:11]MH_I2C_Read... [13:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:11]Read from MH i2c: E2 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 0E 00 [13:49:11]MH_I2C_Read... [13:49:11]Read from MH i2c: E2 0E 00 22 55 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FD [13:49:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:49:11]wFMCommunicate OK [13:49:11]SAM_PROTO_GetShiftState done [13:49:11]FM_GetShiftState done [13:49:11]req_shift_opened done [13:49:11]requested_item shift.open_date is exist - process it [13:49:11]req_shift_open_date [13:49:11]req_shift_open_date done [13:49:11]produce_requested_data done [13:49:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166038,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:49:11]process_action_free close_receipt [13:49:11]json_value_free [13:49:11]json_value_free done [13:49:11]process_json_proto returns [13:49:11]Send response to host [13:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166038,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:49:11]free response buf [13:49:11]execute_script done [13:49:11]execute_script returns [13:49:11]free content buf [13:49:11]Sock 6.Close socket [13:49:11]Sock 6.Thread stoped [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:31]accept exits with 5 [13:51:31]New connection [13:51:31]New thread 3066776932 created [13:51:31]Thread 3066920292 joined [13:51:31]Waiting for new connection... [13:51:31] Sock 5.Parse request [13:51:31]Sock 5.Check first char [13:51:31]Sock 5.First char is OK [13:51:31]request: POST /json_proto HTTP/1.0 [13:51:31]Method: POST [13:51:31]URL: /json_proto [13:51:31]Method is POST - this is cgi request [13:51:31]url: /json_proto [13:51:31]query_string will be loaded in cgi processing [13:51:31]execute_cgi json_proto POST (null) [13:51:31]execute_cgi path=json_proto method=POST [13:51:31]POST find Content-Length [13:51:31]Host: 172.17.53.195:8080 [13:51:31]Content-Length: 682 [13:51:31]Content-Type: application/json [13:51:31] [13:51:31]POST finish read [13:51:31]Found Content-Length = 682 [13:51:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:31]execute_script... [13: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)220610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:31]POST & json_proto [13:51:31]process_json_proto [13:51:31]json parsed OK: [13:51:31]protocol is kg_v1.0 [13:51:31]action value=close_receipt [13:51:31]process_action close_receipt [13:51:31]cmd_close_receipt [13:51:31]MH_GetDate [13:51:31]Write to MH i2c: F0 00 00 23 55 67 [13:51:31]Write i2c OK [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: F0 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: F0 09 00 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: F0 09 00 23 55 00 76 5C 16 67 21 48 4A 65 D7 [13:51:31]GetLastDocTimeStamp 1729518565 [13:51:31]current date 1729518710 [13:51:31]FM_GetShiftState [13:51:31]SAM_PROTO_GetShiftState [13:51:31]wFMCommunicate request_size=4 [13:51:31]MH_SAM_APDU [13:51:31]CAPDU: 80 13 01 00 [13:51:31]Write to MH i2c: E2 08 00 24 55 80 13 01 00 00 00 00 00 F6 [13:51:31]Write i2c OK [13:51:31]MH_I2C_Read... [13:51:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:31]Read from MH i2c: E2 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: E2 0E 00 [13:51:31]MH_I2C_Read... [13:51:31]Read from MH i2c: E2 0E 00 24 55 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FF [13:51:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:51:31]wFMCommunicate OK [13:51:31]SAM_PROTO_GetShiftState done [13:51:31]FM_GetShiftState done [13:51:31]opened in 1729470944 [13:51:31]opened+sec_in_day 1729557344 [13:51:31]quantity*price = 100015 [13:51:31]sum+1 = 100017 [13:51:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 150 21.10.2024 13:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166039 ФПД: 122016284181525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135150&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166039&fm=122016284181525&tin=02508201610067®Number=0000000000091764&sum=100000 [13:51:32]StoreToDocumentArchive [13:51:32]shift 535 fd 166039 [13:51:32]save to /storage/0535/doc_00166039 [13:51:32]save last doc name /storage/0535/doc_00166039 to /storage/kkm_last_doc_name [13:51:32]save OK [13:51:32]Clear old archive folders... [13:51:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:32]tlvbuf is 01BAAED0 [13:51:32]SAM_PROTO_ClearQueue [13:51:32]wFMCommunicate request_size=4 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 09 00 00 [13:51:32]Write to MH i2c: E2 08 00 31 55 80 09 00 00 00 00 00 00 F8 [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:32]Read from MH i2c: E2 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 03 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 03 00 31 55 00 90 00 FA [13:51:32]RAPDU: 90 00 [13:51:32]wFMCommunicate OK [13:51:32]SAM_PROTO_ClearQueue done [13:51:32]KKMCreateOFDPacket [13:51:32]OFDProtocolAddRootSTLVToBuf [13:51:32]FM_MakeSignedData [13:51:32]FM_MakeSignedData [13:51:32]SAM_PROTO_SignData [13:51:32]wFMCommunicate request_size=4 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 0D 01 02 [13:51:32]Write to MH i2c: E2 08 00 32 55 80 0D 01 02 00 00 00 00 00 [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:32]Read from MH i2c: E2 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 03 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 03 00 32 55 00 90 00 FB [13:51:32]RAPDU: 90 00 [13:51:32]wFMCommunicate OK [13:51:32]wFMCommunicate request_size=255 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 76 5C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 88 02 00 35 04 06 00 6E [13:51:32]Write to MH i2c: E2 02 01 33 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 76 5C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 88 02 00 35 04 06 00 6E 00 00 1D [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 33 55 00 90 00 FC [13:51:33]RAPDU: 90 00 [13:51:33]wFMCommunicate OK [13:51:33]wFMCommunicate request_size=10 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 0D 02 02 05 F9 21 46 84 15 [13:51:33]Write to MH i2c: E2 0D 00 34 55 80 0D 02 02 05 00 F9 21 46 84 15 00 00 06 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 34 55 00 90 00 FD [13:51:33]RAPDU: 90 00 [13:51:33]wFMCommunicate OK [13:51:33]wFMCommunicate request_size=4 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 0D 03 02 [13:51:33]Write to MH i2c: E2 08 00 35 55 80 0D 03 02 00 00 00 00 05 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 0B 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 0B 00 35 55 00 72 C6 C5 E7 5D 27 94 50 90 00 52 [13:51:33]RAPDU: 72 C6 C5 E7 5D 27 94 50 90 00 [13:51:33]wFMCommunicate OK [13:51:33]SAM_PROTO_SignData done [13:51:33]FM_MakeSignedData done [13:51:33]CreateOFDProtocolMessage [13:51:33]wFMCommunicate request_size=4 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 11 00 00 [13:51:33]Write to MH i2c: E2 08 00 36 55 80 11 00 00 00 00 00 00 05 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 17 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 17 00 36 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [13:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:51:33]wFMCommunicate OK [13:51:33]CreateOFDProtocolMessage done [13:51:33]OFDSenderStorePacket 166039 [13:51:33]StoreOFDPacket docnum=166039 [13:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 89 07 01 CF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 76 5C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 88 02 00 35 04 06 00 6E F9 21 46 84 15 72 C6 C5 E7 5D 27 94 50 [13:51:33]CheckFolder [13:51:33]dirname=/storage/ofd_packets [13:51:33]CheckFolder done [13:51:33]ProducePacketName [13:51:33]name=ofd_packets/00166039 [13:51:33]NVStorageSaveData ofd_packets/00166039 [13:51:33]File name is /storage/ofd_packets/00166039 [13:51:33]Write 301 bytes [13:51:33]NVStorageSaveData done [13:51:33]OFDSenderStorePacket done [13:51:33]KKMCreateOFDPacket done [13:51:33]NVStorageSaveData kkm_last_timestamp [13:51:33]File name is /storage/kkm_last_timestamp [13:51:33]Write 4 bytes [13:51:33]NVStorageSaveData done [13:51:33]ExternCall_PrintAddStr [13:51:33]wPrintStart [13:51:33]Write to MH i2c: 01 00 00 37 55 8C [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 07 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 07 00 37 55 00 00 00 00 00 FF 0F A1 [13:51:33]RasterBufferAndPrint [13:51:33]line Счет N : (1)220610 [13:51:33]line ИНН: 02508201610067 [13:51:33]line Контрольно-Кассовый Чек [13:51:33]line ПРОДАЖА [13:51:33]line ТРК (МРК, ГНК) : 13 [13:51:33]line Товар: 2710124130 [13:51:33]line Аи-92-К-5 [13:51:33]line 14.950 * 66.90 [13:51:33]line = 1000.16 [13:51:33]line НДС 12% НСП 1% [13:51:33]line > о реализуемом товаре [13:51:33]line ОКРУГЛЕНИЕ: -0.16 [13:51:33]line ИТОГО: 1000.00 [13:51:33]line Внесено: 1000.00 [13:51:33]line СДАЧА: 0.00 [13:51:33]line НСП 1% : 8.85 [13:51:33]line НДС 12% : 106.21 [13:51:33]line Наличными: 1000.00 [13:51:33]line Безнал.: 0.00 [13:51:33]line Место: АЗС № 161 "Партнер Нефть" [13:51:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:51:33]line СНО: Общий режим [13:51:33]line Чек 150 21.10.2024 13:51 [13:51:33]line Смена: 535 ФФД: 1.0 [13:51:33]line ЗНМ: 0300000104 [13:51:33]line РНМ: 0000000000091764 [13:51:33]line Версия ККМ: 001 [13:51:33]line ФМ: 0000000000871759 [13:51:33]line ФД: 166039 [13:51:33]line ФПД: 122016284181525 [13:51:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135150&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166039&fm=122016284181525&tin=02508201610067®Number=0000000000091764&sum=100000 [13:51:33]written 0, free lines is 4095 [13:51:33]OFD Sender: Processing packet 166039 [packets to send 48, broken 47] [13:51:33]ProducePacketName [13:51:33]name=ofd_packets/00166039 [13:51:33]OFD Sender: To server: pG, [13:51:33]CommunicateWithHost lk.salyk.kg:30040 [13:51:33]ConnectInit lk.salyk.kg [13:51:33]Connected sock=7 [13:51:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 89 07 01 CF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 76 5C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 88 02 00 35 04 06 00 6E F9 21 46 84 15 72 C6 C5 E7 5D 27 94 50 [13:51:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 18 8B 47 00 78 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 97 88 02 00 F4 03 04 00 E4 02 16 67 B6 04 01 00 00 0A 77 4C D3 18 21 F3 EE [13:51:33]CommunicateWithHost err = 0 [13:51:33]CheckOFDResponse [13:51:33]1017 (14) - 77093643461234 [13:51:33]1041 (16) - 0000000000871759 [13:51:33]1040 (4) - 166039 [13:51:33]1012 (4) - 21.10.2024 07:29 [13:51:33]1206 (1) - 0 [13:51:33]OFD Sender: Remove packet 166039 [13:51:33]ProducePacketName [13:51:33]name=ofd_packets/00166039 [13:51:33]NVStorageDeleteData [13:51:33]Write to MH i2c: 01 00 00 62 55 B7 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 07 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 07 00 62 55 00 00 00 00 00 D3 0C 9D [13:51:33]RasterBufferAndPrint [13:51:33]line [13:51:33]line [13:51:33]line [13:51:33]line [13:51:33]line [13:51:33]written 0, free lines is 3288 [13:51:33]MH_Cut [13:51:33]Write to MH i2c: D1 01 00 69 55 01 90 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: D1 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: D1 01 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: D1 01 00 69 55 00 8F [13:51:33]Write to MH i2c: 01 00 00 6A 55 BF [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:34]OFD Sender: No OFD packet to send [13:51:34]*** Cut start [13:51:34]*** Partial cut [13:51:34]*** CUTSNS_PIN = 1 [13:51:34]*** CUTSNS_PIN = 0 [13:51:34]*** Brake cut motor [13:51:35]Read from MH i2c: 01 [13:51:35]MH_I2C_Read... [13:51:35]*** Stop cut motor [13:51:35]*** Cut end [13:51:35]Read from MH i2c: 01 07 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 07 00 6A 55 00 00 00 00 00 FF 0F D4 [13:51:35]process_action close_receipt done [13:51:35]requested_data is exist [13:51:35]produce_requested_data [13:51:35]requested_item fm.sn is exist - process it [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 11 00 00 [13:51:35]Write to MH i2c: E2 08 00 6B 55 80 11 00 00 00 00 00 00 3A [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 17 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 17 00 6B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [13:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:51:35]wFMCommunicate OK [13:51:35]requested_item fd.num is exist - process it [13:51:35]SAM_PROTO_GetFieldsCounters [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 13 00 00 [13:51:35]Write to MH i2c: E2 08 00 6C 55 80 13 00 00 00 00 00 00 3D [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 62 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 62 00 6C 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [13: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 97 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:35]wFMCommunicate OK [13:51:35]SAM_PROTO_GetFieldsCounters done [13:51:35]requested_item shift.num is exist - process it [13:51:35]requested_item shift.opened is exist - process it [13:51:35]req_shift_opened [13:51:35]FM_GetShiftState [13:51:35]SAM_PROTO_GetShiftState [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 13 01 00 [13:51:35]Write to MH i2c: E2 08 00 6D 55 80 13 01 00 00 00 00 00 3F [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 0E 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 0E 00 6D 55 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 48 [13:51:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:51:35]wFMCommunicate OK [13:51:35]SAM_PROTO_GetShiftState done [13:51:35]FM_GetShiftState done [13:51:35]req_shift_opened done [13:51:35]requested_item shift.open_date is exist - process it [13:51:35]req_shift_open_date [13:51:35]req_shift_open_date done [13:51:35]produce_requested_data done [13:51:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166039,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:51:35]process_action_free close_receipt [13:51:35]json_value_free [13:51:35]json_value_free done [13:51:35]process_json_proto returns [13:51:35]Send response to host [13:51:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166039,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:51:35]free response buf [13:51:35]execute_script done [13:51:35]execute_script returns [13:51:35]free content buf [13:51:35]Sock 5.Close socket [13:51:35]Sock 5.Thread stoped [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:29]OFD Sender: No OFD packet to send [13:54:34]OFD Sender: No OFD packet to send [13:54:39]OFD Sender: No OFD packet to send [13:54:44]OFD Sender: No OFD packet to send [13:54:49]OFD Sender: No OFD packet to send [13:54:54]OFD Sender: No OFD packet to send [13:54:59]OFD Sender: No OFD packet to send [13:55:04]OFD Sender: No OFD packet to send [13:55:09]OFD Sender: No OFD packet to send [13:55:14]OFD Sender: No OFD packet to send [13:55:19]OFD Sender: No OFD packet to send [13:55:24]OFD Sender: No OFD packet to send [13:55:29]OFD Sender: No OFD packet to send [13:55:34]OFD Sender: No OFD packet to send [13:55:39]OFD Sender: No OFD packet to send [13:55:44]OFD Sender: No OFD packet to send [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:15]accept exits with 6 [13:56:15]New connection [13:56:15]New thread 3066920292 created [13:56:15]Thread 3066776932 joined [13:56:15]Waiting for new connection... [13:56:15] Sock 6.Parse request [13:56:15]Sock 6.Check first char [13:56:15]Sock 6.First char is OK [13:56:15]request: POST /json_proto HTTP/1.0 [13:56:15]Method: POST [13:56:15]URL: /json_proto [13:56:15]Method is POST - this is cgi request [13:56:15]url: /json_proto [13:56:15]query_string will be loaded in cgi processing [13:56:15]execute_cgi json_proto POST (null) [13:56:15]execute_cgi path=json_proto method=POST [13:56:15]POST find Content-Length [13:56:15]Host: 172.17.53.195:8080 [13:56:15]Content-Length: 677 [13:56:15]Content-Type: application/json [13:56:15] [13:56:15]POST finish read [13:56:15]Found Content-Length = 677 [13:56:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:15]execute_script... [13:56: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)220611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:15]POST & json_proto [13:56:15]process_json_proto [13:56:15]json parsed OK: [13:56:15]protocol is kg_v1.0 [13:56:15]action value=close_receipt [13:56:15]process_action close_receipt [13:56:15]cmd_close_receipt [13:56:15]MH_GetDate [13:56:15]Write to MH i2c: F0 00 00 6E 55 B2 [13:56:15]Write i2c OK [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: F0 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: F0 09 00 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: F0 09 00 6E 55 00 92 5D 16 67 21 48 4A 65 3F [13:56:15]GetLastDocTimeStamp 1729518710 [13:56:15]current date 1729518994 [13:56:15]FM_GetShiftState [13:56:15]SAM_PROTO_GetShiftState [13:56:15]wFMCommunicate request_size=4 [13:56:15]MH_SAM_APDU [13:56:15]CAPDU: 80 13 01 00 [13:56:15]Write to MH i2c: E2 08 00 6F 55 80 13 01 00 00 00 00 00 41 [13:56:15]Write i2c OK [13:56:15]MH_I2C_Read... [13:56:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:15]Read from MH i2c: E2 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: E2 0E 00 [13:56:15]MH_I2C_Read... [13:56:15]Read from MH i2c: E2 0E 00 6F 55 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4A [13:56:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:56:15]wFMCommunicate OK [13:56:15]SAM_PROTO_GetShiftState done [13:56:15]FM_GetShiftState done [13:56:15]opened in 1729470944 [13:56:15]opened+sec_in_day 1729557344 [13:56:15]quantity*price = 60009 [13:56:15]sum+1 = 60010 [13:56:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 151 21.10.2024 13:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166040 ФПД: 87571501121667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135634&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166040&fm=87571501121667&tin=02508201610067®Number=0000000000091764&sum=60000 [13:56:17]StoreToDocumentArchive [13:56:17]shift 535 fd 166040 [13:56:17]save to /storage/0535/doc_00166040 [13:56:17]save last doc name /storage/0535/doc_00166040 to /storage/kkm_last_doc_name [13:56:17]save OK [13:56:17]Clear old archive folders... [13:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:56:17]tlvbuf is 015BCDB0 [13:56:17]SAM_PROTO_ClearQueue [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 09 00 00 [13:56:17]Write to MH i2c: E2 08 00 7C 55 80 09 00 00 00 00 00 00 43 [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 7C 55 00 90 00 45 [13:56:17]RAPDU: 90 00 [13:56:17]wFMCommunicate OK [13:56:17]SAM_PROTO_ClearQueue done [13:56:17]KKMCreateOFDPacket [13:56:17]OFDProtocolAddRootSTLVToBuf [13:56:17]FM_MakeSignedData [13:56:17]FM_MakeSignedData [13:56:17]SAM_PROTO_SignData [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 0D 01 02 [13:56:17]Write to MH i2c: E2 08 00 7D 55 80 0D 01 02 00 00 00 00 4B [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 7D 55 00 90 00 46 [13:56:17]RAPDU: 90 00 [13:56:17]wFMCommunicate OK [13:56:17]wFMCommunicate request_size=255 [13:56:17]MH_SAM_APDU [13:56: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 88 02 00 35 04 06 00 4F [13:56:17]Write to MH i2c: E2 02 01 7E 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 88 02 00 35 04 06 00 4F 00 00 4B [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 7E 55 00 90 00 47 [13:56:17]RAPDU: 90 00 [13:56:17]wFMCommunicate OK [13:56:17]wFMCommunicate request_size=10 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 0D 02 02 05 A5 54 37 80 83 [13:56:17]Write to MH i2c: E2 0D 00 7F 55 80 0D 02 02 05 00 A5 54 37 80 83 00 00 8B [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 03 00 7F 55 00 90 00 48 [13:56:17]RAPDU: 90 00 [13:56:17]wFMCommunicate OK [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 0D 03 02 [13:56:17]Write to MH i2c: E2 08 00 80 55 80 0D 03 02 00 00 00 00 50 [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 0B 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 0B 00 80 55 00 06 DE 9D 10 56 B3 8A 2F 90 00 A4 [13:56:17]RAPDU: 06 DE 9D 10 56 B3 8A 2F 90 00 [13:56:17]wFMCommunicate OK [13:56:17]SAM_PROTO_SignData done [13:56:17]FM_MakeSignedData done [13:56:17]CreateOFDProtocolMessage [13:56:17]wFMCommunicate request_size=4 [13:56:17]MH_SAM_APDU [13:56:17]CAPDU: 80 11 00 00 [13:56:17]Write to MH i2c: E2 08 00 81 55 80 11 00 00 00 00 00 00 50 [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:17]Read from MH i2c: E2 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 17 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: E2 17 00 81 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [13:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:56:17]wFMCommunicate OK [13:56:17]CreateOFDProtocolMessage done [13:56:17]OFDSenderStorePacket 166040 [13:56:17]StoreOFDPacket docnum=166040 [13:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 88 07 01 DE 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 88 02 00 35 04 06 00 4F A5 54 37 80 83 06 DE 9D 10 56 B3 8A 2F [13:56:17]CheckFolder [13:56:17]dirname=/storage/ofd_packets [13:56:17]CheckFolder done [13:56:17]ProducePacketName [13:56:17]name=ofd_packets/00166040 [13:56:17]NVStorageSaveData ofd_packets/00166040 [13:56:17]File name is /storage/ofd_packets/00166040 [13:56:17]Write 301 bytes [13:56:17]NVStorageSaveData done [13:56:17]OFDSenderStorePacket done [13:56:17]KKMCreateOFDPacket done [13:56:17]NVStorageSaveData kkm_last_timestamp [13:56:17]File name is /storage/kkm_last_timestamp [13:56:17]Write 4 bytes [13:56:17]NVStorageSaveData done [13:56:17]ExternCall_PrintAddStr [13:56:17]wPrintStart [13:56:17]Write to MH i2c: 01 00 00 82 55 D7 [13:56:17]Write i2c OK [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: 01 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: 01 07 00 [13:56:17]MH_I2C_Read... [13:56:17]Read from MH i2c: 01 07 00 82 55 00 00 00 00 00 FF 0F EC [13:56:17]RasterBufferAndPrint [13:56:17]line Счет N : (1)220611 [13:56:17]line ИНН: 02508201610067 [13:56:17]line Контрольно-Кассовый Чек [13:56:17]line ПРОДАЖА [13:56:17]line ТРК (МРК, ГНК) : 33 [13:56:17]line Товар: 2710124130 [13:56:17]line Аи-92-К-5 [13:56:17]line 8.970 * 66.90 [13:56:17]line = 600.09 [13:56:17]line НДС 12% НСП 1% [13:56:17]line > о реализуемом товаре [13:56:17]line ОКРУГЛЕНИЕ: -0.09 [13:56:17]line ИТОГО: 600.00 [13:56:17]line Внесено: 600.00 [13:56:17]line СДАЧА: 0.00 [13:56:17]line НСП 1% : 5.31 [13:56:17]line НДС 12% : 63.73 [13:56:17]line Наличными: 600.00 [13:56:17]line Безнал.: 0.00 [13:56:17]line Место: АЗС № 161 "Партнер Нефть" [13:56:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:56:17]line СНО: Общий режим [13:56:17]line Чек 151 21.10.2024 13:56 [13:56:17]line Смена: 535 ФФД: 1.0 [13:56:17]line ЗНМ: 0300000104 [13:56:17]line РНМ: 0000000000091764 [13:56:17]line Версия ККМ: 001 [13:56:17]line ФМ: 0000000000871759 [13:56:17]line ФД: 166040 [13:56:17]line ФПД: 87571501121667 [13:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135634&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166040&fm=87571501121667&tin=02508201610067®Number=0000000000091764&sum=60000 [13:56:18]OFD Sender: Processing packet 166040 [packets to send 48, broken 47] [13:56:18]ProducePacketName [13:56:18]name=ofd_packets/00166040 [13:56:18]OFD Sender: To server: pG, [13:56:18]CommunicateWithHost lk.salyk.kg:30040 [13:56:18]ConnectInit lk.salyk.kg [13:56:18]written 0, free lines is 4095 [13:56:18]Connected sock=7 [13:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4B 88 07 01 DE 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 92 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 88 02 00 35 04 06 00 4F A5 54 37 80 83 06 DE 9D 10 56 B3 8A 2F [13:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0D DF 47 00 98 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 98 88 02 00 F4 03 04 00 00 04 16 67 B6 04 01 00 00 E1 01 F7 88 A8 28 B3 87 [13:56:18]CommunicateWithHost err = 0 [13:56:18]CheckOFDResponse [13:56:18]1017 (14) - 77093643461234 [13:56:18]1041 (16) - 0000000000871759 [13:56:18]1040 (4) - 166040 [13:56:18]1012 (4) - 21.10.2024 07:34 [13:56:18]1206 (1) - 0 [13:56:18]OFD Sender: Remove packet 166040 [13:56:18]ProducePacketName [13:56:18]name=ofd_packets/00166040 [13:56:18]NVStorageDeleteData [13:56:18]Write to MH i2c: 01 00 00 AD 55 02 [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: 01 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: 01 07 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: 01 07 00 AD 55 00 00 00 00 00 D4 0C E9 [13:56:18]RasterBufferAndPrint [13:56:18]line [13:56:18]line [13:56:18]line [13:56:18]line [13:56:18]line [13:56:18]written 0, free lines is 3289 [13:56:18]MH_Cut [13:56:18]Write to MH i2c: D1 01 00 B4 55 01 DB [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: D1 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: D1 01 00 [13:56:18]MH_I2C_Read... [13:56:18]Read from MH i2c: D1 01 00 B4 55 00 DA [13:56:18]Write to MH i2c: 01 00 00 B5 55 0A [13:56:18]Write i2c OK [13:56:18]MH_I2C_Read... [13:56:18]OFD Sender: No OFD packet to send [13:56:19]*** Cut start [13:56:19]*** Partial cut [13:56:19]*** CUTSNS_PIN = 1 [13:56:19]*** CUTSNS_PIN = 0 [13:56:19]*** Brake cut motor [13:56:19]Read from MH i2c: 01 [13:56:19]MH_I2C_Read... [13:56:19]*** Stop cut motor [13:56:19]*** Cut end [13:56:19]Read from MH i2c: 01 07 00 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: 01 07 00 B5 55 00 00 00 00 00 FF 0F 1F [13:56:19]process_action close_receipt done [13:56:19]requested_data is exist [13:56:19]produce_requested_data [13:56:19]requested_item fm.sn is exist - process it [13:56:19]wFMCommunicate request_size=4 [13:56:19]MH_SAM_APDU [13:56:19]CAPDU: 80 11 00 00 [13:56:19]Write to MH i2c: E2 08 00 B6 55 80 11 00 00 00 00 00 00 85 [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:19]Read from MH i2c: E2 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: E2 17 00 [13:56:19]MH_I2C_Read... [13:56:19]Read from MH i2c: E2 17 00 B6 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [13:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:56:19]wFMCommunicate OK [13:56:19]requested_item fd.num is exist - process it [13:56:19]SAM_PROTO_GetFieldsCounters [13:56:19]wFMCommunicate request_size=4 [13:56:19]MH_SAM_APDU [13:56:19]CAPDU: 80 13 00 00 [13:56:19]Write to MH i2c: E2 08 00 B7 55 80 13 00 00 00 00 00 00 88 [13:56:19]Write i2c OK [13:56:19]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 62 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 62 00 B7 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:56:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 98 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_GetFieldsCounters done [13:56:20]requested_item shift.num is exist - process it [13:56:20]requested_item shift.opened is exist - process it [13:56:20]req_shift_opened [13:56:20]FM_GetShiftState [13:56:20]SAM_PROTO_GetShiftState [13:56:20]wFMCommunicate request_size=4 [13:56:20]MH_SAM_APDU [13:56:20]CAPDU: 80 13 01 00 [13:56:20]Write to MH i2c: E2 08 00 B8 55 80 13 01 00 00 00 00 00 8A [13:56:20]Write i2c OK [13:56:20]MH_I2C_Read... [13:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:20]Read from MH i2c: E2 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 [13:56:20]MH_I2C_Read... [13:56:20]Read from MH i2c: E2 0E 00 B8 55 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 93 [13:56:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:56:20]wFMCommunicate OK [13:56:20]SAM_PROTO_GetShiftState done [13:56:20]FM_GetShiftState done [13:56:20]req_shift_opened done [13:56:20]requested_item shift.open_date is exist - process it [13:56:20]req_shift_open_date [13:56:20]req_shift_open_date done [13:56:20]produce_requested_data done [13:56:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166040,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:56:20]process_action_free close_receipt [13:56:20]json_value_free [13:56:20]json_value_free done [13:56:20]process_json_proto returns [13:56:20]Send response to host [13:56:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166040,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:56:20]free response buf [13:56:20]execute_script done [13:56:20]execute_script returns [13:56:20]free content buf [13:56:20]Sock 6.Close socket [13:56:20]Sock 6.Thread stoped [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]accept exits with 5 [13:57:48]New connection [13:57:48]New thread 3066776932 created [13:57:48]Thread 3066920292 joined [13:57:48]Waiting for new connection... [13:57:48] Sock 5.Parse request [13:57:48]Sock 5.Check first char [13:57:48]Sock 5.First char is OK [13:57:48]request: POST /json_proto HTTP/1.0 [13:57:48]Method: POST [13:57:48]URL: /json_proto [13:57:48]Method is POST - this is cgi request [13:57:48]url: /json_proto [13:57:48]query_string will be loaded in cgi processing [13:57:48]execute_cgi json_proto POST (null) [13:57:48]execute_cgi path=json_proto method=POST [13:57:48]POST find Content-Length [13:57:48]Host: 172.17.53.195:8080 [13:57:48]Content-Length: 678 [13:57:48]Content-Type: application/json [13:57:48] [13:57:48]POST finish read [13:57:48]Found Content-Length = 678 [13:57:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:48]execute_script... [13: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)220612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:57:48]POST & json_proto [13:57:48]process_json_proto [13:57:48]json parsed OK: [13:57:48]protocol is kg_v1.0 [13:57:48]action value=close_receipt [13:57:48]process_action close_receipt [13:57:48]cmd_close_receipt [13:57:48]MH_GetDate [13:57:48]Write to MH i2c: F0 00 00 B9 55 FD [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: F0 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: F0 09 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: F0 09 00 B9 55 00 EF 5D 16 67 21 48 4A 65 E7 [13:57:48]GetLastDocTimeStamp 1729518994 [13:57:48]current date 1729519087 [13:57:48]FM_GetShiftState [13:57:48]SAM_PROTO_GetShiftState [13:57:48]wFMCommunicate request_size=4 [13:57:48]MH_SAM_APDU [13:57:48]CAPDU: 80 13 01 00 [13:57:48]Write to MH i2c: E2 08 00 BA 55 80 13 01 00 00 00 00 00 8C [13:57:48]Write i2c OK [13:57:48]MH_I2C_Read... [13:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:48]Read from MH i2c: E2 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 0E 00 [13:57:48]MH_I2C_Read... [13:57:48]Read from MH i2c: E2 0E 00 BA 55 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 95 [13:57:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:57:48]wFMCommunicate OK [13:57:48]SAM_PROTO_GetShiftState done [13:57:48]FM_GetShiftState done [13:57:48]opened in 1729470944 [13:57:48]opened+sec_in_day 1729557344 [13:57:48]quantity*price = 70044 [13:57:48]sum+1 = 70045 [13:57:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 152 21.10.2024 13:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166041 ФПД: 29128764020946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135807&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166041&fm=29128764020946&tin=02508201610067®Number=0000000000091764&sum=70000 [13:57:49]StoreToDocumentArchive [13:57:49]shift 535 fd 166041 [13:57:49]save to /storage/0535/doc_00166041 [13:57:49]save last doc name /storage/0535/doc_00166041 to /storage/kkm_last_doc_name [13:57:49]save OK [13:57:49]Clear old archive folders... [13:57:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:57:49]tlvbuf is 016C7930 [13:57:49]SAM_PROTO_ClearQueue [13:57:49]wFMCommunicate request_size=4 [13:57:49]MH_SAM_APDU [13:57:49]CAPDU: 80 09 00 00 [13:57:49]Write to MH i2c: E2 08 00 C7 55 80 09 00 00 00 00 00 00 8E [13:57:49]Write i2c OK [13:57:49]MH_I2C_Read... [13:57:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:57:49]Read from MH i2c: E2 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: E2 03 00 [13:57:49]MH_I2C_Read... [13:57:49]Read from MH i2c: E2 03 00 C7 55 00 90 00 90 [13:57:49]RAPDU: 90 00 [13:57:49]wFMCommunicate OK [13:57:49]SAM_PROTO_ClearQueue done [13:57:49]KKMCreateOFDPacket [13:57:49]OFDProtocolAddRootSTLVToBuf [13:57:49]FM_MakeSignedData [13:57:49]FM_MakeSignedData [13:57:49]SAM_PROTO_SignData [13:57:49]wFMCommunicate request_size=4 [13:57:49]MH_SAM_APDU [13:57:49]CAPDU: 80 0D 01 02 [13:57:49]Write to MH i2c: E2 08 00 C8 55 80 0D 01 02 00 00 00 00 96 [13:57:49]Write i2c OK [13:57:49]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 03 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 03 00 C8 55 00 90 00 91 [13:57:50]RAPDU: 90 00 [13:57:50]wFMCommunicate OK [13:57:50]wFMCommunicate request_size=255 [13:57:50]MH_SAM_APDU [13:57: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 EF 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 88 02 00 35 04 06 00 1A [13:57:50]Write to MH i2c: E2 02 01 C9 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 EF 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 88 02 00 35 04 06 00 1A 00 00 F3 [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 03 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 03 00 C9 55 00 90 00 92 [13:57:50]RAPDU: 90 00 [13:57:50]wFMCommunicate OK [13:57:50]wFMCommunicate request_size=10 [13:57:50]MH_SAM_APDU [13:57:50]CAPDU: 80 0D 02 02 05 7E 11 A1 D8 D2 [13:57:50]Write to MH i2c: E2 0D 00 CA 55 80 0D 02 02 05 00 7E 11 A1 D8 D2 00 00 7D [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 03 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 03 00 CA 55 00 90 00 93 [13:57:50]RAPDU: 90 00 [13:57:50]wFMCommunicate OK [13:57:50]wFMCommunicate request_size=4 [13:57:50]MH_SAM_APDU [13:57:50]CAPDU: 80 0D 03 02 [13:57:50]Write to MH i2c: E2 08 00 CB 55 80 0D 03 02 00 00 00 00 9B [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 0B 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 0B 00 CB 55 00 36 2F 14 61 AD 09 58 E5 90 00 69 [13:57:50]RAPDU: 36 2F 14 61 AD 09 58 E5 90 00 [13:57:50]wFMCommunicate OK [13:57:50]SAM_PROTO_SignData done [13:57:50]FM_MakeSignedData done [13:57:50]CreateOFDProtocolMessage [13:57:50]wFMCommunicate request_size=4 [13:57:50]MH_SAM_APDU [13:57:50]CAPDU: 80 11 00 00 [13:57:50]Write to MH i2c: E2 08 00 CC 55 80 11 00 00 00 00 00 00 9B [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:50]Read from MH i2c: E2 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 17 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: E2 17 00 CC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [13:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:57:50]wFMCommunicate OK [13:57:50]CreateOFDProtocolMessage done [13:57:50]OFDSenderStorePacket 166041 [13:57:50]StoreOFDPacket docnum=166041 [13:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B 46 07 01 41 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 EF 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 88 02 00 35 04 06 00 1A 7E 11 A1 D8 D2 36 2F 14 61 AD 09 58 E5 [13:57:50]CheckFolder [13:57:50]dirname=/storage/ofd_packets [13:57:50]CheckFolder done [13:57:50]ProducePacketName [13:57:50]name=ofd_packets/00166041 [13:57:50]NVStorageSaveData ofd_packets/00166041 [13:57:50]File name is /storage/ofd_packets/00166041 [13:57:50]Write 301 bytes [13:57:50]NVStorageSaveData done [13:57:50]OFDSenderStorePacket done [13:57:50]KKMCreateOFDPacket done [13:57:50]NVStorageSaveData kkm_last_timestamp [13:57:50]File name is /storage/kkm_last_timestamp [13:57:50]Write 4 bytes [13:57:50]NVStorageSaveData done [13:57:50]ExternCall_PrintAddStr [13:57:50]wPrintStart [13:57:50]Write to MH i2c: 01 00 00 CD 55 22 [13:57:50]Write i2c OK [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: 01 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: 01 07 00 [13:57:50]MH_I2C_Read... [13:57:50]Read from MH i2c: 01 07 00 CD 55 00 00 00 00 00 FF 0F 37 [13:57:50]RasterBufferAndPrint [13:57:50]line Счет N : (1)220612 [13:57:50]line ИНН: 02508201610067 [13:57:50]line Контрольно-Кассовый Чек [13:57:50]line ПРОДАЖА [13:57:50]line ТРК (МРК, ГНК) : 23 [13:57:50]line Товар: 2710124130 [13:57:50]line Аи-92-К-5 [13:57:50]line 10.470 * 66.90 [13:57:50]line = 700.44 [13:57:50]line НДС 12% НСП 1% [13:57:50]line > о реализуемом товаре [13:57:50]line ОКРУГЛЕНИЕ: -0.44 [13:57:50]line ИТОГО: 700.00 [13:57:50]line Внесено: 700.00 [13:57:50]line СДАЧА: 0.00 [13:57:50]line НСП 1% : 6.20 [13:57:50]line НДС 12% : 74.38 [13:57:50]line Наличными: 700.00 [13:57:50]line Безнал.: 0.00 [13:57:50]line Место: АЗС № 161 "Партнер Нефть" [13:57:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:57:50]line СНО: Общий режим [13:57:50]line Чек 152 21.10.2024 13:58 [13:57:50]line Смена: 535 ФФД: 1.0 [13:57:50]line ЗНМ: 0300000104 [13:57:50]line РНМ: 0000000000091764 [13:57:50]line Версия ККМ: 001 [13:57:50]line ФМ: 0000000000871759 [13:57:50]line ФД: 166041 [13:57:50]line ФПД: 29128764020946 [13:57:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135807&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166041&fm=29128764020946&tin=02508201610067®Number=0000000000091764&sum=70000 [13:57:50]OFD Sender: Processing packet 166041 [packets to send 48, broken 47] [13:57:50]ProducePacketName [13:57:50]name=ofd_packets/00166041 [13:57:50]OFD Sender: To server: pG, [13:57:50]CommunicateWithHost lk.salyk.kg:30040 [13:57:50]ConnectInit lk.salyk.kg [13:57:50]written 0, free lines is 4095 [13:57:50]Connected sock=7 [13: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 35 39 0F 01 00 00 9B 46 07 01 41 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 EF 5D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 88 02 00 35 04 06 00 1A 7E 11 A1 D8 D2 36 2F 14 61 AD 09 58 E5 [13: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 35 39 4F 00 00 00 A1 EC 47 00 57 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 99 88 02 00 F4 03 04 00 5D 04 16 67 B6 04 01 00 00 42 11 10 07 76 D5 35 B3 [13:57:51]CommunicateWithHost err = 0 [13:57:51]CheckOFDResponse [13:57:51]1017 (14) - 77093643461234 [13:57:51]1041 (16) - 0000000000871759 [13:57:51]1040 (4) - 166041 [13:57:51]1012 (4) - 21.10.2024 07:35 [13:57:51]1206 (1) - 0 [13:57:51]OFD Sender: Remove packet 166041 [13:57:51]ProducePacketName [13:57:51]name=ofd_packets/00166041 [13:57:51]NVStorageDeleteData [13:57:51]Write to MH i2c: 01 00 00 F8 55 4D [13:57:51]Write i2c OK [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: 01 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: 01 07 00 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: 01 07 00 F8 55 00 00 00 00 00 D2 0C 32 [13:57:51]RasterBufferAndPrint [13:57:51]line [13:57:51]line [13:57:51]line [13:57:51]line [13:57:51]line [13:57:51]written 0, free lines is 3289 [13:57:51]MH_Cut [13:57:51]Write to MH i2c: D1 01 00 FF 55 01 26 [13:57:51]Write i2c OK [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: D1 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: D1 01 00 [13:57:51]MH_I2C_Read... [13:57:51]Read from MH i2c: D1 01 00 FF 55 00 25 [13:57:51]Write to MH i2c: 01 00 00 00 56 56 [13:57:51]Write i2c OK [13:57:51]MH_I2C_Read... [13:57:51]OFD Sender: No OFD packet to send [13:57:52]*** Cut start [13:57:52]*** Partial cut [13:57:52]*** CUTSNS_PIN = 1 [13:57:52]*** CUTSNS_PIN = 0 [13:57:52]*** Brake cut motor [13:57:52]Read from MH i2c: 01 [13:57:52]MH_I2C_Read... [13:57:52]*** Stop cut motor [13:57:52]*** Cut end [13:57:52]Read from MH i2c: 01 07 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: 01 07 00 00 56 00 00 00 00 00 FF 0F 6B [13:57:52]process_action close_receipt done [13:57:52]requested_data is exist [13:57:52]produce_requested_data [13:57:52]requested_item fm.sn is exist - process it [13:57:52]wFMCommunicate request_size=4 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 11 00 00 [13:57:52]Write to MH i2c: E2 08 00 01 56 80 11 00 00 00 00 00 00 D1 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 17 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 17 00 01 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [13:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:57:52]wFMCommunicate OK [13:57:52]requested_item fd.num is exist - process it [13:57:52]SAM_PROTO_GetFieldsCounters [13:57:52]wFMCommunicate request_size=4 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 13 00 00 [13:57:52]Write to MH i2c: E2 08 00 02 56 80 13 00 00 00 00 00 00 D4 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 62 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 62 00 02 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 99 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:57:52]wFMCommunicate OK [13:57:52]SAM_PROTO_GetFieldsCounters done [13:57:52]requested_item shift.num is exist - process it [13:57:52]requested_item shift.opened is exist - process it [13:57:52]req_shift_opened [13:57:52]FM_GetShiftState [13:57:52]SAM_PROTO_GetShiftState [13:57:52]wFMCommunicate request_size=4 [13:57:52]MH_SAM_APDU [13:57:52]CAPDU: 80 13 01 00 [13:57:52]Write to MH i2c: E2 08 00 03 56 80 13 01 00 00 00 00 00 D6 [13:57:52]Write i2c OK [13:57:52]MH_I2C_Read... [13:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:57:52]Read from MH i2c: E2 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 0E 00 [13:57:52]MH_I2C_Read... [13:57:52]Read from MH i2c: E2 0E 00 03 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DF [13:57:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:57:52]wFMCommunicate OK [13:57:52]SAM_PROTO_GetShiftState done [13:57:52]FM_GetShiftState done [13:57:52]req_shift_opened done [13:57:52]requested_item shift.open_date is exist - process it [13:57:52]req_shift_open_date [13:57:52]req_shift_open_date done [13:57:52]produce_requested_data done [13:57:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166041,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:57:52]process_action_free close_receipt [13:57:52]json_value_free [13:57:52]json_value_free done [13:57:52]process_json_proto returns [13:57:52]Send response to host [13:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166041,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:57:52]free response buf [13:57:52]execute_script done [13:57:52]execute_script returns [13:57:52]free content buf [13:57:52]Sock 5.Close socket [13:57:52]Sock 5.Thread stoped [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:20]accept exits with 6 [13:58:20]New connection [13:58:20]New thread 3066920292 created [13:58:20]Thread 3066776932 joined [13:58:20]Waiting for new connection... [13:58:20] Sock 6.Parse request [13:58:20]Sock 6.Check first char [13:58:20]Sock 6.First char is OK [13:58:20]request: POST /json_proto HTTP/1.0 [13:58:20]Method: POST [13:58:20]URL: /json_proto [13:58:20]Method is POST - this is cgi request [13:58:20]url: /json_proto [13:58:20]query_string will be loaded in cgi processing [13:58:20]execute_cgi json_proto POST (null) [13:58:20]execute_cgi path=json_proto method=POST [13:58:20]POST find Content-Length [13:58:20]Host: 172.17.53.195:8080 [13:58:20]Content-Length: 674 [13:58:20]Content-Type: application/json [13:58:20] [13:58:20]POST finish read [13:58:20]Found Content-Length = 674 [13:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.530, "sum" : 649.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 649.00, "payments": [ { "type": 0, "sum" : 649.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:20]execute_script... [13:58: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)220613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.530, "sum" : 649.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 649.00, "payments": [ { "type": 0, "sum" : 649.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:20]POST & json_proto [13:58:20]process_json_proto [13:58:20]json parsed OK: [13:58:20]protocol is kg_v1.0 [13:58:20]action value=close_receipt [13:58:20]process_action close_receipt [13:58:20]cmd_close_receipt [13:58:20]MH_GetDate [13:58:20]Write to MH i2c: F0 00 00 04 56 49 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: F0 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: F0 09 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: F0 09 00 04 56 00 0E 5E 16 67 21 48 4A 65 53 [13:58:20]GetLastDocTimeStamp 1729519087 [13:58:20]current date 1729519118 [13:58:20]FM_GetShiftState [13:58:20]SAM_PROTO_GetShiftState [13:58:20]wFMCommunicate request_size=4 [13:58:20]MH_SAM_APDU [13:58:20]CAPDU: 80 13 01 00 [13:58:20]Write to MH i2c: E2 08 00 05 56 80 13 01 00 00 00 00 00 D8 [13:58:20]Write i2c OK [13:58:20]MH_I2C_Read... [13:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:20]Read from MH i2c: E2 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 0E 00 [13:58:20]MH_I2C_Read... [13:58:20]Read from MH i2c: E2 0E 00 05 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E1 [13:58:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:58:20]wFMCommunicate OK [13:58:20]SAM_PROTO_GetShiftState done [13:58:20]FM_GetShiftState done [13:58:20]opened in 1729470944 [13:58:20]opened+sec_in_day 1729557344 [13:58:20]quantity*price = 64998 [13:58:20]sum+1 = 65000 [13:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 649.00 Внесено: 650.00 СДАЧА: 1.00 НСП 1% : 5.75 НДС 12% : 69.02 Наличными: 649.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 153 21.10.2024 13:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166042 ФПД: 220750035032409 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135838&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166042&fm=220750035032409&tin=02508201610067®Number=0000000000091764&sum=64900 [13:58:21]StoreToDocumentArchive [13:58:21]shift 535 fd 166042 [13:58:21]save to /storage/0535/doc_00166042 [13:58:21]save last doc name /storage/0535/doc_00166042 to /storage/kkm_last_doc_name [13:58:21]save OK [13:58:21]Clear old archive folders... [13:58:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:21]tlvbuf is 014B2F90 [13:58:21]SAM_PROTO_ClearQueue [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 09 00 00 [13:58:21]Write to MH i2c: E2 08 00 12 56 80 09 00 00 00 00 00 00 DA [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 12 56 00 90 00 DC [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_ClearQueue done [13:58:21]KKMCreateOFDPacket [13:58:21]OFDProtocolAddRootSTLVToBuf [13:58:21]FM_MakeSignedData [13:58:21]FM_MakeSignedData [13:58:21]SAM_PROTO_SignData [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 01 02 [13:58:21]Write to MH i2c: E2 08 00 13 56 80 0D 01 02 00 00 00 00 E2 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 13 56 00 90 00 DD [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=255 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 F6 1A 00 00 00 00 07 04 06 00 84 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 99 00 00 00 F4 03 04 00 0E 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 88 02 00 35 04 06 00 C8 C5 5F 6C [13:58:21]Write to MH i2c: E2 02 01 14 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 F6 1A 00 00 00 00 07 04 06 00 84 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 99 00 00 00 F4 03 04 00 0E 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 88 02 00 35 04 06 00 C8 C5 5F 6C 00 00 E8 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 14 56 00 90 00 DE [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=7 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 02 02 02 19 59 [13:58:21]Write to MH i2c: E2 0A 00 15 56 80 0D 02 02 02 00 19 59 00 00 5B [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 03 00 15 56 00 90 00 DF [13:58:21]RAPDU: 90 00 [13:58:21]wFMCommunicate OK [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 0D 03 02 [13:58:21]Write to MH i2c: E2 08 00 16 56 80 0D 03 02 00 00 00 00 E7 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:21]OFD Sender: No OFD packet to send [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0B 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 0B 00 16 56 00 5A 29 0A 9A 9C AE 57 79 90 00 29 [13:58:21]RAPDU: 5A 29 0A 9A 9C AE 57 79 90 00 [13:58:21]wFMCommunicate OK [13:58:21]SAM_PROTO_SignData done [13:58:21]FM_MakeSignedData done [13:58:21]CreateOFDProtocolMessage [13:58:21]wFMCommunicate request_size=4 [13:58:21]MH_SAM_APDU [13:58:21]CAPDU: 80 11 00 00 [13:58:21]Write to MH i2c: E2 08 00 17 56 80 11 00 00 00 00 00 00 E7 [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:21]Read from MH i2c: E2 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: E2 17 00 17 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [13:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:21]wFMCommunicate OK [13:58:21]CreateOFDProtocolMessage done [13:58:21]OFDSenderStorePacket 166042 [13:58:21]StoreOFDPacket docnum=166042 [13:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C 64 04 01 7E 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 F6 1A 00 00 00 00 07 04 06 00 84 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 99 00 00 00 F4 03 04 00 0E 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 88 02 00 35 04 06 00 C8 C5 5F 6C 19 59 5A 29 0A 9A 9C AE 57 79 [13:58:21]CheckFolder [13:58:21]dirname=/storage/ofd_packets [13:58:21]CheckFolder done [13:58:21]ProducePacketName [13:58:21]name=ofd_packets/00166042 [13:58:21]NVStorageSaveData ofd_packets/00166042 [13:58:21]File name is /storage/ofd_packets/00166042 [13:58:21]Write 298 bytes [13:58:21]NVStorageSaveData done [13:58:21]OFDSenderStorePacket done [13:58:21]KKMCreateOFDPacket done [13:58:21]NVStorageSaveData kkm_last_timestamp [13:58:21]File name is /storage/kkm_last_timestamp [13:58:21]Write 4 bytes [13:58:21]NVStorageSaveData done [13:58:21]ExternCall_PrintAddStr [13:58:21]wPrintStart [13:58:21]Write to MH i2c: 01 00 00 18 56 6E [13:58:21]Write i2c OK [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 [13:58:21]MH_I2C_Read... [13:58:21]Read from MH i2c: 01 07 00 18 56 00 00 00 00 00 FF 0F 83 [13:58:21]RasterBufferAndPrint [13:58:21]line Счет N : (1)220613 [13:58:21]line ИНН: 02508201610067 [13:58:21]line Контрольно-Кассовый Чек [13:58:21]line ПРОДАЖА [13:58:21]line ТРК (МРК, ГНК) : 41 [13:58:21]line Товар: 2710194210 [13:58:21]line ДТ-К-5 [13:58:21]line 8.530 * 76.20 [13:58:21]line = 649.99 [13:58:21]line НДС 12% НСП 1% [13:58:21]line > о реализуемом товаре [13:58:21]line ОКРУГЛЕНИЕ: -0.99 [13:58:21]line ИТОГО: 649.00 [13:58:21]line Внесено: 650.00 [13:58:21]line СДАЧА: 1.00 [13:58:21]line НСП 1% : 5.75 [13:58:21]line НДС 12% : 69.02 [13:58:21]line Наличными: 649.00 [13:58:21]line Безнал.: 0.00 [13:58:21]line Место: АЗС № 161 "Партнер Нефть" [13:58:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [13:58:21]line СНО: Общий режим [13:58:21]line Чек 153 21.10.2024 13:58 [13:58:21]line Смена: 535 ФФД: 1.0 [13:58:21]line ЗНМ: 0300000104 [13:58:21]line РНМ: 0000000000091764 [13:58:21]line Версия ККМ: 001 [13:58:21]line ФМ: 0000000000871759 [13:58:21]line ФД: 166042 [13:58:21]line ФПД: 220750035032409 [13:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T135838&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166042&fm=220750035032409&tin=02508201610067®Number=0000000000091764&sum=64900 [13:58:22]OFD Sender: Processing packet 166042 [packets to send 48, broken 47] [13:58:22]ProducePacketName [13:58:22]name=ofd_packets/00166042 [13:58:22]OFD Sender: To server: pG, [13:58:22]CommunicateWithHost lk.salyk.kg:30040 [13:58:22]ConnectInit lk.salyk.kg [13:58:22]written 0, free lines is 4095 [13:58:22]Connected sock=5 [13:58:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 1C 64 04 01 7E 17 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 52 21 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E7 FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 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 F6 1A 00 00 00 00 07 04 06 00 84 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 99 00 00 00 F4 03 04 00 0E 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 88 02 00 35 04 06 00 C8 C5 5F 6C 19 59 5A 29 0A 9A 9C AE 57 79 [13:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E7 CF 47 00 B7 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9A 88 02 00 F4 03 04 00 7C 04 16 67 B6 04 01 00 00 BC 33 A1 16 D8 3B F0 BC [13:58:22]CommunicateWithHost err = 0 [13:58:22]CheckOFDResponse [13:58:22]1017 (14) - 77093643461234 [13:58:22]1041 (16) - 0000000000871759 [13:58:22]1040 (4) - 166042 [13:58:22]1012 (4) - 21.10.2024 07:36 [13:58:22]1206 (1) - 0 [13:58:22]OFD Sender: Remove packet 166042 [13:58:22]ProducePacketName [13:58:22]name=ofd_packets/00166042 [13:58:22]NVStorageDeleteData [13:58:22]Write to MH i2c: 01 00 00 43 56 99 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: 01 07 00 43 56 00 00 00 00 00 CE 0C 7A [13:58:22]RasterBufferAndPrint [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]line [13:58:22]written 0, free lines is 3289 [13:58:22]MH_Cut [13:58:22]Write to MH i2c: D1 01 00 4A 56 01 72 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 01 00 [13:58:22]MH_I2C_Read... [13:58:22]Read from MH i2c: D1 01 00 4A 56 00 71 [13:58:22]Write to MH i2c: 01 00 00 4B 56 A1 [13:58:22]Write i2c OK [13:58:22]MH_I2C_Read... [13:58:22]OFD Sender: No OFD packet to send [13:58:23]*** Cut start [13:58:23]*** Partial cut [13:58:23]*** CUTSNS_PIN = 1 [13:58:23]*** CUTSNS_PIN = 0 [13:58:23]*** Brake cut motor [13:58:23]Read from MH i2c: 01 [13:58:23]MH_I2C_Read... [13:58:23]*** Stop cut motor [13:58:23]*** Cut end [13:58:23]Read from MH i2c: 01 07 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: 01 07 00 4B 56 00 00 00 00 00 FF 0F B6 [13:58:23]process_action close_receipt done [13:58:23]requested_data is exist [13:58:23]produce_requested_data [13:58:23]requested_item fm.sn is exist - process it [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 11 00 00 [13:58:23]Write to MH i2c: E2 08 00 4C 56 80 11 00 00 00 00 00 00 1C [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 17 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 17 00 4C 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [13:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [13:58:23]wFMCommunicate OK [13:58:23]requested_item fd.num is exist - process it [13:58:23]SAM_PROTO_GetFieldsCounters [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 13 00 00 [13:58:23]Write to MH i2c: E2 08 00 4D 56 80 13 00 00 00 00 00 00 1F [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 62 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 62 00 4D 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:58:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9A 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_GetFieldsCounters done [13:58:24]requested_item shift.num is exist - process it [13:58:24]requested_item shift.opened is exist - process it [13:58:24]req_shift_opened [13:58:24]FM_GetShiftState [13:58:24]SAM_PROTO_GetShiftState [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 13 01 00 [13:58:24]Write to MH i2c: E2 08 00 4E 56 80 13 01 00 00 00 00 00 21 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0E 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 0E 00 4E 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2A [13:58:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_GetShiftState done [13:58:24]FM_GetShiftState done [13:58:24]req_shift_opened done [13:58:24]requested_item shift.open_date is exist - process it [13:58:24]req_shift_open_date [13:58:24]req_shift_open_date done [13:58:24]produce_requested_data done [13:58:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166042,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [13:58:24]process_action_free close_receipt [13:58:24]json_value_free [13:58:24]json_value_free done [13:58:24]process_json_proto returns [13:58:24]Send response to host [13:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166042,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [13:58:24]free response buf [13:58:24]execute_script done [13:58:24]execute_script returns [13:58:24]free content buf [13:58:24]Sock 6.Close socket [13:58:24]Sock 6.Thread stoped [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:28]OFD Sender: No OFD packet to send [14:00:33]OFD Sender: No OFD packet to send [14:00:38]OFD Sender: No OFD packet to send [14:00:42]accept exits with 7 [14:00:42]New connection [14:00:42]New thread 3066776932 created [14:00:42]Thread 3066920292 joined [14:00:42]Waiting for new connection... [14:00:42] Sock 7.Parse request [14:00:42]Sock 7.Check first char [14:00:42]Sock 7.First char is OK [14:00:42]request: POST /json_proto HTTP/1.0 [14:00:42]Method: POST [14:00:42]URL: /json_proto [14:00:42]Method is POST - this is cgi request [14:00:42]url: /json_proto [14:00:42]query_string will be loaded in cgi processing [14:00:42]execute_cgi json_proto POST (null) [14:00:42]execute_cgi path=json_proto method=POST [14:00:42]POST find Content-Length [14:00:42]Host: 172.17.53.195:8080 [14:00:42]Content-Length: 678 [14:00:42]Content-Type: application/json [14:00:42] [14:00:42]POST finish read [14:00:42]Found Content-Length = 678 [14:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:42]execute_script... [14:00: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)220614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:42]POST & json_proto [14:00:42]process_json_proto [14:00:42]json parsed OK: [14:00:42]protocol is kg_v1.0 [14:00:42]action value=close_receipt [14:00:42]process_action close_receipt [14:00:42]cmd_close_receipt [14:00:42]MH_GetDate [14:00:42]Write to MH i2c: F0 00 00 4F 56 94 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: F0 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: F0 09 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: F0 09 00 4F 56 00 9D 5E 16 67 21 48 4A 65 2D [14:00:42]GetLastDocTimeStamp 1729519118 [14:00:42]current date 1729519261 [14:00:42]FM_GetShiftState [14:00:42]SAM_PROTO_GetShiftState [14:00:42]wFMCommunicate request_size=4 [14:00:42]MH_SAM_APDU [14:00:42]CAPDU: 80 13 01 00 [14:00:42]Write to MH i2c: E2 08 00 50 56 80 13 01 00 00 00 00 00 23 [14:00:42]Write i2c OK [14:00:42]MH_I2C_Read... [14:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:42]Read from MH i2c: E2 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 0E 00 [14:00:42]MH_I2C_Read... [14:00:42]Read from MH i2c: E2 0E 00 50 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2C [14:00:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:00:42]wFMCommunicate OK [14:00:42]SAM_PROTO_GetShiftState done [14:00:42]FM_GetShiftState done [14:00:42]opened in 1729470944 [14:00:42]opened+sec_in_day 1729557344 [14:00:42]quantity*price = 70044 [14:00:42]sum+1 = 70045 [14:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 154 21.10.2024 14:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166043 ФПД: 122048965359452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140101&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166043&fm=122048965359452&tin=02508201610067®Number=0000000000091764&sum=70000 [14:00:43]StoreToDocumentArchive [14:00:43]shift 535 fd 166043 [14:00:43]save to /storage/0535/doc_00166043 [14:00:43]save last doc name /storage/0535/doc_00166043 to /storage/kkm_last_doc_name [14:00:43]save OK [14:00:43]Clear old archive folders... [14:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:43]tlvbuf is 01BAB4A0 [14:00:43]SAM_PROTO_ClearQueue [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 09 00 00 [14:00:43]Write to MH i2c: E2 08 00 5D 56 80 09 00 00 00 00 00 00 25 [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 5D 56 00 90 00 27 [14:00:43]RAPDU: 90 00 [14:00:43]wFMCommunicate OK [14:00:43]SAM_PROTO_ClearQueue done [14:00:43]KKMCreateOFDPacket [14:00:43]OFDProtocolAddRootSTLVToBuf [14:00:43]FM_MakeSignedData [14:00:43]FM_MakeSignedData [14:00:43]SAM_PROTO_SignData [14:00:43]wFMCommunicate request_size=4 [14:00:43]MH_SAM_APDU [14:00:43]CAPDU: 80 0D 01 02 [14:00:43]Write to MH i2c: E2 08 00 5E 56 80 0D 01 02 00 00 00 00 2D [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:43]Read from MH i2c: E2 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 [14:00:43]MH_I2C_Read... [14:00:43]Read from MH i2c: E2 03 00 5E 56 00 90 00 28 [14:00:43]RAPDU: 90 00 [14:00:43]wFMCommunicate OK [14:00:43]wFMCommunicate request_size=255 [14:00:43]MH_SAM_APDU [14:00: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9D 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 88 02 00 35 04 06 00 6F [14:00:43]Write to MH i2c: E2 02 01 5F 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9D 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 88 02 00 35 04 06 00 6F 00 00 92 [14:00:43]Write i2c OK [14:00:43]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 03 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 03 00 5F 56 00 90 00 29 [14:00:44]RAPDU: 90 00 [14:00:44]wFMCommunicate OK [14:00:44]wFMCommunicate request_size=10 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 0D 02 02 05 00 BD 39 B7 5C [14:00:44]Write to MH i2c: E2 0D 00 60 56 80 0D 02 02 05 00 00 BD 39 B7 5C 00 00 43 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 03 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 03 00 60 56 00 90 00 2A [14:00:44]RAPDU: 90 00 [14:00:44]wFMCommunicate OK [14:00:44]wFMCommunicate request_size=4 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 0D 03 02 [14:00:44]Write to MH i2c: E2 08 00 61 56 80 0D 03 02 00 00 00 00 32 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 0B 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 0B 00 61 56 00 32 19 22 40 27 1D 3B C7 90 00 26 [14:00:44]RAPDU: 32 19 22 40 27 1D 3B C7 90 00 [14:00:44]wFMCommunicate OK [14:00:44]SAM_PROTO_SignData done [14:00:44]FM_MakeSignedData done [14:00:44]CreateOFDProtocolMessage [14:00:44]wFMCommunicate request_size=4 [14:00:44]MH_SAM_APDU [14:00:44]CAPDU: 80 11 00 00 [14:00:44]Write to MH i2c: E2 08 00 62 56 80 11 00 00 00 00 00 00 32 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:44]Read from MH i2c: E2 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 17 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: E2 17 00 62 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [14:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:00:44]wFMCommunicate OK [14:00:44]CreateOFDProtocolMessage done [14:00:44]OFDSenderStorePacket 166043 [14:00:44]StoreOFDPacket docnum=166043 [14:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 1C 07 01 06 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9D 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 88 02 00 35 04 06 00 6F 00 BD 39 B7 5C 32 19 22 40 27 1D 3B C7 [14:00:44]CheckFolder [14:00:44]dirname=/storage/ofd_packets [14:00:44]CheckFolder done [14:00:44]ProducePacketName [14:00:44]name=ofd_packets/00166043 [14:00:44]NVStorageSaveData ofd_packets/00166043 [14:00:44]File name is /storage/ofd_packets/00166043 [14:00:44]Write 301 bytes [14:00:44]NVStorageSaveData done [14:00:44]OFDSenderStorePacket done [14:00:44]KKMCreateOFDPacket done [14:00:44]NVStorageSaveData kkm_last_timestamp [14:00:44]File name is /storage/kkm_last_timestamp [14:00:44]Write 4 bytes [14:00:44]NVStorageSaveData done [14:00:44]ExternCall_PrintAddStr [14:00:44]wPrintStart [14:00:44]Write to MH i2c: 01 00 00 63 56 B9 [14:00:44]Write i2c OK [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: 01 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: 01 07 00 [14:00:44]MH_I2C_Read... [14:00:44]Read from MH i2c: 01 07 00 63 56 00 00 00 00 00 FF 0F CE [14:00:44]RasterBufferAndPrint [14:00:44]line Счет N : (1)220614 [14:00:44]line ИНН: 02508201610067 [14:00:44]line Контрольно-Кассовый Чек [14:00:44]line ПРОДАЖА [14:00:44]line ТРК (МРК, ГНК) : 23 [14:00:44]line Товар: 2710124130 [14:00:44]line Аи-92-К-5 [14:00:44]line 10.470 * 66.90 [14:00:44]line = 700.44 [14:00:44]line НДС 12% НСП 1% [14:00:44]line > о реализуемом товаре [14:00:44]line ОКРУГЛЕНИЕ: -0.44 [14:00:44]line ИТОГО: 700.00 [14:00:44]line Внесено: 700.00 [14:00:44]line СДАЧА: 0.00 [14:00:44]line НСП 1% : 6.20 [14:00:44]line НДС 12% : 74.38 [14:00:44]line Наличными: 700.00 [14:00:44]line Безнал.: 0.00 [14:00:44]line Место: АЗС № 161 "Партнер Нефть" [14:00:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:00:44]line СНО: Общий режим [14:00:44]line Чек 154 21.10.2024 14:01 [14:00:44]line Смена: 535 ФФД: 1.0 [14:00:44]line ЗНМ: 0300000104 [14:00:44]line РНМ: 0000000000091764 [14:00:44]line Версия ККМ: 001 [14:00:44]line ФМ: 0000000000871759 [14:00:44]line ФД: 166043 [14:00:44]line ФПД: 122048965359452 [14:00:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140101&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166043&fm=122048965359452&tin=02508201610067®Number=0000000000091764&sum=70000 [14:00:44]OFD Sender: Processing packet 166043 [packets to send 48, broken 47] [14:00:44]ProducePacketName [14:00:44]name=ofd_packets/00166043 [14:00:44]OFD Sender: To server: pG, [14:00:44]CommunicateWithHost lk.salyk.kg:30040 [14:00:44]ConnectInit lk.salyk.kg [14:00:44]written 0, free lines is 4095 [14:00:44]Connected sock=5 [14:00:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C2 1C 07 01 06 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9D 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 88 02 00 35 04 06 00 6F 00 BD 39 B7 5C 32 19 22 40 27 1D 3B C7 [14:00:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 27 12 47 00 33 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9B 88 02 00 F4 03 04 00 0B 05 16 67 B6 04 01 00 00 D3 0A 5C A4 8F B7 D2 7D [14:00:45]CommunicateWithHost err = 0 [14:00:45]CheckOFDResponse [14:00:45]1017 (14) - 77093643461234 [14:00:45]1041 (16) - 0000000000871759 [14:00:45]1040 (4) - 166043 [14:00:45]1012 (4) - 21.10.2024 07:38 [14:00:45]1206 (1) - 0 [14:00:45]OFD Sender: Remove packet 166043 [14:00:45]ProducePacketName [14:00:45]name=ofd_packets/00166043 [14:00:45]NVStorageDeleteData [14:00:45]Write to MH i2c: 01 00 00 8E 56 E4 [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: 01 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: 01 07 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: 01 07 00 8E 56 00 00 00 00 00 D3 0C CA [14:00:45]RasterBufferAndPrint [14:00:45]line [14:00:45]line [14:00:45]line [14:00:45]line [14:00:45]line [14:00:45]written 0, free lines is 3290 [14:00:45]MH_Cut [14:00:45]Write to MH i2c: D1 01 00 95 56 01 BD [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: D1 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: D1 01 00 [14:00:45]MH_I2C_Read... [14:00:45]Read from MH i2c: D1 01 00 95 56 00 BC [14:00:45]Write to MH i2c: 01 00 00 96 56 EC [14:00:45]Write i2c OK [14:00:45]MH_I2C_Read... [14:00:45]OFD Sender: No OFD packet to send [14:00:45]*** Cut start [14:00:45]*** Partial cut [14:00:45]*** CUTSNS_PIN = 1 [14:00:45]*** CUTSNS_PIN = 0 [14:00:46]*** Brake cut motor [14:00:46]Read from MH i2c: 01 [14:00:46]MH_I2C_Read... [14:00:46]*** Stop cut motor [14:00:46]*** Cut end [14:00:46]Read from MH i2c: 01 07 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: 01 07 00 96 56 00 00 00 00 00 FF 0F 01 [14:00:46]process_action close_receipt done [14:00:46]requested_data is exist [14:00:46]produce_requested_data [14:00:46]requested_item fm.sn is exist - process it [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 11 00 00 [14:00:46]Write to MH i2c: E2 08 00 97 56 80 11 00 00 00 00 00 00 67 [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 17 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 17 00 97 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [14:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:00:46]wFMCommunicate OK [14:00:46]requested_item fd.num is exist - process it [14:00:46]SAM_PROTO_GetFieldsCounters [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 13 00 00 [14:00:46]Write to MH i2c: E2 08 00 98 56 80 13 00 00 00 00 00 00 6A [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 62 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 62 00 98 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:00:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9B 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:46]wFMCommunicate OK [14:00:46]SAM_PROTO_GetFieldsCounters done [14:00:46]requested_item shift.num is exist - process it [14:00:46]requested_item shift.opened is exist - process it [14:00:46]req_shift_opened [14:00:46]FM_GetShiftState [14:00:46]SAM_PROTO_GetShiftState [14:00:46]wFMCommunicate request_size=4 [14:00:46]MH_SAM_APDU [14:00:46]CAPDU: 80 13 01 00 [14:00:46]Write to MH i2c: E2 08 00 99 56 80 13 01 00 00 00 00 00 6C [14:00:46]Write i2c OK [14:00:46]MH_I2C_Read... [14:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:46]Read from MH i2c: E2 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 0E 00 [14:00:46]MH_I2C_Read... [14:00:46]Read from MH i2c: E2 0E 00 99 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 75 [14:00:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:00:46]wFMCommunicate OK [14:00:46]SAM_PROTO_GetShiftState done [14:00:46]FM_GetShiftState done [14:00:46]req_shift_opened done [14:00:46]requested_item shift.open_date is exist - process it [14:00:46]req_shift_open_date [14:00:46]req_shift_open_date done [14:00:46]produce_requested_data done [14:00:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166043,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:00:46]process_action_free close_receipt [14:00:46]json_value_free [14:00:46]json_value_free done [14:00:46]process_json_proto returns [14:00:46]Send response to host [14:00:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166043,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:00:46]free response buf [14:00:46]execute_script done [14:00:46]execute_script returns [14:00:46]free content buf [14:00:46]Sock 7.Close socket [14:00:46]Sock 7.Thread stoped [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:35]accept exits with 6 [14:01:35]New connection [14:01:35]New thread 3066920292 created [14:01:35]Thread 3066776932 joined [14:01:35]Waiting for new connection... [14:01:35] Sock 6.Parse request [14:01:35]Sock 6.Check first char [14:01:35]Sock 6.First char is OK [14:01:35]request: POST /json_proto HTTP/1.0 [14:01:35]Method: POST [14:01:35]URL: /json_proto [14:01:35]Method is POST - this is cgi request [14:01:35]url: /json_proto [14:01:35]query_string will be loaded in cgi processing [14:01:35]execute_cgi json_proto POST (null) [14:01:35]execute_cgi path=json_proto method=POST [14:01:35]POST find Content-Length [14:01:35]Host: 172.17.53.195:8080 [14:01:35]Content-Length: 682 [14:01:35]Content-Type: application/json [14:01:35] [14:01:35]POST finish read [14:01:35]Found Content-Length = 682 [14:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:35]execute_script... [14:01: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)220615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:35]POST & json_proto [14:01:35]process_json_proto [14:01:35]json parsed OK: [14:01:35]protocol is kg_v1.0 [14:01:35]action value=close_receipt [14:01:35]process_action close_receipt [14:01:35]cmd_close_receipt [14:01:35]MH_GetDate [14:01:35]Write to MH i2c: F0 00 00 9A 56 DF [14:01:35]Write i2c OK [14:01:35]MH_I2C_Read... [14:01:35]Read from MH i2c: F0 [14:01:35]MH_I2C_Read... [14:01:35]Read from MH i2c: F0 09 00 [14:01:35]MH_I2C_Read... [14:01:35]Read from MH i2c: F0 09 00 9A 56 00 D2 5E 16 67 21 48 4A 65 AD [14:01:35]GetLastDocTimeStamp 1729519261 [14:01:35]current date 1729519314 [14:01:35]FM_GetShiftState [14:01:35]SAM_PROTO_GetShiftState [14:01:35]wFMCommunicate request_size=4 [14:01:35]MH_SAM_APDU [14:01:35]CAPDU: 80 13 01 00 [14:01:35]Write to MH i2c: E2 08 00 9B 56 80 13 01 00 00 00 00 00 6E [14:01:35]Write i2c OK [14:01:35]MH_I2C_Read... [14:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:35]Read from MH i2c: E2 [14:01:35]MH_I2C_Read... [14:01:35]Read from MH i2c: E2 0E 00 [14:01:35]MH_I2C_Read... [14:01:35]Read from MH i2c: E2 0E 00 9B 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 77 [14:01:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:01:35]wFMCommunicate OK [14:01:35]SAM_PROTO_GetShiftState done [14:01:35]FM_GetShiftState done [14:01:35]opened in 1729470944 [14:01:35]opened+sec_in_day 1729557344 [14:01:35]quantity*price = 100015 [14:01:35]sum+1 = 100017 [14:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 155 21.10.2024 14:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166044 ФПД: 267245411907866 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140154&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166044&fm=267245411907866&tin=02508201610067®Number=0000000000091764&sum=100000 [14:01:36]StoreToDocumentArchive [14:01:36]shift 535 fd 166044 [14:01:36]save to /storage/0535/doc_00166044 [14:01:36]save last doc name /storage/0535/doc_00166044 to /storage/kkm_last_doc_name [14:01:36]save OK [14:01:36]Clear old archive folders... [14:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:36]tlvbuf is 01522E00 [14:01:36]SAM_PROTO_ClearQueue [14:01:36]wFMCommunicate request_size=4 [14:01:36]MH_SAM_APDU [14:01:36]CAPDU: 80 09 00 00 [14:01:36]Write to MH i2c: E2 08 00 A8 56 80 09 00 00 00 00 00 00 70 [14:01:36]Write i2c OK [14:01:36]MH_I2C_Read... [14:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:36]Read from MH i2c: E2 [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: E2 03 00 [14:01:36]MH_I2C_Read... [14:01:36]Read from MH i2c: E2 03 00 A8 56 00 90 00 72 [14:01:36]RAPDU: 90 00 [14:01:36]wFMCommunicate OK [14:01:36]SAM_PROTO_ClearQueue done [14:01:36]KKMCreateOFDPacket [14:01:36]OFDProtocolAddRootSTLVToBuf [14:01:36]FM_MakeSignedData [14:01:36]FM_MakeSignedData [14:01:36]SAM_PROTO_SignData [14:01:36]wFMCommunicate request_size=4 [14:01:36]MH_SAM_APDU [14:01:36]CAPDU: 80 0D 01 02 [14:01:36]Write to MH i2c: E2 08 00 A9 56 80 0D 01 02 00 00 00 00 78 [14:01:36]Write i2c OK [14:01:36]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 A9 56 00 90 00 73 [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]wFMCommunicate request_size=255 [14:01:37]MH_SAM_APDU [14:01: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D2 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 88 02 00 35 04 06 00 F3 [14:01:37]Write to MH i2c: E2 02 01 AA 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D2 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 88 02 00 35 04 06 00 F3 00 00 82 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 AA 56 00 90 00 74 [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]wFMCommunicate request_size=10 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 0D 02 02 05 0E EB D8 39 1A [14:01:37]Write to MH i2c: E2 0D 00 AB 56 80 0D 02 02 05 00 0E EB D8 39 1A 00 00 A9 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 03 00 AB 56 00 90 00 75 [14:01:37]RAPDU: 90 00 [14:01:37]wFMCommunicate OK [14:01:37]wFMCommunicate request_size=4 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 0D 03 02 [14:01:37]Write to MH i2c: E2 08 00 AC 56 80 0D 03 02 00 00 00 00 7D [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 0B 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 0B 00 AC 56 00 BF E0 BC E5 10 EC 91 A2 90 00 ED [14:01:37]RAPDU: BF E0 BC E5 10 EC 91 A2 90 00 [14:01:37]wFMCommunicate OK [14:01:37]SAM_PROTO_SignData done [14:01:37]FM_MakeSignedData done [14:01:37]CreateOFDProtocolMessage [14:01:37]wFMCommunicate request_size=4 [14:01:37]MH_SAM_APDU [14:01:37]CAPDU: 80 11 00 00 [14:01:37]Write to MH i2c: E2 08 00 AD 56 80 11 00 00 00 00 00 00 7D [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:37]Read from MH i2c: E2 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 17 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: E2 17 00 AD 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [14:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:01:37]wFMCommunicate OK [14:01:37]CreateOFDProtocolMessage done [14:01:37]OFDSenderStorePacket 166044 [14:01:37]StoreOFDPacket docnum=166044 [14:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE F1 07 01 35 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D2 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 88 02 00 35 04 06 00 F3 0E EB D8 39 1A BF E0 BC E5 10 EC 91 A2 [14:01:37]CheckFolder [14:01:37]dirname=/storage/ofd_packets [14:01:37]CheckFolder done [14:01:37]ProducePacketName [14:01:37]name=ofd_packets/00166044 [14:01:37]NVStorageSaveData ofd_packets/00166044 [14:01:37]File name is /storage/ofd_packets/00166044 [14:01:37]Write 301 bytes [14:01:37]NVStorageSaveData done [14:01:37]OFDSenderStorePacket done [14:01:37]KKMCreateOFDPacket done [14:01:37]NVStorageSaveData kkm_last_timestamp [14:01:37]File name is /storage/kkm_last_timestamp [14:01:37]Write 4 bytes [14:01:37]NVStorageSaveData done [14:01:37]ExternCall_PrintAddStr [14:01:37]wPrintStart [14:01:37]Write to MH i2c: 01 00 00 AE 56 04 [14:01:37]Write i2c OK [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: 01 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: 01 07 00 [14:01:37]MH_I2C_Read... [14:01:37]Read from MH i2c: 01 07 00 AE 56 00 00 00 00 00 FF 0F 19 [14:01:37]RasterBufferAndPrint [14:01:37]line Счет N : (1)220615 [14:01:37]line ИНН: 02508201610067 [14:01:37]line Контрольно-Кассовый Чек [14:01:37]line ПРОДАЖА [14:01:37]line ТРК (МРК, ГНК) : 33 [14:01:37]line Товар: 2710124130 [14:01:37]line Аи-92-К-5 [14:01:37]line 14.950 * 66.90 [14:01:37]line = 1000.16 [14:01:37]line НДС 12% НСП 1% [14:01:37]line > о реализуемом товаре [14:01:37]line ОКРУГЛЕНИЕ: -0.16 [14:01:37]line ИТОГО: 1000.00 [14:01:37]line Внесено: 1000.00 [14:01:37]line СДАЧА: 0.00 [14:01:37]line НСП 1% : 8.85 [14:01:37]line НДС 12% : 106.21 [14:01:37]line Наличными: 1000.00 [14:01:37]line Безнал.: 0.00 [14:01:37]line Место: АЗС № 161 "Партнер Нефть" [14:01:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:01:37]line СНО: Общий режим [14:01:37]line Чек 155 21.10.2024 14:01 [14:01:37]line Смена: 535 ФФД: 1.0 [14:01:37]line ЗНМ: 0300000104 [14:01:37]line РНМ: 0000000000091764 [14:01:37]line Версия ККМ: 001 [14:01:37]line ФМ: 0000000000871759 [14:01:37]line ФД: 166044 [14:01:37]line ФПД: 267245411907866 [14:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140154&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166044&fm=267245411907866&tin=02508201610067®Number=0000000000091764&sum=100000 [14:01:37]OFD Sender: Processing packet 166044 [packets to send 48, broken 47] [14:01:37]ProducePacketName [14:01:37]name=ofd_packets/00166044 [14:01:37]OFD Sender: To server: pG, [14:01:37]CommunicateWithHost lk.salyk.kg:30040 [14:01:37]ConnectInit lk.salyk.kg [14:01:37]written 0, free lines is 4095 [14:01:37]Connected sock=7 [14:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CE F1 07 01 35 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 D2 5E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 88 02 00 35 04 06 00 F3 0E EB D8 39 1A BF E0 BC E5 10 EC 91 A2 [14:01:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 79 0E 47 00 DC 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9C 88 02 00 F4 03 04 00 40 05 16 67 B6 04 01 00 00 8F 0D BD 8D C1 40 A9 E4 [14:01:38]CommunicateWithHost err = 0 [14:01:38]CheckOFDResponse [14:01:38]1017 (14) - 77093643461234 [14:01:38]1041 (16) - 0000000000871759 [14:01:38]1040 (4) - 166044 [14:01:38]1012 (4) - 21.10.2024 07:39 [14:01:38]1206 (1) - 0 [14:01:38]OFD Sender: Remove packet 166044 [14:01:38]ProducePacketName [14:01:38]name=ofd_packets/00166044 [14:01:38]NVStorageDeleteData [14:01:38]Write to MH i2c: 01 00 00 D9 56 2F [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: 01 07 00 D9 56 00 00 00 00 00 D6 0C 18 [14:01:38]RasterBufferAndPrint [14:01:38]line [14:01:38]line [14:01:38]line [14:01:38]line [14:01:38]line [14:01:38]written 0, free lines is 3294 [14:01:38]MH_Cut [14:01:38]Write to MH i2c: D1 01 00 E0 56 01 08 [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D1 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D1 01 00 [14:01:38]MH_I2C_Read... [14:01:38]Read from MH i2c: D1 01 00 E0 56 00 07 [14:01:38]Write to MH i2c: 01 00 00 E1 56 37 [14:01:38]Write i2c OK [14:01:38]MH_I2C_Read... [14:01:38]OFD Sender: No OFD packet to send [14:01:39]*** Cut start [14:01:39]*** Partial cut [14:01:39]*** CUTSNS_PIN = 1 [14:01:39]*** CUTSNS_PIN = 0 [14:01:39]*** Brake cut motor [14:01:39]Read from MH i2c: 01 [14:01:39]MH_I2C_Read... [14:01:39]*** Stop cut motor [14:01:39]*** Cut end [14:01:39]Read from MH i2c: 01 07 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: 01 07 00 E1 56 00 00 00 00 00 FF 0F 4C [14:01:39]process_action close_receipt done [14:01:39]requested_data is exist [14:01:39]produce_requested_data [14:01:39]requested_item fm.sn is exist - process it [14:01:39]wFMCommunicate request_size=4 [14:01:39]MH_SAM_APDU [14:01:39]CAPDU: 80 11 00 00 [14:01:39]Write to MH i2c: E2 08 00 E2 56 80 11 00 00 00 00 00 00 B2 [14:01:39]Write i2c OK [14:01:39]MH_I2C_Read... [14:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:39]Read from MH i2c: E2 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 17 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 17 00 E2 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [14:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:01:39]wFMCommunicate OK [14:01:39]requested_item fd.num is exist - process it [14:01:39]SAM_PROTO_GetFieldsCounters [14:01:39]wFMCommunicate request_size=4 [14:01:39]MH_SAM_APDU [14:01:39]CAPDU: 80 13 00 00 [14:01:39]Write to MH i2c: E2 08 00 E3 56 80 13 00 00 00 00 00 00 B5 [14:01:39]Write i2c OK [14:01:39]MH_I2C_Read... [14:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:39]Read from MH i2c: E2 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 62 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 62 00 E3 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9C 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:39]wFMCommunicate OK [14:01:39]SAM_PROTO_GetFieldsCounters done [14:01:39]requested_item shift.num is exist - process it [14:01:39]requested_item shift.opened is exist - process it [14:01:39]req_shift_opened [14:01:39]FM_GetShiftState [14:01:39]SAM_PROTO_GetShiftState [14:01:39]wFMCommunicate request_size=4 [14:01:39]MH_SAM_APDU [14:01:39]CAPDU: 80 13 01 00 [14:01:39]Write to MH i2c: E2 08 00 E4 56 80 13 01 00 00 00 00 00 B7 [14:01:39]Write i2c OK [14:01:39]MH_I2C_Read... [14:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:39]Read from MH i2c: E2 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 0E 00 [14:01:39]MH_I2C_Read... [14:01:39]Read from MH i2c: E2 0E 00 E4 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C0 [14:01:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:01:39]wFMCommunicate OK [14:01:39]SAM_PROTO_GetShiftState done [14:01:39]FM_GetShiftState done [14:01:39]req_shift_opened done [14:01:39]requested_item shift.open_date is exist - process it [14:01:39]req_shift_open_date [14:01:39]req_shift_open_date done [14:01:39]produce_requested_data done [14:01:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166044,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:01:39]process_action_free close_receipt [14:01:39]json_value_free [14:01:39]json_value_free done [14:01:39]process_json_proto returns [14:01:39]Send response to host [14:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166044,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:01:39]free response buf [14:01:39]execute_script done [14:01:39]execute_script returns [14:01:39]free content buf [14:01:39]Sock 6.Close socket [14:01:39]Sock 6.Thread stoped [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:40]accept exits with 5 [14:05:40]New connection [14:05:40]New thread 3066776932 created [14:05:40]Thread 3066920292 joined [14:05:40]Waiting for new connection... [14:05:40] Sock 5.Parse request [14:05:40]Sock 5.Check first char [14:05:40]Sock 5.First char is OK [14:05:40]request: POST /json_proto HTTP/1.0 [14:05:40]Method: POST [14:05:40]URL: /json_proto [14:05:40]Method is POST - this is cgi request [14:05:40]url: /json_proto [14:05:40]query_string will be loaded in cgi processing [14:05:40]execute_cgi json_proto POST (null) [14:05:40]execute_cgi path=json_proto method=POST [14:05:40]POST find Content-Length [14:05:40]Host: 172.17.53.195:8080 [14:05:40]Content-Length: 766 [14:05:40]Content-Type: application/json [14:05:40] [14:05:40]POST finish read [14:05:40]Found Content-Length = 766 [14:05:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:40]execute_script... [14:05: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)220616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:40]POST & json_proto [14:05:40]process_json_proto [14:05:40]json parsed OK: [14:05:40]protocol is kg_v1.0 [14:05:40]action value=close_receipt [14:05:40]process_action close_receipt [14:05:40]cmd_close_receipt [14:05:40]MH_GetDate [14:05:40]Write to MH i2c: F0 00 00 E5 56 2A [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 09 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: F0 09 00 E5 56 00 C7 5F 16 67 21 48 4A 65 EE [14:05:40]GetLastDocTimeStamp 1729519314 [14:05:40]current date 1729519559 [14:05:40]FM_GetShiftState [14:05:40]SAM_PROTO_GetShiftState [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 13 01 00 [14:05:40]Write to MH i2c: E2 08 00 E6 56 80 13 01 00 00 00 00 00 B9 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 E6 56 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C2 [14:05:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetShiftState done [14:05:40]FM_GetShiftState done [14:05:40]opened in 1729470944 [14:05:40]opened+sec_in_day 1729557344 [14:05:40]quantity*price = 40006 [14:05:40]sum+1 = 40007 [14:05:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 156 21.10.2024 14:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166045 ФПД: 181072546347338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140559&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166045&fm=181072546347338&tin=02508201610067®Number=0000000000091764&sum=40006 [14:05:41]StoreToDocumentArchive [14:05:41]shift 535 fd 166045 [14:05:41]save to /storage/0535/doc_00166045 [14:05:41]save last doc name /storage/0535/doc_00166045 to /storage/kkm_last_doc_name [14:05:41]save OK [14:05:41]Clear old archive folders... [14:05:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:41]tlvbuf is 01C09D80 [14:05:41]SAM_PROTO_ClearQueue [14:05:41]wFMCommunicate request_size=4 [14:05:41]MH_SAM_APDU [14:05:41]CAPDU: 80 09 00 00 [14:05:41]Write to MH i2c: E2 08 00 F3 56 80 09 00 00 00 00 00 00 BB [14:05:41]Write i2c OK [14:05:41]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 F3 56 00 90 00 BD [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_ClearQueue done [14:05:42]KKMCreateOFDPacket [14:05:42]OFDProtocolAddRootSTLVToBuf [14:05:42]FM_MakeSignedData [14:05:42]FM_MakeSignedData [14:05:42]SAM_PROTO_SignData [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 01 02 [14:05:42]Write to MH i2c: E2 08 00 F4 56 80 0D 01 02 00 00 00 00 C3 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 F4 56 00 90 00 BE [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=255 [14:05:42]MH_SAM_APDU [14:05: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C7 5F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 88 02 00 35 04 06 00 A4 [14:05:42]Write to MH i2c: E2 02 01 F5 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C7 5F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 88 02 00 35 04 06 00 A4 00 00 57 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 F5 56 00 90 00 BF [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=10 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 02 02 05 AF 3C CD B9 4A [14:05:42]Write to MH i2c: E2 0D 00 F6 56 80 0D 02 02 05 00 AF 3C CD B9 4A 00 00 8B [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 03 00 F6 56 00 90 00 C0 [14:05:42]RAPDU: 90 00 [14:05:42]wFMCommunicate OK [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 0D 03 02 [14:05:42]Write to MH i2c: E2 08 00 F7 56 80 0D 03 02 00 00 00 00 C8 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 0B 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 0B 00 F7 56 00 7D B3 99 78 17 3A CE 12 90 00 3B [14:05:42]RAPDU: 7D B3 99 78 17 3A CE 12 90 00 [14:05:42]wFMCommunicate OK [14:05:42]SAM_PROTO_SignData done [14:05:42]FM_MakeSignedData done [14:05:42]CreateOFDProtocolMessage [14:05:42]wFMCommunicate request_size=4 [14:05:42]MH_SAM_APDU [14:05:42]CAPDU: 80 11 00 00 [14:05:42]Write to MH i2c: E2 08 00 F8 56 80 11 00 00 00 00 00 00 C8 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:42]Read from MH i2c: E2 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 17 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: E2 17 00 F8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [14:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:05:42]wFMCommunicate OK [14:05:42]CreateOFDProtocolMessage done [14:05:42]OFDSenderStorePacket 166045 [14:05:42]StoreOFDPacket docnum=166045 [14:05:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 5E 07 01 DF 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C7 5F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 88 02 00 35 04 06 00 A4 AF 3C CD B9 4A 7D B3 99 78 17 3A CE 12 [14:05:42]CheckFolder [14:05:42]dirname=/storage/ofd_packets [14:05:42]CheckFolder done [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00166045 [14:05:42]NVStorageSaveData ofd_packets/00166045 [14:05:42]File name is /storage/ofd_packets/00166045 [14:05:42]Write 301 bytes [14:05:42]NVStorageSaveData done [14:05:42]OFDSenderStorePacket done [14:05:42]KKMCreateOFDPacket done [14:05:42]NVStorageSaveData kkm_last_timestamp [14:05:42]File name is /storage/kkm_last_timestamp [14:05:42]Write 4 bytes [14:05:42]NVStorageSaveData done [14:05:42]ExternCall_PrintAddStr [14:05:42]wPrintStart [14:05:42]Write to MH i2c: 01 00 00 F9 56 4F [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 F9 56 00 00 00 00 00 FF 0F 64 [14:05:42]RasterBufferAndPrint [14:05:42]line Счет N : (1)220616 [14:05:42]line ИНН: 02508201610067 [14:05:42]line Контрольно-Кассовый Чек [14:05:42]line ПРОДАЖА [14:05:42]line ТРК (МРК, ГНК) : 13 [14:05:42]line Товар: 2710124130 [14:05:42]line Аи-92-К-5 [14:05:42]line 5.980 * 66.90 [14:05:42]line = 400.06 [14:05:42]line НДС 12% НСП 1% [14:05:42]line > о реализуемом товаре [14:05:42]line ИТОГО: 400.06 [14:05:42]line НСП 1% : 3.54 [14:05:42]line НДС 12% : 42.48 [14:05:42]line Наличными: 0.00 [14:05:42]line Безнал.: 400.06 [14:05:42]line Место: АЗС № 161 "Партнер Нефть" [14:05:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:05:42]line СНО: Общий режим [14:05:42]line Чек 156 21.10.2024 14:05 [14:05:42]line Смена: 535 ФФД: 1.0 [14:05:42]line ЗНМ: 0300000104 [14:05:42]line РНМ: 0000000000091764 [14:05:42]line Версия ККМ: 001 [14:05:42]line Платежная система: Mbank [14:05:42]line ФМ: 0000000000871759 [14:05:42]line ФД: 166045 [14:05:42]line ФПД: 181072546347338 [14:05:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140559&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166045&fm=181072546347338&tin=02508201610067®Number=0000000000091764&sum=40006 [14:05:42]written 0, free lines is 4095 [14:05:42]OFD Sender: Processing packet 166045 [packets to send 48, broken 47] [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00166045 [14:05:42]OFD Sender: To server: pG, [14:05:42]CommunicateWithHost lk.salyk.kg:30040 [14:05:42]ConnectInit lk.salyk.kg [14:05:42]Connected sock=7 [14:05:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1F 5E 07 01 DF 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 C7 5F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 88 02 00 35 04 06 00 A4 AF 3C CD B9 4A 7D B3 99 78 17 3A CE 12 [14:05:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 44 3C 47 00 98 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9D 88 02 00 F4 03 04 00 35 06 16 67 B6 04 01 00 00 36 20 2C 02 D1 FE 19 C7 [14:05:42]CommunicateWithHost err = 0 [14:05:42]CheckOFDResponse [14:05:42]1017 (14) - 77093643461234 [14:05:42]1041 (16) - 0000000000871759 [14:05:42]1040 (4) - 166045 [14:05:42]1012 (4) - 21.10.2024 07:43 [14:05:42]1206 (1) - 0 [14:05:42]OFD Sender: Remove packet 166045 [14:05:42]ProducePacketName [14:05:42]name=ofd_packets/00166045 [14:05:42]NVStorageDeleteData [14:05:42]Write to MH i2c: 01 00 00 22 57 79 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: 01 07 00 22 57 00 00 00 00 00 F1 0C 7D [14:05:42]RasterBufferAndPrint [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]line [14:05:42]written 0, free lines is 3323 [14:05:42]MH_Cut [14:05:42]Write to MH i2c: D1 01 00 29 57 01 52 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 01 00 [14:05:42]MH_I2C_Read... [14:05:42]Read from MH i2c: D1 01 00 29 57 00 51 [14:05:42]Write to MH i2c: 01 00 00 2A 57 81 [14:05:42]Write i2c OK [14:05:42]MH_I2C_Read... [14:05:43]OFD Sender: No OFD packet to send [14:05:43]*** Cut start [14:05:43]*** Partial cut [14:05:43]*** CUTSNS_PIN = 1 [14:05:43]*** CUTSNS_PIN = 0 [14:05:43]*** Brake cut motor [14:05:44]Read from MH i2c: 01 [14:05:44]MH_I2C_Read... [14:05:44]*** Stop cut motor [14:05:44]*** Cut end [14:05:44]Read from MH i2c: 01 07 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: 01 07 00 2A 57 00 00 00 00 00 FF 0F 96 [14:05:44]process_action close_receipt done [14:05:44]requested_data is exist [14:05:44]produce_requested_data [14:05:44]requested_item fm.sn is exist - process it [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 11 00 00 [14:05:44]Write to MH i2c: E2 08 00 2B 57 80 11 00 00 00 00 00 00 FC [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 17 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 17 00 2B 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [14:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:05:44]wFMCommunicate OK [14:05:44]requested_item fd.num is exist - process it [14:05:44]SAM_PROTO_GetFieldsCounters [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 13 00 00 [14:05:44]Write to MH i2c: E2 08 00 2C 57 80 13 00 00 00 00 00 00 FF [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 62 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 62 00 2C 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [14:05:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9D 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:44]wFMCommunicate OK [14:05:44]SAM_PROTO_GetFieldsCounters done [14:05:44]requested_item shift.num is exist - process it [14:05:44]requested_item shift.opened is exist - process it [14:05:44]req_shift_opened [14:05:44]FM_GetShiftState [14:05:44]SAM_PROTO_GetShiftState [14:05:44]wFMCommunicate request_size=4 [14:05:44]MH_SAM_APDU [14:05:44]CAPDU: 80 13 01 00 [14:05:44]Write to MH i2c: E2 08 00 2D 57 80 13 01 00 00 00 00 00 01 [14:05:44]Write i2c OK [14:05:44]MH_I2C_Read... [14:05:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:44]Read from MH i2c: E2 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0E 00 [14:05:44]MH_I2C_Read... [14:05:44]Read from MH i2c: E2 0E 00 2D 57 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0A [14:05:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:05:44]wFMCommunicate OK [14:05:44]SAM_PROTO_GetShiftState done [14:05:44]FM_GetShiftState done [14:05:44]req_shift_opened done [14:05:44]requested_item shift.open_date is exist - process it [14:05:44]req_shift_open_date [14:05:44]req_shift_open_date done [14:05:44]produce_requested_data done [14:05:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166045,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:05:44]process_action_free close_receipt [14:05:44]json_value_free [14:05:44]json_value_free done [14:05:44]process_json_proto returns [14:05:44]Send response to host [14:05:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166045,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:05:44]free response buf [14:05:44]execute_script done [14:05:44]execute_script returns [14:05:44]free content buf [14:05:44]Sock 5.Close socket [14:05:44]Sock 5.Thread stoped [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: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:08]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]OFD Sender: No OFD packet to send [14:08:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:31]accept exits with 6 [14:08:31]New connection [14:08:31]New thread 3066920292 created [14:08:31]Thread 3066776932 joined [14:08:31]Waiting for new connection... [14:08:31] Sock 6.Parse request [14:08:31]Sock 6.Check first char [14:08:31]Sock 6.First char is OK [14:08:31]request: POST /json_proto HTTP/1.0 [14:08:31]Method: POST [14:08:31]URL: /json_proto [14:08:31]Method is POST - this is cgi request [14:08:31]url: /json_proto [14:08:31]query_string will be loaded in cgi processing [14:08:31]execute_cgi json_proto POST (null) [14:08:31]execute_cgi path=json_proto method=POST [14:08:31]POST find Content-Length [14:08:31]Host: 172.17.53.195:8080 [14:08:31]Content-Length: 769 [14:08:31]Content-Type: application/json [14:08:31] [14:08:31]POST finish read [14:08:31]Found Content-Length = 769 [14:08:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:31]execute_script... [14:08: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)220617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:31]POST & json_proto [14:08:31]process_json_proto [14:08:31]json parsed OK: [14:08:31]protocol is kg_v1.0 [14:08:31]action value=close_receipt [14:08:31]process_action close_receipt [14:08:31]cmd_close_receipt [14:08:31]MH_GetDate [14:08:31]Write to MH i2c: F0 00 00 2E 57 74 [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: F0 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: F0 09 00 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: F0 09 00 2E 57 00 71 60 16 67 21 48 4A 65 E3 [14:08:31]GetLastDocTimeStamp 1729519559 [14:08:31]current date 1729519729 [14:08:31]FM_GetShiftState [14:08:31]SAM_PROTO_GetShiftState [14:08:31]wFMCommunicate request_size=4 [14:08:31]MH_SAM_APDU [14:08:31]CAPDU: 80 13 01 00 [14:08:31]Write to MH i2c: E2 08 00 2F 57 80 13 01 00 00 00 00 00 03 [14:08:31]Write i2c OK [14:08:31]MH_I2C_Read... [14:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:31]Read from MH i2c: E2 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: E2 0E 00 [14:08:31]MH_I2C_Read... [14:08:31]Read from MH i2c: E2 0E 00 2F 57 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0C [14:08:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:08:31]wFMCommunicate OK [14:08:31]SAM_PROTO_GetShiftState done [14:08:31]FM_GetShiftState done [14:08:31]opened in 1729470944 [14:08:31]opened+sec_in_day 1729557344 [14:08:31]quantity*price = 100015 [14:08:31]sum+1 = 100017 [14:08:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 157 21.10.2024 14:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166046 ФПД: 128462542222839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166046&fm=128462542222839&tin=02508201610067®Number=0000000000091764&sum=100016 [14:08:32]StoreToDocumentArchive [14:08:32]shift 535 fd 166046 [14:08:32]save to /storage/0535/doc_00166046 [14:08:32]save last doc name /storage/0535/doc_00166046 to /storage/kkm_last_doc_name [14:08:32]save OK [14:08:32]Clear old archive folders... [14:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:32]tlvbuf is 015BD1C0 [14:08:32]SAM_PROTO_ClearQueue [14:08:32]wFMCommunicate request_size=4 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 09 00 00 [14:08:32]Write to MH i2c: E2 08 00 3C 57 80 09 00 00 00 00 00 00 05 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 3C 57 00 90 00 07 [14:08:32]RAPDU: 90 00 [14:08:32]wFMCommunicate OK [14:08:32]SAM_PROTO_ClearQueue done [14:08:32]KKMCreateOFDPacket [14:08:32]OFDProtocolAddRootSTLVToBuf [14:08:32]FM_MakeSignedData [14:08:32]FM_MakeSignedData [14:08:32]SAM_PROTO_SignData [14:08:32]wFMCommunicate request_size=4 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 0D 01 02 [14:08:32]Write to MH i2c: E2 08 00 3D 57 80 0D 01 02 00 00 00 00 0D [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 3D 57 00 90 00 08 [14:08:32]RAPDU: 90 00 [14:08:32]wFMCommunicate OK [14:08:32]wFMCommunicate request_size=255 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 60 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 88 02 00 35 04 06 00 74 [14:08:32]Write to MH i2c: E2 02 01 3E 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 60 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 88 02 00 35 04 06 00 74 00 00 5D [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 3E 57 00 90 00 09 [14:08:32]RAPDU: 90 00 [14:08:32]wFMCommunicate OK [14:08:32]wFMCommunicate request_size=10 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 0D 02 02 05 D6 04 32 35 F7 [14:08:32]Write to MH i2c: E2 0D 00 3F 57 80 0D 02 02 05 00 D6 04 32 35 F7 00 00 52 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 03 00 3F 57 00 90 00 0A [14:08:32]RAPDU: 90 00 [14:08:32]wFMCommunicate OK [14:08:32]wFMCommunicate request_size=4 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 0D 03 02 [14:08:32]Write to MH i2c: E2 08 00 40 57 80 0D 03 02 00 00 00 00 12 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 0B 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 0B 00 40 57 00 9C DE 28 99 E2 E7 94 6A 90 00 15 [14:08:32]RAPDU: 9C DE 28 99 E2 E7 94 6A 90 00 [14:08:32]wFMCommunicate OK [14:08:32]SAM_PROTO_SignData done [14:08:32]FM_MakeSignedData done [14:08:32]CreateOFDProtocolMessage [14:08:32]wFMCommunicate request_size=4 [14:08:32]MH_SAM_APDU [14:08:32]CAPDU: 80 11 00 00 [14:08:32]Write to MH i2c: E2 08 00 41 57 80 11 00 00 00 00 00 00 12 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:32]Read from MH i2c: E2 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 17 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: E2 17 00 41 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [14:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:08:32]wFMCommunicate OK [14:08:32]CreateOFDProtocolMessage done [14:08:32]OFDSenderStorePacket 166046 [14:08:32]StoreOFDPacket docnum=166046 [14:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 59 07 01 E1 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 60 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 88 02 00 35 04 06 00 74 D6 04 32 35 F7 9C DE 28 99 E2 E7 94 6A [14:08:32]CheckFolder [14:08:32]dirname=/storage/ofd_packets [14:08:32]CheckFolder done [14:08:32]ProducePacketName [14:08:32]name=ofd_packets/00166046 [14:08:32]NVStorageSaveData ofd_packets/00166046 [14:08:32]File name is /storage/ofd_packets/00166046 [14:08:32]Write 301 bytes [14:08:32]NVStorageSaveData done [14:08:32]OFDSenderStorePacket done [14:08:32]KKMCreateOFDPacket done [14:08:32]NVStorageSaveData kkm_last_timestamp [14:08:32]File name is /storage/kkm_last_timestamp [14:08:32]Write 4 bytes [14:08:32]NVStorageSaveData done [14:08:32]ExternCall_PrintAddStr [14:08:32]wPrintStart [14:08:32]Write to MH i2c: 01 00 00 42 57 99 [14:08:32]Write i2c OK [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: 01 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: 01 07 00 [14:08:32]MH_I2C_Read... [14:08:32]Read from MH i2c: 01 07 00 42 57 00 00 00 00 00 FF 0F AE [14:08:32]RasterBufferAndPrint [14:08:32]line Счет N : (1)220617 [14:08:32]line ИНН: 02508201610067 [14:08:32]line Контрольно-Кассовый Чек [14:08:32]line ПРОДАЖА [14:08:32]line ТРК (МРК, ГНК) : 33 [14:08:32]line Товар: 2710124130 [14:08:32]line Аи-92-К-5 [14:08:32]line 14.950 * 66.90 [14:08:32]line = 1000.16 [14:08:32]line НДС 12% НСП 1% [14:08:32]line > о реализуемом товаре [14:08:32]line ИТОГО: 1000.16 [14:08:32]line НСП 1% : 8.85 [14:08:32]line НДС 12% : 106.21 [14:08:32]line Наличными: 0.00 [14:08:32]line Безнал.: 1000.16 [14:08:32]line Место: АЗС № 161 "Партнер Нефть" [14:08:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:08:32]line СНО: Общий режим [14:08:32]line Чек 157 21.10.2024 14:08 [14:08:32]line Смена: 535 ФФД: 1.0 [14:08:32]line ЗНМ: 0300000104 [14:08:32]line РНМ: 0000000000091764 [14:08:32]line Версия ККМ: 001 [14:08:32]line Платежная система: Mbank [14:08:32]line ФМ: 0000000000871759 [14:08:32]line ФД: 166046 [14:08:32]line ФПД: 128462542222839 [14:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T140849&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166046&fm=128462542222839&tin=02508201610067®Number=0000000000091764&sum=100016 [14:08:33]OFD Sender: Processing packet 166046 [packets to send 48, broken 47] [14:08:33]ProducePacketName [14:08:33]name=ofd_packets/00166046 [14:08:33]OFD Sender: To server: pG, [14:08:33]CommunicateWithHost lk.salyk.kg:30040 [14:08:33]ConnectInit lk.salyk.kg [14:08:33]written 0, free lines is 4095 [14:08:33]Connected sock=7 [14:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 22 59 07 01 E1 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 71 60 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 88 02 00 35 04 06 00 74 D6 04 32 35 F7 9C DE 28 99 E2 E7 94 6A [14:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 05 B1 47 00 E2 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9E 88 02 00 F4 03 04 00 DF 06 16 67 B6 04 01 00 00 00 39 DF 77 15 A9 31 79 [14:08:33]CommunicateWithHost err = 0 [14:08:33]CheckOFDResponse [14:08:33]1017 (14) - 77093643461234 [14:08:33]1041 (16) - 0000000000871759 [14:08:33]1040 (4) - 166046 [14:08:33]1012 (4) - 21.10.2024 07:46 [14:08:33]1206 (1) - 0 [14:08:33]OFD Sender: Remove packet 166046 [14:08:33]ProducePacketName [14:08:33]name=ofd_packets/00166046 [14:08:33]NVStorageDeleteData [14:08:33]Write to MH i2c: 01 00 00 6B 57 C2 [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 07 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: 01 07 00 6B 57 00 00 00 00 00 F3 0C C8 [14:08:33]RasterBufferAndPrint [14:08:33]line [14:08:33]line [14:08:33]line [14:08:33]line [14:08:33]line [14:08:33]written 0, free lines is 3322 [14:08:33]MH_Cut [14:08:33]Write to MH i2c: D1 01 00 72 57 01 9B [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: D1 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: D1 01 00 [14:08:33]MH_I2C_Read... [14:08:33]Read from MH i2c: D1 01 00 72 57 00 9A [14:08:33]Write to MH i2c: 01 00 00 73 57 CA [14:08:33]Write i2c OK [14:08:33]MH_I2C_Read... [14:08:33]OFD Sender: No OFD packet to send [14:08:34]*** Cut start [14:08:34]*** Partial cut [14:08:34]*** CUTSNS_PIN = 1 [14:08:34]*** CUTSNS_PIN = 0 [14:08:34]*** Brake cut motor [14:08:34]Read from MH i2c: 01 [14:08:34]MH_I2C_Read... [14:08:34]*** Stop cut motor [14:08:34]*** Cut end [14:08:34]Read from MH i2c: 01 07 00 [14:08:34]MH_I2C_Read... [14:08:34]Read from MH i2c: 01 07 00 73 57 00 00 00 00 00 FF 0F DF [14:08:34]process_action close_receipt done [14:08:34]requested_data is exist [14:08:34]produce_requested_data [14:08:34]requested_item fm.sn is exist - process it [14:08:34]wFMCommunicate request_size=4 [14:08:34]MH_SAM_APDU [14:08:34]CAPDU: 80 11 00 00 [14:08:34]Write to MH i2c: E2 08 00 74 57 80 11 00 00 00 00 00 00 45 [14:08:34]Write i2c OK [14:08:34]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 17 00 74 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [14:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:08:35]wFMCommunicate OK [14:08:35]requested_item fd.num is exist - process it [14:08:35]SAM_PROTO_GetFieldsCounters [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 13 00 00 [14:08:35]Write to MH i2c: E2 08 00 75 57 80 13 00 00 00 00 00 00 48 [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 62 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 62 00 75 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [14:08:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9E 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_GetFieldsCounters done [14:08:35]requested_item shift.num is exist - process it [14:08:35]requested_item shift.opened is exist - process it [14:08:35]req_shift_opened [14:08:35]FM_GetShiftState [14:08:35]SAM_PROTO_GetShiftState [14:08:35]wFMCommunicate request_size=4 [14:08:35]MH_SAM_APDU [14:08:35]CAPDU: 80 13 01 00 [14:08:35]Write to MH i2c: E2 08 00 76 57 80 13 01 00 00 00 00 00 4A [14:08:35]Write i2c OK [14:08:35]MH_I2C_Read... [14:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:35]Read from MH i2c: E2 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0E 00 [14:08:35]MH_I2C_Read... [14:08:35]Read from MH i2c: E2 0E 00 76 57 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 53 [14:08:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:08:35]wFMCommunicate OK [14:08:35]SAM_PROTO_GetShiftState done [14:08:35]FM_GetShiftState done [14:08:35]req_shift_opened done [14:08:35]requested_item shift.open_date is exist - process it [14:08:35]req_shift_open_date [14:08:35]req_shift_open_date done [14:08:35]produce_requested_data done [14:08:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166046,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:08:35]process_action_free close_receipt [14:08:35]json_value_free [14:08:35]json_value_free done [14:08:35]process_json_proto returns [14:08:35]Send response to host [14:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166046,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:08:35]free response buf [14:08:35]execute_script done [14:08:35]execute_script returns [14:08:35]free content buf [14:08:35]Sock 6.Close socket [14:08:35]Sock 6.Thread stoped [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]OFD Sender: No OFD packet to send [14:10:39]OFD Sender: No OFD packet to send [14:10:44]OFD Sender: No OFD packet to send [14:10:49]OFD Sender: No OFD packet to send [14:10:54]OFD Sender: No OFD packet to send [14:10:59]OFD Sender: No OFD packet to send [14:11:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:16]accept exits with 5 [14:12:16]New connection [14:12:16]New thread 3066776932 created [14:12:16]Thread 3066920292 joined [14:12:16]Waiting for new connection... [14:12:16] Sock 5.Parse request [14:12:16]Sock 5.Check first char [14:12:16]Sock 5.First char is OK [14:12:16]request: POST /json_proto HTTP/1.0 [14:12:16]Method: POST [14:12:16]URL: /json_proto [14:12:16]Method is POST - this is cgi request [14:12:16]url: /json_proto [14:12:16]query_string will be loaded in cgi processing [14:12:16]execute_cgi json_proto POST (null) [14:12:16]execute_cgi path=json_proto method=POST [14:12:16]POST find Content-Length [14:12:16]Host: 172.17.53.195:8080 [14:12:16]Content-Length: 677 [14:12:16]Content-Type: application/json [14:12:16] [14:12:16]POST finish read [14:12:16]Found Content-Length = 677 [14:12:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:16]execute_script... [14:12:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:12:16]POST & json_proto [14:12:16]process_json_proto [14:12:16]json parsed OK: [14:12:16]protocol is kg_v1.0 [14:12:16]action value=close_receipt [14:12:16]process_action close_receipt [14:12:16]cmd_close_receipt [14:12:16]MH_GetDate [14:12:16]Write to MH i2c: F0 00 00 77 57 BD [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: F0 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: F0 09 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: F0 09 00 77 57 00 53 61 16 67 21 48 4A 65 0F [14:12:16]GetLastDocTimeStamp 1729519729 [14:12:16]current date 1729519955 [14:12:16]FM_GetShiftState [14:12:16]SAM_PROTO_GetShiftState [14:12:16]wFMCommunicate request_size=4 [14:12:16]MH_SAM_APDU [14:12:16]CAPDU: 80 13 01 00 [14:12:16]Write to MH i2c: E2 08 00 78 57 80 13 01 00 00 00 00 00 4C [14:12:16]Write i2c OK [14:12:16]MH_I2C_Read... [14:12:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:16]Read from MH i2c: E2 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 0E 00 [14:12:16]MH_I2C_Read... [14:12:16]Read from MH i2c: E2 0E 00 78 57 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 55 [14:12:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:12:16]wFMCommunicate OK [14:12:16]SAM_PROTO_GetShiftState done [14:12:16]FM_GetShiftState done [14:12:16]opened in 1729470944 [14:12:16]opened+sec_in_day 1729557344 [14:12:16]quantity*price = 49974 [14:12:16]sum+1 = 49975 [14:12:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 158 21.10.2024 14:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166047 ФПД: 56065185856461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141235&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166047&fm=56065185856461&tin=02508201610067®Number=0000000000091764&sum=49900 [14:12:17]StoreToDocumentArchive [14:12:17]shift 535 fd 166047 [14:12:17]save to /storage/0535/doc_00166047 [14:12:17]save last doc name /storage/0535/doc_00166047 to /storage/kkm_last_doc_name [14:12:17]save OK [14:12:17]Clear old archive folders... [14:12:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:17]tlvbuf is 016167B0 [14:12:17]SAM_PROTO_ClearQueue [14:12:17]wFMCommunicate request_size=4 [14:12:17]MH_SAM_APDU [14:12:17]CAPDU: 80 09 00 00 [14:12:17]Write to MH i2c: E2 08 00 85 57 80 09 00 00 00 00 00 00 4E [14:12:17]Write i2c OK [14:12:17]MH_I2C_Read... [14:12:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:18]Read from MH i2c: E2 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 85 57 00 90 00 50 [14:12:18]RAPDU: 90 00 [14:12:18]wFMCommunicate OK [14:12:18]SAM_PROTO_ClearQueue done [14:12:18]KKMCreateOFDPacket [14:12:18]OFDProtocolAddRootSTLVToBuf [14:12:18]FM_MakeSignedData [14:12:18]FM_MakeSignedData [14:12:18]SAM_PROTO_SignData [14:12:18]wFMCommunicate request_size=4 [14:12:18]MH_SAM_APDU [14:12:18]CAPDU: 80 0D 01 02 [14:12:18]Write to MH i2c: E2 08 00 86 57 80 0D 01 02 00 00 00 00 56 [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:18]Read from MH i2c: E2 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 86 57 00 90 00 51 [14:12:18]RAPDU: 90 00 [14:12:18]wFMCommunicate OK [14:12:18]wFMCommunicate request_size=255 [14:12:18]MH_SAM_APDU [14:12:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 53 61 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 88 02 00 35 04 06 00 32 [14:12:18]Write to MH i2c: E2 02 01 87 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 53 61 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 88 02 00 35 04 06 00 32 00 00 10 [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:18]Read from MH i2c: E2 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 87 57 00 90 00 52 [14:12:18]RAPDU: 90 00 [14:12:18]wFMCommunicate OK [14:12:18]wFMCommunicate request_size=10 [14:12:18]MH_SAM_APDU [14:12:18]CAPDU: 80 0D 02 02 05 FD B1 7C BB CD [14:12:18]Write to MH i2c: E2 0D 00 88 57 80 0D 02 02 05 00 FD B1 7C BB CD 00 00 15 [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:18]Read from MH i2c: E2 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 03 00 88 57 00 90 00 53 [14:12:18]RAPDU: 90 00 [14:12:18]wFMCommunicate OK [14:12:18]wFMCommunicate request_size=4 [14:12:18]MH_SAM_APDU [14:12:18]CAPDU: 80 0D 03 02 [14:12:18]Write to MH i2c: E2 08 00 89 57 80 0D 03 02 00 00 00 00 5B [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:18]Read from MH i2c: E2 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 0B 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 0B 00 89 57 00 4B C6 E8 7C 17 6F 72 23 90 00 EC [14:12:18]RAPDU: 4B C6 E8 7C 17 6F 72 23 90 00 [14:12:18]wFMCommunicate OK [14:12:18]SAM_PROTO_SignData done [14:12:18]FM_MakeSignedData done [14:12:18]CreateOFDProtocolMessage [14:12:18]wFMCommunicate request_size=4 [14:12:18]MH_SAM_APDU [14:12:18]CAPDU: 80 11 00 00 [14:12:18]Write to MH i2c: E2 08 00 8A 57 80 11 00 00 00 00 00 00 5B [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:18]Read from MH i2c: E2 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 17 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: E2 17 00 8A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [14:12:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:12:18]wFMCommunicate OK [14:12:18]CreateOFDProtocolMessage done [14:12:18]OFDSenderStorePacket 166047 [14:12:18]StoreOFDPacket docnum=166047 [14:12:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FD 4F 07 01 E6 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 53 61 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 88 02 00 35 04 06 00 32 FD B1 7C BB CD 4B C6 E8 7C 17 6F 72 23 [14:12:18]CheckFolder [14:12:18]dirname=/storage/ofd_packets [14:12:18]CheckFolder done [14:12:18]ProducePacketName [14:12:18]name=ofd_packets/00166047 [14:12:18]NVStorageSaveData ofd_packets/00166047 [14:12:18]File name is /storage/ofd_packets/00166047 [14:12:18]Write 301 bytes [14:12:18]NVStorageSaveData done [14:12:18]OFDSenderStorePacket done [14:12:18]KKMCreateOFDPacket done [14:12:18]NVStorageSaveData kkm_last_timestamp [14:12:18]File name is /storage/kkm_last_timestamp [14:12:18]Write 4 bytes [14:12:18]NVStorageSaveData done [14:12:18]ExternCall_PrintAddStr [14:12:18]wPrintStart [14:12:18]Write to MH i2c: 01 00 00 8B 57 E2 [14:12:18]Write i2c OK [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: 01 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: 01 07 00 [14:12:18]MH_I2C_Read... [14:12:18]Read from MH i2c: 01 07 00 8B 57 00 00 00 00 00 FF 0F F7 [14:12:18]RasterBufferAndPrint [14:12:18]line Счет N : (1)220618 [14:12:18]line ИНН: 02508201610067 [14:12:18]line Контрольно-Кассовый Чек [14:12:18]line ПРОДАЖА [14:12:18]line ТРК (МРК, ГНК) : 43 [14:12:18]line Товар: 2710124130 [14:12:18]line Аи-92-К-5 [14:12:18]line 7.470 * 66.90 [14:12:18]line = 499.74 [14:12:18]line НДС 12% НСП 1% [14:12:18]line > о реализуемом товаре [14:12:18]line ОКРУГЛЕНИЕ: -0.74 [14:12:18]line ИТОГО: 499.00 [14:12:18]line Внесено: 500.00 [14:12:18]line СДАЧА: 1.00 [14:12:18]line НСП 1% : 4.42 [14:12:18]line НДС 12% : 53.07 [14:12:18]line Наличными: 499.00 [14:12:18]line Безнал.: 0.00 [14:12:18]line Место: АЗС № 161 "Партнер Нефть" [14:12:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:12:18]line СНО: Общий режим [14:12:18]line Чек 158 21.10.2024 14:12 [14:12:18]line Смена: 535 ФФД: 1.0 [14:12:18]line ЗНМ: 0300000104 [14:12:18]line РНМ: 0000000000091764 [14:12:18]line Версия ККМ: 001 [14:12:18]line ФМ: 0000000000871759 [14:12:18]line ФД: 166047 [14:12:18]line ФПД: 56065185856461 [14:12:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141235&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166047&fm=56065185856461&tin=02508201610067®Number=0000000000091764&sum=49900 [14:12:18]OFD Sender: Processing packet 166047 [packets to send 48, broken 47] [14:12:18]ProducePacketName [14:12:18]name=ofd_packets/00166047 [14:12:18]OFD Sender: To server: pG, [14:12:18]CommunicateWithHost lk.salyk.kg:30040 [14:12:18]ConnectInit lk.salyk.kg [14:12:18]written 0, free lines is 4095 [14:12:18]Connected sock=7 [14:12:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FD 4F 07 01 E6 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 53 61 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 9F 88 02 00 35 04 06 00 32 FD B1 7C BB CD 4B C6 E8 7C 17 6F 72 23 [14:12:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 40 DA 47 00 07 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 35 39 10 04 04 00 9F 88 02 00 F4 03 04 00 C1 07 16 67 B6 04 01 00 00 2D 5B 30 E6 45 71 18 9A [14:12:19]CommunicateWithHost err = 0 [14:12:19]CheckOFDResponse [14:12:19]1017 (14) - 77093643461234 [14:12:19]1041 (16) - 0000000000871759 [14:12:19]1040 (4) - 166047 [14:12:19]1012 (4) - 21.10.2024 07:50 [14:12:19]1206 (1) - 0 [14:12:19]OFD Sender: Remove packet 166047 [14:12:19]ProducePacketName [14:12:19]name=ofd_packets/00166047 [14:12:19]NVStorageDeleteData [14:12:19]Write to MH i2c: 01 00 00 B6 57 0D [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: 01 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: 01 07 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: 01 07 00 B6 57 00 00 00 00 00 D4 0C F4 [14:12:19]RasterBufferAndPrint [14:12:19]line [14:12:19]line [14:12:19]line [14:12:19]line [14:12:19]line [14:12:19]written 0, free lines is 3292 [14:12:19]MH_Cut [14:12:19]Write to MH i2c: D1 01 00 BD 57 01 E6 [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: D1 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: D1 01 00 [14:12:19]MH_I2C_Read... [14:12:19]Read from MH i2c: D1 01 00 BD 57 00 E5 [14:12:19]Write to MH i2c: 01 00 00 BE 57 15 [14:12:19]Write i2c OK [14:12:19]MH_I2C_Read... [14:12:19]OFD Sender: No OFD packet to send [14:12:20]*** Cut start [14:12:20]*** Partial cut [14:12:20]*** CUTSNS_PIN = 1 [14:12:20]*** CUTSNS_PIN = 0 [14:12:20]*** Brake cut motor [14:12:20]Read from MH i2c: 01 [14:12:20]MH_I2C_Read... [14:12:20]*** Stop cut motor [14:12:20]*** Cut end [14:12:20]Read from MH i2c: 01 07 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: 01 07 00 BE 57 00 00 00 00 00 FF 0F 2A [14:12:20]process_action close_receipt done [14:12:20]requested_data is exist [14:12:20]produce_requested_data [14:12:20]requested_item fm.sn is exist - process it [14:12:20]wFMCommunicate request_size=4 [14:12:20]MH_SAM_APDU [14:12:20]CAPDU: 80 11 00 00 [14:12:20]Write to MH i2c: E2 08 00 BF 57 80 11 00 00 00 00 00 00 90 [14:12:20]Write i2c OK [14:12:20]MH_I2C_Read... [14:12:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:20]Read from MH i2c: E2 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 17 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 17 00 BF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [14:12:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:12:20]wFMCommunicate OK [14:12:20]requested_item fd.num is exist - process it [14:12:20]SAM_PROTO_GetFieldsCounters [14:12:20]wFMCommunicate request_size=4 [14:12:20]MH_SAM_APDU [14:12:20]CAPDU: 80 13 00 00 [14:12:20]Write to MH i2c: E2 08 00 C0 57 80 13 00 00 00 00 00 00 93 [14:12:20]Write i2c OK [14:12:20]MH_I2C_Read... [14:12:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:20]Read from MH i2c: E2 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 62 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 62 00 C0 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [14:12:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 9F 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:20]wFMCommunicate OK [14:12:20]SAM_PROTO_GetFieldsCounters done [14:12:20]requested_item shift.num is exist - process it [14:12:20]requested_item shift.opened is exist - process it [14:12:20]req_shift_opened [14:12:20]FM_GetShiftState [14:12:20]SAM_PROTO_GetShiftState [14:12:20]wFMCommunicate request_size=4 [14:12:20]MH_SAM_APDU [14:12:20]CAPDU: 80 13 01 00 [14:12:20]Write to MH i2c: E2 08 00 C1 57 80 13 01 00 00 00 00 00 95 [14:12:20]Write i2c OK [14:12:20]MH_I2C_Read... [14:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:20]Read from MH i2c: E2 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 0E 00 [14:12:20]MH_I2C_Read... [14:12:20]Read from MH i2c: E2 0E 00 C1 57 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9E [14:12:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:12:20]wFMCommunicate OK [14:12:20]SAM_PROTO_GetShiftState done [14:12:20]FM_GetShiftState done [14:12:20]req_shift_opened done [14:12:20]requested_item shift.open_date is exist - process it [14:12:20]req_shift_open_date [14:12:20]req_shift_open_date done [14:12:20]produce_requested_data done [14:12:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166047,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:12:20]process_action_free close_receipt [14:12:20]json_value_free [14:12:20]json_value_free done [14:12:20]process_json_proto returns [14:12:20]Send response to host [14:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166047,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:12:20]free response buf [14:12:20]execute_script done [14:12:20]execute_script returns [14:12:20]free content buf [14:12:20]Sock 5.Close socket [14:12:20]Sock 5.Thread stoped [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:08]accept exits with 6 [14:17:08]New connection [14:17:08]New thread 3066920292 created [14:17:08]Thread 3066776932 joined [14:17:08]Waiting for new connection... [14:17:08] Sock 6.Parse request [14:17:08]Sock 6.Check first char [14:17:08]Sock 6.First char is OK [14:17:08]request: POST /json_proto HTTP/1.0 [14:17:08]Method: POST [14:17:08]URL: /json_proto [14:17:08]Method is POST - this is cgi request [14:17:08]url: /json_proto [14:17:08]query_string will be loaded in cgi processing [14:17:08]execute_cgi json_proto POST (null) [14:17:08]execute_cgi path=json_proto method=POST [14:17:08]POST find Content-Length [14:17:08]Host: 172.17.53.195:8080 [14:17:08]Content-Length: 674 [14:17:08]Content-Type: application/json [14:17:08] [14:17:08]POST finish read [14:17:08]Found Content-Length = 674 [14:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:08]execute_script... [14:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:08]POST & json_proto [14:17:08]process_json_proto [14:17:08]json parsed OK: [14:17:08]protocol is kg_v1.0 [14:17:08]action value=close_receipt [14:17:08]process_action close_receipt [14:17:08]cmd_close_receipt [14:17:08]MH_GetDate [14:17:08]Write to MH i2c: F0 00 00 C2 57 08 [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: F0 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: F0 09 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: F0 09 00 C2 57 00 77 62 16 67 21 48 4A 65 7F [14:17:08]GetLastDocTimeStamp 1729519955 [14:17:08]current date 1729520247 [14:17:08]FM_GetShiftState [14:17:08]SAM_PROTO_GetShiftState [14:17:08]wFMCommunicate request_size=4 [14:17:08]MH_SAM_APDU [14:17:08]CAPDU: 80 13 01 00 [14:17:08]Write to MH i2c: E2 08 00 C3 57 80 13 01 00 00 00 00 00 97 [14:17:08]Write i2c OK [14:17:08]MH_I2C_Read... [14:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:08]Read from MH i2c: E2 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 0E 00 [14:17:08]MH_I2C_Read... [14:17:08]Read from MH i2c: E2 0E 00 C3 57 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A0 [14:17:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:17:08]wFMCommunicate OK [14:17:08]SAM_PROTO_GetShiftState done [14:17:08]FM_GetShiftState done [14:17:08]opened in 1729470944 [14:17:08]opened+sec_in_day 1729557344 [14:17:08]quantity*price = 50063 [14:17:08]sum+1 = 50064 [14:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 159 21.10.2024 14:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166048 ФПД: 167902463400684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166048&fm=167902463400684&tin=02508201610067®Number=0000000000091764&sum=50000 [14:17:09]StoreToDocumentArchive [14:17:09]shift 535 fd 166048 [14:17:09]save to /storage/0535/doc_00166048 [14:17:09]save last doc name /storage/0535/doc_00166048 to /storage/kkm_last_doc_name [14:17:09]save OK [14:17:09]Clear old archive folders... [14:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:17:09]tlvbuf is 015DDAC0 [14:17:09]SAM_PROTO_ClearQueue [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 09 00 00 [14:17:09]Write to MH i2c: E2 08 00 D0 57 80 09 00 00 00 00 00 00 99 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 03 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 03 00 D0 57 00 90 00 9B [14:17:09]RAPDU: 90 00 [14:17:09]wFMCommunicate OK [14:17:09]SAM_PROTO_ClearQueue done [14:17:09]KKMCreateOFDPacket [14:17:09]OFDProtocolAddRootSTLVToBuf [14:17:09]FM_MakeSignedData [14:17:09]FM_MakeSignedData [14:17:09]SAM_PROTO_SignData [14:17:09]wFMCommunicate request_size=4 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 0D 01 02 [14:17:09]Write to MH i2c: E2 08 00 D1 57 80 0D 01 02 00 00 00 00 A1 [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:09]Read from MH i2c: E2 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 03 00 [14:17:09]MH_I2C_Read... [14:17:09]Read from MH i2c: E2 03 00 D1 57 00 90 00 9C [14:17:09]RAPDU: 90 00 [14:17:09]wFMCommunicate OK [14:17:09]wFMCommunicate request_size=255 [14:17:09]MH_SAM_APDU [14:17:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 9F 00 00 00 F4 03 04 00 77 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 88 02 00 35 04 06 00 98 B4 D6 B0 [14:17:09]Write to MH i2c: E2 02 01 D2 57 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 77 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 88 02 00 35 04 06 00 98 B4 D6 B0 00 00 BF [14:17:09]Write i2c OK [14:17:09]MH_I2C_Read... [14:17:09]OFD Sender: No OFD packet to send [14:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 03 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 03 00 D2 57 00 90 00 9D [14:17:10]RAPDU: 90 00 [14:17:10]wFMCommunicate OK [14:17:10]wFMCommunicate request_size=7 [14:17:10]MH_SAM_APDU [14:17:10]CAPDU: 80 0D 02 02 02 1A EC [14:17:10]Write to MH i2c: E2 0A 00 D3 57 80 0D 02 02 02 00 1A EC 00 00 AE [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 03 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 03 00 D3 57 00 90 00 9E [14:17:10]RAPDU: 90 00 [14:17:10]wFMCommunicate OK [14:17:10]wFMCommunicate request_size=4 [14:17:10]MH_SAM_APDU [14:17:10]CAPDU: 80 0D 03 02 [14:17:10]Write to MH i2c: E2 08 00 D4 57 80 0D 03 02 00 00 00 00 A6 [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 0B 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 0B 00 D4 57 00 D9 F0 EA 14 71 54 2D 1A 90 00 7A [14:17:10]RAPDU: D9 F0 EA 14 71 54 2D 1A 90 00 [14:17:10]wFMCommunicate OK [14:17:10]SAM_PROTO_SignData done [14:17:10]FM_MakeSignedData done [14:17:10]CreateOFDProtocolMessage [14:17:10]wFMCommunicate request_size=4 [14:17:10]MH_SAM_APDU [14:17:10]CAPDU: 80 11 00 00 [14:17:10]Write to MH i2c: E2 08 00 D5 57 80 11 00 00 00 00 00 00 A6 [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:10]Read from MH i2c: E2 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 17 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: E2 17 00 D5 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [14:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:17:10]wFMCommunicate OK [14:17:10]CreateOFDProtocolMessage done [14:17:10]OFDSenderStorePacket 166048 [14:17:10]StoreOFDPacket docnum=166048 [14:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 ED 14 04 01 04 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 77 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 88 02 00 35 04 06 00 98 B4 D6 B0 1A EC D9 F0 EA 14 71 54 2D 1A [14:17:10]CheckFolder [14:17:10]dirname=/storage/ofd_packets [14:17:10]CheckFolder done [14:17:10]ProducePacketName [14:17:10]name=ofd_packets/00166048 [14:17:10]NVStorageSaveData ofd_packets/00166048 [14:17:10]File name is /storage/ofd_packets/00166048 [14:17:10]Write 298 bytes [14:17:10]NVStorageSaveData done [14:17:10]OFDSenderStorePacket done [14:17:10]KKMCreateOFDPacket done [14:17:10]NVStorageSaveData kkm_last_timestamp [14:17:10]File name is /storage/kkm_last_timestamp [14:17:10]Write 4 bytes [14:17:10]NVStorageSaveData done [14:17:10]ExternCall_PrintAddStr [14:17:10]wPrintStart [14:17:10]Write to MH i2c: 01 00 00 D6 57 2D [14:17:10]Write i2c OK [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: 01 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: 01 07 00 [14:17:10]MH_I2C_Read... [14:17:10]Read from MH i2c: 01 07 00 D6 57 00 00 00 00 00 FF 0F 42 [14:17:10]RasterBufferAndPrint [14:17:10]line Счет N : (1)220619 [14:17:10]line ИНН: 02508201610067 [14:17:10]line Контрольно-Кассовый Чек [14:17:10]line ПРОДАЖА [14:17:10]line ТРК (МРК, ГНК) : 21 [14:17:10]line Товар: 2710194210 [14:17:10]line ДТ-К-5 [14:17:10]line 6.570 * 76.20 [14:17:10]line = 500.63 [14:17:10]line НДС 12% НСП 1% [14:17:10]line > о реализуемом товаре [14:17:10]line ОКРУГЛЕНИЕ: -0.63 [14:17:10]line ИТОГО: 500.00 [14:17:10]line Внесено: 500.00 [14:17:10]line СДАЧА: 0.00 [14:17:10]line НСП 1% : 4.43 [14:17:10]line НДС 12% : 53.16 [14:17:10]line Наличными: 500.00 [14:17:10]line Безнал.: 0.00 [14:17:10]line Место: АЗС № 161 "Партнер Нефть" [14:17:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:17:10]line СНО: Общий режим [14:17:10]line Чек 159 21.10.2024 14:17 [14:17:10]line Смена: 535 ФФД: 1.0 [14:17:10]line ЗНМ: 0300000104 [14:17:10]line РНМ: 0000000000091764 [14:17:10]line Версия ККМ: 001 [14:17:10]line ФМ: 0000000000871759 [14:17:10]line ФД: 166048 [14:17:10]line ФПД: 167902463400684 [14:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141727&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166048&fm=167902463400684&tin=02508201610067®Number=0000000000091764&sum=50000 [14:17:10]OFD Sender: Processing packet 166048 [packets to send 48, broken 47] [14:17:10]ProducePacketName [14:17:10]name=ofd_packets/00166048 [14:17:10]OFD Sender: To server: pG, [14:17:10]CommunicateWithHost lk.salyk.kg:30040 [14:17:10]ConnectInit lk.salyk.kg [14:17:10]written 0, free lines is 4095 [14:17:10]Connected sock=9 [14:17:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 ED 14 04 01 04 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9F 00 00 00 F4 03 04 00 77 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A0 88 02 00 35 04 06 00 98 B4 D6 B0 1A EC D9 F0 EA 14 71 54 2D 1A [14:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 72 DE 47 00 97 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 35 39 10 04 04 00 A0 88 02 00 F4 03 04 00 E5 08 16 67 B6 04 01 00 00 DA B3 85 AC 30 F6 67 F2 [14:17:11]CommunicateWithHost err = 0 [14:17:11]CheckOFDResponse [14:17:11]1017 (14) - 77093643461234 [14:17:11]1041 (16) - 0000000000871759 [14:17:11]1040 (4) - 166048 [14:17:11]1012 (4) - 21.10.2024 07:55 [14:17:11]1206 (1) - 0 [14:17:11]OFD Sender: Remove packet 166048 [14:17:11]ProducePacketName [14:17:11]name=ofd_packets/00166048 [14:17:11]NVStorageDeleteData [14:17:11]Write to MH i2c: 01 00 00 01 58 59 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: 01 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: 01 07 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: 01 07 00 01 58 00 00 00 00 00 CB 0C 37 [14:17:11]RasterBufferAndPrint [14:17:11]line [14:17:11]line [14:17:11]line [14:17:11]line [14:17:11]line [14:17:11]written 0, free lines is 3281 [14:17:11]MH_Cut [14:17:11]Write to MH i2c: D1 01 00 08 58 01 32 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: D1 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: D1 01 00 [14:17:11]MH_I2C_Read... [14:17:11]Read from MH i2c: D1 01 00 08 58 00 31 [14:17:11]Write to MH i2c: 01 00 00 09 58 61 [14:17:11]Write i2c OK [14:17:11]MH_I2C_Read... [14:17:11]OFD Sender: No OFD packet to send [14:17:11]*** Cut start [14:17:11]*** Partial cut [14:17:11]*** CUTSNS_PIN = 1 [14:17:11]*** CUTSNS_PIN = 0 [14:17:12]*** Brake cut motor [14:17:12]Read from MH i2c: 01 [14:17:12]MH_I2C_Read... [14:17:12]*** Stop cut motor [14:17:12]*** Cut end [14:17:12]Read from MH i2c: 01 07 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: 01 07 00 09 58 00 00 00 00 00 FF 0F 76 [14:17:12]process_action close_receipt done [14:17:12]requested_data is exist [14:17:12]produce_requested_data [14:17:12]requested_item fm.sn is exist - process it [14:17:12]wFMCommunicate request_size=4 [14:17:12]MH_SAM_APDU [14:17:12]CAPDU: 80 11 00 00 [14:17:12]Write to MH i2c: E2 08 00 0A 58 80 11 00 00 00 00 00 00 DC [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:12]Read from MH i2c: E2 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 17 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 17 00 0A 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [14:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:17:12]wFMCommunicate OK [14:17:12]requested_item fd.num is exist - process it [14:17:12]SAM_PROTO_GetFieldsCounters [14:17:12]wFMCommunicate request_size=4 [14:17:12]MH_SAM_APDU [14:17:12]CAPDU: 80 13 00 00 [14:17:12]Write to MH i2c: E2 08 00 0B 58 80 13 00 00 00 00 00 00 DF [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:12]Read from MH i2c: E2 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 62 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 62 00 0B 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [14:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:12]wFMCommunicate OK [14:17:12]SAM_PROTO_GetFieldsCounters done [14:17:12]requested_item shift.num is exist - process it [14:17:12]requested_item shift.opened is exist - process it [14:17:12]req_shift_opened [14:17:12]FM_GetShiftState [14:17:12]SAM_PROTO_GetShiftState [14:17:12]wFMCommunicate request_size=4 [14:17:12]MH_SAM_APDU [14:17:12]CAPDU: 80 13 01 00 [14:17:12]Write to MH i2c: E2 08 00 0C 58 80 13 01 00 00 00 00 00 E1 [14:17:12]Write i2c OK [14:17:12]MH_I2C_Read... [14:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:12]Read from MH i2c: E2 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 0E 00 [14:17:12]MH_I2C_Read... [14:17:12]Read from MH i2c: E2 0E 00 0C 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EA [14:17:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:17:12]wFMCommunicate OK [14:17:12]SAM_PROTO_GetShiftState done [14:17:12]FM_GetShiftState done [14:17:12]req_shift_opened done [14:17:12]requested_item shift.open_date is exist - process it [14:17:12]req_shift_open_date [14:17:12]req_shift_open_date done [14:17:12]produce_requested_data done [14:17:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166048,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:17:12]process_action_free close_receipt [14:17:12]json_value_free [14:17:12]json_value_free done [14:17:12]process_json_proto returns [14:17:12]Send response to host [14:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166048,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:17:12]free response buf [14:17:12]execute_script done [14:17:12]execute_script returns [14:17:12]free content buf [14:17:12]Sock 6.Close socket [14:17:12]Sock 6.Thread stoped [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:22]accept exits with 5 [14:18:22]New connection [14:18:22]New thread 3066776932 created [14:18:22]Thread 3066920292 joined [14:18:22]Waiting for new connection... [14:18:22] Sock 5.Parse request [14:18:22]Sock 5.Check first char [14:18:22]Sock 5.First char is OK [14:18:22]request: POST /json_proto HTTP/1.0 [14:18:22]Method: POST [14:18:22]URL: /json_proto [14:18:22]Method is POST - this is cgi request [14:18:22]url: /json_proto [14:18:22]query_string will be loaded in cgi processing [14:18:22]execute_cgi json_proto POST (null) [14:18:22]execute_cgi path=json_proto method=POST [14:18:22]POST find Content-Length [14:18:22]Host: 172.17.53.195:8080 [14:18:22]Content-Length: 677 [14:18:22]Content-Type: application/json [14:18:22] [14:18:22]POST finish read [14:18:22]Found Content-Length = 677 [14:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:22]execute_script... [14:18:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:22]POST & json_proto [14:18:22]process_json_proto [14:18:22]json parsed OK: [14:18:22]protocol is kg_v1.0 [14:18:22]action value=close_receipt [14:18:22]process_action close_receipt [14:18:22]cmd_close_receipt [14:18:22]MH_GetDate [14:18:22]Write to MH i2c: F0 00 00 0D 58 54 [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: F0 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: F0 09 00 [14:18:22]MH_I2C_Read... [14:18:22]Read from MH i2c: F0 09 00 0D 58 00 C1 62 16 67 21 48 4A 65 15 [14:18:22]GetLastDocTimeStamp 1729520247 [14:18:22]current date 1729520321 [14:18:22]FM_GetShiftState [14:18:22]SAM_PROTO_GetShiftState [14:18:22]wFMCommunicate request_size=4 [14:18:22]MH_SAM_APDU [14:18:22]CAPDU: 80 13 01 00 [14:18:22]Write to MH i2c: E2 08 00 0E 58 80 13 01 00 00 00 00 00 E3 [14:18:22]Write i2c OK [14:18:22]MH_I2C_Read... [14:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:23]Read from MH i2c: E2 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: E2 0E 00 [14:18:23]MH_I2C_Read... [14:18:23]Read from MH i2c: E2 0E 00 0E 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EC [14:18:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:18:23]wFMCommunicate OK [14:18:23]SAM_PROTO_GetShiftState done [14:18:23]FM_GetShiftState done [14:18:23]opened in 1729470944 [14:18:23]opened+sec_in_day 1729557344 [14:18:23]quantity*price = 20003 [14:18:23]sum+1 = 20004 [14:18:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 160 21.10.2024 14:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166049 ФПД: 8165770808467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166049&fm=8165770808467&tin=02508201610067®Number=0000000000091764&sum=20000 [14:18:24]StoreToDocumentArchive [14:18:24]shift 535 fd 166049 [14:18:24]save to /storage/0535/doc_00166049 [14:18:24]save last doc name /storage/0535/doc_00166049 to /storage/kkm_last_doc_name [14:18:24]save OK [14:18:24]Clear old archive folders... [14:18:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:24]tlvbuf is 015BD230 [14:18:24]SAM_PROTO_ClearQueue [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 09 00 00 [14:18:24]Write to MH i2c: E2 08 00 1B 58 80 09 00 00 00 00 00 00 E5 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 1B 58 00 90 00 E7 [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]SAM_PROTO_ClearQueue done [14:18:24]KKMCreateOFDPacket [14:18:24]OFDProtocolAddRootSTLVToBuf [14:18:24]FM_MakeSignedData [14:18:24]FM_MakeSignedData [14:18:24]SAM_PROTO_SignData [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 0D 01 02 [14:18:24]Write to MH i2c: E2 08 00 1C 58 80 0D 01 02 00 00 00 00 ED [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 1C 58 00 90 00 E8 [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]wFMCommunicate request_size=255 [14:18:24]MH_SAM_APDU [14:18: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C1 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 88 02 00 35 04 06 00 07 [14:18:24]Write to MH i2c: E2 02 01 1D 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C1 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 88 02 00 35 04 06 00 07 00 00 D0 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 1D 58 00 90 00 E9 [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]wFMCommunicate request_size=10 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 0D 02 02 05 6D 3D DE 4C 93 [14:18:24]Write to MH i2c: E2 0D 00 1E 58 80 0D 02 02 05 00 6D 3D DE 4C 93 00 00 61 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 03 00 1E 58 00 90 00 EA [14:18:24]RAPDU: 90 00 [14:18:24]wFMCommunicate OK [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 0D 03 02 [14:18:24]Write to MH i2c: E2 08 00 1F 58 80 0D 03 02 00 00 00 00 F2 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 0B 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 0B 00 1F 58 00 44 58 A8 1D A3 DB C1 83 90 00 16 [14:18:24]RAPDU: 44 58 A8 1D A3 DB C1 83 90 00 [14:18:24]wFMCommunicate OK [14:18:24]SAM_PROTO_SignData done [14:18:24]FM_MakeSignedData done [14:18:24]CreateOFDProtocolMessage [14:18:24]wFMCommunicate request_size=4 [14:18:24]MH_SAM_APDU [14:18:24]CAPDU: 80 11 00 00 [14:18:24]Write to MH i2c: E2 08 00 20 58 80 11 00 00 00 00 00 00 F2 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:24]Read from MH i2c: E2 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 17 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: E2 17 00 20 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [14:18:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:18:24]wFMCommunicate OK [14:18:24]CreateOFDProtocolMessage done [14:18:24]OFDSenderStorePacket 166049 [14:18:24]StoreOFDPacket docnum=166049 [14:18:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D 5F 07 01 B0 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C1 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 88 02 00 35 04 06 00 07 6D 3D DE 4C 93 44 58 A8 1D A3 DB C1 83 [14:18:24]CheckFolder [14:18:24]dirname=/storage/ofd_packets [14:18:24]CheckFolder done [14:18:24]ProducePacketName [14:18:24]name=ofd_packets/00166049 [14:18:24]NVStorageSaveData ofd_packets/00166049 [14:18:24]File name is /storage/ofd_packets/00166049 [14:18:24]Write 301 bytes [14:18:24]NVStorageSaveData done [14:18:24]OFDSenderStorePacket done [14:18:24]KKMCreateOFDPacket done [14:18:24]NVStorageSaveData kkm_last_timestamp [14:18:24]File name is /storage/kkm_last_timestamp [14:18:24]Write 4 bytes [14:18:24]NVStorageSaveData done [14:18:24]ExternCall_PrintAddStr [14:18:24]wPrintStart [14:18:24]Write to MH i2c: 01 00 00 21 58 79 [14:18:24]Write i2c OK [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: 01 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: 01 07 00 [14:18:24]MH_I2C_Read... [14:18:24]Read from MH i2c: 01 07 00 21 58 00 00 00 00 00 FF 0F 8E [14:18:24]RasterBufferAndPrint [14:18:24]line Счет N : (1)220621 [14:18:24]line ИНН: 02508201610067 [14:18:24]line Контрольно-Кассовый Чек [14:18:24]line ПРОДАЖА [14:18:24]line ТРК (МРК, ГНК) : 13 [14:18:24]line Товар: 2710124130 [14:18:24]line Аи-92-К-5 [14:18:24]line 2.990 * 66.90 [14:18:24]line = 200.03 [14:18:24]line НДС 12% НСП 1% [14:18:24]line > о реализуемом товаре [14:18:24]line ОКРУГЛЕНИЕ: -0.03 [14:18:24]line ИТОГО: 200.00 [14:18:24]line Внесено: 200.00 [14:18:24]line СДАЧА: 0.00 [14:18:24]line НСП 1% : 1.77 [14:18:24]line НДС 12% : 21.24 [14:18:24]line Наличными: 200.00 [14:18:24]line Безнал.: 0.00 [14:18:24]line Место: АЗС № 161 "Партнер Нефть" [14:18:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:18:24]line СНО: Общий режим [14:18:24]line Чек 160 21.10.2024 14:18 [14:18:24]line Смена: 535 ФФД: 1.0 [14:18:24]line ЗНМ: 0300000104 [14:18:24]line РНМ: 0000000000091764 [14:18:24]line Версия ККМ: 001 [14:18:24]line ФМ: 0000000000871759 [14:18:24]line ФД: 166049 [14:18:24]line ФПД: 8165770808467 [14:18:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T141841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166049&fm=8165770808467&tin=02508201610067®Number=0000000000091764&sum=20000 [14:18:25]OFD Sender: Processing packet 166049 [packets to send 48, broken 47] [14:18:25]ProducePacketName [14:18:25]name=ofd_packets/00166049 [14:18:25]OFD Sender: To server: pG, [14:18:25]CommunicateWithHost lk.salyk.kg:30040 [14:18:25]ConnectInit lk.salyk.kg [14:18:25]written 0, free lines is 4095 [14:18:25]Connected sock=7 [14:18:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D 5F 07 01 B0 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 C1 62 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 88 02 00 35 04 06 00 07 6D 3D DE 4C 93 44 58 A8 1D A3 DB C1 83 [14:18:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B7 3A 47 00 94 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A1 88 02 00 F4 03 04 00 2F 09 16 67 B6 04 01 00 00 B0 0A 76 A7 71 65 1A 2F [14:18:25]CommunicateWithHost err = 0 [14:18:25]CheckOFDResponse [14:18:25]1017 (14) - 77093643461234 [14:18:25]1041 (16) - 0000000000871759 [14:18:25]1040 (4) - 166049 [14:18:25]1012 (4) - 21.10.2024 07:56 [14:18:25]1206 (1) - 0 [14:18:25]OFD Sender: Remove packet 166049 [14:18:25]ProducePacketName [14:18:25]name=ofd_packets/00166049 [14:18:25]NVStorageDeleteData [14:18:25]Write to MH i2c: 01 00 00 4C 58 A4 [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: 01 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: 01 07 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: 01 07 00 4C 58 00 00 00 00 00 CD 0C 84 [14:18:25]RasterBufferAndPrint [14:18:25]line [14:18:25]line [14:18:25]line [14:18:25]line [14:18:25]line [14:18:25]written 0, free lines is 3281 [14:18:25]MH_Cut [14:18:25]Write to MH i2c: D1 01 00 53 58 01 7D [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: D1 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: D1 01 00 [14:18:25]MH_I2C_Read... [14:18:25]Read from MH i2c: D1 01 00 53 58 00 7C [14:18:25]Write to MH i2c: 01 00 00 54 58 AC [14:18:25]Write i2c OK [14:18:25]MH_I2C_Read... [14:18:25]OFD Sender: No OFD packet to send [14:18:26]*** Cut start [14:18:26]*** Partial cut [14:18:26]*** CUTSNS_PIN = 1 [14:18:26]*** CUTSNS_PIN = 0 [14:18:26]*** Brake cut motor [14:18:26]Read from MH i2c: 01 [14:18:26]MH_I2C_Read... [14:18:26]*** Stop cut motor [14:18:26]*** Cut end [14:18:26]Read from MH i2c: 01 07 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: 01 07 00 54 58 00 00 00 00 00 FF 0F C1 [14:18:26]process_action close_receipt done [14:18:26]requested_data is exist [14:18:26]produce_requested_data [14:18:26]requested_item fm.sn is exist - process it [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 11 00 00 [14:18:26]Write to MH i2c: E2 08 00 55 58 80 11 00 00 00 00 00 00 27 [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:26]Read from MH i2c: E2 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 17 00 [14:18:26]MH_I2C_Read... [14:18:26]Read from MH i2c: E2 17 00 55 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [14:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:18:26]wFMCommunicate OK [14:18:26]requested_item fd.num is exist - process it [14:18:26]SAM_PROTO_GetFieldsCounters [14:18:26]wFMCommunicate request_size=4 [14:18:26]MH_SAM_APDU [14:18:26]CAPDU: 80 13 00 00 [14:18:26]Write to MH i2c: E2 08 00 56 58 80 13 00 00 00 00 00 00 2A [14:18:26]Write i2c OK [14:18:26]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 62 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 62 00 56 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [14:18:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_GetFieldsCounters done [14:18:27]requested_item shift.num is exist - process it [14:18:27]requested_item shift.opened is exist - process it [14:18:27]req_shift_opened [14:18:27]FM_GetShiftState [14:18:27]SAM_PROTO_GetShiftState [14:18:27]wFMCommunicate request_size=4 [14:18:27]MH_SAM_APDU [14:18:27]CAPDU: 80 13 01 00 [14:18:27]Write to MH i2c: E2 08 00 57 58 80 13 01 00 00 00 00 00 2C [14:18:27]Write i2c OK [14:18:27]MH_I2C_Read... [14:18:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:27]Read from MH i2c: E2 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0E 00 [14:18:27]MH_I2C_Read... [14:18:27]Read from MH i2c: E2 0E 00 57 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 35 [14:18:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:18:27]wFMCommunicate OK [14:18:27]SAM_PROTO_GetShiftState done [14:18:27]FM_GetShiftState done [14:18:27]req_shift_opened done [14:18:27]requested_item shift.open_date is exist - process it [14:18:27]req_shift_open_date [14:18:27]req_shift_open_date done [14:18:27]produce_requested_data done [14:18:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166049,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:18:27]process_action_free close_receipt [14:18:27]json_value_free [14:18:27]json_value_free done [14:18:27]process_json_proto returns [14:18:27]Send response to host [14:18:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166049,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:18:27]free response buf [14:18:27]execute_script done [14:18:27]execute_script returns [14:18:27]free content buf [14:18:27]Sock 5.Close socket [14:18:27]Sock 5.Thread stoped [14:18:30]OFD Sender: No OFD packet to send [14:18:35]OFD Sender: No OFD packet to send [14:18:40]OFD Sender: No OFD packet to send [14:18:45]OFD Sender: No OFD packet to send [14:18:50]OFD Sender: No OFD packet to send [14:18:55]OFD Sender: No OFD packet to send [14:19:00]OFD Sender: No OFD packet to send [14:19:05]OFD Sender: No OFD packet to send [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:42]accept exits with 6 [14:20:42]New connection [14:20:42]New thread 3066920292 created [14:20:42]Thread 3066776932 joined [14:20:42]Waiting for new connection... [14:20:42] Sock 6.Parse request [14:20:42]Sock 6.Check first char [14:20:42]Sock 6.First char is OK [14:20:42]request: POST /json_proto HTTP/1.0 [14:20:42]Method: POST [14:20:42]URL: /json_proto [14:20:42]Method is POST - this is cgi request [14:20:42]url: /json_proto [14:20:42]query_string will be loaded in cgi processing [14:20:42]execute_cgi json_proto POST (null) [14:20:42]execute_cgi path=json_proto method=POST [14:20:42]POST find Content-Length [14:20:42]Host: 172.17.53.195:8080 [14:20:42]Content-Length: 677 [14:20:42]Content-Type: application/json [14:20:42] [14:20:42]POST finish read [14:20:42]Found Content-Length = 677 [14:20:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [14:20:42]execute_script... [14:20:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "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" ] } } [14:20:42]POST & json_proto [14:20:42]process_json_proto [14:20:42]json parsed OK: [14:20:42]protocol is kg_v1.0 [14:20:42]action value=close_receipt [14:20:42]process_action close_receipt [14:20:42]cmd_close_receipt [14:20:42]MH_GetDate [14:20:42]Write to MH i2c: F0 00 00 58 58 9F [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: F0 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: F0 09 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: F0 09 00 58 58 00 4D 63 16 67 21 48 4A 65 ED [14:20:42]GetLastDocTimeStamp 1729520321 [14:20:42]current date 1729520461 [14:20:42]FM_GetShiftState [14:20:42]SAM_PROTO_GetShiftState [14:20:42]wFMCommunicate request_size=4 [14:20:42]MH_SAM_APDU [14:20:42]CAPDU: 80 13 01 00 [14:20:42]Write to MH i2c: E2 08 00 59 58 80 13 01 00 00 00 00 00 2E [14:20:42]Write i2c OK [14:20:42]MH_I2C_Read... [14:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:42]Read from MH i2c: E2 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 0E 00 [14:20:42]MH_I2C_Read... [14:20:42]Read from MH i2c: E2 0E 00 59 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 37 [14:20:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:20:42]wFMCommunicate OK [14:20:42]SAM_PROTO_GetShiftState done [14:20:42]FM_GetShiftState done [14:20:42]opened in 1729470944 [14:20:42]opened+sec_in_day 1729557344 [14:20:42]quantity*price = 26024 [14:20:42]sum+1 = 26025 [14:20:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 161 21.10.2024 14:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166050 ФПД: 270806627650883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142101&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166050&fm=270806627650883&tin=02508201610067®Number=0000000000091764&sum=26000 [14:20:43]StoreToDocumentArchive [14:20:43]shift 535 fd 166050 [14:20:43]save to /storage/0535/doc_00166050 [14:20:43]save last doc name /storage/0535/doc_00166050 to /storage/kkm_last_doc_name [14:20:43]save OK [14:20:43]Clear old archive folders... [14:20:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:20:43]tlvbuf is 014FED60 [14:20:43]SAM_PROTO_ClearQueue [14:20:43]wFMCommunicate request_size=4 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 09 00 00 [14:20:43]Write to MH i2c: E2 08 00 66 58 80 09 00 00 00 00 00 00 30 [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 66 58 00 90 00 32 [14:20:43]RAPDU: 90 00 [14:20:43]wFMCommunicate OK [14:20:43]SAM_PROTO_ClearQueue done [14:20:43]KKMCreateOFDPacket [14:20:43]OFDProtocolAddRootSTLVToBuf [14:20:43]FM_MakeSignedData [14:20:43]FM_MakeSignedData [14:20:43]SAM_PROTO_SignData [14:20:43]wFMCommunicate request_size=4 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 0D 01 02 [14:20:43]Write to MH i2c: E2 08 00 67 58 80 0D 01 02 00 00 00 00 38 [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 67 58 00 90 00 33 [14:20:43]RAPDU: 90 00 [14:20:43]wFMCommunicate OK [14:20:43]wFMCommunicate request_size=255 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A1 00 00 00 F4 03 04 00 4D 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 88 02 00 35 04 06 00 F6 [14:20:43]Write to MH i2c: E2 02 01 68 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A1 00 00 00 F4 03 04 00 4D 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 88 02 00 35 04 06 00 F6 00 00 82 [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:43]Read from MH i2c: E2 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 [14:20:43]MH_I2C_Read... [14:20:43]Read from MH i2c: E2 03 00 68 58 00 90 00 34 [14:20:43]RAPDU: 90 00 [14:20:43]wFMCommunicate OK [14:20:43]wFMCommunicate request_size=10 [14:20:43]MH_SAM_APDU [14:20:43]CAPDU: 80 0D 02 02 05 4C 14 D8 0D 43 [14:20:43]Write to MH i2c: E2 0D 00 69 58 80 0D 02 02 05 00 4C 14 D8 0D 43 00 00 CD [14:20:43]Write i2c OK [14:20:43]MH_I2C_Read... [14:20:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:44]Read from MH i2c: E2 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 03 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 03 00 69 58 00 90 00 35 [14:20:44]RAPDU: 90 00 [14:20:44]wFMCommunicate OK [14:20:44]wFMCommunicate request_size=4 [14:20:44]MH_SAM_APDU [14:20:44]CAPDU: 80 0D 03 02 [14:20:44]Write to MH i2c: E2 08 00 6A 58 80 0D 03 02 00 00 00 00 3D [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:44]Read from MH i2c: E2 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 0B 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 0B 00 6A 58 00 7A 27 10 08 B8 DF CA 49 90 00 A1 [14:20:44]RAPDU: 7A 27 10 08 B8 DF CA 49 90 00 [14:20:44]wFMCommunicate OK [14:20:44]SAM_PROTO_SignData done [14:20:44]FM_MakeSignedData done [14:20:44]CreateOFDProtocolMessage [14:20:44]wFMCommunicate request_size=4 [14:20:44]MH_SAM_APDU [14:20:44]CAPDU: 80 11 00 00 [14:20:44]Write to MH i2c: E2 08 00 6B 58 80 11 00 00 00 00 00 00 3D [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:44]Read from MH i2c: E2 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 17 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: E2 17 00 6B 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [14:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:20:44]wFMCommunicate OK [14:20:44]CreateOFDProtocolMessage done [14:20:44]OFDSenderStorePacket 166050 [14:20:44]StoreOFDPacket docnum=166050 [14:20:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E5 F8 07 01 8C 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A1 00 00 00 F4 03 04 00 4D 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 88 02 00 35 04 06 00 F6 4C 14 D8 0D 43 7A 27 10 08 B8 DF CA 49 [14:20:44]CheckFolder [14:20:44]dirname=/storage/ofd_packets [14:20:44]CheckFolder done [14:20:44]ProducePacketName [14:20:44]name=ofd_packets/00166050 [14:20:44]NVStorageSaveData ofd_packets/00166050 [14:20:44]File name is /storage/ofd_packets/00166050 [14:20:44]Write 301 bytes [14:20:44]NVStorageSaveData done [14:20:44]OFDSenderStorePacket done [14:20:44]KKMCreateOFDPacket done [14:20:44]NVStorageSaveData kkm_last_timestamp [14:20:44]File name is /storage/kkm_last_timestamp [14:20:44]Write 4 bytes [14:20:44]NVStorageSaveData done [14:20:44]ExternCall_PrintAddStr [14:20:44]wPrintStart [14:20:44]Write to MH i2c: 01 00 00 6C 58 C4 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 6C 58 00 00 00 00 00 FF 0F D9 [14:20:44]RasterBufferAndPrint [14:20:44]line Счет N : (1)220622 [14:20:44]line ИНН: 02508201610067 [14:20:44]line Контрольно-Кассовый Чек [14:20:44]line ПРОДАЖА [14:20:44]line ТРК (МРК, ГНК) : 33 [14:20:44]line Товар: 2710124130 [14:20:44]line Аи-92-К-5 [14:20:44]line 3.890 * 66.90 [14:20:44]line = 260.24 [14:20:44]line НДС 12% НСП 1% [14:20:44]line > о реализуемом товаре [14:20:44]line ОКРУГЛЕНИЕ: -0.24 [14:20:44]line ИТОГО: 260.00 [14:20:44]line Внесено: 260.00 [14:20:44]line СДАЧА: 0.00 [14:20:44]line НСП 1% : 2.30 [14:20:44]line НДС 12% : 27.64 [14:20:44]line Наличными: 260.00 [14:20:44]line Безнал.: 0.00 [14:20:44]line Место: АЗС № 161 "Партнер Нефть" [14:20:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:20:44]line СНО: Общий режим [14:20:44]line Чек 161 21.10.2024 14:21 [14:20:44]line Смена: 535 ФФД: 1.0 [14:20:44]line ЗНМ: 0300000104 [14:20:44]line РНМ: 0000000000091764 [14:20:44]line Версия ККМ: 001 [14:20:44]line ФМ: 0000000000871759 [14:20:44]line ФД: 166050 [14:20:44]line ФПД: 270806627650883 [14:20:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142101&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166050&fm=270806627650883&tin=02508201610067®Number=0000000000091764&sum=26000 [14:20:44]OFD Sender: Processing packet 166050 [packets to send 48, broken 47] [14:20:44]ProducePacketName [14:20:44]name=ofd_packets/00166050 [14:20:44]OFD Sender: To server: pG, [14:20:44]CommunicateWithHost lk.salyk.kg:30040 [14:20:44]ConnectInit lk.salyk.kg [14:20:44]written 0, free lines is 4095 [14:20:44]Connected sock=7 [14:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E5 F8 07 01 8C 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 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 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 CC 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 A1 00 00 00 F4 03 04 00 4D 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 88 02 00 35 04 06 00 F6 4C 14 D8 0D 43 7A 27 10 08 B8 DF CA 49 [14:20:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 43 0B 47 00 01 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A2 88 02 00 F4 03 04 00 BB 09 16 67 B6 04 01 00 00 DD 69 6D 8A 91 07 DA D1 [14:20:44]CommunicateWithHost err = 0 [14:20:44]CheckOFDResponse [14:20:44]1017 (14) - 77093643461234 [14:20:44]1041 (16) - 0000000000871759 [14:20:44]1040 (4) - 166050 [14:20:44]1012 (4) - 21.10.2024 07:58 [14:20:44]1206 (1) - 0 [14:20:44]OFD Sender: Remove packet 166050 [14:20:44]ProducePacketName [14:20:44]name=ofd_packets/00166050 [14:20:44]NVStorageDeleteData [14:20:44]Write to MH i2c: 01 00 00 97 58 EF [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: 01 07 00 97 58 00 00 00 00 00 D6 0C D8 [14:20:44]RasterBufferAndPrint [14:20:44]line [14:20:44]line [14:20:44]line [14:20:44]line [14:20:44]line [14:20:44]written 0, free lines is 3294 [14:20:44]MH_Cut [14:20:44]Write to MH i2c: D1 01 00 9E 58 01 C8 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: D1 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: D1 01 00 [14:20:44]MH_I2C_Read... [14:20:44]Read from MH i2c: D1 01 00 9E 58 00 C7 [14:20:44]Write to MH i2c: 01 00 00 9F 58 F7 [14:20:44]Write i2c OK [14:20:44]MH_I2C_Read... [14:20:45]OFD Sender: No OFD packet to send [14:20:45]*** Cut start [14:20:45]*** Partial cut [14:20:45]*** CUTSNS_PIN = 1 [14:20:45]*** CUTSNS_PIN = 0 [14:20:45]*** Brake cut motor [14:20:46]Read from MH i2c: 01 [14:20:46]MH_I2C_Read... [14:20:46]*** Stop cut motor [14:20:46]*** Cut end [14:20:46]Read from MH i2c: 01 07 00 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: 01 07 00 9F 58 00 00 00 00 00 FF 0F 0C [14:20:46]process_action close_receipt done [14:20:46]requested_data is exist [14:20:46]produce_requested_data [14:20:46]requested_item fm.sn is exist - process it [14:20:46]wFMCommunicate request_size=4 [14:20:46]MH_SAM_APDU [14:20:46]CAPDU: 80 11 00 00 [14:20:46]Write to MH i2c: E2 08 00 A0 58 80 11 00 00 00 00 00 00 72 [14:20:46]Write i2c OK [14:20:46]MH_I2C_Read... [14:20:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:46]Read from MH i2c: E2 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: E2 17 00 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: E2 17 00 A0 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [14:20:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:20:46]wFMCommunicate OK [14:20:46]requested_item fd.num is exist - process it [14:20:46]SAM_PROTO_GetFieldsCounters [14:20:46]wFMCommunicate request_size=4 [14:20:46]MH_SAM_APDU [14:20:46]CAPDU: 80 13 00 00 [14:20:46]Write to MH i2c: E2 08 00 A1 58 80 13 00 00 00 00 00 00 75 [14:20:46]Write i2c OK [14:20:46]MH_I2C_Read... [14:20:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:46]Read from MH i2c: E2 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: E2 62 00 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: E2 62 00 A1 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [14:20:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:46]wFMCommunicate OK [14:20:46]SAM_PROTO_GetFieldsCounters done [14:20:46]requested_item shift.num is exist - process it [14:20:46]requested_item shift.opened is exist - process it [14:20:46]req_shift_opened [14:20:46]FM_GetShiftState [14:20:46]SAM_PROTO_GetShiftState [14:20:46]wFMCommunicate request_size=4 [14:20:46]MH_SAM_APDU [14:20:46]CAPDU: 80 13 01 00 [14:20:46]Write to MH i2c: E2 08 00 A2 58 80 13 01 00 00 00 00 00 77 [14:20:46]Write i2c OK [14:20:46]MH_I2C_Read... [14:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:46]Read from MH i2c: E2 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: E2 0E 00 [14:20:46]MH_I2C_Read... [14:20:46]Read from MH i2c: E2 0E 00 A2 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 80 [14:20:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:20:46]wFMCommunicate OK [14:20:46]SAM_PROTO_GetShiftState done [14:20:46]FM_GetShiftState done [14:20:46]req_shift_opened done [14:20:46]requested_item shift.open_date is exist - process it [14:20:46]req_shift_open_date [14:20:46]req_shift_open_date done [14:20:46]produce_requested_data done [14:20:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166050,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:20:46]process_action_free close_receipt [14:20:46]json_value_free [14:20:46]json_value_free done [14:20:46]process_json_proto returns [14:20:46]Send response to host [14:20:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166050,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:20:46]free response buf [14:20:46]execute_script done [14:20:46]execute_script returns [14:20:46]free content buf [14:20:46]Sock 6.Close socket [14:20:46]Sock 6.Thread stoped [14:20:48]accept exits with 5 [14:20:48]New connection [14:20:48]New thread 3066776932 created [14:20:48]Thread 3066920292 joined [14:20:48]Waiting for new connection... [14:20:48] Sock 5.Parse request [14:20:48]Sock 5.Check first char [14:20:48]Sock 5.First char is OK [14:20:48]request: POST /json_proto HTTP/1.0 [14:20:48]Method: POST [14:20:48]URL: /json_proto [14:20:48]Method is POST - this is cgi request [14:20:48]url: /json_proto [14:20:48]query_string will be loaded in cgi processing [14:20:48]execute_cgi json_proto POST (null) [14:20:48]execute_cgi path=json_proto method=POST [14:20:48]POST find Content-Length [14:20:48]Host: 172.17.53.195:8080 [14:20:48]Content-Length: 679 [14:20:48]Content-Type: application/json [14:20:48] [14:20:48]POST finish read [14:20:48]Found Content-Length = 679 [14:20:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 60.370, "sum" : 4600.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4600.00, "total" : 4600.00, "payments": [ { "type": 0, "sum" : 4600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:48]execute_script... [14:20: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)220620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 60.370, "sum" : 4600.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4600.00, "total" : 4600.00, "payments": [ { "type": 0, "sum" : 4600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:48]POST & json_proto [14:20:48]process_json_proto [14:20:48]json parsed OK: [14:20:48]protocol is kg_v1.0 [14:20:48]action value=close_receipt [14:20:48]process_action close_receipt [14:20:48]cmd_close_receipt [14:20:48]MH_GetDate [14:20:48]Write to MH i2c: F0 00 00 A3 58 EA [14:20:48]Write i2c OK [14:20:48]MH_I2C_Read... [14:20:48]Read from MH i2c: F0 [14:20:48]MH_I2C_Read... [14:20:48]Read from MH i2c: F0 09 00 [14:20:48]MH_I2C_Read... [14:20:48]Read from MH i2c: F0 09 00 A3 58 00 52 63 16 67 21 48 4A 65 3D [14:20:48]GetLastDocTimeStamp 1729520461 [14:20:48]current date 1729520466 [14:20:48]FM_GetShiftState [14:20:48]SAM_PROTO_GetShiftState [14:20:48]wFMCommunicate request_size=4 [14:20:48]MH_SAM_APDU [14:20:48]CAPDU: 80 13 01 00 [14:20:48]Write to MH i2c: E2 08 00 A4 58 80 13 01 00 00 00 00 00 79 [14:20:48]Write i2c OK [14:20:48]MH_I2C_Read... [14:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:48]Read from MH i2c: E2 [14:20:48]MH_I2C_Read... [14:20:48]Read from MH i2c: E2 0E 00 [14:20:48]MH_I2C_Read... [14:20:48]Read from MH i2c: E2 0E 00 A4 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 82 [14:20:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:20:48]wFMCommunicate OK [14:20:48]SAM_PROTO_GetShiftState done [14:20:48]FM_GetShiftState done [14:20:48]opened in 1729470944 [14:20:48]opened+sec_in_day 1729557344 [14:20:48]quantity*price = 460019 [14:20:48]sum+1 = 460020 [14:20:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 4600.00 Внесено: 4600.00 СДАЧА: 0.00 НСП 1% : 40.71 НДС 12% : 488.52 Наличными: 4600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 162 21.10.2024 14:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166051 ФПД: 153075386903281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142106&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166051&fm=153075386903281&tin=02508201610067®Number=0000000000091764&sum=460000 [14:20:49]StoreToDocumentArchive [14:20:49]shift 535 fd 166051 [14:20:49]save to /storage/0535/doc_00166051 [14:20:49]save last doc name /storage/0535/doc_00166051 to /storage/kkm_last_doc_name [14:20:49]save OK [14:20:49]Clear old archive folders... [14:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:20:49]tlvbuf is 01697740 [14:20:49]SAM_PROTO_ClearQueue [14:20:49]wFMCommunicate request_size=4 [14:20:49]MH_SAM_APDU [14:20:49]CAPDU: 80 09 00 00 [14:20:49]Write to MH i2c: E2 08 00 B1 58 80 09 00 00 00 00 00 00 7B [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:49]Read from MH i2c: E2 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 B1 58 00 90 00 7D [14:20:49]RAPDU: 90 00 [14:20:49]wFMCommunicate OK [14:20:49]SAM_PROTO_ClearQueue done [14:20:49]KKMCreateOFDPacket [14:20:49]OFDProtocolAddRootSTLVToBuf [14:20:49]FM_MakeSignedData [14:20:49]FM_MakeSignedData [14:20:49]SAM_PROTO_SignData [14:20:49]wFMCommunicate request_size=4 [14:20:49]MH_SAM_APDU [14:20:49]CAPDU: 80 0D 01 02 [14:20:49]Write to MH i2c: E2 08 00 B2 58 80 0D 01 02 00 00 00 00 83 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:49]Read from MH i2c: E2 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 B2 58 00 90 00 7E [14:20:49]RAPDU: 90 00 [14:20:49]wFMCommunicate OK [14:20:49]wFMCommunicate request_size=255 [14:20:49]MH_SAM_APDU [14:20:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 EB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F3 04 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 BE 00 00 00 00 07 04 06 00 E0 04 07 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 52 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 88 02 00 35 04 06 00 8B 38 A4 0F [14:20:49]Write to MH i2c: E2 02 01 B3 58 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 EB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F3 04 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 BE 00 00 00 00 07 04 06 00 E0 04 07 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 52 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 88 02 00 35 04 06 00 8B 38 A4 0F 00 00 71 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:49]Read from MH i2c: E2 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 B3 58 00 90 00 7F [14:20:49]RAPDU: 90 00 [14:20:49]wFMCommunicate OK [14:20:49]wFMCommunicate request_size=7 [14:20:49]MH_SAM_APDU [14:20:49]CAPDU: 80 0D 02 02 02 6A F1 [14:20:49]Write to MH i2c: E2 0A 00 B4 58 80 0D 02 02 02 00 6A F1 00 00 E5 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:49]Read from MH i2c: E2 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 [14:20:49]MH_I2C_Read... [14:20:49]Read from MH i2c: E2 03 00 B4 58 00 90 00 80 [14:20:49]RAPDU: 90 00 [14:20:49]wFMCommunicate OK [14:20:49]wFMCommunicate request_size=4 [14:20:49]MH_SAM_APDU [14:20:49]CAPDU: 80 0D 03 02 [14:20:49]Write to MH i2c: E2 08 00 B5 58 80 0D 03 02 00 00 00 00 88 [14:20:49]Write i2c OK [14:20:49]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0B 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 0B 00 B5 58 00 F9 A7 FE 81 D1 B0 88 AF 90 00 60 [14:20:50]RAPDU: F9 A7 FE 81 D1 B0 88 AF 90 00 [14:20:50]wFMCommunicate OK [14:20:50]SAM_PROTO_SignData done [14:20:50]FM_MakeSignedData done [14:20:50]CreateOFDProtocolMessage [14:20:50]wFMCommunicate request_size=4 [14:20:50]MH_SAM_APDU [14:20:50]CAPDU: 80 11 00 00 [14:20:50]Write to MH i2c: E2 08 00 B6 58 80 11 00 00 00 00 00 00 88 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:50]Read from MH i2c: E2 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 17 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: E2 17 00 B6 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [14:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:20:50]wFMCommunicate OK [14:20:50]CreateOFDProtocolMessage done [14:20:50]OFDSenderStorePacket 166051 [14:20:50]StoreOFDPacket docnum=166051 [14:20:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 03 04 01 D6 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 EB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F3 04 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 BE 00 00 00 00 07 04 06 00 E0 04 07 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 52 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 88 02 00 35 04 06 00 8B 38 A4 0F 6A F1 F9 A7 FE 81 D1 B0 88 AF [14:20:50]CheckFolder [14:20:50]dirname=/storage/ofd_packets [14:20:50]CheckFolder done [14:20:50]ProducePacketName [14:20:50]name=ofd_packets/00166051 [14:20:50]NVStorageSaveData ofd_packets/00166051 [14:20:50]File name is /storage/ofd_packets/00166051 [14:20:50]Write 298 bytes [14:20:50]NVStorageSaveData done [14:20:50]OFDSenderStorePacket done [14:20:50]KKMCreateOFDPacket done [14:20:50]NVStorageSaveData kkm_last_timestamp [14:20:50]File name is /storage/kkm_last_timestamp [14:20:50]Write 4 bytes [14:20:50]NVStorageSaveData done [14:20:50]ExternCall_PrintAddStr [14:20:50]wPrintStart [14:20:50]Write to MH i2c: 01 00 00 B7 58 0F [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 B7 58 00 00 00 00 00 FF 0F 24 [14:20:50]RasterBufferAndPrint [14:20:50]line Счет N : (1)220620 [14:20:50]line ИНН: 02508201610067 [14:20:50]line Контрольно-Кассовый Чек [14:20:50]line ПРОДАЖА [14:20:50]line ТРК (МРК, ГНК) : 41 [14:20:50]line Товар: 2710194210 [14:20:50]line ДТ-К-5 [14:20:50]line 60.370 * 76.20 [14:20:50]line = 4600.19 [14:20:50]line НДС 12% НСП 1% [14:20:50]line > о реализуемом товаре [14:20:50]line ОКРУГЛЕНИЕ: -0.19 [14:20:50]line ИТОГО: 4600.00 [14:20:50]line Внесено: 4600.00 [14:20:50]line СДАЧА: 0.00 [14:20:50]line НСП 1% : 40.71 [14:20:50]line НДС 12% : 488.52 [14:20:50]line Наличными: 4600.00 [14:20:50]line Безнал.: 0.00 [14:20:50]line Место: АЗС № 161 "Партнер Нефть" [14:20:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:20:50]line СНО: Общий режим [14:20:50]line Чек 162 21.10.2024 14:21 [14:20:50]line Смена: 535 ФФД: 1.0 [14:20:50]line ЗНМ: 0300000104 [14:20:50]line РНМ: 0000000000091764 [14:20:50]line Версия ККМ: 001 [14:20:50]line ФМ: 0000000000871759 [14:20:50]line ФД: 166051 [14:20:50]line ФПД: 153075386903281 [14:20:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142106&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166051&fm=153075386903281&tin=02508201610067®Number=0000000000091764&sum=460000 [14:20:50]written 0, free lines is 4095 [14:20:50]OFD Sender: Processing packet 166051 [packets to send 48, broken 47] [14:20:50]ProducePacketName [14:20:50]name=ofd_packets/00166051 [14:20:50]OFD Sender: To server: pG, [14:20:50]CommunicateWithHost lk.salyk.kg:30040 [14:20:50]ConnectInit lk.salyk.kg [14:20:50]Connected sock=7 [14:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 03 04 01 D6 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D2 EB 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F3 04 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 04 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 BE 00 00 00 00 07 04 06 00 E0 04 07 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 52 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 88 02 00 35 04 06 00 8B 38 A4 0F 6A F1 F9 A7 FE 81 D1 B0 88 AF [14:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 58 B9 47 00 84 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A3 88 02 00 F4 03 04 00 C0 09 16 67 B6 04 01 00 00 B1 A6 88 B2 81 E4 70 E8 [14:20:50]CommunicateWithHost err = 0 [14:20:50]CheckOFDResponse [14:20:50]1017 (14) - 77093643461234 [14:20:50]1041 (16) - 0000000000871759 [14:20:50]1040 (4) - 166051 [14:20:50]1012 (4) - 21.10.2024 07:58 [14:20:50]1206 (1) - 0 [14:20:50]OFD Sender: Remove packet 166051 [14:20:50]ProducePacketName [14:20:50]name=ofd_packets/00166051 [14:20:50]NVStorageDeleteData [14:20:50]Write to MH i2c: 01 00 00 E2 58 3A [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: 01 07 00 E2 58 00 00 00 00 00 D0 0C 1D [14:20:50]RasterBufferAndPrint [14:20:50]line [14:20:50]line [14:20:50]line [14:20:50]line [14:20:50]line [14:20:50]written 0, free lines is 3293 [14:20:50]MH_Cut [14:20:50]Write to MH i2c: D1 01 00 E9 58 01 13 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: D1 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: D1 01 00 [14:20:50]MH_I2C_Read... [14:20:50]Read from MH i2c: D1 01 00 E9 58 00 12 [14:20:50]Write to MH i2c: 01 00 00 EA 58 42 [14:20:50]Write i2c OK [14:20:50]MH_I2C_Read... [14:20:50]OFD Sender: No OFD packet to send [14:20:51]*** Cut start [14:20:51]*** Partial cut [14:20:51]*** CUTSNS_PIN = 1 [14:20:51]*** CUTSNS_PIN = 0 [14:20:51]*** Brake cut motor [14:20:51]Read from MH i2c: 01 [14:20:51]MH_I2C_Read... [14:20:51]*** Stop cut motor [14:20:51]*** Cut end [14:20:51]Read from MH i2c: 01 07 00 [14:20:51]MH_I2C_Read... [14:20:51]Read from MH i2c: 01 07 00 EA 58 00 00 00 00 00 FF 0F 57 [14:20:51]process_action close_receipt done [14:20:51]requested_data is exist [14:20:51]produce_requested_data [14:20:51]requested_item fm.sn is exist - process it [14:20:51]wFMCommunicate request_size=4 [14:20:51]MH_SAM_APDU [14:20:51]CAPDU: 80 11 00 00 [14:20:51]Write to MH i2c: E2 08 00 EB 58 80 11 00 00 00 00 00 00 BD [14:20:51]Write i2c OK [14:20:51]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 17 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 17 00 EB 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [14:20:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:20:52]wFMCommunicate OK [14:20:52]requested_item fd.num is exist - process it [14:20:52]SAM_PROTO_GetFieldsCounters [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 13 00 00 [14:20:52]Write to MH i2c: E2 08 00 EC 58 80 13 00 00 00 00 00 00 C0 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 62 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 62 00 EC 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [14:20:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:20:52]wFMCommunicate OK [14:20:52]SAM_PROTO_GetFieldsCounters done [14:20:52]requested_item shift.num is exist - process it [14:20:52]requested_item shift.opened is exist - process it [14:20:52]req_shift_opened [14:20:52]FM_GetShiftState [14:20:52]SAM_PROTO_GetShiftState [14:20:52]wFMCommunicate request_size=4 [14:20:52]MH_SAM_APDU [14:20:52]CAPDU: 80 13 01 00 [14:20:52]Write to MH i2c: E2 08 00 ED 58 80 13 01 00 00 00 00 00 C2 [14:20:52]Write i2c OK [14:20:52]MH_I2C_Read... [14:20:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:52]Read from MH i2c: E2 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 [14:20:52]MH_I2C_Read... [14:20:52]Read from MH i2c: E2 0E 00 ED 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CB [14:20:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:20:52]wFMCommunicate OK [14:20:52]SAM_PROTO_GetShiftState done [14:20:52]FM_GetShiftState done [14:20:52]req_shift_opened done [14:20:52]requested_item shift.open_date is exist - process it [14:20:52]req_shift_open_date [14:20:52]req_shift_open_date done [14:20:52]produce_requested_data done [14:20:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166051,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:20:52]process_action_free close_receipt [14:20:52]json_value_free [14:20:52]json_value_free done [14:20:52]process_json_proto returns [14:20:52]Send response to host [14:20:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166051,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:20:52]free response buf [14:20:52]execute_script done [14:20:52]execute_script returns [14:20:52]free content buf [14:20:52]Sock 5.Close socket [14:20:52]Sock 5.Thread stoped [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]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:55]accept exits with 6 [14:21:55]New connection [14:21:55]New thread 3066920292 created [14:21:55]Thread 3066776932 joined [14:21:55]Waiting for new connection... [14:21:55] Sock 6.Parse request [14:21:55]Sock 6.Check first char [14:21:55]Sock 6.First char is OK [14:21:55]request: POST /json_proto HTTP/1.0 [14:21:55]Method: POST [14:21:55]URL: /json_proto [14:21:55]Method is POST - this is cgi request [14:21:55]url: /json_proto [14:21:55]query_string will be loaded in cgi processing [14:21:55]execute_cgi json_proto POST (null) [14:21:55]execute_cgi path=json_proto method=POST [14:21:55]POST find Content-Length [14:21:55]Host: 172.17.53.195:8080 [14:21:55]Content-Length: 678 [14:21:55]Content-Type: application/json [14:21:55] [14:21:55]POST finish read [14:21:55]Found Content-Length = 678 [14:21:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:55]execute_script... [14:21:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:55]POST & json_proto [14:21:55]process_json_proto [14:21:55]json parsed OK: [14:21:55]protocol is kg_v1.0 [14:21:55]action value=close_receipt [14:21:55]process_action close_receipt [14:21:55]cmd_close_receipt [14:21:55]MH_GetDate [14:21:55]Write to MH i2c: F0 00 00 EE 58 35 [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: F0 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: F0 09 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: F0 09 00 EE 58 00 95 63 16 67 21 48 4A 65 CB [14:21:55]GetLastDocTimeStamp 1729520466 [14:21:55]current date 1729520533 [14:21:55]FM_GetShiftState [14:21:55]SAM_PROTO_GetShiftState [14:21:55]wFMCommunicate request_size=4 [14:21:55]MH_SAM_APDU [14:21:55]CAPDU: 80 13 01 00 [14:21:55]Write to MH i2c: E2 08 00 EF 58 80 13 01 00 00 00 00 00 C4 [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:55]Read from MH i2c: E2 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 0E 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 0E 00 EF 58 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [14:21:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:21:55]wFMCommunicate OK [14:21:55]SAM_PROTO_GetShiftState done [14:21:55]FM_GetShiftState done [14:21:55]opened in 1729470944 [14:21:55]opened+sec_in_day 1729557344 [14:21:55]quantity*price = 80012 [14:21:55]sum+1 = 80013 [14:21:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 163 21.10.2024 14:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166052 ФПД: 76015407553556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166052&fm=76015407553556&tin=02508201610067®Number=0000000000091764&sum=80000 [14:21:56]StoreToDocumentArchive [14:21:56]shift 535 fd 166052 [14:21:56]save to /storage/0535/doc_00166052 [14:21:56]save last doc name /storage/0535/doc_00166052 to /storage/kkm_last_doc_name [14:21:56]save OK [14:21:56]Clear old archive folders... [14:21:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:56]tlvbuf is 0157E5D0 [14:21:56]SAM_PROTO_ClearQueue [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 09 00 00 [14:21:56]Write to MH i2c: E2 08 00 FC 58 80 09 00 00 00 00 00 00 C6 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 FC 58 00 90 00 C8 [14:21:56]RAPDU: 90 00 [14:21:56]wFMCommunicate OK [14:21:56]SAM_PROTO_ClearQueue done [14:21:56]KKMCreateOFDPacket [14:21:56]OFDProtocolAddRootSTLVToBuf [14:21:56]FM_MakeSignedData [14:21:56]FM_MakeSignedData [14:21:56]SAM_PROTO_SignData [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 0D 01 02 [14:21:56]Write to MH i2c: E2 08 00 FD 58 80 0D 01 02 00 00 00 00 CE [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 FD 58 00 90 00 C9 [14:21:56]RAPDU: 90 00 [14:21:56]wFMCommunicate OK [14:21:56]wFMCommunicate request_size=255 [14:21:56]MH_SAM_APDU [14:21: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 95 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 88 02 00 35 04 06 00 45 [14:21:56]Write to MH i2c: E2 02 01 FE 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 95 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 88 02 00 35 04 06 00 45 00 00 F4 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 FE 58 00 90 00 CA [14:21:56]RAPDU: 90 00 [14:21:56]wFMCommunicate OK [14:21:56]wFMCommunicate request_size=10 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 0D 02 02 05 22 B7 5D 5C 14 [14:21:56]Write to MH i2c: E2 0D 00 FF 58 80 0D 02 02 05 00 22 B7 5D 5C 14 00 00 81 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 03 00 FF 58 00 90 00 CB [14:21:56]RAPDU: 90 00 [14:21:56]wFMCommunicate OK [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 0D 03 02 [14:21:56]Write to MH i2c: E2 08 00 00 59 80 0D 03 02 00 00 00 00 D4 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 0B 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 0B 00 00 59 00 8E 5B B1 7A A8 4B AA F2 90 00 78 [14:21:56]RAPDU: 8E 5B B1 7A A8 4B AA F2 90 00 [14:21:56]wFMCommunicate OK [14:21:56]SAM_PROTO_SignData done [14:21:56]FM_MakeSignedData done [14:21:56]CreateOFDProtocolMessage [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 11 00 00 [14:21:56]Write to MH i2c: E2 08 00 01 59 80 11 00 00 00 00 00 00 D4 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 17 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 17 00 01 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [14:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:21:56]wFMCommunicate OK [14:21:56]CreateOFDProtocolMessage done [14:21:56]OFDSenderStorePacket 166052 [14:21:56]StoreOFDPacket docnum=166052 [14:21:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 81 07 01 35 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 95 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 88 02 00 35 04 06 00 45 22 B7 5D 5C 14 8E 5B B1 7A A8 4B AA F2 [14:21:56]CheckFolder [14:21:56]dirname=/storage/ofd_packets [14:21:56]CheckFolder done [14:21:56]ProducePacketName [14:21:56]name=ofd_packets/00166052 [14:21:56]NVStorageSaveData ofd_packets/00166052 [14:21:56]File name is /storage/ofd_packets/00166052 [14:21:56]Write 301 bytes [14:21:56]NVStorageSaveData done [14:21:56]OFDSenderStorePacket done [14:21:56]KKMCreateOFDPacket done [14:21:56]NVStorageSaveData kkm_last_timestamp [14:21:56]File name is /storage/kkm_last_timestamp [14:21:56]Write 4 bytes [14:21:56]NVStorageSaveData done [14:21:56]ExternCall_PrintAddStr [14:21:56]wPrintStart [14:21:56]Write to MH i2c: 01 00 00 02 59 5B [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 07 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 07 00 02 59 00 00 00 00 00 FF 0F 70 [14:21:56]RasterBufferAndPrint [14:21:56]line Счет N : (1)220623 [14:21:56]line ИНН: 02508201610067 [14:21:56]line Контрольно-Кассовый Чек [14:21:56]line ПРОДАЖА [14:21:56]line ТРК (МРК, ГНК) : 23 [14:21:56]line Товар: 2710124130 [14:21:56]line Аи-92-К-5 [14:21:56]line 11.960 * 66.90 [14:21:56]line = 800.12 [14:21:56]line НДС 12% НСП 1% [14:21:56]line > о реализуемом товаре [14:21:56]line ОКРУГЛЕНИЕ: -0.12 [14:21:56]line ИТОГО: 800.00 [14:21:56]line Внесено: 800.00 [14:21:56]line СДАЧА: 0.00 [14:21:56]line НСП 1% : 7.08 [14:21:56]line НДС 12% : 84.97 [14:21:56]line Наличными: 800.00 [14:21:56]line Безнал.: 0.00 [14:21:56]line Место: АЗС № 161 "Партнер Нефть" [14:21:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:21:56]line СНО: Общий режим [14:21:56]line Чек 163 21.10.2024 14:22 [14:21:56]line Смена: 535 ФФД: 1.0 [14:21:56]line ЗНМ: 0300000104 [14:21:56]line РНМ: 0000000000091764 [14:21:56]line Версия ККМ: 001 [14:21:56]line ФМ: 0000000000871759 [14:21:56]line ФД: 166052 [14:21:56]line ФПД: 76015407553556 [14:21:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166052&fm=76015407553556&tin=02508201610067®Number=0000000000091764&sum=80000 [14:21:56]written 0, free lines is 4095 [14:21:56]OFD Sender: Processing packet 166052 [packets to send 48, broken 47] [14:21:56]ProducePacketName [14:21:56]name=ofd_packets/00166052 [14:21:56]OFD Sender: To server: pG, [14:21:56]CommunicateWithHost lk.salyk.kg:30040 [14:21:56]ConnectInit lk.salyk.kg [14:21:57]Connected sock=7 [14:21:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A0 81 07 01 35 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 95 63 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 88 02 00 35 04 06 00 45 22 B7 5D 5C 14 8E 5B B1 7A A8 4B AA F2 [14:21:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 E7 47 00 5E 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A4 88 02 00 F4 03 04 00 03 0A 16 67 B6 04 01 00 00 1D 2D 79 73 2C DE 59 01 [14:21:57]CommunicateWithHost err = 0 [14:21:57]CheckOFDResponse [14:21:57]1017 (14) - 77093643461234 [14:21:57]1041 (16) - 0000000000871759 [14:21:57]1040 (4) - 166052 [14:21:57]1012 (4) - 21.10.2024 08:00 [14:21:57]1206 (1) - 0 [14:21:57]OFD Sender: Remove packet 166052 [14:21:57]ProducePacketName [14:21:57]name=ofd_packets/00166052 [14:21:57]NVStorageDeleteData [14:21:57]Write to MH i2c: 01 00 00 2D 59 86 [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: 01 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: 01 07 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: 01 07 00 2D 59 00 00 00 00 00 DA 0C 73 [14:21:57]RasterBufferAndPrint [14:21:57]line [14:21:57]line [14:21:57]line [14:21:57]line [14:21:57]line [14:21:57]written 0, free lines is 3297 [14:21:57]MH_Cut [14:21:57]Write to MH i2c: D1 01 00 34 59 01 5F [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: D1 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: D1 01 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: D1 01 00 34 59 00 5E [14:21:57]Write to MH i2c: 01 00 00 35 59 8E [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]OFD Sender: No OFD packet to send [14:21:58]*** Cut start [14:21:58]*** Partial cut [14:21:58]*** CUTSNS_PIN = 1 [14:21:58]*** CUTSNS_PIN = 0 [14:21:58]*** Brake cut motor [14:21:58]Read from MH i2c: 01 [14:21:58]MH_I2C_Read... [14:21:58]*** Stop cut motor [14:21:58]*** Cut end [14:21:58]Read from MH i2c: 01 07 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: 01 07 00 35 59 00 00 00 00 00 FF 0F A3 [14:21:58]process_action close_receipt done [14:21:58]requested_data is exist [14:21:58]produce_requested_data [14:21:58]requested_item fm.sn is exist - process it [14:21:58]wFMCommunicate request_size=4 [14:21:58]MH_SAM_APDU [14:21:58]CAPDU: 80 11 00 00 [14:21:58]Write to MH i2c: E2 08 00 36 59 80 11 00 00 00 00 00 00 09 [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:58]Read from MH i2c: E2 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 17 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 17 00 36 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [14:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:21:58]wFMCommunicate OK [14:21:58]requested_item fd.num is exist - process it [14:21:58]SAM_PROTO_GetFieldsCounters [14:21:58]wFMCommunicate request_size=4 [14:21:58]MH_SAM_APDU [14:21:58]CAPDU: 80 13 00 00 [14:21:58]Write to MH i2c: E2 08 00 37 59 80 13 00 00 00 00 00 00 0C [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:58]Read from MH i2c: E2 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 62 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 62 00 37 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [14:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:58]wFMCommunicate OK [14:21:58]SAM_PROTO_GetFieldsCounters done [14:21:58]requested_item shift.num is exist - process it [14:21:58]requested_item shift.opened is exist - process it [14:21:58]req_shift_opened [14:21:58]FM_GetShiftState [14:21:58]SAM_PROTO_GetShiftState [14:21:58]wFMCommunicate request_size=4 [14:21:58]MH_SAM_APDU [14:21:58]CAPDU: 80 13 01 00 [14:21:58]Write to MH i2c: E2 08 00 38 59 80 13 01 00 00 00 00 00 0E [14:21:58]Write i2c OK [14:21:58]MH_I2C_Read... [14:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:58]Read from MH i2c: E2 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 0E 00 [14:21:58]MH_I2C_Read... [14:21:58]Read from MH i2c: E2 0E 00 38 59 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 17 [14:21:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:21:58]wFMCommunicate OK [14:21:58]SAM_PROTO_GetShiftState done [14:21:58]FM_GetShiftState done [14:21:58]req_shift_opened done [14:21:58]requested_item shift.open_date is exist - process it [14:21:58]req_shift_open_date [14:21:58]req_shift_open_date done [14:21:58]produce_requested_data done [14:21:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166052,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:21:58]process_action_free close_receipt [14:21:58]json_value_free [14:21:58]json_value_free done [14:21:58]process_json_proto returns [14:21:58]Send response to host [14:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166052,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:21:58]free response buf [14:21:58]execute_script done [14:21:58]execute_script returns [14:21:58]free content buf [14:21:58]Sock 6.Close socket [14:21:58]Sock 6.Thread stoped [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:16]accept exits with 5 [14:24:16]New connection [14:24:16]New thread 3066776932 created [14:24:16]Thread 3066920292 joined [14:24:16]Waiting for new connection... [14:24:16] Sock 5.Parse request [14:24:16]Sock 5.Check first char [14:24:16]Sock 5.First char is OK [14:24:16]request: POST /json_proto HTTP/1.0 [14:24:16]Method: POST [14:24:16]URL: /json_proto [14:24:16]Method is POST - this is cgi request [14:24:16]url: /json_proto [14:24:16]query_string will be loaded in cgi processing [14:24:16]execute_cgi json_proto POST (null) [14:24:16]execute_cgi path=json_proto method=POST [14:24:16]POST find Content-Length [14:24:16]Host: 172.17.53.195:8080 [14:24:16]Content-Length: 677 [14:24:16]Content-Type: application/json [14:24:16] [14:24:16]POST finish read [14:24:16]Found Content-Length = 677 [14:24:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:16]execute_script... [14:24: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)220624", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:16]POST & json_proto [14:24:16]process_json_proto [14:24:16]json parsed OK: [14:24:16]protocol is kg_v1.0 [14:24:16]action value=close_receipt [14:24:16]process_action close_receipt [14:24:16]cmd_close_receipt [14:24:16]MH_GetDate [14:24:16]Write to MH i2c: F0 00 00 39 59 81 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: F0 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: F0 09 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: F0 09 00 39 59 00 22 64 16 67 21 48 4A 65 A5 [14:24:16]GetLastDocTimeStamp 1729520533 [14:24:16]current date 1729520674 [14:24:16]FM_GetShiftState [14:24:16]SAM_PROTO_GetShiftState [14:24:16]wFMCommunicate request_size=4 [14:24:16]MH_SAM_APDU [14:24:16]CAPDU: 80 13 01 00 [14:24:16]Write to MH i2c: E2 08 00 3A 59 80 13 01 00 00 00 00 00 10 [14:24:16]Write i2c OK [14:24:16]MH_I2C_Read... [14:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:16]Read from MH i2c: E2 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 0E 00 [14:24:16]MH_I2C_Read... [14:24:16]Read from MH i2c: E2 0E 00 3A 59 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [14:24:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:24:16]wFMCommunicate OK [14:24:16]SAM_PROTO_GetShiftState done [14:24:16]FM_GetShiftState done [14:24:16]opened in 1729470944 [14:24:16]opened+sec_in_day 1729557344 [14:24:16]quantity*price = 40006 [14:24:16]sum+1 = 40007 [14:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 164 21.10.2024 14:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166053 ФПД: 28088530232410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142434&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166053&fm=28088530232410&tin=02508201610067®Number=0000000000091764&sum=40000 [14:24:17]StoreToDocumentArchive [14:24:17]shift 535 fd 166053 [14:24:17]save to /storage/0535/doc_00166053 [14:24:17]save last doc name /storage/0535/doc_00166053 to /storage/kkm_last_doc_name [14:24:17]save OK [14:24:17]Clear old archive folders... [14:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:17]tlvbuf is 019715C0 [14:24:17]SAM_PROTO_ClearQueue [14:24:17]wFMCommunicate request_size=4 [14:24:17]MH_SAM_APDU [14:24:17]CAPDU: 80 09 00 00 [14:24:17]Write to MH i2c: E2 08 00 47 59 80 09 00 00 00 00 00 00 12 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 47 59 00 90 00 14 [14:24:17]RAPDU: 90 00 [14:24:17]wFMCommunicate OK [14:24:17]SAM_PROTO_ClearQueue done [14:24:17]KKMCreateOFDPacket [14:24:17]OFDProtocolAddRootSTLVToBuf [14:24:17]FM_MakeSignedData [14:24:17]FM_MakeSignedData [14:24:17]SAM_PROTO_SignData [14:24:17]wFMCommunicate request_size=4 [14:24:17]MH_SAM_APDU [14:24:17]CAPDU: 80 0D 01 02 [14:24:17]Write to MH i2c: E2 08 00 48 59 80 0D 01 02 00 00 00 00 1A [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 48 59 00 90 00 15 [14:24:17]RAPDU: 90 00 [14:24:17]wFMCommunicate OK [14:24:17]wFMCommunicate request_size=255 [14:24:17]MH_SAM_APDU [14:24: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 88 02 00 35 04 06 00 19 [14:24:17]Write to MH i2c: E2 02 01 49 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 88 02 00 35 04 06 00 19 00 00 87 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 49 59 00 90 00 16 [14:24:17]RAPDU: 90 00 [14:24:17]wFMCommunicate OK [14:24:17]wFMCommunicate request_size=10 [14:24:17]MH_SAM_APDU [14:24:17]CAPDU: 80 0D 02 02 05 8B DE DD E4 5A [14:24:17]Write to MH i2c: E2 0D 00 4A 59 80 0D 02 02 05 00 8B DE DD E4 5A 00 00 AB [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 03 00 4A 59 00 90 00 17 [14:24:17]RAPDU: 90 00 [14:24:17]wFMCommunicate OK [14:24:17]wFMCommunicate request_size=4 [14:24:17]MH_SAM_APDU [14:24:17]CAPDU: 80 0D 03 02 [14:24:17]Write to MH i2c: E2 08 00 4B 59 80 0D 03 02 00 00 00 00 1F [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 0B 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 0B 00 4B 59 00 6B 94 F9 DA 57 53 28 FA 90 00 BE [14:24:17]RAPDU: 6B 94 F9 DA 57 53 28 FA 90 00 [14:24:17]wFMCommunicate OK [14:24:17]SAM_PROTO_SignData done [14:24:17]FM_MakeSignedData done [14:24:17]CreateOFDProtocolMessage [14:24:17]wFMCommunicate request_size=4 [14:24:17]MH_SAM_APDU [14:24:17]CAPDU: 80 11 00 00 [14:24:17]Write to MH i2c: E2 08 00 4C 59 80 11 00 00 00 00 00 00 1F [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:17]Read from MH i2c: E2 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 17 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: E2 17 00 4C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [14:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:24:17]wFMCommunicate OK [14:24:17]CreateOFDProtocolMessage done [14:24:17]OFDSenderStorePacket 166053 [14:24:17]StoreOFDPacket docnum=166053 [14:24:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3C 84 07 01 D3 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 88 02 00 35 04 06 00 19 8B DE DD E4 5A 6B 94 F9 DA 57 53 28 FA [14:24:17]CheckFolder [14:24:17]dirname=/storage/ofd_packets [14:24:17]CheckFolder done [14:24:17]ProducePacketName [14:24:17]name=ofd_packets/00166053 [14:24:17]NVStorageSaveData ofd_packets/00166053 [14:24:17]File name is /storage/ofd_packets/00166053 [14:24:17]Write 301 bytes [14:24:17]NVStorageSaveData done [14:24:17]OFDSenderStorePacket done [14:24:17]KKMCreateOFDPacket done [14:24:17]NVStorageSaveData kkm_last_timestamp [14:24:17]File name is /storage/kkm_last_timestamp [14:24:17]Write 4 bytes [14:24:17]NVStorageSaveData done [14:24:17]ExternCall_PrintAddStr [14:24:17]wPrintStart [14:24:17]Write to MH i2c: 01 00 00 4D 59 A6 [14:24:17]Write i2c OK [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: 01 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: 01 07 00 [14:24:17]MH_I2C_Read... [14:24:17]Read from MH i2c: 01 07 00 4D 59 00 00 00 00 00 FF 0F BB [14:24:17]RasterBufferAndPrint [14:24:17]line Счет N : (1)220624 [14:24:17]line ИНН: 02508201610067 [14:24:17]line Контрольно-Кассовый Чек [14:24:17]line ПРОДАЖА [14:24:17]line ТРК (МРК, ГНК) : 43 [14:24:17]line Товар: 2710124130 [14:24:17]line Аи-92-К-5 [14:24:17]line 5.980 * 66.90 [14:24:17]line = 400.06 [14:24:17]line НДС 12% НСП 1% [14:24:17]line > о реализуемом товаре [14:24:17]line ОКРУГЛЕНИЕ: -0.06 [14:24:17]line ИТОГО: 400.00 [14:24:17]line Внесено: 400.00 [14:24:17]line СДАЧА: 0.00 [14:24:17]line НСП 1% : 3.54 [14:24:17]line НДС 12% : 42.48 [14:24:17]line Наличными: 400.00 [14:24:17]line Безнал.: 0.00 [14:24:17]line Место: АЗС № 161 "Партнер Нефть" [14:24:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:24:17]line СНО: Общий режим [14:24:17]line Чек 164 21.10.2024 14:24 [14:24:17]line Смена: 535 ФФД: 1.0 [14:24:17]line ЗНМ: 0300000104 [14:24:17]line РНМ: 0000000000091764 [14:24:17]line Версия ККМ: 001 [14:24:17]line ФМ: 0000000000871759 [14:24:17]line ФД: 166053 [14:24:17]line ФПД: 28088530232410 [14:24:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142434&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166053&fm=28088530232410&tin=02508201610067®Number=0000000000091764&sum=40000 [14:24:18]OFD Sender: Processing packet 166053 [packets to send 48, broken 47] [14:24:18]ProducePacketName [14:24:18]name=ofd_packets/00166053 [14:24:18]OFD Sender: To server: pG, [14:24:18]CommunicateWithHost lk.salyk.kg:30040 [14:24:18]ConnectInit lk.salyk.kg [14:24:18]written 0, free lines is 4095 [14:24:18]Connected sock=7 [14:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3C 84 07 01 D3 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 22 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 88 02 00 35 04 06 00 19 8B DE DD E4 5A 6B 94 F9 DA 57 53 28 FA [14:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B6 D6 47 00 52 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A5 88 02 00 F4 03 04 00 91 0A 16 67 B6 04 01 00 00 D8 32 D1 F8 FF E0 CC 2B [14:24:18]CommunicateWithHost err = 0 [14:24:18]CheckOFDResponse [14:24:18]1017 (14) - 77093643461234 [14:24:18]1041 (16) - 0000000000871759 [14:24:18]1040 (4) - 166053 [14:24:18]1012 (4) - 21.10.2024 08:02 [14:24:18]1206 (1) - 0 [14:24:18]OFD Sender: Remove packet 166053 [14:24:18]ProducePacketName [14:24:18]name=ofd_packets/00166053 [14:24:18]NVStorageDeleteData [14:24:18]Write to MH i2c: 01 00 00 78 59 D1 [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 07 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: 01 07 00 78 59 00 00 00 00 00 BF 0C A3 [14:24:18]RasterBufferAndPrint [14:24:18]line [14:24:18]line [14:24:18]line [14:24:18]line [14:24:18]line [14:24:18]written 0, free lines is 3272 [14:24:18]MH_Cut [14:24:18]Write to MH i2c: D1 01 00 7F 59 01 AA [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: D1 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: D1 01 00 [14:24:18]MH_I2C_Read... [14:24:18]Read from MH i2c: D1 01 00 7F 59 00 A9 [14:24:18]Write to MH i2c: 01 00 00 80 59 D9 [14:24:18]Write i2c OK [14:24:18]MH_I2C_Read... [14:24:19]OFD Sender: No OFD packet to send [14:24:19]*** Cut start [14:24:19]*** Partial cut [14:24:19]*** CUTSNS_PIN = 1 [14:24:19]*** CUTSNS_PIN = 0 [14:24:19]*** Brake cut motor [14:24:20]Read from MH i2c: 01 [14:24:20]MH_I2C_Read... [14:24:20]*** Stop cut motor [14:24:20]*** Cut end [14:24:20]Read from MH i2c: 01 07 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: 01 07 00 80 59 00 00 00 00 00 FF 0F EE [14:24:20]process_action close_receipt done [14:24:20]requested_data is exist [14:24:20]produce_requested_data [14:24:20]requested_item fm.sn is exist - process it [14:24:20]wFMCommunicate request_size=4 [14:24:20]MH_SAM_APDU [14:24:20]CAPDU: 80 11 00 00 [14:24:20]Write to MH i2c: E2 08 00 81 59 80 11 00 00 00 00 00 00 54 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:20]Read from MH i2c: E2 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 17 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 17 00 81 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [14:24:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:24:20]wFMCommunicate OK [14:24:20]requested_item fd.num is exist - process it [14:24:20]SAM_PROTO_GetFieldsCounters [14:24:20]wFMCommunicate request_size=4 [14:24:20]MH_SAM_APDU [14:24:20]CAPDU: 80 13 00 00 [14:24:20]Write to MH i2c: E2 08 00 82 59 80 13 00 00 00 00 00 00 57 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:20]Read from MH i2c: E2 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 62 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 62 00 82 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [14:24:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:20]wFMCommunicate OK [14:24:20]SAM_PROTO_GetFieldsCounters done [14:24:20]requested_item shift.num is exist - process it [14:24:20]requested_item shift.opened is exist - process it [14:24:20]req_shift_opened [14:24:20]FM_GetShiftState [14:24:20]SAM_PROTO_GetShiftState [14:24:20]wFMCommunicate request_size=4 [14:24:20]MH_SAM_APDU [14:24:20]CAPDU: 80 13 01 00 [14:24:20]Write to MH i2c: E2 08 00 83 59 80 13 01 00 00 00 00 00 59 [14:24:20]Write i2c OK [14:24:20]MH_I2C_Read... [14:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:20]Read from MH i2c: E2 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 0E 00 [14:24:20]MH_I2C_Read... [14:24:20]Read from MH i2c: E2 0E 00 83 59 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 62 [14:24:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:24:20]wFMCommunicate OK [14:24:20]SAM_PROTO_GetShiftState done [14:24:20]FM_GetShiftState done [14:24:20]req_shift_opened done [14:24:20]requested_item shift.open_date is exist - process it [14:24:20]req_shift_open_date [14:24:20]req_shift_open_date done [14:24:20]produce_requested_data done [14:24:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166053,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:24:20]process_action_free close_receipt [14:24:20]json_value_free [14:24:20]json_value_free done [14:24:20]process_json_proto returns [14:24:20]Send response to host [14:24:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166053,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:24:20]free response buf [14:24:20]execute_script done [14:24:20]execute_script returns [14:24:20]free content buf [14:24:20]Sock 5.Close socket [14:24:20]Sock 5.Thread stoped [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:32]accept exits with 6 [14:27:32]New connection [14:27:32]New thread 3066920292 created [14:27:32]Thread 3066776932 joined [14:27:32]Waiting for new connection... [14:27:32] Sock 6.Parse request [14:27:32]Sock 6.Check first char [14:27:32]Sock 6.First char is OK [14:27:32]request: POST /json_proto HTTP/1.0 [14:27:32]Method: POST [14:27:32]URL: /json_proto [14:27:32]Method is POST - this is cgi request [14:27:32]url: /json_proto [14:27:32]query_string will be loaded in cgi processing [14:27:32]execute_cgi json_proto POST (null) [14:27:32]execute_cgi path=json_proto method=POST [14:27:32]POST find Content-Length [14:27:32]Host: 172.17.53.195:8080 [14:27:32]Content-Length: 677 [14:27:32]Content-Type: application/json [14:27:32] [14:27:32]POST finish read [14:27:32]Found Content-Length = 677 [14:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:32]execute_script... [14:27:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:32]POST & json_proto [14:27:32]process_json_proto [14:27:32]json parsed OK: [14:27:32]protocol is kg_v1.0 [14:27:32]action value=close_receipt [14:27:32]process_action close_receipt [14:27:32]cmd_close_receipt [14:27:32]MH_GetDate [14:27:32]Write to MH i2c: F0 00 00 84 59 CC [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: F0 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: F0 09 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: F0 09 00 84 59 00 E7 64 16 67 21 48 4A 65 B5 [14:27:32]GetLastDocTimeStamp 1729520674 [14:27:32]current date 1729520871 [14:27:32]FM_GetShiftState [14:27:32]SAM_PROTO_GetShiftState [14:27:32]wFMCommunicate request_size=4 [14:27:32]MH_SAM_APDU [14:27:32]CAPDU: 80 13 01 00 [14:27:32]Write to MH i2c: E2 08 00 85 59 80 13 01 00 00 00 00 00 5B [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:32]Read from MH i2c: E2 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 0E 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: E2 0E 00 85 59 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 64 [14:27:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:27:32]wFMCommunicate OK [14:27:32]SAM_PROTO_GetShiftState done [14:27:32]FM_GetShiftState done [14:27:32]opened in 1729470944 [14:27:32]opened+sec_in_day 1729557344 [14:27:32]quantity*price = 50041 [14:27:32]sum+1 = 50042 [14:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 165 21.10.2024 14:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166054 ФПД: 268093799499594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166054&fm=268093799499594&tin=02508201610067®Number=0000000000091764&sum=50000 [14:27:33]StoreToDocumentArchive [14:27:33]shift 535 fd 166054 [14:27:33]save to /storage/0535/doc_00166054 [14:27:33]save last doc name /storage/0535/doc_00166054 to /storage/kkm_last_doc_name [14:27:33]save OK [14:27:33]Clear old archive folders... [14:27:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:33]tlvbuf is 01C364B0 [14:27:33]SAM_PROTO_ClearQueue [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 09 00 00 [14:27:33]Write to MH i2c: E2 08 00 92 59 80 09 00 00 00 00 00 00 5D [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 92 59 00 90 00 5F [14:27:33]RAPDU: 90 00 [14:27:33]wFMCommunicate OK [14:27:33]SAM_PROTO_ClearQueue done [14:27:33]KKMCreateOFDPacket [14:27:33]OFDProtocolAddRootSTLVToBuf [14:27:33]FM_MakeSignedData [14:27:33]FM_MakeSignedData [14:27:33]SAM_PROTO_SignData [14:27:33]wFMCommunicate request_size=4 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 0D 01 02 [14:27:33]Write to MH i2c: E2 08 00 93 59 80 0D 01 02 00 00 00 00 65 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:33]Read from MH i2c: E2 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 [14:27:33]MH_I2C_Read... [14:27:33]Read from MH i2c: E2 03 00 93 59 00 90 00 60 [14:27:33]RAPDU: 90 00 [14:27:33]wFMCommunicate OK [14:27:33]wFMCommunicate request_size=255 [14:27:33]MH_SAM_APDU [14:27:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 E7 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 88 02 00 35 04 06 00 F3 [14:27:33]Write to MH i2c: E2 02 01 94 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E7 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 88 02 00 35 04 06 00 F3 00 00 A4 [14:27:33]Write i2c OK [14:27:33]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 94 59 00 90 00 61 [14:27:34]RAPDU: 90 00 [14:27:34]wFMCommunicate OK [14:27:34]wFMCommunicate request_size=10 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 0D 02 02 05 D4 73 AF 87 4A [14:27:34]Write to MH i2c: E2 0D 00 95 59 80 0D 02 02 05 00 D4 73 AF 87 4A 00 00 39 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 03 00 95 59 00 90 00 62 [14:27:34]RAPDU: 90 00 [14:27:34]wFMCommunicate OK [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 0D 03 02 [14:27:34]Write to MH i2c: E2 08 00 96 59 80 0D 03 02 00 00 00 00 6A [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]OFD Sender: No OFD packet to send [14:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0B 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0B 00 96 59 00 99 3D B1 95 1E CB 8F FC 90 00 FB [14:27:34]RAPDU: 99 3D B1 95 1E CB 8F FC 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_SignData done [14:27:34]FM_MakeSignedData done [14:27:34]CreateOFDProtocolMessage [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 11 00 00 [14:27:34]Write to MH i2c: E2 08 00 97 59 80 11 00 00 00 00 00 00 6A [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 97 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [14:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:27:34]wFMCommunicate OK [14:27:34]CreateOFDProtocolMessage done [14:27:34]OFDSenderStorePacket 166054 [14:27:34]StoreOFDPacket docnum=166054 [14:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 52 07 01 F5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E7 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 88 02 00 35 04 06 00 F3 D4 73 AF 87 4A 99 3D B1 95 1E CB 8F FC [14:27:34]CheckFolder [14:27:34]dirname=/storage/ofd_packets [14:27:34]CheckFolder done [14:27:34]ProducePacketName [14:27:34]name=ofd_packets/00166054 [14:27:34]NVStorageSaveData ofd_packets/00166054 [14:27:34]File name is /storage/ofd_packets/00166054 [14:27:34]Write 301 bytes [14:27:34]NVStorageSaveData done [14:27:34]OFDSenderStorePacket done [14:27:34]KKMCreateOFDPacket done [14:27:34]NVStorageSaveData kkm_last_timestamp [14:27:34]File name is /storage/kkm_last_timestamp [14:27:34]Write 4 bytes [14:27:34]NVStorageSaveData done [14:27:34]ExternCall_PrintAddStr [14:27:34]wPrintStart [14:27:34]Write to MH i2c: 01 00 00 98 59 F1 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 98 59 00 00 00 00 00 FF 0F 06 [14:27:34]RasterBufferAndPrint [14:27:34]line Счет N : (1)220625 [14:27:34]line ИНН: 02508201610067 [14:27:34]line Контрольно-Кассовый Чек [14:27:34]line ПРОДАЖА [14:27:34]line ТРК (МРК, ГНК) : 13 [14:27:34]line Товар: 2710124130 [14:27:34]line Аи-92-К-5 [14:27:34]line 7.480 * 66.90 [14:27:34]line = 500.41 [14:27:34]line НДС 12% НСП 1% [14:27:34]line > о реализуемом товаре [14:27:34]line ОКРУГЛЕНИЕ: -0.41 [14:27:34]line ИТОГО: 500.00 [14:27:34]line Внесено: 500.00 [14:27:34]line СДАЧА: 0.00 [14:27:34]line НСП 1% : 4.43 [14:27:34]line НДС 12% : 53.14 [14:27:34]line Наличными: 500.00 [14:27:34]line Безнал.: 0.00 [14:27:34]line Место: АЗС № 161 "Партнер Нефть" [14:27:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:27:34]line СНО: Общий режим [14:27:34]line Чек 165 21.10.2024 14:27 [14:27:34]line Смена: 535 ФФД: 1.0 [14:27:34]line ЗНМ: 0300000104 [14:27:34]line РНМ: 0000000000091764 [14:27:34]line Версия ККМ: 001 [14:27:34]line ФМ: 0000000000871759 [14:27:34]line ФД: 166054 [14:27:34]line ФПД: 268093799499594 [14:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T142751&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166054&fm=268093799499594&tin=02508201610067®Number=0000000000091764&sum=50000 [14:27:34]OFD Sender: Processing packet 166054 [packets to send 48, broken 47] [14:27:34]ProducePacketName [14:27:34]name=ofd_packets/00166054 [14:27:34]OFD Sender: To server: pG, [14:27:34]CommunicateWithHost lk.salyk.kg:30040 [14:27:34]ConnectInit lk.salyk.kg [14:27:34]written 0, free lines is 4095 [14:27:34]Connected sock=9 [14:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 52 07 01 F5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 E7 64 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 88 02 00 35 04 06 00 F3 D4 73 AF 87 4A 99 3D B1 95 1E CB 8F FC [14:27:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 22 EE 47 00 7D A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A6 88 02 00 F4 03 04 00 55 0B 16 67 B6 04 01 00 00 D8 09 D9 83 FA 04 A2 13 [14:27:35]CommunicateWithHost err = 0 [14:27:35]CheckOFDResponse [14:27:35]1017 (14) - 77093643461234 [14:27:35]1041 (16) - 0000000000871759 [14:27:35]1040 (4) - 166054 [14:27:35]1012 (4) - 21.10.2024 08:05 [14:27:35]1206 (1) - 0 [14:27:35]OFD Sender: Remove packet 166054 [14:27:35]ProducePacketName [14:27:35]name=ofd_packets/00166054 [14:27:35]NVStorageDeleteData [14:27:35]Write to MH i2c: 01 00 00 C3 59 1C [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: 01 07 00 C3 59 00 00 00 00 00 CD 0C FC [14:27:35]RasterBufferAndPrint [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]line [14:27:35]written 0, free lines is 3284 [14:27:35]MH_Cut [14:27:35]Write to MH i2c: D1 01 00 CA 59 01 F5 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 01 00 [14:27:35]MH_I2C_Read... [14:27:35]Read from MH i2c: D1 01 00 CA 59 00 F4 [14:27:35]Write to MH i2c: 01 00 00 CB 59 24 [14:27:35]Write i2c OK [14:27:35]MH_I2C_Read... [14:27:35]OFD Sender: No OFD packet to send [14:27:35]*** Cut start [14:27:35]*** Partial cut [14:27:35]*** CUTSNS_PIN = 1 [14:27:35]*** CUTSNS_PIN = 0 [14:27:36]*** Brake cut motor [14:27:36]Read from MH i2c: 01 [14:27:36]MH_I2C_Read... [14:27:36]*** Stop cut motor [14:27:36]*** Cut end [14:27:36]Read from MH i2c: 01 07 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: 01 07 00 CB 59 00 00 00 00 00 FF 0F 39 [14:27:36]process_action close_receipt done [14:27:36]requested_data is exist [14:27:36]produce_requested_data [14:27:36]requested_item fm.sn is exist - process it [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 11 00 00 [14:27:36]Write to MH i2c: E2 08 00 CC 59 80 11 00 00 00 00 00 00 9F [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 [14:27:36]MH_I2C_Read... [14:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:36]Read from MH i2c: E2 17 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 17 00 CC 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [14:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:27:36]wFMCommunicate OK [14:27:36]requested_item fd.num is exist - process it [14:27:36]SAM_PROTO_GetFieldsCounters [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 13 00 00 [14:27:36]Write to MH i2c: E2 08 00 CD 59 80 13 00 00 00 00 00 00 A2 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:36]Read from MH i2c: E2 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 62 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 62 00 CD 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [14:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:36]wFMCommunicate OK [14:27:36]SAM_PROTO_GetFieldsCounters done [14:27:36]requested_item shift.num is exist - process it [14:27:36]requested_item shift.opened is exist - process it [14:27:36]req_shift_opened [14:27:36]FM_GetShiftState [14:27:36]SAM_PROTO_GetShiftState [14:27:36]wFMCommunicate request_size=4 [14:27:36]MH_SAM_APDU [14:27:36]CAPDU: 80 13 01 00 [14:27:36]Write to MH i2c: E2 08 00 CE 59 80 13 01 00 00 00 00 00 A4 [14:27:36]Write i2c OK [14:27:36]MH_I2C_Read... [14:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:36]Read from MH i2c: E2 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 0E 00 [14:27:36]MH_I2C_Read... [14:27:36]Read from MH i2c: E2 0E 00 CE 59 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AD [14:27:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:27:36]wFMCommunicate OK [14:27:36]SAM_PROTO_GetShiftState done [14:27:36]FM_GetShiftState done [14:27:36]req_shift_opened done [14:27:36]requested_item shift.open_date is exist - process it [14:27:36]req_shift_open_date [14:27:36]req_shift_open_date done [14:27:36]produce_requested_data done [14:27:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166054,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:27:36]process_action_free close_receipt [14:27:36]json_value_free [14:27:36]json_value_free done [14:27:36]process_json_proto returns [14:27:36]Send response to host [14:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166054,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:27:36]free response buf [14:27:36]execute_script done [14:27:36]execute_script returns [14:27:36]free content buf [14:27:36]Sock 6.Close socket [14:27:36]Sock 6.Thread stoped [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [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:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:20]OFD Sender: No OFD packet to send [14:30:25]OFD Sender: No OFD packet to send [14:30:30]OFD Sender: No OFD packet to send [14:30:35]OFD Sender: No OFD packet to send [14:30:40]OFD Sender: No OFD packet to send [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:32:00]OFD Sender: No OFD packet to send [14:32:05]OFD Sender: No OFD packet to send [14:32:10]OFD Sender: No OFD packet to send [14:32:15]OFD Sender: No OFD packet to send [14:32:20]OFD Sender: No OFD packet to send [14:32:25]OFD Sender: No OFD packet to send [14:32:30]OFD Sender: No OFD packet to send [14:32:35]OFD Sender: No OFD packet to send [14:32:40]OFD Sender: No OFD packet to send [14:32:45]OFD Sender: No OFD packet to send [14:32:50]OFD Sender: No OFD packet to send [14:32:55]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]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:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:29]accept exits with 5 [14:36:29]New connection [14:36:29]New thread 3066776932 created [14:36:29]Thread 3066920292 joined [14:36:29]Waiting for new connection... [14:36:29] Sock 5.Parse request [14:36:29]Sock 5.Check first char [14:36:29]Sock 5.First char is OK [14:36:29]request: POST /json_proto HTTP/1.0 [14:36:29]Method: POST [14:36:29]URL: /json_proto [14:36:29]Method is POST - this is cgi request [14:36:29]url: /json_proto [14:36:29]query_string will be loaded in cgi processing [14:36:29]execute_cgi json_proto POST (null) [14:36:29]execute_cgi path=json_proto method=POST [14:36:29]POST find Content-Length [14:36:29]Host: 172.17.53.195:8080 [14:36:29]Content-Length: 769 [14:36:29]Content-Type: application/json [14:36:29] [14:36:29]POST finish read [14:36:29]Found Content-Length = 769 [14:36:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:29]execute_script... [14:36:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:29]POST & json_proto [14:36:29]process_json_proto [14:36:29]json parsed OK: [14:36:29]protocol is kg_v1.0 [14:36:29]action value=close_receipt [14:36:29]process_action close_receipt [14:36:29]cmd_close_receipt [14:36:29]MH_GetDate [14:36:29]Write to MH i2c: F0 00 00 CF 59 17 [14:36:29]Write i2c OK [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: F0 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: F0 09 00 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: F0 09 00 CF 59 00 00 67 16 67 21 48 4A 65 1C [14:36:29]GetLastDocTimeStamp 1729520871 [14:36:29]current date 1729521408 [14:36:29]FM_GetShiftState [14:36:29]SAM_PROTO_GetShiftState [14:36:29]wFMCommunicate request_size=4 [14:36:29]MH_SAM_APDU [14:36:29]CAPDU: 80 13 01 00 [14:36:29]Write to MH i2c: E2 08 00 D0 59 80 13 01 00 00 00 00 00 A6 [14:36:29]Write i2c OK [14:36:29]MH_I2C_Read... [14:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:29]Read from MH i2c: E2 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 0E 00 [14:36:29]MH_I2C_Read... [14:36:29]Read from MH i2c: E2 0E 00 D0 59 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AF [14:36:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:36:29]wFMCommunicate OK [14:36:29]SAM_PROTO_GetShiftState done [14:36:29]FM_GetShiftState done [14:36:29]opened in 1729470944 [14:36:29]opened+sec_in_day 1729557344 [14:36:29]quantity*price = 100015 [14:36:29]sum+1 = 100017 [14:36:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 166 21.10.2024 14:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166055 ФПД: 252640224885151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143648&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166055&fm=252640224885151&tin=02508201610067®Number=0000000000091764&sum=100016 [14:36:30]StoreToDocumentArchive [14:36:30]shift 535 fd 166055 [14:36:30]save to /storage/0535/doc_00166055 [14:36:30]save last doc name /storage/0535/doc_00166055 to /storage/kkm_last_doc_name [14:36:30]save OK [14:36:30]Clear old archive folders... [14:36:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:30]tlvbuf is 0163F8D0 [14:36:30]SAM_PROTO_ClearQueue [14:36:30]wFMCommunicate request_size=4 [14:36:30]MH_SAM_APDU [14:36:30]CAPDU: 80 09 00 00 [14:36:30]Write to MH i2c: E2 08 00 DD 59 80 09 00 00 00 00 00 00 A8 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:30]Read from MH i2c: E2 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 03 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 03 00 DD 59 00 90 00 AA [14:36:30]RAPDU: 90 00 [14:36:30]wFMCommunicate OK [14:36:30]SAM_PROTO_ClearQueue done [14:36:30]KKMCreateOFDPacket [14:36:30]OFDProtocolAddRootSTLVToBuf [14:36:30]FM_MakeSignedData [14:36:30]FM_MakeSignedData [14:36:30]SAM_PROTO_SignData [14:36:30]wFMCommunicate request_size=4 [14:36:30]MH_SAM_APDU [14:36:30]CAPDU: 80 0D 01 02 [14:36:30]Write to MH i2c: E2 08 00 DE 59 80 0D 01 02 00 00 00 00 B0 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:30]Read from MH i2c: E2 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 03 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 03 00 DE 59 00 90 00 AB [14:36:30]RAPDU: 90 00 [14:36:30]wFMCommunicate OK [14:36:30]wFMCommunicate request_size=255 [14:36:30]MH_SAM_APDU [14:36:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 00 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 88 02 00 35 04 06 00 E5 [14:36:30]Write to MH i2c: E2 02 01 DF 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 00 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 88 02 00 35 04 06 00 E5 00 00 19 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:31]OFD Sender: No OFD packet to send [14:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 DF 59 00 90 00 AC [14:36:31]RAPDU: 90 00 [14:36:31]wFMCommunicate OK [14:36:31]wFMCommunicate request_size=10 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 0D 02 02 05 C6 62 DC 39 9F [14:36:31]Write to MH i2c: E2 0D 00 E0 59 80 0D 02 02 05 00 C6 62 DC 39 9F 00 00 99 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 E0 59 00 90 00 AD [14:36:31]RAPDU: 90 00 [14:36:31]wFMCommunicate OK [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 0D 03 02 [14:36:31]Write to MH i2c: E2 08 00 E1 59 80 0D 03 02 00 00 00 00 B5 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 0B 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 0B 00 E1 59 00 38 5D 07 C2 24 69 4E 81 90 00 70 [14:36:31]RAPDU: 38 5D 07 C2 24 69 4E 81 90 00 [14:36:31]wFMCommunicate OK [14:36:31]SAM_PROTO_SignData done [14:36:31]FM_MakeSignedData done [14:36:31]CreateOFDProtocolMessage [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 11 00 00 [14:36:31]Write to MH i2c: E2 08 00 E2 59 80 11 00 00 00 00 00 00 B5 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 17 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 17 00 E2 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [14:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:31]wFMCommunicate OK [14:36:31]CreateOFDProtocolMessage done [14:36:31]OFDSenderStorePacket 166055 [14:36:31]StoreOFDPacket docnum=166055 [14:36:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 0F 07 01 EB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 00 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 88 02 00 35 04 06 00 E5 C6 62 DC 39 9F 38 5D 07 C2 24 69 4E 81 [14:36:31]CheckFolder [14:36:31]dirname=/storage/ofd_packets [14:36:31]CheckFolder done [14:36:31]ProducePacketName [14:36:31]name=ofd_packets/00166055 [14:36:31]NVStorageSaveData ofd_packets/00166055 [14:36:31]File name is /storage/ofd_packets/00166055 [14:36:31]Write 301 bytes [14:36:31]NVStorageSaveData done [14:36:31]OFDSenderStorePacket done [14:36:31]KKMCreateOFDPacket done [14:36:31]NVStorageSaveData kkm_last_timestamp [14:36:31]File name is /storage/kkm_last_timestamp [14:36:31]Write 4 bytes [14:36:31]NVStorageSaveData done [14:36:31]ExternCall_PrintAddStr [14:36:31]wPrintStart [14:36:31]Write to MH i2c: 01 00 00 E3 59 3C [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 E3 59 00 00 00 00 00 FF 0F 51 [14:36:31]RasterBufferAndPrint [14:36:31]line Счет N : (1)220626 [14:36:31]line ИНН: 02508201610067 [14:36:31]line Контрольно-Кассовый Чек [14:36:31]line ПРОДАЖА [14:36:31]line ТРК (МРК, ГНК) : 23 [14:36:31]line Товар: 2710124130 [14:36:31]line Аи-92-К-5 [14:36:31]line 14.950 * 66.90 [14:36:31]line = 1000.16 [14:36:31]line НДС 12% НСП 1% [14:36:31]line > о реализуемом товаре [14:36:31]line ИТОГО: 1000.16 [14:36:31]line НСП 1% : 8.85 [14:36:31]line НДС 12% : 106.21 [14:36:31]line Наличными: 0.00 [14:36:31]line Безнал.: 1000.16 [14:36:31]line Место: АЗС № 161 "Партнер Нефть" [14:36:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:36:31]line СНО: Общий режим [14:36:31]line Чек 166 21.10.2024 14:36 [14:36:31]line Смена: 535 ФФД: 1.0 [14:36:31]line ЗНМ: 0300000104 [14:36:31]line РНМ: 0000000000091764 [14:36:31]line Версия ККМ: 001 [14:36:31]line Платежная система: Mbank [14:36:31]line ФМ: 0000000000871759 [14:36:31]line ФД: 166055 [14:36:31]line ФПД: 252640224885151 [14:36:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143648&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166055&fm=252640224885151&tin=02508201610067®Number=0000000000091764&sum=100016 [14:36:31]written 0, free lines is 4095 [14:36:31]OFD Sender: Processing packet 166055 [packets to send 48, broken 47] [14:36:31]ProducePacketName [14:36:31]name=ofd_packets/00166055 [14:36:31]OFD Sender: To server: pG, [14:36:31]CommunicateWithHost lk.salyk.kg:30040 [14:36:31]ConnectInit lk.salyk.kg [14:36:31]Connected sock=7 [14:36:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 95 0F 07 01 EB 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 00 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A7 88 02 00 35 04 06 00 E5 C6 62 DC 39 9F 38 5D 07 C2 24 69 4E 81 [14:36:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 96 47 47 00 EA 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 35 39 10 04 04 00 A7 88 02 00 F4 03 04 00 6E 0D 16 67 B6 04 01 00 00 56 E0 8B E5 B6 46 CF D5 [14:36:31]CommunicateWithHost err = 0 [14:36:31]CheckOFDResponse [14:36:31]1017 (14) - 77093643461234 [14:36:31]1041 (16) - 0000000000871759 [14:36:31]1040 (4) - 166055 [14:36:31]1012 (4) - 21.10.2024 08:14 [14:36:31]1206 (1) - 0 [14:36:31]OFD Sender: Remove packet 166055 [14:36:31]ProducePacketName [14:36:31]name=ofd_packets/00166055 [14:36:31]NVStorageDeleteData [14:36:31]Write to MH i2c: 01 00 00 0C 5A 66 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: 01 07 00 0C 5A 00 00 00 00 00 F4 0C 6D [14:36:31]RasterBufferAndPrint [14:36:31]line [14:36:31]line [14:36:31]line [14:36:31]line [14:36:31]line [14:36:31]written 0, free lines is 3323 [14:36:31]MH_Cut [14:36:31]Write to MH i2c: D1 01 00 13 5A 01 3F [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: D1 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: D1 01 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: D1 01 00 13 5A 00 3E [14:36:31]Write to MH i2c: 01 00 00 14 5A 6E [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:32]OFD Sender: No OFD packet to send [14:36:32]*** Cut start [14:36:32]*** Partial cut [14:36:32]*** CUTSNS_PIN = 1 [14:36:32]*** CUTSNS_PIN = 0 [14:36:32]*** Brake cut motor [14:36:33]Read from MH i2c: 01 [14:36:33]MH_I2C_Read... [14:36:33]*** Stop cut motor [14:36:33]*** Cut end [14:36:33]Read from MH i2c: 01 07 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: 01 07 00 14 5A 00 00 00 00 00 FF 0F 83 [14:36:33]process_action close_receipt done [14:36:33]requested_data is exist [14:36:33]produce_requested_data [14:36:33]requested_item fm.sn is exist - process it [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 11 00 00 [14:36:33]Write to MH i2c: E2 08 00 15 5A 80 11 00 00 00 00 00 00 E9 [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 17 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 17 00 15 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [14:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:36:33]wFMCommunicate OK [14:36:33]requested_item fd.num is exist - process it [14:36:33]SAM_PROTO_GetFieldsCounters [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 13 00 00 [14:36:33]Write to MH i2c: E2 08 00 16 5A 80 13 00 00 00 00 00 00 EC [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 62 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 62 00 16 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [14:36:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:33]wFMCommunicate OK [14:36:33]SAM_PROTO_GetFieldsCounters done [14:36:33]requested_item shift.num is exist - process it [14:36:33]requested_item shift.opened is exist - process it [14:36:33]req_shift_opened [14:36:33]FM_GetShiftState [14:36:33]SAM_PROTO_GetShiftState [14:36:33]wFMCommunicate request_size=4 [14:36:33]MH_SAM_APDU [14:36:33]CAPDU: 80 13 01 00 [14:36:33]Write to MH i2c: E2 08 00 17 5A 80 13 01 00 00 00 00 00 EE [14:36:33]Write i2c OK [14:36:33]MH_I2C_Read... [14:36:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:33]Read from MH i2c: E2 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 0E 00 [14:36:33]MH_I2C_Read... [14:36:33]Read from MH i2c: E2 0E 00 17 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F7 [14:36:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:36:33]wFMCommunicate OK [14:36:33]SAM_PROTO_GetShiftState done [14:36:33]FM_GetShiftState done [14:36:33]req_shift_opened done [14:36:33]requested_item shift.open_date is exist - process it [14:36:33]req_shift_open_date [14:36:33]req_shift_open_date done [14:36:33]produce_requested_data done [14:36:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166055,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:36:33]process_action_free close_receipt [14:36:33]json_value_free [14:36:33]json_value_free done [14:36:33]process_json_proto returns [14:36:33]Send response to host [14:36:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166055,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:36:33]free response buf [14:36:33]execute_script done [14:36:33]execute_script returns [14:36:33]free content buf [14:36:33]Sock 5.Close socket [14:36:33]Sock 5.Thread stoped [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:30]accept exits with 6 [14:37:30]New connection [14:37:30]New thread 3066920292 created [14:37:30]Thread 3066776932 joined [14:37:30]Waiting for new connection... [14:37:30] Sock 6.Parse request [14:37:30]Sock 6.Check first char [14:37:30]Sock 6.First char is OK [14:37:30]request: POST /json_proto HTTP/1.0 [14:37:30]Method: POST [14:37:30]URL: /json_proto [14:37:30]Method is POST - this is cgi request [14:37:30]url: /json_proto [14:37:30]query_string will be loaded in cgi processing [14:37:30]execute_cgi json_proto POST (null) [14:37:30]execute_cgi path=json_proto method=POST [14:37:30]POST find Content-Length [14:37:30]Host: 172.17.53.195:8080 [14:37:30]Content-Length: 800 [14:37:30]Content-Type: application/json [14:37:30] [14:37:30]POST finish read [14:37:30]Found Content-Length = 800 [14:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220700", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:30]execute_script... [14:37: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)220627", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4220700", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:37:30]POST & json_proto [14:37:30]process_json_proto [14:37:30]json parsed OK: [14:37:30]protocol is kg_v1.0 [14:37:30]action value=close_receipt [14:37:30]process_action close_receipt [14:37:30]cmd_close_receipt [14:37:30]MH_GetDate [14:37:30]Write to MH i2c: F0 00 00 18 5A 61 [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: F0 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: F0 09 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: F0 09 00 18 5A 00 3D 67 16 67 21 48 4A 65 A3 [14:37:30]GetLastDocTimeStamp 1729521408 [14:37:30]current date 1729521469 [14:37:30]FM_GetShiftState [14:37:30]SAM_PROTO_GetShiftState [14:37:30]wFMCommunicate request_size=4 [14:37:30]MH_SAM_APDU [14:37:30]CAPDU: 80 13 01 00 [14:37:30]Write to MH i2c: E2 08 00 19 5A 80 13 01 00 00 00 00 00 F0 [14:37:30]Write i2c OK [14:37:30]MH_I2C_Read... [14:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:30]Read from MH i2c: E2 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 0E 00 [14:37:30]MH_I2C_Read... [14:37:30]Read from MH i2c: E2 0E 00 19 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F9 [14:37:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:37:30]wFMCommunicate OK [14:37:30]SAM_PROTO_GetShiftState done [14:37:30]FM_GetShiftState done [14:37:30]opened in 1729470944 [14:37:30]opened+sec_in_day 1729557344 [14:37:30]quantity*price = 0 [14:37:30]sum+1 = 1 [14:37:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 167 21.10.2024 14:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220700 ФМ: 0000000000871759 ФД: 166056 ФПД: 264106946311448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143749&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166056&fm=264106946311448&tin=02508201610067®Number=0000000000091764&sum=0 [14:37:31]StoreToDocumentArchive [14:37:31]shift 535 fd 166056 [14:37:31]save to /storage/0535/doc_00166056 [14:37:31]save last doc name /storage/0535/doc_00166056 to /storage/kkm_last_doc_name [14:37:31]save OK [14:37:31]Clear old archive folders... [14:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:31]tlvbuf is 01482D20 [14:37:31]SAM_PROTO_ClearQueue [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 09 00 00 [14:37:31]Write to MH i2c: E2 08 00 26 5A 80 09 00 00 00 00 00 00 F2 [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 26 5A 00 90 00 F4 [14:37:31]RAPDU: 90 00 [14:37:31]wFMCommunicate OK [14:37:31]SAM_PROTO_ClearQueue done [14:37:31]KKMCreateOFDPacket [14:37:31]OFDProtocolAddRootSTLVToBuf [14:37:31]FM_MakeSignedData [14:37:31]FM_MakeSignedData [14:37:31]SAM_PROTO_SignData [14:37:31]wFMCommunicate request_size=4 [14:37:31]MH_SAM_APDU [14:37:31]CAPDU: 80 0D 01 02 [14:37:31]Write to MH i2c: E2 08 00 27 5A 80 0D 01 02 00 00 00 00 FA [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:31]Read from MH i2c: E2 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 [14:37:31]MH_I2C_Read... [14:37:31]Read from MH i2c: E2 03 00 27 5A 00 90 00 F5 [14:37:31]RAPDU: 90 00 [14:37:31]wFMCommunicate OK [14:37:31]wFMCommunicate request_size=255 [14:37:31]MH_SAM_APDU [14:37: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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 88 02 00 35 04 06 00 F0 [14:37:31]Write to MH i2c: E2 02 01 28 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 88 02 00 35 04 06 00 F0 00 00 B3 [14:37:31]Write i2c OK [14:37:31]MH_I2C_Read... [14:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:32]Read from MH i2c: E2 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 03 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 03 00 28 5A 00 90 00 F6 [14:37:32]RAPDU: 90 00 [14:37:32]wFMCommunicate OK [14:37:32]wFMCommunicate request_size=10 [14:37:32]MH_SAM_APDU [14:37:32]CAPDU: 80 0D 02 02 05 34 30 B7 B5 18 [14:37:32]Write to MH i2c: E2 0D 00 29 5A 80 0D 02 02 05 00 34 30 B7 B5 18 00 00 EF [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:32]Read from MH i2c: E2 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 03 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 03 00 29 5A 00 90 00 F7 [14:37:32]RAPDU: 90 00 [14:37:32]wFMCommunicate OK [14:37:32]wFMCommunicate request_size=4 [14:37:32]MH_SAM_APDU [14:37:32]CAPDU: 80 0D 03 02 [14:37:32]Write to MH i2c: E2 08 00 2A 5A 80 0D 03 02 00 00 00 00 FF [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:32]OFD Sender: No OFD packet to send [14:37:32]Read from MH i2c: E2 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 0B 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 0B 00 2A 5A 00 4B 34 91 F6 07 05 36 87 90 00 CF [14:37:32]RAPDU: 4B 34 91 F6 07 05 36 87 90 00 [14:37:32]wFMCommunicate OK [14:37:32]SAM_PROTO_SignData done [14:37:32]FM_MakeSignedData done [14:37:32]CreateOFDProtocolMessage [14:37:32]wFMCommunicate request_size=4 [14:37:32]MH_SAM_APDU [14:37:32]CAPDU: 80 11 00 00 [14:37:32]Write to MH i2c: E2 08 00 2B 5A 80 11 00 00 00 00 00 00 FF [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:32]Read from MH i2c: E2 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 17 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: E2 17 00 2B 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 57 [14:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:37:32]wFMCommunicate OK [14:37:32]CreateOFDProtocolMessage done [14:37:32]OFDSenderStorePacket 166056 [14:37:32]StoreOFDPacket docnum=166056 [14:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 83 26 07 01 7B 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 88 02 00 35 04 06 00 F0 34 30 B7 B5 18 4B 34 91 F6 07 05 36 87 [14:37:32]CheckFolder [14:37:32]dirname=/storage/ofd_packets [14:37:32]CheckFolder done [14:37:32]ProducePacketName [14:37:32]name=ofd_packets/00166056 [14:37:32]NVStorageSaveData ofd_packets/00166056 [14:37:32]File name is /storage/ofd_packets/00166056 [14:37:32]Write 301 bytes [14:37:32]NVStorageSaveData done [14:37:32]OFDSenderStorePacket done [14:37:32]KKMCreateOFDPacket done [14:37:32]NVStorageSaveData kkm_last_timestamp [14:37:32]File name is /storage/kkm_last_timestamp [14:37:32]Write 4 bytes [14:37:32]NVStorageSaveData done [14:37:32]ExternCall_PrintAddStr [14:37:32]wPrintStart [14:37:32]Write to MH i2c: 01 00 00 2C 5A 86 [14:37:32]Write i2c OK [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: 01 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: 01 07 00 [14:37:32]MH_I2C_Read... [14:37:32]Read from MH i2c: 01 07 00 2C 5A 00 00 00 00 00 FF 0F 9B [14:37:32]RasterBufferAndPrint [14:37:32]line Счет N : (1)220627 [14:37:32]line ИНН: 02508201610067 [14:37:32]line Контрольно-Кассовый Чек [14:37:32]line ПРОДАЖА [14:37:32]line ТРК (МРК, ГНК) : 13 [14:37:32]line Товар: 2710124130 [14:37:32]line Аи-92-К-5 [14:37:32]line 30.000 * 0.00 [14:37:32]line = 0.00 [14:37:32]line НДС 12% НСП 1% [14:37:32]line > о реализуемом товаре [14:37:32]line ИТОГО: 0.00 [14:37:32]line НСП 1% : 0.00 [14:37:32]line НДС 12% : 0.00 [14:37:32]line Наличными: 0.00 [14:37:32]line Безнал.: 0.00 [14:37:32]line Место: АЗС № 161 "Партнер Нефть" [14:37:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:37:32]line СНО: Общий режим [14:37:32]line Чек 167 21.10.2024 14:37 [14:37:32]line Смена: 535 ФФД: 1.0 [14:37:32]line ЗНМ: 0300000104 [14:37:32]line РНМ: 0000000000091764 [14:37:32]line Версия ККМ: 001 [14:37:32]line Талоны: Топливные Талоны [14:37:32]line 4220700 [14:37:32]line ФМ: 0000000000871759 [14:37:32]line ФД: 166056 [14:37:32]line ФПД: 264106946311448 [14:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T143749&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166056&fm=264106946311448&tin=02508201610067®Number=0000000000091764&sum=0 [14:37:32]OFD Sender: Processing packet 166056 [packets to send 48, broken 47] [14:37:32]ProducePacketName [14:37:32]name=ofd_packets/00166056 [14:37:32]OFD Sender: To server: pG, [14:37:32]CommunicateWithHost lk.salyk.kg:30040 [14:37:32]ConnectInit lk.salyk.kg [14:37:32]written 0, free lines is 4095 [14:37:32]Connected sock=7 [14:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 83 26 07 01 7B 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 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 3D 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 88 02 00 35 04 06 00 F0 34 30 B7 B5 18 4B 34 91 F6 07 05 36 87 [14:37:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5B 58 47 00 CD ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A8 88 02 00 F4 03 04 00 AB 0D 16 67 B6 04 01 00 00 CA F1 E9 40 11 97 38 84 [14:37:32]CommunicateWithHost err = 0 [14:37:32]CheckOFDResponse [14:37:32]1017 (14) - 77093643461234 [14:37:32]1041 (16) - 0000000000871759 [14:37:32]1040 (4) - 166056 [14:37:32]1012 (4) - 21.10.2024 08:15 [14:37:32]1206 (1) - 0 [14:37:32]OFD Sender: Remove packet 166056 [14:37:32]ProducePacketName [14:37:32]name=ofd_packets/00166056 [14:37:32]NVStorageDeleteData [14:37:33]Write to MH i2c: 01 00 00 56 5A B0 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 07 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: 01 07 00 56 5A 00 00 00 00 00 D4 0C 97 [14:37:33]RasterBufferAndPrint [14:37:33]line [14:37:33]line [14:37:33]line [14:37:33]line [14:37:33]line [14:37:33]written 0, free lines is 3290 [14:37:33]MH_Cut [14:37:33]Write to MH i2c: D1 01 00 5D 5A 01 89 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: D1 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: D1 01 00 [14:37:33]MH_I2C_Read... [14:37:33]Read from MH i2c: D1 01 00 5D 5A 00 88 [14:37:33]Write to MH i2c: 01 00 00 5E 5A B8 [14:37:33]Write i2c OK [14:37:33]MH_I2C_Read... [14:37:33]OFD Sender: No OFD packet to send [14:37:33]*** Cut start [14:37:33]*** Partial cut [14:37:33]*** CUTSNS_PIN = 1 [14:37:33]*** CUTSNS_PIN = 0 [14:37:34]*** Brake cut motor [14:37:34]Read from MH i2c: 01 [14:37:34]MH_I2C_Read... [14:37:34]*** Stop cut motor [14:37:34]*** Cut end [14:37:34]Read from MH i2c: 01 07 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: 01 07 00 5E 5A 00 00 00 00 00 FF 0F CD [14:37:34]process_action close_receipt done [14:37:34]requested_data is exist [14:37:34]produce_requested_data [14:37:34]requested_item fm.sn is exist - process it [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 11 00 00 [14:37:34]Write to MH i2c: E2 08 00 5F 5A 80 11 00 00 00 00 00 00 33 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 17 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 17 00 5F 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8B [14:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:37:34]wFMCommunicate OK [14:37:34]requested_item fd.num is exist - process it [14:37:34]SAM_PROTO_GetFieldsCounters [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 00 00 [14:37:34]Write to MH i2c: E2 08 00 60 5A 80 13 00 00 00 00 00 00 36 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 62 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 62 00 60 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_GetFieldsCounters done [14:37:34]requested_item shift.num is exist - process it [14:37:34]requested_item shift.opened is exist - process it [14:37:34]req_shift_opened [14:37:34]FM_GetShiftState [14:37:34]SAM_PROTO_GetShiftState [14:37:34]wFMCommunicate request_size=4 [14:37:34]MH_SAM_APDU [14:37:34]CAPDU: 80 13 01 00 [14:37:34]Write to MH i2c: E2 08 00 61 5A 80 13 01 00 00 00 00 00 38 [14:37:34]Write i2c OK [14:37:34]MH_I2C_Read... [14:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:34]Read from MH i2c: E2 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 [14:37:34]MH_I2C_Read... [14:37:34]Read from MH i2c: E2 0E 00 61 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 41 [14:37:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:37:34]wFMCommunicate OK [14:37:34]SAM_PROTO_GetShiftState done [14:37:34]FM_GetShiftState done [14:37:34]req_shift_opened done [14:37:34]requested_item shift.open_date is exist - process it [14:37:34]req_shift_open_date [14:37:34]req_shift_open_date done [14:37:34]produce_requested_data done [14:37:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166056,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:37:34]process_action_free close_receipt [14:37:34]json_value_free [14:37:34]json_value_free done [14:37:34]process_json_proto returns [14:37:34]Send response to host [14:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166056,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:37:34]free response buf [14:37:34]execute_script done [14:37:34]execute_script returns [14:37:34]free content buf [14:37:34]Sock 6.Close socket [14:37:34]Sock 6.Thread stoped [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [14:38:18]OFD Sender: No OFD packet to send [14:38:23]OFD Sender: No OFD packet to send [14:38:28]OFD Sender: No OFD packet to send [14:38:33]OFD Sender: No OFD packet to send [14:38:38]OFD Sender: No OFD packet to send [14:38:43]OFD Sender: No OFD packet to send [14:38:48]OFD Sender: No OFD packet to send [14:38:53]OFD Sender: No OFD packet to send [14:38:58]OFD Sender: No OFD packet to send [14:39:03]OFD Sender: No OFD packet to send [14:39:08]OFD Sender: No OFD packet to send [14:39:13]OFD Sender: No OFD packet to send [14:39:18]OFD Sender: No OFD packet to send [14:39:23]OFD Sender: No OFD packet to send [14:39:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [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:25]accept exits with 5 [14:40:25]New connection [14:40:25]New thread 3066776932 created [14:40:25]Thread 3066920292 joined [14:40:25]Waiting for new connection... [14:40:25] Sock 5.Parse request [14:40:25]Sock 5.Check first char [14:40:25]Sock 5.First char is OK [14:40:25]request: POST /json_proto HTTP/1.0 [14:40:25]Method: POST [14:40:25]URL: /json_proto [14:40:25]Method is POST - this is cgi request [14:40:25]url: /json_proto [14:40:25]query_string will be loaded in cgi processing [14:40:25]execute_cgi json_proto POST (null) [14:40:25]execute_cgi path=json_proto method=POST [14:40:25]POST find Content-Length [14:40:25]Host: 172.17.53.195:8080 [14:40:25]Content-Length: 766 [14:40:25]Content-Type: application/json [14:40:25] [14:40:25]POST finish read [14:40:25]Found Content-Length = 766 [14:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:25]execute_script... [14: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)220628", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:25]POST & json_proto [14:40:25]process_json_proto [14:40:25]json parsed OK: [14:40:25]protocol is kg_v1.0 [14:40:25]action value=close_receipt [14:40:25]process_action close_receipt [14:40:25]cmd_close_receipt [14:40:25]MH_GetDate [14:40:25]Write to MH i2c: F0 00 00 62 5A AB [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: F0 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: F0 09 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: F0 09 00 62 5A 00 EB 67 16 67 21 48 4A 65 9B [14:40:25]GetLastDocTimeStamp 1729521469 [14:40:25]current date 1729521643 [14:40:25]FM_GetShiftState [14:40:25]SAM_PROTO_GetShiftState [14:40:25]wFMCommunicate request_size=4 [14:40:25]MH_SAM_APDU [14:40:25]CAPDU: 80 13 01 00 [14:40:25]Write to MH i2c: E2 08 00 63 5A 80 13 01 00 00 00 00 00 3A [14:40:25]Write i2c OK [14:40:25]MH_I2C_Read... [14:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:25]Read from MH i2c: E2 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 0E 00 [14:40:25]MH_I2C_Read... [14:40:25]Read from MH i2c: E2 0E 00 63 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 43 [14:40:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:40:25]wFMCommunicate OK [14:40:25]SAM_PROTO_GetShiftState done [14:40:25]FM_GetShiftState done [14:40:25]opened in 1729470944 [14:40:25]opened+sec_in_day 1729557344 [14:40:25]quantity*price = 100050 [14:40:25]sum+1 = 100052 [14:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 168 21.10.2024 14:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166057 ФПД: 264110415133006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144043&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166057&fm=264110415133006&tin=02508201610067®Number=0000000000091764&sum=100051 [14:40:26]StoreToDocumentArchive [14:40:26]shift 535 fd 166057 [14:40:26]save to /storage/0535/doc_00166057 [14:40:26]save last doc name /storage/0535/doc_00166057 to /storage/kkm_last_doc_name [14:40:26]save OK [14:40:26]Clear old archive folders... [14:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:40:26]tlvbuf is 01814FB0 [14:40:26]SAM_PROTO_ClearQueue [14:40:26]wFMCommunicate request_size=4 [14:40:26]MH_SAM_APDU [14:40:26]CAPDU: 80 09 00 00 [14:40:26]Write to MH i2c: E2 08 00 70 5A 80 09 00 00 00 00 00 00 3C [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:26]Read from MH i2c: E2 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 70 5A 00 90 00 3E [14:40:26]RAPDU: 90 00 [14:40:26]wFMCommunicate OK [14:40:26]SAM_PROTO_ClearQueue done [14:40:26]KKMCreateOFDPacket [14:40:26]OFDProtocolAddRootSTLVToBuf [14:40:26]FM_MakeSignedData [14:40:26]FM_MakeSignedData [14:40:26]SAM_PROTO_SignData [14:40:26]wFMCommunicate request_size=4 [14:40:26]MH_SAM_APDU [14:40:26]CAPDU: 80 0D 01 02 [14:40:26]Write to MH i2c: E2 08 00 71 5A 80 0D 01 02 00 00 00 00 44 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:26]Read from MH i2c: E2 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 71 5A 00 90 00 3F [14:40:26]RAPDU: 90 00 [14:40:26]wFMCommunicate OK [14:40:26]wFMCommunicate request_size=255 [14:40:26]MH_SAM_APDU [14:40:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 EB 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 88 02 00 35 04 06 00 F0 34 FF 79 [14:40:26]Write to MH i2c: E2 02 01 72 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 EB 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 88 02 00 35 04 06 00 F0 34 FF 79 00 00 95 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:26]Read from MH i2c: E2 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 72 5A 00 90 00 40 [14:40:26]RAPDU: 90 00 [14:40:26]wFMCommunicate OK [14:40:26]wFMCommunicate request_size=7 [14:40:26]MH_SAM_APDU [14:40:26]CAPDU: 80 0D 02 02 02 B9 4E [14:40:26]Write to MH i2c: E2 0A 00 73 5A 80 0D 02 02 02 00 B9 4E 00 00 52 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:26]Read from MH i2c: E2 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 03 00 73 5A 00 90 00 41 [14:40:26]RAPDU: 90 00 [14:40:26]wFMCommunicate OK [14:40:26]wFMCommunicate request_size=4 [14:40:26]MH_SAM_APDU [14:40:26]CAPDU: 80 0D 03 02 [14:40:26]Write to MH i2c: E2 08 00 74 5A 80 0D 03 02 00 00 00 00 49 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:26]Read from MH i2c: E2 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 0B 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 0B 00 74 5A 00 92 F7 BD 05 23 9A 1C D5 90 00 43 [14:40:26]RAPDU: 92 F7 BD 05 23 9A 1C D5 90 00 [14:40:26]wFMCommunicate OK [14:40:26]SAM_PROTO_SignData done [14:40:26]FM_MakeSignedData done [14:40:26]CreateOFDProtocolMessage [14:40:26]wFMCommunicate request_size=4 [14:40:26]MH_SAM_APDU [14:40:26]CAPDU: 80 11 00 00 [14:40:26]Write to MH i2c: E2 08 00 75 5A 80 11 00 00 00 00 00 00 49 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:26]Read from MH i2c: E2 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 17 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: E2 17 00 75 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [14:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:40:26]wFMCommunicate OK [14:40:26]CreateOFDProtocolMessage done [14:40:26]OFDSenderStorePacket 166057 [14:40:26]StoreOFDPacket docnum=166057 [14:40:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A0 C5 04 01 E6 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 EB 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 88 02 00 35 04 06 00 F0 34 FF 79 B9 4E 92 F7 BD 05 23 9A 1C D5 [14:40:26]CheckFolder [14:40:26]dirname=/storage/ofd_packets [14:40:26]CheckFolder done [14:40:26]ProducePacketName [14:40:26]name=ofd_packets/00166057 [14:40:26]NVStorageSaveData ofd_packets/00166057 [14:40:26]File name is /storage/ofd_packets/00166057 [14:40:26]Write 298 bytes [14:40:26]NVStorageSaveData done [14:40:26]OFDSenderStorePacket done [14:40:26]KKMCreateOFDPacket done [14:40:26]NVStorageSaveData kkm_last_timestamp [14:40:26]File name is /storage/kkm_last_timestamp [14:40:26]Write 4 bytes [14:40:26]NVStorageSaveData done [14:40:26]ExternCall_PrintAddStr [14:40:26]wPrintStart [14:40:26]Write to MH i2c: 01 00 00 76 5A D0 [14:40:26]Write i2c OK [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 07 00 [14:40:26]MH_I2C_Read... [14:40:26]Read from MH i2c: 01 07 00 76 5A 00 00 00 00 00 FF 0F E5 [14:40:26]RasterBufferAndPrint [14:40:26]line Счет N : (1)220628 [14:40:26]line ИНН: 02508201610067 [14:40:26]line Контрольно-Кассовый Чек [14:40:26]line ПРОДАЖА [14:40:26]line ТРК (МРК, ГНК) : 11 [14:40:26]line Товар: 2710194210 [14:40:26]line ДТ-К-5 [14:40:26]line 13.130 * 76.20 [14:40:26]line = 1000.51 [14:40:26]line НДС 12% НСП 1% [14:40:26]line > о реализуемом товаре [14:40:26]line ИТОГО: 1000.51 [14:40:26]line НСП 1% : 8.85 [14:40:26]line НДС 12% : 106.25 [14:40:26]line Наличными: 0.00 [14:40:26]line Безнал.: 1000.51 [14:40:26]line Место: АЗС № 161 "Партнер Нефть" [14:40:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:40:26]line СНО: Общий режим [14:40:26]line Чек 168 21.10.2024 14:40 [14:40:26]line Смена: 535 ФФД: 1.0 [14:40:26]line ЗНМ: 0300000104 [14:40:26]line РНМ: 0000000000091764 [14:40:26]line Версия ККМ: 001 [14:40:26]line Платежная система: Mbank [14:40:26]line ФМ: 0000000000871759 [14:40:26]line ФД: 166057 [14:40:26]line ФПД: 264110415133006 [14:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144043&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166057&fm=264110415133006&tin=02508201610067®Number=0000000000091764&sum=100051 [14:40:27]OFD Sender: Processing packet 166057 [packets to send 48, broken 47] [14:40:27]ProducePacketName [14:40:27]name=ofd_packets/00166057 [14:40:27]OFD Sender: To server: pG, [14:40:27]CommunicateWithHost lk.salyk.kg:30040 [14:40:27]ConnectInit lk.salyk.kg [14:40:27]written 0, free lines is 4095 [14:40:27]Connected sock=7 [14: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 35 39 0C 01 00 00 A0 C5 04 01 E6 02 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 EB 67 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 88 02 00 35 04 06 00 F0 34 FF 79 B9 4E 92 F7 BD 05 23 9A 1C D5 [14:40:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 DE 47 00 02 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 A9 88 02 00 F4 03 04 00 59 0E 16 67 B6 04 01 00 00 B4 67 64 4A C7 E5 AF 08 [14:40:27]CommunicateWithHost err = 0 [14:40:27]CheckOFDResponse [14:40:27]1017 (14) - 77093643461234 [14:40:27]1041 (16) - 0000000000871759 [14:40:27]1040 (4) - 166057 [14:40:27]1012 (4) - 21.10.2024 08:18 [14:40:27]1206 (1) - 0 [14:40:27]OFD Sender: Remove packet 166057 [14:40:27]ProducePacketName [14:40:27]name=ofd_packets/00166057 [14:40:27]NVStorageDeleteData [14:40:27]Write to MH i2c: 01 00 00 9F 5A F9 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 07 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: 01 07 00 9F 5A 00 00 00 00 00 E9 0C F5 [14:40:27]RasterBufferAndPrint [14:40:27]line [14:40:27]line [14:40:27]line [14:40:27]line [14:40:27]line [14:40:27]written 0, free lines is 3311 [14:40:27]MH_Cut [14:40:27]Write to MH i2c: D1 01 00 A6 5A 01 D2 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: D1 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: D1 01 00 [14:40:27]MH_I2C_Read... [14:40:27]Read from MH i2c: D1 01 00 A6 5A 00 D1 [14:40:27]Write to MH i2c: 01 00 00 A7 5A 01 [14:40:27]Write i2c OK [14:40:27]MH_I2C_Read... [14:40:27]OFD Sender: No OFD packet to send [14:40:28]*** Cut start [14:40:28]*** Partial cut [14:40:28]*** CUTSNS_PIN = 1 [14:40:28]*** CUTSNS_PIN = 0 [14:40:28]*** Brake cut motor [14:40:28]Read from MH i2c: 01 [14:40:28]MH_I2C_Read... [14:40:28]*** Stop cut motor [14:40:28]*** Cut end [14:40:28]Read from MH i2c: 01 07 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: 01 07 00 A7 5A 00 00 00 00 00 FF 0F 16 [14:40:28]process_action close_receipt done [14:40:28]requested_data is exist [14:40:28]produce_requested_data [14:40:28]requested_item fm.sn is exist - process it [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 11 00 00 [14:40:28]Write to MH i2c: E2 08 00 A8 5A 80 11 00 00 00 00 00 00 7C [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:28]Read from MH i2c: E2 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 17 00 [14:40:28]MH_I2C_Read... [14:40:28]Read from MH i2c: E2 17 00 A8 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [14:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:40:28]wFMCommunicate OK [14:40:28]requested_item fd.num is exist - process it [14:40:28]SAM_PROTO_GetFieldsCounters [14:40:28]wFMCommunicate request_size=4 [14:40:28]MH_SAM_APDU [14:40:28]CAPDU: 80 13 00 00 [14:40:28]Write to MH i2c: E2 08 00 A9 5A 80 13 00 00 00 00 00 00 7F [14:40:28]Write i2c OK [14:40:28]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 62 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 62 00 A9 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [14: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 A9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_GetFieldsCounters done [14:40:29]requested_item shift.num is exist - process it [14:40:29]requested_item shift.opened is exist - process it [14:40:29]req_shift_opened [14:40:29]FM_GetShiftState [14:40:29]SAM_PROTO_GetShiftState [14:40:29]wFMCommunicate request_size=4 [14:40:29]MH_SAM_APDU [14:40:29]CAPDU: 80 13 01 00 [14:40:29]Write to MH i2c: E2 08 00 AA 5A 80 13 01 00 00 00 00 00 81 [14:40:29]Write i2c OK [14:40:29]MH_I2C_Read... [14:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:29]Read from MH i2c: E2 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0E 00 [14:40:29]MH_I2C_Read... [14:40:29]Read from MH i2c: E2 0E 00 AA 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8A [14:40:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:40:29]wFMCommunicate OK [14:40:29]SAM_PROTO_GetShiftState done [14:40:29]FM_GetShiftState done [14:40:29]req_shift_opened done [14:40:29]requested_item shift.open_date is exist - process it [14:40:29]req_shift_open_date [14:40:29]req_shift_open_date done [14:40:29]produce_requested_data done [14:40:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166057,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:40:29]process_action_free close_receipt [14:40:29]json_value_free [14:40:29]json_value_free done [14:40:29]process_json_proto returns [14:40:29]Send response to host [14:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166057,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:40:29]free response buf [14:40:29]execute_script done [14:40:29]execute_script returns [14:40:29]free content buf [14:40:29]Sock 5.Close socket [14:40:29]Sock 5.Thread stoped [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:58]OFD Sender: No OFD packet to send [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:33]OFD Sender: No OFD packet to send [14:44:38]OFD Sender: No OFD packet to send [14:44:41]accept exits with 6 [14:44:41]New connection [14:44:41]New thread 3066920292 created [14:44:41]Thread 3066776932 joined [14:44:41]Waiting for new connection... [14:44:41] Sock 6.Parse request [14:44:41]Sock 6.Check first char [14:44:41]Sock 6.First char is OK [14:44:41]request: POST /json_proto HTTP/1.0 [14:44:41]Method: POST [14:44:41]URL: /json_proto [14:44:41]Method is POST - this is cgi request [14:44:41]url: /json_proto [14:44:41]query_string will be loaded in cgi processing [14:44:41]execute_cgi json_proto POST (null) [14:44:41]execute_cgi path=json_proto method=POST [14:44:41]POST find Content-Length [14:44:41]Host: 172.17.53.195:8080 [14:44:41]Content-Length: 767 [14:44:41]Content-Type: application/json [14:44:41] [14:44:41]POST finish read [14:44:41]Found Content-Length = 767 [14:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:41]execute_script... [14:44: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)220629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:41]POST & json_proto [14:44:41]process_json_proto [14:44:41]json parsed OK: [14:44:41]protocol is kg_v1.0 [14:44:41]action value=close_receipt [14:44:41]process_action close_receipt [14:44:41]cmd_close_receipt [14:44:41]MH_GetDate [14:44:41]Write to MH i2c: F0 00 00 AB 5A F4 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: F0 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: F0 09 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: F0 09 00 AB 5A 00 EC 68 16 67 21 48 4A 65 E6 [14:44:41]GetLastDocTimeStamp 1729521643 [14:44:41]current date 1729521900 [14:44:41]FM_GetShiftState [14:44:41]SAM_PROTO_GetShiftState [14:44:41]wFMCommunicate request_size=4 [14:44:41]MH_SAM_APDU [14:44:41]CAPDU: 80 13 01 00 [14:44:41]Write to MH i2c: E2 08 00 AC 5A 80 13 01 00 00 00 00 00 83 [14:44:41]Write i2c OK [14:44:41]MH_I2C_Read... [14:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:41]Read from MH i2c: E2 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 0E 00 [14:44:41]MH_I2C_Read... [14:44:41]Read from MH i2c: E2 0E 00 AC 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8C [14:44:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:44:41]wFMCommunicate OK [14:44:41]SAM_PROTO_GetShiftState done [14:44:41]FM_GetShiftState done [14:44:41]opened in 1729470944 [14:44:41]opened+sec_in_day 1729557344 [14:44:41]quantity*price = 70044 [14:44:41]sum+1 = 70045 [14:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 169 21.10.2024 14:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166058 ФПД: 138411139666953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144500&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166058&fm=138411139666953&tin=02508201610067®Number=0000000000091764&sum=70044 [14:44:42]StoreToDocumentArchive [14:44:42]shift 535 fd 166058 [14:44:42]save to /storage/0535/doc_00166058 [14:44:42]save last doc name /storage/0535/doc_00166058 to /storage/kkm_last_doc_name [14:44:42]save OK [14:44:42]Clear old archive folders... [14:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:42]tlvbuf is 0161C160 [14:44:42]SAM_PROTO_ClearQueue [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 09 00 00 [14:44:42]Write to MH i2c: E2 08 00 B9 5A 80 09 00 00 00 00 00 00 85 [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 B9 5A 00 90 00 87 [14:44:42]RAPDU: 90 00 [14:44:42]wFMCommunicate OK [14:44:42]SAM_PROTO_ClearQueue done [14:44:42]KKMCreateOFDPacket [14:44:42]OFDProtocolAddRootSTLVToBuf [14:44:42]FM_MakeSignedData [14:44:42]FM_MakeSignedData [14:44:42]SAM_PROTO_SignData [14:44:42]wFMCommunicate request_size=4 [14:44:42]MH_SAM_APDU [14:44:42]CAPDU: 80 0D 01 02 [14:44:42]Write to MH i2c: E2 08 00 BA 5A 80 0D 01 02 00 00 00 00 8D [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:42]Read from MH i2c: E2 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 [14:44:42]MH_I2C_Read... [14:44:42]Read from MH i2c: E2 03 00 BA 5A 00 90 00 88 [14:44:42]RAPDU: 90 00 [14:44:42]wFMCommunicate OK [14:44:42]wFMCommunicate request_size=255 [14:44:42]MH_SAM_APDU [14:44: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EC 68 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 88 02 00 35 04 06 00 7D [14:44:42]Write to MH i2c: E2 02 01 BB 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EC 68 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 88 02 00 35 04 06 00 7D 00 00 CF [14:44:42]Write i2c OK [14:44:42]MH_I2C_Read... [14:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:43]Read from MH i2c: E2 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 03 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 03 00 BB 5A 00 90 00 89 [14:44:43]RAPDU: 90 00 [14:44:43]wFMCommunicate OK [14:44:43]wFMCommunicate request_size=10 [14:44:43]MH_SAM_APDU [14:44:43]CAPDU: 80 0D 02 02 05 E2 5A D0 14 09 [14:44:43]Write to MH i2c: E2 0D 00 BC 5A 80 0D 02 02 05 00 E2 5A D0 14 09 00 00 C3 [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:43]Read from MH i2c: E2 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 03 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 03 00 BC 5A 00 90 00 8A [14:44:43]RAPDU: 90 00 [14:44:43]wFMCommunicate OK [14:44:43]wFMCommunicate request_size=4 [14:44:43]MH_SAM_APDU [14:44:43]CAPDU: 80 0D 03 02 [14:44:43]Write to MH i2c: E2 08 00 BD 5A 80 0D 03 02 00 00 00 00 92 [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]OFD Sender: No OFD packet to send [14:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:43]Read from MH i2c: E2 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 0B 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 0B 00 BD 5A 00 8C DE 2F A0 20 43 B0 B9 90 00 98 [14:44:43]RAPDU: 8C DE 2F A0 20 43 B0 B9 90 00 [14:44:43]wFMCommunicate OK [14:44:43]SAM_PROTO_SignData done [14:44:43]FM_MakeSignedData done [14:44:43]CreateOFDProtocolMessage [14:44:43]wFMCommunicate request_size=4 [14:44:43]MH_SAM_APDU [14:44:43]CAPDU: 80 11 00 00 [14:44:43]Write to MH i2c: E2 08 00 BE 5A 80 11 00 00 00 00 00 00 92 [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:43]Read from MH i2c: E2 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 17 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: E2 17 00 BE 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [14:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:44:43]wFMCommunicate OK [14:44:43]CreateOFDProtocolMessage done [14:44:43]OFDSenderStorePacket 166058 [14:44:43]StoreOFDPacket docnum=166058 [14:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 DD 07 01 A7 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EC 68 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 88 02 00 35 04 06 00 7D E2 5A D0 14 09 8C DE 2F A0 20 43 B0 B9 [14:44:43]CheckFolder [14:44:43]dirname=/storage/ofd_packets [14:44:43]CheckFolder done [14:44:43]ProducePacketName [14:44:43]name=ofd_packets/00166058 [14:44:43]NVStorageSaveData ofd_packets/00166058 [14:44:43]File name is /storage/ofd_packets/00166058 [14:44:43]Write 301 bytes [14:44:43]NVStorageSaveData done [14:44:43]OFDSenderStorePacket done [14:44:43]KKMCreateOFDPacket done [14:44:43]NVStorageSaveData kkm_last_timestamp [14:44:43]File name is /storage/kkm_last_timestamp [14:44:43]Write 4 bytes [14:44:43]NVStorageSaveData done [14:44:43]ExternCall_PrintAddStr [14:44:43]wPrintStart [14:44:43]Write to MH i2c: 01 00 00 BF 5A 19 [14:44:43]Write i2c OK [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: 01 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: 01 07 00 [14:44:43]MH_I2C_Read... [14:44:43]Read from MH i2c: 01 07 00 BF 5A 00 00 00 00 00 FF 0F 2E [14:44:43]RasterBufferAndPrint [14:44:43]line Счет N : (1)220629 [14:44:43]line ИНН: 02508201610067 [14:44:43]line Контрольно-Кассовый Чек [14:44:43]line ПРОДАЖА [14:44:43]line ТРК (МРК, ГНК) : 43 [14:44:43]line Товар: 2710124130 [14:44:43]line Аи-92-К-5 [14:44:43]line 10.470 * 66.90 [14:44:43]line = 700.44 [14:44:43]line НДС 12% НСП 1% [14:44:43]line > о реализуемом товаре [14:44:43]line ИТОГО: 700.44 [14:44:43]line НСП 1% : 6.20 [14:44:43]line НДС 12% : 74.38 [14:44:43]line Наличными: 0.00 [14:44:43]line Безнал.: 700.44 [14:44:43]line Место: АЗС № 161 "Партнер Нефть" [14:44:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:44:43]line СНО: Общий режим [14:44:43]line Чек 169 21.10.2024 14:45 [14:44:43]line Смена: 535 ФФД: 1.0 [14:44:43]line ЗНМ: 0300000104 [14:44:43]line РНМ: 0000000000091764 [14:44:43]line Версия ККМ: 001 [14:44:43]line Платежная система: Mbank [14:44:43]line ФМ: 0000000000871759 [14:44:43]line ФД: 166058 [14:44:43]line ФПД: 138411139666953 [14:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144500&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166058&fm=138411139666953&tin=02508201610067®Number=0000000000091764&sum=70044 [14:44:43]OFD Sender: Processing packet 166058 [packets to send 48, broken 47] [14:44:43]ProducePacketName [14:44:43]name=ofd_packets/00166058 [14:44:43]OFD Sender: To server: pG, [14:44:43]CommunicateWithHost lk.salyk.kg:30040 [14:44:43]ConnectInit lk.salyk.kg [14:44:43]written 0, free lines is 4095 [14:44:43]Connected sock=7 [14:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 DD 07 01 A7 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 EC 68 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 88 02 00 35 04 06 00 7D E2 5A D0 14 09 8C DE 2F A0 20 43 B0 B9 [14:44:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E9 EF 47 00 EF 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AA 88 02 00 F4 03 04 00 5A 0F 16 67 B6 04 01 00 00 48 5E CD 3C 2E F0 14 77 [14:44:43]CommunicateWithHost err = 0 [14:44:43]CheckOFDResponse [14:44:43]1017 (14) - 77093643461234 [14:44:43]1041 (16) - 0000000000871759 [14:44:43]1040 (4) - 166058 [14:44:43]1012 (4) - 21.10.2024 08:22 [14:44:43]1206 (1) - 0 [14:44:43]OFD Sender: Remove packet 166058 [14:44:43]ProducePacketName [14:44:43]name=ofd_packets/00166058 [14:44:43]NVStorageDeleteData [14:44:44]Write to MH i2c: 01 00 00 E8 5A 42 [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: 01 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: 01 07 00 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: 01 07 00 E8 5A 00 00 00 00 00 EE 0C 43 [14:44:44]RasterBufferAndPrint [14:44:44]line [14:44:44]line [14:44:44]line [14:44:44]line [14:44:44]line [14:44:44]written 0, free lines is 3317 [14:44:44]MH_Cut [14:44:44]Write to MH i2c: D1 01 00 EF 5A 01 1B [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: D1 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: D1 01 00 [14:44:44]MH_I2C_Read... [14:44:44]Read from MH i2c: D1 01 00 EF 5A 00 1A [14:44:44]Write to MH i2c: 01 00 00 F0 5A 4A [14:44:44]Write i2c OK [14:44:44]MH_I2C_Read... [14:44:44]OFD Sender: No OFD packet to send [14:44:44]*** Cut start [14:44:44]*** Partial cut [14:44:44]*** CUTSNS_PIN = 1 [14:44:44]*** CUTSNS_PIN = 0 [14:44:45]*** Brake cut motor [14:44:45]Read from MH i2c: 01 [14:44:45]MH_I2C_Read... [14:44:45]*** Stop cut motor [14:44:45]*** Cut end [14:44:45]Read from MH i2c: 01 07 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: 01 07 00 F0 5A 00 00 00 00 00 FF 0F 5F [14:44:45]process_action close_receipt done [14:44:45]requested_data is exist [14:44:45]produce_requested_data [14:44:45]requested_item fm.sn is exist - process it [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 11 00 00 [14:44:45]Write to MH i2c: E2 08 00 F1 5A 80 11 00 00 00 00 00 00 C5 [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 17 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 17 00 F1 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1D [14:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:44:45]wFMCommunicate OK [14:44:45]requested_item fd.num is exist - process it [14:44:45]SAM_PROTO_GetFieldsCounters [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 13 00 00 [14:44:45]Write to MH i2c: E2 08 00 F2 5A 80 13 00 00 00 00 00 00 C8 [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 62 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 62 00 F2 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [14:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:45]wFMCommunicate OK [14:44:45]SAM_PROTO_GetFieldsCounters done [14:44:45]requested_item shift.num is exist - process it [14:44:45]requested_item shift.opened is exist - process it [14:44:45]req_shift_opened [14:44:45]FM_GetShiftState [14:44:45]SAM_PROTO_GetShiftState [14:44:45]wFMCommunicate request_size=4 [14:44:45]MH_SAM_APDU [14:44:45]CAPDU: 80 13 01 00 [14:44:45]Write to MH i2c: E2 08 00 F3 5A 80 13 01 00 00 00 00 00 CA [14:44:45]Write i2c OK [14:44:45]MH_I2C_Read... [14:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:45]Read from MH i2c: E2 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0E 00 [14:44:45]MH_I2C_Read... [14:44:45]Read from MH i2c: E2 0E 00 F3 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D3 [14:44:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:44:45]wFMCommunicate OK [14:44:45]SAM_PROTO_GetShiftState done [14:44:45]FM_GetShiftState done [14:44:45]req_shift_opened done [14:44:45]requested_item shift.open_date is exist - process it [14:44:45]req_shift_open_date [14:44:45]req_shift_open_date done [14:44:45]produce_requested_data done [14:44:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166058,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:44:45]process_action_free close_receipt [14:44:45]json_value_free [14:44:45]json_value_free done [14:44:45]process_json_proto returns [14:44:45]Send response to host [14:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166058,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:44:45]free response buf [14:44:45]execute_script done [14:44:45]execute_script returns [14:44:45]free content buf [14:44:45]Sock 6.Close socket [14:44:45]Sock 6.Thread stoped [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:58]accept exits with 5 [14:46:58]New connection [14:46:58]New thread 3066776932 created [14:46:58]Thread 3066920292 joined [14:46:58]Waiting for new connection... [14:46:58] Sock 5.Parse request [14:46:58]Sock 5.Check first char [14:46:58]Sock 5.First char is OK [14:46:58]request: POST /json_proto HTTP/1.0 [14:46:58]Method: POST [14:46:58]URL: /json_proto [14:46:58]Method is POST - this is cgi request [14:46:58]url: /json_proto [14:46:58]query_string will be loaded in cgi processing [14:46:58]execute_cgi json_proto POST (null) [14:46:58]execute_cgi path=json_proto method=POST [14:46:58]POST find Content-Length [14:46:58]Host: 172.17.53.195:8080 [14:46:58]Content-Length: 789 [14:46:58]Content-Type: application/json [14:46:58] [14:46:58]POST finish read [14:46:58]Found Content-Length = 789 [14:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A81644", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:58]execute_script... [14:46:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220630", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 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\u000A81644", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:58]POST & json_proto [14:46:58]process_json_proto [14:46:58]json parsed OK: [14:46:58]protocol is kg_v1.0 [14:46:58]action value=close_receipt [14:46:58]process_action close_receipt [14:46:58]cmd_close_receipt [14:46:58]MH_GetDate [14:46:58]Write to MH i2c: F0 00 00 F4 5A 3D [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: F0 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: F0 09 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: F0 09 00 F4 5A 00 75 69 16 67 21 48 4A 65 B9 [14:46:58]GetLastDocTimeStamp 1729521900 [14:46:58]current date 1729522037 [14:46:58]FM_GetShiftState [14:46:58]SAM_PROTO_GetShiftState [14:46:58]wFMCommunicate request_size=4 [14:46:58]MH_SAM_APDU [14:46:58]CAPDU: 80 13 01 00 [14:46:58]Write to MH i2c: E2 08 00 F5 5A 80 13 01 00 00 00 00 00 CC [14:46:58]Write i2c OK [14:46:58]MH_I2C_Read... [14:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:58]Read from MH i2c: E2 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 0E 00 [14:46:58]MH_I2C_Read... [14:46:58]Read from MH i2c: E2 0E 00 F5 5A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D5 [14:46:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:46:58]wFMCommunicate OK [14:46:58]SAM_PROTO_GetShiftState done [14:46:58]FM_GetShiftState done [14:46:58]opened in 1729470944 [14:46:58]opened+sec_in_day 1729557344 [14:46:58]quantity*price = 0 [14:46:58]sum+1 = 1 [14:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 170 21.10.2024 14:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 81644 ФМ: 0000000000871759 ФД: 166059 ФПД: 240465448939216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144717&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166059&fm=240465448939216&tin=02508201610067®Number=0000000000091764&sum=0 [14:46:59]StoreToDocumentArchive [14:46:59]shift 535 fd 166059 [14:46:59]save to /storage/0535/doc_00166059 [14:46:59]save last doc name /storage/0535/doc_00166059 to /storage/kkm_last_doc_name [14:46:59]save OK [14:46:59]Clear old archive folders... [14:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:46:59]tlvbuf is 015128D0 [14:46:59]SAM_PROTO_ClearQueue [14:46:59]wFMCommunicate request_size=4 [14:46:59]MH_SAM_APDU [14:46:59]CAPDU: 80 09 00 00 [14:46:59]Write to MH i2c: E2 08 00 02 5B 80 09 00 00 00 00 00 00 CF [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:59]Read from MH i2c: E2 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: E2 03 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: E2 03 00 02 5B 00 90 00 D1 [14:46:59]RAPDU: 90 00 [14:46:59]wFMCommunicate OK [14:46:59]SAM_PROTO_ClearQueue done [14:46:59]KKMCreateOFDPacket [14:46:59]OFDProtocolAddRootSTLVToBuf [14:46:59]FM_MakeSignedData [14:46:59]FM_MakeSignedData [14:46:59]SAM_PROTO_SignData [14:46:59]wFMCommunicate request_size=4 [14:46:59]MH_SAM_APDU [14:46:59]CAPDU: 80 0D 01 02 [14:46:59]Write to MH i2c: E2 08 00 03 5B 80 0D 01 02 00 00 00 00 D7 [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:59]Read from MH i2c: E2 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: E2 03 00 [14:46:59]MH_I2C_Read... [14:46:59]Read from MH i2c: E2 03 00 03 5B 00 90 00 D2 [14:46:59]RAPDU: 90 00 [14:46:59]wFMCommunicate OK [14:46:59]wFMCommunicate request_size=255 [14:46:59]MH_SAM_APDU [14:46:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 75 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 88 02 00 35 04 06 00 DA B3 B9 AA [14:46:59]Write to MH i2c: E2 02 01 04 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 75 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 88 02 00 35 04 06 00 DA B3 B9 AA 00 00 EC [14:46:59]Write i2c OK [14:46:59]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 04 5B 00 90 00 D3 [14:47:00]RAPDU: 90 00 [14:47:00]wFMCommunicate OK [14:47:00]wFMCommunicate request_size=7 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 0D 02 02 02 2E D0 [14:47:00]Write to MH i2c: E2 0A 00 05 5B 80 0D 02 02 02 00 2E D0 00 00 DC [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 03 00 05 5B 00 90 00 D4 [14:47:00]RAPDU: 90 00 [14:47:00]wFMCommunicate OK [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 0D 03 02 [14:47:00]Write to MH i2c: E2 08 00 06 5B 80 0D 03 02 00 00 00 00 DC [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0B 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0B 00 06 5B 00 65 FF 91 BE 04 54 14 14 90 00 10 [14:47:00]RAPDU: 65 FF 91 BE 04 54 14 14 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_SignData done [14:47:00]FM_MakeSignedData done [14:47:00]CreateOFDProtocolMessage [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 11 00 00 [14:47:00]Write to MH i2c: E2 08 00 07 5B 80 11 00 00 00 00 00 00 DC [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 17 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 17 00 07 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [14:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:00]wFMCommunicate OK [14:47:00]CreateOFDProtocolMessage done [14:47:00]OFDSenderStorePacket 166059 [14:47:00]StoreOFDPacket docnum=166059 [14:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 50 22 04 01 91 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 75 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 88 02 00 35 04 06 00 DA B3 B9 AA 2E D0 65 FF 91 BE 04 54 14 14 [14:47:00]CheckFolder [14:47:00]dirname=/storage/ofd_packets [14:47:00]CheckFolder done [14:47:00]ProducePacketName [14:47:00]name=ofd_packets/00166059 [14:47:00]NVStorageSaveData ofd_packets/00166059 [14:47:00]File name is /storage/ofd_packets/00166059 [14:47:00]Write 298 bytes [14:47:00]NVStorageSaveData done [14:47:00]OFDSenderStorePacket done [14:47:00]KKMCreateOFDPacket done [14:47:00]NVStorageSaveData kkm_last_timestamp [14:47:00]File name is /storage/kkm_last_timestamp [14:47:00]Write 4 bytes [14:47:00]NVStorageSaveData done [14:47:00]ExternCall_PrintAddStr [14:47:00]wPrintStart [14:47:00]Write to MH i2c: 01 00 00 08 5B 63 [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: 01 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: 01 07 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: 01 07 00 08 5B 00 00 00 00 00 FF 0F 78 [14:47:00]RasterBufferAndPrint [14:47:00]line Счет N : (1)220630 [14:47:00]line ИНН: 02508201610067 [14:47:00]line Контрольно-Кассовый Чек [14:47:00]line ПРОДАЖА [14:47:00]line ТРК (МРК, ГНК) : 11 [14:47:00]line Товар: 2710194210 [14:47:00]line ДТ-К-5 [14:47:00]line 20.000 * 0.00 [14:47:00]line = 0.00 [14:47:00]line НДС 12% НСП 1% [14:47:00]line > о реализуемом товаре [14:47:00]line ИТОГО: 0.00 [14:47:00]line НСП 1% : 0.00 [14:47:00]line НДС 12% : 0.00 [14:47:00]line Наличными: 0.00 [14:47:00]line Безнал.: 0.00 [14:47:00]line Место: АЗС № 161 "Партнер Нефть" [14:47:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:47:00]line СНО: Общий режим [14:47:00]line Чек 170 21.10.2024 14:47 [14:47:00]line Смена: 535 ФФД: 1.0 [14:47:00]line ЗНМ: 0300000104 [14:47:00]line РНМ: 0000000000091764 [14:47:00]line Версия ККМ: 001 [14:47:00]line Талоны: Топливная Карта [14:47:00]line 81644 [14:47:00]line ФМ: 0000000000871759 [14:47:00]line ФД: 166059 [14:47:00]line ФПД: 240465448939216 [14:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144717&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166059&fm=240465448939216&tin=02508201610067®Number=0000000000091764&sum=0 [14:47:00]OFD Sender: Processing packet 166059 [packets to send 48, broken 47] [14:47:00]ProducePacketName [14:47:00]name=ofd_packets/00166059 [14:47:00]OFD Sender: To server: pG, [14:47:00]CommunicateWithHost lk.salyk.kg:30040 [14:47:00]ConnectInit lk.salyk.kg [14:47:00]written 0, free lines is 4095 [14:47:00]Connected sock=7 [14:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 50 22 04 01 91 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 AA 00 00 00 F4 03 04 00 75 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 88 02 00 35 04 06 00 DA B3 B9 AA 2E D0 65 FF 91 BE 04 54 14 14 [14:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E7 41 47 00 4E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AB 88 02 00 F4 03 04 00 E3 0F 16 67 B6 04 01 00 00 E0 94 8E 02 22 21 7C BC [14:47:00]CommunicateWithHost err = 0 [14:47:00]CheckOFDResponse [14:47:00]1017 (14) - 77093643461234 [14:47:00]1041 (16) - 0000000000871759 [14:47:00]1040 (4) - 166059 [14:47:00]1012 (4) - 21.10.2024 08:25 [14:47:00]1206 (1) - 0 [14:47:00]OFD Sender: Remove packet 166059 [14:47:00]ProducePacketName [14:47:00]name=ofd_packets/00166059 [14:47:00]NVStorageDeleteData [14:47:01]Write to MH i2c: 01 00 00 32 5B 8D [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 07 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: 01 07 00 32 5B 00 00 00 00 00 D6 0C 76 [14:47:01]RasterBufferAndPrint [14:47:01]line [14:47:01]line [14:47:01]line [14:47:01]line [14:47:01]line [14:47:01]written 0, free lines is 3293 [14:47:01]MH_Cut [14:47:01]Write to MH i2c: D1 01 00 39 5B 01 66 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: D1 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: D1 01 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: D1 01 00 39 5B 00 65 [14:47:01]Write to MH i2c: 01 00 00 3A 5B 95 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]OFD Sender: No OFD packet to send [14:47:01]*** Cut start [14:47:01]*** Partial cut [14:47:01]*** CUTSNS_PIN = 1 [14:47:01]*** CUTSNS_PIN = 0 [14:47:02]*** Brake cut motor [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]*** Stop cut motor [14:47:02]*** Cut end [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 3A 5B 00 00 00 00 00 FF 0F AA [14:47:02]process_action close_receipt done [14:47:02]requested_data is exist [14:47:02]produce_requested_data [14:47:02]requested_item fm.sn is exist - process it [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 11 00 00 [14:47:02]Write to MH i2c: E2 08 00 3B 5B 80 11 00 00 00 00 00 00 10 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 3B 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [14:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:02]wFMCommunicate OK [14:47:02]requested_item fd.num is exist - process it [14:47:02]SAM_PROTO_GetFieldsCounters [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 13 00 00 [14:47:02]Write to MH i2c: E2 08 00 3C 5B 80 13 00 00 00 00 00 00 13 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 62 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 62 00 3C 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [14:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_GetFieldsCounters done [14:47:02]requested_item shift.num is exist - process it [14:47:02]requested_item shift.opened is exist - process it [14:47:02]req_shift_opened [14:47:02]FM_GetShiftState [14:47:02]SAM_PROTO_GetShiftState [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 13 01 00 [14:47:02]Write to MH i2c: E2 08 00 3D 5B 80 13 01 00 00 00 00 00 15 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0E 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0E 00 3D 5B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1E [14:47:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_GetShiftState done [14:47:02]FM_GetShiftState done [14:47:02]req_shift_opened done [14:47:02]requested_item shift.open_date is exist - process it [14:47:02]req_shift_open_date [14:47:02]req_shift_open_date done [14:47:02]produce_requested_data done [14:47:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166059,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:47:02]process_action_free close_receipt [14:47:02]json_value_free [14:47:02]json_value_free done [14:47:02]process_json_proto returns [14:47:02]Send response to host [14:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166059,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:47:02]free response buf [14:47:02]execute_script done [14:47:02]execute_script returns [14:47:02]free content buf [14:47:02]Sock 5.Close socket [14:47:02]Sock 5.Thread stoped [14:47:03]accept exits with 6 [14:47:03]New connection [14:47:03]New thread 3066920292 created [14:47:03]Thread 3066776932 joined [14:47:03]Waiting for new connection... [14:47:03] Sock 6.Parse request [14:47:03]Sock 6.Check first char [14:47:03]Sock 6.First char is OK [14:47:03]request: POST /json_proto HTTP/1.0 [14:47:03]Method: POST [14:47:03]URL: /json_proto [14:47:03]Method is POST - this is cgi request [14:47:03]url: /json_proto [14:47:03]query_string will be loaded in cgi processing [14:47:03]execute_cgi json_proto POST (null) [14:47:03]execute_cgi path=json_proto method=POST [14:47:03]POST find Content-Length [14:47:03]Host: 172.17.53.195:8080 [14:47:03]Content-Length: 678 [14:47:03]Content-Type: application/json [14:47:03] [14:47:03]POST finish read [14:47:03]Found Content-Length = 678 [14:47:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:03]execute_script... [14:47: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)220631", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:03]POST & json_proto [14:47:03]process_json_proto [14:47:03]json parsed OK: [14:47:03]protocol is kg_v1.0 [14:47:03]action value=close_receipt [14:47:03]process_action close_receipt [14:47:03]cmd_close_receipt [14:47:03]MH_GetDate [14:47:03]Write to MH i2c: F0 00 00 3E 5B 88 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: F0 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: F0 09 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: F0 09 00 3E 5B 00 79 69 16 67 21 48 4A 65 08 [14:47:03]GetLastDocTimeStamp 1729522037 [14:47:03]current date 1729522041 [14:47:03]FM_GetShiftState [14:47:03]SAM_PROTO_GetShiftState [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 01 00 [14:47:03]Write to MH i2c: E2 08 00 3F 5B 80 13 01 00 00 00 00 00 17 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0E 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0E 00 3F 5B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 20 [14:47:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_GetShiftState done [14:47:03]FM_GetShiftState done [14:47:03]opened in 1729470944 [14:47:03]opened+sec_in_day 1729557344 [14:47:03]quantity*price = 70044 [14:47:03]sum+1 = 70045 [14:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 171 21.10.2024 14:47 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166060 ФПД: 219864213939811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166060&fm=219864213939811&tin=02508201610067®Number=0000000000091764&sum=70000 [14:47:04]StoreToDocumentArchive [14:47:04]shift 535 fd 166060 [14:47:04]save to /storage/0535/doc_00166060 [14:47:04]save last doc name /storage/0535/doc_00166060 to /storage/kkm_last_doc_name [14:47:04]save OK [14:47:04]Clear old archive folders... [14:47:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:04]tlvbuf is 01A016E0 [14:47:04]SAM_PROTO_ClearQueue [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 09 00 00 [14:47:04]Write to MH i2c: E2 08 00 4C 5B 80 09 00 00 00 00 00 00 19 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 03 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 03 00 4C 5B 00 90 00 1B [14:47:04]RAPDU: 90 00 [14:47:04]wFMCommunicate OK [14:47:04]SAM_PROTO_ClearQueue done [14:47:04]KKMCreateOFDPacket [14:47:04]OFDProtocolAddRootSTLVToBuf [14:47:04]FM_MakeSignedData [14:47:04]FM_MakeSignedData [14:47:04]SAM_PROTO_SignData [14:47:04]wFMCommunicate request_size=4 [14:47:04]MH_SAM_APDU [14:47:04]CAPDU: 80 0D 01 02 [14:47:04]Write to MH i2c: E2 08 00 4D 5B 80 0D 01 02 00 00 00 00 21 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:04]Read from MH i2c: E2 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 03 00 [14:47:04]MH_I2C_Read... [14:47:04]Read from MH i2c: E2 03 00 4D 5B 00 90 00 1C [14:47:04]RAPDU: 90 00 [14:47:04]wFMCommunicate OK [14:47:04]wFMCommunicate request_size=255 [14:47:04]MH_SAM_APDU [14:47: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 88 02 00 35 04 06 00 C7 [14:47:04]Write to MH i2c: E2 02 01 4E 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 88 02 00 35 04 06 00 C7 00 00 E7 [14:47:04]Write i2c OK [14:47:04]MH_I2C_Read... [14:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:05]Read from MH i2c: E2 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 03 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 03 00 4E 5B 00 90 00 1D [14:47:05]RAPDU: 90 00 [14:47:05]wFMCommunicate OK [14:47:05]wFMCommunicate request_size=10 [14:47:05]MH_SAM_APDU [14:47:05]CAPDU: 80 0D 02 02 05 F7 20 5E E6 63 [14:47:05]Write to MH i2c: E2 0D 00 4F 5B 80 0D 02 02 05 00 F7 20 5E E6 63 00 00 EC [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:05]Read from MH i2c: E2 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 03 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 03 00 4F 5B 00 90 00 1E [14:47:05]RAPDU: 90 00 [14:47:05]wFMCommunicate OK [14:47:05]wFMCommunicate request_size=4 [14:47:05]MH_SAM_APDU [14:47:05]CAPDU: 80 0D 03 02 [14:47:05]Write to MH i2c: E2 08 00 50 5B 80 0D 03 02 00 00 00 00 26 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:05]Read from MH i2c: E2 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 0B 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 0B 00 50 5B 00 19 AA C7 F0 9E 39 1A CB 90 00 5D [14:47:05]RAPDU: 19 AA C7 F0 9E 39 1A CB 90 00 [14:47:05]wFMCommunicate OK [14:47:05]SAM_PROTO_SignData done [14:47:05]FM_MakeSignedData done [14:47:05]CreateOFDProtocolMessage [14:47:05]wFMCommunicate request_size=4 [14:47:05]MH_SAM_APDU [14:47:05]CAPDU: 80 11 00 00 [14:47:05]Write to MH i2c: E2 08 00 51 5B 80 11 00 00 00 00 00 00 26 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:05]Read from MH i2c: E2 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 17 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: E2 17 00 51 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7E [14:47:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:05]wFMCommunicate OK [14:47:05]CreateOFDProtocolMessage done [14:47:05]OFDSenderStorePacket 166060 [14:47:05]StoreOFDPacket docnum=166060 [14:47:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 24 07 01 08 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 88 02 00 35 04 06 00 C7 F7 20 5E E6 63 19 AA C7 F0 9E 39 1A CB [14:47:05]CheckFolder [14:47:05]dirname=/storage/ofd_packets [14:47:05]CheckFolder done [14:47:05]ProducePacketName [14:47:05]name=ofd_packets/00166060 [14:47:05]NVStorageSaveData ofd_packets/00166060 [14:47:05]File name is /storage/ofd_packets/00166060 [14:47:05]Write 301 bytes [14:47:05]NVStorageSaveData done [14:47:05]OFDSenderStorePacket done [14:47:05]KKMCreateOFDPacket done [14:47:05]NVStorageSaveData kkm_last_timestamp [14:47:05]File name is /storage/kkm_last_timestamp [14:47:05]Write 4 bytes [14:47:05]NVStorageSaveData done [14:47:05]ExternCall_PrintAddStr [14:47:05]wPrintStart [14:47:05]Write to MH i2c: 01 00 00 52 5B AD [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 07 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 07 00 52 5B 00 00 00 00 00 FF 0F C2 [14:47:05]RasterBufferAndPrint [14:47:05]line Счет N : (1)220631 [14:47:05]line ИНН: 02508201610067 [14:47:05]line Контрольно-Кассовый Чек [14:47:05]line ПРОДАЖА [14:47:05]line ТРК (МРК, ГНК) : 33 [14:47:05]line Товар: 2710124130 [14:47:05]line Аи-92-К-5 [14:47:05]line 10.470 * 66.90 [14:47:05]line = 700.44 [14:47:05]line НДС 12% НСП 1% [14:47:05]line > о реализуемом товаре [14:47:05]line ОКРУГЛЕНИЕ: -0.44 [14:47:05]line ИТОГО: 700.00 [14:47:05]line Внесено: 700.00 [14:47:05]line СДАЧА: 0.00 [14:47:05]line НСП 1% : 6.20 [14:47:05]line НДС 12% : 74.38 [14:47:05]line Наличными: 700.00 [14:47:05]line Безнал.: 0.00 [14:47:05]line Место: АЗС № 161 "Партнер Нефть" [14:47:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:47:05]line СНО: Общий режим [14:47:05]line Чек 171 21.10.2024 14:47 [14:47:05]line Смена: 535 ФФД: 1.0 [14:47:05]line ЗНМ: 0300000104 [14:47:05]line РНМ: 0000000000091764 [14:47:05]line Версия ККМ: 001 [14:47:05]line ФМ: 0000000000871759 [14:47:05]line ФД: 166060 [14:47:05]line ФПД: 219864213939811 [14:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144721&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166060&fm=219864213939811&tin=02508201610067®Number=0000000000091764&sum=70000 [14:47:05]written 0, free lines is 4095 [14:47:05]OFD Sender: Processing packet 166060 [packets to send 48, broken 47] [14:47:05]ProducePacketName [14:47:05]name=ofd_packets/00166060 [14:47:05]OFD Sender: To server: pG, [14:47:05]CommunicateWithHost lk.salyk.kg:30040 [14:47:05]ConnectInit lk.salyk.kg [14:47:05]Connected sock=7 [14:47:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 24 07 01 08 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 79 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 88 02 00 35 04 06 00 C7 F7 20 5E E6 63 19 AA C7 F0 9E 39 1A CB [14:47:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3E 13 47 00 C9 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AC 88 02 00 F4 03 04 00 E8 0F 16 67 B6 04 01 00 00 33 F8 B7 BC 77 A3 AE B8 [14:47:05]CommunicateWithHost err = 0 [14:47:05]CheckOFDResponse [14:47:05]1017 (14) - 77093643461234 [14:47:05]1041 (16) - 0000000000871759 [14:47:05]1040 (4) - 166060 [14:47:05]1012 (4) - 21.10.2024 08:25 [14:47:05]1206 (1) - 0 [14:47:05]OFD Sender: Remove packet 166060 [14:47:05]ProducePacketName [14:47:05]name=ofd_packets/00166060 [14:47:05]NVStorageDeleteData [14:47:05]Write to MH i2c: 01 00 00 7D 5B D8 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 07 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: 01 07 00 7D 5B 00 00 00 00 00 E1 0C CC [14:47:05]RasterBufferAndPrint [14:47:05]line [14:47:05]line [14:47:05]line [14:47:05]line [14:47:05]line [14:47:05]written 0, free lines is 3315 [14:47:05]MH_Cut [14:47:05]Write to MH i2c: D1 01 00 84 5B 01 B1 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: D1 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: D1 01 00 [14:47:05]MH_I2C_Read... [14:47:05]Read from MH i2c: D1 01 00 84 5B 00 B0 [14:47:05]Write to MH i2c: 01 00 00 85 5B E0 [14:47:05]Write i2c OK [14:47:05]MH_I2C_Read... [14:47:06]OFD Sender: No OFD packet to send [14:47:06]*** Cut start [14:47:06]*** Partial cut [14:47:06]*** CUTSNS_PIN = 1 [14:47:06]*** CUTSNS_PIN = 0 [14:47:06]*** Brake cut motor [14:47:07]Read from MH i2c: 01 [14:47:07]MH_I2C_Read... [14:47:07]*** Stop cut motor [14:47:07]*** Cut end [14:47:07]Read from MH i2c: 01 07 00 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: 01 07 00 85 5B 00 00 00 00 00 FF 0F F5 [14:47:07]process_action close_receipt done [14:47:07]requested_data is exist [14:47:07]produce_requested_data [14:47:07]requested_item fm.sn is exist - process it [14:47:07]wFMCommunicate request_size=4 [14:47:07]MH_SAM_APDU [14:47:07]CAPDU: 80 11 00 00 [14:47:07]Write to MH i2c: E2 08 00 86 5B 80 11 00 00 00 00 00 00 5B [14:47:07]Write i2c OK [14:47:07]MH_I2C_Read... [14:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:07]Read from MH i2c: E2 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 17 00 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 17 00 86 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [14:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:07]wFMCommunicate OK [14:47:07]requested_item fd.num is exist - process it [14:47:07]SAM_PROTO_GetFieldsCounters [14:47:07]wFMCommunicate request_size=4 [14:47:07]MH_SAM_APDU [14:47:07]CAPDU: 80 13 00 00 [14:47:07]Write to MH i2c: E2 08 00 87 5B 80 13 00 00 00 00 00 00 5E [14:47:07]Write i2c OK [14:47:07]MH_I2C_Read... [14:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:07]Read from MH i2c: E2 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 62 00 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 62 00 87 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [14:47:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:47:07]wFMCommunicate OK [14:47:07]SAM_PROTO_GetFieldsCounters done [14:47:07]requested_item shift.num is exist - process it [14:47:07]requested_item shift.opened is exist - process it [14:47:07]req_shift_opened [14:47:07]FM_GetShiftState [14:47:07]SAM_PROTO_GetShiftState [14:47:07]wFMCommunicate request_size=4 [14:47:07]MH_SAM_APDU [14:47:07]CAPDU: 80 13 01 00 [14:47:07]Write to MH i2c: E2 08 00 88 5B 80 13 01 00 00 00 00 00 60 [14:47:07]Write i2c OK [14:47:07]MH_I2C_Read... [14:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:07]Read from MH i2c: E2 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 0E 00 [14:47:07]MH_I2C_Read... [14:47:07]Read from MH i2c: E2 0E 00 88 5B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 69 [14:47:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:47:07]wFMCommunicate OK [14:47:07]SAM_PROTO_GetShiftState done [14:47:07]FM_GetShiftState done [14:47:07]req_shift_opened done [14:47:07]requested_item shift.open_date is exist - process it [14:47:07]req_shift_open_date [14:47:07]req_shift_open_date done [14:47:07]produce_requested_data done [14:47:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166060,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:47:07]process_action_free close_receipt [14:47:07]json_value_free [14:47:07]json_value_free done [14:47:07]process_json_proto returns [14:47:07]Send response to host [14:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166060,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:47:07]free response buf [14:47:07]execute_script done [14:47:07]execute_script returns [14:47:07]free content buf [14:47:07]Sock 6.Close socket [14:47:07]Sock 6.Thread stoped [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:47:57]accept exits with 5 [14:47:57]New connection [14:47:57]New thread 3066776932 created [14:47:57]Thread 3066920292 joined [14:47:57]Waiting for new connection... [14:47:57] Sock 5.Parse request [14:47:57]Sock 5.Check first char [14:47:57]Sock 5.First char is OK [14:47:57]request: POST /json_proto HTTP/1.0 [14:47:57]Method: POST [14:47:57]URL: /json_proto [14:47:57]Method is POST - this is cgi request [14:47:57]url: /json_proto [14:47:57]query_string will be loaded in cgi processing [14:47:57]execute_cgi json_proto POST (null) [14:47:57]execute_cgi path=json_proto method=POST [14:47:57]POST find Content-Length [14:47:57]Host: 172.17.53.195:8080 [14:47:57]Content-Length: 800 [14:47:57]Content-Type: application/json [14:47:57] [14:47:57]POST finish read [14:47:57]Found Content-Length = 800 [14:47:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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\u000A4220492", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:57]execute_script... [14:47: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)220632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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\u000A4220492", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:57]POST & json_proto [14:47:57]process_json_proto [14:47:57]json parsed OK: [14:47:57]protocol is kg_v1.0 [14:47:57]action value=close_receipt [14:47:57]process_action close_receipt [14:47:57]cmd_close_receipt [14:47:57]MH_GetDate [14:47:57]Write to MH i2c: F0 00 00 89 5B D3 [14:47:57]Write i2c OK [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: F0 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: F0 09 00 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: F0 09 00 89 5B 00 B0 69 16 67 21 48 4A 65 8A [14:47:57]GetLastDocTimeStamp 1729522041 [14:47:57]current date 1729522096 [14:47:57]FM_GetShiftState [14:47:57]SAM_PROTO_GetShiftState [14:47:57]wFMCommunicate request_size=4 [14:47:57]MH_SAM_APDU [14:47:57]CAPDU: 80 13 01 00 [14:47:57]Write to MH i2c: E2 08 00 8A 5B 80 13 01 00 00 00 00 00 62 [14:47:57]Write i2c OK [14:47:57]MH_I2C_Read... [14:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:57]Read from MH i2c: E2 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: E2 0E 00 [14:47:57]MH_I2C_Read... [14:47:57]Read from MH i2c: E2 0E 00 8A 5B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6B [14:47:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:47:57]wFMCommunicate OK [14:47:57]SAM_PROTO_GetShiftState done [14:47:57]FM_GetShiftState done [14:47:57]opened in 1729470944 [14:47:57]opened+sec_in_day 1729557344 [14:47:57]quantity*price = 0 [14:47:57]sum+1 = 1 [14:47:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 172 21.10.2024 14:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4220492 ФМ: 0000000000871759 ФД: 166061 ФПД: 216030183773147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166061&fm=216030183773147&tin=02508201610067®Number=0000000000091764&sum=0 [14:47:58]StoreToDocumentArchive [14:47:58]shift 535 fd 166061 [14:47:58]save to /storage/0535/doc_00166061 [14:47:58]save last doc name /storage/0535/doc_00166061 to /storage/kkm_last_doc_name [14:47:58]save OK [14:47:58]Clear old archive folders... [14:47:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:58]tlvbuf is 015227B0 [14:47:58]SAM_PROTO_ClearQueue [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 09 00 00 [14:47:58]Write to MH i2c: E2 08 00 97 5B 80 09 00 00 00 00 00 00 64 [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 97 5B 00 90 00 66 [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]SAM_PROTO_ClearQueue done [14:47:58]KKMCreateOFDPacket [14:47:58]OFDProtocolAddRootSTLVToBuf [14:47:58]FM_MakeSignedData [14:47:58]FM_MakeSignedData [14:47:58]SAM_PROTO_SignData [14:47:58]wFMCommunicate request_size=4 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 01 02 [14:47:58]Write to MH i2c: E2 08 00 98 5B 80 0D 01 02 00 00 00 00 6C [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:58]Read from MH i2c: E2 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 [14:47:58]MH_I2C_Read... [14:47:58]Read from MH i2c: E2 03 00 98 5B 00 90 00 67 [14:47:58]RAPDU: 90 00 [14:47:58]wFMCommunicate OK [14:47:58]wFMCommunicate request_size=255 [14:47:58]MH_SAM_APDU [14:47:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 AC 00 00 00 F4 03 04 00 B0 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 88 02 00 35 04 06 00 C4 [14:47:58]Write to MH i2c: E2 02 01 99 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 AC 00 00 00 F4 03 04 00 B0 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 88 02 00 35 04 06 00 C4 00 00 0A [14:47:58]Write i2c OK [14:47:58]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 99 5B 00 90 00 68 [14:47:59]RAPDU: 90 00 [14:47:59]wFMCommunicate OK [14:47:59]wFMCommunicate request_size=10 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 0D 02 02 05 7A 72 5D 53 DB [14:47:59]Write to MH i2c: E2 0D 00 9A 5B 80 0D 02 02 05 00 7A 72 5D 53 DB 00 00 F0 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 03 00 9A 5B 00 90 00 69 [14:47:59]RAPDU: 90 00 [14:47:59]wFMCommunicate OK [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 0D 03 02 [14:47:59]Write to MH i2c: E2 08 00 9B 5B 80 0D 03 02 00 00 00 00 71 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0B 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 0B 00 9B 5B 00 37 8E 7A 57 8E 91 BF AA 90 00 90 [14:47:59]RAPDU: 37 8E 7A 57 8E 91 BF AA 90 00 [14:47:59]wFMCommunicate OK [14:47:59]SAM_PROTO_SignData done [14:47:59]FM_MakeSignedData done [14:47:59]CreateOFDProtocolMessage [14:47:59]wFMCommunicate request_size=4 [14:47:59]MH_SAM_APDU [14:47:59]CAPDU: 80 11 00 00 [14:47:59]Write to MH i2c: E2 08 00 9C 5B 80 11 00 00 00 00 00 00 71 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:59]Read from MH i2c: E2 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 17 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: E2 17 00 9C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C9 [14:47:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:47:59]wFMCommunicate OK [14:47:59]CreateOFDProtocolMessage done [14:47:59]OFDSenderStorePacket 166061 [14:47:59]StoreOFDPacket docnum=166061 [14:47:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF D0 07 01 D7 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 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 AC 00 00 00 F4 03 04 00 B0 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 88 02 00 35 04 06 00 C4 7A 72 5D 53 DB 37 8E 7A 57 8E 91 BF AA [14:47:59]CheckFolder [14:47:59]dirname=/storage/ofd_packets [14:47:59]CheckFolder done [14:47:59]ProducePacketName [14:47:59]name=ofd_packets/00166061 [14:47:59]NVStorageSaveData ofd_packets/00166061 [14:47:59]File name is /storage/ofd_packets/00166061 [14:47:59]Write 301 bytes [14:47:59]NVStorageSaveData done [14:47:59]OFDSenderStorePacket done [14:47:59]KKMCreateOFDPacket done [14:47:59]NVStorageSaveData kkm_last_timestamp [14:47:59]File name is /storage/kkm_last_timestamp [14:47:59]Write 4 bytes [14:47:59]NVStorageSaveData done [14:47:59]ExternCall_PrintAddStr [14:47:59]wPrintStart [14:47:59]Write to MH i2c: 01 00 00 9D 5B F8 [14:47:59]Write i2c OK [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 [14:47:59]MH_I2C_Read... [14:47:59]Read from MH i2c: 01 07 00 9D 5B 00 00 00 00 00 FF 0F 0D [14:47:59]RasterBufferAndPrint [14:47:59]line Счет N : (1)220632 [14:47:59]line ИНН: 02508201610067 [14:47:59]line Контрольно-Кассовый Чек [14:47:59]line ПРОДАЖА [14:47:59]line ТРК (МРК, ГНК) : 23 [14:47:59]line Товар: 2710124130 [14:47:59]line Аи-92-К-5 [14:47:59]line 10.000 * 0.00 [14:47:59]line = 0.00 [14:47:59]line НДС 12% НСП 1% [14:47:59]line > о реализуемом товаре [14:47:59]line ИТОГО: 0.00 [14:47:59]line НСП 1% : 0.00 [14:47:59]line НДС 12% : 0.00 [14:47:59]line Наличными: 0.00 [14:47:59]line Безнал.: 0.00 [14:47:59]line Место: АЗС № 161 "Партнер Нефть" [14:47:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:47:59]line СНО: Общий режим [14:47:59]line Чек 172 21.10.2024 14:48 [14:47:59]line Смена: 535 ФФД: 1.0 [14:47:59]line ЗНМ: 0300000104 [14:47:59]line РНМ: 0000000000091764 [14:47:59]line Версия ККМ: 001 [14:47:59]line Талоны: Топливные Талоны [14:47:59]line 4220492 [14:47:59]line ФМ: 0000000000871759 [14:47:59]line ФД: 166061 [14:47:59]line ФПД: 216030183773147 [14:47:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T144816&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166061&fm=216030183773147&tin=02508201610067®Number=0000000000091764&sum=0 [14:47:59]written 0, free lines is 4095 [14:47:59]OFD Sender: Processing packet 166061 [packets to send 48, broken 47] [14:47:59]ProducePacketName [14:47:59]name=ofd_packets/00166061 [14:47:59]OFD Sender: To server: pG, [14:47:59]CommunicateWithHost lk.salyk.kg:30040 [14:47:59]ConnectInit lk.salyk.kg [14:47:59]Connected sock=7 [14:47:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 EF D0 07 01 D7 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 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 AC 00 00 00 F4 03 04 00 B0 69 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 88 02 00 35 04 06 00 C4 7A 72 5D 53 DB 37 8E 7A 57 8E 91 BF AA [14:48:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8B 69 47 00 7E BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AD 88 02 00 F4 03 04 00 1E 10 16 67 B6 04 01 00 00 7C 49 AA 81 3F CC 89 CF [14:48:00]CommunicateWithHost err = 0 [14:48:00]CheckOFDResponse [14:48:00]1017 (14) - 77093643461234 [14:48:00]1041 (16) - 0000000000871759 [14:48:00]1040 (4) - 166061 [14:48:00]1012 (4) - 21.10.2024 08:26 [14:48:00]1206 (1) - 0 [14:48:00]OFD Sender: Remove packet 166061 [14:48:00]ProducePacketName [14:48:00]name=ofd_packets/00166061 [14:48:00]NVStorageDeleteData [14:48:00]Write to MH i2c: 01 00 00 C7 5B 22 [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 07 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: 01 07 00 C7 5B 00 00 00 00 00 D4 0C 09 [14:48:00]RasterBufferAndPrint [14:48:00]line [14:48:00]line [14:48:00]line [14:48:00]line [14:48:00]line [14:48:00]written 0, free lines is 3290 [14:48:00]MH_Cut [14:48:00]Write to MH i2c: D1 01 00 CE 5B 01 FB [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: D1 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: D1 01 00 [14:48:00]MH_I2C_Read... [14:48:00]Read from MH i2c: D1 01 00 CE 5B 00 FA [14:48:00]Write to MH i2c: 01 00 00 CF 5B 2A [14:48:00]Write i2c OK [14:48:00]MH_I2C_Read... [14:48:00]OFD Sender: No OFD packet to send [14:48:00]*** Cut start [14:48:00]*** Partial cut [14:48:00]*** CUTSNS_PIN = 1 [14:48:00]*** CUTSNS_PIN = 0 [14:48:01]*** Brake cut motor [14:48:01]Read from MH i2c: 01 [14:48:01]MH_I2C_Read... [14:48:01]*** Stop cut motor [14:48:01]*** Cut end [14:48:01]Read from MH i2c: 01 07 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: 01 07 00 CF 5B 00 00 00 00 00 FF 0F 3F [14:48:01]process_action close_receipt done [14:48:01]requested_data is exist [14:48:01]produce_requested_data [14:48:01]requested_item fm.sn is exist - process it [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 11 00 00 [14:48:01]Write to MH i2c: E2 08 00 D0 5B 80 11 00 00 00 00 00 00 A5 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 17 00 D0 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FD [14:48:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:48:01]wFMCommunicate OK [14:48:01]requested_item fd.num is exist - process it [14:48:01]SAM_PROTO_GetFieldsCounters [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 13 00 00 [14:48:01]Write to MH i2c: E2 08 00 D1 5B 80 13 00 00 00 00 00 00 A8 [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 62 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 62 00 D1 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [14:48:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_GetFieldsCounters done [14:48:01]requested_item shift.num is exist - process it [14:48:01]requested_item shift.opened is exist - process it [14:48:01]req_shift_opened [14:48:01]FM_GetShiftState [14:48:01]SAM_PROTO_GetShiftState [14:48:01]wFMCommunicate request_size=4 [14:48:01]MH_SAM_APDU [14:48:01]CAPDU: 80 13 01 00 [14:48:01]Write to MH i2c: E2 08 00 D2 5B 80 13 01 00 00 00 00 00 AA [14:48:01]Write i2c OK [14:48:01]MH_I2C_Read... [14:48:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:01]Read from MH i2c: E2 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0E 00 [14:48:01]MH_I2C_Read... [14:48:01]Read from MH i2c: E2 0E 00 D2 5B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B3 [14:48:01]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:48:01]wFMCommunicate OK [14:48:01]SAM_PROTO_GetShiftState done [14:48:01]FM_GetShiftState done [14:48:01]req_shift_opened done [14:48:01]requested_item shift.open_date is exist - process it [14:48:01]req_shift_open_date [14:48:01]req_shift_open_date done [14:48:01]produce_requested_data done [14:48:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166061,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:48:01]process_action_free close_receipt [14:48:01]json_value_free [14:48:01]json_value_free done [14:48:01]process_json_proto returns [14:48:01]Send response to host [14:48:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166061,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:48:01]free response buf [14:48:01]execute_script done [14:48:01]execute_script returns [14:48:01]free content buf [14:48:01]Sock 5.Close socket [14:48:01]Sock 5.Thread stoped [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:11]accept exits with 6 [14:55:11]New connection [14:55:11]New thread 3066920292 created [14:55:11]Thread 3066776932 joined [14:55:11]Waiting for new connection... [14:55:11] Sock 6.Parse request [14:55:11]Sock 6.Check first char [14:55:11]Sock 6.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.53.195:8080 [14:55:11]Content-Length: 679 [14:55:11]Content-Type: application/json [14:55:11] [14:55:11]POST finish read [14:55:11]Found Content-Length = 679 [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)220633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)220633", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 21.000, "sum" : 1600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 D3 5B 1D [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 D3 5B 00 62 6B 16 67 21 48 4A 65 88 [14:55:11]GetLastDocTimeStamp 1729522096 [14:55:11]current date 1729522530 [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 D4 5B 80 13 01 00 00 00 00 00 AC [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 D4 5B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B5 [14:55:11]RAPDU: 09 00 01 E0 A1 15 67 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 1729470944 [14:55:11]opened+sec_in_day 1729557344 [14:55:11]quantity*price = 160020 [14:55:11]sum+1 = 160021 [14:55:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.93 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 173 21.10.2024 14:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166062 ФПД: 188487053939529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166062&fm=188487053939529&tin=02508201610067®Number=0000000000091764&sum=160000 [14:55:12]StoreToDocumentArchive [14:55:12]shift 535 fd 166062 [14:55:12]save to /storage/0535/doc_00166062 [14:55:12]save last doc name /storage/0535/doc_00166062 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=248 [14:55:12]tlvbuf is 01C36680 [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 E1 5B 80 09 00 00 00 00 00 00 AE [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 E1 5B 00 90 00 B0 [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 E2 5B 80 0D 01 02 00 00 00 00 B6 [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 E2 5B 00 90 00 B1 [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 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 62 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 88 02 00 35 04 06 00 AB 6D 8F E5 [14:55:12]Write to MH i2c: E2 02 01 E3 5B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 62 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 88 02 00 35 04 06 00 AB 6D 8F E5 00 00 C6 [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 E3 5B 00 90 00 B2 [14:55:13]RAPDU: 90 00 [14:55:13]wFMCommunicate OK [14:55:13]wFMCommunicate request_size=7 [14:55:13]MH_SAM_APDU [14:55:13]CAPDU: 80 0D 02 02 02 13 49 [14:55:13]Write to MH i2c: E2 0A 00 E4 5B 80 0D 02 02 02 00 13 49 00 00 19 [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 E4 5B 00 90 00 B3 [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 E5 5B 80 0D 03 02 00 00 00 00 BB [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 E5 5B 00 46 A3 60 23 73 E1 C5 B0 90 00 F1 [14:55:13]RAPDU: 46 A3 60 23 73 E1 C5 B0 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 E6 5B 80 11 00 00 00 00 00 00 BB [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 E6 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [14:55:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:55:13]wFMCommunicate OK [14:55:13]CreateOFDProtocolMessage done [14:55:13]OFDSenderStorePacket 166062 [14:55:13]StoreOFDPacket docnum=166062 [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 35 39 0C 01 00 00 A2 8C 04 01 EE B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 62 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 88 02 00 35 04 06 00 AB 6D 8F E5 13 49 46 A3 60 23 73 E1 C5 B0 [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/00166062 [14:55:13]NVStorageSaveData ofd_packets/00166062 [14:55:13]File name is /storage/ofd_packets/00166062 [14:55:13]Write 298 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 E7 5B 42 [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 E7 5B 00 00 00 00 00 FF 0F 57 [14:55:13]RasterBufferAndPrint [14:55:13]line Счет N : (1)220633 [14:55:13]line ИНН: 02508201610067 [14:55:13]line Контрольно-Кассовый Чек [14:55:13]line ПРОДАЖА [14:55:13]line ТРК (МРК, ГНК) : 21 [14:55:13]line Товар: 2710194210 [14:55:13]line ДТ-К-5 [14:55:13]line 21.000 * 76.20 [14:55:13]line = 1600.20 [14:55:13]line НДС 12% НСП 1% [14:55:13]line > о реализуемом товаре [14:55:13]line ОКРУГЛЕНИЕ: -0.20 [14:55:13]line ИТОГО: 1600.00 [14:55:13]line Внесено: 1600.00 [14:55:13]line СДАЧА: 0.00 [14:55:13]line НСП 1% : 14.16 [14:55:13]line НДС 12% : 169.93 [14:55:13]line Наличными: 1600.00 [14:55:13]line Безнал.: 0.00 [14:55:13]line Место: АЗС № 161 "Партнер Нефть" [14:55:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:55:13]line СНО: Общий режим [14:55:13]line Чек 173 21.10.2024 14:55 [14:55:13]line Смена: 535 ФФД: 1.0 [14:55:13]line ЗНМ: 0300000104 [14:55:13]line РНМ: 0000000000091764 [14:55:13]line Версия ККМ: 001 [14:55:13]line ФМ: 0000000000871759 [14:55:13]line ФД: 166062 [14:55:13]line ФПД: 188487053939529 [14:55:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145530&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166062&fm=188487053939529&tin=02508201610067®Number=0000000000091764&sum=160000 [14:55:13]OFD Sender: Processing packet 166062 [packets to send 48, broken 47] [14:55:13]ProducePacketName [14:55:13]name=ofd_packets/00166062 [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=9 [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 35 39 0C 01 00 00 A2 8C 04 01 EE B1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 08 52 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 14 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 62 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AE 88 02 00 35 04 06 00 AB 6D 8F E5 13 49 46 A3 60 23 73 E1 C5 B0 [14:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 89 A2 47 00 8A 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 35 39 10 04 04 00 AE 88 02 00 F4 03 04 00 D0 11 16 67 B6 04 01 00 00 8D E0 EE E3 DF 82 92 21 [14:55:13]CommunicateWithHost err = 0 [14:55:13]CheckOFDResponse [14:55:13]1017 (14) - 77093643461234 [14:55:13]1041 (16) - 0000000000871759 [14:55:13]1040 (4) - 166062 [14:55:13]1012 (4) - 21.10.2024 08:33 [14:55:13]1206 (1) - 0 [14:55:13]OFD Sender: Remove packet 166062 [14:55:13]ProducePacketName [14:55:13]name=ofd_packets/00166062 [14:55:13]NVStorageDeleteData [14:55:13]Write to MH i2c: 01 00 00 12 5C 6E [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 12 5C 00 00 00 00 00 D6 0C 57 [14:55:13]RasterBufferAndPrint [14:55:13]line [14:55:13]line [14:55:13]line [14:55:13]line [14:55:13]line [14:55:13]written 0, free lines is 3292 [14:55:13]MH_Cut [14:55:13]Write to MH i2c: D1 01 00 19 5C 01 47 [14:55:13]Write i2c OK [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: D1 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: D1 01 00 [14:55:13]MH_I2C_Read... [14:55:13]Read from MH i2c: D1 01 00 19 5C 00 46 [14:55:13]Write to MH i2c: 01 00 00 1A 5C 76 [14:55:13]Write i2c OK [14:55:13]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 1A 5C 00 00 00 00 00 FF 0F 8B [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 1B 5C 80 11 00 00 00 00 00 00 F1 [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 1B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 49 [14:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 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 1C 5C 80 13 00 00 00 00 00 00 F4 [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 1C 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 1D 5C 80 13 01 00 00 00 00 00 F6 [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 1D 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FF [14:55:15]RAPDU: 09 00 01 E0 A1 15 67 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":"0000000000871759","fd.num":166062,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [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":"0000000000871759","fd.num":166062,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [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 6.Close socket [14:55:15]Sock 6.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:21]accept exits with 5 [14:57:21]New connection [14:57:21]New thread 3066776932 created [14:57:21]Thread 3066920292 joined [14:57:21]Waiting for new connection... [14:57:21] Sock 5.Parse request [14:57:21]Sock 5.Check first char [14:57:21]Sock 5.First char is OK [14:57:21]request: POST /json_proto HTTP/1.0 [14:57:21]Method: POST [14:57:21]URL: /json_proto [14:57:21]Method is POST - this is cgi request [14:57:21]url: /json_proto [14:57:21]query_string will be loaded in cgi processing [14:57:21]execute_cgi json_proto POST (null) [14:57:21]execute_cgi path=json_proto method=POST [14:57:21]POST find Content-Length [14:57:21]Host: 172.17.53.195:8080 [14:57:21]Content-Length: 769 [14:57:21]Content-Type: application/json [14:57:21] [14:57:21]POST finish read [14:57:21]Found Content-Length = 769 [14:57:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:21]execute_script... [14:57:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:21]POST & json_proto [14:57:21]process_json_proto [14:57:21]json parsed OK: [14:57:21]protocol is kg_v1.0 [14:57:21]action value=close_receipt [14:57:21]process_action close_receipt [14:57:21]cmd_close_receipt [14:57:21]MH_GetDate [14:57:21]Write to MH i2c: F0 00 00 1E 5C 69 [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: F0 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: F0 09 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: F0 09 00 1E 5C 00 E4 6B 16 67 21 48 4A 65 56 [14:57:21]GetLastDocTimeStamp 1729522530 [14:57:21]current date 1729522660 [14:57:21]FM_GetShiftState [14:57:21]SAM_PROTO_GetShiftState [14:57:21]wFMCommunicate request_size=4 [14:57:21]MH_SAM_APDU [14:57:21]CAPDU: 80 13 01 00 [14:57:21]Write to MH i2c: E2 08 00 1F 5C 80 13 01 00 00 00 00 00 F8 [14:57:21]Write i2c OK [14:57:21]MH_I2C_Read... [14:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:21]Read from MH i2c: E2 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 0E 00 [14:57:21]MH_I2C_Read... [14:57:21]Read from MH i2c: E2 0E 00 1F 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 01 [14:57:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:57:21]wFMCommunicate OK [14:57:21]SAM_PROTO_GetShiftState done [14:57:21]FM_GetShiftState done [14:57:21]opened in 1729470944 [14:57:21]opened+sec_in_day 1729557344 [14:57:21]quantity*price = 100015 [14:57:21]sum+1 = 100017 [14:57:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 174 21.10.2024 14:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166063 ФПД: 138184337595381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166063&fm=138184337595381&tin=02508201610067®Number=0000000000091764&sum=100016 [14:57:23]StoreToDocumentArchive [14:57:23]shift 535 fd 166063 [14:57:23]save to /storage/0535/doc_00166063 [14:57:23]save last doc name /storage/0535/doc_00166063 to /storage/kkm_last_doc_name [14:57:23]save OK [14:57:23]Clear old archive folders... [14:57:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:23]tlvbuf is 01640160 [14:57:23]SAM_PROTO_ClearQueue [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 09 00 00 [14:57:23]Write to MH i2c: E2 08 00 2C 5C 80 09 00 00 00 00 00 00 FA [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 2C 5C 00 90 00 FC [14:57:23]RAPDU: 90 00 [14:57:23]wFMCommunicate OK [14:57:23]SAM_PROTO_ClearQueue done [14:57:23]KKMCreateOFDPacket [14:57:23]OFDProtocolAddRootSTLVToBuf [14:57:23]FM_MakeSignedData [14:57:23]FM_MakeSignedData [14:57:23]SAM_PROTO_SignData [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 0D 01 02 [14:57:23]Write to MH i2c: E2 08 00 2D 5C 80 0D 01 02 00 00 00 00 02 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 2D 5C 00 90 00 FD [14:57:23]RAPDU: 90 00 [14:57:23]wFMCommunicate OK [14:57:23]wFMCommunicate request_size=255 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E4 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 88 02 00 35 04 06 00 7D [14:57:23]Write to MH i2c: E2 02 01 2E 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E4 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 88 02 00 35 04 06 00 7D 00 00 FB [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 2E 5C 00 90 00 FE [14:57:23]RAPDU: 90 00 [14:57:23]wFMCommunicate OK [14:57:23]wFMCommunicate request_size=10 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 0D 02 02 05 AD 8C 5B 1B F5 [14:57:23]Write to MH i2c: E2 0D 00 2F 5C 80 0D 02 02 05 00 AD 8C 5B 1B F5 00 00 B3 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 03 00 2F 5C 00 90 00 FF [14:57:23]RAPDU: 90 00 [14:57:23]wFMCommunicate OK [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 0D 03 02 [14:57:23]Write to MH i2c: E2 08 00 30 5C 80 0D 03 02 00 00 00 00 07 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 0B 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 0B 00 30 5C 00 7E 4E 9F E4 EE D2 BD 4E 90 00 22 [14:57:23]RAPDU: 7E 4E 9F E4 EE D2 BD 4E 90 00 [14:57:23]wFMCommunicate OK [14:57:23]SAM_PROTO_SignData done [14:57:23]FM_MakeSignedData done [14:57:23]CreateOFDProtocolMessage [14:57:23]wFMCommunicate request_size=4 [14:57:23]MH_SAM_APDU [14:57:23]CAPDU: 80 11 00 00 [14:57:23]Write to MH i2c: E2 08 00 31 5C 80 11 00 00 00 00 00 00 07 [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:23]Read from MH i2c: E2 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 17 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: E2 17 00 31 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [14:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:57:23]wFMCommunicate OK [14:57:23]CreateOFDProtocolMessage done [14:57:23]OFDSenderStorePacket 166063 [14:57:23]StoreOFDPacket docnum=166063 [14:57:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 79 07 01 DF BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E4 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 88 02 00 35 04 06 00 7D AD 8C 5B 1B F5 7E 4E 9F E4 EE D2 BD 4E [14:57:23]CheckFolder [14:57:23]dirname=/storage/ofd_packets [14:57:23]CheckFolder done [14:57:23]ProducePacketName [14:57:23]name=ofd_packets/00166063 [14:57:23]NVStorageSaveData ofd_packets/00166063 [14:57:23]File name is /storage/ofd_packets/00166063 [14:57:23]Write 301 bytes [14:57:23]NVStorageSaveData done [14:57:23]OFDSenderStorePacket done [14:57:23]KKMCreateOFDPacket done [14:57:23]NVStorageSaveData kkm_last_timestamp [14:57:23]File name is /storage/kkm_last_timestamp [14:57:23]Write 4 bytes [14:57:23]NVStorageSaveData done [14:57:23]ExternCall_PrintAddStr [14:57:23]wPrintStart [14:57:23]Write to MH i2c: 01 00 00 32 5C 8E [14:57:23]Write i2c OK [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: 01 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: 01 07 00 [14:57:23]MH_I2C_Read... [14:57:23]Read from MH i2c: 01 07 00 32 5C 00 00 00 00 00 FF 0F A3 [14:57:23]RasterBufferAndPrint [14:57:23]line Счет N : (1)220634 [14:57:23]line ИНН: 02508201610067 [14:57:23]line Контрольно-Кассовый Чек [14:57:23]line ПРОДАЖА [14:57:23]line ТРК (МРК, ГНК) : 13 [14:57:23]line Товар: 2710124130 [14:57:23]line Аи-92-К-5 [14:57:23]line 14.950 * 66.90 [14:57:23]line = 1000.16 [14:57:23]line НДС 12% НСП 1% [14:57:23]line > о реализуемом товаре [14:57:23]line ИТОГО: 1000.16 [14:57:23]line НСП 1% : 8.85 [14:57:23]line НДС 12% : 106.21 [14:57:23]line Наличными: 0.00 [14:57:23]line Безнал.: 1000.16 [14:57:23]line Место: АЗС № 161 "Партнер Нефть" [14:57:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:57:23]line СНО: Общий режим [14:57:23]line Чек 174 21.10.2024 14:57 [14:57:23]line Смена: 535 ФФД: 1.0 [14:57:23]line ЗНМ: 0300000104 [14:57:23]line РНМ: 0000000000091764 [14:57:23]line Версия ККМ: 001 [14:57:23]line Платежная система: Mbank [14:57:23]line ФМ: 0000000000871759 [14:57:23]line ФД: 166063 [14:57:23]line ФПД: 138184337595381 [14:57:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166063&fm=138184337595381&tin=02508201610067®Number=0000000000091764&sum=100016 [14:57:23]written 0, free lines is 4095 [14:57:23]OFD Sender: Processing packet 166063 [packets to send 48, broken 47] [14:57:23]ProducePacketName [14:57:23]name=ofd_packets/00166063 [14:57:23]OFD Sender: To server: pG, [14:57:23]CommunicateWithHost lk.salyk.kg:30040 [14:57:23]ConnectInit lk.salyk.kg [14:57:24]Connected sock=7 [14:57:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 49 79 07 01 DF BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 E4 6B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 88 02 00 35 04 06 00 7D AD 8C 5B 1B F5 7E 4E 9F E4 EE D2 BD 4E [14:57:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B7 11 47 00 3A F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 AF 88 02 00 F4 03 04 00 52 12 16 67 B6 04 01 00 00 87 0E 81 14 FD DB 9D E1 [14:57:24]CommunicateWithHost err = 0 [14:57:24]CheckOFDResponse [14:57:24]1017 (14) - 77093643461234 [14:57:24]1041 (16) - 0000000000871759 [14:57:24]1040 (4) - 166063 [14:57:24]1012 (4) - 21.10.2024 08:35 [14:57:24]1206 (1) - 0 [14:57:24]OFD Sender: Remove packet 166063 [14:57:24]ProducePacketName [14:57:24]name=ofd_packets/00166063 [14:57:24]NVStorageDeleteData [14:57:24]Write to MH i2c: 01 00 00 5B 5C B7 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: 01 07 00 5B 5C 00 00 00 00 00 FA 0C C4 [14:57:24]RasterBufferAndPrint [14:57:24]line [14:57:24]line [14:57:24]line [14:57:24]line [14:57:24]line [14:57:24]written 0, free lines is 3329 [14:57:24]MH_Cut [14:57:24]Write to MH i2c: D1 01 00 62 5C 01 90 [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: D1 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: D1 01 00 [14:57:24]MH_I2C_Read... [14:57:24]Read from MH i2c: D1 01 00 62 5C 00 8F [14:57:24]Write to MH i2c: 01 00 00 63 5C BF [14:57:24]Write i2c OK [14:57:24]MH_I2C_Read... [14:57:24]OFD Sender: No OFD packet to send [14:57:25]*** Cut start [14:57:25]*** Partial cut [14:57:25]*** CUTSNS_PIN = 1 [14:57:25]*** CUTSNS_PIN = 0 [14:57:25]*** Brake cut motor [14:57:25]Read from MH i2c: 01 [14:57:25]MH_I2C_Read... [14:57:25]*** Stop cut motor [14:57:25]*** Cut end [14:57:25]Read from MH i2c: 01 07 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: 01 07 00 63 5C 00 00 00 00 00 FF 0F D4 [14:57:25]process_action close_receipt done [14:57:25]requested_data is exist [14:57:25]produce_requested_data [14:57:25]requested_item fm.sn is exist - process it [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 11 00 00 [14:57:25]Write to MH i2c: E2 08 00 64 5C 80 11 00 00 00 00 00 00 3A [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 17 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 17 00 64 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 92 [14:57:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:57:25]wFMCommunicate OK [14:57:25]requested_item fd.num is exist - process it [14:57:25]SAM_PROTO_GetFieldsCounters [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 13 00 00 [14:57:25]Write to MH i2c: E2 08 00 65 5C 80 13 00 00 00 00 00 00 3D [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 62 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 62 00 65 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [14:57:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 AF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetFieldsCounters done [14:57:25]requested_item shift.num is exist - process it [14:57:25]requested_item shift.opened is exist - process it [14:57:25]req_shift_opened [14:57:25]FM_GetShiftState [14:57:25]SAM_PROTO_GetShiftState [14:57:25]wFMCommunicate request_size=4 [14:57:25]MH_SAM_APDU [14:57:25]CAPDU: 80 13 01 00 [14:57:25]Write to MH i2c: E2 08 00 66 5C 80 13 01 00 00 00 00 00 3F [14:57:25]Write i2c OK [14:57:25]MH_I2C_Read... [14:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:25]Read from MH i2c: E2 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 [14:57:25]MH_I2C_Read... [14:57:25]Read from MH i2c: E2 0E 00 66 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 48 [14:57:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:57:25]wFMCommunicate OK [14:57:25]SAM_PROTO_GetShiftState done [14:57:25]FM_GetShiftState done [14:57:25]req_shift_opened done [14:57:25]requested_item shift.open_date is exist - process it [14:57:25]req_shift_open_date [14:57:25]req_shift_open_date done [14:57:25]produce_requested_data done [14:57:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166063,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:57:25]process_action_free close_receipt [14:57:25]json_value_free [14:57:25]json_value_free done [14:57:25]process_json_proto returns [14:57:25]Send response to host [14:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166063,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:57:25]free response buf [14:57:25]execute_script done [14:57:25]execute_script returns [14:57:25]free content buf [14:57:25]Sock 5.Close socket [14:57:26]Sock 5.Thread stoped [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:03]accept exits with 6 [14:59:03]New connection [14:59:03]New thread 3066920292 created [14:59:03]Thread 3066776932 joined [14:59:03]Waiting for new connection... [14:59:03] Sock 6.Parse request [14:59:03]Sock 6.Check first char [14:59:03]Sock 6.First char is OK [14:59:03]request: POST /json_proto HTTP/1.0 [14:59:03]Method: POST [14:59:03]URL: /json_proto [14:59:03]Method is POST - this is cgi request [14:59:03]url: /json_proto [14:59:03]query_string will be loaded in cgi processing [14:59:03]execute_cgi json_proto POST (null) [14:59:03]execute_cgi path=json_proto method=POST [14:59:03]POST find Content-Length [14:59:03]Host: 172.17.53.195:8080 [14:59:03]Content-Length: 682 [14:59:03]Content-Type: application/json [14:59:03] [14:59:03]POST finish read [14:59:03]Found Content-Length = 682 [14:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.250, "sum" : 1020.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:03]execute_script... [14:59: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)220635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 15.250, "sum" : 1020.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1020.00, "total" : 1020.00, "payments": [ { "type": 0, "sum" : 1020.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:03]POST & json_proto [14:59:03]process_json_proto [14:59:03]json parsed OK: [14:59:03]protocol is kg_v1.0 [14:59:03]action value=close_receipt [14:59:03]process_action close_receipt [14:59:03]cmd_close_receipt [14:59:03]MH_GetDate [14:59:03]Write to MH i2c: F0 00 00 67 5C B2 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: F0 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: F0 09 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: F0 09 00 67 5C 00 4A 6C 16 67 21 48 4A 65 06 [14:59:03]GetLastDocTimeStamp 1729522660 [14:59:03]current date 1729522762 [14:59:03]FM_GetShiftState [14:59:03]SAM_PROTO_GetShiftState [14:59:03]wFMCommunicate request_size=4 [14:59:03]MH_SAM_APDU [14:59:03]CAPDU: 80 13 01 00 [14:59:03]Write to MH i2c: E2 08 00 68 5C 80 13 01 00 00 00 00 00 41 [14:59:03]Write i2c OK [14:59:03]MH_I2C_Read... [14:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:03]Read from MH i2c: E2 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 0E 00 [14:59:03]MH_I2C_Read... [14:59:03]Read from MH i2c: E2 0E 00 68 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4A [14:59:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:59:03]wFMCommunicate OK [14:59:03]SAM_PROTO_GetShiftState done [14:59:03]FM_GetShiftState done [14:59:03]opened in 1729470944 [14:59:03]opened+sec_in_day 1729557344 [14:59:03]quantity*price = 102022 [14:59:03]sum+1 = 102024 [14:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1020.00 Внесено: 1020.00 СДАЧА: 0.00 НСП 1% : 9.03 НДС 12% : 108.34 Наличными: 1020.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 175 21.10.2024 14:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166064 ФПД: 22399275514269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145922&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166064&fm=22399275514269&tin=02508201610067®Number=0000000000091764&sum=102000 [14:59:04]StoreToDocumentArchive [14:59:04]shift 535 fd 166064 [14:59:04]save to /storage/0535/doc_00166064 [14:59:04]save last doc name /storage/0535/doc_00166064 to /storage/kkm_last_doc_name [14:59:04]save OK [14:59:04]Clear old archive folders... [14:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:04]tlvbuf is 01A72C20 [14:59:04]SAM_PROTO_ClearQueue [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 09 00 00 [14:59:04]Write to MH i2c: E2 08 00 75 5C 80 09 00 00 00 00 00 00 43 [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 75 5C 00 90 00 45 [14:59:04]RAPDU: 90 00 [14:59:04]wFMCommunicate OK [14:59:04]SAM_PROTO_ClearQueue done [14:59:04]KKMCreateOFDPacket [14:59:04]OFDProtocolAddRootSTLVToBuf [14:59:04]FM_MakeSignedData [14:59:04]FM_MakeSignedData [14:59:04]SAM_PROTO_SignData [14:59:04]wFMCommunicate request_size=4 [14:59:04]MH_SAM_APDU [14:59:04]CAPDU: 80 0D 01 02 [14:59:04]Write to MH i2c: E2 08 00 76 5C 80 0D 01 02 00 00 00 00 4B [14:59:04]Write i2c OK [14:59:04]MH_I2C_Read... [14:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:04]Read from MH i2c: E2 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 [14:59:04]MH_I2C_Read... [14:59:04]Read from MH i2c: E2 03 00 76 5C 00 90 00 46 [14:59:04]RAPDU: 90 00 [14:59:04]wFMCommunicate OK [14:59:04]wFMCommunicate request_size=255 [14:59:04]MH_SAM_APDU [14:59: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 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 4A 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 88 02 00 35 04 06 00 14 [14:59:04]Write to MH i2c: E2 02 01 77 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 4A 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 88 02 00 35 04 06 00 14 00 00 C8 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 77 5C 00 90 00 47 [14:59:05]RAPDU: 90 00 [14:59:05]wFMCommunicate OK [14:59:05]wFMCommunicate request_size=10 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 0D 02 02 05 5F 3C DC 39 9D [14:59:05]Write to MH i2c: E2 0D 00 78 5C 80 0D 02 02 05 00 5F 3C DC 39 9D 00 00 A5 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 03 00 78 5C 00 90 00 48 [14:59:05]RAPDU: 90 00 [14:59:05]wFMCommunicate OK [14:59:05]wFMCommunicate request_size=4 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 0D 03 02 [14:59:05]Write to MH i2c: E2 08 00 79 5C 80 0D 03 02 00 00 00 00 50 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 0B 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 0B 00 79 5C 00 42 26 2F A8 BE DE 85 3D 90 00 EE [14:59:05]RAPDU: 42 26 2F A8 BE DE 85 3D 90 00 [14:59:05]wFMCommunicate OK [14:59:05]SAM_PROTO_SignData done [14:59:05]FM_MakeSignedData done [14:59:05]CreateOFDProtocolMessage [14:59:05]wFMCommunicate request_size=4 [14:59:05]MH_SAM_APDU [14:59:05]CAPDU: 80 11 00 00 [14:59:05]Write to MH i2c: E2 08 00 7A 5C 80 11 00 00 00 00 00 00 50 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:05]Read from MH i2c: E2 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 17 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: E2 17 00 7A 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A8 [14:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:05]wFMCommunicate OK [14:59:05]CreateOFDProtocolMessage done [14:59:05]OFDSenderStorePacket 166064 [14:59:05]StoreOFDPacket docnum=166064 [14:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 80 07 01 66 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 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 4A 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 88 02 00 35 04 06 00 14 5F 3C DC 39 9D 42 26 2F A8 BE DE 85 3D [14:59:05]CheckFolder [14:59:05]dirname=/storage/ofd_packets [14:59:05]CheckFolder done [14:59:05]ProducePacketName [14:59:05]name=ofd_packets/00166064 [14:59:05]NVStorageSaveData ofd_packets/00166064 [14:59:05]File name is /storage/ofd_packets/00166064 [14:59:05]Write 301 bytes [14:59:05]NVStorageSaveData done [14:59:05]OFDSenderStorePacket done [14:59:05]KKMCreateOFDPacket done [14:59:05]NVStorageSaveData kkm_last_timestamp [14:59:05]File name is /storage/kkm_last_timestamp [14:59:05]Write 4 bytes [14:59:05]NVStorageSaveData done [14:59:05]ExternCall_PrintAddStr [14:59:05]wPrintStart [14:59:05]Write to MH i2c: 01 00 00 7B 5C D7 [14:59:05]Write i2c OK [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 07 00 [14:59:05]MH_I2C_Read... [14:59:05]Read from MH i2c: 01 07 00 7B 5C 00 00 00 00 00 FF 0F EC [14:59:05]RasterBufferAndPrint [14:59:05]line Счет N : (1)220635 [14:59:05]line ИНН: 02508201610067 [14:59:05]line Контрольно-Кассовый Чек [14:59:05]line ПРОДАЖА [14:59:05]line ТРК (МРК, ГНК) : 43 [14:59:05]line Товар: 2710124130 [14:59:05]line Аи-92-К-5 [14:59:05]line 15.250 * 66.90 [14:59:05]line = 1020.23 [14:59:05]line НДС 12% НСП 1% [14:59:05]line > о реализуемом товаре [14:59:05]line ОКРУГЛЕНИЕ: -0.23 [14:59:05]line ИТОГО: 1020.00 [14:59:05]line Внесено: 1020.00 [14:59:05]line СДАЧА: 0.00 [14:59:05]line НСП 1% : 9.03 [14:59:05]line НДС 12% : 108.34 [14:59:05]line Наличными: 1020.00 [14:59:05]line Безнал.: 0.00 [14:59:05]line Место: АЗС № 161 "Партнер Нефть" [14:59:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:59:05]line СНО: Общий режим [14:59:05]line Чек 175 21.10.2024 14:59 [14:59:05]line Смена: 535 ФФД: 1.0 [14:59:05]line ЗНМ: 0300000104 [14:59:05]line РНМ: 0000000000091764 [14:59:05]line Версия ККМ: 001 [14:59:05]line ФМ: 0000000000871759 [14:59:05]line ФД: 166064 [14:59:05]line ФПД: 22399275514269 [14:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145922&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166064&fm=22399275514269&tin=02508201610067®Number=0000000000091764&sum=102000 [14:59:05]OFD Sender: Processing packet 166064 [packets to send 48, broken 47] [14:59:05]ProducePacketName [14:59:05]name=ofd_packets/00166064 [14:59:05]OFD Sender: To server: pG, [14:59:05]CommunicateWithHost lk.salyk.kg:30040 [14:59:05]ConnectInit lk.salyk.kg [14:59:05]written 0, free lines is 4095 [14:59:05]Connected sock=7 [14:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 80 07 01 66 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 3B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 87 8E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 8E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 2A 00 00 00 00 07 04 06 00 70 8E 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 4A 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B0 88 02 00 35 04 06 00 14 5F 3C DC 39 9D 42 26 2F A8 BE DE 85 3D [14:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 74 9F 47 00 79 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 35 39 10 04 04 00 B0 88 02 00 F4 03 04 00 B8 12 16 67 B6 04 01 00 00 41 1F 68 69 B3 81 5B 00 [14:59:06]CommunicateWithHost err = 0 [14:59:06]CheckOFDResponse [14:59:06]1017 (14) - 77093643461234 [14:59:06]1041 (16) - 0000000000871759 [14:59:06]1040 (4) - 166064 [14:59:06]1012 (4) - 21.10.2024 08:37 [14:59:06]1206 (1) - 0 [14:59:06]OFD Sender: Remove packet 166064 [14:59:06]ProducePacketName [14:59:06]name=ofd_packets/00166064 [14:59:06]NVStorageDeleteData [14:59:06]Write to MH i2c: 01 00 00 A6 5C 02 [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: 01 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: 01 07 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: 01 07 00 A6 5C 00 00 00 00 00 D8 0C ED [14:59:06]RasterBufferAndPrint [14:59:06]line [14:59:06]line [14:59:06]line [14:59:06]line [14:59:06]line [14:59:06]written 0, free lines is 3296 [14:59:06]MH_Cut [14:59:06]Write to MH i2c: D1 01 00 AD 5C 01 DB [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: D1 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: D1 01 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: D1 01 00 AD 5C 00 DA [14:59:06]Write to MH i2c: 01 00 00 AE 5C 0A [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]OFD Sender: No OFD packet to send [14:59:06]*** Cut start [14:59:06]*** Partial cut [14:59:06]*** CUTSNS_PIN = 1 [14:59:07]*** CUTSNS_PIN = 0 [14:59:07]*** Brake cut motor [14:59:07]Read from MH i2c: 01 [14:59:07]MH_I2C_Read... [14:59:07]*** Stop cut motor [14:59:07]*** Cut end [14:59:07]Read from MH i2c: 01 07 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: 01 07 00 AE 5C 00 00 00 00 00 FF 0F 1F [14:59:07]process_action close_receipt done [14:59:07]requested_data is exist [14:59:07]produce_requested_data [14:59:07]requested_item fm.sn is exist - process it [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 11 00 00 [14:59:07]Write to MH i2c: E2 08 00 AF 5C 80 11 00 00 00 00 00 00 85 [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 17 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 17 00 AF 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DD [14:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:07]wFMCommunicate OK [14:59:07]requested_item fd.num is exist - process it [14:59:07]SAM_PROTO_GetFieldsCounters [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 13 00 00 [14:59:07]Write to MH i2c: E2 08 00 B0 5C 80 13 00 00 00 00 00 00 88 [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 62 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 62 00 B0 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [14:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:07]wFMCommunicate OK [14:59:07]SAM_PROTO_GetFieldsCounters done [14:59:07]requested_item shift.num is exist - process it [14:59:07]requested_item shift.opened is exist - process it [14:59:07]req_shift_opened [14:59:07]FM_GetShiftState [14:59:07]SAM_PROTO_GetShiftState [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 13 01 00 [14:59:07]Write to MH i2c: E2 08 00 B1 5C 80 13 01 00 00 00 00 00 8A [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 0E 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 0E 00 B1 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 93 [14:59:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:59:07]wFMCommunicate OK [14:59:07]SAM_PROTO_GetShiftState done [14:59:07]FM_GetShiftState done [14:59:07]req_shift_opened done [14:59:07]requested_item shift.open_date is exist - process it [14:59:07]req_shift_open_date [14:59:07]req_shift_open_date done [14:59:07]produce_requested_data done [14:59:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166064,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:59:07]process_action_free close_receipt [14:59:07]json_value_free [14:59:07]json_value_free done [14:59:07]process_json_proto returns [14:59:07]Send response to host [14:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166064,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:59:07]free response buf [14:59:07]execute_script done [14:59:07]execute_script returns [14:59:07]free content buf [14:59:07]Sock 6.Close socket [14:59:07]Sock 6.Thread stoped [14:59:08]accept exits with 5 [14:59:08]New connection [14:59:08]New thread 3066776932 created [14:59:08]Thread 3066920292 joined [14:59:08]Waiting for new connection... [14:59:08] Sock 5.Parse request [14:59:08]Sock 5.Check first char [14:59:08]Sock 5.First char is OK [14:59:08]request: POST /json_proto HTTP/1.0 [14:59:08]Method: POST [14:59:08]URL: /json_proto [14:59:08]Method is POST - this is cgi request [14:59:08]url: /json_proto [14:59:08]query_string will be loaded in cgi processing [14:59:08]execute_cgi json_proto POST (null) [14:59:08]execute_cgi path=json_proto method=POST [14:59:08]POST find Content-Length [14:59:08]Host: 172.17.53.195:8080 [14:59:08]Content-Length: 766 [14:59:08]Content-Type: application/json [14:59:08] [14:59:08]POST finish read [14:59:08]Found Content-Length = 766 [14:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:08]execute_script... [14:59: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)220636", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:08]POST & json_proto [14:59:08]process_json_proto [14:59:08]json parsed OK: [14:59:08]protocol is kg_v1.0 [14:59:08]action value=close_receipt [14:59:08]process_action close_receipt [14:59:08]cmd_close_receipt [14:59:08]MH_GetDate [14:59:08]Write to MH i2c: F0 00 00 B2 5C FD [14:59:08]Write i2c OK [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: F0 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: F0 09 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: F0 09 00 B2 5C 00 4E 6C 16 67 21 48 4A 65 55 [14:59:08]GetLastDocTimeStamp 1729522762 [14:59:08]current date 1729522766 [14:59:08]FM_GetShiftState [14:59:08]SAM_PROTO_GetShiftState [14:59:08]wFMCommunicate request_size=4 [14:59:08]MH_SAM_APDU [14:59:08]CAPDU: 80 13 01 00 [14:59:08]Write to MH i2c: E2 08 00 B3 5C 80 13 01 00 00 00 00 00 8C [14:59:08]Write i2c OK [14:59:08]MH_I2C_Read... [14:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:08]Read from MH i2c: E2 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 0E 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 0E 00 B3 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 95 [14:59:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:59:08]wFMCommunicate OK [14:59:08]SAM_PROTO_GetShiftState done [14:59:08]FM_GetShiftState done [14:59:08]opened in 1729470944 [14:59:08]opened+sec_in_day 1729557344 [14:59:08]quantity*price = 100050 [14:59:08]sum+1 = 100052 [14:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 176 21.10.2024 14:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166065 ФПД: 82673290042862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145926&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166065&fm=82673290042862&tin=02508201610067®Number=0000000000091764&sum=100051 [14:59:09]StoreToDocumentArchive [14:59:09]shift 535 fd 166065 [14:59:09]save to /storage/0535/doc_00166065 [14:59:09]save last doc name /storage/0535/doc_00166065 to /storage/kkm_last_doc_name [14:59:09]save OK [14:59:09]Clear old archive folders... [14:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:59:09]tlvbuf is 01A727F0 [14:59:09]SAM_PROTO_ClearQueue [14:59:09]wFMCommunicate request_size=4 [14:59:09]MH_SAM_APDU [14:59:09]CAPDU: 80 09 00 00 [14:59:09]Write to MH i2c: E2 08 00 C0 5C 80 09 00 00 00 00 00 00 8E [14:59:09]Write i2c OK [14:59:09]MH_I2C_Read... [14:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:09]Read from MH i2c: E2 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: E2 03 00 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: E2 03 00 C0 5C 00 90 00 90 [14:59:09]RAPDU: 90 00 [14:59:09]wFMCommunicate OK [14:59:09]SAM_PROTO_ClearQueue done [14:59:09]KKMCreateOFDPacket [14:59:09]OFDProtocolAddRootSTLVToBuf [14:59:09]FM_MakeSignedData [14:59:09]FM_MakeSignedData [14:59:09]SAM_PROTO_SignData [14:59:09]wFMCommunicate request_size=4 [14:59:09]MH_SAM_APDU [14:59:09]CAPDU: 80 0D 01 02 [14:59:09]Write to MH i2c: E2 08 00 C1 5C 80 0D 01 02 00 00 00 00 96 [14:59:09]Write i2c OK [14:59:09]MH_I2C_Read... [14:59:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:09]Read from MH i2c: E2 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: E2 03 00 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: E2 03 00 C1 5C 00 90 00 91 [14:59:09]RAPDU: 90 00 [14:59:09]wFMCommunicate OK [14:59:09]wFMCommunicate request_size=255 [14:59:09]MH_SAM_APDU [14:59:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 88 02 00 35 04 06 00 4B 30 E0 15 [14:59:09]Write to MH i2c: E2 02 01 C2 5C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 88 02 00 35 04 06 00 4B 30 E0 15 00 00 33 [14:59:09]Write i2c OK [14:59:09]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 03 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 03 00 C2 5C 00 90 00 92 [14:59:10]RAPDU: 90 00 [14:59:10]wFMCommunicate OK [14:59:10]wFMCommunicate request_size=7 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 0D 02 02 02 DD EE [14:59:10]Write to MH i2c: E2 0A 00 C3 5C 80 0D 02 02 02 00 DD EE 00 00 68 [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 03 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 03 00 C3 5C 00 90 00 93 [14:59:10]RAPDU: 90 00 [14:59:10]wFMCommunicate OK [14:59:10]wFMCommunicate request_size=4 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 0D 03 02 [14:59:10]Write to MH i2c: E2 08 00 C4 5C 80 0D 03 02 00 00 00 00 9B [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 0B 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 0B 00 C4 5C 00 15 73 57 AF 2C 30 8C 4D 90 00 5F [14:59:10]RAPDU: 15 73 57 AF 2C 30 8C 4D 90 00 [14:59:10]wFMCommunicate OK [14:59:10]SAM_PROTO_SignData done [14:59:10]FM_MakeSignedData done [14:59:10]CreateOFDProtocolMessage [14:59:10]wFMCommunicate request_size=4 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 11 00 00 [14:59:10]Write to MH i2c: E2 08 00 C5 5C 80 11 00 00 00 00 00 00 9B [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 17 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 17 00 C5 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F3 [14:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:10]wFMCommunicate OK [14:59:10]CreateOFDProtocolMessage done [14:59:10]OFDSenderStorePacket 166065 [14:59:10]StoreOFDPacket docnum=166065 [14:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B2 24 04 01 26 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 88 02 00 35 04 06 00 4B 30 E0 15 DD EE 15 73 57 AF 2C 30 8C 4D [14:59:10]CheckFolder [14:59:10]dirname=/storage/ofd_packets [14:59:10]CheckFolder done [14:59:10]ProducePacketName [14:59:10]name=ofd_packets/00166065 [14:59:10]NVStorageSaveData ofd_packets/00166065 [14:59:10]File name is /storage/ofd_packets/00166065 [14:59:10]Write 298 bytes [14:59:10]NVStorageSaveData done [14:59:10]OFDSenderStorePacket done [14:59:10]KKMCreateOFDPacket done [14:59:10]NVStorageSaveData kkm_last_timestamp [14:59:10]File name is /storage/kkm_last_timestamp [14:59:10]Write 4 bytes [14:59:10]NVStorageSaveData done [14:59:10]ExternCall_PrintAddStr [14:59:10]wPrintStart [14:59:10]Write to MH i2c: 01 00 00 C6 5C 22 [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: 01 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: 01 07 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: 01 07 00 C6 5C 00 00 00 00 00 FF 0F 37 [14:59:10]RasterBufferAndPrint [14:59:10]line Счет N : (1)220636 [14:59:10]line ИНН: 02508201610067 [14:59:10]line Контрольно-Кассовый Чек [14:59:10]line ПРОДАЖА [14:59:10]line ТРК (МРК, ГНК) : 21 [14:59:10]line Товар: 2710194210 [14:59:10]line ДТ-К-5 [14:59:10]line 13.130 * 76.20 [14:59:10]line = 1000.51 [14:59:10]line НДС 12% НСП 1% [14:59:10]line > о реализуемом товаре [14:59:10]line ИТОГО: 1000.51 [14:59:10]line НСП 1% : 8.85 [14:59:10]line НДС 12% : 106.25 [14:59:10]line Наличными: 0.00 [14:59:10]line Безнал.: 1000.51 [14:59:10]line Место: АЗС № 161 "Партнер Нефть" [14:59:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [14:59:10]line СНО: Общий режим [14:59:10]line Чек 176 21.10.2024 14:59 [14:59:10]line Смена: 535 ФФД: 1.0 [14:59:10]line ЗНМ: 0300000104 [14:59:10]line РНМ: 0000000000091764 [14:59:10]line Версия ККМ: 001 [14:59:10]line Платежная система: Mbank [14:59:10]line ФМ: 0000000000871759 [14:59:10]line ФД: 166065 [14:59:10]line ФПД: 82673290042862 [14:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T145926&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166065&fm=82673290042862&tin=02508201610067®Number=0000000000091764&sum=100051 [14:59:10]OFD Sender: Processing packet 166065 [packets to send 48, broken 47] [14:59:10]ProducePacketName [14:59:10]name=ofd_packets/00166065 [14:59:10]OFD Sender: To server: pG, [14:59:10]CommunicateWithHost lk.salyk.kg:30040 [14:59:10]ConnectInit lk.salyk.kg [14:59:10]written 0, free lines is 4095 [14:59:10]Connected sock=7 [14:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B2 24 04 01 26 1A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 4E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 88 02 00 35 04 06 00 4B 30 E0 15 DD EE 15 73 57 AF 2C 30 8C 4D [14:59:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 57 45 47 00 13 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B1 88 02 00 F4 03 04 00 BD 12 16 67 B6 04 01 00 00 BE 47 F2 01 27 8E 04 4C [14:59:10]CommunicateWithHost err = 0 [14:59:10]CheckOFDResponse [14:59:10]1017 (14) - 77093643461234 [14:59:10]1041 (16) - 0000000000871759 [14:59:10]1040 (4) - 166065 [14:59:10]1012 (4) - 21.10.2024 08:37 [14:59:10]1206 (1) - 0 [14:59:10]OFD Sender: Remove packet 166065 [14:59:10]ProducePacketName [14:59:10]name=ofd_packets/00166065 [14:59:10]NVStorageDeleteData [14:59:11]Write to MH i2c: 01 00 00 EF 5C 4B [14:59:11]Write i2c OK [14:59:11]MH_I2C_Read... [14:59:11]Read from MH i2c: 01 [14:59:11]MH_I2C_Read... [14:59:11]Read from MH i2c: 01 07 00 [14:59:11]MH_I2C_Read... [14:59:11]Read from MH i2c: 01 07 00 EF 5C 00 00 00 00 00 FF 0C 5D [14:59:11]RasterBufferAndPrint [14:59:11]line [14:59:11]line [14:59:11]line [14:59:11]line [14:59:11]line [14:59:11]written 0, free lines is 3343 [14:59:11]MH_Cut [14:59:11]Write to MH i2c: D1 01 00 F6 5C 01 24 [14:59:11]Write i2c OK [14:59:11]MH_I2C_Read... [14:59:11]Read from MH i2c: D1 [14:59:11]MH_I2C_Read... [14:59:11]Read from MH i2c: D1 01 00 [14:59:11]MH_I2C_Read... [14:59:11]Read from MH i2c: D1 01 00 F6 5C 00 23 [14:59:11]Write to MH i2c: 01 00 00 F7 5C 53 [14:59:11]Write i2c OK [14:59:11]MH_I2C_Read... [14:59:11]OFD Sender: No OFD packet to send [14:59:11]*** Cut start [14:59:11]*** Partial cut [14:59:11]*** CUTSNS_PIN = 1 [14:59:11]*** CUTSNS_PIN = 0 [14:59:12]*** Brake cut motor [14:59:12]Read from MH i2c: 01 [14:59:12]MH_I2C_Read... [14:59:12]*** Stop cut motor [14:59:12]*** Cut end [14:59:12]Read from MH i2c: 01 07 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: 01 07 00 F7 5C 00 00 00 00 00 FF 0F 68 [14:59:12]process_action close_receipt done [14:59:12]requested_data is exist [14:59:12]produce_requested_data [14:59:12]requested_item fm.sn is exist - process it [14:59:12]wFMCommunicate request_size=4 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 11 00 00 [14:59:12]Write to MH i2c: E2 08 00 F8 5C 80 11 00 00 00 00 00 00 CE [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 17 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 17 00 F8 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [14:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [14:59:12]wFMCommunicate OK [14:59:12]requested_item fd.num is exist - process it [14:59:12]SAM_PROTO_GetFieldsCounters [14:59:12]wFMCommunicate request_size=4 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 13 00 00 [14:59:12]Write to MH i2c: E2 08 00 F9 5C 80 13 00 00 00 00 00 00 D1 [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 62 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 62 00 F9 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [14:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:12]wFMCommunicate OK [14:59:12]SAM_PROTO_GetFieldsCounters done [14:59:12]requested_item shift.num is exist - process it [14:59:12]requested_item shift.opened is exist - process it [14:59:12]req_shift_opened [14:59:12]FM_GetShiftState [14:59:12]SAM_PROTO_GetShiftState [14:59:12]wFMCommunicate request_size=4 [14:59:12]MH_SAM_APDU [14:59:12]CAPDU: 80 13 01 00 [14:59:12]Write to MH i2c: E2 08 00 FA 5C 80 13 01 00 00 00 00 00 D3 [14:59:12]Write i2c OK [14:59:12]MH_I2C_Read... [14:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:12]Read from MH i2c: E2 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 0E 00 [14:59:12]MH_I2C_Read... [14:59:12]Read from MH i2c: E2 0E 00 FA 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [14:59:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [14:59:12]wFMCommunicate OK [14:59:12]SAM_PROTO_GetShiftState done [14:59:12]FM_GetShiftState done [14:59:12]req_shift_opened done [14:59:12]requested_item shift.open_date is exist - process it [14:59:12]req_shift_open_date [14:59:12]req_shift_open_date done [14:59:12]produce_requested_data done [14:59:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166065,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [14:59:12]process_action_free close_receipt [14:59:12]json_value_free [14:59:12]json_value_free done [14:59:12]process_json_proto returns [14:59:12]Send response to host [14:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166065,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [14:59:12]free response buf [14:59:12]execute_script done [14:59:12]execute_script returns [14:59:12]free content buf [14:59:12]Sock 5.Close socket [14:59:12]Sock 5.Thread stoped [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:31]OFD Sender: No OFD packet to send [14:59:36]OFD Sender: No OFD packet to send [14:59:41]OFD Sender: No OFD packet to send [14:59:46]OFD Sender: No OFD packet to send [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:27]accept exits with 6 [15:00:27]New connection [15:00:27]New thread 3066920292 created [15:00:27]Thread 3066776932 joined [15:00:27]Waiting for new connection... [15:00:27] Sock 6.Parse request [15:00:27]Sock 6.Check first char [15:00:27]Sock 6.First char is OK [15:00:27]request: POST /json_proto HTTP/1.0 [15:00:27]Method: POST [15:00:27]URL: /json_proto [15:00:27]Method is POST - this is cgi request [15:00:27]url: /json_proto [15:00:27]query_string will be loaded in cgi processing [15:00:27]execute_cgi json_proto POST (null) [15:00:27]execute_cgi path=json_proto method=POST [15:00:27]POST find Content-Length [15:00:27]Host: 172.17.53.195:8080 [15:00:27]Content-Length: 677 [15:00:27]Content-Type: application/json [15:00:27] [15:00:27]POST finish read [15:00:27]Found Content-Length = 677 [15:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:27]execute_script... [15:00: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)220637", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:27]POST & json_proto [15:00:27]process_json_proto [15:00:27]json parsed OK: [15:00:27]protocol is kg_v1.0 [15:00:27]action value=close_receipt [15:00:27]process_action close_receipt [15:00:27]cmd_close_receipt [15:00:27]MH_GetDate [15:00:27]Write to MH i2c: F0 00 00 FB 5C 46 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: F0 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: F0 09 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: F0 09 00 FB 5C 00 9E 6C 16 67 21 48 4A 65 EE [15:00:27]GetLastDocTimeStamp 1729522766 [15:00:27]current date 1729522846 [15:00:27]FM_GetShiftState [15:00:27]SAM_PROTO_GetShiftState [15:00:27]wFMCommunicate request_size=4 [15:00:27]MH_SAM_APDU [15:00:27]CAPDU: 80 13 01 00 [15:00:27]Write to MH i2c: E2 08 00 FC 5C 80 13 01 00 00 00 00 00 D5 [15:00:27]Write i2c OK [15:00:27]MH_I2C_Read... [15:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:27]Read from MH i2c: E2 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0E 00 [15:00:27]MH_I2C_Read... [15:00:27]Read from MH i2c: E2 0E 00 FC 5C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DE [15:00:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:00:27]wFMCommunicate OK [15:00:27]SAM_PROTO_GetShiftState done [15:00:27]FM_GetShiftState done [15:00:27]opened in 1729470944 [15:00:27]opened+sec_in_day 1729557344 [15:00:27]quantity*price = 40006 [15:00:27]sum+1 = 40007 [15:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 177 21.10.2024 15:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166066 ФПД: 27639955697194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150046&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166066&fm=27639955697194&tin=02508201610067®Number=0000000000091764&sum=40000 [15:00:28]StoreToDocumentArchive [15:00:28]shift 535 fd 166066 [15:00:28]save to /storage/0535/doc_00166066 [15:00:28]save last doc name /storage/0535/doc_00166066 to /storage/kkm_last_doc_name [15:00:28]save OK [15:00:28]Clear old archive folders... [15:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:28]tlvbuf is 0179A0A0 [15:00:28]SAM_PROTO_ClearQueue [15:00:28]wFMCommunicate request_size=4 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 09 00 00 [15:00:28]Write to MH i2c: E2 08 00 09 5D 80 09 00 00 00 00 00 00 D8 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 09 5D 00 90 00 DA [15:00:28]RAPDU: 90 00 [15:00:28]wFMCommunicate OK [15:00:28]SAM_PROTO_ClearQueue done [15:00:28]KKMCreateOFDPacket [15:00:28]OFDProtocolAddRootSTLVToBuf [15:00:28]FM_MakeSignedData [15:00:28]FM_MakeSignedData [15:00:28]SAM_PROTO_SignData [15:00:28]wFMCommunicate request_size=4 [15:00:28]MH_SAM_APDU [15:00:28]CAPDU: 80 0D 01 02 [15:00:28]Write to MH i2c: E2 08 00 0A 5D 80 0D 01 02 00 00 00 00 E0 [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:28]Read from MH i2c: E2 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 [15:00:28]MH_I2C_Read... [15:00:28]Read from MH i2c: E2 03 00 0A 5D 00 90 00 DB [15:00:28]RAPDU: 90 00 [15:00:28]wFMCommunicate OK [15:00:28]wFMCommunicate request_size=255 [15:00:28]MH_SAM_APDU [15:00: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 88 02 00 35 04 06 00 19 [15:00:28]Write to MH i2c: E2 02 01 0B 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 88 02 00 35 04 06 00 19 00 00 EB [15:00:28]Write i2c OK [15:00:28]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 03 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 03 00 0B 5D 00 90 00 DC [15:00:29]RAPDU: 90 00 [15:00:29]wFMCommunicate OK [15:00:29]wFMCommunicate request_size=10 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 0D 02 02 05 23 6D BD AE 2A [15:00:29]Write to MH i2c: E2 0D 00 0C 5D 80 0D 02 02 05 00 23 6D BD AE 2A 00 00 12 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 03 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 03 00 0C 5D 00 90 00 DD [15:00:29]RAPDU: 90 00 [15:00:29]wFMCommunicate OK [15:00:29]wFMCommunicate request_size=4 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 0D 03 02 [15:00:29]Write to MH i2c: E2 08 00 0D 5D 80 0D 03 02 00 00 00 00 E5 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 0B 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 0B 00 0D 5D 00 90 01 C0 14 86 0C 7B D9 90 00 31 [15:00:29]RAPDU: 90 01 C0 14 86 0C 7B D9 90 00 [15:00:29]wFMCommunicate OK [15:00:29]SAM_PROTO_SignData done [15:00:29]FM_MakeSignedData done [15:00:29]CreateOFDProtocolMessage [15:00:29]wFMCommunicate request_size=4 [15:00:29]MH_SAM_APDU [15:00:29]CAPDU: 80 11 00 00 [15:00:29]Write to MH i2c: E2 08 00 0E 5D 80 11 00 00 00 00 00 00 E5 [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:29]Read from MH i2c: E2 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 17 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: E2 17 00 0E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [15:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:00:29]wFMCommunicate OK [15:00:29]CreateOFDProtocolMessage done [15:00:29]OFDSenderStorePacket 166066 [15:00:29]StoreOFDPacket docnum=166066 [15:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 C1 07 01 83 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 88 02 00 35 04 06 00 19 23 6D BD AE 2A 90 01 C0 14 86 0C 7B D9 [15:00:29]CheckFolder [15:00:29]dirname=/storage/ofd_packets [15:00:29]CheckFolder done [15:00:29]ProducePacketName [15:00:29]name=ofd_packets/00166066 [15:00:29]NVStorageSaveData ofd_packets/00166066 [15:00:29]File name is /storage/ofd_packets/00166066 [15:00:29]Write 301 bytes [15:00:29]NVStorageSaveData done [15:00:29]OFDSenderStorePacket done [15:00:29]KKMCreateOFDPacket done [15:00:29]NVStorageSaveData kkm_last_timestamp [15:00:29]File name is /storage/kkm_last_timestamp [15:00:29]Write 4 bytes [15:00:29]NVStorageSaveData done [15:00:29]ExternCall_PrintAddStr [15:00:29]wPrintStart [15:00:29]Write to MH i2c: 01 00 00 0F 5D 6C [15:00:29]Write i2c OK [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 07 00 [15:00:29]MH_I2C_Read... [15:00:29]Read from MH i2c: 01 07 00 0F 5D 00 00 00 00 00 FF 0F 81 [15:00:29]RasterBufferAndPrint [15:00:29]line Счет N : (1)220637 [15:00:29]line ИНН: 02508201610067 [15:00:29]line Контрольно-Кассовый Чек [15:00:29]line ПРОДАЖА [15:00:29]line ТРК (МРК, ГНК) : 13 [15:00:29]line Товар: 2710124130 [15:00:29]line Аи-92-К-5 [15:00:29]line 5.980 * 66.90 [15:00:29]line = 400.06 [15:00:29]line НДС 12% НСП 1% [15:00:29]line > о реализуемом товаре [15:00:29]line ОКРУГЛЕНИЕ: -0.06 [15:00:29]line ИТОГО: 400.00 [15:00:29]line Внесено: 400.00 [15:00:29]line СДАЧА: 0.00 [15:00:29]line НСП 1% : 3.54 [15:00:29]line НДС 12% : 42.48 [15:00:29]line Наличными: 400.00 [15:00:29]line Безнал.: 0.00 [15:00:29]line Место: АЗС № 161 "Партнер Нефть" [15:00:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:00:29]line СНО: Общий режим [15:00:29]line Чек 177 21.10.2024 15:00 [15:00:29]line Смена: 535 ФФД: 1.0 [15:00:29]line ЗНМ: 0300000104 [15:00:29]line РНМ: 0000000000091764 [15:00:29]line Версия ККМ: 001 [15:00:29]line ФМ: 0000000000871759 [15:00:29]line ФД: 166066 [15:00:29]line ФПД: 27639955697194 [15:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150046&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166066&fm=27639955697194&tin=02508201610067®Number=0000000000091764&sum=40000 [15:00:29]OFD Sender: Processing packet 166066 [packets to send 48, broken 47] [15:00:29]ProducePacketName [15:00:29]name=ofd_packets/00166066 [15:00:29]OFD Sender: To server: pG, [15:00:29]CommunicateWithHost lk.salyk.kg:30040 [15:00:29]ConnectInit lk.salyk.kg [15:00:29]written 0, free lines is 4095 [15:00:29]Connected sock=7 [15:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 52 C1 07 01 83 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9E 6C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 88 02 00 35 04 06 00 19 23 6D BD AE 2A 90 01 C0 14 86 0C 7B D9 [15:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 28 0F 47 00 2C B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B2 88 02 00 F4 03 04 00 0C 13 16 67 B6 04 01 00 00 D2 F3 B5 6D 29 A6 F6 8B [15:00:29]CommunicateWithHost err = 0 [15:00:29]CheckOFDResponse [15:00:29]1017 (14) - 77093643461234 [15:00:29]1041 (16) - 0000000000871759 [15:00:29]1040 (4) - 166066 [15:00:29]1012 (4) - 21.10.2024 08:38 [15:00:29]1206 (1) - 0 [15:00:29]OFD Sender: Remove packet 166066 [15:00:29]ProducePacketName [15:00:29]name=ofd_packets/00166066 [15:00:29]NVStorageDeleteData [15:00:30]Write to MH i2c: 01 00 00 3A 5D 97 [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: 01 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: 01 07 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: 01 07 00 3A 5D 00 00 00 00 00 DD 0C 87 [15:00:30]RasterBufferAndPrint [15:00:30]line [15:00:30]line [15:00:30]line [15:00:30]line [15:00:30]line [15:00:30]written 0, free lines is 3302 [15:00:30]MH_Cut [15:00:30]Write to MH i2c: D1 01 00 41 5D 01 70 [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: D1 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: D1 01 00 [15:00:30]MH_I2C_Read... [15:00:30]Read from MH i2c: D1 01 00 41 5D 00 6F [15:00:30]Write to MH i2c: 01 00 00 42 5D 9F [15:00:30]Write i2c OK [15:00:30]MH_I2C_Read... [15:00:30]OFD Sender: No OFD packet to send [15:00:30]*** Cut start [15:00:30]*** Partial cut [15:00:30]*** CUTSNS_PIN = 1 [15:00:30]*** CUTSNS_PIN = 0 [15:00:31]*** Brake cut motor [15:00:31]Read from MH i2c: 01 [15:00:31]MH_I2C_Read... [15:00:31]*** Stop cut motor [15:00:31]*** Cut end [15:00:31]Read from MH i2c: 01 07 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: 01 07 00 42 5D 00 00 00 00 00 FF 0F B4 [15:00:31]process_action close_receipt done [15:00:31]requested_data is exist [15:00:31]produce_requested_data [15:00:31]requested_item fm.sn is exist - process it [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 11 00 00 [15:00:31]Write to MH i2c: E2 08 00 43 5D 80 11 00 00 00 00 00 00 1A [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 17 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 17 00 43 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [15:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:00:31]wFMCommunicate OK [15:00:31]requested_item fd.num is exist - process it [15:00:31]SAM_PROTO_GetFieldsCounters [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 13 00 00 [15:00:31]Write to MH i2c: E2 08 00 44 5D 80 13 00 00 00 00 00 00 1D [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 62 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 62 00 44 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [15:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:31]wFMCommunicate OK [15:00:31]SAM_PROTO_GetFieldsCounters done [15:00:31]requested_item shift.num is exist - process it [15:00:31]requested_item shift.opened is exist - process it [15:00:31]req_shift_opened [15:00:31]FM_GetShiftState [15:00:31]SAM_PROTO_GetShiftState [15:00:31]wFMCommunicate request_size=4 [15:00:31]MH_SAM_APDU [15:00:31]CAPDU: 80 13 01 00 [15:00:31]Write to MH i2c: E2 08 00 45 5D 80 13 01 00 00 00 00 00 1F [15:00:31]Write i2c OK [15:00:31]MH_I2C_Read... [15:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:31]Read from MH i2c: E2 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 0E 00 [15:00:31]MH_I2C_Read... [15:00:31]Read from MH i2c: E2 0E 00 45 5D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 28 [15:00:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:00:31]wFMCommunicate OK [15:00:31]SAM_PROTO_GetShiftState done [15:00:31]FM_GetShiftState done [15:00:31]req_shift_opened done [15:00:31]requested_item shift.open_date is exist - process it [15:00:31]req_shift_open_date [15:00:31]req_shift_open_date done [15:00:31]produce_requested_data done [15:00:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166066,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:00:31]process_action_free close_receipt [15:00:31]json_value_free [15:00:31]json_value_free done [15:00:31]process_json_proto returns [15:00:31]Send response to host [15:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166066,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:00:31]free response buf [15:00:31]execute_script done [15:00:31]execute_script returns [15:00:31]free content buf [15:00:31]Sock 6.Close socket [15:00:31]Sock 6.Thread stoped [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:37]accept exits with 5 [15:02:37]New connection [15:02:37]New thread 3066776932 created [15:02:37]Thread 3066920292 joined [15:02:37]Waiting for new connection... [15:02:37] Sock 5.Parse request [15:02:37]Sock 5.Check first char [15:02:37]Sock 5.First char is OK [15:02:37]request: POST /json_proto HTTP/1.0 [15:02:37]Method: POST [15:02:37]URL: /json_proto [15:02:37]Method is POST - this is cgi request [15:02:37]url: /json_proto [15:02:37]query_string will be loaded in cgi processing [15:02:37]execute_cgi json_proto POST (null) [15:02:37]execute_cgi path=json_proto method=POST [15:02:37]POST find Content-Length [15:02:37]Host: 172.17.53.195:8080 [15:02:37]Content-Length: 766 [15:02:37]Content-Type: application/json [15:02:37] [15:02:37]POST finish read [15:02:37]Found Content-Length = 766 [15:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:37]execute_script... [15:02:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220638", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:02:37]POST & json_proto [15:02:37]process_json_proto [15:02:37]json parsed OK: [15:02:37]protocol is kg_v1.0 [15:02:37]action value=close_receipt [15:02:37]process_action close_receipt [15:02:37]cmd_close_receipt [15:02:37]MH_GetDate [15:02:37]Write to MH i2c: F0 00 00 46 5D 92 [15:02:37]Write i2c OK [15:02:37]MH_I2C_Read... [15:02:37]Read from MH i2c: F0 [15:02:37]MH_I2C_Read... [15:02:37]Read from MH i2c: F0 09 00 [15:02:37]MH_I2C_Read... [15:02:37]Read from MH i2c: F0 09 00 46 5D 00 20 6D 16 67 21 48 4A 65 BD [15:02:37]GetLastDocTimeStamp 1729522846 [15:02:37]current date 1729522976 [15:02:37]FM_GetShiftState [15:02:37]SAM_PROTO_GetShiftState [15:02:37]wFMCommunicate request_size=4 [15:02:37]MH_SAM_APDU [15:02:37]CAPDU: 80 13 01 00 [15:02:37]Write to MH i2c: E2 08 00 47 5D 80 13 01 00 00 00 00 00 21 [15:02:37]Write i2c OK [15:02:37]MH_I2C_Read... [15:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:37]Read from MH i2c: E2 [15:02:37]MH_I2C_Read... [15:02:37]Read from MH i2c: E2 0E 00 [15:02:37]MH_I2C_Read... [15:02:37]Read from MH i2c: E2 0E 00 47 5D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2A [15:02:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:02:37]wFMCommunicate OK [15:02:37]SAM_PROTO_GetShiftState done [15:02:37]FM_GetShiftState done [15:02:37]opened in 1729470944 [15:02:37]opened+sec_in_day 1729557344 [15:02:37]quantity*price = 100050 [15:02:37]sum+1 = 100052 [15:02:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 178 21.10.2024 15:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166067 ФПД: 197344905880996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150256&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166067&fm=197344905880996&tin=02508201610067®Number=0000000000091764&sum=100051 [15:02:38]StoreToDocumentArchive [15:02:38]shift 535 fd 166067 [15:02:38]save to /storage/0535/doc_00166067 [15:02:38]save last doc name /storage/0535/doc_00166067 to /storage/kkm_last_doc_name [15:02:38]save OK [15:02:38]Clear old archive folders... [15:02:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:02:38]tlvbuf is 0163FE40 [15:02:38]SAM_PROTO_ClearQueue [15:02:38]wFMCommunicate request_size=4 [15:02:38]MH_SAM_APDU [15:02:38]CAPDU: 80 09 00 00 [15:02:38]Write to MH i2c: E2 08 00 54 5D 80 09 00 00 00 00 00 00 23 [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:02:38]Read from MH i2c: E2 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 03 00 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 03 00 54 5D 00 90 00 25 [15:02:38]RAPDU: 90 00 [15:02:38]wFMCommunicate OK [15:02:38]SAM_PROTO_ClearQueue done [15:02:38]KKMCreateOFDPacket [15:02:38]OFDProtocolAddRootSTLVToBuf [15:02:38]FM_MakeSignedData [15:02:38]FM_MakeSignedData [15:02:38]SAM_PROTO_SignData [15:02:38]wFMCommunicate request_size=4 [15:02:38]MH_SAM_APDU [15:02:38]CAPDU: 80 0D 01 02 [15:02:38]Write to MH i2c: E2 08 00 55 5D 80 0D 01 02 00 00 00 00 2B [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:02:38]Read from MH i2c: E2 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 03 00 [15:02:38]MH_I2C_Read... [15:02:38]Read from MH i2c: E2 03 00 55 5D 00 90 00 26 [15:02:38]RAPDU: 90 00 [15:02:38]wFMCommunicate OK [15:02:38]wFMCommunicate request_size=255 [15:02:38]MH_SAM_APDU [15:02:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 6D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 88 02 00 35 04 06 00 B3 7B F1 03 [15:02:38]Write to MH i2c: E2 02 01 56 5D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 6D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 88 02 00 35 04 06 00 B3 7B F1 03 00 00 51 [15:02:38]Write i2c OK [15:02:38]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 56 5D 00 90 00 27 [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]wFMCommunicate request_size=7 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 02 02 02 65 A4 [15:02:39]Write to MH i2c: E2 0A 00 57 5D 80 0D 02 02 02 00 65 A4 00 00 3B [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 03 00 57 5D 00 90 00 28 [15:02:39]RAPDU: 90 00 [15:02:39]wFMCommunicate OK [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 0D 03 02 [15:02:39]Write to MH i2c: E2 08 00 58 5D 80 0D 03 02 00 00 00 00 30 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0B 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 0B 00 58 5D 00 2B 04 E1 7A 88 68 48 D7 90 00 CA [15:02:39]RAPDU: 2B 04 E1 7A 88 68 48 D7 90 00 [15:02:39]wFMCommunicate OK [15:02:39]SAM_PROTO_SignData done [15:02:39]FM_MakeSignedData done [15:02:39]CreateOFDProtocolMessage [15:02:39]wFMCommunicate request_size=4 [15:02:39]MH_SAM_APDU [15:02:39]CAPDU: 80 11 00 00 [15:02:39]Write to MH i2c: E2 08 00 59 5D 80 11 00 00 00 00 00 00 30 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:39]Read from MH i2c: E2 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 17 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: E2 17 00 59 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [15:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:02:39]wFMCommunicate OK [15:02:39]CreateOFDProtocolMessage done [15:02:39]OFDSenderStorePacket 166067 [15:02:39]StoreOFDPacket docnum=166067 [15:02:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 35 60 04 01 BF D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 6D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 88 02 00 35 04 06 00 B3 7B F1 03 65 A4 2B 04 E1 7A 88 68 48 D7 [15:02:39]CheckFolder [15:02:39]dirname=/storage/ofd_packets [15:02:39]CheckFolder done [15:02:39]ProducePacketName [15:02:39]name=ofd_packets/00166067 [15:02:39]NVStorageSaveData ofd_packets/00166067 [15:02:39]File name is /storage/ofd_packets/00166067 [15:02:39]Write 298 bytes [15:02:39]NVStorageSaveData done [15:02:39]OFDSenderStorePacket done [15:02:39]KKMCreateOFDPacket done [15:02:39]NVStorageSaveData kkm_last_timestamp [15:02:39]File name is /storage/kkm_last_timestamp [15:02:39]Write 4 bytes [15:02:39]NVStorageSaveData done [15:02:39]ExternCall_PrintAddStr [15:02:39]wPrintStart [15:02:39]Write to MH i2c: 01 00 00 5A 5D B7 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: 01 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: 01 07 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: 01 07 00 5A 5D 00 00 00 00 00 FF 0F CC [15:02:39]RasterBufferAndPrint [15:02:39]line Счет N : (1)220638 [15:02:39]line ИНН: 02508201610067 [15:02:39]line Контрольно-Кассовый Чек [15:02:39]line ПРОДАЖА [15:02:39]line ТРК (МРК, ГНК) : 11 [15:02:39]line Товар: 2710194210 [15:02:39]line ДТ-К-5 [15:02:39]line 13.130 * 76.20 [15:02:39]line = 1000.51 [15:02:39]line НДС 12% НСП 1% [15:02:39]line > о реализуемом товаре [15:02:39]line ИТОГО: 1000.51 [15:02:39]line НСП 1% : 8.85 [15:02:39]line НДС 12% : 106.25 [15:02:39]line Наличными: 0.00 [15:02:39]line Безнал.: 1000.51 [15:02:39]line Место: АЗС № 161 "Партнер Нефть" [15:02:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:02:39]line СНО: Общий режим [15:02:39]line Чек 178 21.10.2024 15:02 [15:02:39]line Смена: 535 ФФД: 1.0 [15:02:39]line ЗНМ: 0300000104 [15:02:39]line РНМ: 0000000000091764 [15:02:39]line Версия ККМ: 001 [15:02:39]line Платежная система: Mbank [15:02:39]line ФМ: 0000000000871759 [15:02:39]line ФД: 166067 [15:02:39]line ФПД: 197344905880996 [15:02:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150256&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166067&fm=197344905880996&tin=02508201610067®Number=0000000000091764&sum=100051 [15:02:39]OFD Sender: Processing packet 166067 [packets to send 48, broken 47] [15:02:39]ProducePacketName [15:02:39]name=ofd_packets/00166067 [15:02:39]OFD Sender: To server: pG, [15:02:39]CommunicateWithHost lk.salyk.kg:30040 [15:02:39]ConnectInit lk.salyk.kg [15:02:39]written 0, free lines is 4095 [15:02:39]Connected sock=7 [15:02:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 35 60 04 01 BF D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 20 6D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B3 88 02 00 35 04 06 00 B3 7B F1 03 65 A4 2B 04 E1 7A 88 68 48 D7 [15:02:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 00 88 47 00 65 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 35 39 10 04 04 00 B3 88 02 00 F4 03 04 00 8E 13 16 67 B6 04 01 00 00 97 47 8B AE 91 14 30 BF [15:02:39]CommunicateWithHost err = 0 [15:02:39]CheckOFDResponse [15:02:39]1017 (14) - 77093643461234 [15:02:39]1041 (16) - 0000000000871759 [15:02:39]1040 (4) - 166067 [15:02:39]1012 (4) - 21.10.2024 08:40 [15:02:39]1206 (1) - 0 [15:02:39]OFD Sender: Remove packet 166067 [15:02:39]ProducePacketName [15:02:39]name=ofd_packets/00166067 [15:02:39]NVStorageDeleteData [15:02:39]Write to MH i2c: 01 00 00 83 5D E0 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: 01 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: 01 07 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: 01 07 00 83 5D 00 00 00 00 00 FA 0C ED [15:02:39]RasterBufferAndPrint [15:02:39]line [15:02:39]line [15:02:39]line [15:02:39]line [15:02:39]line [15:02:39]written 0, free lines is 3330 [15:02:39]MH_Cut [15:02:39]Write to MH i2c: D1 01 00 8A 5D 01 B9 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: D1 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: D1 01 00 [15:02:39]MH_I2C_Read... [15:02:39]Read from MH i2c: D1 01 00 8A 5D 00 B8 [15:02:39]Write to MH i2c: 01 00 00 8B 5D E8 [15:02:39]Write i2c OK [15:02:39]MH_I2C_Read... [15:02:40]OFD Sender: No OFD packet to send [15:02:40]*** Cut start [15:02:40]*** Partial cut [15:02:40]*** CUTSNS_PIN = 1 [15:02:40]*** CUTSNS_PIN = 0 [15:02:41]*** Brake cut motor [15:02:41]Read from MH i2c: 01 [15:02:41]MH_I2C_Read... [15:02:41]*** Stop cut motor [15:02:41]*** Cut end [15:02:41]Read from MH i2c: 01 07 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: 01 07 00 8B 5D 00 00 00 00 00 FF 0F FD [15:02:41]process_action close_receipt done [15:02:41]requested_data is exist [15:02:41]produce_requested_data [15:02:41]requested_item fm.sn is exist - process it [15:02:41]wFMCommunicate request_size=4 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 11 00 00 [15:02:41]Write to MH i2c: E2 08 00 8C 5D 80 11 00 00 00 00 00 00 63 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 17 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 17 00 8C 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [15:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:02:41]wFMCommunicate OK [15:02:41]requested_item fd.num is exist - process it [15:02:41]SAM_PROTO_GetFieldsCounters [15:02:41]wFMCommunicate request_size=4 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 13 00 00 [15:02:41]Write to MH i2c: E2 08 00 8D 5D 80 13 00 00 00 00 00 00 66 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 62 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 62 00 8D 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [15:02:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:02:41]wFMCommunicate OK [15:02:41]SAM_PROTO_GetFieldsCounters done [15:02:41]requested_item shift.num is exist - process it [15:02:41]requested_item shift.opened is exist - process it [15:02:41]req_shift_opened [15:02:41]FM_GetShiftState [15:02:41]SAM_PROTO_GetShiftState [15:02:41]wFMCommunicate request_size=4 [15:02:41]MH_SAM_APDU [15:02:41]CAPDU: 80 13 01 00 [15:02:41]Write to MH i2c: E2 08 00 8E 5D 80 13 01 00 00 00 00 00 68 [15:02:41]Write i2c OK [15:02:41]MH_I2C_Read... [15:02:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:02:41]Read from MH i2c: E2 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 0E 00 [15:02:41]MH_I2C_Read... [15:02:41]Read from MH i2c: E2 0E 00 8E 5D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 71 [15:02:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:02:41]wFMCommunicate OK [15:02:41]SAM_PROTO_GetShiftState done [15:02:41]FM_GetShiftState done [15:02:41]req_shift_opened done [15:02:41]requested_item shift.open_date is exist - process it [15:02:41]req_shift_open_date [15:02:41]req_shift_open_date done [15:02:41]produce_requested_data done [15:02:41]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166067,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:02:41]process_action_free close_receipt [15:02:41]json_value_free [15:02:41]json_value_free done [15:02:41]process_json_proto returns [15:02:41]Send response to host [15:02:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166067,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:02:41]free response buf [15:02:41]execute_script done [15:02:41]execute_script returns [15:02:41]free content buf [15:02:41]Sock 5.Close socket [15:02:41]Sock 5.Thread stoped [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:04]accept exits with 6 [15:08:04]New connection [15:08:04]New thread 3066920292 created [15:08:04]Thread 3066776932 joined [15:08:04]Waiting for new connection... [15:08:04] Sock 6.Parse request [15:08:04]Sock 6.Check first char [15:08:04]Sock 6.First char is OK [15:08:04]request: POST /json_proto HTTP/1.0 [15:08:04]Method: POST [15:08:04]URL: /json_proto [15:08:04]Method is POST - this is cgi request [15:08:04]url: /json_proto [15:08:04]query_string will be loaded in cgi processing [15:08:04]execute_cgi json_proto POST (null) [15:08:04]execute_cgi path=json_proto method=POST [15:08:04]POST find Content-Length [15:08:04]Host: 172.17.53.195:8080 [15:08:04]Content-Length: 677 [15:08:04]Content-Type: application/json [15:08:04] [15:08:04]POST finish read [15:08:04]Found Content-Length = 677 [15:08:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:04]execute_script... [15: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)220640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:04]POST & json_proto [15:08:04]process_json_proto [15:08:04]json parsed OK: [15:08:04]protocol is kg_v1.0 [15:08:04]action value=close_receipt [15:08:04]process_action close_receipt [15:08:04]cmd_close_receipt [15:08:04]MH_GetDate [15:08:04]Write to MH i2c: F0 00 00 8F 5D DB [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: F0 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: F0 09 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: F0 09 00 8F 5D 00 67 6E 16 67 21 48 4A 65 4E [15:08:04]GetLastDocTimeStamp 1729522976 [15:08:04]current date 1729523303 [15:08:04]FM_GetShiftState [15:08:04]SAM_PROTO_GetShiftState [15:08:04]wFMCommunicate request_size=4 [15:08:04]MH_SAM_APDU [15:08:04]CAPDU: 80 13 01 00 [15:08:04]Write to MH i2c: E2 08 00 90 5D 80 13 01 00 00 00 00 00 6A [15:08:04]Write i2c OK [15:08:04]MH_I2C_Read... [15:08:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:04]Read from MH i2c: E2 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0E 00 [15:08:04]MH_I2C_Read... [15:08:04]Read from MH i2c: E2 0E 00 90 5D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 73 [15:08:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:08:04]wFMCommunicate OK [15:08:04]SAM_PROTO_GetShiftState done [15:08:04]FM_GetShiftState done [15:08:04]opened in 1729470944 [15:08:04]opened+sec_in_day 1729557344 [15:08:04]quantity*price = 50041 [15:08:04]sum+1 = 50042 [15:08:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 179 21.10.2024 15:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166068 ФПД: 223153204387630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150823&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166068&fm=223153204387630&tin=02508201610067®Number=0000000000091764&sum=50000 [15:08:05]StoreToDocumentArchive [15:08:05]shift 535 fd 166068 [15:08:05]save to /storage/0535/doc_00166068 [15:08:05]save last doc name /storage/0535/doc_00166068 to /storage/kkm_last_doc_name [15:08:05]save OK [15:08:05]Clear old archive folders... [15:08:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:05]tlvbuf is 0186AD00 [15:08:05]SAM_PROTO_ClearQueue [15:08:05]wFMCommunicate request_size=4 [15:08:05]MH_SAM_APDU [15:08:05]CAPDU: 80 09 00 00 [15:08:05]Write to MH i2c: E2 08 00 9D 5D 80 09 00 00 00 00 00 00 6C [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:05]Read from MH i2c: E2 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 9D 5D 00 90 00 6E [15:08:05]RAPDU: 90 00 [15:08:05]wFMCommunicate OK [15:08:05]SAM_PROTO_ClearQueue done [15:08:05]KKMCreateOFDPacket [15:08:05]OFDProtocolAddRootSTLVToBuf [15:08:05]FM_MakeSignedData [15:08:05]FM_MakeSignedData [15:08:05]SAM_PROTO_SignData [15:08:05]wFMCommunicate request_size=4 [15:08:05]MH_SAM_APDU [15:08:05]CAPDU: 80 0D 01 02 [15:08:05]Write to MH i2c: E2 08 00 9E 5D 80 0D 01 02 00 00 00 00 74 [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]OFD Sender: No OFD packet to send [15:08:05]Read from MH i2c: E2 [15:08:05]MH_I2C_Read... [15:08:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:05]Read from MH i2c: E2 03 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 9E 5D 00 90 00 6F [15:08:05]RAPDU: 90 00 [15:08:05]wFMCommunicate OK [15:08:05]wFMCommunicate request_size=255 [15:08:05]MH_SAM_APDU [15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 67 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 88 02 00 35 04 06 00 CA [15:08:05]Write to MH i2c: E2 02 01 9F 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 67 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 88 02 00 35 04 06 00 CA 00 00 30 [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:05]Read from MH i2c: E2 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 9F 5D 00 90 00 70 [15:08:05]RAPDU: 90 00 [15:08:05]wFMCommunicate OK [15:08:05]wFMCommunicate request_size=10 [15:08:05]MH_SAM_APDU [15:08:05]CAPDU: 80 0D 02 02 05 F4 E7 7A 5F 2E [15:08:05]Write to MH i2c: E2 0D 00 A0 5D 80 0D 02 02 05 00 F4 E7 7A 5F 2E 00 00 63 [15:08:05]Write i2c OK [15:08:05]MH_I2C_Read... [15:08:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:05]Read from MH i2c: E2 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 [15:08:05]MH_I2C_Read... [15:08:05]Read from MH i2c: E2 03 00 A0 5D 00 90 00 71 [15:08:05]RAPDU: 90 00 [15:08:05]wFMCommunicate OK [15:08:05]wFMCommunicate request_size=4 [15:08:05]MH_SAM_APDU [15:08:05]CAPDU: 80 0D 03 02 [15:08:05]Write to MH i2c: E2 08 00 A1 5D 80 0D 03 02 00 00 00 00 79 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:06]Read from MH i2c: E2 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: E2 0B 00 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: E2 0B 00 A1 5D 00 A0 86 7B C9 76 F8 16 DC 90 00 44 [15:08:06]RAPDU: A0 86 7B C9 76 F8 16 DC 90 00 [15:08:06]wFMCommunicate OK [15:08:06]SAM_PROTO_SignData done [15:08:06]FM_MakeSignedData done [15:08:06]CreateOFDProtocolMessage [15:08:06]wFMCommunicate request_size=4 [15:08:06]MH_SAM_APDU [15:08:06]CAPDU: 80 11 00 00 [15:08:06]Write to MH i2c: E2 08 00 A2 5D 80 11 00 00 00 00 00 00 79 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:06]Read from MH i2c: E2 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: E2 17 00 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: E2 17 00 A2 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [15:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:06]wFMCommunicate OK [15:08:06]CreateOFDProtocolMessage done [15:08:06]OFDSenderStorePacket 166068 [15:08:06]StoreOFDPacket docnum=166068 [15:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A1 C7 07 01 57 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 67 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 88 02 00 35 04 06 00 CA F4 E7 7A 5F 2E A0 86 7B C9 76 F8 16 DC [15:08:06]CheckFolder [15:08:06]dirname=/storage/ofd_packets [15:08:06]CheckFolder done [15:08:06]ProducePacketName [15:08:06]name=ofd_packets/00166068 [15:08:06]NVStorageSaveData ofd_packets/00166068 [15:08:06]File name is /storage/ofd_packets/00166068 [15:08:06]Write 301 bytes [15:08:06]NVStorageSaveData done [15:08:06]OFDSenderStorePacket done [15:08:06]KKMCreateOFDPacket done [15:08:06]NVStorageSaveData kkm_last_timestamp [15:08:06]File name is /storage/kkm_last_timestamp [15:08:06]Write 4 bytes [15:08:06]NVStorageSaveData done [15:08:06]ExternCall_PrintAddStr [15:08:06]wPrintStart [15:08:06]Write to MH i2c: 01 00 00 A3 5D 00 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: 01 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: 01 07 00 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: 01 07 00 A3 5D 00 00 00 00 00 FF 0F 15 [15:08:06]RasterBufferAndPrint [15:08:06]line Счет N : (1)220640 [15:08:06]line ИНН: 02508201610067 [15:08:06]line Контрольно-Кассовый Чек [15:08:06]line ПРОДАЖА [15:08:06]line ТРК (МРК, ГНК) : 33 [15:08:06]line Товар: 2710124130 [15:08:06]line Аи-92-К-5 [15:08:06]line 7.480 * 66.90 [15:08:06]line = 500.41 [15:08:06]line НДС 12% НСП 1% [15:08:06]line > о реализуемом товаре [15:08:06]line ОКРУГЛЕНИЕ: -0.41 [15:08:06]line ИТОГО: 500.00 [15:08:06]line Внесено: 500.00 [15:08:06]line СДАЧА: 0.00 [15:08:06]line НСП 1% : 4.43 [15:08:06]line НДС 12% : 53.14 [15:08:06]line Наличными: 500.00 [15:08:06]line Безнал.: 0.00 [15:08:06]line Место: АЗС № 161 "Партнер Нефть" [15:08:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:08:06]line СНО: Общий режим [15:08:06]line Чек 179 21.10.2024 15:08 [15:08:06]line Смена: 535 ФФД: 1.0 [15:08:06]line ЗНМ: 0300000104 [15:08:06]line РНМ: 0000000000091764 [15:08:06]line Версия ККМ: 001 [15:08:06]line ФМ: 0000000000871759 [15:08:06]line ФД: 166068 [15:08:06]line ФПД: 223153204387630 [15:08:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150823&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166068&fm=223153204387630&tin=02508201610067®Number=0000000000091764&sum=50000 [15:08:06]OFD Sender: Processing packet 166068 [packets to send 48, broken 47] [15:08:06]ProducePacketName [15:08:06]name=ofd_packets/00166068 [15:08:06]OFD Sender: To server: pG, [15:08:06]CommunicateWithHost lk.salyk.kg:30040 [15:08:06]ConnectInit lk.salyk.kg [15:08:06]written 0, free lines is 4095 [15:08:06]Connected sock=7 [15: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 35 39 0F 01 00 00 A1 C7 07 01 57 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 67 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 88 02 00 35 04 06 00 CA F4 E7 7A 5F 2E A0 86 7B C9 76 F8 16 DC [15: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 35 39 4F 00 00 00 5E E0 47 00 1A 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B4 88 02 00 F4 03 04 00 D5 14 16 67 B6 04 01 00 00 B9 D0 BB EA EC 1C 59 9E [15:08:06]CommunicateWithHost err = 0 [15:08:06]CheckOFDResponse [15:08:06]1017 (14) - 77093643461234 [15:08:06]1041 (16) - 0000000000871759 [15:08:06]1040 (4) - 166068 [15:08:06]1012 (4) - 21.10.2024 08:46 [15:08:06]1206 (1) - 0 [15:08:06]OFD Sender: Remove packet 166068 [15:08:06]ProducePacketName [15:08:06]name=ofd_packets/00166068 [15:08:06]NVStorageDeleteData [15:08:06]Write to MH i2c: 01 00 00 CE 5D 2B [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: 01 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: 01 07 00 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: 01 07 00 CE 5D 00 00 00 00 00 D0 0C 0E [15:08:06]RasterBufferAndPrint [15:08:06]line [15:08:06]line [15:08:06]line [15:08:06]line [15:08:06]line [15:08:06]written 0, free lines is 3287 [15:08:06]MH_Cut [15:08:06]Write to MH i2c: D1 01 00 D5 5D 01 04 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: D1 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: D1 01 00 [15:08:06]MH_I2C_Read... [15:08:06]Read from MH i2c: D1 01 00 D5 5D 00 03 [15:08:06]Write to MH i2c: 01 00 00 D6 5D 33 [15:08:06]Write i2c OK [15:08:06]MH_I2C_Read... [15:08:07]OFD Sender: No OFD packet to send [15:08:07]*** Cut start [15:08:07]*** Partial cut [15:08:07]*** CUTSNS_PIN = 1 [15:08:07]*** CUTSNS_PIN = 0 [15:08:07]*** Brake cut motor [15:08:08]Read from MH i2c: 01 [15:08:08]MH_I2C_Read... [15:08:08]*** Stop cut motor [15:08:08]*** Cut end [15:08:08]Read from MH i2c: 01 07 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: 01 07 00 D6 5D 00 00 00 00 00 FF 0F 48 [15:08:08]process_action close_receipt done [15:08:08]requested_data is exist [15:08:08]produce_requested_data [15:08:08]requested_item fm.sn is exist - process it [15:08:08]wFMCommunicate request_size=4 [15:08:08]MH_SAM_APDU [15:08:08]CAPDU: 80 11 00 00 [15:08:08]Write to MH i2c: E2 08 00 D7 5D 80 11 00 00 00 00 00 00 AE [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:08]Read from MH i2c: E2 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 17 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 17 00 D7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [15:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:08]wFMCommunicate OK [15:08:08]requested_item fd.num is exist - process it [15:08:08]SAM_PROTO_GetFieldsCounters [15:08:08]wFMCommunicate request_size=4 [15:08:08]MH_SAM_APDU [15:08:08]CAPDU: 80 13 00 00 [15:08:08]Write to MH i2c: E2 08 00 D8 5D 80 13 00 00 00 00 00 00 B1 [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:08]Read from MH i2c: E2 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 62 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 62 00 D8 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [15: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:08]wFMCommunicate OK [15:08:08]SAM_PROTO_GetFieldsCounters done [15:08:08]requested_item shift.num is exist - process it [15:08:08]requested_item shift.opened is exist - process it [15:08:08]req_shift_opened [15:08:08]FM_GetShiftState [15:08:08]SAM_PROTO_GetShiftState [15:08:08]wFMCommunicate request_size=4 [15:08:08]MH_SAM_APDU [15:08:08]CAPDU: 80 13 01 00 [15:08:08]Write to MH i2c: E2 08 00 D9 5D 80 13 01 00 00 00 00 00 B3 [15:08:08]Write i2c OK [15:08:08]MH_I2C_Read... [15:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:08]Read from MH i2c: E2 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 0E 00 [15:08:08]MH_I2C_Read... [15:08:08]Read from MH i2c: E2 0E 00 D9 5D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BC [15:08:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:08:08]wFMCommunicate OK [15:08:08]SAM_PROTO_GetShiftState done [15:08:08]FM_GetShiftState done [15:08:08]req_shift_opened done [15:08:08]requested_item shift.open_date is exist - process it [15:08:08]req_shift_open_date [15:08:08]req_shift_open_date done [15:08:08]produce_requested_data done [15:08:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166068,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:08:08]process_action_free close_receipt [15:08:08]json_value_free [15:08:08]json_value_free done [15:08:08]process_json_proto returns [15:08:08]Send response to host [15:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166068,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:08:08]free response buf [15:08:08]execute_script done [15:08:08]execute_script returns [15:08:08]free content buf [15:08:08]Sock 6.Close socket [15:08:08]Sock 6.Thread stoped [15:08:09]accept exits with 5 [15:08:09]New connection [15:08:09]New thread 3066776932 created [15:08:09]Thread 3066920292 joined [15:08:09]Waiting for new connection... [15:08:09] Sock 5.Parse request [15:08:09]Sock 5.Check first char [15:08:09]Sock 5.First char is OK [15:08:09]request: POST /json_proto HTTP/1.0 [15:08:09]Method: POST [15:08:09]URL: /json_proto [15:08:09]Method is POST - this is cgi request [15:08:09]url: /json_proto [15:08:09]query_string will be loaded in cgi processing [15:08:09]execute_cgi json_proto POST (null) [15:08:09]execute_cgi path=json_proto method=POST [15:08:09]POST find Content-Length [15:08:09]Host: 172.17.53.195:8080 [15:08:09]Content-Length: 682 [15:08:09]Content-Type: application/json [15:08:09] [15:08:09]POST finish read [15:08:09]Found Content-Length = 682 [15:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:09]execute_script... [15:08: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)220639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:09]POST & json_proto [15:08:09]process_json_proto [15:08:09]json parsed OK: [15:08:09]protocol is kg_v1.0 [15:08:09]action value=close_receipt [15:08:09]process_action close_receipt [15:08:09]cmd_close_receipt [15:08:09]MH_GetDate [15:08:09]Write to MH i2c: F0 00 00 DA 5D 26 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 09 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: F0 09 00 DA 5D 00 6B 6E 16 67 21 48 4A 65 9D [15:08:09]GetLastDocTimeStamp 1729523303 [15:08:09]current date 1729523307 [15:08:09]FM_GetShiftState [15:08:09]SAM_PROTO_GetShiftState [15:08:09]wFMCommunicate request_size=4 [15:08:09]MH_SAM_APDU [15:08:09]CAPDU: 80 13 01 00 [15:08:09]Write to MH i2c: E2 08 00 DB 5D 80 13 01 00 00 00 00 00 B5 [15:08:09]Write i2c OK [15:08:09]MH_I2C_Read... [15:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:09]Read from MH i2c: E2 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0E 00 [15:08:09]MH_I2C_Read... [15:08:09]Read from MH i2c: E2 0E 00 DB 5D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BE [15:08:09]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:08:09]wFMCommunicate OK [15:08:09]SAM_PROTO_GetShiftState done [15:08:09]FM_GetShiftState done [15:08:09]opened in 1729470944 [15:08:09]opened+sec_in_day 1729557344 [15:08:09]quantity*price = 100015 [15:08:09]sum+1 = 100017 [15:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 180 21.10.2024 15:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166069 ФПД: 176354948382424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166069&fm=176354948382424&tin=02508201610067®Number=0000000000091764&sum=100000 [15:08:10]StoreToDocumentArchive [15:08:10]shift 535 fd 166069 [15:08:10]save to /storage/0535/doc_00166069 [15:08:10]save last doc name /storage/0535/doc_00166069 to /storage/kkm_last_doc_name [15:08:10]save OK [15:08:10]Clear old archive folders... [15:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:10]tlvbuf is 01A8C790 [15:08:10]SAM_PROTO_ClearQueue [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 09 00 00 [15:08:10]Write to MH i2c: E2 08 00 E8 5D 80 09 00 00 00 00 00 00 B7 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 E8 5D 00 90 00 B9 [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]SAM_PROTO_ClearQueue done [15:08:10]KKMCreateOFDPacket [15:08:10]OFDProtocolAddRootSTLVToBuf [15:08:10]FM_MakeSignedData [15:08:10]FM_MakeSignedData [15:08:10]SAM_PROTO_SignData [15:08:10]wFMCommunicate request_size=4 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 0D 01 02 [15:08:10]Write to MH i2c: E2 08 00 E9 5D 80 0D 01 02 00 00 00 00 BF [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:10]Read from MH i2c: E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 E9 5D 00 90 00 BA [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]wFMCommunicate request_size=255 [15:08:10]MH_SAM_APDU [15:08: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6B 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 88 02 00 35 04 06 00 A0 [15:08:10]Write to MH i2c: E2 02 01 EA 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 6B 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 88 02 00 35 04 06 00 A0 00 00 51 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:10]E2 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 [15:08:10]MH_I2C_Read... [15:08:10]Read from MH i2c: E2 03 00 EA 5D 00 90 00 BB [15:08:10]RAPDU: 90 00 [15:08:10]wFMCommunicate OK [15:08:10]wFMCommunicate request_size=10 [15:08:10]MH_SAM_APDU [15:08:10]CAPDU: 80 0D 02 02 05 64 D6 0D 7E D8 [15:08:10]Write to MH i2c: E2 0D 00 EB 5D 80 0D 02 02 05 00 64 D6 0D 7E D8 00 00 69 [15:08:10]Write i2c OK [15:08:10]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 03 00 EB 5D 00 90 00 BC [15:08:11]RAPDU: 90 00 [15:08:11]wFMCommunicate OK [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 0D 03 02 [15:08:11]Write to MH i2c: E2 08 00 EC 5D 80 0D 03 02 00 00 00 00 C4 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0B 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 0B 00 EC 5D 00 00 27 E3 49 B7 8F 22 EE 90 00 6E [15:08:11]RAPDU: 00 27 E3 49 B7 8F 22 EE 90 00 [15:08:11]wFMCommunicate OK [15:08:11]SAM_PROTO_SignData done [15:08:11]FM_MakeSignedData done [15:08:11]CreateOFDProtocolMessage [15:08:11]wFMCommunicate request_size=4 [15:08:11]MH_SAM_APDU [15:08:11]CAPDU: 80 11 00 00 [15:08:11]Write to MH i2c: E2 08 00 ED 5D 80 11 00 00 00 00 00 00 C4 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:11]Read from MH i2c: E2 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: E2 17 00 ED 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1C [15:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:11]wFMCommunicate OK [15:08:11]CreateOFDProtocolMessage done [15:08:11]OFDSenderStorePacket 166069 [15:08:11]StoreOFDPacket docnum=166069 [15:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E 71 07 01 39 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6B 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 88 02 00 35 04 06 00 A0 64 D6 0D 7E D8 00 27 E3 49 B7 8F 22 EE [15:08:11]CheckFolder [15:08:11]dirname=/storage/ofd_packets [15:08:11]CheckFolder done [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00166069 [15:08:11]NVStorageSaveData ofd_packets/00166069 [15:08:11]File name is /storage/ofd_packets/00166069 [15:08:11]Write 301 bytes [15:08:11]NVStorageSaveData done [15:08:11]OFDSenderStorePacket done [15:08:11]KKMCreateOFDPacket done [15:08:11]NVStorageSaveData kkm_last_timestamp [15:08:11]File name is /storage/kkm_last_timestamp [15:08:11]Write 4 bytes [15:08:11]NVStorageSaveData done [15:08:11]ExternCall_PrintAddStr [15:08:11]wPrintStart [15:08:11]Write to MH i2c: 01 00 00 EE 5D 4B [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 EE 5D 00 00 00 00 00 FF 0F 60 [15:08:11]RasterBufferAndPrint [15:08:11]line Счет N : (1)220639 [15:08:11]line ИНН: 02508201610067 [15:08:11]line Контрольно-Кассовый Чек [15:08:11]line ПРОДАЖА [15:08:11]line ТРК (МРК, ГНК) : 23 [15:08:11]line Товар: 2710124130 [15:08:11]line Аи-92-К-5 [15:08:11]line 14.950 * 66.90 [15:08:11]line = 1000.16 [15:08:11]line НДС 12% НСП 1% [15:08:11]line > о реализуемом товаре [15:08:11]line ОКРУГЛЕНИЕ: -0.16 [15:08:11]line ИТОГО: 1000.00 [15:08:11]line Внесено: 1000.00 [15:08:11]line СДАЧА: 0.00 [15:08:11]line НСП 1% : 8.85 [15:08:11]line НДС 12% : 106.21 [15:08:11]line Наличными: 1000.00 [15:08:11]line Безнал.: 0.00 [15:08:11]line Место: АЗС № 161 "Партнер Нефть" [15:08:11]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:08:11]line СНО: Общий режим [15:08:11]line Чек 180 21.10.2024 15:08 [15:08:11]line Смена: 535 ФФД: 1.0 [15:08:11]line ЗНМ: 0300000104 [15:08:11]line РНМ: 0000000000091764 [15:08:11]line Версия ККМ: 001 [15:08:11]line ФМ: 0000000000871759 [15:08:11]line ФД: 166069 [15:08:11]line ФПД: 176354948382424 [15:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150827&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166069&fm=176354948382424&tin=02508201610067®Number=0000000000091764&sum=100000 [15:08:11]written 0, free lines is 4095 [15:08:11]OFD Sender: Processing packet 166069 [packets to send 48, broken 47] [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00166069 [15:08:11]OFD Sender: To server: pG, [15:08:11]CommunicateWithHost lk.salyk.kg:30040 [15:08:11]ConnectInit lk.salyk.kg [15:08:11]Connected sock=7 [15:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E 71 07 01 39 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 6B 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 88 02 00 35 04 06 00 A0 64 D6 0D 7E D8 00 27 E3 49 B7 8F 22 EE [15:08:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 49 70 47 00 A7 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B5 88 02 00 F4 03 04 00 DA 14 16 67 B6 04 01 00 00 7E 32 C8 89 05 2D F4 FE [15:08:11]CommunicateWithHost err = 0 [15:08:11]CheckOFDResponse [15:08:11]1017 (14) - 77093643461234 [15:08:11]1041 (16) - 0000000000871759 [15:08:11]1040 (4) - 166069 [15:08:11]1012 (4) - 21.10.2024 08:46 [15:08:11]1206 (1) - 0 [15:08:11]OFD Sender: Remove packet 166069 [15:08:11]ProducePacketName [15:08:11]name=ofd_packets/00166069 [15:08:11]NVStorageDeleteData [15:08:11]Write to MH i2c: 01 00 00 19 5E 77 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: 01 07 00 19 5E 00 00 00 00 00 D2 0C 5C [15:08:11]RasterBufferAndPrint [15:08:11]line [15:08:11]line [15:08:11]line [15:08:11]line [15:08:11]line [15:08:11]written 0, free lines is 3295 [15:08:11]MH_Cut [15:08:11]Write to MH i2c: D1 01 00 20 5E 01 50 [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: D1 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: D1 01 00 [15:08:11]MH_I2C_Read... [15:08:11]Read from MH i2c: D1 01 00 20 5E 00 4F [15:08:11]Write to MH i2c: 01 00 00 21 5E 7F [15:08:11]Write i2c OK [15:08:11]MH_I2C_Read... [15:08:12]OFD Sender: No OFD packet to send [15:08:12]*** Cut start [15:08:12]*** Partial cut [15:08:12]*** CUTSNS_PIN = 1 [15:08:12]*** CUTSNS_PIN = 0 [15:08:12]*** Brake cut motor [15:08:13]Read from MH i2c: 01 [15:08:13]MH_I2C_Read... [15:08:13]*** Stop cut motor [15:08:13]*** Cut end [15:08:13]Read from MH i2c: 01 07 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: 01 07 00 21 5E 00 00 00 00 00 FF 0F 94 [15:08:13]process_action close_receipt done [15:08:13]requested_data is exist [15:08:13]produce_requested_data [15:08:13]requested_item fm.sn is exist - process it [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 11 00 00 [15:08:13]Write to MH i2c: E2 08 00 22 5E 80 11 00 00 00 00 00 00 FA [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 17 00 22 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 52 [15:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:08:13]wFMCommunicate OK [15:08:13]requested_item fd.num is exist - process it [15:08:13]SAM_PROTO_GetFieldsCounters [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 13 00 00 [15:08:13]Write to MH i2c: E2 08 00 23 5E 80 13 00 00 00 00 00 00 FD [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 62 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 62 00 23 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [15:08:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_GetFieldsCounters done [15:08:13]requested_item shift.num is exist - process it [15:08:13]requested_item shift.opened is exist - process it [15:08:13]req_shift_opened [15:08:13]FM_GetShiftState [15:08:13]SAM_PROTO_GetShiftState [15:08:13]wFMCommunicate request_size=4 [15:08:13]MH_SAM_APDU [15:08:13]CAPDU: 80 13 01 00 [15:08:13]Write to MH i2c: E2 08 00 24 5E 80 13 01 00 00 00 00 00 FF [15:08:13]Write i2c OK [15:08:13]MH_I2C_Read... [15:08:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:13]Read from MH i2c: E2 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0E 00 [15:08:13]MH_I2C_Read... [15:08:13]Read from MH i2c: E2 0E 00 24 5E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 08 [15:08:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:08:13]wFMCommunicate OK [15:08:13]SAM_PROTO_GetShiftState done [15:08:13]FM_GetShiftState done [15:08:13]req_shift_opened done [15:08:13]requested_item shift.open_date is exist - process it [15:08:13]req_shift_open_date [15:08:13]req_shift_open_date done [15:08:13]produce_requested_data done [15:08:13]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166069,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:08:13]process_action_free close_receipt [15:08:13]json_value_free [15:08:13]json_value_free done [15:08:13]process_json_proto returns [15:08:13]Send response to host [15:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166069,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:08:13]free response buf [15:08:13]execute_script done [15:08:13]execute_script returns [15:08:13]free content buf [15:08:13]Sock 5.Close socket [15:08:13]Sock 5.Thread stoped [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:08:59]accept exits with 6 [15:08:59]New connection [15:08:59]New thread 3066920292 created [15:08:59]Thread 3066776932 joined [15:08:59]Waiting for new connection... [15:08:59] Sock 6.Parse request [15:08:59]Sock 6.Check first char [15:08:59]Sock 6.First char is OK [15:08:59]request: POST /json_proto HTTP/1.0 [15:08:59]Method: POST [15:08:59]URL: /json_proto [15:08:59]Method is POST - this is cgi request [15:08:59]url: /json_proto [15:08:59]query_string will be loaded in cgi processing [15:08:59]execute_cgi json_proto POST (null) [15:08:59]execute_cgi path=json_proto method=POST [15:08:59]POST find Content-Length [15:08:59]Host: 172.17.53.195:8080 [15:08:59]Content-Length: 677 [15:08:59]Content-Type: application/json [15:08:59] [15:08:59]POST finish read [15:08:59]Found Content-Length = 677 [15:08:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:59]execute_script... [15:08: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)220641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:59]POST & json_proto [15:08:59]process_json_proto [15:08:59]json parsed OK: [15:08:59]protocol is kg_v1.0 [15:08:59]action value=close_receipt [15:08:59]process_action close_receipt [15:08:59]cmd_close_receipt [15:08:59]MH_GetDate [15:08:59]Write to MH i2c: F0 00 00 25 5E 72 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: F0 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: F0 09 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: F0 09 00 25 5E 00 9E 6E 16 67 21 48 4A 65 1C [15:08:59]GetLastDocTimeStamp 1729523307 [15:08:59]current date 1729523358 [15:08:59]FM_GetShiftState [15:08:59]SAM_PROTO_GetShiftState [15:08:59]wFMCommunicate request_size=4 [15:08:59]MH_SAM_APDU [15:08:59]CAPDU: 80 13 01 00 [15:08:59]Write to MH i2c: E2 08 00 26 5E 80 13 01 00 00 00 00 00 01 [15:08:59]Write i2c OK [15:08:59]MH_I2C_Read... [15:08:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:59]Read from MH i2c: E2 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 [15:08:59]MH_I2C_Read... [15:08:59]Read from MH i2c: E2 0E 00 26 5E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0A [15:08:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:08:59]wFMCommunicate OK [15:08:59]SAM_PROTO_GetShiftState done [15:08:59]FM_GetShiftState done [15:08:59]opened in 1729470944 [15:08:59]opened+sec_in_day 1729557344 [15:08:59]quantity*price = 29971 [15:08:59]sum+1 = 29972 [15:08:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 181 21.10.2024 15:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166070 ФПД: 99467723776157 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166070&fm=99467723776157&tin=02508201610067®Number=0000000000091764&sum=29900 [15:09:00]StoreToDocumentArchive [15:09:00]shift 535 fd 166070 [15:09:00]save to /storage/0535/doc_00166070 [15:09:00]save last doc name /storage/0535/doc_00166070 to /storage/kkm_last_doc_name [15:09:00]save OK [15:09:00]Clear old archive folders... [15:09:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:00]tlvbuf is 01A0AE70 [15:09:00]SAM_PROTO_ClearQueue [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 09 00 00 [15:09:00]Write to MH i2c: E2 08 00 33 5E 80 09 00 00 00 00 00 00 03 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 33 5E 00 90 00 05 [15:09:00]RAPDU: 90 00 [15:09:00]wFMCommunicate OK [15:09:00]SAM_PROTO_ClearQueue done [15:09:00]KKMCreateOFDPacket [15:09:00]OFDProtocolAddRootSTLVToBuf [15:09:00]FM_MakeSignedData [15:09:00]FM_MakeSignedData [15:09:00]SAM_PROTO_SignData [15:09:00]wFMCommunicate request_size=4 [15:09:00]MH_SAM_APDU [15:09:00]CAPDU: 80 0D 01 02 [15:09:00]Write to MH i2c: E2 08 00 34 5E 80 0D 01 02 00 00 00 00 0B [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:00]Read from MH i2c: E2 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 [15:09:00]MH_I2C_Read... [15:09:00]Read from MH i2c: E2 03 00 34 5E 00 90 00 06 [15:09:00]RAPDU: 90 00 [15:09:00]wFMCommunicate OK [15:09:00]wFMCommunicate request_size=255 [15:09:00]MH_SAM_APDU [15:09: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 9E 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 88 02 00 35 04 06 00 5A [15:09:00]Write to MH i2c: E2 02 01 35 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 9E 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 88 02 00 35 04 06 00 5A 00 00 67 [15:09:00]Write i2c OK [15:09:00]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 35 5E 00 90 00 07 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=10 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 02 02 05 77 22 57 A0 9D [15:09:01]Write to MH i2c: E2 0D 00 36 5E 80 0D 02 02 05 00 77 22 57 A0 9D 00 00 45 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 03 00 36 5E 00 90 00 08 [15:09:01]RAPDU: 90 00 [15:09:01]wFMCommunicate OK [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 0D 03 02 [15:09:01]Write to MH i2c: E2 08 00 37 5E 80 0D 03 02 00 00 00 00 10 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0B 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 0B 00 37 5E 00 DE B8 B3 B6 45 B0 F1 A7 90 00 9D [15:09:01]RAPDU: DE B8 B3 B6 45 B0 F1 A7 90 00 [15:09:01]wFMCommunicate OK [15:09:01]SAM_PROTO_SignData done [15:09:01]FM_MakeSignedData done [15:09:01]CreateOFDProtocolMessage [15:09:01]wFMCommunicate request_size=4 [15:09:01]MH_SAM_APDU [15:09:01]CAPDU: 80 11 00 00 [15:09:01]Write to MH i2c: E2 08 00 38 5E 80 11 00 00 00 00 00 00 10 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:01]Read from MH i2c: E2 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 17 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: E2 17 00 38 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 68 [15:09:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:01]wFMCommunicate OK [15:09:01]CreateOFDProtocolMessage done [15:09:01]OFDSenderStorePacket 166070 [15:09:01]StoreOFDPacket docnum=166070 [15:09:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 EA 07 01 D7 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 9E 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 88 02 00 35 04 06 00 5A 77 22 57 A0 9D DE B8 B3 B6 45 B0 F1 A7 [15:09:01]CheckFolder [15:09:01]dirname=/storage/ofd_packets [15:09:01]CheckFolder done [15:09:01]ProducePacketName [15:09:01]name=ofd_packets/00166070 [15:09:01]NVStorageSaveData ofd_packets/00166070 [15:09:01]File name is /storage/ofd_packets/00166070 [15:09:01]Write 301 bytes [15:09:01]NVStorageSaveData done [15:09:01]OFDSenderStorePacket done [15:09:01]KKMCreateOFDPacket done [15:09:01]NVStorageSaveData kkm_last_timestamp [15:09:01]File name is /storage/kkm_last_timestamp [15:09:01]Write 4 bytes [15:09:01]NVStorageSaveData done [15:09:01]ExternCall_PrintAddStr [15:09:01]wPrintStart [15:09:01]Write to MH i2c: 01 00 00 39 5E 97 [15:09:01]Write i2c OK [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 [15:09:01]MH_I2C_Read... [15:09:01]Read from MH i2c: 01 07 00 39 5E 00 00 00 00 00 FF 0F AC [15:09:01]RasterBufferAndPrint [15:09:01]line Счет N : (1)220641 [15:09:01]line ИНН: 02508201610067 [15:09:01]line Контрольно-Кассовый Чек [15:09:01]line ПРОДАЖА [15:09:01]line ТРК (МРК, ГНК) : 13 [15:09:01]line Товар: 2710124130 [15:09:01]line Аи-92-К-5 [15:09:01]line 4.480 * 66.90 [15:09:01]line = 299.71 [15:09:01]line НДС 12% НСП 1% [15:09:01]line > о реализуемом товаре [15:09:01]line ОКРУГЛЕНИЕ: -0.71 [15:09:01]line ИТОГО: 299.00 [15:09:01]line Внесено: 300.00 [15:09:01]line СДАЧА: 1.00 [15:09:01]line НСП 1% : 2.65 [15:09:01]line НДС 12% : 31.83 [15:09:01]line Наличными: 299.00 [15:09:01]line Безнал.: 0.00 [15:09:01]line Место: АЗС № 161 "Партнер Нефть" [15:09:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:09:01]line СНО: Общий режим [15:09:01]line Чек 181 21.10.2024 15:09 [15:09:01]line Смена: 535 ФФД: 1.0 [15:09:01]line ЗНМ: 0300000104 [15:09:01]line РНМ: 0000000000091764 [15:09:01]line Версия ККМ: 001 [15:09:01]line ФМ: 0000000000871759 [15:09:01]line ФД: 166070 [15:09:01]line ФПД: 99467723776157 [15:09:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T150918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166070&fm=99467723776157&tin=02508201610067®Number=0000000000091764&sum=29900 [15:09:01]OFD Sender: Processing packet 166070 [packets to send 48, broken 47] [15:09:01]ProducePacketName [15:09:01]name=ofd_packets/00166070 [15:09:01]OFD Sender: To server: pG, [15:09:01]CommunicateWithHost lk.salyk.kg:30040 [15:09:01]ConnectInit lk.salyk.kg [15:09:01]written 0, free lines is 4095 [15:09:01]Connected sock=7 [15:09:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 EA 07 01 D7 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 9E 6E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 88 02 00 35 04 06 00 5A 77 22 57 A0 9D DE B8 B3 B6 45 B0 F1 A7 [15:09:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 A3 47 00 BD BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B6 88 02 00 F4 03 04 00 0C 15 16 67 B6 04 01 00 00 F5 66 1E E4 80 93 3A E8 [15:09:01]CommunicateWithHost err = 0 [15:09:01]CheckOFDResponse [15:09:01]1017 (14) - 77093643461234 [15:09:01]1041 (16) - 0000000000871759 [15:09:01]1040 (4) - 166070 [15:09:01]1012 (4) - 21.10.2024 08:47 [15:09:01]1206 (1) - 0 [15:09:01]OFD Sender: Remove packet 166070 [15:09:01]ProducePacketName [15:09:01]name=ofd_packets/00166070 [15:09:01]NVStorageDeleteData [15:09:02]Write to MH i2c: 01 00 00 64 5E C2 [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: 01 07 00 64 5E 00 00 00 00 00 C8 0C 9D [15:09:02]RasterBufferAndPrint [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]line [15:09:02]written 0, free lines is 3278 [15:09:02]MH_Cut [15:09:02]Write to MH i2c: D1 01 00 6B 5E 01 9B [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 01 00 [15:09:02]MH_I2C_Read... [15:09:02]Read from MH i2c: D1 01 00 6B 5E 00 9A [15:09:02]Write to MH i2c: 01 00 00 6C 5E CA [15:09:02]Write i2c OK [15:09:02]MH_I2C_Read... [15:09:02]OFD Sender: No OFD packet to send [15:09:02]*** Cut start [15:09:02]*** Partial cut [15:09:02]*** CUTSNS_PIN = 1 [15:09:02]*** CUTSNS_PIN = 0 [15:09:03]*** Brake cut motor [15:09:03]Read from MH i2c: 01 [15:09:03]MH_I2C_Read... [15:09:03]*** Stop cut motor [15:09:03]*** Cut end [15:09:03]Read from MH i2c: 01 07 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: 01 07 00 6C 5E 00 00 00 00 00 FF 0F DF [15:09:03]process_action close_receipt done [15:09:03]requested_data is exist [15:09:03]produce_requested_data [15:09:03]requested_item fm.sn is exist - process it [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 11 00 00 [15:09:03]Write to MH i2c: E2 08 00 6D 5E 80 11 00 00 00 00 00 00 45 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 17 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 17 00 6D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9D [15:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:09:03]wFMCommunicate OK [15:09:03]requested_item fd.num is exist - process it [15:09:03]SAM_PROTO_GetFieldsCounters [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 13 00 00 [15:09:03]Write to MH i2c: E2 08 00 6E 5E 80 13 00 00 00 00 00 00 48 [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 62 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 62 00 6E 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [15:09:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_GetFieldsCounters done [15:09:03]requested_item shift.num is exist - process it [15:09:03]requested_item shift.opened is exist - process it [15:09:03]req_shift_opened [15:09:03]FM_GetShiftState [15:09:03]SAM_PROTO_GetShiftState [15:09:03]wFMCommunicate request_size=4 [15:09:03]MH_SAM_APDU [15:09:03]CAPDU: 80 13 01 00 [15:09:03]Write to MH i2c: E2 08 00 6F 5E 80 13 01 00 00 00 00 00 4A [15:09:03]Write i2c OK [15:09:03]MH_I2C_Read... [15:09:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:03]Read from MH i2c: E2 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 0E 00 [15:09:03]MH_I2C_Read... [15:09:03]Read from MH i2c: E2 0E 00 6F 5E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 53 [15:09:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:09:03]wFMCommunicate OK [15:09:03]SAM_PROTO_GetShiftState done [15:09:03]FM_GetShiftState done [15:09:03]req_shift_opened done [15:09:03]requested_item shift.open_date is exist - process it [15:09:03]req_shift_open_date [15:09:03]req_shift_open_date done [15:09:03]produce_requested_data done [15:09:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166070,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:09:03]process_action_free close_receipt [15:09:03]json_value_free [15:09:03]json_value_free done [15:09:03]process_json_proto returns [15:09:03]Send response to host [15:09:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166070,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:09:03]free response buf [15:09:03]execute_script done [15:09:03]execute_script returns [15:09:03]free content buf [15:09:03]Sock 6.Close socket [15:09:03]Sock 6.Thread stoped [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:52]OFD Sender: No OFD packet to send [15:09:57]OFD Sender: No OFD packet to send [15:10:02]OFD Sender: No OFD packet to send [15:10:07]OFD Sender: No OFD packet to send [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]accept exits with 5 [15:11:07]New connection [15:11:07]New thread 3066776932 created [15:11:07]Thread 3066920292 joined [15:11:07]Waiting for new connection... [15:11:07] Sock 5.Parse request [15:11:07]Sock 5.Check first char [15:11:07]Sock 5.First char is OK [15:11:07]request: POST /json_proto HTTP/1.0 [15:11:07]Method: POST [15:11:07]URL: /json_proto [15:11:07]Method is POST - this is cgi request [15:11:07]url: /json_proto [15:11:07]query_string will be loaded in cgi processing [15:11:07]execute_cgi json_proto POST (null) [15:11:07]execute_cgi path=json_proto method=POST [15:11:07]POST find Content-Length [15:11:07]Host: 172.17.53.195:8080 [15:11:07]Content-Length: 677 [15:11:07]Content-Type: application/json [15:11:07] [15:11:07]POST finish read [15:11:07]Found Content-Length = 677 [15:11:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:07]execute_script... [15:11:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:07]POST & json_proto [15:11:07]process_json_proto [15:11:07]json parsed OK: [15:11:07]protocol is kg_v1.0 [15:11:07]action value=close_receipt [15:11:07]process_action close_receipt [15:11:07]cmd_close_receipt [15:11:07]MH_GetDate [15:11:07]Write to MH i2c: F0 00 00 70 5E BD [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: F0 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: F0 09 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: F0 09 00 70 5E 00 1E 6F 16 67 21 48 4A 65 E8 [15:11:07]GetLastDocTimeStamp 1729523358 [15:11:07]current date 1729523486 [15:11:07]FM_GetShiftState [15:11:07]SAM_PROTO_GetShiftState [15:11:07]wFMCommunicate request_size=4 [15:11:07]MH_SAM_APDU [15:11:07]CAPDU: 80 13 01 00 [15:11:07]Write to MH i2c: E2 08 00 71 5E 80 13 01 00 00 00 00 00 4C [15:11:07]Write i2c OK [15:11:07]MH_I2C_Read... [15:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:07]Read from MH i2c: E2 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 0E 00 [15:11:07]MH_I2C_Read... [15:11:07]Read from MH i2c: E2 0E 00 71 5E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 55 [15:11:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:11:07]wFMCommunicate OK [15:11:07]SAM_PROTO_GetShiftState done [15:11:07]FM_GetShiftState done [15:11:07]opened in 1729470944 [15:11:07]opened+sec_in_day 1729557344 [15:11:07]quantity*price = 20003 [15:11:07]sum+1 = 20004 [15:11:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 182 21.10.2024 15:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166071 ФПД: 258418422996708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166071&fm=258418422996708&tin=02508201610067®Number=0000000000091764&sum=20000 [15:11:08]StoreToDocumentArchive [15:11:08]shift 535 fd 166071 [15:11:08]save to /storage/0535/doc_00166071 [15:11:08]save last doc name /storage/0535/doc_00166071 to /storage/kkm_last_doc_name [15:11:08]save OK [15:11:08]Clear old archive folders... [15:11:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:08]tlvbuf is 0165D8F0 [15:11:08]SAM_PROTO_ClearQueue [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 09 00 00 [15:11:08]Write to MH i2c: E2 08 00 7E 5E 80 09 00 00 00 00 00 00 4E [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 7E 5E 00 90 00 50 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_ClearQueue done [15:11:08]KKMCreateOFDPacket [15:11:08]OFDProtocolAddRootSTLVToBuf [15:11:08]FM_MakeSignedData [15:11:08]FM_MakeSignedData [15:11:08]SAM_PROTO_SignData [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 01 02 [15:11:08]Write to MH i2c: E2 08 00 7F 5E 80 0D 01 02 00 00 00 00 56 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 7F 5E 00 90 00 51 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]wFMCommunicate request_size=255 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 1E 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 88 02 00 35 04 06 00 EB [15:11:08]Write to MH i2c: E2 02 01 80 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 1E 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 88 02 00 35 04 06 00 EB 00 00 B3 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 80 5E 00 90 00 52 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]wFMCommunicate request_size=10 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 02 02 05 07 BA 4E 5E E4 [15:11:08]Write to MH i2c: E2 0D 00 81 5E 80 0D 02 02 05 00 07 BA 4E 5E E4 00 00 B4 [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 03 00 81 5E 00 90 00 53 [15:11:08]RAPDU: 90 00 [15:11:08]wFMCommunicate OK [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 0D 03 02 [15:11:08]Write to MH i2c: E2 08 00 82 5E 80 0D 03 02 00 00 00 00 5B [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:08]Read from MH i2c: E2 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0B 00 [15:11:08]MH_I2C_Read... [15:11:08]Read from MH i2c: E2 0B 00 82 5E 00 87 98 10 33 83 E4 BE 42 90 00 25 [15:11:08]RAPDU: 87 98 10 33 83 E4 BE 42 90 00 [15:11:08]wFMCommunicate OK [15:11:08]SAM_PROTO_SignData done [15:11:08]FM_MakeSignedData done [15:11:08]CreateOFDProtocolMessage [15:11:08]wFMCommunicate request_size=4 [15:11:08]MH_SAM_APDU [15:11:08]CAPDU: 80 11 00 00 [15:11:08]Write to MH i2c: E2 08 00 83 5E 80 11 00 00 00 00 00 00 5B [15:11:08]Write i2c OK [15:11:08]MH_I2C_Read... [15:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:09]Read from MH i2c: E2 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: E2 17 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: E2 17 00 83 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B3 [15:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:11:09]wFMCommunicate OK [15:11:09]CreateOFDProtocolMessage done [15:11:09]OFDSenderStorePacket 166071 [15:11:09]StoreOFDPacket docnum=166071 [15:11:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 8E 07 01 9D 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 1E 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 88 02 00 35 04 06 00 EB 07 BA 4E 5E E4 87 98 10 33 83 E4 BE 42 [15:11:09]CheckFolder [15:11:09]dirname=/storage/ofd_packets [15:11:09]CheckFolder done [15:11:09]ProducePacketName [15:11:09]name=ofd_packets/00166071 [15:11:09]NVStorageSaveData ofd_packets/00166071 [15:11:09]File name is /storage/ofd_packets/00166071 [15:11:09]Write 301 bytes [15:11:09]NVStorageSaveData done [15:11:09]OFDSenderStorePacket done [15:11:09]KKMCreateOFDPacket done [15:11:09]NVStorageSaveData kkm_last_timestamp [15:11:09]File name is /storage/kkm_last_timestamp [15:11:09]Write 4 bytes [15:11:09]NVStorageSaveData done [15:11:09]ExternCall_PrintAddStr [15:11:09]wPrintStart [15:11:09]Write to MH i2c: 01 00 00 84 5E E2 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 84 5E 00 00 00 00 00 FF 0F F7 [15:11:09]RasterBufferAndPrint [15:11:09]line Счет N : (1)220642 [15:11:09]line ИНН: 02508201610067 [15:11:09]line Контрольно-Кассовый Чек [15:11:09]line ПРОДАЖА [15:11:09]line ТРК (МРК, ГНК) : 23 [15:11:09]line Товар: 2710124130 [15:11:09]line Аи-92-К-5 [15:11:09]line 2.990 * 66.90 [15:11:09]line = 200.03 [15:11:09]line НДС 12% НСП 1% [15:11:09]line > о реализуемом товаре [15:11:09]line ОКРУГЛЕНИЕ: -0.03 [15:11:09]line ИТОГО: 200.00 [15:11:09]line Внесено: 200.00 [15:11:09]line СДАЧА: 0.00 [15:11:09]line НСП 1% : 1.77 [15:11:09]line НДС 12% : 21.24 [15:11:09]line Наличными: 200.00 [15:11:09]line Безнал.: 0.00 [15:11:09]line Место: АЗС № 161 "Партнер Нефть" [15:11:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:11:09]line СНО: Общий режим [15:11:09]line Чек 182 21.10.2024 15:11 [15:11:09]line Смена: 535 ФФД: 1.0 [15:11:09]line ЗНМ: 0300000104 [15:11:09]line РНМ: 0000000000091764 [15:11:09]line Версия ККМ: 001 [15:11:09]line ФМ: 0000000000871759 [15:11:09]line ФД: 166071 [15:11:09]line ФПД: 258418422996708 [15:11:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166071&fm=258418422996708&tin=02508201610067®Number=0000000000091764&sum=20000 [15:11:09]OFD Sender: Processing packet 166071 [packets to send 48, broken 47] [15:11:09]ProducePacketName [15:11:09]name=ofd_packets/00166071 [15:11:09]OFD Sender: To server: pG, [15:11:09]CommunicateWithHost lk.salyk.kg:30040 [15:11:09]ConnectInit lk.salyk.kg [15:11:09]written 0, free lines is 4095 [15:11:09]Connected sock=7 [15:11:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4D 8E 07 01 9D 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 1E 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 88 02 00 35 04 06 00 EB 07 BA 4E 5E E4 87 98 10 33 83 E4 BE 42 [15:11:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FC 7D 47 00 74 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B7 88 02 00 F4 03 04 00 8C 15 16 67 B6 04 01 00 00 8D 18 DE B4 E6 E7 32 C8 [15:11:09]CommunicateWithHost err = 0 [15:11:09]CheckOFDResponse [15:11:09]1017 (14) - 77093643461234 [15:11:09]1041 (16) - 0000000000871759 [15:11:09]1040 (4) - 166071 [15:11:09]1012 (4) - 21.10.2024 08:49 [15:11:09]1206 (1) - 0 [15:11:09]OFD Sender: Remove packet 166071 [15:11:09]ProducePacketName [15:11:09]name=ofd_packets/00166071 [15:11:09]NVStorageDeleteData [15:11:09]Write to MH i2c: 01 00 00 AF 5E 0D [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: 01 07 00 AF 5E 00 00 00 00 00 CB 0C EB [15:11:09]RasterBufferAndPrint [15:11:09]line [15:11:09]line [15:11:09]line [15:11:09]line [15:11:09]line [15:11:09]written 0, free lines is 3281 [15:11:09]MH_Cut [15:11:09]Write to MH i2c: D1 01 00 B6 5E 01 E6 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: D1 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: D1 01 00 [15:11:09]MH_I2C_Read... [15:11:09]Read from MH i2c: D1 01 00 B6 5E 00 E5 [15:11:09]Write to MH i2c: 01 00 00 B7 5E 15 [15:11:09]Write i2c OK [15:11:09]MH_I2C_Read... [15:11:10]OFD Sender: No OFD packet to send [15:11:10]*** Cut start [15:11:10]*** Partial cut [15:11:10]*** CUTSNS_PIN = 1 [15:11:10]*** CUTSNS_PIN = 0 [15:11:10]*** Brake cut motor [15:11:11]Read from MH i2c: 01 [15:11:11]MH_I2C_Read... [15:11:11]*** Stop cut motor [15:11:11]*** Cut end [15:11:11]Read from MH i2c: 01 07 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: 01 07 00 B7 5E 00 00 00 00 00 FF 0F 2A [15:11:11]process_action close_receipt done [15:11:11]requested_data is exist [15:11:11]produce_requested_data [15:11:11]requested_item fm.sn is exist - process it [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 11 00 00 [15:11:11]Write to MH i2c: E2 08 00 B8 5E 80 11 00 00 00 00 00 00 90 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 17 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 17 00 B8 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E8 [15:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:11:11]wFMCommunicate OK [15:11:11]requested_item fd.num is exist - process it [15:11:11]SAM_PROTO_GetFieldsCounters [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 13 00 00 [15:11:11]Write to MH i2c: E2 08 00 B9 5E 80 13 00 00 00 00 00 00 93 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 62 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 62 00 B9 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [15:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:11]wFMCommunicate OK [15:11:11]SAM_PROTO_GetFieldsCounters done [15:11:11]requested_item shift.num is exist - process it [15:11:11]requested_item shift.opened is exist - process it [15:11:11]req_shift_opened [15:11:11]FM_GetShiftState [15:11:11]SAM_PROTO_GetShiftState [15:11:11]wFMCommunicate request_size=4 [15:11:11]MH_SAM_APDU [15:11:11]CAPDU: 80 13 01 00 [15:11:11]Write to MH i2c: E2 08 00 BA 5E 80 13 01 00 00 00 00 00 95 [15:11:11]Write i2c OK [15:11:11]MH_I2C_Read... [15:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:11]Read from MH i2c: E2 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 0E 00 [15:11:11]MH_I2C_Read... [15:11:11]Read from MH i2c: E2 0E 00 BA 5E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9E [15:11:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:11:11]wFMCommunicate OK [15:11:11]SAM_PROTO_GetShiftState done [15:11:11]FM_GetShiftState done [15:11:11]req_shift_opened done [15:11:11]requested_item shift.open_date is exist - process it [15:11:11]req_shift_open_date [15:11:11]req_shift_open_date done [15:11:11]produce_requested_data done [15:11:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166071,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:11:11]process_action_free close_receipt [15:11:11]json_value_free [15:11:11]json_value_free done [15:11:11]process_json_proto returns [15:11:11]Send response to host [15:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166071,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:11:11]free response buf [15:11:11]execute_script done [15:11:11]execute_script returns [15:11:11]free content buf [15:11:11]Sock 5.Close socket [15:11:11]Sock 5.Thread stoped [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:34]accept exits with 6 [15:12:34]New connection [15:12:34]New thread 3066920292 created [15:12:34]Thread 3066776932 joined [15:12:34]Waiting for new connection... [15:12:34] Sock 6.Parse request [15:12:34]Sock 6.Check first char [15:12:34]Sock 6.First char is OK [15:12:34]request: POST /json_proto HTTP/1.0 [15:12:34]Method: POST [15:12:34]URL: /json_proto [15:12:34]Method is POST - this is cgi request [15:12:34]url: /json_proto [15:12:34]query_string will be loaded in cgi processing [15:12:34]execute_cgi json_proto POST (null) [15:12:34]execute_cgi path=json_proto method=POST [15:12:34]POST find Content-Length [15:12:34]Host: 172.17.53.195:8080 [15:12:34]Content-Length: 682 [15:12:34]Content-Type: application/json [15:12:34] [15:12:34]POST finish read [15:12:34]Found Content-Length = 682 [15:12:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.410, "sum" : 1699.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1699.00, "payments": [ { "type": 0, "sum" : 1699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:34]execute_script... [15:12: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)220643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 25.410, "sum" : 1699.93, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1699.00, "payments": [ { "type": 0, "sum" : 1699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:34]POST & json_proto [15:12:34]process_json_proto [15:12:34]json parsed OK: [15:12:34]protocol is kg_v1.0 [15:12:34]action value=close_receipt [15:12:34]process_action close_receipt [15:12:34]cmd_close_receipt [15:12:34]MH_GetDate [15:12:34]Write to MH i2c: F0 00 00 BB 5E 08 [15:12:34]Write i2c OK [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: F0 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: F0 09 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: F0 09 00 BB 5E 00 75 6F 16 67 21 48 4A 65 8A [15:12:34]GetLastDocTimeStamp 1729523486 [15:12:34]current date 1729523573 [15:12:34]FM_GetShiftState [15:12:34]SAM_PROTO_GetShiftState [15:12:34]wFMCommunicate request_size=4 [15:12:34]MH_SAM_APDU [15:12:34]CAPDU: 80 13 01 00 [15:12:34]Write to MH i2c: E2 08 00 BC 5E 80 13 01 00 00 00 00 00 97 [15:12:34]Write i2c OK [15:12:34]MH_I2C_Read... [15:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:34]Read from MH i2c: E2 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 0E 00 [15:12:34]MH_I2C_Read... [15:12:34]Read from MH i2c: E2 0E 00 BC 5E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A0 [15:12:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:12:34]wFMCommunicate OK [15:12:34]SAM_PROTO_GetShiftState done [15:12:34]FM_GetShiftState done [15:12:34]opened in 1729470944 [15:12:34]opened+sec_in_day 1729557344 [15:12:34]quantity*price = 169992 [15:12:34]sum+1 = 169994 [15:12:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.93 ИТОГО: 1699.00 Внесено: 1700.00 СДАЧА: 1.00 НСП 1% : 15.04 НДС 12% : 180.52 Наличными: 1699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 183 21.10.2024 15:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166072 ФПД: 273446433934174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151253&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166072&fm=273446433934174&tin=02508201610067®Number=0000000000091764&sum=169900 [15:12:35]StoreToDocumentArchive [15:12:35]shift 535 fd 166072 [15:12:35]save to /storage/0535/doc_00166072 [15:12:35]save last doc name /storage/0535/doc_00166072 to /storage/kkm_last_doc_name [15:12:35]save OK [15:12:35]Clear old archive folders... [15:12:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:35]tlvbuf is 018B06B0 [15:12:35]SAM_PROTO_ClearQueue [15:12:35]wFMCommunicate request_size=4 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 09 00 00 [15:12:35]Write to MH i2c: E2 08 00 C9 5E 80 09 00 00 00 00 00 00 99 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 C9 5E 00 90 00 9B [15:12:35]RAPDU: 90 00 [15:12:35]wFMCommunicate OK [15:12:35]SAM_PROTO_ClearQueue done [15:12:35]KKMCreateOFDPacket [15:12:35]OFDProtocolAddRootSTLVToBuf [15:12:35]FM_MakeSignedData [15:12:35]FM_MakeSignedData [15:12:35]SAM_PROTO_SignData [15:12:35]wFMCommunicate request_size=4 [15:12:35]MH_SAM_APDU [15:12:35]CAPDU: 80 0D 01 02 [15:12:35]Write to MH i2c: E2 08 00 CA 5E 80 0D 01 02 00 00 00 00 A1 [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:35]Read from MH i2c: E2 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 [15:12:35]MH_I2C_Read... [15:12:35]Read from MH i2c: E2 03 00 CA 5E 00 90 00 9C [15:12:35]RAPDU: 90 00 [15:12:35]wFMCommunicate OK [15:12:35]wFMCommunicate request_size=255 [15:12:35]MH_SAM_APDU [15:12: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 42 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 75 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 88 02 00 35 04 06 00 F8 [15:12:35]Write to MH i2c: E2 02 01 CB 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 75 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 88 02 00 35 04 06 00 F8 00 00 DA [15:12:35]Write i2c OK [15:12:35]MH_I2C_Read... [15:12:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 CB 5E 00 90 00 9D [15:12:36]RAPDU: 90 00 [15:12:36]wFMCommunicate OK [15:12:36]wFMCommunicate request_size=10 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 0D 02 02 05 B2 B5 8F 4B 5E [15:12:36]Write to MH i2c: E2 0D 00 CC 5E 80 0D 02 02 05 00 B2 B5 8F 4B 5E 00 00 4D [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 03 00 CC 5E 00 90 00 9E [15:12:36]RAPDU: 90 00 [15:12:36]wFMCommunicate OK [15:12:36]wFMCommunicate request_size=4 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 0D 03 02 [15:12:36]Write to MH i2c: E2 08 00 CD 5E 80 0D 03 02 00 00 00 00 A6 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 0B 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 0B 00 CD 5E 00 29 8D AB 6A FF 19 5A 55 90 00 39 [15:12:36]RAPDU: 29 8D AB 6A FF 19 5A 55 90 00 [15:12:36]wFMCommunicate OK [15:12:36]SAM_PROTO_SignData done [15:12:36]FM_MakeSignedData done [15:12:36]CreateOFDProtocolMessage [15:12:36]wFMCommunicate request_size=4 [15:12:36]MH_SAM_APDU [15:12:36]CAPDU: 80 11 00 00 [15:12:36]Write to MH i2c: E2 08 00 CE 5E 80 11 00 00 00 00 00 00 A6 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:36]Read from MH i2c: E2 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 17 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: E2 17 00 CE 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FE [15:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:12:36]wFMCommunicate OK [15:12:36]CreateOFDProtocolMessage done [15:12:36]OFDSenderStorePacket 166072 [15:12:36]StoreOFDPacket docnum=166072 [15:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 82 07 01 CF 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 42 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 75 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 88 02 00 35 04 06 00 F8 B2 B5 8F 4B 5E 29 8D AB 6A FF 19 5A 55 [15:12:36]CheckFolder [15:12:36]dirname=/storage/ofd_packets [15:12:36]CheckFolder done [15:12:36]ProducePacketName [15:12:36]name=ofd_packets/00166072 [15:12:36]NVStorageSaveData ofd_packets/00166072 [15:12:36]File name is /storage/ofd_packets/00166072 [15:12:36]Write 301 bytes [15:12:36]NVStorageSaveData done [15:12:36]OFDSenderStorePacket done [15:12:36]KKMCreateOFDPacket done [15:12:36]NVStorageSaveData kkm_last_timestamp [15:12:36]File name is /storage/kkm_last_timestamp [15:12:36]Write 4 bytes [15:12:36]NVStorageSaveData done [15:12:36]ExternCall_PrintAddStr [15:12:36]wPrintStart [15:12:36]Write to MH i2c: 01 00 00 CF 5E 2D [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 CF 5E 00 00 00 00 00 FF 0F 42 [15:12:36]RasterBufferAndPrint [15:12:36]line Счет N : (1)220643 [15:12:36]line ИНН: 02508201610067 [15:12:36]line Контрольно-Кассовый Чек [15:12:36]line ПРОДАЖА [15:12:36]line ТРК (МРК, ГНК) : 13 [15:12:36]line Товар: 2710124130 [15:12:36]line Аи-92-К-5 [15:12:36]line 25.410 * 66.90 [15:12:36]line = 1699.93 [15:12:36]line НДС 12% НСП 1% [15:12:36]line > о реализуемом товаре [15:12:36]line ОКРУГЛЕНИЕ: -0.93 [15:12:36]line ИТОГО: 1699.00 [15:12:36]line Внесено: 1700.00 [15:12:36]line СДАЧА: 1.00 [15:12:36]line НСП 1% : 15.04 [15:12:36]line НДС 12% : 180.52 [15:12:36]line Наличными: 1699.00 [15:12:36]line Безнал.: 0.00 [15:12:36]line Место: АЗС № 161 "Партнер Нефть" [15:12:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:12:36]line СНО: Общий режим [15:12:36]line Чек 183 21.10.2024 15:12 [15:12:36]line Смена: 535 ФФД: 1.0 [15:12:36]line ЗНМ: 0300000104 [15:12:36]line РНМ: 0000000000091764 [15:12:36]line Версия ККМ: 001 [15:12:36]line ФМ: 0000000000871759 [15:12:36]line ФД: 166072 [15:12:36]line ФПД: 273446433934174 [15:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151253&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166072&fm=273446433934174&tin=02508201610067®Number=0000000000091764&sum=169900 [15:12:36]OFD Sender: Processing packet 166072 [packets to send 48, broken 47] [15:12:36]ProducePacketName [15:12:36]name=ofd_packets/00166072 [15:12:36]OFD Sender: To server: pG, [15:12:36]CommunicateWithHost lk.salyk.kg:30040 [15:12:36]ConnectInit lk.salyk.kg [15:12:36]written 0, free lines is 4095 [15:12:36]Connected sock=7 [15:12:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 82 07 01 CF 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 42 63 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 09 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 97 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 46 00 00 00 00 07 04 06 00 AC 97 02 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 75 6F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 88 02 00 35 04 06 00 F8 B2 B5 8F 4B 5E 29 8D AB 6A FF 19 5A 55 [15:12:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FA 50 47 00 3C 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B8 88 02 00 F4 03 04 00 E3 15 16 67 B6 04 01 00 00 46 A2 57 C7 58 3A 53 F3 [15:12:36]CommunicateWithHost err = 0 [15:12:36]CheckOFDResponse [15:12:36]1017 (14) - 77093643461234 [15:12:36]1041 (16) - 0000000000871759 [15:12:36]1040 (4) - 166072 [15:12:36]1012 (4) - 21.10.2024 08:50 [15:12:36]1206 (1) - 0 [15:12:36]OFD Sender: Remove packet 166072 [15:12:36]ProducePacketName [15:12:36]name=ofd_packets/00166072 [15:12:36]NVStorageDeleteData [15:12:36]Write to MH i2c: 01 00 00 FA 5E 58 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: 01 07 00 FA 5E 00 00 00 00 00 D2 0C 3D [15:12:36]RasterBufferAndPrint [15:12:36]line [15:12:36]line [15:12:36]line [15:12:36]line [15:12:36]line [15:12:36]written 0, free lines is 3289 [15:12:36]MH_Cut [15:12:36]Write to MH i2c: D1 01 00 01 5F 01 32 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: D1 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: D1 01 00 [15:12:36]MH_I2C_Read... [15:12:36]Read from MH i2c: D1 01 00 01 5F 00 31 [15:12:36]Write to MH i2c: 01 00 00 02 5F 61 [15:12:36]Write i2c OK [15:12:36]MH_I2C_Read... [15:12:37]OFD Sender: No OFD packet to send [15:12:37]*** Cut start [15:12:37]*** Partial cut [15:12:37]*** CUTSNS_PIN = 1 [15:12:37]*** CUTSNS_PIN = 0 [15:12:38]*** Brake cut motor [15:12:38]Read from MH i2c: 01 [15:12:38]MH_I2C_Read... [15:12:38]*** Stop cut motor [15:12:38]*** Cut end [15:12:38]Read from MH i2c: 01 07 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: 01 07 00 02 5F 00 00 00 00 00 FF 0F 76 [15:12:38]process_action close_receipt done [15:12:38]requested_data is exist [15:12:38]produce_requested_data [15:12:38]requested_item fm.sn is exist - process it [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 11 00 00 [15:12:38]Write to MH i2c: E2 08 00 03 5F 80 11 00 00 00 00 00 00 DC [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 17 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 17 00 03 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 34 [15:12:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:12:38]wFMCommunicate OK [15:12:38]requested_item fd.num is exist - process it [15:12:38]SAM_PROTO_GetFieldsCounters [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 13 00 00 [15:12:38]Write to MH i2c: E2 08 00 04 5F 80 13 00 00 00 00 00 00 DF [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 62 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 62 00 04 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [15:12:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]SAM_PROTO_GetFieldsCounters done [15:12:38]requested_item shift.num is exist - process it [15:12:38]requested_item shift.opened is exist - process it [15:12:38]req_shift_opened [15:12:38]FM_GetShiftState [15:12:38]SAM_PROTO_GetShiftState [15:12:38]wFMCommunicate request_size=4 [15:12:38]MH_SAM_APDU [15:12:38]CAPDU: 80 13 01 00 [15:12:38]Write to MH i2c: E2 08 00 05 5F 80 13 01 00 00 00 00 00 E1 [15:12:38]Write i2c OK [15:12:38]MH_I2C_Read... [15:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:38]Read from MH i2c: E2 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 0E 00 [15:12:38]MH_I2C_Read... [15:12:38]Read from MH i2c: E2 0E 00 05 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EA [15:12:38]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:12:38]wFMCommunicate OK [15:12:38]SAM_PROTO_GetShiftState done [15:12:38]FM_GetShiftState done [15:12:38]req_shift_opened done [15:12:38]requested_item shift.open_date is exist - process it [15:12:38]req_shift_open_date [15:12:38]req_shift_open_date done [15:12:38]produce_requested_data done [15:12:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166072,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:12:38]process_action_free close_receipt [15:12:38]json_value_free [15:12:38]json_value_free done [15:12:38]process_json_proto returns [15:12:38]Send response to host [15:12:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166072,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:12:38]free response buf [15:12:38]execute_script done [15:12:38]execute_script returns [15:12:38]free content buf [15:12:38]Sock 6.Close socket [15:12:38]Sock 6.Thread stoped [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:32]OFD Sender: No OFD packet to send [15:15:37]OFD Sender: No OFD packet to send [15:15:41]accept exits with 5 [15:15:41]New connection [15:15:41]New thread 3066776932 created [15:15:41]Thread 3066920292 joined [15:15:41]Waiting for new connection... [15:15:41] Sock 5.Parse request [15:15:41]Sock 5.Check first char [15:15:41]Sock 5.First char is OK [15:15:41]request: POST /json_proto HTTP/1.0 [15:15:41]Method: POST [15:15:41]URL: /json_proto [15:15:41]Method is POST - this is cgi request [15:15:41]url: /json_proto [15:15:41]query_string will be loaded in cgi processing [15:15:41]execute_cgi json_proto POST (null) [15:15:41]execute_cgi path=json_proto method=POST [15:15:41]POST find Content-Length [15:15:41]Host: 172.17.53.195:8080 [15:15:41]Content-Length: 674 [15:15:41]Content-Type: application/json [15:15:41] [15:15:41]POST finish read [15:15:41]Found Content-Length = 674 [15:15:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:41]execute_script... [15:15:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:41]POST & json_proto [15:15:41]process_json_proto [15:15:41]json parsed OK: [15:15:41]protocol is kg_v1.0 [15:15:41]action value=close_receipt [15:15:41]process_action close_receipt [15:15:41]cmd_close_receipt [15:15:41]MH_GetDate [15:15:41]Write to MH i2c: F0 00 00 06 5F 54 [15:15:41]Write i2c OK [15:15:41]MH_I2C_Read... [15:15:41]Read from MH i2c: F0 [15:15:41]MH_I2C_Read... [15:15:41]Read from MH i2c: F0 09 00 [15:15:41]MH_I2C_Read... [15:15:41]Read from MH i2c: F0 09 00 06 5F 00 30 70 16 67 21 48 4A 65 92 [15:15:41]GetLastDocTimeStamp 1729523573 [15:15:41]current date 1729523760 [15:15:41]FM_GetShiftState [15:15:41]SAM_PROTO_GetShiftState [15:15:41]wFMCommunicate request_size=4 [15:15:41]MH_SAM_APDU [15:15:41]CAPDU: 80 13 01 00 [15:15:41]Write to MH i2c: E2 08 00 07 5F 80 13 01 00 00 00 00 00 E3 [15:15:41]Write i2c OK [15:15:41]MH_I2C_Read... [15:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:41]Read from MH i2c: E2 [15:15:41]MH_I2C_Read... [15:15:41]Read from MH i2c: E2 0E 00 [15:15:41]MH_I2C_Read... [15:15:41]Read from MH i2c: E2 0E 00 07 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EC [15:15:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:15:41]wFMCommunicate OK [15:15:41]SAM_PROTO_GetShiftState done [15:15:41]FM_GetShiftState done [15:15:41]opened in 1729470944 [15:15:41]opened+sec_in_day 1729557344 [15:15:41]quantity*price = 49987 [15:15:41]sum+1 = 49988 [15:15:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 184 21.10.2024 15:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166073 ФПД: 253947399690206 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166073&fm=253947399690206&tin=02508201610067®Number=0000000000091764&sum=49900 [15:15:42]StoreToDocumentArchive [15:15:42]shift 535 fd 166073 [15:15:42]save to /storage/0535/doc_00166073 [15:15:42]save last doc name /storage/0535/doc_00166073 to /storage/kkm_last_doc_name [15:15:42]save OK [15:15:42]Clear old archive folders... [15:15:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:42]tlvbuf is 014FF050 [15:15:42]SAM_PROTO_ClearQueue [15:15:42]wFMCommunicate request_size=4 [15:15:42]MH_SAM_APDU [15:15:42]CAPDU: 80 09 00 00 [15:15:42]Write to MH i2c: E2 08 00 14 5F 80 09 00 00 00 00 00 00 E5 [15:15:42]Write i2c OK [15:15:42]MH_I2C_Read... [15:15:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:42]Read from MH i2c: E2 [15:15:42]MH_I2C_Read... [15:15:42]Read from MH i2c: E2 03 00 [15:15:42]MH_I2C_Read... [15:15:42]Read from MH i2c: E2 03 00 14 5F 00 90 00 E7 [15:15:42]RAPDU: 90 00 [15:15:42]wFMCommunicate OK [15:15:42]SAM_PROTO_ClearQueue done [15:15:42]KKMCreateOFDPacket [15:15:42]OFDProtocolAddRootSTLVToBuf [15:15:42]FM_MakeSignedData [15:15:42]FM_MakeSignedData [15:15:42]SAM_PROTO_SignData [15:15:42]wFMCommunicate request_size=4 [15:15:42]MH_SAM_APDU [15:15:42]CAPDU: 80 0D 01 02 [15:15:42]Write to MH i2c: E2 08 00 15 5F 80 0D 01 02 00 00 00 00 ED [15:15:42]Write i2c OK [15:15:42]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 03 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 03 00 15 5F 00 90 00 E8 [15:15:43]RAPDU: 90 00 [15:15:43]wFMCommunicate OK [15:15:43]wFMCommunicate request_size=255 [15:15:43]MH_SAM_APDU [15:15:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 30 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 88 02 00 35 04 06 00 E6 F6 BC 8C [15:15:43]Write to MH i2c: E2 02 01 16 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 30 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 88 02 00 35 04 06 00 E6 F6 BC 8C 00 00 2D [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 03 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 03 00 16 5F 00 90 00 E9 [15:15:43]RAPDU: 90 00 [15:15:43]wFMCommunicate OK [15:15:43]wFMCommunicate request_size=7 [15:15:43]MH_SAM_APDU [15:15:43]CAPDU: 80 0D 02 02 02 D7 DE [15:15:43]Write to MH i2c: E2 0A 00 17 5F 80 0D 02 02 02 00 D7 DE 00 00 A9 [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 03 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 03 00 17 5F 00 90 00 EA [15:15:43]RAPDU: 90 00 [15:15:43]wFMCommunicate OK [15:15:43]wFMCommunicate request_size=4 [15:15:43]MH_SAM_APDU [15:15:43]CAPDU: 80 0D 03 02 [15:15:43]Write to MH i2c: E2 08 00 18 5F 80 0D 03 02 00 00 00 00 F2 [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 0B 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 0B 00 18 5F 00 07 79 93 79 02 3A 69 DF 90 00 03 [15:15:43]RAPDU: 07 79 93 79 02 3A 69 DF 90 00 [15:15:43]wFMCommunicate OK [15:15:43]SAM_PROTO_SignData done [15:15:43]FM_MakeSignedData done [15:15:43]CreateOFDProtocolMessage [15:15:43]wFMCommunicate request_size=4 [15:15:43]MH_SAM_APDU [15:15:43]CAPDU: 80 11 00 00 [15:15:43]Write to MH i2c: E2 08 00 19 5F 80 11 00 00 00 00 00 00 F2 [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:43]Read from MH i2c: E2 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 17 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: E2 17 00 19 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4A [15:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:15:43]wFMCommunicate OK [15:15:43]CreateOFDProtocolMessage done [15:15:43]OFDSenderStorePacket 166073 [15:15:43]StoreOFDPacket docnum=166073 [15:15:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3B 45 04 01 22 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 30 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 88 02 00 35 04 06 00 E6 F6 BC 8C D7 DE 07 79 93 79 02 3A 69 DF [15:15:43]CheckFolder [15:15:43]dirname=/storage/ofd_packets [15:15:43]CheckFolder done [15:15:43]ProducePacketName [15:15:43]name=ofd_packets/00166073 [15:15:43]NVStorageSaveData ofd_packets/00166073 [15:15:43]File name is /storage/ofd_packets/00166073 [15:15:43]Write 298 bytes [15:15:43]NVStorageSaveData done [15:15:43]OFDSenderStorePacket done [15:15:43]KKMCreateOFDPacket done [15:15:43]NVStorageSaveData kkm_last_timestamp [15:15:43]File name is /storage/kkm_last_timestamp [15:15:43]Write 4 bytes [15:15:43]NVStorageSaveData done [15:15:43]ExternCall_PrintAddStr [15:15:43]wPrintStart [15:15:43]Write to MH i2c: 01 00 00 1A 5F 79 [15:15:43]Write i2c OK [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: 01 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: 01 07 00 [15:15:43]MH_I2C_Read... [15:15:43]Read from MH i2c: 01 07 00 1A 5F 00 00 00 00 00 FF 0F 8E [15:15:43]RasterBufferAndPrint [15:15:43]line Счет N : (1)220644 [15:15:43]line ИНН: 02508201610067 [15:15:43]line Контрольно-Кассовый Чек [15:15:43]line ПРОДАЖА [15:15:43]line ТРК (МРК, ГНК) : 11 [15:15:43]line Товар: 2710194210 [15:15:43]line ДТ-К-5 [15:15:43]line 6.560 * 76.20 [15:15:43]line = 499.87 [15:15:43]line НДС 12% НСП 1% [15:15:43]line > о реализуемом товаре [15:15:43]line ОКРУГЛЕНИЕ: -0.87 [15:15:43]line ИТОГО: 499.00 [15:15:43]line Внесено: 500.00 [15:15:43]line СДАЧА: 1.00 [15:15:43]line НСП 1% : 4.42 [15:15:43]line НДС 12% : 53.08 [15:15:43]line Наличными: 499.00 [15:15:43]line Безнал.: 0.00 [15:15:43]line Место: АЗС № 161 "Партнер Нефть" [15:15:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:15:43]line СНО: Общий режим [15:15:43]line Чек 184 21.10.2024 15:16 [15:15:43]line Смена: 535 ФФД: 1.0 [15:15:43]line ЗНМ: 0300000104 [15:15:43]line РНМ: 0000000000091764 [15:15:43]line Версия ККМ: 001 [15:15:43]line ФМ: 0000000000871759 [15:15:43]line ФД: 166073 [15:15:43]line ФПД: 253947399690206 [15:15:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151600&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166073&fm=253947399690206&tin=02508201610067®Number=0000000000091764&sum=49900 [15:15:43]OFD Sender: Processing packet 166073 [packets to send 48, broken 47] [15:15:43]ProducePacketName [15:15:43]name=ofd_packets/00166073 [15:15:43]OFD Sender: To server: pG, [15:15:43]CommunicateWithHost lk.salyk.kg:30040 [15:15:43]ConnectInit lk.salyk.kg [15:15:43]written 0, free lines is 4095 [15:15:43]Connected sock=7 [15:15:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 3B 45 04 01 22 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 30 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 88 02 00 35 04 06 00 E6 F6 BC 8C D7 DE 07 79 93 79 02 3A 69 DF [15: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 35 39 4F 00 00 00 9A F0 47 00 AF BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 B9 88 02 00 F4 03 04 00 9E 16 16 67 B6 04 01 00 00 65 D2 63 A6 38 E5 74 98 [15:15:44]CommunicateWithHost err = 0 [15:15:44]CheckOFDResponse [15:15:44]1017 (14) - 77093643461234 [15:15:44]1041 (16) - 0000000000871759 [15:15:44]1040 (4) - 166073 [15:15:44]1012 (4) - 21.10.2024 08:53 [15:15:44]1206 (1) - 0 [15:15:44]OFD Sender: Remove packet 166073 [15:15:44]ProducePacketName [15:15:44]name=ofd_packets/00166073 [15:15:44]NVStorageDeleteData [15:15:44]Write to MH i2c: 01 00 00 45 5F A4 [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 07 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: 01 07 00 45 5F 00 00 00 00 00 C2 0C 79 [15:15:44]RasterBufferAndPrint [15:15:44]line [15:15:44]line [15:15:44]line [15:15:44]line [15:15:44]line [15:15:44]written 0, free lines is 3275 [15:15:44]MH_Cut [15:15:44]Write to MH i2c: D1 01 00 4C 5F 01 7D [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: D1 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: D1 01 00 [15:15:44]MH_I2C_Read... [15:15:44]Read from MH i2c: D1 01 00 4C 5F 00 7C [15:15:44]Write to MH i2c: 01 00 00 4D 5F AC [15:15:44]Write i2c OK [15:15:44]MH_I2C_Read... [15:15:44]OFD Sender: No OFD packet to send [15:15:45]*** Cut start [15:15:45]*** Partial cut [15:15:45]*** CUTSNS_PIN = 1 [15:15:45]*** CUTSNS_PIN = 0 [15:15:45]*** Brake cut motor [15:15:45]Read from MH i2c: 01 [15:15:45]MH_I2C_Read... [15:15:45]*** Stop cut motor [15:15:45]*** Cut end [15:15:45]Read from MH i2c: 01 07 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: 01 07 00 4D 5F 00 00 00 00 00 FF 0F C1 [15:15:45]process_action close_receipt done [15:15:45]requested_data is exist [15:15:45]produce_requested_data [15:15:45]requested_item fm.sn is exist - process it [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 11 00 00 [15:15:45]Write to MH i2c: E2 08 00 4E 5F 80 11 00 00 00 00 00 00 27 [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 17 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 17 00 4E 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7F [15:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:15:45]wFMCommunicate OK [15:15:45]requested_item fd.num is exist - process it [15:15:45]SAM_PROTO_GetFieldsCounters [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 13 00 00 [15:15:45]Write to MH i2c: E2 08 00 4F 5F 80 13 00 00 00 00 00 00 2A [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 62 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 62 00 4F 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [15: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 B9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:45]wFMCommunicate OK [15:15:45]SAM_PROTO_GetFieldsCounters done [15:15:45]requested_item shift.num is exist - process it [15:15:45]requested_item shift.opened is exist - process it [15:15:45]req_shift_opened [15:15:45]FM_GetShiftState [15:15:45]SAM_PROTO_GetShiftState [15:15:45]wFMCommunicate request_size=4 [15:15:45]MH_SAM_APDU [15:15:45]CAPDU: 80 13 01 00 [15:15:45]Write to MH i2c: E2 08 00 50 5F 80 13 01 00 00 00 00 00 2C [15:15:45]Write i2c OK [15:15:45]MH_I2C_Read... [15:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:45]Read from MH i2c: E2 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0E 00 [15:15:45]MH_I2C_Read... [15:15:45]Read from MH i2c: E2 0E 00 50 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 35 [15:15:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:15:45]wFMCommunicate OK [15:15:45]SAM_PROTO_GetShiftState done [15:15:45]FM_GetShiftState done [15:15:45]req_shift_opened done [15:15:45]requested_item shift.open_date is exist - process it [15:15:45]req_shift_open_date [15:15:45]req_shift_open_date done [15:15:45]produce_requested_data done [15:15:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166073,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:15:45]process_action_free close_receipt [15:15:45]json_value_free [15:15:45]json_value_free done [15:15:45]process_json_proto returns [15:15:45]Send response to host [15:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166073,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:15:45]free response buf [15:15:45]execute_script done [15:15:45]execute_script returns [15:15:45]free content buf [15:15:45]Sock 5.Close socket [15:15:45]Sock 5.Thread stoped [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:36]accept exits with 6 [15:17:36]New connection [15:17:36]New thread 3066920292 created [15:17:36]Thread 3066776932 joined [15:17:36]Waiting for new connection... [15:17:36] Sock 6.Parse request [15:17:36]Sock 6.Check first char [15:17:36]Sock 6.First char is OK [15:17:36]request: POST /json_proto HTTP/1.0 [15:17:36]Method: POST [15:17:36]URL: /json_proto [15:17:36]Method is POST - this is cgi request [15:17:36]url: /json_proto [15:17:36]query_string will be loaded in cgi processing [15:17:36]execute_cgi json_proto POST (null) [15:17:36]execute_cgi path=json_proto method=POST [15:17:36]POST find Content-Length [15:17:36]Host: 172.17.53.195:8080 [15:17:36]Content-Length: 678 [15:17:36]Content-Type: application/json [15:17:36] [15:17:36]POST finish read [15:17:36]Found Content-Length = 678 [15:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:36]execute_script... [15:17:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:36]POST & json_proto [15:17:36]process_json_proto [15:17:36]json parsed OK: [15:17:36]protocol is kg_v1.0 [15:17:36]action value=close_receipt [15:17:36]process_action close_receipt [15:17:36]cmd_close_receipt [15:17:36]MH_GetDate [15:17:36]Write to MH i2c: F0 00 00 51 5F 9F [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: F0 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: F0 09 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: F0 09 00 51 5F 00 A3 70 16 67 21 48 4A 65 50 [15:17:36]GetLastDocTimeStamp 1729523760 [15:17:36]current date 1729523875 [15:17:36]FM_GetShiftState [15:17:36]SAM_PROTO_GetShiftState [15:17:36]wFMCommunicate request_size=4 [15:17:36]MH_SAM_APDU [15:17:36]CAPDU: 80 13 01 00 [15:17:36]Write to MH i2c: E2 08 00 52 5F 80 13 01 00 00 00 00 00 2E [15:17:36]Write i2c OK [15:17:36]MH_I2C_Read... [15:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:36]Read from MH i2c: E2 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 0E 00 [15:17:36]MH_I2C_Read... [15:17:36]Read from MH i2c: E2 0E 00 52 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 37 [15:17:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:17:36]wFMCommunicate OK [15:17:36]SAM_PROTO_GetShiftState done [15:17:36]FM_GetShiftState done [15:17:36]opened in 1729470944 [15:17:36]opened+sec_in_day 1729557344 [15:17:36]quantity*price = 70044 [15:17:36]sum+1 = 70045 [15:17:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 185 21.10.2024 15:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166074 ФПД: 267111625490724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151755&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166074&fm=267111625490724&tin=02508201610067®Number=0000000000091764&sum=70000 [15:17:37]StoreToDocumentArchive [15:17:37]shift 535 fd 166074 [15:17:37]save to /storage/0535/doc_00166074 [15:17:37]save last doc name /storage/0535/doc_00166074 to /storage/kkm_last_doc_name [15:17:37]save OK [15:17:37]Clear old archive folders... [15:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:37]tlvbuf is 01839E30 [15:17:37]SAM_PROTO_ClearQueue [15:17:37]wFMCommunicate request_size=4 [15:17:37]MH_SAM_APDU [15:17:37]CAPDU: 80 09 00 00 [15:17:37]Write to MH i2c: E2 08 00 5F 5F 80 09 00 00 00 00 00 00 30 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 5F 5F 00 90 00 32 [15:17:37]RAPDU: 90 00 [15:17:37]wFMCommunicate OK [15:17:37]SAM_PROTO_ClearQueue done [15:17:37]KKMCreateOFDPacket [15:17:37]OFDProtocolAddRootSTLVToBuf [15:17:37]FM_MakeSignedData [15:17:37]FM_MakeSignedData [15:17:37]SAM_PROTO_SignData [15:17:37]wFMCommunicate request_size=4 [15:17:37]MH_SAM_APDU [15:17:37]CAPDU: 80 0D 01 02 [15:17:37]Write to MH i2c: E2 08 00 60 5F 80 0D 01 02 00 00 00 00 38 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 60 5F 00 90 00 33 [15:17:37]RAPDU: 90 00 [15:17:37]wFMCommunicate OK [15:17:37]wFMCommunicate request_size=255 [15:17:37]MH_SAM_APDU [15:17: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A3 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 88 02 00 35 04 06 00 F2 [15:17:37]Write to MH i2c: E2 02 01 61 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A3 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 88 02 00 35 04 06 00 F2 00 00 76 [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 61 5F 00 90 00 34 [15:17:37]RAPDU: 90 00 [15:17:37]wFMCommunicate OK [15:17:37]wFMCommunicate request_size=10 [15:17:37]MH_SAM_APDU [15:17:37]CAPDU: 80 0D 02 02 05 EF C5 8D 81 24 [15:17:37]Write to MH i2c: E2 0D 00 62 5F 80 0D 02 02 05 00 EF C5 8D 81 24 00 00 2B [15:17:37]Write i2c OK [15:17:37]MH_I2C_Read... [15:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:37]Read from MH i2c: E2 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 [15:17:37]MH_I2C_Read... [15:17:37]Read from MH i2c: E2 03 00 62 5F 00 90 00 35 [15:17:37]RAPDU: 90 00 [15:17:38]wFMCommunicate OK [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 0D 03 02 [15:17:38]Write to MH i2c: E2 08 00 63 5F 80 0D 03 02 00 00 00 00 3D [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0B 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 0B 00 63 5F 00 EB D3 A1 B9 E9 1C FD 16 90 00 6E [15:17:38]RAPDU: EB D3 A1 B9 E9 1C FD 16 90 00 [15:17:38]wFMCommunicate OK [15:17:38]SAM_PROTO_SignData done [15:17:38]FM_MakeSignedData done [15:17:38]CreateOFDProtocolMessage [15:17:38]wFMCommunicate request_size=4 [15:17:38]MH_SAM_APDU [15:17:38]CAPDU: 80 11 00 00 [15:17:38]Write to MH i2c: E2 08 00 64 5F 80 11 00 00 00 00 00 00 3D [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:38]Read from MH i2c: E2 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: E2 17 00 64 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 95 [15:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:38]wFMCommunicate OK [15:17:38]CreateOFDProtocolMessage done [15:17:38]OFDSenderStorePacket 166074 [15:17:38]StoreOFDPacket docnum=166074 [15:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 6D 07 01 64 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A3 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 88 02 00 35 04 06 00 F2 EF C5 8D 81 24 EB D3 A1 B9 E9 1C FD 16 [15:17:38]CheckFolder [15:17:38]dirname=/storage/ofd_packets [15:17:38]CheckFolder done [15:17:38]ProducePacketName [15:17:38]name=ofd_packets/00166074 [15:17:38]NVStorageSaveData ofd_packets/00166074 [15:17:38]File name is /storage/ofd_packets/00166074 [15:17:38]Write 301 bytes [15:17:38]NVStorageSaveData done [15:17:38]OFDSenderStorePacket done [15:17:38]KKMCreateOFDPacket done [15:17:38]NVStorageSaveData kkm_last_timestamp [15:17:38]File name is /storage/kkm_last_timestamp [15:17:38]Write 4 bytes [15:17:38]NVStorageSaveData done [15:17:38]ExternCall_PrintAddStr [15:17:38]wPrintStart [15:17:38]Write to MH i2c: 01 00 00 65 5F C4 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 65 5F 00 00 00 00 00 FF 0F D9 [15:17:38]RasterBufferAndPrint [15:17:38]line Счет N : (1)220645 [15:17:38]line ИНН: 02508201610067 [15:17:38]line Контрольно-Кассовый Чек [15:17:38]line ПРОДАЖА [15:17:38]line ТРК (МРК, ГНК) : 33 [15:17:38]line Товар: 2710124130 [15:17:38]line Аи-92-К-5 [15:17:38]line 10.470 * 66.90 [15:17:38]line = 700.44 [15:17:38]line НДС 12% НСП 1% [15:17:38]line > о реализуемом товаре [15:17:38]line ОКРУГЛЕНИЕ: -0.44 [15:17:38]line ИТОГО: 700.00 [15:17:38]line Внесено: 700.00 [15:17:38]line СДАЧА: 0.00 [15:17:38]line НСП 1% : 6.20 [15:17:38]line НДС 12% : 74.38 [15:17:38]line Наличными: 700.00 [15:17:38]line Безнал.: 0.00 [15:17:38]line Место: АЗС № 161 "Партнер Нефть" [15:17:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:17:38]line СНО: Общий режим [15:17:38]line Чек 185 21.10.2024 15:17 [15:17:38]line Смена: 535 ФФД: 1.0 [15:17:38]line ЗНМ: 0300000104 [15:17:38]line РНМ: 0000000000091764 [15:17:38]line Версия ККМ: 001 [15:17:38]line ФМ: 0000000000871759 [15:17:38]line ФД: 166074 [15:17:38]line ФПД: 267111625490724 [15:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151755&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166074&fm=267111625490724&tin=02508201610067®Number=0000000000091764&sum=70000 [15:17:38]OFD Sender: Processing packet 166074 [packets to send 48, broken 47] [15:17:38]ProducePacketName [15:17:38]name=ofd_packets/00166074 [15:17:38]OFD Sender: To server: pG, [15:17:38]CommunicateWithHost lk.salyk.kg:30040 [15:17:38]ConnectInit lk.salyk.kg [15:17:38]written 0, free lines is 4095 [15:17:38]Connected sock=7 [15:17:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 73 6D 07 01 64 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 A3 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 88 02 00 35 04 06 00 F2 EF C5 8D 81 24 EB D3 A1 B9 E9 1C FD 16 [15:17:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3F 2D 47 00 59 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BA 88 02 00 F4 03 04 00 11 17 16 67 B6 04 01 00 00 4B 9D 2B A0 7F 2E 8E F0 [15:17:38]CommunicateWithHost err = 0 [15:17:38]CheckOFDResponse [15:17:38]1017 (14) - 77093643461234 [15:17:38]1041 (16) - 0000000000871759 [15:17:38]1040 (4) - 166074 [15:17:38]1012 (4) - 21.10.2024 08:55 [15:17:38]1206 (1) - 0 [15:17:38]OFD Sender: Remove packet 166074 [15:17:38]ProducePacketName [15:17:38]name=ofd_packets/00166074 [15:17:38]NVStorageDeleteData [15:17:38]Write to MH i2c: 01 00 00 90 5F EF [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: 01 07 00 90 5F 00 00 00 00 00 CD 0C CF [15:17:38]RasterBufferAndPrint [15:17:38]line [15:17:38]line [15:17:38]line [15:17:38]line [15:17:38]line [15:17:38]written 0, free lines is 3284 [15:17:38]MH_Cut [15:17:38]Write to MH i2c: D1 01 00 97 5F 01 C8 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: D1 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: D1 01 00 [15:17:38]MH_I2C_Read... [15:17:38]Read from MH i2c: D1 01 00 97 5F 00 C7 [15:17:38]Write to MH i2c: 01 00 00 98 5F F7 [15:17:38]Write i2c OK [15:17:38]MH_I2C_Read... [15:17:39]OFD Sender: No OFD packet to send [15:17:39]*** Cut start [15:17:39]*** Partial cut [15:17:39]*** CUTSNS_PIN = 1 [15:17:39]*** CUTSNS_PIN = 0 [15:17:39]*** Brake cut motor [15:17:40]Read from MH i2c: 01 [15:17:40]MH_I2C_Read... [15:17:40]*** Stop cut motor [15:17:40]*** Cut end [15:17:40]Read from MH i2c: 01 07 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: 01 07 00 98 5F 00 00 00 00 00 FF 0F 0C [15:17:40]process_action close_receipt done [15:17:40]requested_data is exist [15:17:40]produce_requested_data [15:17:40]requested_item fm.sn is exist - process it [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 11 00 00 [15:17:40]Write to MH i2c: E2 08 00 99 5F 80 11 00 00 00 00 00 00 72 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 17 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 17 00 99 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CA [15:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:17:40]wFMCommunicate OK [15:17:40]requested_item fd.num is exist - process it [15:17:40]SAM_PROTO_GetFieldsCounters [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 13 00 00 [15:17:40]Write to MH i2c: E2 08 00 9A 5F 80 13 00 00 00 00 00 00 75 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 62 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 62 00 9A 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [15:17:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:40]wFMCommunicate OK [15:17:40]SAM_PROTO_GetFieldsCounters done [15:17:40]requested_item shift.num is exist - process it [15:17:40]requested_item shift.opened is exist - process it [15:17:40]req_shift_opened [15:17:40]FM_GetShiftState [15:17:40]SAM_PROTO_GetShiftState [15:17:40]wFMCommunicate request_size=4 [15:17:40]MH_SAM_APDU [15:17:40]CAPDU: 80 13 01 00 [15:17:40]Write to MH i2c: E2 08 00 9B 5F 80 13 01 00 00 00 00 00 77 [15:17:40]Write i2c OK [15:17:40]MH_I2C_Read... [15:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:40]Read from MH i2c: E2 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 0E 00 [15:17:40]MH_I2C_Read... [15:17:40]Read from MH i2c: E2 0E 00 9B 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 80 [15:17:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:17:40]wFMCommunicate OK [15:17:40]SAM_PROTO_GetShiftState done [15:17:40]FM_GetShiftState done [15:17:40]req_shift_opened done [15:17:40]requested_item shift.open_date is exist - process it [15:17:40]req_shift_open_date [15:17:40]req_shift_open_date done [15:17:40]produce_requested_data done [15:17:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166074,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:17:40]process_action_free close_receipt [15:17:40]json_value_free [15:17:40]json_value_free done [15:17:40]process_json_proto returns [15:17:40]Send response to host [15:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166074,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:17:40]free response buf [15:17:40]execute_script done [15:17:40]execute_script returns [15:17:40]free content buf [15:17:40]Sock 6.Close socket [15:17:40]Sock 6.Thread stoped [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:35]accept exits with 5 [15:18:35]New connection [15:18:35]New thread 3066776932 created [15:18:35]Thread 3066920292 joined [15:18:35]Waiting for new connection... [15:18:35] Sock 5.Parse request [15:18:35]Sock 5.Check first char [15:18:35]Sock 5.First char is OK [15:18:35]request: POST /json_proto HTTP/1.0 [15:18:35]Method: POST [15:18:35]URL: /json_proto [15:18:35]Method is POST - this is cgi request [15:18:35]url: /json_proto [15:18:35]query_string will be loaded in cgi processing [15:18:35]execute_cgi json_proto POST (null) [15:18:35]execute_cgi path=json_proto method=POST [15:18:35]POST find Content-Length [15:18:35]Host: 172.17.53.195:8080 [15:18:35]Content-Length: 674 [15:18:35]Content-Type: application/json [15:18:35] [15:18:35]POST finish read [15:18:35]Found Content-Length = 674 [15:18:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:35]execute_script... [15:18:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220646", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:18:35]POST & json_proto [15:18:35]process_json_proto [15:18:35]json parsed OK: [15:18:35]protocol is kg_v1.0 [15:18:35]action value=close_receipt [15:18:35]process_action close_receipt [15:18:35]cmd_close_receipt [15:18:35]MH_GetDate [15:18:35]Write to MH i2c: F0 00 00 9C 5F EA [15:18:35]Write i2c OK [15:18:35]MH_I2C_Read... [15:18:35]Read from MH i2c: F0 [15:18:35]MH_I2C_Read... [15:18:35]Read from MH i2c: F0 09 00 [15:18:35]MH_I2C_Read... [15:18:35]Read from MH i2c: F0 09 00 9C 5F 00 DE 70 16 67 21 48 4A 65 D6 [15:18:35]GetLastDocTimeStamp 1729523875 [15:18:35]current date 1729523934 [15:18:35]FM_GetShiftState [15:18:35]SAM_PROTO_GetShiftState [15:18:35]wFMCommunicate request_size=4 [15:18:35]MH_SAM_APDU [15:18:35]CAPDU: 80 13 01 00 [15:18:35]Write to MH i2c: E2 08 00 9D 5F 80 13 01 00 00 00 00 00 79 [15:18:35]Write i2c OK [15:18:35]MH_I2C_Read... [15:18:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:35]Read from MH i2c: E2 [15:18:35]MH_I2C_Read... [15:18:35]Read from MH i2c: E2 0E 00 [15:18:35]MH_I2C_Read... [15:18:35]Read from MH i2c: E2 0E 00 9D 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 82 [15:18:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:18:35]wFMCommunicate OK [15:18:35]SAM_PROTO_GetShiftState done [15:18:35]FM_GetShiftState done [15:18:35]opened in 1729470944 [15:18:35]opened+sec_in_day 1729557344 [15:18:35]quantity*price = 70027 [15:18:35]sum+1 = 70029 [15:18:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 186 21.10.2024 15:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166075 ФПД: 276715546119136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151854&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166075&fm=276715546119136&tin=02508201610067®Number=0000000000091764&sum=70000 [15:18:36]StoreToDocumentArchive [15:18:36]shift 535 fd 166075 [15:18:36]save to /storage/0535/doc_00166075 [15:18:36]save last doc name /storage/0535/doc_00166075 to /storage/kkm_last_doc_name [15:18:36]save OK [15:18:36]Clear old archive folders... [15:18:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:18:36]tlvbuf is 0186AF50 [15:18:36]SAM_PROTO_ClearQueue [15:18:36]wFMCommunicate request_size=4 [15:18:36]MH_SAM_APDU [15:18:36]CAPDU: 80 09 00 00 [15:18:36]Write to MH i2c: E2 08 00 AA 5F 80 09 00 00 00 00 00 00 7B [15:18:36]Write i2c OK [15:18:36]MH_I2C_Read... [15:18:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:36]Read from MH i2c: E2 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: E2 03 00 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: E2 03 00 AA 5F 00 90 00 7D [15:18:36]RAPDU: 90 00 [15:18:36]wFMCommunicate OK [15:18:36]SAM_PROTO_ClearQueue done [15:18:36]KKMCreateOFDPacket [15:18:36]OFDProtocolAddRootSTLVToBuf [15:18:36]FM_MakeSignedData [15:18:36]FM_MakeSignedData [15:18:36]SAM_PROTO_SignData [15:18:36]wFMCommunicate request_size=4 [15:18:36]MH_SAM_APDU [15:18:36]CAPDU: 80 0D 01 02 [15:18:36]Write to MH i2c: E2 08 00 AB 5F 80 0D 01 02 00 00 00 00 83 [15:18:36]Write i2c OK [15:18:36]MH_I2C_Read... [15:18:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:36]Read from MH i2c: E2 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: E2 03 00 [15:18:36]MH_I2C_Read... [15:18:36]Read from MH i2c: E2 03 00 AB 5F 00 90 00 7E [15:18:36]RAPDU: 90 00 [15:18:36]wFMCommunicate OK [15:18:36]wFMCommunicate request_size=255 [15:18:36]MH_SAM_APDU [15:18:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 DE 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 88 02 00 35 04 06 00 FB AB DB D4 [15:18:36]Write to MH i2c: E2 02 01 AC 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 DE 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 88 02 00 35 04 06 00 FB AB DB D4 00 00 43 [15:18:36]Write i2c OK [15:18:36]MH_I2C_Read... [15:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:37]Read from MH i2c: E2 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 03 00 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 03 00 AC 5F 00 90 00 7F [15:18:37]RAPDU: 90 00 [15:18:37]wFMCommunicate OK [15:18:37]wFMCommunicate request_size=7 [15:18:37]MH_SAM_APDU [15:18:37]CAPDU: 80 0D 02 02 02 8B E0 [15:18:37]Write to MH i2c: E2 0A 00 AD 5F 80 0D 02 02 02 00 8B E0 00 00 F5 [15:18:37]Write i2c OK [15:18:37]MH_I2C_Read... [15:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:37]Read from MH i2c: E2 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 03 00 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 03 00 AD 5F 00 90 00 80 [15:18:37]RAPDU: 90 00 [15:18:37]wFMCommunicate OK [15:18:37]wFMCommunicate request_size=4 [15:18:37]MH_SAM_APDU [15:18:37]CAPDU: 80 0D 03 02 [15:18:37]Write to MH i2c: E2 08 00 AE 5F 80 0D 03 02 00 00 00 00 88 [15:18:37]Write i2c OK [15:18:37]MH_I2C_Read... [15:18:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:37]Read from MH i2c: E2 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 0B 00 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 0B 00 AE 5F 00 28 F7 BF EA AA 41 86 50 90 00 12 [15:18:37]RAPDU: 28 F7 BF EA AA 41 86 50 90 00 [15:18:37]wFMCommunicate OK [15:18:37]SAM_PROTO_SignData done [15:18:37]FM_MakeSignedData done [15:18:37]CreateOFDProtocolMessage [15:18:37]wFMCommunicate request_size=4 [15:18:37]MH_SAM_APDU [15:18:37]CAPDU: 80 11 00 00 [15:18:37]Write to MH i2c: E2 08 00 AF 5F 80 11 00 00 00 00 00 00 88 [15:18:37]Write i2c OK [15:18:37]MH_I2C_Read... [15:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:37]Read from MH i2c: E2 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 17 00 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: E2 17 00 AF 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E0 [15:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:18:37]wFMCommunicate OK [15:18:37]CreateOFDProtocolMessage done [15:18:37]OFDSenderStorePacket 166075 [15:18:37]StoreOFDPacket docnum=166075 [15:18:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C8 79 04 01 D2 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 DE 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 88 02 00 35 04 06 00 FB AB DB D4 8B E0 28 F7 BF EA AA 41 86 50 [15:18:37]CheckFolder [15:18:37]dirname=/storage/ofd_packets [15:18:37]CheckFolder done [15:18:37]ProducePacketName [15:18:37]name=ofd_packets/00166075 [15:18:37]NVStorageSaveData ofd_packets/00166075 [15:18:37]File name is /storage/ofd_packets/00166075 [15:18:37]Write 298 bytes [15:18:37]NVStorageSaveData done [15:18:37]OFDSenderStorePacket done [15:18:37]KKMCreateOFDPacket done [15:18:37]NVStorageSaveData kkm_last_timestamp [15:18:37]File name is /storage/kkm_last_timestamp [15:18:37]Write 4 bytes [15:18:37]NVStorageSaveData done [15:18:37]ExternCall_PrintAddStr [15:18:37]wPrintStart [15:18:37]Write to MH i2c: 01 00 00 B0 5F 0F [15:18:37]Write i2c OK [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: 01 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: 01 07 00 [15:18:37]MH_I2C_Read... [15:18:37]Read from MH i2c: 01 07 00 B0 5F 00 00 00 00 00 FF 0F 24 [15:18:37]RasterBufferAndPrint [15:18:37]line Счет N : (1)220646 [15:18:37]line ИНН: 02508201610067 [15:18:37]line Контрольно-Кассовый Чек [15:18:37]line ПРОДАЖА [15:18:37]line ТРК (МРК, ГНК) : 41 [15:18:37]line Товар: 2710194210 [15:18:37]line ДТ-К-5 [15:18:37]line 9.190 * 76.20 [15:18:37]line = 700.28 [15:18:37]line НДС 12% НСП 1% [15:18:37]line > о реализуемом товаре [15:18:37]line ОКРУГЛЕНИЕ: -0.28 [15:18:37]line ИТОГО: 700.00 [15:18:37]line Внесено: 700.00 [15:18:37]line СДАЧА: 0.00 [15:18:37]line НСП 1% : 6.20 [15:18:37]line НДС 12% : 74.37 [15:18:37]line Наличными: 700.00 [15:18:37]line Безнал.: 0.00 [15:18:37]line Место: АЗС № 161 "Партнер Нефть" [15:18:37]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:18:37]line СНО: Общий режим [15:18:37]line Чек 186 21.10.2024 15:18 [15:18:37]line Смена: 535 ФФД: 1.0 [15:18:37]line ЗНМ: 0300000104 [15:18:37]line РНМ: 0000000000091764 [15:18:37]line Версия ККМ: 001 [15:18:37]line ФМ: 0000000000871759 [15:18:37]line ФД: 166075 [15:18:37]line ФПД: 276715546119136 [15:18:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151854&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166075&fm=276715546119136&tin=02508201610067®Number=0000000000091764&sum=70000 [15:18:37]OFD Sender: Processing packet 166075 [packets to send 48, broken 47] [15:18:37]ProducePacketName [15:18:37]name=ofd_packets/00166075 [15:18:37]OFD Sender: To server: pG, [15:18:37]CommunicateWithHost lk.salyk.kg:30040 [15:18:37]ConnectInit lk.salyk.kg [15:18:37]written 0, free lines is 4095 [15:18:37]Connected sock=7 [15:18:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C8 79 04 01 D2 FB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 BA 00 00 00 F4 03 04 00 DE 70 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 88 02 00 35 04 06 00 FB AB DB D4 8B E0 28 F7 BF EA AA 41 86 50 [15:18:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 E2 47 00 88 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BB 88 02 00 F4 03 04 00 4C 17 16 67 B6 04 01 00 00 16 58 47 47 32 89 1E 4D [15:18:37]CommunicateWithHost err = 0 [15:18:37]CheckOFDResponse [15:18:37]1017 (14) - 77093643461234 [15:18:37]1041 (16) - 0000000000871759 [15:18:37]1040 (4) - 166075 [15:18:37]1012 (4) - 21.10.2024 08:56 [15:18:37]1206 (1) - 0 [15:18:37]OFD Sender: Remove packet 166075 [15:18:37]ProducePacketName [15:18:37]name=ofd_packets/00166075 [15:18:37]NVStorageDeleteData [15:18:38]Write to MH i2c: 01 00 00 DB 5F 3A [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: 01 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: 01 07 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: 01 07 00 DB 5F 00 00 00 00 00 C1 0C 0E [15:18:38]RasterBufferAndPrint [15:18:38]line [15:18:38]line [15:18:38]line [15:18:38]line [15:18:38]line [15:18:38]written 0, free lines is 3274 [15:18:38]MH_Cut [15:18:38]Write to MH i2c: D1 01 00 E2 5F 01 13 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: D1 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: D1 01 00 [15:18:38]MH_I2C_Read... [15:18:38]Read from MH i2c: D1 01 00 E2 5F 00 12 [15:18:38]Write to MH i2c: 01 00 00 E3 5F 42 [15:18:38]Write i2c OK [15:18:38]MH_I2C_Read... [15:18:38]OFD Sender: No OFD packet to send [15:18:38]*** Cut start [15:18:38]*** Partial cut [15:18:38]*** CUTSNS_PIN = 1 [15:18:38]*** CUTSNS_PIN = 0 [15:18:39]*** Brake cut motor [15:18:39]Read from MH i2c: 01 [15:18:39]MH_I2C_Read... [15:18:39]*** Stop cut motor [15:18:39]*** Cut end [15:18:39]Read from MH i2c: 01 07 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: 01 07 00 E3 5F 00 00 00 00 00 FF 0F 57 [15:18:39]process_action close_receipt done [15:18:39]requested_data is exist [15:18:39]produce_requested_data [15:18:39]requested_item fm.sn is exist - process it [15:18:39]wFMCommunicate request_size=4 [15:18:39]MH_SAM_APDU [15:18:39]CAPDU: 80 11 00 00 [15:18:39]Write to MH i2c: E2 08 00 E4 5F 80 11 00 00 00 00 00 00 BD [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:39]Read from MH i2c: E2 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 17 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 17 00 E4 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 15 [15:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:18:39]wFMCommunicate OK [15:18:39]requested_item fd.num is exist - process it [15:18:39]SAM_PROTO_GetFieldsCounters [15:18:39]wFMCommunicate request_size=4 [15:18:39]MH_SAM_APDU [15:18:39]CAPDU: 80 13 00 00 [15:18:39]Write to MH i2c: E2 08 00 E5 5F 80 13 00 00 00 00 00 00 C0 [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:18:39]Read from MH i2c: E2 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 62 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 62 00 E5 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [15:18:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:18:39]wFMCommunicate OK [15:18:39]SAM_PROTO_GetFieldsCounters done [15:18:39]requested_item shift.num is exist - process it [15:18:39]requested_item shift.opened is exist - process it [15:18:39]req_shift_opened [15:18:39]FM_GetShiftState [15:18:39]SAM_PROTO_GetShiftState [15:18:39]wFMCommunicate request_size=4 [15:18:39]MH_SAM_APDU [15:18:39]CAPDU: 80 13 01 00 [15:18:39]Write to MH i2c: E2 08 00 E6 5F 80 13 01 00 00 00 00 00 C2 [15:18:39]Write i2c OK [15:18:39]MH_I2C_Read... [15:18:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:39]Read from MH i2c: E2 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 0E 00 [15:18:39]MH_I2C_Read... [15:18:39]Read from MH i2c: E2 0E 00 E6 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CB [15:18:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:18:39]wFMCommunicate OK [15:18:39]SAM_PROTO_GetShiftState done [15:18:39]FM_GetShiftState done [15:18:39]req_shift_opened done [15:18:39]requested_item shift.open_date is exist - process it [15:18:39]req_shift_open_date [15:18:39]req_shift_open_date done [15:18:39]produce_requested_data done [15:18:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166075,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:18:39]process_action_free close_receipt [15:18:39]json_value_free [15:18:39]json_value_free done [15:18:39]process_json_proto returns [15:18:39]Send response to host [15:18:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166075,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:18:39]free response buf [15:18:39]execute_script done [15:18:39]execute_script returns [15:18:39]free content buf [15:18:39]Sock 5.Close socket [15:18:39]Sock 5.Thread stoped [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:16]accept exits with 6 [15:19:16]New connection [15:19:16]New thread 3066920292 created [15:19:16]Thread 3066776932 joined [15:19:16]Waiting for new connection... [15:19:16] Sock 6.Parse request [15:19:16]Sock 6.Check first char [15:19:16]Sock 6.First char is OK [15:19:16]request: POST /json_proto HTTP/1.0 [15:19:16]Method: POST [15:19:16]URL: /json_proto [15:19:16]Method is POST - this is cgi request [15:19:16]url: /json_proto [15:19:16]query_string will be loaded in cgi processing [15:19:16]execute_cgi json_proto POST (null) [15:19:16]execute_cgi path=json_proto method=POST [15:19:16]POST find Content-Length [15:19:16]Host: 172.17.53.195:8080 [15:19:16]Content-Length: 678 [15:19:16]Content-Type: application/json [15:19:16] [15:19:16]POST finish read [15:19:16]Found Content-Length = 678 [15:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:16]execute_script... [15:19: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)220647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:19:16]POST & json_proto [15:19:16]process_json_proto [15:19:16]json parsed OK: [15:19:16]protocol is kg_v1.0 [15:19:16]action value=close_receipt [15:19:16]process_action close_receipt [15:19:16]cmd_close_receipt [15:19:16]MH_GetDate [15:19:16]Write to MH i2c: F0 00 00 E7 5F 35 [15:19:16]Write i2c OK [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: F0 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: F0 09 00 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: F0 09 00 E7 5F 00 07 71 16 67 21 48 4A 65 4B [15:19:16]GetLastDocTimeStamp 1729523934 [15:19:16]current date 1729523975 [15:19:16]FM_GetShiftState [15:19:16]SAM_PROTO_GetShiftState [15:19:16]wFMCommunicate request_size=4 [15:19:16]MH_SAM_APDU [15:19:16]CAPDU: 80 13 01 00 [15:19:16]Write to MH i2c: E2 08 00 E8 5F 80 13 01 00 00 00 00 00 C4 [15:19:16]Write i2c OK [15:19:16]MH_I2C_Read... [15:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:16]Read from MH i2c: E2 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: E2 0E 00 [15:19:16]MH_I2C_Read... [15:19:16]Read from MH i2c: E2 0E 00 E8 5F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [15:19:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:19:16]wFMCommunicate OK [15:19:16]SAM_PROTO_GetShiftState done [15:19:16]FM_GetShiftState done [15:19:16]opened in 1729470944 [15:19:16]opened+sec_in_day 1729557344 [15:19:16]quantity*price = 70044 [15:19:16]sum+1 = 70045 [15:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 187 21.10.2024 15:19 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166076 ФПД: 247771347243267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151935&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166076&fm=247771347243267&tin=02508201610067®Number=0000000000091764&sum=70000 [15:19:17]StoreToDocumentArchive [15:19:17]shift 535 fd 166076 [15:19:17]save to /storage/0535/doc_00166076 [15:19:17]save last doc name /storage/0535/doc_00166076 to /storage/kkm_last_doc_name [15:19:17]save OK [15:19:17]Clear old archive folders... [15:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:19:17]tlvbuf is 0177ACE0 [15:19:17]SAM_PROTO_ClearQueue [15:19:17]wFMCommunicate request_size=4 [15:19:17]MH_SAM_APDU [15:19:17]CAPDU: 80 09 00 00 [15:19:17]Write to MH i2c: E2 08 00 F5 5F 80 09 00 00 00 00 00 00 C6 [15:19:17]Write i2c OK [15:19:17]MH_I2C_Read... [15:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:19:17]Read from MH i2c: E2 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 03 00 [15:19:17]MH_I2C_Read... [15:19:17]Read from MH i2c: E2 03 00 F5 5F 00 90 00 C8 [15:19:17]RAPDU: 90 00 [15:19:17]wFMCommunicate OK [15:19:17]SAM_PROTO_ClearQueue done [15:19:17]KKMCreateOFDPacket [15:19:17]OFDProtocolAddRootSTLVToBuf [15:19:17]FM_MakeSignedData [15:19:17]FM_MakeSignedData [15:19:17]SAM_PROTO_SignData [15:19:17]wFMCommunicate request_size=4 [15:19:17]MH_SAM_APDU [15:19:17]CAPDU: 80 0D 01 02 [15:19:17]Write to MH i2c: E2 08 00 F6 5F 80 0D 01 02 00 00 00 00 CE [15:19:17]Write i2c OK [15:19:17]MH_I2C_Read... [15:19:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:19:18]Read from MH i2c: E2 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 03 00 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 03 00 F6 5F 00 90 00 C9 [15:19:18]RAPDU: 90 00 [15:19:18]wFMCommunicate OK [15:19:18]wFMCommunicate request_size=255 [15:19:18]MH_SAM_APDU [15:19: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 07 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 88 02 00 35 04 06 00 E1 [15:19:18]Write to MH i2c: E2 02 01 F7 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 07 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 88 02 00 35 04 06 00 E1 00 00 64 [15:19:18]Write i2c OK [15:19:18]MH_I2C_Read... [15:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:18]Read from MH i2c: E2 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 03 00 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 03 00 F7 5F 00 90 00 CA [15:19:18]RAPDU: 90 00 [15:19:18]wFMCommunicate OK [15:19:18]wFMCommunicate request_size=10 [15:19:18]MH_SAM_APDU [15:19:18]CAPDU: 80 0D 02 02 05 58 C3 23 51 03 [15:19:18]Write to MH i2c: E2 0D 00 F8 5F 80 0D 02 02 05 00 58 C3 23 51 03 00 00 6D [15:19:18]Write i2c OK [15:19:18]MH_I2C_Read... [15:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:19:18]Read from MH i2c: E2 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 03 00 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 03 00 F8 5F 00 90 00 CB [15:19:18]RAPDU: 90 00 [15:19:18]wFMCommunicate OK [15:19:18]wFMCommunicate request_size=4 [15:19:18]MH_SAM_APDU [15:19:18]CAPDU: 80 0D 03 02 [15:19:18]Write to MH i2c: E2 08 00 F9 5F 80 0D 03 02 00 00 00 00 D3 [15:19:18]Write i2c OK [15:19:18]MH_I2C_Read... [15:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:19:18]Read from MH i2c: E2 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 0B 00 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 0B 00 F9 5F 00 8B F1 7F 30 13 EF 9D F0 90 00 8E [15:19:18]RAPDU: 8B F1 7F 30 13 EF 9D F0 90 00 [15:19:18]wFMCommunicate OK [15:19:18]SAM_PROTO_SignData done [15:19:18]FM_MakeSignedData done [15:19:18]CreateOFDProtocolMessage [15:19:18]wFMCommunicate request_size=4 [15:19:18]MH_SAM_APDU [15:19:18]CAPDU: 80 11 00 00 [15:19:18]Write to MH i2c: E2 08 00 FA 5F 80 11 00 00 00 00 00 00 D3 [15:19:18]Write i2c OK [15:19:18]MH_I2C_Read... [15:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:18]Read from MH i2c: E2 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 17 00 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: E2 17 00 FA 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [15:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:19:18]wFMCommunicate OK [15:19:18]CreateOFDProtocolMessage done [15:19:18]OFDSenderStorePacket 166076 [15:19:18]StoreOFDPacket docnum=166076 [15:19:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 AC 07 01 E4 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 07 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 88 02 00 35 04 06 00 E1 58 C3 23 51 03 8B F1 7F 30 13 EF 9D F0 [15:19:18]CheckFolder [15:19:18]dirname=/storage/ofd_packets [15:19:18]CheckFolder done [15:19:18]ProducePacketName [15:19:18]name=ofd_packets/00166076 [15:19:18]NVStorageSaveData ofd_packets/00166076 [15:19:18]File name is /storage/ofd_packets/00166076 [15:19:18]Write 301 bytes [15:19:18]NVStorageSaveData done [15:19:18]OFDSenderStorePacket done [15:19:18]KKMCreateOFDPacket done [15:19:18]NVStorageSaveData kkm_last_timestamp [15:19:18]File name is /storage/kkm_last_timestamp [15:19:18]Write 4 bytes [15:19:18]NVStorageSaveData done [15:19:18]ExternCall_PrintAddStr [15:19:18]wPrintStart [15:19:18]Write to MH i2c: 01 00 00 FB 5F 5A [15:19:18]Write i2c OK [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: 01 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: 01 07 00 [15:19:18]MH_I2C_Read... [15:19:18]Read from MH i2c: 01 07 00 FB 5F 00 00 00 00 00 FF 0F 6F [15:19:18]RasterBufferAndPrint [15:19:18]line Счет N : (1)220647 [15:19:18]line ИНН: 02508201610067 [15:19:18]line Контрольно-Кассовый Чек [15:19:18]line ПРОДАЖА [15:19:18]line ТРК (МРК, ГНК) : 33 [15:19:18]line Товар: 2710124130 [15:19:18]line Аи-92-К-5 [15:19:18]line 10.470 * 66.90 [15:19:18]line = 700.44 [15:19:18]line НДС 12% НСП 1% [15:19:18]line > о реализуемом товаре [15:19:18]line ОКРУГЛЕНИЕ: -0.44 [15:19:18]line ИТОГО: 700.00 [15:19:18]line Внесено: 700.00 [15:19:18]line СДАЧА: 0.00 [15:19:18]line НСП 1% : 6.20 [15:19:18]line НДС 12% : 74.38 [15:19:18]line Наличными: 700.00 [15:19:18]line Безнал.: 0.00 [15:19:18]line Место: АЗС № 161 "Партнер Нефть" [15:19:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:19:18]line СНО: Общий режим [15:19:18]line Чек 187 21.10.2024 15:19 [15:19:18]line Смена: 535 ФФД: 1.0 [15:19:18]line ЗНМ: 0300000104 [15:19:18]line РНМ: 0000000000091764 [15:19:18]line Версия ККМ: 001 [15:19:18]line ФМ: 0000000000871759 [15:19:18]line ФД: 166076 [15:19:18]line ФПД: 247771347243267 [15:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T151935&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166076&fm=247771347243267&tin=02508201610067®Number=0000000000091764&sum=70000 [15:19:18]OFD Sender: Processing packet 166076 [packets to send 48, broken 47] [15:19:18]ProducePacketName [15:19:18]name=ofd_packets/00166076 [15:19:18]OFD Sender: To server: pG, [15:19:18]CommunicateWithHost lk.salyk.kg:30040 [15:19:18]ConnectInit lk.salyk.kg [15:19:18]written 0, free lines is 4095 [15:19:18]Connected sock=7 [15:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 AC 07 01 E4 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 07 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 88 02 00 35 04 06 00 E1 58 C3 23 51 03 8B F1 7F 30 13 EF 9D F0 [15:19:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 27 7D 47 00 42 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BC 88 02 00 F4 03 04 00 75 17 16 67 B6 04 01 00 00 C9 0F AB 61 C0 E2 D7 57 [15:19:19]CommunicateWithHost err = 0 [15:19:19]CheckOFDResponse [15:19:19]1017 (14) - 77093643461234 [15:19:19]1041 (16) - 0000000000871759 [15:19:19]1040 (4) - 166076 [15:19:19]1012 (4) - 21.10.2024 08:57 [15:19:19]1206 (1) - 0 [15:19:19]OFD Sender: Remove packet 166076 [15:19:19]ProducePacketName [15:19:19]name=ofd_packets/00166076 [15:19:19]NVStorageDeleteData [15:19:19]Write to MH i2c: 01 00 00 26 60 86 [15:19:19]Write i2c OK [15:19:19]MH_I2C_Read... [15:19:19]Read from MH i2c: 01 [15:19:19]MH_I2C_Read... [15:19:19]Read from MH i2c: 01 07 00 [15:19:19]MH_I2C_Read... [15:19:19]Read from MH i2c: 01 07 00 26 60 00 00 00 00 00 CD 0C 66 [15:19:19]RasterBufferAndPrint [15:19:19]line [15:19:19]line [15:19:19]line [15:19:19]line [15:19:19]line [15:19:19]written 0, free lines is 3287 [15:19:19]MH_Cut [15:19:19]Write to MH i2c: D1 01 00 2D 60 01 5F [15:19:19]Write i2c OK [15:19:19]MH_I2C_Read... [15:19:19]Read from MH i2c: D1 [15:19:19]MH_I2C_Read... [15:19:19]Read from MH i2c: D1 01 00 [15:19:19]MH_I2C_Read... [15:19:19]Read from MH i2c: D1 01 00 2D 60 00 5E [15:19:19]Write to MH i2c: 01 00 00 2E 60 8E [15:19:19]Write i2c OK [15:19:19]MH_I2C_Read... [15:19:19]OFD Sender: No OFD packet to send [15:19:20]*** Cut start [15:19:20]*** Partial cut [15:19:20]*** CUTSNS_PIN = 1 [15:19:20]*** CUTSNS_PIN = 0 [15:19:20]*** Brake cut motor [15:19:20]Read from MH i2c: 01 [15:19:20]MH_I2C_Read... [15:19:20]*** Stop cut motor [15:19:20]*** Cut end [15:19:20]Read from MH i2c: 01 07 00 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: 01 07 00 2E 60 00 00 00 00 00 FF 0F A3 [15:19:20]process_action close_receipt done [15:19:20]requested_data is exist [15:19:20]produce_requested_data [15:19:20]requested_item fm.sn is exist - process it [15:19:20]wFMCommunicate request_size=4 [15:19:20]MH_SAM_APDU [15:19:20]CAPDU: 80 11 00 00 [15:19:20]Write to MH i2c: E2 08 00 2F 60 80 11 00 00 00 00 00 00 09 [15:19:20]Write i2c OK [15:19:20]MH_I2C_Read... [15:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:20]Read from MH i2c: E2 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: E2 17 00 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: E2 17 00 2F 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 61 [15:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:19:20]wFMCommunicate OK [15:19:20]requested_item fd.num is exist - process it [15:19:20]SAM_PROTO_GetFieldsCounters [15:19:20]wFMCommunicate request_size=4 [15:19:20]MH_SAM_APDU [15:19:20]CAPDU: 80 13 00 00 [15:19:20]Write to MH i2c: E2 08 00 30 60 80 13 00 00 00 00 00 00 0C [15:19:20]Write i2c OK [15:19:20]MH_I2C_Read... [15:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:20]Read from MH i2c: E2 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: E2 62 00 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: E2 62 00 30 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [15:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:19:20]wFMCommunicate OK [15:19:20]SAM_PROTO_GetFieldsCounters done [15:19:20]requested_item shift.num is exist - process it [15:19:20]requested_item shift.opened is exist - process it [15:19:20]req_shift_opened [15:19:20]FM_GetShiftState [15:19:20]SAM_PROTO_GetShiftState [15:19:20]wFMCommunicate request_size=4 [15:19:20]MH_SAM_APDU [15:19:20]CAPDU: 80 13 01 00 [15:19:20]Write to MH i2c: E2 08 00 31 60 80 13 01 00 00 00 00 00 0E [15:19:20]Write i2c OK [15:19:20]MH_I2C_Read... [15:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:20]Read from MH i2c: E2 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: E2 0E 00 [15:19:20]MH_I2C_Read... [15:19:20]Read from MH i2c: E2 0E 00 31 60 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 17 [15:19:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:19:20]wFMCommunicate OK [15:19:20]SAM_PROTO_GetShiftState done [15:19:20]FM_GetShiftState done [15:19:20]req_shift_opened done [15:19:20]requested_item shift.open_date is exist - process it [15:19:20]req_shift_open_date [15:19:20]req_shift_open_date done [15:19:20]produce_requested_data done [15:19:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166076,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:19:20]process_action_free close_receipt [15:19:20]json_value_free [15:19:20]json_value_free done [15:19:20]process_json_proto returns [15:19:20]Send response to host [15:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166076,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:19:20]free response buf [15:19:20]execute_script done [15:19:20]execute_script returns [15:19:20]free content buf [15:19:20]Sock 6.Close socket [15:19:20]Sock 6.Thread stoped [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:25]accept exits with 5 [15:21:25]New connection [15:21:25]New thread 3066776932 created [15:21:25]Thread 3066920292 joined [15:21:25]Waiting for new connection... [15:21:25] Sock 5.Parse request [15:21:25]Sock 5.Check first char [15:21:25]Sock 5.First char is OK [15:21:25]request: POST /json_proto HTTP/1.0 [15:21:25]Method: POST [15:21:25]URL: /json_proto [15:21:25]Method is POST - this is cgi request [15:21:25]url: /json_proto [15:21:25]query_string will be loaded in cgi processing [15:21:25]execute_cgi json_proto POST (null) [15:21:25]execute_cgi path=json_proto method=POST [15:21:25]POST find Content-Length [15:21:25]Host: 172.17.53.195:8080 [15:21:25]Content-Length: 769 [15:21:25]Content-Type: application/json [15:21:25] [15:21:25]POST finish read [15:21:25]Found Content-Length = 769 [15:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:25]execute_script... [15:21:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220648", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:25]POST & json_proto [15:21:25]process_json_proto [15:21:25]json parsed OK: [15:21:25]protocol is kg_v1.0 [15:21:25]action value=close_receipt [15:21:25]process_action close_receipt [15:21:25]cmd_close_receipt [15:21:25]MH_GetDate [15:21:25]Write to MH i2c: F0 00 00 32 60 81 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: F0 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: F0 09 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: F0 09 00 32 60 00 87 71 16 67 21 48 4A 65 17 [15:21:25]GetLastDocTimeStamp 1729523975 [15:21:25]current date 1729524103 [15:21:25]FM_GetShiftState [15:21:25]SAM_PROTO_GetShiftState [15:21:25]wFMCommunicate request_size=4 [15:21:25]MH_SAM_APDU [15:21:25]CAPDU: 80 13 01 00 [15:21:25]Write to MH i2c: E2 08 00 33 60 80 13 01 00 00 00 00 00 10 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:25]Read from MH i2c: E2 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 0E 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: E2 0E 00 33 60 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [15:21:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:21:25]wFMCommunicate OK [15:21:25]SAM_PROTO_GetShiftState done [15:21:25]FM_GetShiftState done [15:21:25]opened in 1729470944 [15:21:25]opened+sec_in_day 1729557344 [15:21:25]quantity*price = 100015 [15:21:25]sum+1 = 100017 [15:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 188 21.10.2024 15:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166077 ФПД: 48777132247109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152143&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166077&fm=48777132247109&tin=02508201610067®Number=0000000000091764&sum=100016 [15:21:26]StoreToDocumentArchive [15:21:26]shift 535 fd 166077 [15:21:26]save to /storage/0535/doc_00166077 [15:21:26]save last doc name /storage/0535/doc_00166077 to /storage/kkm_last_doc_name [15:21:26]save OK [15:21:26]Clear old archive folders... [15:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:26]tlvbuf is 016AB6E0 [15:21:26]SAM_PROTO_ClearQueue [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 09 00 00 [15:21:26]Write to MH i2c: E2 08 00 40 60 80 09 00 00 00 00 00 00 12 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 40 60 00 90 00 14 [15:21:26]RAPDU: 90 00 [15:21:26]wFMCommunicate OK [15:21:26]SAM_PROTO_ClearQueue done [15:21:26]KKMCreateOFDPacket [15:21:26]OFDProtocolAddRootSTLVToBuf [15:21:26]FM_MakeSignedData [15:21:26]FM_MakeSignedData [15:21:26]SAM_PROTO_SignData [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 0D 01 02 [15:21:26]Write to MH i2c: E2 08 00 41 60 80 0D 01 02 00 00 00 00 1A [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 41 60 00 90 00 15 [15:21:26]RAPDU: 90 00 [15:21:26]wFMCommunicate OK [15:21:26]wFMCommunicate request_size=255 [15:21:26]MH_SAM_APDU [15:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 87 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 88 02 00 35 04 06 00 2C [15:21:26]Write to MH i2c: E2 02 01 42 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 87 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 88 02 00 35 04 06 00 2C 00 00 87 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 42 60 00 90 00 16 [15:21:26]RAPDU: 90 00 [15:21:26]wFMCommunicate OK [15:21:26]wFMCommunicate request_size=10 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 0D 02 02 05 5C CF A4 08 45 [15:21:26]Write to MH i2c: E2 0D 00 43 60 80 0D 02 02 05 00 5C CF A4 08 45 00 00 43 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 03 00 43 60 00 90 00 17 [15:21:26]RAPDU: 90 00 [15:21:26]wFMCommunicate OK [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 0D 03 02 [15:21:26]Write to MH i2c: E2 08 00 44 60 80 0D 03 02 00 00 00 00 1F [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 0B 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 0B 00 44 60 00 9F 90 6B CE 71 01 CE A9 90 00 71 [15:21:26]RAPDU: 9F 90 6B CE 71 01 CE A9 90 00 [15:21:26]wFMCommunicate OK [15:21:26]SAM_PROTO_SignData done [15:21:26]FM_MakeSignedData done [15:21:26]CreateOFDProtocolMessage [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 11 00 00 [15:21:26]Write to MH i2c: E2 08 00 45 60 80 11 00 00 00 00 00 00 1F [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 45 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [15:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:21:26]wFMCommunicate OK [15:21:26]CreateOFDProtocolMessage done [15:21:26]OFDSenderStorePacket 166077 [15:21:26]StoreOFDPacket docnum=166077 [15:21:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 55 A0 07 01 0E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 87 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 88 02 00 35 04 06 00 2C 5C CF A4 08 45 9F 90 6B CE 71 01 CE A9 [15:21:26]CheckFolder [15:21:26]dirname=/storage/ofd_packets [15:21:26]CheckFolder done [15:21:26]ProducePacketName [15:21:26]name=ofd_packets/00166077 [15:21:26]NVStorageSaveData ofd_packets/00166077 [15:21:26]File name is /storage/ofd_packets/00166077 [15:21:26]Write 301 bytes [15:21:26]NVStorageSaveData done [15:21:26]OFDSenderStorePacket done [15:21:26]KKMCreateOFDPacket done [15:21:26]NVStorageSaveData kkm_last_timestamp [15:21:26]File name is /storage/kkm_last_timestamp [15:21:26]Write 4 bytes [15:21:26]NVStorageSaveData done [15:21:26]ExternCall_PrintAddStr [15:21:26]wPrintStart [15:21:26]Write to MH i2c: 01 00 00 46 60 A6 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 46 60 00 00 00 00 00 FF 0F BB [15:21:26]RasterBufferAndPrint [15:21:26]line Счет N : (1)220648 [15:21:26]line ИНН: 02508201610067 [15:21:26]line Контрольно-Кассовый Чек [15:21:26]line ПРОДАЖА [15:21:26]line ТРК (МРК, ГНК) : 23 [15:21:26]line Товар: 2710124130 [15:21:26]line Аи-92-К-5 [15:21:26]line 14.950 * 66.90 [15:21:26]line = 1000.16 [15:21:26]line НДС 12% НСП 1% [15:21:26]line > о реализуемом товаре [15:21:26]line ИТОГО: 1000.16 [15:21:26]line НСП 1% : 8.85 [15:21:26]line НДС 12% : 106.21 [15:21:26]line Наличными: 0.00 [15:21:26]line Безнал.: 1000.16 [15:21:26]line Место: АЗС № 161 "Партнер Нефть" [15:21:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:21:26]line СНО: Общий режим [15:21:26]line Чек 188 21.10.2024 15:21 [15:21:26]line Смена: 535 ФФД: 1.0 [15:21:26]line ЗНМ: 0300000104 [15:21:26]line РНМ: 0000000000091764 [15:21:26]line Версия ККМ: 001 [15:21:26]line Платежная система: Mbank [15:21:26]line ФМ: 0000000000871759 [15:21:26]line ФД: 166077 [15:21:26]line ФПД: 48777132247109 [15:21:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152143&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166077&fm=48777132247109&tin=02508201610067®Number=0000000000091764&sum=100016 [15:21:27]written 0, free lines is 4095 [15:21:27]OFD Sender: Processing packet 166077 [packets to send 48, broken 47] [15:21:27]ProducePacketName [15:21:27]name=ofd_packets/00166077 [15:21:27]OFD Sender: To server: pG, [15:21:27]CommunicateWithHost lk.salyk.kg:30040 [15:21:27]ConnectInit lk.salyk.kg [15:21:27]Connected sock=7 [15:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 55 A0 07 01 0E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 87 71 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 88 02 00 35 04 06 00 2C 5C CF A4 08 45 9F 90 6B CE 71 01 CE A9 [15:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F F5 47 00 E4 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BD 88 02 00 F4 03 04 00 F6 17 16 67 B6 04 01 00 00 3B 9D C9 26 29 5F 3F A2 [15:21:27]CommunicateWithHost err = 0 [15:21:27]CheckOFDResponse [15:21:27]1017 (14) - 77093643461234 [15:21:27]1041 (16) - 0000000000871759 [15:21:27]1040 (4) - 166077 [15:21:27]1012 (4) - 21.10.2024 08:59 [15:21:27]1206 (1) - 0 [15:21:27]OFD Sender: Remove packet 166077 [15:21:27]ProducePacketName [15:21:27]name=ofd_packets/00166077 [15:21:27]NVStorageDeleteData [15:21:27]Write to MH i2c: 01 00 00 6F 60 CF [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: 01 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: 01 07 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: 01 07 00 6F 60 00 00 00 00 00 EC 0C CE [15:21:27]RasterBufferAndPrint [15:21:27]line [15:21:27]line [15:21:27]line [15:21:27]line [15:21:27]line [15:21:27]written 0, free lines is 3315 [15:21:27]MH_Cut [15:21:27]Write to MH i2c: D1 01 00 76 60 01 A8 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: D1 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: D1 01 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: D1 01 00 76 60 00 A7 [15:21:27]Write to MH i2c: 01 00 00 77 60 D7 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]OFD Sender: No OFD packet to send [15:21:28]*** Cut start [15:21:28]*** Partial cut [15:21:28]*** CUTSNS_PIN = 1 [15:21:28]*** CUTSNS_PIN = 0 [15:21:28]*** Brake cut motor [15:21:28]Read from MH i2c: 01 [15:21:28]MH_I2C_Read... [15:21:28]*** Stop cut motor [15:21:28]*** Cut end [15:21:28]Read from MH i2c: 01 07 00 [15:21:28]MH_I2C_Read... [15:21:28]Read from MH i2c: 01 07 00 77 60 00 00 00 00 00 FF 0F EC [15:21:28]process_action close_receipt done [15:21:28]requested_data is exist [15:21:28]produce_requested_data [15:21:28]requested_item fm.sn is exist - process it [15:21:28]wFMCommunicate request_size=4 [15:21:28]MH_SAM_APDU [15:21:28]CAPDU: 80 11 00 00 [15:21:28]Write to MH i2c: E2 08 00 78 60 80 11 00 00 00 00 00 00 52 [15:21:28]Write i2c OK [15:21:28]MH_I2C_Read... [15:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:28]Read from MH i2c: E2 [15:21:28]MH_I2C_Read... [15:21:28]Read from MH i2c: E2 17 00 [15:21:28]MH_I2C_Read... [15:21:28]Read from MH i2c: E2 17 00 78 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [15:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:21:28]wFMCommunicate OK [15:21:28]requested_item fd.num is exist - process it [15:21:28]SAM_PROTO_GetFieldsCounters [15:21:28]wFMCommunicate request_size=4 [15:21:28]MH_SAM_APDU [15:21:28]CAPDU: 80 13 00 00 [15:21:28]Write to MH i2c: E2 08 00 79 60 80 13 00 00 00 00 00 00 55 [15:21:28]Write i2c OK [15:21:28]MH_I2C_Read... [15:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:29]Read from MH i2c: E2 [15:21:29]MH_I2C_Read... [15:21:29]Read from MH i2c: E2 62 00 [15:21:29]MH_I2C_Read... [15:21:29]Read from MH i2c: E2 62 00 79 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [15:21:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:29]wFMCommunicate OK [15:21:29]SAM_PROTO_GetFieldsCounters done [15:21:29]requested_item shift.num is exist - process it [15:21:29]requested_item shift.opened is exist - process it [15:21:29]req_shift_opened [15:21:29]FM_GetShiftState [15:21:29]SAM_PROTO_GetShiftState [15:21:29]wFMCommunicate request_size=4 [15:21:29]MH_SAM_APDU [15:21:29]CAPDU: 80 13 01 00 [15:21:29]Write to MH i2c: E2 08 00 7A 60 80 13 01 00 00 00 00 00 57 [15:21:29]Write i2c OK [15:21:29]MH_I2C_Read... [15:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:29]Read from MH i2c: E2 [15:21:29]MH_I2C_Read... [15:21:29]Read from MH i2c: E2 0E 00 [15:21:29]MH_I2C_Read... [15:21:29]Read from MH i2c: E2 0E 00 7A 60 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 60 [15:21:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:21:29]wFMCommunicate OK [15:21:29]SAM_PROTO_GetShiftState done [15:21:29]FM_GetShiftState done [15:21:29]req_shift_opened done [15:21:29]requested_item shift.open_date is exist - process it [15:21:29]req_shift_open_date [15:21:29]req_shift_open_date done [15:21:29]produce_requested_data done [15:21:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166077,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:21:29]process_action_free close_receipt [15:21:29]json_value_free [15:21:29]json_value_free done [15:21:29]process_json_proto returns [15:21:29]Send response to host [15:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166077,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:21:29]free response buf [15:21:29]execute_script done [15:21:29]execute_script returns [15:21:29]free content buf [15:21:29]Sock 5.Close socket [15:21:29]Sock 5.Thread stoped [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:13]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:40]accept exits with 6 [15:23:40]New connection [15:23:40]New thread 3066920292 created [15:23:40]Thread 3066776932 joined [15:23:40]Waiting for new connection... [15:23:40] Sock 6.Parse request [15:23:40]Sock 6.Check first char [15:23:40]Sock 6.First char is OK [15:23:40]request: POST /json_proto HTTP/1.0 [15:23:40]Method: POST [15:23:40]URL: /json_proto [15:23:40]Method is POST - this is cgi request [15:23:40]url: /json_proto [15:23:40]query_string will be loaded in cgi processing [15:23:40]execute_cgi json_proto POST (null) [15:23:40]execute_cgi path=json_proto method=POST [15:23:40]POST find Content-Length [15:23:40]Host: 172.17.53.195:8080 [15:23:40]Content-Length: 677 [15:23:40]Content-Type: application/json [15:23:40] [15:23:40]POST finish read [15:23:40]Found Content-Length = 677 [15:23:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:40]execute_script... [15:23: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)220649", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:40]POST & json_proto [15:23:40]process_json_proto [15:23:40]json parsed OK: [15:23:40]protocol is kg_v1.0 [15:23:40]action value=close_receipt [15:23:40]process_action close_receipt [15:23:40]cmd_close_receipt [15:23:40]MH_GetDate [15:23:40]Write to MH i2c: F0 00 00 7B 60 CA [15:23:40]Write i2c OK [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: F0 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: F0 09 00 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: F0 09 00 7B 60 00 0F 72 16 67 21 48 4A 65 E9 [15:23:40]GetLastDocTimeStamp 1729524103 [15:23:40]current date 1729524239 [15:23:40]FM_GetShiftState [15:23:40]SAM_PROTO_GetShiftState [15:23:40]wFMCommunicate request_size=4 [15:23:40]MH_SAM_APDU [15:23:40]CAPDU: 80 13 01 00 [15:23:40]Write to MH i2c: E2 08 00 7C 60 80 13 01 00 00 00 00 00 59 [15:23:40]Write i2c OK [15:23:40]MH_I2C_Read... [15:23:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:40]Read from MH i2c: E2 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: E2 0E 00 [15:23:40]MH_I2C_Read... [15:23:40]Read from MH i2c: E2 0E 00 7C 60 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 62 [15:23:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:23:40]wFMCommunicate OK [15:23:40]SAM_PROTO_GetShiftState done [15:23:40]FM_GetShiftState done [15:23:40]opened in 1729470944 [15:23:40]opened+sec_in_day 1729557344 [15:23:40]quantity*price = 50041 [15:23:40]sum+1 = 50042 [15:23:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 189 21.10.2024 15:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166078 ФПД: 10639233810260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166078&fm=10639233810260&tin=02508201610067®Number=0000000000091764&sum=50000 [15:23:41]StoreToDocumentArchive [15:23:41]shift 535 fd 166078 [15:23:41]save to /storage/0535/doc_00166078 [15:23:41]save last doc name /storage/0535/doc_00166078 to /storage/kkm_last_doc_name [15:23:41]save OK [15:23:41]Clear old archive folders... [15:23:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:23:41]tlvbuf is 017B0AD0 [15:23:41]SAM_PROTO_ClearQueue [15:23:41]wFMCommunicate request_size=4 [15:23:41]MH_SAM_APDU [15:23:41]CAPDU: 80 09 00 00 [15:23:41]Write to MH i2c: E2 08 00 89 60 80 09 00 00 00 00 00 00 5B [15:23:41]Write i2c OK [15:23:41]MH_I2C_Read... [15:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:41]Read from MH i2c: E2 [15:23:41]MH_I2C_Read... [15:23:41]Read from MH i2c: E2 03 00 [15:23:41]MH_I2C_Read... [15:23:41]Read from MH i2c: E2 03 00 89 60 00 90 00 5D [15:23:41]RAPDU: 90 00 [15:23:41]wFMCommunicate OK [15:23:41]SAM_PROTO_ClearQueue done [15:23:41]KKMCreateOFDPacket [15:23:41]OFDProtocolAddRootSTLVToBuf [15:23:41]FM_MakeSignedData [15:23:41]FM_MakeSignedData [15:23:41]SAM_PROTO_SignData [15:23:41]wFMCommunicate request_size=4 [15:23:41]MH_SAM_APDU [15:23:41]CAPDU: 80 0D 01 02 [15:23:41]Write to MH i2c: E2 08 00 8A 60 80 0D 01 02 00 00 00 00 63 [15:23:41]Write i2c OK [15:23:41]MH_I2C_Read... [15:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:41]Read from MH i2c: E2 [15:23:41]MH_I2C_Read... [15:23:41]Read from MH i2c: E2 03 00 [15:23:41]MH_I2C_Read... [15:23:41]Read from MH i2c: E2 03 00 8A 60 00 90 00 5E [15:23:41]RAPDU: 90 00 [15:23:41]wFMCommunicate OK [15:23:41]wFMCommunicate request_size=255 [15:23:41]MH_SAM_APDU [15:23:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 0F 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 88 02 00 35 04 06 00 09 [15:23:41]Write to MH i2c: E2 02 01 8B 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 88 02 00 35 04 06 00 09 00 00 1E [15:23:41]Write i2c OK [15:23:41]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 03 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 03 00 8B 60 00 90 00 5F [15:23:42]RAPDU: 90 00 [15:23:42]wFMCommunicate OK [15:23:42]wFMCommunicate request_size=10 [15:23:42]MH_SAM_APDU [15:23:42]CAPDU: 80 0D 02 02 05 AD 23 C0 7F 54 [15:23:42]Write to MH i2c: E2 0D 00 8C 60 80 0D 02 02 05 00 AD 23 C0 7F 54 00 00 D3 [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 03 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 03 00 8C 60 00 90 00 60 [15:23:42]RAPDU: 90 00 [15:23:42]wFMCommunicate OK [15:23:42]wFMCommunicate request_size=4 [15:23:42]MH_SAM_APDU [15:23:42]CAPDU: 80 0D 03 02 [15:23:42]Write to MH i2c: E2 08 00 8D 60 80 0D 03 02 00 00 00 00 68 [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 0B 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 0B 00 8D 60 00 E5 77 36 33 28 C0 4B DC 90 00 3D [15:23:42]RAPDU: E5 77 36 33 28 C0 4B DC 90 00 [15:23:42]wFMCommunicate OK [15:23:42]SAM_PROTO_SignData done [15:23:42]FM_MakeSignedData done [15:23:42]CreateOFDProtocolMessage [15:23:42]wFMCommunicate request_size=4 [15:23:42]MH_SAM_APDU [15:23:42]CAPDU: 80 11 00 00 [15:23:42]Write to MH i2c: E2 08 00 8E 60 80 11 00 00 00 00 00 00 68 [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:42]Read from MH i2c: E2 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 17 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: E2 17 00 8E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [15:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:23:42]wFMCommunicate OK [15:23:42]CreateOFDProtocolMessage done [15:23:42]OFDSenderStorePacket 166078 [15:23:42]StoreOFDPacket docnum=166078 [15:23:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B 20 07 01 A6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 88 02 00 35 04 06 00 09 AD 23 C0 7F 54 E5 77 36 33 28 C0 4B DC [15:23:42]CheckFolder [15:23:42]dirname=/storage/ofd_packets [15:23:42]CheckFolder done [15:23:42]ProducePacketName [15:23:42]name=ofd_packets/00166078 [15:23:42]NVStorageSaveData ofd_packets/00166078 [15:23:42]File name is /storage/ofd_packets/00166078 [15:23:42]Write 301 bytes [15:23:42]NVStorageSaveData done [15:23:42]OFDSenderStorePacket done [15:23:42]KKMCreateOFDPacket done [15:23:42]NVStorageSaveData kkm_last_timestamp [15:23:42]File name is /storage/kkm_last_timestamp [15:23:42]Write 4 bytes [15:23:42]NVStorageSaveData done [15:23:42]ExternCall_PrintAddStr [15:23:42]wPrintStart [15:23:42]Write to MH i2c: 01 00 00 8F 60 EF [15:23:42]Write i2c OK [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: 01 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: 01 07 00 [15:23:42]MH_I2C_Read... [15:23:42]Read from MH i2c: 01 07 00 8F 60 00 00 00 00 00 FF 0F 04 [15:23:42]RasterBufferAndPrint [15:23:42]line Счет N : (1)220649 [15:23:42]line ИНН: 02508201610067 [15:23:42]line Контрольно-Кассовый Чек [15:23:42]line ПРОДАЖА [15:23:42]line ТРК (МРК, ГНК) : 23 [15:23:42]line Товар: 2710124130 [15:23:42]line Аи-92-К-5 [15:23:42]line 7.480 * 66.90 [15:23:42]line = 500.41 [15:23:42]line НДС 12% НСП 1% [15:23:42]line > о реализуемом товаре [15:23:42]line ОКРУГЛЕНИЕ: -0.41 [15:23:42]line ИТОГО: 500.00 [15:23:42]line Внесено: 500.00 [15:23:42]line СДАЧА: 0.00 [15:23:42]line НСП 1% : 4.43 [15:23:42]line НДС 12% : 53.14 [15:23:42]line Наличными: 500.00 [15:23:42]line Безнал.: 0.00 [15:23:42]line Место: АЗС № 161 "Партнер Нефть" [15:23:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:23:42]line СНО: Общий режим [15:23:42]line Чек 189 21.10.2024 15:23 [15:23:42]line Смена: 535 ФФД: 1.0 [15:23:42]line ЗНМ: 0300000104 [15:23:42]line РНМ: 0000000000091764 [15:23:42]line Версия ККМ: 001 [15:23:42]line ФМ: 0000000000871759 [15:23:42]line ФД: 166078 [15:23:42]line ФПД: 10639233810260 [15:23:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152359&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166078&fm=10639233810260&tin=02508201610067®Number=0000000000091764&sum=50000 [15:23:42]OFD Sender: Processing packet 166078 [packets to send 48, broken 47] [15:23:42]ProducePacketName [15:23:42]name=ofd_packets/00166078 [15:23:42]OFD Sender: To server: pG, [15:23:42]CommunicateWithHost lk.salyk.kg:30040 [15:23:42]ConnectInit lk.salyk.kg [15:23:42]written 0, free lines is 4095 [15:23:42]Connected sock=7 [15:23:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B 20 07 01 A6 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0F 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 88 02 00 35 04 06 00 09 AD 23 C0 7F 54 E5 77 36 33 28 C0 4B DC [15:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 47 81 47 00 5D 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BE 88 02 00 F4 03 04 00 7D 18 16 67 B6 04 01 00 00 D8 69 FD E0 1D 74 AF C3 [15:23:42]CommunicateWithHost err = 0 [15:23:42]CheckOFDResponse [15:23:42]1017 (14) - 77093643461234 [15:23:42]1041 (16) - 0000000000871759 [15:23:42]1040 (4) - 166078 [15:23:42]1012 (4) - 21.10.2024 09:01 [15:23:42]1206 (1) - 0 [15:23:42]OFD Sender: Remove packet 166078 [15:23:42]ProducePacketName [15:23:42]name=ofd_packets/00166078 [15:23:42]NVStorageDeleteData [15:23:43]Write to MH i2c: 01 00 00 BA 60 1A [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: 01 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: 01 07 00 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: 01 07 00 BA 60 00 00 00 00 00 DA 0C 07 [15:23:43]RasterBufferAndPrint [15:23:43]line [15:23:43]line [15:23:43]line [15:23:43]line [15:23:43]line [15:23:43]written 0, free lines is 3301 [15:23:43]MH_Cut [15:23:43]Write to MH i2c: D1 01 00 C1 60 01 F3 [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: D1 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: D1 01 00 [15:23:43]MH_I2C_Read... [15:23:43]Read from MH i2c: D1 01 00 C1 60 00 F2 [15:23:43]Write to MH i2c: 01 00 00 C2 60 22 [15:23:43]Write i2c OK [15:23:43]MH_I2C_Read... [15:23:43]OFD Sender: No OFD packet to send [15:23:43]*** Cut start [15:23:43]*** Partial cut [15:23:43]*** CUTSNS_PIN = 1 [15:23:43]*** CUTSNS_PIN = 0 [15:23:44]*** Brake cut motor [15:23:44]Read from MH i2c: 01 [15:23:44]MH_I2C_Read... [15:23:44]*** Stop cut motor [15:23:44]*** Cut end [15:23:44]Read from MH i2c: 01 07 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: 01 07 00 C2 60 00 00 00 00 00 FF 0F 37 [15:23:44]process_action close_receipt done [15:23:44]requested_data is exist [15:23:44]produce_requested_data [15:23:44]requested_item fm.sn is exist - process it [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 11 00 00 [15:23:44]Write to MH i2c: E2 08 00 C3 60 80 11 00 00 00 00 00 00 9D [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 17 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 17 00 C3 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [15:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:23:44]wFMCommunicate OK [15:23:44]requested_item fd.num is exist - process it [15:23:44]SAM_PROTO_GetFieldsCounters [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 13 00 00 [15:23:44]Write to MH i2c: E2 08 00 C4 60 80 13 00 00 00 00 00 00 A0 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 62 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 62 00 C4 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [15:23:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:44]wFMCommunicate OK [15:23:44]SAM_PROTO_GetFieldsCounters done [15:23:44]requested_item shift.num is exist - process it [15:23:44]requested_item shift.opened is exist - process it [15:23:44]req_shift_opened [15:23:44]FM_GetShiftState [15:23:44]SAM_PROTO_GetShiftState [15:23:44]wFMCommunicate request_size=4 [15:23:44]MH_SAM_APDU [15:23:44]CAPDU: 80 13 01 00 [15:23:44]Write to MH i2c: E2 08 00 C5 60 80 13 01 00 00 00 00 00 A2 [15:23:44]Write i2c OK [15:23:44]MH_I2C_Read... [15:23:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:44]Read from MH i2c: E2 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 0E 00 [15:23:44]MH_I2C_Read... [15:23:44]Read from MH i2c: E2 0E 00 C5 60 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AB [15:23:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:23:44]wFMCommunicate OK [15:23:44]SAM_PROTO_GetShiftState done [15:23:44]FM_GetShiftState done [15:23:44]req_shift_opened done [15:23:44]requested_item shift.open_date is exist - process it [15:23:44]req_shift_open_date [15:23:44]req_shift_open_date done [15:23:44]produce_requested_data done [15:23:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166078,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:23:44]process_action_free close_receipt [15:23:44]json_value_free [15:23:44]json_value_free done [15:23:44]process_json_proto returns [15:23:44]Send response to host [15:23:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166078,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:23:44]free response buf [15:23:44]execute_script done [15:23:44]execute_script returns [15:23:44]free content buf [15:23:44]Sock 6.Close socket [15:23:44]Sock 6.Thread stoped [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:31]accept exits with 5 [15:24:31]New connection [15:24:31]New thread 3066776932 created [15:24:31]Thread 3066920292 joined [15:24:31]Waiting for new connection... [15:24:31] Sock 5.Parse request [15:24:31]Sock 5.Check first char [15:24:31]Sock 5.First char is OK [15:24:31]request: POST /json_proto HTTP/1.0 [15:24:31]Method: POST [15:24:31]URL: /json_proto [15:24:31]Method is POST - this is cgi request [15:24:31]url: /json_proto [15:24:31]query_string will be loaded in cgi processing [15:24:31]execute_cgi json_proto POST (null) [15:24:31]execute_cgi path=json_proto method=POST [15:24:31]POST find Content-Length [15:24:31]Host: 172.17.53.195:8080 [15:24:31]Content-Length: 769 [15:24:31]Content-Type: application/json [15:24:31] [15:24:31]POST finish read [15:24:31]Found Content-Length = 769 [15:24:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:31]execute_script... [15:24:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220650", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:31]POST & json_proto [15:24:31]process_json_proto [15:24:31]json parsed OK: [15:24:31]protocol is kg_v1.0 [15:24:31]action value=close_receipt [15:24:31]process_action close_receipt [15:24:31]cmd_close_receipt [15:24:31]MH_GetDate [15:24:31]Write to MH i2c: F0 00 00 C6 60 15 [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: F0 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: F0 09 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: F0 09 00 C6 60 00 42 72 16 67 21 48 4A 65 67 [15:24:31]GetLastDocTimeStamp 1729524239 [15:24:31]current date 1729524290 [15:24:31]FM_GetShiftState [15:24:31]SAM_PROTO_GetShiftState [15:24:31]wFMCommunicate request_size=4 [15:24:31]MH_SAM_APDU [15:24:31]CAPDU: 80 13 01 00 [15:24:31]Write to MH i2c: E2 08 00 C7 60 80 13 01 00 00 00 00 00 A4 [15:24:31]Write i2c OK [15:24:31]MH_I2C_Read... [15:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:31]Read from MH i2c: E2 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 [15:24:31]MH_I2C_Read... [15:24:31]Read from MH i2c: E2 0E 00 C7 60 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AD [15:24:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:24:31]wFMCommunicate OK [15:24:31]SAM_PROTO_GetShiftState done [15:24:31]FM_GetShiftState done [15:24:31]opened in 1729470944 [15:24:31]opened+sec_in_day 1729557344 [15:24:31]quantity*price = 100015 [15:24:31]sum+1 = 100017 [15:24:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 190 21.10.2024 15:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166079 ФПД: 256741005981505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152450&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166079&fm=256741005981505&tin=02508201610067®Number=0000000000091764&sum=100016 [15:24:33]StoreToDocumentArchive [15:24:33]shift 535 fd 166079 [15:24:33]save to /storage/0535/doc_00166079 [15:24:33]save last doc name /storage/0535/doc_00166079 to /storage/kkm_last_doc_name [15:24:33]save OK [15:24:33]Clear old archive folders... [15:24:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:33]tlvbuf is 016E5020 [15:24:33]SAM_PROTO_ClearQueue [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 09 00 00 [15:24:33]Write to MH i2c: E2 08 00 D4 60 80 09 00 00 00 00 00 00 A6 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 D4 60 00 90 00 A8 [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]SAM_PROTO_ClearQueue done [15:24:33]KKMCreateOFDPacket [15:24:33]OFDProtocolAddRootSTLVToBuf [15:24:33]FM_MakeSignedData [15:24:33]FM_MakeSignedData [15:24:33]SAM_PROTO_SignData [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 01 02 [15:24:33]Write to MH i2c: E2 08 00 D5 60 80 0D 01 02 00 00 00 00 AE [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 D5 60 00 90 00 A9 [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]wFMCommunicate request_size=255 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 42 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 88 02 00 35 04 06 00 E9 [15:24:33]Write to MH i2c: E2 02 01 D6 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 42 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 88 02 00 35 04 06 00 E9 00 00 98 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 D6 60 00 90 00 AA [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]wFMCommunicate request_size=10 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 02 02 05 81 2C 75 F7 41 [15:24:33]Write to MH i2c: E2 0D 00 D7 60 80 0D 02 02 05 00 81 2C 75 F7 41 00 00 15 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]OFD Sender: No OFD packet to send [15:24:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 03 00 D7 60 00 90 00 AB [15:24:33]RAPDU: 90 00 [15:24:33]wFMCommunicate OK [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 0D 03 02 [15:24:33]Write to MH i2c: E2 08 00 D8 60 80 0D 03 02 00 00 00 00 B3 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0B 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 0B 00 D8 60 00 3E DD C4 4B 62 5F 7B 2E 90 00 48 [15:24:33]RAPDU: 3E DD C4 4B 62 5F 7B 2E 90 00 [15:24:33]wFMCommunicate OK [15:24:33]SAM_PROTO_SignData done [15:24:33]FM_MakeSignedData done [15:24:33]CreateOFDProtocolMessage [15:24:33]wFMCommunicate request_size=4 [15:24:33]MH_SAM_APDU [15:24:33]CAPDU: 80 11 00 00 [15:24:33]Write to MH i2c: E2 08 00 D9 60 80 11 00 00 00 00 00 00 B3 [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:33]Read from MH i2c: E2 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 17 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: E2 17 00 D9 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [15:24:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:24:33]wFMCommunicate OK [15:24:33]CreateOFDProtocolMessage done [15:24:33]OFDSenderStorePacket 166079 [15:24:33]StoreOFDPacket docnum=166079 [15:24:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 96 07 01 4F 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 42 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 88 02 00 35 04 06 00 E9 81 2C 75 F7 41 3E DD C4 4B 62 5F 7B 2E [15:24:33]CheckFolder [15:24:33]dirname=/storage/ofd_packets [15:24:33]CheckFolder done [15:24:33]ProducePacketName [15:24:33]name=ofd_packets/00166079 [15:24:33]NVStorageSaveData ofd_packets/00166079 [15:24:33]File name is /storage/ofd_packets/00166079 [15:24:33]Write 301 bytes [15:24:33]NVStorageSaveData done [15:24:33]OFDSenderStorePacket done [15:24:33]KKMCreateOFDPacket done [15:24:33]NVStorageSaveData kkm_last_timestamp [15:24:33]File name is /storage/kkm_last_timestamp [15:24:33]Write 4 bytes [15:24:33]NVStorageSaveData done [15:24:33]ExternCall_PrintAddStr [15:24:33]wPrintStart [15:24:33]Write to MH i2c: 01 00 00 DA 60 3A [15:24:33]Write i2c OK [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 [15:24:33]MH_I2C_Read... [15:24:33]Read from MH i2c: 01 07 00 DA 60 00 00 00 00 00 FF 0F 4F [15:24:33]RasterBufferAndPrint [15:24:33]line Счет N : (1)220650 [15:24:33]line ИНН: 02508201610067 [15:24:33]line Контрольно-Кассовый Чек [15:24:33]line ПРОДАЖА [15:24:33]line ТРК (МРК, ГНК) : 43 [15:24:33]line Товар: 2710124130 [15:24:33]line Аи-92-К-5 [15:24:33]line 14.950 * 66.90 [15:24:33]line = 1000.16 [15:24:33]line НДС 12% НСП 1% [15:24:33]line > о реализуемом товаре [15:24:33]line ИТОГО: 1000.16 [15:24:33]line НСП 1% : 8.85 [15:24:33]line НДС 12% : 106.21 [15:24:33]line Наличными: 0.00 [15:24:33]line Безнал.: 1000.16 [15:24:33]line Место: АЗС № 161 "Партнер Нефть" [15:24:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:24:33]line СНО: Общий режим [15:24:33]line Чек 190 21.10.2024 15:24 [15:24:33]line Смена: 535 ФФД: 1.0 [15:24:33]line ЗНМ: 0300000104 [15:24:33]line РНМ: 0000000000091764 [15:24:33]line Версия ККМ: 001 [15:24:33]line Платежная система: Mbank [15:24:33]line ФМ: 0000000000871759 [15:24:33]line ФД: 166079 [15:24:33]line ФПД: 256741005981505 [15:24:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152450&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166079&fm=256741005981505&tin=02508201610067®Number=0000000000091764&sum=100016 [15:24:33]OFD Sender: Processing packet 166079 [packets to send 48, broken 47] [15:24:33]ProducePacketName [15:24:33]name=ofd_packets/00166079 [15:24:33]OFD Sender: To server: pG, [15:24:33]CommunicateWithHost lk.salyk.kg:30040 [15:24:33]ConnectInit lk.salyk.kg [15:24:33]written 0, free lines is 4095 [15:24:34]Connected sock=7 [15:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 96 07 01 4F 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 42 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 88 02 00 35 04 06 00 E9 81 2C 75 F7 41 3E DD C4 4B 62 5F 7B 2E [15:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 94 47 00 AB BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 BF 88 02 00 F4 03 04 00 B0 18 16 67 B6 04 01 00 00 24 AF EA 77 CF 94 68 74 [15:24:34]CommunicateWithHost err = 0 [15:24:34]CheckOFDResponse [15:24:34]1017 (14) - 77093643461234 [15:24:34]1041 (16) - 0000000000871759 [15:24:34]1040 (4) - 166079 [15:24:34]1012 (4) - 21.10.2024 09:02 [15:24:34]1206 (1) - 0 [15:24:34]OFD Sender: Remove packet 166079 [15:24:34]ProducePacketName [15:24:34]name=ofd_packets/00166079 [15:24:34]NVStorageDeleteData [15:24:34]Write to MH i2c: 01 00 00 03 61 64 [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: 01 07 00 03 61 00 00 00 00 00 FA 0C 71 [15:24:34]RasterBufferAndPrint [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]line [15:24:34]written 0, free lines is 3328 [15:24:34]MH_Cut [15:24:34]Write to MH i2c: D1 01 00 0A 61 01 3D [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 01 00 [15:24:34]MH_I2C_Read... [15:24:34]Read from MH i2c: D1 01 00 0A 61 00 3C [15:24:34]Write to MH i2c: 01 00 00 0B 61 6C [15:24:34]Write i2c OK [15:24:34]MH_I2C_Read... [15:24:34]OFD Sender: No OFD packet to send [15:24:35]*** Cut start [15:24:35]*** Partial cut [15:24:35]*** CUTSNS_PIN = 1 [15:24:35]*** CUTSNS_PIN = 0 [15:24:35]*** Brake cut motor [15:24:35]Read from MH i2c: 01 [15:24:35]MH_I2C_Read... [15:24:35]*** Stop cut motor [15:24:35]*** Cut end [15:24:35]Read from MH i2c: 01 07 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: 01 07 00 0B 61 00 00 00 00 00 FF 0F 81 [15:24:35]process_action close_receipt done [15:24:35]requested_data is exist [15:24:35]produce_requested_data [15:24:35]requested_item fm.sn is exist - process it [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 11 00 00 [15:24:35]Write to MH i2c: E2 08 00 0C 61 80 11 00 00 00 00 00 00 E7 [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:35]Read from MH i2c: E2 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 [15:24:35]MH_I2C_Read... [15:24:35]Read from MH i2c: E2 17 00 0C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3F [15:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:24:35]wFMCommunicate OK [15:24:35]requested_item fd.num is exist - process it [15:24:35]SAM_PROTO_GetFieldsCounters [15:24:35]wFMCommunicate request_size=4 [15:24:35]MH_SAM_APDU [15:24:35]CAPDU: 80 13 00 00 [15:24:35]Write to MH i2c: E2 08 00 0D 61 80 13 00 00 00 00 00 00 EA [15:24:35]Write i2c OK [15:24:35]MH_I2C_Read... [15:24:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:36]Read from MH i2c: E2 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 62 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 62 00 0D 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:24:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 BF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:36]wFMCommunicate OK [15:24:36]SAM_PROTO_GetFieldsCounters done [15:24:36]requested_item shift.num is exist - process it [15:24:36]requested_item shift.opened is exist - process it [15:24:36]req_shift_opened [15:24:36]FM_GetShiftState [15:24:36]SAM_PROTO_GetShiftState [15:24:36]wFMCommunicate request_size=4 [15:24:36]MH_SAM_APDU [15:24:36]CAPDU: 80 13 01 00 [15:24:36]Write to MH i2c: E2 08 00 0E 61 80 13 01 00 00 00 00 00 EC [15:24:36]Write i2c OK [15:24:36]MH_I2C_Read... [15:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:36]Read from MH i2c: E2 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 0E 00 [15:24:36]MH_I2C_Read... [15:24:36]Read from MH i2c: E2 0E 00 0E 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F5 [15:24:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:24:36]wFMCommunicate OK [15:24:36]SAM_PROTO_GetShiftState done [15:24:36]FM_GetShiftState done [15:24:36]req_shift_opened done [15:24:36]requested_item shift.open_date is exist - process it [15:24:36]req_shift_open_date [15:24:36]req_shift_open_date done [15:24:36]produce_requested_data done [15:24:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166079,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:24:36]process_action_free close_receipt [15:24:36]json_value_free [15:24:36]json_value_free done [15:24:36]process_json_proto returns [15:24:36]Send response to host [15:24:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166079,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:24:36]free response buf [15:24:36]execute_script done [15:24:36]execute_script returns [15:24:36]free content buf [15:24:36]Sock 5.Close socket [15:24:36]Sock 5.Thread stoped [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]accept exits with 6 [15:25:14]New connection [15:25:14]New thread 3066920292 created [15:25:14]Thread 3066776932 joined [15:25:14]Waiting for new connection... [15:25:14] Sock 6.Parse request [15:25:14]Sock 6.Check first char [15:25:14]Sock 6.First char is OK [15:25:14]request: POST /json_proto HTTP/1.0 [15:25:14]Method: POST [15:25:14]URL: /json_proto [15:25:14]Method is POST - this is cgi request [15:25:14]url: /json_proto [15:25:14]query_string will be loaded in cgi processing [15:25:14]execute_cgi json_proto POST (null) [15:25:14]execute_cgi path=json_proto method=POST [15:25:14]POST find Content-Length [15:25:14]Host: 172.17.53.195:8080 [15:25:14]Content-Length: 677 [15:25:14]Content-Type: application/json [15:25:14] [15:25:14]POST finish read [15:25:14]Found Content-Length = 677 [15:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:14]execute_script... [15: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)220651", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:14]POST & json_proto [15:25:14]process_json_proto [15:25:14]json parsed OK: [15:25:14]protocol is kg_v1.0 [15:25:14]action value=close_receipt [15:25:14]process_action close_receipt [15:25:14]cmd_close_receipt [15:25:14]MH_GetDate [15:25:14]Write to MH i2c: F0 00 00 0F 61 5F [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: F0 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: F0 09 00 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: F0 09 00 0F 61 00 6C 72 16 67 21 48 4A 65 DB [15:25:14]GetLastDocTimeStamp 1729524290 [15:25:14]current date 1729524332 [15:25:14]FM_GetShiftState [15:25:14]SAM_PROTO_GetShiftState [15:25:14]wFMCommunicate request_size=4 [15:25:14]MH_SAM_APDU [15:25:14]CAPDU: 80 13 01 00 [15:25:14]Write to MH i2c: E2 08 00 10 61 80 13 01 00 00 00 00 00 EE [15:25:14]Write i2c OK [15:25:14]MH_I2C_Read... [15:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:14]Read from MH i2c: E2 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: E2 0E 00 [15:25:14]MH_I2C_Read... [15:25:14]Read from MH i2c: E2 0E 00 10 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F7 [15:25:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:25:14]wFMCommunicate OK [15:25:14]SAM_PROTO_GetShiftState done [15:25:14]FM_GetShiftState done [15:25:14]opened in 1729470944 [15:25:14]opened+sec_in_day 1729557344 [15:25:14]quantity*price = 35055 [15:25:14]sum+1 = 35057 [15:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 191 21.10.2024 15:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166080 ФПД: 222544203939673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166080&fm=222544203939673&tin=02508201610067®Number=0000000000091764&sum=35000 [15:25:15]StoreToDocumentArchive [15:25:15]shift 535 fd 166080 [15:25:15]save to /storage/0535/doc_00166080 [15:25:15]save last doc name /storage/0535/doc_00166080 to /storage/kkm_last_doc_name [15:25:15]save OK [15:25:15]Clear old archive folders... [15:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:25:15]tlvbuf is 0157EA10 [15:25:15]SAM_PROTO_ClearQueue [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 09 00 00 [15:25:15]Write to MH i2c: E2 08 00 1D 61 80 09 00 00 00 00 00 00 F0 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 1D 61 00 90 00 F2 [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]SAM_PROTO_ClearQueue done [15:25:15]KKMCreateOFDPacket [15:25:15]OFDProtocolAddRootSTLVToBuf [15:25:15]FM_MakeSignedData [15:25:15]FM_MakeSignedData [15:25:15]SAM_PROTO_SignData [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 0D 01 02 [15:25:15]Write to MH i2c: E2 08 00 1E 61 80 0D 01 02 00 00 00 00 F8 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 1E 61 00 90 00 F3 [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]wFMCommunicate request_size=255 [15:25:15]MH_SAM_APDU [15: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6D 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 88 02 00 35 04 06 00 CA [15:25:15]Write to MH i2c: E2 02 01 1F 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6D 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 88 02 00 35 04 06 00 CA 00 00 E1 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 1F 61 00 90 00 F4 [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]wFMCommunicate request_size=10 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 0D 02 02 05 67 1C 38 FF 59 [15:25:15]Write to MH i2c: E2 0D 00 20 61 80 0D 02 02 05 00 67 1C 38 FF 59 00 00 18 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 03 00 20 61 00 90 00 F5 [15:25:15]RAPDU: 90 00 [15:25:15]wFMCommunicate OK [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 0D 03 02 [15:25:15]Write to MH i2c: E2 08 00 21 61 80 0D 03 02 00 00 00 00 FD [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 0B 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 0B 00 21 61 00 58 5F 83 05 18 8B 9D 83 90 00 00 [15:25:15]RAPDU: 58 5F 83 05 18 8B 9D 83 90 00 [15:25:15]wFMCommunicate OK [15:25:15]SAM_PROTO_SignData done [15:25:15]FM_MakeSignedData done [15:25:15]CreateOFDProtocolMessage [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 11 00 00 [15:25:15]Write to MH i2c: E2 08 00 22 61 80 11 00 00 00 00 00 00 FD [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 17 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 17 00 22 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [15:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:25:15]wFMCommunicate OK [15:25:15]CreateOFDProtocolMessage done [15:25:15]OFDSenderStorePacket 166080 [15:25:15]StoreOFDPacket docnum=166080 [15:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B3 38 07 01 29 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6D 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 88 02 00 35 04 06 00 CA 67 1C 38 FF 59 58 5F 83 05 18 8B 9D 83 [15:25:15]CheckFolder [15:25:15]dirname=/storage/ofd_packets [15:25:15]CheckFolder done [15:25:15]ProducePacketName [15:25:15]name=ofd_packets/00166080 [15:25:15]NVStorageSaveData ofd_packets/00166080 [15:25:15]File name is /storage/ofd_packets/00166080 [15:25:15]Write 301 bytes [15:25:15]NVStorageSaveData done [15:25:15]OFDSenderStorePacket done [15:25:15]KKMCreateOFDPacket done [15:25:15]NVStorageSaveData kkm_last_timestamp [15:25:15]File name is /storage/kkm_last_timestamp [15:25:15]Write 4 bytes [15:25:15]NVStorageSaveData done [15:25:15]ExternCall_PrintAddStr [15:25:15]wPrintStart [15:25:15]Write to MH i2c: 01 00 00 23 61 84 [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: 01 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: 01 07 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: 01 07 00 23 61 00 00 00 00 00 FF 0F 99 [15:25:15]RasterBufferAndPrint [15:25:15]line Счет N : (1)220651 [15:25:15]line ИНН: 02508201610067 [15:25:15]line Контрольно-Кассовый Чек [15:25:15]line ПРОДАЖА [15:25:15]line ТРК (МРК, ГНК) : 13 [15:25:15]line Товар: 2710124130 [15:25:15]line Аи-92-К-5 [15:25:15]line 5.240 * 66.90 [15:25:15]line = 350.56 [15:25:15]line НДС 12% НСП 1% [15:25:15]line > о реализуемом товаре [15:25:15]line ОКРУГЛЕНИЕ: -0.56 [15:25:15]line ИТОГО: 350.00 [15:25:15]line Внесено: 350.00 [15:25:15]line СДАЧА: 0.00 [15:25:15]line НСП 1% : 3.10 [15:25:15]line НДС 12% : 37.23 [15:25:15]line Наличными: 350.00 [15:25:15]line Безнал.: 0.00 [15:25:15]line Место: АЗС № 161 "Партнер Нефть" [15:25:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:25:15]line СНО: Общий режим [15:25:15]line Чек 191 21.10.2024 15:25 [15:25:15]line Смена: 535 ФФД: 1.0 [15:25:15]line ЗНМ: 0300000104 [15:25:15]line РНМ: 0000000000091764 [15:25:15]line Версия ККМ: 001 [15:25:15]line ФМ: 0000000000871759 [15:25:15]line ФД: 166080 [15:25:15]line ФПД: 222544203939673 [15:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166080&fm=222544203939673&tin=02508201610067®Number=0000000000091764&sum=35000 [15:25:16]OFD Sender: Processing packet 166080 [packets to send 48, broken 47] [15:25:16]ProducePacketName [15:25:16]name=ofd_packets/00166080 [15:25:16]OFD Sender: To server: pG, [15:25:16]CommunicateWithHost lk.salyk.kg:30040 [15:25:16]ConnectInit lk.salyk.kg [15:25:16]written 0, free lines is 4095 [15:25:16]Connected sock=7 [15: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 35 39 0F 01 00 00 B3 38 07 01 29 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 6D 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 88 02 00 35 04 06 00 CA 67 1C 38 FF 59 58 5F 83 05 18 8B 9D 83 [15: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 35 39 4F 00 00 00 88 7E 47 00 03 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C0 88 02 00 F4 03 04 00 DB 18 16 67 B6 04 01 00 00 42 9B 4C DE 2F 5D 02 1D [15:25:16]CommunicateWithHost err = 0 [15:25:16]CheckOFDResponse [15:25:16]1017 (14) - 77093643461234 [15:25:16]1041 (16) - 0000000000871759 [15:25:16]1040 (4) - 166080 [15:25:16]1012 (4) - 21.10.2024 09:03 [15:25:16]1206 (1) - 0 [15:25:16]OFD Sender: Remove packet 166080 [15:25:16]ProducePacketName [15:25:16]name=ofd_packets/00166080 [15:25:16]NVStorageDeleteData [15:25:16]Write to MH i2c: 01 00 00 4E 61 AF [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 07 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: 01 07 00 4E 61 00 00 00 00 00 DE 0C A0 [15:25:16]RasterBufferAndPrint [15:25:16]line [15:25:16]line [15:25:16]line [15:25:16]line [15:25:16]line [15:25:16]written 0, free lines is 3300 [15:25:16]MH_Cut [15:25:16]Write to MH i2c: D1 01 00 55 61 01 88 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: D1 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: D1 01 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: D1 01 00 55 61 00 87 [15:25:16]Write to MH i2c: 01 00 00 56 61 B7 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:17]OFD Sender: No OFD packet to send [15:25:17]*** Cut start [15:25:17]*** Partial cut [15:25:17]*** CUTSNS_PIN = 1 [15:25:17]*** CUTSNS_PIN = 0 [15:25:17]*** Brake cut motor [15:25:18]Read from MH i2c: 01 [15:25:18]MH_I2C_Read... [15:25:18]*** Stop cut motor [15:25:18]*** Cut end [15:25:18]Read from MH i2c: 01 07 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: 01 07 00 56 61 00 00 00 00 00 FF 0F CC [15:25:18]process_action close_receipt done [15:25:18]requested_data is exist [15:25:18]produce_requested_data [15:25:18]requested_item fm.sn is exist - process it [15:25:18]wFMCommunicate request_size=4 [15:25:18]MH_SAM_APDU [15:25:18]CAPDU: 80 11 00 00 [15:25:18]Write to MH i2c: E2 08 00 57 61 80 11 00 00 00 00 00 00 32 [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:18]Read from MH i2c: E2 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 17 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 17 00 57 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8A [15:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:25:18]wFMCommunicate OK [15:25:18]requested_item fd.num is exist - process it [15:25:18]SAM_PROTO_GetFieldsCounters [15:25:18]wFMCommunicate request_size=4 [15:25:18]MH_SAM_APDU [15:25:18]CAPDU: 80 13 00 00 [15:25:18]Write to MH i2c: E2 08 00 58 61 80 13 00 00 00 00 00 00 35 [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:18]Read from MH i2c: E2 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 62 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 62 00 58 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [15: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:18]wFMCommunicate OK [15:25:18]SAM_PROTO_GetFieldsCounters done [15:25:18]requested_item shift.num is exist - process it [15:25:18]requested_item shift.opened is exist - process it [15:25:18]req_shift_opened [15:25:18]FM_GetShiftState [15:25:18]SAM_PROTO_GetShiftState [15:25:18]wFMCommunicate request_size=4 [15:25:18]MH_SAM_APDU [15:25:18]CAPDU: 80 13 01 00 [15:25:18]Write to MH i2c: E2 08 00 59 61 80 13 01 00 00 00 00 00 37 [15:25:18]Write i2c OK [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 [15:25:18]MH_I2C_Read... [15:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:18]Read from MH i2c: E2 0E 00 [15:25:18]MH_I2C_Read... [15:25:18]Read from MH i2c: E2 0E 00 59 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 40 [15:25:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:25:18]wFMCommunicate OK [15:25:18]SAM_PROTO_GetShiftState done [15:25:18]FM_GetShiftState done [15:25:18]req_shift_opened done [15:25:18]requested_item shift.open_date is exist - process it [15:25:18]req_shift_open_date [15:25:18]req_shift_open_date done [15:25:18]produce_requested_data done [15:25:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166080,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:25:18]process_action_free close_receipt [15:25:18]json_value_free [15:25:18]json_value_free done [15:25:18]process_json_proto returns [15:25:18]Send response to host [15:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166080,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:25:18]free response buf [15:25:18]execute_script done [15:25:18]execute_script returns [15:25:18]free content buf [15:25:18]Sock 6.Close socket [15:25:18]Sock 6.Thread stoped [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:07]OFD Sender: No OFD packet to send [15:26:12]OFD Sender: No OFD packet to send [15:26:17]OFD Sender: No OFD packet to send [15:26:22]OFD Sender: No OFD packet to send [15:26:27]OFD Sender: No OFD packet to send [15:26:32]OFD Sender: No OFD packet to send [15:26:33]accept exits with 5 [15:26:33]New connection [15:26:33]New thread 3066776932 created [15:26:33]Thread 3066920292 joined [15:26:33]Waiting for new connection... [15:26:33] Sock 5.Parse request [15:26:33]Sock 5.Check first char [15:26:33]Sock 5.First char is OK [15:26:33]request: POST /json_proto HTTP/1.0 [15:26:33]Method: POST [15:26:33]URL: /json_proto [15:26:33]Method is POST - this is cgi request [15:26:33]url: /json_proto [15:26:33]query_string will be loaded in cgi processing [15:26:33]execute_cgi json_proto POST (null) [15:26:33]execute_cgi path=json_proto method=POST [15:26:33]POST find Content-Length [15:26:33]Host: 172.17.53.195:8080 [15:26:33]Content-Length: 679 [15:26:33]Content-Type: application/json [15:26:33] [15:26:33]POST finish read [15:26:33]Found Content-Length = 679 [15:26:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:33]execute_script... [15: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)220652", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:33]POST & json_proto [15:26:33]process_json_proto [15:26:33]json parsed OK: [15:26:33]protocol is kg_v1.0 [15:26:33]action value=close_receipt [15:26:33]process_action close_receipt [15:26:33]cmd_close_receipt [15:26:33]MH_GetDate [15:26:33]Write to MH i2c: F0 00 00 5A 61 AA [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: F0 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: F0 09 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: F0 09 00 5A 61 00 BB 72 16 67 21 48 4A 65 75 [15:26:33]GetLastDocTimeStamp 1729524333 [15:26:33]current date 1729524411 [15:26:33]FM_GetShiftState [15:26:33]SAM_PROTO_GetShiftState [15:26:33]wFMCommunicate request_size=4 [15:26:33]MH_SAM_APDU [15:26:33]CAPDU: 80 13 01 00 [15:26:33]Write to MH i2c: E2 08 00 5B 61 80 13 01 00 00 00 00 00 39 [15:26:33]Write i2c OK [15:26:33]MH_I2C_Read... [15:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:33]Read from MH i2c: E2 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0E 00 [15:26:33]MH_I2C_Read... [15:26:33]Read from MH i2c: E2 0E 00 5B 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 42 [15:26:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:26:33]wFMCommunicate OK [15:26:33]SAM_PROTO_GetShiftState done [15:26:33]FM_GetShiftState done [15:26:33]opened in 1729470944 [15:26:33]opened+sec_in_day 1729557344 [15:26:33]quantity*price = 120015 [15:26:33]sum+1 = 120016 [15:26:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 192 21.10.2024 15:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166081 ФПД: 45992495865097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152651&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166081&fm=45992495865097&tin=02508201610067®Number=0000000000091764&sum=120000 [15:26:34]StoreToDocumentArchive [15:26:34]shift 535 fd 166081 [15:26:34]save to /storage/0535/doc_00166081 [15:26:34]save last doc name /storage/0535/doc_00166081 to /storage/kkm_last_doc_name [15:26:34]save OK [15:26:34]Clear old archive folders... [15:26:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:26:34]tlvbuf is 014B81F0 [15:26:34]SAM_PROTO_ClearQueue [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 09 00 00 [15:26:34]Write to MH i2c: E2 08 00 68 61 80 09 00 00 00 00 00 00 3B [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 68 61 00 90 00 3D [15:26:34]RAPDU: 90 00 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_ClearQueue done [15:26:34]KKMCreateOFDPacket [15:26:34]OFDProtocolAddRootSTLVToBuf [15:26:34]FM_MakeSignedData [15:26:34]FM_MakeSignedData [15:26:34]SAM_PROTO_SignData [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 0D 01 02 [15:26:34]Write to MH i2c: E2 08 00 69 61 80 0D 01 02 00 00 00 00 43 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 69 61 00 90 00 3E [15:26:34]RAPDU: 90 00 [15:26:34]wFMCommunicate OK [15:26:34]wFMCommunicate request_size=255 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 BB 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 88 02 00 35 04 06 00 29 D4 76 60 [15:26:34]Write to MH i2c: E2 02 01 6A 61 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 BB 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 88 02 00 35 04 06 00 29 D4 76 60 00 00 DE [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 6A 61 00 90 00 3F [15:26:34]RAPDU: 90 00 [15:26:34]wFMCommunicate OK [15:26:34]wFMCommunicate request_size=7 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 0D 02 02 02 DD 09 [15:26:34]Write to MH i2c: E2 0A 00 6B 61 80 0D 02 02 02 00 DD 09 00 00 30 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 03 00 6B 61 00 90 00 40 [15:26:34]RAPDU: 90 00 [15:26:34]wFMCommunicate OK [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 0D 03 02 [15:26:34]Write to MH i2c: E2 08 00 6C 61 80 0D 03 02 00 00 00 00 48 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0B 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 0B 00 6C 61 00 EF CF B3 52 86 0C 70 9C 90 00 AA [15:26:34]RAPDU: EF CF B3 52 86 0C 70 9C 90 00 [15:26:34]wFMCommunicate OK [15:26:34]SAM_PROTO_SignData done [15:26:34]FM_MakeSignedData done [15:26:34]CreateOFDProtocolMessage [15:26:34]wFMCommunicate request_size=4 [15:26:34]MH_SAM_APDU [15:26:34]CAPDU: 80 11 00 00 [15:26:34]Write to MH i2c: E2 08 00 6D 61 80 11 00 00 00 00 00 00 48 [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:34]Read from MH i2c: E2 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: E2 17 00 6D 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [15:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:26:34]wFMCommunicate OK [15:26:34]CreateOFDProtocolMessage done [15:26:34]OFDSenderStorePacket 166081 [15:26:34]StoreOFDPacket docnum=166081 [15:26:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 12 7E 04 01 3D 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 BB 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 88 02 00 35 04 06 00 29 D4 76 60 DD 09 EF CF B3 52 86 0C 70 9C [15:26:34]CheckFolder [15:26:34]dirname=/storage/ofd_packets [15:26:34]CheckFolder done [15:26:34]ProducePacketName [15:26:34]name=ofd_packets/00166081 [15:26:34]NVStorageSaveData ofd_packets/00166081 [15:26:34]File name is /storage/ofd_packets/00166081 [15:26:34]Write 298 bytes [15:26:34]NVStorageSaveData done [15:26:34]OFDSenderStorePacket done [15:26:34]KKMCreateOFDPacket done [15:26:34]NVStorageSaveData kkm_last_timestamp [15:26:34]File name is /storage/kkm_last_timestamp [15:26:34]Write 4 bytes [15:26:34]NVStorageSaveData done [15:26:34]ExternCall_PrintAddStr [15:26:34]wPrintStart [15:26:34]Write to MH i2c: 01 00 00 6E 61 CF [15:26:34]Write i2c OK [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 [15:26:34]MH_I2C_Read... [15:26:34]Read from MH i2c: 01 07 00 6E 61 00 00 00 00 00 FF 0F E4 [15:26:34]RasterBufferAndPrint [15:26:34]line Счет N : (1)220652 [15:26:34]line ИНН: 02508201610067 [15:26:34]line Контрольно-Кассовый Чек [15:26:34]line ПРОДАЖА [15:26:34]line ТРК (МРК, ГНК) : 21 [15:26:34]line Товар: 2710194210 [15:26:34]line ДТ-К-5 [15:26:34]line 15.750 * 76.20 [15:26:34]line = 1200.15 [15:26:34]line НДС 12% НСП 1% [15:26:34]line > о реализуемом товаре [15:26:34]line ОКРУГЛЕНИЕ: -0.15 [15:26:34]line ИТОГО: 1200.00 [15:26:34]line Внесено: 1200.00 [15:26:34]line СДАЧА: 0.00 [15:26:34]line НСП 1% : 10.62 [15:26:34]line НДС 12% : 127.45 [15:26:34]line Наличными: 1200.00 [15:26:34]line Безнал.: 0.00 [15:26:34]line Место: АЗС № 161 "Партнер Нефть" [15:26:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:26:34]line СНО: Общий режим [15:26:34]line Чек 192 21.10.2024 15:26 [15:26:34]line Смена: 535 ФФД: 1.0 [15:26:34]line ЗНМ: 0300000104 [15:26:34]line РНМ: 0000000000091764 [15:26:34]line Версия ККМ: 001 [15:26:34]line ФМ: 0000000000871759 [15:26:34]line ФД: 166081 [15:26:34]line ФПД: 45992495865097 [15:26:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152651&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166081&fm=45992495865097&tin=02508201610067®Number=0000000000091764&sum=120000 [15:26:35]OFD Sender: Processing packet 166081 [packets to send 48, broken 47] [15:26:35]ProducePacketName [15:26:35]name=ofd_packets/00166081 [15:26:35]OFD Sender: To server: pG, [15:26:35]CommunicateWithHost lk.salyk.kg:30040 [15:26:35]ConnectInit lk.salyk.kg [15:26:35]written 0, free lines is 4095 [15:26:35]Connected sock=7 [15: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 35 39 0C 01 00 00 12 7E 04 01 3D 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 BB 72 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 88 02 00 35 04 06 00 29 D4 76 60 DD 09 EF CF B3 52 86 0C 70 9C [15: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 35 39 4F 00 00 00 DC 19 47 00 2F 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C1 88 02 00 F4 03 04 00 2A 19 16 67 B6 04 01 00 00 FB 0B 6A A5 74 C8 68 61 [15:26:35]CommunicateWithHost err = 0 [15:26:35]CheckOFDResponse [15:26:35]1017 (14) - 77093643461234 [15:26:35]1041 (16) - 0000000000871759 [15:26:35]1040 (4) - 166081 [15:26:35]1012 (4) - 21.10.2024 09:04 [15:26:35]1206 (1) - 0 [15:26:35]OFD Sender: Remove packet 166081 [15:26:35]ProducePacketName [15:26:35]name=ofd_packets/00166081 [15:26:35]NVStorageDeleteData [15:26:35]Write to MH i2c: 01 00 00 99 61 FA [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: 01 07 00 99 61 00 00 00 00 00 D4 0C E1 [15:26:35]RasterBufferAndPrint [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]line [15:26:35]written 0, free lines is 3289 [15:26:35]MH_Cut [15:26:35]Write to MH i2c: D1 01 00 A0 61 01 D3 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 01 00 [15:26:35]MH_I2C_Read... [15:26:35]Read from MH i2c: D1 01 00 A0 61 00 D2 [15:26:35]Write to MH i2c: 01 00 00 A1 61 02 [15:26:35]Write i2c OK [15:26:35]MH_I2C_Read... [15:26:35]OFD Sender: No OFD packet to send [15:26:36]*** Cut start [15:26:36]*** Partial cut [15:26:36]*** CUTSNS_PIN = 1 [15:26:36]*** CUTSNS_PIN = 0 [15:26:36]*** Brake cut motor [15:26:36]Read from MH i2c: 01 [15:26:36]MH_I2C_Read... [15:26:36]*** Stop cut motor [15:26:36]*** Cut end [15:26:36]Read from MH i2c: 01 07 00 [15:26:36]MH_I2C_Read... [15:26:36]Read from MH i2c: 01 07 00 A1 61 00 00 00 00 00 FF 0F 17 [15:26:36]process_action close_receipt done [15:26:36]requested_data is exist [15:26:36]produce_requested_data [15:26:36]requested_item fm.sn is exist - process it [15:26:36]wFMCommunicate request_size=4 [15:26:36]MH_SAM_APDU [15:26:36]CAPDU: 80 11 00 00 [15:26:36]Write to MH i2c: E2 08 00 A2 61 80 11 00 00 00 00 00 00 7D [15:26:36]Write i2c OK [15:26:36]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 17 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 17 00 A2 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D5 [15:26:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:26:37]wFMCommunicate OK [15:26:37]requested_item fd.num is exist - process it [15:26:37]SAM_PROTO_GetFieldsCounters [15:26:37]wFMCommunicate request_size=4 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 13 00 00 [15:26:37]Write to MH i2c: E2 08 00 A3 61 80 13 00 00 00 00 00 00 80 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 62 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 62 00 A3 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [15: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:37]wFMCommunicate OK [15:26:37]SAM_PROTO_GetFieldsCounters done [15:26:37]requested_item shift.num is exist - process it [15:26:37]requested_item shift.opened is exist - process it [15:26:37]req_shift_opened [15:26:37]FM_GetShiftState [15:26:37]SAM_PROTO_GetShiftState [15:26:37]wFMCommunicate request_size=4 [15:26:37]MH_SAM_APDU [15:26:37]CAPDU: 80 13 01 00 [15:26:37]Write to MH i2c: E2 08 00 A4 61 80 13 01 00 00 00 00 00 82 [15:26:37]Write i2c OK [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 [15:26:37]MH_I2C_Read... [15:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:37]Read from MH i2c: E2 0E 00 [15:26:37]MH_I2C_Read... [15:26:37]Read from MH i2c: E2 0E 00 A4 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8B [15:26:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:26:37]wFMCommunicate OK [15:26:37]SAM_PROTO_GetShiftState done [15:26:37]FM_GetShiftState done [15:26:37]req_shift_opened done [15:26:37]requested_item shift.open_date is exist - process it [15:26:37]req_shift_open_date [15:26:37]req_shift_open_date done [15:26:37]produce_requested_data done [15:26:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166081,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:26:37]process_action_free close_receipt [15:26:37]json_value_free [15:26:37]json_value_free done [15:26:37]process_json_proto returns [15:26:37]Send response to host [15:26:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166081,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:26:37]free response buf [15:26:37]execute_script done [15:26:37]execute_script returns [15:26:37]free content buf [15:26:37]Sock 5.Close socket [15:26:37]Sock 5.Thread stoped [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:30]accept exits with 6 [15:29:30]New connection [15:29:30]New thread 3066920292 created [15:29:30]Thread 3066776932 joined [15:29:30]Waiting for new connection... [15:29:30] Sock 6.Parse request [15:29:30]Sock 6.Check first char [15:29:30]Sock 6.First char is OK [15:29:30]request: POST /json_proto HTTP/1.0 [15:29:30]Method: POST [15:29:30]URL: /json_proto [15:29:30]Method is POST - this is cgi request [15:29:30]url: /json_proto [15:29:30]query_string will be loaded in cgi processing [15:29:30]execute_cgi json_proto POST (null) [15:29:30]execute_cgi path=json_proto method=POST [15:29:30]POST find Content-Length [15:29:30]Host: 172.17.53.195:8080 [15:29:30]Content-Length: 679 [15:29:30]Content-Type: application/json [15:29:30] [15:29:30]POST finish read [15:29:30]Found Content-Length = 679 [15:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:30]execute_script... [15:29: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)220653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:30]POST & json_proto [15:29:30]process_json_proto [15:29:30]json parsed OK: [15:29:30]protocol is kg_v1.0 [15:29:30]action value=close_receipt [15:29:30]process_action close_receipt [15:29:30]cmd_close_receipt [15:29:30]MH_GetDate [15:29:30]Write to MH i2c: F0 00 00 A5 61 F5 [15:29:30]Write i2c OK [15:29:30]MH_I2C_Read... [15:29:30]Read from MH i2c: F0 [15:29:30]MH_I2C_Read... [15:29:30]Read from MH i2c: F0 09 00 [15:29:30]MH_I2C_Read... [15:29:30]Read from MH i2c: F0 09 00 A5 61 00 6D 73 16 67 21 48 4A 65 73 [15:29:30]GetLastDocTimeStamp 1729524411 [15:29:30]current date 1729524589 [15:29:30]FM_GetShiftState [15:29:30]SAM_PROTO_GetShiftState [15:29:30]wFMCommunicate request_size=4 [15:29:30]MH_SAM_APDU [15:29:30]CAPDU: 80 13 01 00 [15:29:30]Write to MH i2c: E2 08 00 A6 61 80 13 01 00 00 00 00 00 84 [15:29:30]Write i2c OK [15:29:30]MH_I2C_Read... [15:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:30]Read from MH i2c: E2 [15:29:30]MH_I2C_Read... [15:29:30]Read from MH i2c: E2 0E 00 [15:29:30]MH_I2C_Read... [15:29:30]Read from MH i2c: E2 0E 00 A6 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8D [15:29:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:29:30]wFMCommunicate OK [15:29:30]SAM_PROTO_GetShiftState done [15:29:30]FM_GetShiftState done [15:29:30]opened in 1729470944 [15:29:30]opened+sec_in_day 1729557344 [15:29:30]quantity*price = 199948 [15:29:30]sum+1 = 199950 [15:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 193 21.10.2024 15:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166082 ФПД: 80868044689622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152949&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166082&fm=80868044689622&tin=02508201610067®Number=0000000000091764&sum=199900 [15:29:31]StoreToDocumentArchive [15:29:31]shift 535 fd 166082 [15:29:31]save to /storage/0535/doc_00166082 [15:29:31]save last doc name /storage/0535/doc_00166082 to /storage/kkm_last_doc_name [15:29:31]save OK [15:29:31]Clear old archive folders... [15:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:29:31]tlvbuf is 014ED5D0 [15:29:31]SAM_PROTO_ClearQueue [15:29:31]wFMCommunicate request_size=4 [15:29:31]MH_SAM_APDU [15:29:31]CAPDU: 80 09 00 00 [15:29:31]Write to MH i2c: E2 08 00 B3 61 80 09 00 00 00 00 00 00 86 [15:29:31]Write i2c OK [15:29:31]MH_I2C_Read... [15:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:31]Read from MH i2c: E2 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 B3 61 00 90 00 88 [15:29:31]RAPDU: 90 00 [15:29:31]wFMCommunicate OK [15:29:31]SAM_PROTO_ClearQueue done [15:29:31]KKMCreateOFDPacket [15:29:31]OFDProtocolAddRootSTLVToBuf [15:29:31]FM_MakeSignedData [15:29:31]FM_MakeSignedData [15:29:31]SAM_PROTO_SignData [15:29:31]wFMCommunicate request_size=4 [15:29:31]MH_SAM_APDU [15:29:31]CAPDU: 80 0D 01 02 [15:29:31]Write to MH i2c: E2 08 00 B4 61 80 0D 01 02 00 00 00 00 8E [15:29:31]Write i2c OK [15:29:31]MH_I2C_Read... [15:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:31]Read from MH i2c: E2 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 B4 61 00 90 00 89 [15:29:31]RAPDU: 90 00 [15:29:31]wFMCommunicate OK [15:29:31]wFMCommunicate request_size=255 [15:29:31]MH_SAM_APDU [15:29:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 6D 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 88 02 00 35 04 06 00 49 8C 8F 13 [15:29:31]Write to MH i2c: E2 02 01 B5 61 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 6D 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 88 02 00 35 04 06 00 49 8C 8F 13 00 00 D8 [15:29:31]Write i2c OK [15:29:31]MH_I2C_Read... [15:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:31]Read from MH i2c: E2 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 B5 61 00 90 00 8A [15:29:31]RAPDU: 90 00 [15:29:31]wFMCommunicate OK [15:29:31]wFMCommunicate request_size=7 [15:29:31]MH_SAM_APDU [15:29:31]CAPDU: 80 0D 02 02 02 D0 D6 [15:29:31]Write to MH i2c: E2 0A 00 B6 61 80 0D 02 02 02 00 D0 D6 00 00 3B [15:29:31]Write i2c OK [15:29:31]MH_I2C_Read... [15:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:31]Read from MH i2c: E2 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 03 00 B6 61 00 90 00 8B [15:29:31]RAPDU: 90 00 [15:29:31]wFMCommunicate OK [15:29:31]wFMCommunicate request_size=4 [15:29:31]MH_SAM_APDU [15:29:31]CAPDU: 80 0D 03 02 [15:29:31]Write to MH i2c: E2 08 00 B7 61 80 0D 03 02 00 00 00 00 93 [15:29:31]Write i2c OK [15:29:31]MH_I2C_Read... [15:29:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:31]Read from MH i2c: E2 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 0B 00 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 0B 00 B7 61 00 3E 04 69 78 52 D2 46 FC 90 00 1D [15:29:31]RAPDU: 3E 04 69 78 52 D2 46 FC 90 00 [15:29:31]wFMCommunicate OK [15:29:31]SAM_PROTO_SignData done [15:29:31]FM_MakeSignedData done [15:29:31]CreateOFDProtocolMessage [15:29:31]wFMCommunicate request_size=4 [15:29:31]MH_SAM_APDU [15:29:31]CAPDU: 80 11 00 00 [15:29:31]Write to MH i2c: E2 08 00 B8 61 80 11 00 00 00 00 00 00 93 [15:29:31]Write i2c OK [15:29:31]MH_I2C_Read... [15:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:31]Read from MH i2c: E2 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 17 00 [15:29:31]MH_I2C_Read... [15:29:31]Read from MH i2c: E2 17 00 B8 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [15:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:29:32]wFMCommunicate OK [15:29:32]CreateOFDProtocolMessage done [15:29:32]OFDSenderStorePacket 166082 [15:29:32]StoreOFDPacket docnum=166082 [15:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A3 0F 04 01 05 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 6D 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 88 02 00 35 04 06 00 49 8C 8F 13 D0 D6 3E 04 69 78 52 D2 46 FC [15:29:32]CheckFolder [15:29:32]dirname=/storage/ofd_packets [15:29:32]CheckFolder done [15:29:32]ProducePacketName [15:29:32]name=ofd_packets/00166082 [15:29:32]NVStorageSaveData ofd_packets/00166082 [15:29:32]File name is /storage/ofd_packets/00166082 [15:29:32]Write 298 bytes [15:29:32]NVStorageSaveData done [15:29:32]OFDSenderStorePacket done [15:29:32]KKMCreateOFDPacket done [15:29:32]NVStorageSaveData kkm_last_timestamp [15:29:32]File name is /storage/kkm_last_timestamp [15:29:32]Write 4 bytes [15:29:32]NVStorageSaveData done [15:29:32]ExternCall_PrintAddStr [15:29:32]wPrintStart [15:29:32]Write to MH i2c: 01 00 00 B9 61 1A [15:29:32]Write i2c OK [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: 01 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: 01 07 00 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: 01 07 00 B9 61 00 00 00 00 00 FF 0F 2F [15:29:32]RasterBufferAndPrint [15:29:32]line Счет N : (1)220653 [15:29:32]line ИНН: 02508201610067 [15:29:32]line Контрольно-Кассовый Чек [15:29:32]line ПРОДАЖА [15:29:32]line ТРК (МРК, ГНК) : 41 [15:29:32]line Товар: 2710194210 [15:29:32]line ДТ-К-5 [15:29:32]line 26.240 * 76.20 [15:29:32]line = 1999.49 [15:29:32]line НДС 12% НСП 1% [15:29:32]line > о реализуемом товаре [15:29:32]line ОКРУГЛЕНИЕ: -0.49 [15:29:32]line ИТОГО: 1999.00 [15:29:32]line Внесено: 2000.00 [15:29:32]line СДАЧА: 1.00 [15:29:32]line НСП 1% : 17.69 [15:29:32]line НДС 12% : 212.33 [15:29:32]line Наличными: 1999.00 [15:29:32]line Безнал.: 0.00 [15:29:32]line Место: АЗС № 161 "Партнер Нефть" [15:29:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:29:32]line СНО: Общий режим [15:29:32]line Чек 193 21.10.2024 15:29 [15:29:32]line Смена: 535 ФФД: 1.0 [15:29:32]line ЗНМ: 0300000104 [15:29:32]line РНМ: 0000000000091764 [15:29:32]line Версия ККМ: 001 [15:29:32]line ФМ: 0000000000871759 [15:29:32]line ФД: 166082 [15:29:32]line ФПД: 80868044689622 [15:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T152949&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166082&fm=80868044689622&tin=02508201610067®Number=0000000000091764&sum=199900 [15:29:32]OFD Sender: Processing packet 166082 [packets to send 48, broken 47] [15:29:32]ProducePacketName [15:29:32]name=ofd_packets/00166082 [15:29:32]OFD Sender: To server: pG, [15:29:32]CommunicateWithHost lk.salyk.kg:30040 [15:29:32]ConnectInit lk.salyk.kg [15:29:32]written 0, free lines is 4095 [15:29:32]Connected sock=7 [15:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 A3 0F 04 01 05 65 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 6D 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 88 02 00 35 04 06 00 49 8C 8F 13 D0 D6 3E 04 69 78 52 D2 46 FC [15:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4F C4 47 00 AA 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C2 88 02 00 F4 03 04 00 DB 19 16 67 B6 04 01 00 00 9B 0E 9C 3D 7E DB 61 17 [15:29:32]CommunicateWithHost err = 0 [15:29:32]CheckOFDResponse [15:29:32]1017 (14) - 77093643461234 [15:29:32]1041 (16) - 0000000000871759 [15:29:32]1040 (4) - 166082 [15:29:32]1012 (4) - 21.10.2024 09:07 [15:29:32]1206 (1) - 0 [15:29:32]OFD Sender: Remove packet 166082 [15:29:32]ProducePacketName [15:29:32]name=ofd_packets/00166082 [15:29:32]NVStorageDeleteData [15:29:32]Write to MH i2c: 01 00 00 E4 61 45 [15:29:32]Write i2c OK [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: 01 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: 01 07 00 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: 01 07 00 E4 61 00 00 00 00 00 DC 0C 34 [15:29:32]RasterBufferAndPrint [15:29:32]line [15:29:32]line [15:29:32]line [15:29:32]line [15:29:32]line [15:29:32]written 0, free lines is 3299 [15:29:32]MH_Cut [15:29:32]Write to MH i2c: D1 01 00 EB 61 01 1E [15:29:32]Write i2c OK [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: D1 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: D1 01 00 [15:29:32]MH_I2C_Read... [15:29:32]Read from MH i2c: D1 01 00 EB 61 00 1D [15:29:32]Write to MH i2c: 01 00 00 EC 61 4D [15:29:32]Write i2c OK [15:29:32]MH_I2C_Read... [15:29:33]OFD Sender: No OFD packet to send [15:29:33]*** Cut start [15:29:33]*** Partial cut [15:29:33]*** CUTSNS_PIN = 1 [15:29:33]*** CUTSNS_PIN = 0 [15:29:33]*** Brake cut motor [15:29:34]Read from MH i2c: 01 [15:29:34]MH_I2C_Read... [15:29:34]*** Stop cut motor [15:29:34]*** Cut end [15:29:34]Read from MH i2c: 01 07 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: 01 07 00 EC 61 00 00 00 00 00 FF 0F 62 [15:29:34]process_action close_receipt done [15:29:34]requested_data is exist [15:29:34]produce_requested_data [15:29:34]requested_item fm.sn is exist - process it [15:29:34]wFMCommunicate request_size=4 [15:29:34]MH_SAM_APDU [15:29:34]CAPDU: 80 11 00 00 [15:29:34]Write to MH i2c: E2 08 00 ED 61 80 11 00 00 00 00 00 00 C8 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 17 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 17 00 ED 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 20 [15:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:29:34]wFMCommunicate OK [15:29:34]requested_item fd.num is exist - process it [15:29:34]SAM_PROTO_GetFieldsCounters [15:29:34]wFMCommunicate request_size=4 [15:29:34]MH_SAM_APDU [15:29:34]CAPDU: 80 13 00 00 [15:29:34]Write to MH i2c: E2 08 00 EE 61 80 13 00 00 00 00 00 00 CB [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 62 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 62 00 EE 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [15:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:34]wFMCommunicate OK [15:29:34]SAM_PROTO_GetFieldsCounters done [15:29:34]requested_item shift.num is exist - process it [15:29:34]requested_item shift.opened is exist - process it [15:29:34]req_shift_opened [15:29:34]FM_GetShiftState [15:29:34]SAM_PROTO_GetShiftState [15:29:34]wFMCommunicate request_size=4 [15:29:34]MH_SAM_APDU [15:29:34]CAPDU: 80 13 01 00 [15:29:34]Write to MH i2c: E2 08 00 EF 61 80 13 01 00 00 00 00 00 CD [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0E 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0E 00 EF 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D6 [15:29:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:29:34]wFMCommunicate OK [15:29:34]SAM_PROTO_GetShiftState done [15:29:34]FM_GetShiftState done [15:29:34]req_shift_opened done [15:29:34]requested_item shift.open_date is exist - process it [15:29:34]req_shift_open_date [15:29:34]req_shift_open_date done [15:29:34]produce_requested_data done [15:29:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166082,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:29:34]process_action_free close_receipt [15:29:34]json_value_free [15:29:34]json_value_free done [15:29:34]process_json_proto returns [15:29:34]Send response to host [15:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166082,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:29:34]free response buf [15:29:34]execute_script done [15:29:34]execute_script returns [15:29:34]free content buf [15:29:34]Sock 6.Close socket [15:29:34]Sock 6.Thread stoped [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:12]accept exits with 5 [15:31:12]New connection [15:31:12]New thread 3066776932 created [15:31:12]Thread 3066920292 joined [15:31:12]Waiting for new connection... [15:31:12] Sock 5.Parse request [15:31:12]Sock 5.Check first char [15:31:12]Sock 5.First char is OK [15:31:12]request: POST /json_proto HTTP/1.0 [15:31:12]Method: POST [15:31:12]URL: /json_proto [15:31:12]Method is POST - this is cgi request [15:31:12]url: /json_proto [15:31:12]query_string will be loaded in cgi processing [15:31:12]execute_cgi json_proto POST (null) [15:31:12]execute_cgi path=json_proto method=POST [15:31:12]POST find Content-Length [15:31:12]Host: 172.17.53.195:8080 [15:31:12]Content-Length: 679 [15:31:12]Content-Type: application/json [15:31:12] [15:31:12]POST finish read [15:31:12]Found Content-Length = 679 [15:31:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:12]execute_script... [15:31: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)220654", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:12]POST & json_proto [15:31:12]process_json_proto [15:31:12]json parsed OK: [15:31:12]protocol is kg_v1.0 [15:31:12]action value=close_receipt [15:31:12]process_action close_receipt [15:31:12]cmd_close_receipt [15:31:12]MH_GetDate [15:31:12]Write to MH i2c: F0 00 00 F0 61 40 [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: F0 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: F0 09 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: F0 09 00 F0 61 00 D3 73 16 67 21 48 4A 65 24 [15:31:12]GetLastDocTimeStamp 1729524589 [15:31:12]current date 1729524691 [15:31:12]FM_GetShiftState [15:31:12]SAM_PROTO_GetShiftState [15:31:12]wFMCommunicate request_size=4 [15:31:12]MH_SAM_APDU [15:31:12]CAPDU: 80 13 01 00 [15:31:12]Write to MH i2c: E2 08 00 F1 61 80 13 01 00 00 00 00 00 CF [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 0E 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 0E 00 F1 61 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D8 [15:31:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:31:12]wFMCommunicate OK [15:31:12]SAM_PROTO_GetShiftState done [15:31:12]FM_GetShiftState done [15:31:12]opened in 1729470944 [15:31:12]opened+sec_in_day 1729557344 [15:31:12]quantity*price = 120015 [15:31:12]sum+1 = 120016 [15:31:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 194 21.10.2024 15:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166083 ФПД: 124556552324151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153131&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166083&fm=124556552324151&tin=02508201610067®Number=0000000000091764&sum=120000 [15:31:13]StoreToDocumentArchive [15:31:13]shift 535 fd 166083 [15:31:13]save to /storage/0535/doc_00166083 [15:31:13]save last doc name /storage/0535/doc_00166083 to /storage/kkm_last_doc_name [15:31:13]save OK [15:31:13]Clear old archive folders... [15:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:13]tlvbuf is 01B4DA20 [15:31:13]SAM_PROTO_ClearQueue [15:31:13]wFMCommunicate request_size=4 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 09 00 00 [15:31:13]Write to MH i2c: E2 08 00 FE 61 80 09 00 00 00 00 00 00 D1 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 FE 61 00 90 00 D3 [15:31:13]RAPDU: 90 00 [15:31:13]wFMCommunicate OK [15:31:13]SAM_PROTO_ClearQueue done [15:31:13]KKMCreateOFDPacket [15:31:13]OFDProtocolAddRootSTLVToBuf [15:31:13]FM_MakeSignedData [15:31:13]FM_MakeSignedData [15:31:13]SAM_PROTO_SignData [15:31:13]wFMCommunicate request_size=4 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 0D 01 02 [15:31:13]Write to MH i2c: E2 08 00 FF 61 80 0D 01 02 00 00 00 00 D9 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 FF 61 00 90 00 D4 [15:31:13]RAPDU: 90 00 [15:31:13]wFMCommunicate OK [15:31:13]wFMCommunicate request_size=255 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 D3 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 88 02 00 35 04 06 00 71 48 95 0E [15:31:13]Write to MH i2c: E2 02 01 00 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 D3 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 88 02 00 35 04 06 00 71 48 95 0E 00 00 1B [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 00 62 00 90 00 D6 [15:31:13]RAPDU: 90 00 [15:31:13]wFMCommunicate OK [15:31:13]wFMCommunicate request_size=7 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 0D 02 02 02 44 37 [15:31:13]Write to MH i2c: E2 0A 00 01 62 80 0D 02 02 02 00 44 37 00 00 5C [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 03 00 01 62 00 90 00 D7 [15:31:13]RAPDU: 90 00 [15:31:13]wFMCommunicate OK [15:31:13]wFMCommunicate request_size=4 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 0D 03 02 [15:31:13]Write to MH i2c: E2 08 00 02 62 80 0D 03 02 00 00 00 00 DF [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 0B 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 0B 00 02 62 00 B1 BC B1 C4 8F 31 E6 10 90 00 78 [15:31:13]RAPDU: B1 BC B1 C4 8F 31 E6 10 90 00 [15:31:13]wFMCommunicate OK [15:31:13]SAM_PROTO_SignData done [15:31:13]FM_MakeSignedData done [15:31:13]CreateOFDProtocolMessage [15:31:13]wFMCommunicate request_size=4 [15:31:13]MH_SAM_APDU [15:31:13]CAPDU: 80 11 00 00 [15:31:13]Write to MH i2c: E2 08 00 03 62 80 11 00 00 00 00 00 00 DF [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:13]Read from MH i2c: E2 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 17 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: E2 17 00 03 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [15:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:13]wFMCommunicate OK [15:31:13]CreateOFDProtocolMessage done [15:31:13]OFDSenderStorePacket 166083 [15:31:13]StoreOFDPacket docnum=166083 [15:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B6 2F 04 01 86 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 D3 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 88 02 00 35 04 06 00 71 48 95 0E 44 37 B1 BC B1 C4 8F 31 E6 10 [15:31:13]CheckFolder [15:31:13]dirname=/storage/ofd_packets [15:31:13]CheckFolder done [15:31:13]ProducePacketName [15:31:13]name=ofd_packets/00166083 [15:31:13]NVStorageSaveData ofd_packets/00166083 [15:31:13]File name is /storage/ofd_packets/00166083 [15:31:13]Write 298 bytes [15:31:13]NVStorageSaveData done [15:31:13]OFDSenderStorePacket done [15:31:13]KKMCreateOFDPacket done [15:31:13]NVStorageSaveData kkm_last_timestamp [15:31:13]File name is /storage/kkm_last_timestamp [15:31:13]Write 4 bytes [15:31:13]NVStorageSaveData done [15:31:13]ExternCall_PrintAddStr [15:31:13]wPrintStart [15:31:13]Write to MH i2c: 01 00 00 04 62 66 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: 01 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: 01 07 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: 01 07 00 04 62 00 00 00 00 00 FF 0F 7B [15:31:13]RasterBufferAndPrint [15:31:13]line Счет N : (1)220654 [15:31:13]line ИНН: 02508201610067 [15:31:13]line Контрольно-Кассовый Чек [15:31:13]line ПРОДАЖА [15:31:13]line ТРК (МРК, ГНК) : 21 [15:31:13]line Товар: 2710194210 [15:31:13]line ДТ-К-5 [15:31:13]line 15.750 * 76.20 [15:31:13]line = 1200.15 [15:31:13]line НДС 12% НСП 1% [15:31:13]line > о реализуемом товаре [15:31:13]line ОКРУГЛЕНИЕ: -0.15 [15:31:13]line ИТОГО: 1200.00 [15:31:13]line Внесено: 1200.00 [15:31:13]line СДАЧА: 0.00 [15:31:13]line НСП 1% : 10.62 [15:31:13]line НДС 12% : 127.45 [15:31:13]line Наличными: 1200.00 [15:31:13]line Безнал.: 0.00 [15:31:13]line Место: АЗС № 161 "Партнер Нефть" [15:31:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:31:13]line СНО: Общий режим [15:31:13]line Чек 194 21.10.2024 15:31 [15:31:13]line Смена: 535 ФФД: 1.0 [15:31:13]line ЗНМ: 0300000104 [15:31:13]line РНМ: 0000000000091764 [15:31:13]line Версия ККМ: 001 [15:31:13]line ФМ: 0000000000871759 [15:31:13]line ФД: 166083 [15:31:13]line ФПД: 124556552324151 [15:31:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153131&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166083&fm=124556552324151&tin=02508201610067®Number=0000000000091764&sum=120000 [15:31:14]OFD Sender: Processing packet 166083 [packets to send 48, broken 47] [15:31:14]ProducePacketName [15:31:14]name=ofd_packets/00166083 [15:31:14]OFD Sender: To server: pG, [15:31:14]CommunicateWithHost lk.salyk.kg:30040 [15:31:14]ConnectInit lk.salyk.kg [15:31:14]written 0, free lines is 4095 [15:31:14]Connected sock=7 [15:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B6 2F 04 01 86 5F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 D3 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 88 02 00 35 04 06 00 71 48 95 0E 44 37 B1 BC B1 C4 8F 31 E6 10 [15:31:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F6 EB 47 00 41 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C3 88 02 00 F4 03 04 00 41 1A 16 67 B6 04 01 00 00 46 31 25 B5 36 C9 6D B5 [15:31:14]CommunicateWithHost err = 0 [15:31:14]CheckOFDResponse [15:31:14]1017 (14) - 77093643461234 [15:31:14]1041 (16) - 0000000000871759 [15:31:14]1040 (4) - 166083 [15:31:14]1012 (4) - 21.10.2024 09:09 [15:31:14]1206 (1) - 0 [15:31:14]OFD Sender: Remove packet 166083 [15:31:14]ProducePacketName [15:31:14]name=ofd_packets/00166083 [15:31:14]NVStorageDeleteData [15:31:14]Write to MH i2c: 01 00 00 2F 62 91 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: 01 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: 01 07 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: 01 07 00 2F 62 00 00 00 00 00 CE 0C 72 [15:31:14]RasterBufferAndPrint [15:31:14]line [15:31:14]line [15:31:14]line [15:31:14]line [15:31:14]line [15:31:14]written 0, free lines is 3284 [15:31:14]MH_Cut [15:31:14]Write to MH i2c: D1 01 00 36 62 01 6A [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: D1 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: D1 01 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: D1 01 00 36 62 00 69 [15:31:14]Write to MH i2c: 01 00 00 37 62 99 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:15]OFD Sender: No OFD packet to send [15:31:15]*** Cut start [15:31:15]*** Partial cut [15:31:15]*** CUTSNS_PIN = 1 [15:31:15]*** CUTSNS_PIN = 0 [15:31:15]*** Brake cut motor [15:31:16]Read from MH i2c: 01 [15:31:16]MH_I2C_Read... [15:31:16]*** Stop cut motor [15:31:16]*** Cut end [15:31:16]Read from MH i2c: 01 07 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: 01 07 00 37 62 00 00 00 00 00 FF 0F AE [15:31:16]process_action close_receipt done [15:31:16]requested_data is exist [15:31:16]produce_requested_data [15:31:16]requested_item fm.sn is exist - process it [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 11 00 00 [15:31:16]Write to MH i2c: E2 08 00 38 62 80 11 00 00 00 00 00 00 14 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 17 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 17 00 38 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [15:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:16]wFMCommunicate OK [15:31:16]requested_item fd.num is exist - process it [15:31:16]SAM_PROTO_GetFieldsCounters [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 13 00 00 [15:31:16]Write to MH i2c: E2 08 00 39 62 80 13 00 00 00 00 00 00 17 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 62 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 62 00 39 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [15:31:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_GetFieldsCounters done [15:31:16]requested_item shift.num is exist - process it [15:31:16]requested_item shift.opened is exist - process it [15:31:16]req_shift_opened [15:31:16]FM_GetShiftState [15:31:16]SAM_PROTO_GetShiftState [15:31:16]wFMCommunicate request_size=4 [15:31:16]MH_SAM_APDU [15:31:16]CAPDU: 80 13 01 00 [15:31:16]Write to MH i2c: E2 08 00 3A 62 80 13 01 00 00 00 00 00 19 [15:31:16]Write i2c OK [15:31:16]MH_I2C_Read... [15:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:16]Read from MH i2c: E2 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 0E 00 [15:31:16]MH_I2C_Read... [15:31:16]Read from MH i2c: E2 0E 00 3A 62 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 22 [15:31:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:31:16]wFMCommunicate OK [15:31:16]SAM_PROTO_GetShiftState done [15:31:16]FM_GetShiftState done [15:31:16]req_shift_opened done [15:31:16]requested_item shift.open_date is exist - process it [15:31:16]req_shift_open_date [15:31:16]req_shift_open_date done [15:31:16]produce_requested_data done [15:31:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166083,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:31:16]process_action_free close_receipt [15:31:16]json_value_free [15:31:16]json_value_free done [15:31:16]process_json_proto returns [15:31:16]Send response to host [15:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166083,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:31:16]free response buf [15:31:16]execute_script done [15:31:16]execute_script returns [15:31:16]free content buf [15:31:16]Sock 5.Close socket [15:31:16]Sock 5.Thread stoped [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:36]accept exits with 6 [15:31:36]New connection [15:31:36]New thread 3066920292 created [15:31:36]Thread 3066776932 joined [15:31:36]Waiting for new connection... [15:31:36] Sock 6.Parse request [15:31:36]Sock 6.Check first char [15:31:36]Sock 6.First char is OK [15:31:36]request: POST /json_proto HTTP/1.0 [15:31:36]Method: POST [15:31:36]URL: /json_proto [15:31:36]Method is POST - this is cgi request [15:31:36]url: /json_proto [15:31:36]query_string will be loaded in cgi processing [15:31:36]execute_cgi json_proto POST (null) [15:31:36]execute_cgi path=json_proto method=POST [15:31:36]POST find Content-Length [15:31:36]Host: 172.17.53.195:8080 [15:31:36]Content-Length: 674 [15:31:36]Content-Type: application/json [15:31:36] [15:31:36]POST finish read [15:31:36]Found Content-Length = 674 [15:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:36]execute_script... [15:31: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)220655", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.560, "sum" : 499.87, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:36]POST & json_proto [15:31:36]process_json_proto [15:31:36]json parsed OK: [15:31:36]protocol is kg_v1.0 [15:31:36]action value=close_receipt [15:31:36]process_action close_receipt [15:31:36]cmd_close_receipt [15:31:36]MH_GetDate [15:31:36]Write to MH i2c: F0 00 00 3B 62 8C [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: F0 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: F0 09 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: F0 09 00 3B 62 00 EB 73 16 67 21 48 4A 65 88 [15:31:36]GetLastDocTimeStamp 1729524691 [15:31:36]current date 1729524715 [15:31:36]FM_GetShiftState [15:31:36]SAM_PROTO_GetShiftState [15:31:36]wFMCommunicate request_size=4 [15:31:36]MH_SAM_APDU [15:31:36]CAPDU: 80 13 01 00 [15:31:36]Write to MH i2c: E2 08 00 3C 62 80 13 01 00 00 00 00 00 1B [15:31:36]Write i2c OK [15:31:36]MH_I2C_Read... [15:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:36]Read from MH i2c: E2 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 0E 00 [15:31:36]MH_I2C_Read... [15:31:36]Read from MH i2c: E2 0E 00 3C 62 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 24 [15:31:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:31:36]wFMCommunicate OK [15:31:36]SAM_PROTO_GetShiftState done [15:31:36]FM_GetShiftState done [15:31:36]opened in 1729470944 [15:31:36]opened+sec_in_day 1729557344 [15:31:36]quantity*price = 49987 [15:31:36]sum+1 = 49988 [15:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.87 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.08 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 195 21.10.2024 15:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166084 ФПД: 169162067957413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153155&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166084&fm=169162067957413&tin=02508201610067®Number=0000000000091764&sum=49900 [15:31:37]StoreToDocumentArchive [15:31:37]shift 535 fd 166084 [15:31:37]save to /storage/0535/doc_00166084 [15:31:37]save last doc name /storage/0535/doc_00166084 to /storage/kkm_last_doc_name [15:31:37]save OK [15:31:37]Clear old archive folders... [15:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:31:37]tlvbuf is 015BD290 [15:31:37]SAM_PROTO_ClearQueue [15:31:37]wFMCommunicate request_size=4 [15:31:37]MH_SAM_APDU [15:31:37]CAPDU: 80 09 00 00 [15:31:37]Write to MH i2c: E2 08 00 49 62 80 09 00 00 00 00 00 00 1D [15:31:37]Write i2c OK [15:31:37]MH_I2C_Read... [15:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:37]Read from MH i2c: E2 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 03 00 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 03 00 49 62 00 90 00 1F [15:31:37]RAPDU: 90 00 [15:31:37]wFMCommunicate OK [15:31:37]SAM_PROTO_ClearQueue done [15:31:37]KKMCreateOFDPacket [15:31:37]OFDProtocolAddRootSTLVToBuf [15:31:37]FM_MakeSignedData [15:31:37]FM_MakeSignedData [15:31:37]SAM_PROTO_SignData [15:31:37]wFMCommunicate request_size=4 [15:31:37]MH_SAM_APDU [15:31:37]CAPDU: 80 0D 01 02 [15:31:37]Write to MH i2c: E2 08 00 4A 62 80 0D 01 02 00 00 00 00 25 [15:31:37]Write i2c OK [15:31:37]MH_I2C_Read... [15:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:37]Read from MH i2c: E2 [15:31:37]MH_I2C_Read... [15:31:37]Read from MH i2c: E2 03 00 [15:31:37]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 03 00 4A 62 00 90 00 20 [15:31:38]RAPDU: 90 00 [15:31:38]wFMCommunicate OK [15:31:38]wFMCommunicate request_size=255 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 EB 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 88 02 00 35 04 06 00 99 DA 1C F8 [15:31:38]Write to MH i2c: E2 02 01 4B 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 EB 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 88 02 00 35 04 06 00 99 DA 1C F8 00 00 9C [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 03 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 03 00 4B 62 00 90 00 21 [15:31:38]RAPDU: 90 00 [15:31:38]wFMCommunicate OK [15:31:38]wFMCommunicate request_size=7 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 0D 02 02 02 56 A5 [15:31:38]Write to MH i2c: E2 0A 00 4C 62 80 0D 02 02 02 00 56 A5 00 00 27 [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 03 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 03 00 4C 62 00 90 00 22 [15:31:38]RAPDU: 90 00 [15:31:38]wFMCommunicate OK [15:31:38]wFMCommunicate request_size=4 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 0D 03 02 [15:31:38]Write to MH i2c: E2 08 00 4D 62 80 0D 03 02 00 00 00 00 2A [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 0B 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 0B 00 4D 62 00 56 67 49 64 04 D0 CB E6 90 00 1A [15:31:38]RAPDU: 56 67 49 64 04 D0 CB E6 90 00 [15:31:38]wFMCommunicate OK [15:31:38]SAM_PROTO_SignData done [15:31:38]FM_MakeSignedData done [15:31:38]CreateOFDProtocolMessage [15:31:38]wFMCommunicate request_size=4 [15:31:38]MH_SAM_APDU [15:31:38]CAPDU: 80 11 00 00 [15:31:38]Write to MH i2c: E2 08 00 4E 62 80 11 00 00 00 00 00 00 2A [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:38]Read from MH i2c: E2 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 17 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: E2 17 00 4E 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [15:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:38]wFMCommunicate OK [15:31:38]CreateOFDProtocolMessage done [15:31:38]OFDSenderStorePacket 166084 [15:31:38]StoreOFDPacket docnum=166084 [15:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 31 83 04 01 D6 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 EB 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 88 02 00 35 04 06 00 99 DA 1C F8 56 A5 56 67 49 64 04 D0 CB E6 [15:31:38]CheckFolder [15:31:38]dirname=/storage/ofd_packets [15:31:38]CheckFolder done [15:31:38]ProducePacketName [15:31:38]name=ofd_packets/00166084 [15:31:38]NVStorageSaveData ofd_packets/00166084 [15:31:38]File name is /storage/ofd_packets/00166084 [15:31:38]Write 298 bytes [15:31:38]NVStorageSaveData done [15:31:38]OFDSenderStorePacket done [15:31:38]KKMCreateOFDPacket done [15:31:38]NVStorageSaveData kkm_last_timestamp [15:31:38]File name is /storage/kkm_last_timestamp [15:31:38]Write 4 bytes [15:31:38]NVStorageSaveData done [15:31:38]ExternCall_PrintAddStr [15:31:38]wPrintStart [15:31:38]Write to MH i2c: 01 00 00 4F 62 B1 [15:31:38]Write i2c OK [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: 01 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: 01 07 00 [15:31:38]MH_I2C_Read... [15:31:38]Read from MH i2c: 01 07 00 4F 62 00 00 00 00 00 FF 0F C6 [15:31:38]RasterBufferAndPrint [15:31:38]line Счет N : (1)220655 [15:31:38]line ИНН: 02508201610067 [15:31:38]line Контрольно-Кассовый Чек [15:31:38]line ПРОДАЖА [15:31:38]line ТРК (МРК, ГНК) : 11 [15:31:38]line Товар: 2710194210 [15:31:38]line ДТ-К-5 [15:31:38]line 6.560 * 76.20 [15:31:38]line = 499.87 [15:31:38]line НДС 12% НСП 1% [15:31:38]line > о реализуемом товаре [15:31:38]line ОКРУГЛЕНИЕ: -0.87 [15:31:38]line ИТОГО: 499.00 [15:31:38]line Внесено: 500.00 [15:31:38]line СДАЧА: 1.00 [15:31:38]line НСП 1% : 4.42 [15:31:38]line НДС 12% : 53.08 [15:31:38]line Наличными: 499.00 [15:31:38]line Безнал.: 0.00 [15:31:38]line Место: АЗС № 161 "Партнер Нефть" [15:31:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:31:38]line СНО: Общий режим [15:31:38]line Чек 195 21.10.2024 15:31 [15:31:38]line Смена: 535 ФФД: 1.0 [15:31:38]line ЗНМ: 0300000104 [15:31:38]line РНМ: 0000000000091764 [15:31:38]line Версия ККМ: 001 [15:31:38]line ФМ: 0000000000871759 [15:31:38]line ФД: 166084 [15:31:38]line ФПД: 169162067957413 [15:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153155&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166084&fm=169162067957413&tin=02508201610067®Number=0000000000091764&sum=49900 [15:31:38]OFD Sender: Processing packet 166084 [packets to send 48, broken 47] [15:31:38]ProducePacketName [15:31:38]name=ofd_packets/00166084 [15:31:38]OFD Sender: To server: pG, [15:31:38]CommunicateWithHost lk.salyk.kg:30040 [15:31:38]ConnectInit lk.salyk.kg [15:31:38]written 0, free lines is 4095 [15:31:38]Connected sock=7 [15:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 31 83 04 01 D6 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 43 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 14 00 00 00 00 07 04 06 00 EC C2 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 EB 73 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 88 02 00 35 04 06 00 99 DA 1C F8 56 A5 56 67 49 64 04 D0 CB E6 [15:31:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 46 5D 47 00 F7 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C4 88 02 00 F4 03 04 00 59 1A 16 67 B6 04 01 00 00 D1 52 71 65 1C F8 6E 14 [15:31:39]CommunicateWithHost err = 0 [15:31:39]CheckOFDResponse [15:31:39]1017 (14) - 77093643461234 [15:31:39]1041 (16) - 0000000000871759 [15:31:39]1040 (4) - 166084 [15:31:39]1012 (4) - 21.10.2024 09:09 [15:31:39]1206 (1) - 0 [15:31:39]OFD Sender: Remove packet 166084 [15:31:39]ProducePacketName [15:31:39]name=ofd_packets/00166084 [15:31:39]NVStorageDeleteData [15:31:39]Write to MH i2c: 01 00 00 7A 62 DC [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: 01 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: 01 07 00 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: 01 07 00 7A 62 00 00 00 00 00 CD 0C BC [15:31:39]RasterBufferAndPrint [15:31:39]line [15:31:39]line [15:31:39]line [15:31:39]line [15:31:39]line [15:31:39]written 0, free lines is 3284 [15:31:39]MH_Cut [15:31:39]Write to MH i2c: D1 01 00 81 62 01 B5 [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: D1 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: D1 01 00 [15:31:39]MH_I2C_Read... [15:31:39]Read from MH i2c: D1 01 00 81 62 00 B4 [15:31:39]Write to MH i2c: 01 00 00 82 62 E4 [15:31:39]Write i2c OK [15:31:39]MH_I2C_Read... [15:31:39]OFD Sender: No OFD packet to send [15:31:39]*** Cut start [15:31:39]*** Partial cut [15:31:39]*** CUTSNS_PIN = 1 [15:31:40]*** CUTSNS_PIN = 0 [15:31:40]*** Brake cut motor [15:31:40]Read from MH i2c: 01 [15:31:40]MH_I2C_Read... [15:31:40]*** Stop cut motor [15:31:40]*** Cut end [15:31:40]Read from MH i2c: 01 07 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: 01 07 00 82 62 00 00 00 00 00 FF 0F F9 [15:31:40]process_action close_receipt done [15:31:40]requested_data is exist [15:31:40]produce_requested_data [15:31:40]requested_item fm.sn is exist - process it [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 11 00 00 [15:31:40]Write to MH i2c: E2 08 00 83 62 80 11 00 00 00 00 00 00 5F [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 17 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 17 00 83 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [15:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:31:40]wFMCommunicate OK [15:31:40]requested_item fd.num is exist - process it [15:31:40]SAM_PROTO_GetFieldsCounters [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 13 00 00 [15:31:40]Write to MH i2c: E2 08 00 84 62 80 13 00 00 00 00 00 00 62 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 62 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 62 00 84 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [15:31:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:40]wFMCommunicate OK [15:31:40]SAM_PROTO_GetFieldsCounters done [15:31:40]requested_item shift.num is exist - process it [15:31:40]requested_item shift.opened is exist - process it [15:31:40]req_shift_opened [15:31:40]FM_GetShiftState [15:31:40]SAM_PROTO_GetShiftState [15:31:40]wFMCommunicate request_size=4 [15:31:40]MH_SAM_APDU [15:31:40]CAPDU: 80 13 01 00 [15:31:40]Write to MH i2c: E2 08 00 85 62 80 13 01 00 00 00 00 00 64 [15:31:40]Write i2c OK [15:31:40]MH_I2C_Read... [15:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:40]Read from MH i2c: E2 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 0E 00 [15:31:40]MH_I2C_Read... [15:31:40]Read from MH i2c: E2 0E 00 85 62 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6D [15:31:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:31:40]wFMCommunicate OK [15:31:40]SAM_PROTO_GetShiftState done [15:31:40]FM_GetShiftState done [15:31:40]req_shift_opened done [15:31:40]requested_item shift.open_date is exist - process it [15:31:40]req_shift_open_date [15:31:40]req_shift_open_date done [15:31:40]produce_requested_data done [15:31:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166084,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:31:40]process_action_free close_receipt [15:31:40]json_value_free [15:31:40]json_value_free done [15:31:40]process_json_proto returns [15:31:40]Send response to host [15:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166084,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:31:40]free response buf [15:31:40]execute_script done [15:31:40]execute_script returns [15:31:40]free content buf [15:31:40]Sock 6.Close socket [15:31:40]Sock 6.Thread stoped [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:35:59]ConnectInit Can't connect to host [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:21]accept exits with 5 [15:36:21]New connection [15:36:21]New thread 3066776932 created [15:36:21]Thread 3066920292 joined [15:36:21]Waiting for new connection... [15:36:21] Sock 5.Parse request [15:36:21]Sock 5.Check first char [15:36:21]Sock 5.First char is OK [15:36:21]request: POST /json_proto HTTP/1.0 [15:36:21]Method: POST [15:36:21]URL: /json_proto [15:36:21]Method is POST - this is cgi request [15:36:21]url: /json_proto [15:36:21]query_string will be loaded in cgi processing [15:36:21]execute_cgi json_proto POST (null) [15:36:21]execute_cgi path=json_proto method=POST [15:36:21]POST find Content-Length [15:36:21]Host: 172.17.53.195:8080 [15:36:21]Content-Length: 679 [15:36:21]Content-Type: application/json [15:36:21] [15:36:21]POST finish read [15:36:21]Found Content-Length = 679 [15:36:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:21]execute_script... [15:36:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:21]POST & json_proto [15:36:21]process_json_proto [15:36:21]json parsed OK: [15:36:21]protocol is kg_v1.0 [15:36:21]action value=close_receipt [15:36:21]process_action close_receipt [15:36:21]cmd_close_receipt [15:36:21]MH_GetDate [15:36:21]Write to MH i2c: F0 00 00 86 62 D7 [15:36:21]Write i2c OK [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: F0 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: F0 09 00 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: F0 09 00 86 62 00 07 75 16 67 21 48 4A 65 F1 [15:36:21]GetLastDocTimeStamp 1729524715 [15:36:21]current date 1729524999 [15:36:21]FM_GetShiftState [15:36:21]SAM_PROTO_GetShiftState [15:36:21]wFMCommunicate request_size=4 [15:36:21]MH_SAM_APDU [15:36:21]CAPDU: 80 13 01 00 [15:36:21]Write to MH i2c: E2 08 00 87 62 80 13 01 00 00 00 00 00 66 [15:36:21]Write i2c OK [15:36:21]MH_I2C_Read... [15:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:21]Read from MH i2c: E2 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: E2 0E 00 [15:36:21]MH_I2C_Read... [15:36:21]Read from MH i2c: E2 0E 00 87 62 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [15:36:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:36:21]wFMCommunicate OK [15:36:21]SAM_PROTO_GetShiftState done [15:36:21]FM_GetShiftState done [15:36:21]opened in 1729470944 [15:36:21]opened+sec_in_day 1729557344 [15:36:21]quantity*price = 99948 [15:36:21]sum+1 = 99950 [15:36:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 196 21.10.2024 15:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166085 ФПД: 79712760245221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166085&fm=79712760245221&tin=02508201610067®Number=0000000000091764&sum=99900 [15:36:22]StoreToDocumentArchive [15:36:22]shift 535 fd 166085 [15:36:22]save to /storage/0535/doc_00166085 [15:36:22]save last doc name /storage/0535/doc_00166085 to /storage/kkm_last_doc_name [15:36:22]save OK [15:36:22]Clear old archive folders... [15:36:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:36:22]tlvbuf is 01C36840 [15:36:22]SAM_PROTO_ClearQueue [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 09 00 00 [15:36:22]Write to MH i2c: E2 08 00 94 62 80 09 00 00 00 00 00 00 68 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 94 62 00 90 00 6A [15:36:22]RAPDU: 90 00 [15:36:22]wFMCommunicate OK [15:36:22]SAM_PROTO_ClearQueue done [15:36:22]KKMCreateOFDPacket [15:36:22]OFDProtocolAddRootSTLVToBuf [15:36:22]FM_MakeSignedData [15:36:22]FM_MakeSignedData [15:36:22]SAM_PROTO_SignData [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 0D 01 02 [15:36:22]Write to MH i2c: E2 08 00 95 62 80 0D 01 02 00 00 00 00 70 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 95 62 00 90 00 6B [15:36:22]RAPDU: 90 00 [15:36:22]wFMCommunicate OK [15:36:22]wFMCommunicate request_size=255 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 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 07 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 88 02 00 35 04 06 00 48 [15:36:22]Write to MH i2c: E2 02 01 96 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 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 07 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 88 02 00 35 04 06 00 48 00 00 50 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 96 62 00 90 00 6C [15:36:22]RAPDU: 90 00 [15:36:22]wFMCommunicate OK [15:36:22]wFMCommunicate request_size=10 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 0D 02 02 05 7F 92 C2 2B E5 [15:36:22]Write to MH i2c: E2 0D 00 97 62 80 0D 02 02 05 00 7F 92 C2 2B E5 00 00 60 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 03 00 97 62 00 90 00 6D [15:36:22]RAPDU: 90 00 [15:36:22]wFMCommunicate OK [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 0D 03 02 [15:36:22]Write to MH i2c: E2 08 00 98 62 80 0D 03 02 00 00 00 00 75 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 0B 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 0B 00 98 62 00 47 1C B1 54 BA 3D 59 29 90 00 57 [15:36:22]RAPDU: 47 1C B1 54 BA 3D 59 29 90 00 [15:36:22]wFMCommunicate OK [15:36:22]SAM_PROTO_SignData done [15:36:22]FM_MakeSignedData done [15:36:22]CreateOFDProtocolMessage [15:36:22]wFMCommunicate request_size=4 [15:36:22]MH_SAM_APDU [15:36:22]CAPDU: 80 11 00 00 [15:36:22]Write to MH i2c: E2 08 00 99 62 80 11 00 00 00 00 00 00 75 [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:22]Read from MH i2c: E2 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 17 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: E2 17 00 99 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [15:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:36:22]wFMCommunicate OK [15:36:22]CreateOFDProtocolMessage done [15:36:22]OFDSenderStorePacket 166085 [15:36:22]StoreOFDPacket docnum=166085 [15:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 84 E1 07 01 B0 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 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 07 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 88 02 00 35 04 06 00 48 7F 92 C2 2B E5 47 1C B1 54 BA 3D 59 29 [15:36:22]CheckFolder [15:36:22]dirname=/storage/ofd_packets [15:36:22]CheckFolder done [15:36:22]ProducePacketName [15:36:22]name=ofd_packets/00166085 [15:36:22]NVStorageSaveData ofd_packets/00166085 [15:36:22]File name is /storage/ofd_packets/00166085 [15:36:22]Write 301 bytes [15:36:22]NVStorageSaveData done [15:36:22]OFDSenderStorePacket done [15:36:22]KKMCreateOFDPacket done [15:36:22]NVStorageSaveData kkm_last_timestamp [15:36:22]File name is /storage/kkm_last_timestamp [15:36:22]Write 4 bytes [15:36:22]NVStorageSaveData done [15:36:22]ExternCall_PrintAddStr [15:36:22]wPrintStart [15:36:22]Write to MH i2c: 01 00 00 9A 62 FC [15:36:22]Write i2c OK [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: 01 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: 01 07 00 [15:36:22]MH_I2C_Read... [15:36:22]Read from MH i2c: 01 07 00 9A 62 00 00 00 00 00 FF 0F 11 [15:36:22]RasterBufferAndPrint [15:36:22]line Счет N : (1)220656 [15:36:22]line ИНН: 02508201610067 [15:36:22]line Контрольно-Кассовый Чек [15:36:22]line ПРОДАЖА [15:36:22]line ТРК (МРК, ГНК) : 13 [15:36:22]line Товар: 2710124130 [15:36:22]line Аи-92-К-5 [15:36:22]line 14.940 * 66.90 [15:36:22]line = 999.49 [15:36:22]line НДС 12% НСП 1% [15:36:22]line > о реализуемом товаре [15:36:22]line ОКРУГЛЕНИЕ: -0.49 [15:36:22]line ИТОГО: 999.00 [15:36:22]line Внесено: 1000.00 [15:36:22]line СДАЧА: 1.00 [15:36:22]line НСП 1% : 8.84 [15:36:22]line НДС 12% : 106.14 [15:36:22]line Наличными: 999.00 [15:36:22]line Безнал.: 0.00 [15:36:22]line Место: АЗС № 161 "Партнер Нефть" [15:36:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:36:22]line СНО: Общий режим [15:36:22]line Чек 196 21.10.2024 15:36 [15:36:22]line Смена: 535 ФФД: 1.0 [15:36:22]line ЗНМ: 0300000104 [15:36:22]line РНМ: 0000000000091764 [15:36:22]line Версия ККМ: 001 [15:36:22]line ФМ: 0000000000871759 [15:36:22]line ФД: 166085 [15:36:22]line ФПД: 79712760245221 [15:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153639&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166085&fm=79712760245221&tin=02508201610067®Number=0000000000091764&sum=99900 [15:36:23]OFD Sender: Processing packet 166085 [packets to send 48, broken 47] [15:36:23]ProducePacketName [15:36:23]name=ofd_packets/00166085 [15:36:23]OFD Sender: To server: pG, [15:36:23]CommunicateWithHost lk.salyk.kg:30040 [15:36:23]ConnectInit lk.salyk.kg [15:36:23]written 0, free lines is 4095 [15:36:23]Connected sock=7 [15:36:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 84 E1 07 01 B0 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 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 07 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 88 02 00 35 04 06 00 48 7F 92 C2 2B E5 47 1C B1 54 BA 3D 59 29 [15:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6F 21 47 00 A1 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C5 88 02 00 F4 03 04 00 76 1B 16 67 B6 04 01 00 00 11 D0 A2 BC 29 3C 21 CB [15:36:23]CommunicateWithHost err = 0 [15:36:23]CheckOFDResponse [15:36:23]1017 (14) - 77093643461234 [15:36:23]1041 (16) - 0000000000871759 [15:36:23]1040 (4) - 166085 [15:36:23]1012 (4) - 21.10.2024 09:14 [15:36:23]1206 (1) - 0 [15:36:23]OFD Sender: Remove packet 166085 [15:36:23]ProducePacketName [15:36:23]name=ofd_packets/00166085 [15:36:23]NVStorageDeleteData [15:36:23]Write to MH i2c: 01 00 00 C5 62 27 [15:36:23]Write i2c OK [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: 01 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: 01 07 00 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: 01 07 00 C5 62 00 00 00 00 00 F1 0C 2B [15:36:23]RasterBufferAndPrint [15:36:23]line [15:36:23]line [15:36:23]line [15:36:23]line [15:36:23]line [15:36:23]written 0, free lines is 3323 [15:36:23]MH_Cut [15:36:23]Write to MH i2c: D1 01 00 CC 62 01 00 [15:36:23]Write i2c OK [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: D1 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: D1 01 00 [15:36:23]MH_I2C_Read... [15:36:23]Read from MH i2c: D1 01 00 CC 62 00 FF [15:36:23]Write to MH i2c: 01 00 00 CD 62 2F [15:36:23]Write i2c OK [15:36:23]MH_I2C_Read... [15:36:23]OFD Sender: No OFD packet to send [15:36:24]*** Cut start [15:36:24]*** Partial cut [15:36:24]*** CUTSNS_PIN = 1 [15:36:24]*** CUTSNS_PIN = 0 [15:36:24]*** Brake cut motor [15:36:24]Read from MH i2c: 01 [15:36:24]MH_I2C_Read... [15:36:24]*** Stop cut motor [15:36:24]*** Cut end [15:36:24]Read from MH i2c: 01 07 00 [15:36:24]MH_I2C_Read... [15:36:24]Read from MH i2c: 01 07 00 CD 62 00 00 00 00 00 FF 0F 44 [15:36:24]process_action close_receipt done [15:36:24]requested_data is exist [15:36:24]produce_requested_data [15:36:24]requested_item fm.sn is exist - process it [15:36:24]wFMCommunicate request_size=4 [15:36:24]MH_SAM_APDU [15:36:24]CAPDU: 80 11 00 00 [15:36:24]Write to MH i2c: E2 08 00 CE 62 80 11 00 00 00 00 00 00 AA [15:36:24]Write i2c OK [15:36:24]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 17 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 17 00 CE 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [15:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:36:25]wFMCommunicate OK [15:36:25]requested_item fd.num is exist - process it [15:36:25]SAM_PROTO_GetFieldsCounters [15:36:25]wFMCommunicate request_size=4 [15:36:25]MH_SAM_APDU [15:36:25]CAPDU: 80 13 00 00 [15:36:25]Write to MH i2c: E2 08 00 CF 62 80 13 00 00 00 00 00 00 AD [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 62 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 62 00 CF 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [15:36:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:25]wFMCommunicate OK [15:36:25]SAM_PROTO_GetFieldsCounters done [15:36:25]requested_item shift.num is exist - process it [15:36:25]requested_item shift.opened is exist - process it [15:36:25]req_shift_opened [15:36:25]FM_GetShiftState [15:36:25]SAM_PROTO_GetShiftState [15:36:25]wFMCommunicate request_size=4 [15:36:25]MH_SAM_APDU [15:36:25]CAPDU: 80 13 01 00 [15:36:25]Write to MH i2c: E2 08 00 D0 62 80 13 01 00 00 00 00 00 AF [15:36:25]Write i2c OK [15:36:25]MH_I2C_Read... [15:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:25]Read from MH i2c: E2 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 0E 00 [15:36:25]MH_I2C_Read... [15:36:25]Read from MH i2c: E2 0E 00 D0 62 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B8 [15:36:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:36:25]wFMCommunicate OK [15:36:25]SAM_PROTO_GetShiftState done [15:36:25]FM_GetShiftState done [15:36:25]req_shift_opened done [15:36:25]requested_item shift.open_date is exist - process it [15:36:25]req_shift_open_date [15:36:25]req_shift_open_date done [15:36:25]produce_requested_data done [15:36:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166085,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:36:25]process_action_free close_receipt [15:36:25]json_value_free [15:36:25]json_value_free done [15:36:25]process_json_proto returns [15:36:25]Send response to host [15:36:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166085,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:36:25]free response buf [15:36:25]execute_script done [15:36:25]execute_script returns [15:36:25]free content buf [15:36:25]Sock 5.Close socket [15:36:25]Sock 5.Thread stoped [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]OFD Sender: No OFD packet to send [15:37:08]OFD Sender: No OFD packet to send [15:37:13]OFD Sender: No OFD packet to send [15:37:18]OFD Sender: No OFD packet to send [15:37:33]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:45]accept exits with 6 [15:37:45]New connection [15:37:45]New thread 3066920292 created [15:37:45]Thread 3066776932 joined [15:37:45]Waiting for new connection... [15:37:45] Sock 6.Parse request [15:37:45]Sock 6.Check first char [15:37:45]Sock 6.First char is OK [15:37:45]request: POST /json_proto HTTP/1.0 [15:37:45]Method: POST [15:37:45]URL: /json_proto [15:37:45]Method is POST - this is cgi request [15:37:45]url: /json_proto [15:37:45]query_string will be loaded in cgi processing [15:37:45]execute_cgi json_proto POST (null) [15:37:45]execute_cgi path=json_proto method=POST [15:37:45]POST find Content-Length [15:37:45]Host: 172.17.53.195:8080 [15:37:45]Content-Length: 678 [15:37:45]Content-Type: application/json [15:37:45] [15:37:45]POST finish read [15:37:45]Found Content-Length = 678 [15:37:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:45]execute_script... [15:37:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:45]POST & json_proto [15:37:45]process_json_proto [15:37:45]json parsed OK: [15:37:45]protocol is kg_v1.0 [15:37:45]action value=close_receipt [15:37:45]process_action close_receipt [15:37:45]cmd_close_receipt [15:37:45]MH_GetDate [15:37:45]Write to MH i2c: F0 00 00 D1 62 22 [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 09 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: F0 09 00 D1 62 00 5C 75 16 67 21 48 4A 65 91 [15:37:45]GetLastDocTimeStamp 1729524999 [15:37:45]current date 1729525084 [15:37:45]FM_GetShiftState [15:37:45]SAM_PROTO_GetShiftState [15:37:45]wFMCommunicate request_size=4 [15:37:45]MH_SAM_APDU [15:37:45]CAPDU: 80 13 01 00 [15:37:45]Write to MH i2c: E2 08 00 D2 62 80 13 01 00 00 00 00 00 B1 [15:37:45]Write i2c OK [15:37:45]MH_I2C_Read... [15:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:45]Read from MH i2c: E2 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 [15:37:45]MH_I2C_Read... [15:37:45]Read from MH i2c: E2 0E 00 D2 62 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BA [15:37:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:37:45]wFMCommunicate OK [15:37:45]SAM_PROTO_GetShiftState done [15:37:45]FM_GetShiftState done [15:37:45]opened in 1729470944 [15:37:45]opened+sec_in_day 1729557344 [15:37:45]quantity*price = 80012 [15:37:45]sum+1 = 80013 [15:37:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 197 21.10.2024 15:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166086 ФПД: 152916131727436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153804&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166086&fm=152916131727436&tin=02508201610067®Number=0000000000091764&sum=80000 [15:37:46]StoreToDocumentArchive [15:37:46]shift 535 fd 166086 [15:37:46]save to /storage/0535/doc_00166086 [15:37:46]save last doc name /storage/0535/doc_00166086 to /storage/kkm_last_doc_name [15:37:46]save OK [15:37:46]Clear old archive folders... [15:37:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:46]tlvbuf is 015BD3E0 [15:37:46]SAM_PROTO_ClearQueue [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 09 00 00 [15:37:46]Write to MH i2c: E2 08 00 DF 62 80 09 00 00 00 00 00 00 B3 [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 DF 62 00 90 00 B5 [15:37:46]RAPDU: 90 00 [15:37:46]wFMCommunicate OK [15:37:46]SAM_PROTO_ClearQueue done [15:37:46]KKMCreateOFDPacket [15:37:46]OFDProtocolAddRootSTLVToBuf [15:37:46]FM_MakeSignedData [15:37:46]FM_MakeSignedData [15:37:46]SAM_PROTO_SignData [15:37:46]wFMCommunicate request_size=4 [15:37:46]MH_SAM_APDU [15:37:46]CAPDU: 80 0D 01 02 [15:37:46]Write to MH i2c: E2 08 00 E0 62 80 0D 01 02 00 00 00 00 BB [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:46]Read from MH i2c: E2 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 [15:37:46]MH_I2C_Read... [15:37:46]Read from MH i2c: E2 03 00 E0 62 00 90 00 B6 [15:37:46]RAPDU: 90 00 [15:37:46]wFMCommunicate OK [15:37:46]wFMCommunicate request_size=255 [15:37:46]MH_SAM_APDU [15:37: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 5C 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 88 02 00 35 04 06 00 8B [15:37:46]Write to MH i2c: E2 02 01 E1 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 5C 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 88 02 00 35 04 06 00 8B 00 00 44 [15:37:46]Write i2c OK [15:37:46]MH_I2C_Read... [15:37:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 E1 62 00 90 00 B7 [15:37:47]RAPDU: 90 00 [15:37:47]wFMCommunicate OK [15:37:47]wFMCommunicate request_size=10 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 0D 02 02 05 13 8F B6 48 4C [15:37:47]Write to MH i2c: E2 0D 00 E2 62 80 0D 02 02 05 00 13 8F B6 48 4C 00 00 B4 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 03 00 E2 62 00 90 00 B8 [15:37:47]RAPDU: 90 00 [15:37:47]wFMCommunicate OK [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 0D 03 02 [15:37:47]Write to MH i2c: E2 08 00 E3 62 80 0D 03 02 00 00 00 00 C0 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0B 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0B 00 E3 62 00 94 83 7E 99 B3 45 BE 3A 90 00 DF [15:37:47]RAPDU: 94 83 7E 99 B3 45 BE 3A 90 00 [15:37:47]wFMCommunicate OK [15:37:47]SAM_PROTO_SignData done [15:37:47]FM_MakeSignedData done [15:37:47]CreateOFDProtocolMessage [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 11 00 00 [15:37:47]Write to MH i2c: E2 08 00 E4 62 80 11 00 00 00 00 00 00 C0 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 17 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 17 00 E4 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [15:37:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:37:47]wFMCommunicate OK [15:37:47]CreateOFDProtocolMessage done [15:37:47]OFDSenderStorePacket 166086 [15:37:47]StoreOFDPacket docnum=166086 [15:37:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 15 07 01 5D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 5C 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 88 02 00 35 04 06 00 8B 13 8F B6 48 4C 94 83 7E 99 B3 45 BE 3A [15:37:47]CheckFolder [15:37:47]dirname=/storage/ofd_packets [15:37:47]CheckFolder done [15:37:47]ProducePacketName [15:37:47]name=ofd_packets/00166086 [15:37:47]NVStorageSaveData ofd_packets/00166086 [15:37:47]File name is /storage/ofd_packets/00166086 [15:37:47]Write 301 bytes [15:37:47]NVStorageSaveData done [15:37:47]OFDSenderStorePacket done [15:37:47]KKMCreateOFDPacket done [15:37:47]NVStorageSaveData kkm_last_timestamp [15:37:47]File name is /storage/kkm_last_timestamp [15:37:47]Write 4 bytes [15:37:47]NVStorageSaveData done [15:37:47]ExternCall_PrintAddStr [15:37:47]wPrintStart [15:37:47]Write to MH i2c: 01 00 00 E5 62 47 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 E5 62 00 00 00 00 00 FF 0F 5C [15:37:47]RasterBufferAndPrint [15:37:47]line Счет N : (1)220657 [15:37:47]line ИНН: 02508201610067 [15:37:47]line Контрольно-Кассовый Чек [15:37:47]line ПРОДАЖА [15:37:47]line ТРК (МРК, ГНК) : 23 [15:37:47]line Товар: 2710124130 [15:37:47]line Аи-92-К-5 [15:37:47]line 11.960 * 66.90 [15:37:47]line = 800.12 [15:37:47]line НДС 12% НСП 1% [15:37:47]line > о реализуемом товаре [15:37:47]line ОКРУГЛЕНИЕ: -0.12 [15:37:47]line ИТОГО: 800.00 [15:37:47]line Внесено: 800.00 [15:37:47]line СДАЧА: 0.00 [15:37:47]line НСП 1% : 7.08 [15:37:47]line НДС 12% : 84.97 [15:37:47]line Наличными: 800.00 [15:37:47]line Безнал.: 0.00 [15:37:47]line Место: АЗС № 161 "Партнер Нефть" [15:37:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:37:47]line СНО: Общий режим [15:37:47]line Чек 197 21.10.2024 15:38 [15:37:47]line Смена: 535 ФФД: 1.0 [15:37:47]line ЗНМ: 0300000104 [15:37:47]line РНМ: 0000000000091764 [15:37:47]line Версия ККМ: 001 [15:37:47]line ФМ: 0000000000871759 [15:37:47]line ФД: 166086 [15:37:47]line ФПД: 152916131727436 [15:37:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153804&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166086&fm=152916131727436&tin=02508201610067®Number=0000000000091764&sum=80000 [15:37:47]OFD Sender: Processing packet 166086 [packets to send 48, broken 47] [15:37:47]ProducePacketName [15:37:47]name=ofd_packets/00166086 [15:37:47]OFD Sender: To server: pG, [15:37:47]CommunicateWithHost lk.salyk.kg:30040 [15:37:47]ConnectInit lk.salyk.kg [15:37:47]written 0, free lines is 4095 [15:37:47]Write to MH i2c: 01 00 00 10 63 73 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: 01 07 00 10 63 00 00 00 00 00 C8 0C 4E [15:37:47]RasterBufferAndPrint [15:37:47]line [15:37:47]line [15:37:47]line [15:37:47]line [15:37:47]line [15:37:47]written 0, free lines is 3278 [15:37:47]MH_Cut [15:37:47]Write to MH i2c: D1 01 00 17 63 01 4C [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: D1 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: D1 01 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: D1 01 00 17 63 00 4B [15:37:47]Write to MH i2c: 01 00 00 18 63 7B [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:48]*** Cut start [15:37:48]*** Partial cut [15:37:48]*** CUTSNS_PIN = 1 [15:37:48]*** CUTSNS_PIN = 0 [15:37:49]*** Brake cut motor [15:37:49]Read from MH i2c: 01 [15:37:49]MH_I2C_Read... [15:37:49]*** Stop cut motor [15:37:49]*** Cut end [15:37:49]Read from MH i2c: 01 07 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 18 63 00 00 00 00 00 FF 0F 90 [15:37:49]process_action close_receipt done [15:37:49]requested_data is exist [15:37:49]produce_requested_data [15:37:49]requested_item fm.sn is exist - process it [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 11 00 00 [15:37:49]Write to MH i2c: E2 08 00 19 63 80 11 00 00 00 00 00 00 F6 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 17 00 19 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [15:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:37:49]wFMCommunicate OK [15:37:49]requested_item fd.num is exist - process it [15:37:49]SAM_PROTO_GetFieldsCounters [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 13 00 00 [15:37:49]Write to MH i2c: E2 08 00 1A 63 80 13 00 00 00 00 00 00 F9 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 62 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 62 00 1A 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [15:37:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:49]wFMCommunicate OK [15:37:49]SAM_PROTO_GetFieldsCounters done [15:37:49]requested_item shift.num is exist - process it [15:37:49]requested_item shift.opened is exist - process it [15:37:49]req_shift_opened [15:37:49]FM_GetShiftState [15:37:49]SAM_PROTO_GetShiftState [15:37:49]wFMCommunicate request_size=4 [15:37:49]MH_SAM_APDU [15:37:49]CAPDU: 80 13 01 00 [15:37:49]Write to MH i2c: E2 08 00 1B 63 80 13 01 00 00 00 00 00 FB [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:49]Read from MH i2c: E2 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0E 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: E2 0E 00 1B 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 04 [15:37:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:37:49]wFMCommunicate OK [15:37:49]SAM_PROTO_GetShiftState done [15:37:49]FM_GetShiftState done [15:37:49]req_shift_opened done [15:37:49]requested_item shift.open_date is exist - process it [15:37:49]req_shift_open_date [15:37:49]req_shift_open_date done [15:37:49]produce_requested_data done [15:37:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166086,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:37:49]process_action_free close_receipt [15:37:49]json_value_free [15:37:49]json_value_free done [15:37:49]process_json_proto returns [15:37:49]Send response to host [15:37:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166086,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:37:49]free response buf [15:37:49]execute_script done [15:37:49]execute_script returns [15:37:49]free content buf [15:37:49]Sock 6.Close socket [15:37:49]Sock 6.Thread stoped [15:37:52]ConnectInit Can't take IP for lk.salyk.kg [15:37:52]CommunicateWithHost connect error [15:37:52]CommunicateWithHost err = -1 [15:37:52]OFD Sender: Server communicate error [15:37:57]OFD Sender: Processing packet 166086 [packets to send 48, broken 47] [15:37:57]ProducePacketName [15:37:57]name=ofd_packets/00166086 [15:37:57]OFD Sender: To server: pG, [15:37:57]CommunicateWithHost lk.salyk.kg:30040 [15:37:57]ConnectInit lk.salyk.kg [15:38:02]ConnectInit Can't take IP for lk.salyk.kg [15:38:02]CommunicateWithHost connect error [15:38:02]CommunicateWithHost err = -1 [15:38:02]OFD Sender: Server communicate error [15:38:07]OFD Sender: Processing packet 166086 [packets to send 48, broken 47] [15:38:07]ProducePacketName [15:38:07]name=ofd_packets/00166086 [15:38:07]OFD Sender: To server: pG, [15:38:07]CommunicateWithHost lk.salyk.kg:30040 [15:38:07]ConnectInit lk.salyk.kg [15:38:12]ConnectInit Can't take IP for lk.salyk.kg [15:38:12]CommunicateWithHost connect error [15:38:12]CommunicateWithHost err = -1 [15:38:12]OFD Sender: Server communicate error [15:38:17]OFD Sender: Processing packet 166086 [packets to send 48, broken 47] [15:38:17]ProducePacketName [15:38:17]name=ofd_packets/00166086 [15:38:17]OFD Sender: To server: pG, [15:38:17]CommunicateWithHost lk.salyk.kg:30040 [15:38:17]ConnectInit lk.salyk.kg [15:38:22]ConnectInit Can't take IP for lk.salyk.kg [15:38:22]CommunicateWithHost connect error [15:38:22]CommunicateWithHost err = -1 [15:38:22]OFD Sender: Server communicate error [15:38:25]accept exits with 7 [15:38:25]New connection [15:38:25]New thread 3066776932 created [15:38:25]Thread 3066920292 joined [15:38:25]Waiting for new connection... [15:38:25] Sock 7.Parse request [15:38:25]Sock 7.Check first char [15:38:25]Sock 7.First char is OK [15:38:25]request: POST /json_proto HTTP/1.0 [15:38:25]Method: POST [15:38:25]URL: /json_proto [15:38:25]Method is POST - this is cgi request [15:38:25]url: /json_proto [15:38:25]query_string will be loaded in cgi processing [15:38:25]execute_cgi json_proto POST (null) [15:38:25]execute_cgi path=json_proto method=POST [15:38:25]POST find Content-Length [15:38:25]Host: 172.17.53.195:8080 [15:38:25]Content-Length: 800 [15:38:25]Content-Type: application/json [15:38:25] [15:38:25]POST finish read [15:38:25]Found Content-Length = 800 [15:38:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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\u000A4194887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:25]execute_script... [15:38: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)220658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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\u000A4194887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:38:25]POST & json_proto [15:38:25]process_json_proto [15:38:25]json parsed OK: [15:38:25]protocol is kg_v1.0 [15:38:25]action value=close_receipt [15:38:25]process_action close_receipt [15:38:25]cmd_close_receipt [15:38:25]MH_GetDate [15:38:25]Write to MH i2c: F0 00 00 1C 63 6E [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: F0 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: F0 09 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: F0 09 00 1C 63 00 84 75 16 67 21 48 4A 65 05 [15:38:25]GetLastDocTimeStamp 1729525084 [15:38:25]current date 1729525124 [15:38:25]FM_GetShiftState [15:38:25]SAM_PROTO_GetShiftState [15:38:25]wFMCommunicate request_size=4 [15:38:25]MH_SAM_APDU [15:38:25]CAPDU: 80 13 01 00 [15:38:25]Write to MH i2c: E2 08 00 1D 63 80 13 01 00 00 00 00 00 FD [15:38:25]Write i2c OK [15:38:25]MH_I2C_Read... [15:38:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:25]Read from MH i2c: E2 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 0E 00 [15:38:25]MH_I2C_Read... [15:38:25]Read from MH i2c: E2 0E 00 1D 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 06 [15:38:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:38:25]wFMCommunicate OK [15:38:25]SAM_PROTO_GetShiftState done [15:38:25]FM_GetShiftState done [15:38:25]opened in 1729470944 [15:38:25]opened+sec_in_day 1729557344 [15:38:25]quantity*price = 0 [15:38:25]sum+1 = 1 [15:38:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 198 21.10.2024 15:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 4194887 ФМ: 0000000000871759 ФД: 166087 ФПД: 215346002256964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166087&fm=215346002256964&tin=02508201610067®Number=0000000000091764&sum=0 [15:38:26]StoreToDocumentArchive [15:38:26]shift 535 fd 166087 [15:38:26]save to /storage/0535/doc_00166087 [15:38:26]save last doc name /storage/0535/doc_00166087 to /storage/kkm_last_doc_name [15:38:26]save OK [15:38:26]Clear old archive folders... [15:38:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:38:26]tlvbuf is 01467350 [15:38:26]SAM_PROTO_ClearQueue [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 09 00 00 [15:38:26]Write to MH i2c: E2 08 00 2A 63 80 09 00 00 00 00 00 00 FF [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 03 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 03 00 2A 63 00 90 00 01 [15:38:26]RAPDU: 90 00 [15:38:26]wFMCommunicate OK [15:38:26]SAM_PROTO_ClearQueue done [15:38:26]KKMCreateOFDPacket [15:38:26]OFDProtocolAddRootSTLVToBuf [15:38:26]FM_MakeSignedData [15:38:26]FM_MakeSignedData [15:38:26]SAM_PROTO_SignData [15:38:26]wFMCommunicate request_size=4 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 0D 01 02 [15:38:26]Write to MH i2c: E2 08 00 2B 63 80 0D 01 02 00 00 00 00 07 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:38:26]Read from MH i2c: E2 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 03 00 [15:38:26]MH_I2C_Read... [15:38:26]Read from MH i2c: E2 03 00 2B 63 00 90 00 02 [15:38:26]RAPDU: 90 00 [15:38:26]wFMCommunicate OK [15:38:26]wFMCommunicate request_size=255 [15:38:26]MH_SAM_APDU [15:38:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 84 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 88 02 00 35 04 06 00 C3 [15:38:26]Write to MH i2c: E2 02 01 2C 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 84 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 88 02 00 35 04 06 00 C3 00 00 B8 [15:38:26]Write i2c OK [15:38:26]MH_I2C_Read... [15:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:27]Read from MH i2c: E2 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 03 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 03 00 2C 63 00 90 00 03 [15:38:27]RAPDU: 90 00 [15:38:27]wFMCommunicate OK [15:38:27]wFMCommunicate request_size=10 [15:38:27]MH_SAM_APDU [15:38:27]CAPDU: 80 0D 02 02 05 DB 25 F7 E4 44 [15:38:27]Write to MH i2c: E2 0D 00 2D 63 80 0D 02 02 05 00 DB 25 F7 E4 44 00 00 33 [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:38:27]Read from MH i2c: E2 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 03 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 03 00 2D 63 00 90 00 04 [15:38:27]RAPDU: 90 00 [15:38:27]wFMCommunicate OK [15:38:27]wFMCommunicate request_size=4 [15:38:27]MH_SAM_APDU [15:38:27]CAPDU: 80 0D 03 02 [15:38:27]Write to MH i2c: E2 08 00 2E 63 80 0D 03 02 00 00 00 00 0C [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:38:27]Read from MH i2c: E2 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 0B 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 0B 00 2E 63 00 C3 65 FB AB 87 CF B3 0C 90 00 F0 [15:38:27]RAPDU: C3 65 FB AB 87 CF B3 0C 90 00 [15:38:27]wFMCommunicate OK [15:38:27]SAM_PROTO_SignData done [15:38:27]FM_MakeSignedData done [15:38:27]CreateOFDProtocolMessage [15:38:27]wFMCommunicate request_size=4 [15:38:27]MH_SAM_APDU [15:38:27]CAPDU: 80 11 00 00 [15:38:27]Write to MH i2c: E2 08 00 2F 63 80 11 00 00 00 00 00 00 0C [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:27]Read from MH i2c: E2 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 17 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: E2 17 00 2F 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [15:38:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:38:27]wFMCommunicate OK [15:38:27]CreateOFDProtocolMessage done [15:38:27]OFDSenderStorePacket 166087 [15:38:27]StoreOFDPacket docnum=166087 [15:38:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 5A 07 01 B8 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 84 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 88 02 00 35 04 06 00 C3 DB 25 F7 E4 44 C3 65 FB AB 87 CF B3 0C [15:38:27]CheckFolder [15:38:27]dirname=/storage/ofd_packets [15:38:27]CheckFolder done [15:38:27]ProducePacketName [15:38:27]name=ofd_packets/00166087 [15:38:27]NVStorageSaveData ofd_packets/00166087 [15:38:27]File name is /storage/ofd_packets/00166087 [15:38:27]Write 301 bytes [15:38:27]NVStorageSaveData done [15:38:27]OFDSenderStorePacket done [15:38:27]KKMCreateOFDPacket done [15:38:27]NVStorageSaveData kkm_last_timestamp [15:38:27]File name is /storage/kkm_last_timestamp [15:38:27]Write 4 bytes [15:38:27]NVStorageSaveData done [15:38:27]ExternCall_PrintAddStr [15:38:27]wPrintStart [15:38:27]Write to MH i2c: 01 00 00 30 63 93 [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: 01 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: 01 07 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: 01 07 00 30 63 00 00 00 00 00 FF 0F A8 [15:38:27]RasterBufferAndPrint [15:38:27]line Счет N : (1)220658 [15:38:27]line ИНН: 02508201610067 [15:38:27]line Контрольно-Кассовый Чек [15:38:27]line ПРОДАЖА [15:38:27]line ТРК (МРК, ГНК) : 13 [15:38:27]line Товар: 2710124130 [15:38:27]line Аи-92-К-5 [15:38:27]line 10.000 * 0.00 [15:38:27]line = 0.00 [15:38:27]line НДС 12% НСП 1% [15:38:27]line > о реализуемом товаре [15:38:27]line ИТОГО: 0.00 [15:38:27]line НСП 1% : 0.00 [15:38:27]line НДС 12% : 0.00 [15:38:27]line Наличными: 0.00 [15:38:27]line Безнал.: 0.00 [15:38:27]line Место: АЗС № 161 "Партнер Нефть" [15:38:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:38:27]line СНО: Общий режим [15:38:27]line Чек 198 21.10.2024 15:38 [15:38:27]line Смена: 535 ФФД: 1.0 [15:38:27]line ЗНМ: 0300000104 [15:38:27]line РНМ: 0000000000091764 [15:38:27]line Версия ККМ: 001 [15:38:27]line Талоны: Топливные Талоны [15:38:27]line 4194887 [15:38:27]line ФМ: 0000000000871759 [15:38:27]line ФД: 166087 [15:38:27]line ФПД: 215346002256964 [15:38:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153844&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166087&fm=215346002256964&tin=02508201610067®Number=0000000000091764&sum=0 [15:38:27]written 0, free lines is 4095 [15:38:27]OFD Sender: Processing packet 166086 [packets to send 49, broken 47] [15:38:27]ProducePacketName [15:38:27]name=ofd_packets/00166086 [15:38:27]OFD Sender: To server: pG, [15:38:27]CommunicateWithHost lk.salyk.kg:30040 [15:38:27]ConnectInit lk.salyk.kg [15:38:27]Write to MH i2c: 01 00 00 5A 63 BD [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: 01 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: 01 07 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: 01 07 00 5A 63 00 00 00 00 00 DD 0C AD [15:38:27]RasterBufferAndPrint [15:38:27]line [15:38:27]line [15:38:27]line [15:38:27]line [15:38:27]line [15:38:27]written 0, free lines is 3310 [15:38:27]MH_Cut [15:38:27]Write to MH i2c: D1 01 00 61 63 01 96 [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: D1 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: D1 01 00 [15:38:27]MH_I2C_Read... [15:38:27]Read from MH i2c: D1 01 00 61 63 00 95 [15:38:27]Write to MH i2c: 01 00 00 62 63 C5 [15:38:27]Write i2c OK [15:38:27]MH_I2C_Read... [15:38:28]*** Cut start [15:38:28]*** Partial cut [15:38:28]*** CUTSNS_PIN = 1 [15:38:28]*** CUTSNS_PIN = 0 [15:38:28]*** Brake cut motor [15:38:29]Read from MH i2c: 01 [15:38:29]MH_I2C_Read... [15:38:29]*** Stop cut motor [15:38:29]*** Cut end [15:38:29]Read from MH i2c: 01 07 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: 01 07 00 62 63 00 00 00 00 00 FF 0F DA [15:38:29]process_action close_receipt done [15:38:29]requested_data is exist [15:38:29]produce_requested_data [15:38:29]requested_item fm.sn is exist - process it [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 11 00 00 [15:38:29]Write to MH i2c: E2 08 00 63 63 80 11 00 00 00 00 00 00 40 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 17 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 17 00 63 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 98 [15:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:38:29]wFMCommunicate OK [15:38:29]requested_item fd.num is exist - process it [15:38:29]SAM_PROTO_GetFieldsCounters [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 13 00 00 [15:38:29]Write to MH i2c: E2 08 00 64 63 80 13 00 00 00 00 00 00 43 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 62 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 62 00 64 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [15:38:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:38:29]wFMCommunicate OK [15:38:29]SAM_PROTO_GetFieldsCounters done [15:38:29]requested_item shift.num is exist - process it [15:38:29]requested_item shift.opened is exist - process it [15:38:29]req_shift_opened [15:38:29]FM_GetShiftState [15:38:29]SAM_PROTO_GetShiftState [15:38:29]wFMCommunicate request_size=4 [15:38:29]MH_SAM_APDU [15:38:29]CAPDU: 80 13 01 00 [15:38:29]Write to MH i2c: E2 08 00 65 63 80 13 01 00 00 00 00 00 45 [15:38:29]Write i2c OK [15:38:29]MH_I2C_Read... [15:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:38:29]Read from MH i2c: E2 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 0E 00 [15:38:29]MH_I2C_Read... [15:38:29]Read from MH i2c: E2 0E 00 65 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4E [15:38:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:38:29]wFMCommunicate OK [15:38:29]SAM_PROTO_GetShiftState done [15:38:29]FM_GetShiftState done [15:38:29]req_shift_opened done [15:38:29]requested_item shift.open_date is exist - process it [15:38:29]req_shift_open_date [15:38:29]req_shift_open_date done [15:38:29]produce_requested_data done [15:38:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166087,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:38:29]process_action_free close_receipt [15:38:29]json_value_free [15:38:29]json_value_free done [15:38:29]process_json_proto returns [15:38:29]Send response to host [15:38:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166087,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:38:29]free response buf [15:38:29]execute_script done [15:38:29]execute_script returns [15:38:29]free content buf [15:38:29]Sock 7.Close socket [15:38:29]Sock 7.Thread stoped [15:38:32]ConnectInit Can't take IP for lk.salyk.kg [15:38:32]CommunicateWithHost connect error [15:38:32]CommunicateWithHost err = -1 [15:38:32]OFD Sender: Server communicate error [15:38:37]OFD Sender: Processing packet 166086 [packets to send 49, broken 47] [15:38:37]ProducePacketName [15:38:37]name=ofd_packets/00166086 [15:38:37]OFD Sender: To server: pG, [15:38:37]CommunicateWithHost lk.salyk.kg:30040 [15:38:37]ConnectInit lk.salyk.kg [15:38:42]ConnectInit Can't take IP for lk.salyk.kg [15:38:42]CommunicateWithHost connect error [15:38:42]CommunicateWithHost err = -1 [15:38:42]OFD Sender: Server communicate error [15:38:47]OFD Sender: Processing packet 166086 [packets to send 49, broken 47] [15:38:47]ProducePacketName [15:38:47]name=ofd_packets/00166086 [15:38:47]OFD Sender: To server: pG, [15:38:47]CommunicateWithHost lk.salyk.kg:30040 [15:38:47]ConnectInit lk.salyk.kg [15:38:52]ConnectInit Can't take IP for lk.salyk.kg [15:38:52]CommunicateWithHost connect error [15:38:52]CommunicateWithHost err = -1 [15:38:52]OFD Sender: Server communicate error [15:38:57]OFD Sender: Processing packet 166086 [packets to send 49, broken 47] [15:38:57]ProducePacketName [15:38:57]name=ofd_packets/00166086 [15:38:57]OFD Sender: To server: pG, [15:38:57]CommunicateWithHost lk.salyk.kg:30040 [15:38:57]ConnectInit lk.salyk.kg [15:39:02]ConnectInit Can't take IP for lk.salyk.kg [15:39:02]CommunicateWithHost connect error [15:39:02]CommunicateWithHost err = -1 [15:39:02]OFD Sender: Server communicate error [15:39:02]accept exits with 6 [15:39:02]New connection [15:39:02]New thread 3066920292 created [15:39:02]Thread 3066776932 joined [15:39:02]Waiting for new connection... [15:39:02] Sock 6.Parse request [15:39:02]Sock 6.Check first char [15:39:02]Sock 6.First char is OK [15:39:02]request: POST /json_proto HTTP/1.0 [15:39:02]Method: POST [15:39:02]URL: /json_proto [15:39:02]Method is POST - this is cgi request [15:39:02]url: /json_proto [15:39:02]query_string will be loaded in cgi processing [15:39:02]execute_cgi json_proto POST (null) [15:39:02]execute_cgi path=json_proto method=POST [15:39:02]POST find Content-Length [15:39:02]Host: 172.17.53.195:8080 [15:39:02]Content-Length: 678 [15:39:02]Content-Type: application/json [15:39:02] [15:39:02]POST finish read [15:39:02]Found Content-Length = 678 [15:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:02]execute_script... [15:39: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)220659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:02]POST & json_proto [15:39:02]process_json_proto [15:39:02]json parsed OK: [15:39:02]protocol is kg_v1.0 [15:39:02]action value=close_receipt [15:39:02]process_action close_receipt [15:39:02]cmd_close_receipt [15:39:02]MH_GetDate [15:39:02]Write to MH i2c: F0 00 00 66 63 B8 [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: F0 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: F0 09 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: F0 09 00 66 63 00 A9 75 16 67 21 48 4A 65 74 [15:39:02]GetLastDocTimeStamp 1729525124 [15:39:02]current date 1729525161 [15:39:02]FM_GetShiftState [15:39:02]SAM_PROTO_GetShiftState [15:39:02]wFMCommunicate request_size=4 [15:39:02]MH_SAM_APDU [15:39:02]CAPDU: 80 13 01 00 [15:39:02]Write to MH i2c: E2 08 00 67 63 80 13 01 00 00 00 00 00 47 [15:39:02]Write i2c OK [15:39:02]MH_I2C_Read... [15:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:02]Read from MH i2c: E2 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 0E 00 [15:39:02]MH_I2C_Read... [15:39:02]Read from MH i2c: E2 0E 00 67 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 50 [15:39:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:39:02]wFMCommunicate OK [15:39:02]SAM_PROTO_GetShiftState done [15:39:02]FM_GetShiftState done [15:39:02]opened in 1729470944 [15:39:02]opened+sec_in_day 1729557344 [15:39:02]quantity*price = 80012 [15:39:02]sum+1 = 80013 [15:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 199 21.10.2024 15:39 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166088 ФПД: 271844806983936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166088&fm=271844806983936&tin=02508201610067®Number=0000000000091764&sum=80000 [15:39:03]StoreToDocumentArchive [15:39:03]shift 535 fd 166088 [15:39:03]save to /storage/0535/doc_00166088 [15:39:03]save last doc name /storage/0535/doc_00166088 to /storage/kkm_last_doc_name [15:39:03]save OK [15:39:03]Clear old archive folders... [15:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:39:03]tlvbuf is 01A017C0 [15:39:03]SAM_PROTO_ClearQueue [15:39:03]wFMCommunicate request_size=4 [15:39:03]MH_SAM_APDU [15:39:03]CAPDU: 80 09 00 00 [15:39:03]Write to MH i2c: E2 08 00 74 63 80 09 00 00 00 00 00 00 49 [15:39:03]Write i2c OK [15:39:03]MH_I2C_Read... [15:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:03]Read from MH i2c: E2 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: E2 03 00 [15:39:03]MH_I2C_Read... [15:39:03]Read from MH i2c: E2 03 00 74 63 00 90 00 4B [15:39:03]RAPDU: 90 00 [15:39:03]wFMCommunicate OK [15:39:03]SAM_PROTO_ClearQueue done [15:39:03]KKMCreateOFDPacket [15:39:03]OFDProtocolAddRootSTLVToBuf [15:39:03]FM_MakeSignedData [15:39:03]FM_MakeSignedData [15:39:03]SAM_PROTO_SignData [15:39:03]wFMCommunicate request_size=4 [15:39:03]MH_SAM_APDU [15:39:03]CAPDU: 80 0D 01 02 [15:39:03]Write to MH i2c: E2 08 00 75 63 80 0D 01 02 00 00 00 00 51 [15:39:03]Write i2c OK [15:39:03]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 75 63 00 90 00 4C [15:39:04]RAPDU: 90 00 [15:39:04]wFMCommunicate OK [15:39:04]wFMCommunicate request_size=255 [15:39:04]MH_SAM_APDU [15:39: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A9 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 88 02 00 35 04 06 00 F7 [15:39:04]Write to MH i2c: E2 02 01 76 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A9 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 88 02 00 35 04 06 00 F7 00 00 97 [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 76 63 00 90 00 4D [15:39:04]RAPDU: 90 00 [15:39:04]wFMCommunicate OK [15:39:04]wFMCommunicate request_size=10 [15:39:04]MH_SAM_APDU [15:39:04]CAPDU: 80 0D 02 02 05 3D CD 27 81 00 [15:39:04]Write to MH i2c: E2 0D 00 77 63 80 0D 02 02 05 00 3D CD 27 81 00 00 00 10 [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 03 00 77 63 00 90 00 4E [15:39:04]RAPDU: 90 00 [15:39:04]wFMCommunicate OK [15:39:04]wFMCommunicate request_size=4 [15:39:04]MH_SAM_APDU [15:39:04]CAPDU: 80 0D 03 02 [15:39:04]Write to MH i2c: E2 08 00 78 63 80 0D 03 02 00 00 00 00 56 [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 0B 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 0B 00 78 63 00 7B C8 7D FF C5 65 A7 D5 90 00 BC [15:39:04]RAPDU: 7B C8 7D FF C5 65 A7 D5 90 00 [15:39:04]wFMCommunicate OK [15:39:04]SAM_PROTO_SignData done [15:39:04]FM_MakeSignedData done [15:39:04]CreateOFDProtocolMessage [15:39:04]wFMCommunicate request_size=4 [15:39:04]MH_SAM_APDU [15:39:04]CAPDU: 80 11 00 00 [15:39:04]Write to MH i2c: E2 08 00 79 63 80 11 00 00 00 00 00 00 56 [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:04]Read from MH i2c: E2 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 17 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: E2 17 00 79 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [15:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:39:04]wFMCommunicate OK [15:39:04]CreateOFDProtocolMessage done [15:39:04]OFDSenderStorePacket 166088 [15:39:04]StoreOFDPacket docnum=166088 [15:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AD C4 07 01 B7 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A9 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 88 02 00 35 04 06 00 F7 3D CD 27 81 00 7B C8 7D FF C5 65 A7 D5 [15:39:04]CheckFolder [15:39:04]dirname=/storage/ofd_packets [15:39:04]CheckFolder done [15:39:04]ProducePacketName [15:39:04]name=ofd_packets/00166088 [15:39:04]NVStorageSaveData ofd_packets/00166088 [15:39:04]File name is /storage/ofd_packets/00166088 [15:39:04]Write 301 bytes [15:39:04]NVStorageSaveData done [15:39:04]OFDSenderStorePacket done [15:39:04]KKMCreateOFDPacket done [15:39:04]NVStorageSaveData kkm_last_timestamp [15:39:04]File name is /storage/kkm_last_timestamp [15:39:04]Write 4 bytes [15:39:04]NVStorageSaveData done [15:39:04]ExternCall_PrintAddStr [15:39:04]wPrintStart [15:39:04]Write to MH i2c: 01 00 00 7A 63 DD [15:39:04]Write i2c OK [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: 01 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: 01 07 00 [15:39:04]MH_I2C_Read... [15:39:04]Read from MH i2c: 01 07 00 7A 63 00 00 00 00 00 FF 0F F2 [15:39:04]RasterBufferAndPrint [15:39:04]line Счет N : (1)220659 [15:39:04]line ИНН: 02508201610067 [15:39:04]line Контрольно-Кассовый Чек [15:39:04]line ПРОДАЖА [15:39:04]line ТРК (МРК, ГНК) : 43 [15:39:04]line Товар: 2710124130 [15:39:04]line Аи-92-К-5 [15:39:04]line 11.960 * 66.90 [15:39:04]line = 800.12 [15:39:04]line НДС 12% НСП 1% [15:39:04]line > о реализуемом товаре [15:39:04]line ОКРУГЛЕНИЕ: -0.12 [15:39:04]line ИТОГО: 800.00 [15:39:04]line Внесено: 800.00 [15:39:04]line СДАЧА: 0.00 [15:39:04]line НСП 1% : 7.08 [15:39:04]line НДС 12% : 84.97 [15:39:04]line Наличными: 800.00 [15:39:04]line Безнал.: 0.00 [15:39:04]line Место: АЗС № 161 "Партнер Нефть" [15:39:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:39:04]line СНО: Общий режим [15:39:04]line Чек 199 21.10.2024 15:39 [15:39:04]line Смена: 535 ФФД: 1.0 [15:39:04]line ЗНМ: 0300000104 [15:39:04]line РНМ: 0000000000091764 [15:39:04]line Версия ККМ: 001 [15:39:04]line ФМ: 0000000000871759 [15:39:04]line ФД: 166088 [15:39:04]line ФПД: 271844806983936 [15:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T153921&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166088&fm=271844806983936&tin=02508201610067®Number=0000000000091764&sum=80000 [15:39:04]OFD Sender: Processing packet 166086 [packets to send 50, broken 47] [15:39:04]ProducePacketName [15:39:04]name=ofd_packets/00166086 [15:39:04]OFD Sender: To server: pG, [15:39:04]CommunicateWithHost lk.salyk.kg:30040 [15:39:04]ConnectInit lk.salyk.kg [15:39:04]written 0, free lines is 4095 [15:39:05]Write to MH i2c: 01 00 00 A5 63 08 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 07 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: 01 07 00 A5 63 00 00 00 00 00 D8 0C F3 [15:39:05]RasterBufferAndPrint [15:39:05]line [15:39:05]line [15:39:05]line [15:39:05]line [15:39:05]line [15:39:05]written 0, free lines is 3317 [15:39:05]MH_Cut [15:39:05]Write to MH i2c: D1 01 00 AC 63 01 E1 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: D1 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: D1 01 00 [15:39:05]MH_I2C_Read... [15:39:05]Read from MH i2c: D1 01 00 AC 63 00 E0 [15:39:05]Write to MH i2c: 01 00 00 AD 63 10 [15:39:05]Write i2c OK [15:39:05]MH_I2C_Read... [15:39:06]*** Cut start [15:39:06]*** Partial cut [15:39:06]*** CUTSNS_PIN = 1 [15:39:06]*** CUTSNS_PIN = 0 [15:39:06]*** Brake cut motor [15:39:06]Read from MH i2c: 01 [15:39:06]MH_I2C_Read... [15:39:06]*** Stop cut motor [15:39:06]*** Cut end [15:39:06]Read from MH i2c: 01 07 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: 01 07 00 AD 63 00 00 00 00 00 FF 0F 25 [15:39:06]process_action close_receipt done [15:39:06]requested_data is exist [15:39:06]produce_requested_data [15:39:06]requested_item fm.sn is exist - process it [15:39:06]wFMCommunicate request_size=4 [15:39:06]MH_SAM_APDU [15:39:06]CAPDU: 80 11 00 00 [15:39:06]Write to MH i2c: E2 08 00 AE 63 80 11 00 00 00 00 00 00 8B [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:06]Read from MH i2c: E2 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: E2 17 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: E2 17 00 AE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E3 [15:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:39:06]wFMCommunicate OK [15:39:06]requested_item fd.num is exist - process it [15:39:06]SAM_PROTO_GetFieldsCounters [15:39:06]wFMCommunicate request_size=4 [15:39:06]MH_SAM_APDU [15:39:06]CAPDU: 80 13 00 00 [15:39:06]Write to MH i2c: E2 08 00 AF 63 80 13 00 00 00 00 00 00 8E [15:39:06]Write i2c OK [15:39:06]MH_I2C_Read... [15:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:06]Read from MH i2c: E2 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: E2 62 00 [15:39:06]MH_I2C_Read... [15:39:06]Read from MH i2c: E2 62 00 AF 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [15:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:07]wFMCommunicate OK [15:39:07]SAM_PROTO_GetFieldsCounters done [15:39:07]requested_item shift.num is exist - process it [15:39:07]requested_item shift.opened is exist - process it [15:39:07]req_shift_opened [15:39:07]FM_GetShiftState [15:39:07]SAM_PROTO_GetShiftState [15:39:07]wFMCommunicate request_size=4 [15:39:07]MH_SAM_APDU [15:39:07]CAPDU: 80 13 01 00 [15:39:07]Write to MH i2c: E2 08 00 B0 63 80 13 01 00 00 00 00 00 90 [15:39:07]Write i2c OK [15:39:07]MH_I2C_Read... [15:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:07]Read from MH i2c: E2 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 0E 00 [15:39:07]MH_I2C_Read... [15:39:07]Read from MH i2c: E2 0E 00 B0 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 99 [15:39:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:39:07]wFMCommunicate OK [15:39:07]SAM_PROTO_GetShiftState done [15:39:07]FM_GetShiftState done [15:39:07]req_shift_opened done [15:39:07]requested_item shift.open_date is exist - process it [15:39:07]req_shift_open_date [15:39:07]req_shift_open_date done [15:39:07]produce_requested_data done [15:39:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166088,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:39:07]process_action_free close_receipt [15:39:07]json_value_free [15:39:07]json_value_free done [15:39:07]process_json_proto returns [15:39:07]Send response to host [15:39:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166088,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:39:07]free response buf [15:39:07]execute_script done [15:39:07]execute_script returns [15:39:07]free content buf [15:39:07]Sock 6.Close socket [15:39:07]Sock 6.Thread stoped [15:39:09]ConnectInit Can't take IP for lk.salyk.kg [15:39:09]CommunicateWithHost connect error [15:39:09]CommunicateWithHost err = -1 [15:39:09]OFD Sender: Server communicate error [15:39:14]OFD Sender: Processing packet 166086 [packets to send 50, broken 47] [15:39:14]ProducePacketName [15:39:14]name=ofd_packets/00166086 [15:39:14]OFD Sender: To server: pG, [15:39:14]CommunicateWithHost lk.salyk.kg:30040 [15:39:14]ConnectInit lk.salyk.kg [15:39:19]ConnectInit Can't take IP for lk.salyk.kg [15:39:19]CommunicateWithHost connect error [15:39:19]CommunicateWithHost err = -1 [15:39:19]OFD Sender: Server communicate error [15:39:24]OFD Sender: Processing packet 166086 [packets to send 50, broken 47] [15:39:24]ProducePacketName [15:39:24]name=ofd_packets/00166086 [15:39:24]OFD Sender: To server: pG, [15:39:24]CommunicateWithHost lk.salyk.kg:30040 [15:39:24]ConnectInit lk.salyk.kg [15:39:29]ConnectInit Can't take IP for lk.salyk.kg [15:39:29]CommunicateWithHost connect error [15:39:29]CommunicateWithHost err = -1 [15:39:29]OFD Sender: Server communicate error [15:39:34]OFD Sender: Processing packet 166086 [packets to send 50, broken 47] [15:39:34]ProducePacketName [15:39:34]name=ofd_packets/00166086 [15:39:34]OFD Sender: To server: pG, [15:39:34]CommunicateWithHost lk.salyk.kg:30040 [15:39:34]ConnectInit lk.salyk.kg [15:39:34]Connected sock=6 [15:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 04 15 07 01 5D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 5C 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 88 02 00 35 04 06 00 8B 13 8F B6 48 4C 94 83 7E 99 B3 45 BE 3A [15:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD 1C 47 00 1A D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C6 88 02 00 F4 03 04 00 35 1C 16 67 B6 04 01 00 00 41 4A 12 81 16 B9 A1 5D [15:39:35]CommunicateWithHost err = 0 [15:39:35]CheckOFDResponse [15:39:35]1017 (14) - 77093643461234 [15:39:35]1041 (16) - 0000000000871759 [15:39:35]1040 (4) - 166086 [15:39:35]1012 (4) - 21.10.2024 09:17 [15:39:35]1206 (1) - 0 [15:39:35]OFD Sender: Remove packet 166086 [15:39:35]ProducePacketName [15:39:35]name=ofd_packets/00166086 [15:39:35]NVStorageDeleteData [15:39:35]OFD Sender: Processing packet 166087 [packets to send 49, broken 47] [15:39:35]ProducePacketName [15:39:35]name=ofd_packets/00166087 [15:39:35]OFD Sender: To server: pG, [15:39:35]CommunicateWithHost lk.salyk.kg:30040 [15:39:35]ConnectInit lk.salyk.kg [15:39:35]Connected sock=6 [15:39:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 18 5A 07 01 B8 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 C6 00 00 00 F4 03 04 00 84 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 88 02 00 35 04 06 00 C3 DB 25 F7 E4 44 C3 65 FB AB 87 CF B3 0C [15:39:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 65 6A 47 00 48 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C7 88 02 00 F4 03 04 00 36 1C 16 67 B6 04 01 00 00 B0 B9 C9 6C D7 00 9B 1D [15:39:36]CommunicateWithHost err = 0 [15:39:36]CheckOFDResponse [15:39:36]1017 (14) - 77093643461234 [15:39:36]1041 (16) - 0000000000871759 [15:39:36]1040 (4) - 166087 [15:39:36]1012 (4) - 21.10.2024 09:17 [15:39:36]1206 (1) - 0 [15:39:36]OFD Sender: Remove packet 166087 [15:39:36]ProducePacketName [15:39:36]name=ofd_packets/00166087 [15:39:36]NVStorageDeleteData [15:39:36]OFD Sender: Processing packet 166088 [packets to send 48, broken 47] [15:39:36]ProducePacketName [15:39:36]name=ofd_packets/00166088 [15:39:36]OFD Sender: To server: pG, [15:39:36]CommunicateWithHost lk.salyk.kg:30040 [15:39:36]ConnectInit lk.salyk.kg [15:39:36]Connected sock=6 [15:39:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AD C4 07 01 B7 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 A9 75 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 88 02 00 35 04 06 00 F7 3D CD 27 81 00 7B C8 7D FF C5 65 A7 D5 [15:39:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E 62 47 00 5D 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C8 88 02 00 F4 03 04 00 37 1C 16 67 B6 04 01 00 00 BC 54 C0 B6 DE 76 E5 7A [15:39:37]CommunicateWithHost err = 0 [15:39:37]CheckOFDResponse [15:39:37]1017 (14) - 77093643461234 [15:39:37]1041 (16) - 0000000000871759 [15:39:37]1040 (4) - 166088 [15:39:37]1012 (4) - 21.10.2024 09:17 [15:39:37]1206 (1) - 0 [15:39:37]OFD Sender: Remove packet 166088 [15:39:37]ProducePacketName [15:39:37]name=ofd_packets/00166088 [15:39:37]NVStorageDeleteData [15:39:37]OFD Sender: No OFD packet to send [15:39:40]ConnectInit Can't connect to host [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:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:45]accept exits with 7 [15:43:45]New connection [15:43:45]New thread 3066776932 created [15:43:45]Thread 3066920292 joined [15:43:45]Waiting for new connection... [15:43:45] Sock 7.Parse request [15:43:45]Sock 7.Check first char [15:43:45]Sock 7.First char is OK [15:43:45]request: POST /json_proto HTTP/1.0 [15:43:45]Method: POST [15:43:45]URL: /json_proto [15:43:45]Method is POST - this is cgi request [15:43:45]url: /json_proto [15:43:45]query_string will be loaded in cgi processing [15:43:45]execute_cgi json_proto POST (null) [15:43:45]execute_cgi path=json_proto method=POST [15:43:45]POST find Content-Length [15:43:45]Host: 172.17.53.195:8080 [15:43:45]Content-Length: 766 [15:43:45]Content-Type: application/json [15:43:45] [15:43:45]POST finish read [15:43:45]Found Content-Length = 766 [15:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:45]execute_script... [15:43: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)220660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:45]POST & json_proto [15:43:45]process_json_proto [15:43:45]json parsed OK: [15:43:45]protocol is kg_v1.0 [15:43:45]action value=close_receipt [15:43:45]process_action close_receipt [15:43:45]cmd_close_receipt [15:43:45]MH_GetDate [15:43:45]Write to MH i2c: F0 00 00 B1 63 03 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 09 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: F0 09 00 B1 63 00 C4 76 16 67 21 48 4A 65 DB [15:43:45]GetLastDocTimeStamp 1729525161 [15:43:45]current date 1729525444 [15:43:45]FM_GetShiftState [15:43:45]SAM_PROTO_GetShiftState [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 13 01 00 [15:43:45]Write to MH i2c: E2 08 00 B2 63 80 13 01 00 00 00 00 00 92 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:46]Read from MH i2c: E2 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0E 00 [15:43:46]MH_I2C_Read... [15:43:46]Read from MH i2c: E2 0E 00 B2 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9B [15:43:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:43:46]wFMCommunicate OK [15:43:46]SAM_PROTO_GetShiftState done [15:43:46]FM_GetShiftState done [15:43:46]opened in 1729470944 [15:43:46]opened+sec_in_day 1729557344 [15:43:46]quantity*price = 300075 [15:43:46]sum+1 = 300077 [15:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 200 21.10.2024 15:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166089 ФПД: 257746794699423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166089&fm=257746794699423&tin=02508201610067®Number=0000000000091764&sum=300076 [15:43:47]StoreToDocumentArchive [15:43:47]shift 535 fd 166089 [15:43:47]save to /storage/0535/doc_00166089 [15:43:47]save last doc name /storage/0535/doc_00166089 to /storage/kkm_last_doc_name [15:43:47]save OK [15:43:47]Clear old archive folders... [15:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:43:47]tlvbuf is 014FE8F0 [15:43:47]SAM_PROTO_ClearQueue [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 09 00 00 [15:43:47]Write to MH i2c: E2 08 00 BF 63 80 09 00 00 00 00 00 00 94 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 BF 63 00 90 00 96 [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_ClearQueue done [15:43:47]KKMCreateOFDPacket [15:43:47]OFDProtocolAddRootSTLVToBuf [15:43:47]FM_MakeSignedData [15:43:47]FM_MakeSignedData [15:43:47]SAM_PROTO_SignData [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 01 02 [15:43:47]Write to MH i2c: E2 08 00 C0 63 80 0D 01 02 00 00 00 00 9C [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 C0 63 00 90 00 97 [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]wFMCommunicate request_size=255 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 C4 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 88 02 00 35 04 06 00 EA 6B 5A 23 [15:43:47]Write to MH i2c: E2 02 01 C1 63 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 C4 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 88 02 00 35 04 06 00 EA 6B 5A 23 00 00 B6 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 C1 63 00 90 00 98 [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]wFMCommunicate request_size=7 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 02 02 02 DA 9F [15:43:47]Write to MH i2c: E2 0A 00 C2 63 80 0D 02 02 02 00 DA 9F 00 00 1C [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 03 00 C2 63 00 90 00 99 [15:43:47]RAPDU: 90 00 [15:43:47]wFMCommunicate OK [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 0D 03 02 [15:43:47]Write to MH i2c: E2 08 00 C3 63 80 0D 03 02 00 00 00 00 A1 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0B 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0B 00 C3 63 00 0C 28 89 11 AE F8 D9 E2 90 00 D1 [15:43:47]RAPDU: 0C 28 89 11 AE F8 D9 E2 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_SignData done [15:43:47]FM_MakeSignedData done [15:43:47]CreateOFDProtocolMessage [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 11 00 00 [15:43:47]Write to MH i2c: E2 08 00 C4 63 80 11 00 00 00 00 00 00 A1 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 C4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [15:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:43:47]wFMCommunicate OK [15:43:47]CreateOFDProtocolMessage done [15:43:47]OFDSenderStorePacket 166089 [15:43:47]StoreOFDPacket docnum=166089 [15:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD 45 04 01 22 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 C4 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 88 02 00 35 04 06 00 EA 6B 5A 23 DA 9F 0C 28 89 11 AE F8 D9 E2 [15:43:47]CheckFolder [15:43:47]dirname=/storage/ofd_packets [15:43:47]CheckFolder done [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00166089 [15:43:47]NVStorageSaveData ofd_packets/00166089 [15:43:47]File name is /storage/ofd_packets/00166089 [15:43:47]Write 298 bytes [15:43:47]NVStorageSaveData done [15:43:47]OFDSenderStorePacket done [15:43:47]KKMCreateOFDPacket done [15:43:47]NVStorageSaveData kkm_last_timestamp [15:43:47]File name is /storage/kkm_last_timestamp [15:43:47]Write 4 bytes [15:43:47]NVStorageSaveData done [15:43:47]ExternCall_PrintAddStr [15:43:47]wPrintStart [15:43:47]Write to MH i2c: 01 00 00 C5 63 28 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 C5 63 00 00 00 00 00 FF 0F 3D [15:43:47]RasterBufferAndPrint [15:43:47]line Счет N : (1)220660 [15:43:47]line ИНН: 02508201610067 [15:43:47]line Контрольно-Кассовый Чек [15:43:47]line ПРОДАЖА [15:43:47]line ТРК (МРК, ГНК) : 11 [15:43:47]line Товар: 2710194210 [15:43:47]line ДТ-К-5 [15:43:47]line 39.380 * 76.20 [15:43:47]line = 3000.76 [15:43:47]line НДС 12% НСП 1% [15:43:47]line > о реализуемом товаре [15:43:47]line ИТОГО: 3000.76 [15:43:47]line НСП 1% : 26.55 [15:43:47]line НДС 12% : 318.66 [15:43:47]line Наличными: 0.00 [15:43:47]line Безнал.: 3000.76 [15:43:47]line Место: АЗС № 161 "Партнер Нефть" [15:43:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:43:47]line СНО: Общий режим [15:43:47]line Чек 200 21.10.2024 15:44 [15:43:47]line Смена: 535 ФФД: 1.0 [15:43:47]line ЗНМ: 0300000104 [15:43:47]line РНМ: 0000000000091764 [15:43:47]line Версия ККМ: 001 [15:43:47]line Платежная система: Mbank [15:43:47]line ФМ: 0000000000871759 [15:43:47]line ФД: 166089 [15:43:47]line ФПД: 257746794699423 [15:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166089&fm=257746794699423&tin=02508201610067®Number=0000000000091764&sum=300076 [15:43:47]written 0, free lines is 4095 [15:43:47]OFD Sender: Processing packet 166089 [packets to send 48, broken 47] [15:43:47]ProducePacketName [15:43:47]name=ofd_packets/00166089 [15:43:47]OFD Sender: To server: pG, [15:43:47]CommunicateWithHost lk.salyk.kg:30040 [15:43:47]ConnectInit lk.salyk.kg [15:43:47]Connected sock=6 [15:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FD 45 04 01 22 E7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 C4 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 88 02 00 35 04 06 00 EA 6B 5A 23 DA 9F 0C 28 89 11 AE F8 D9 E2 [15:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 55 5F 47 00 66 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 C9 88 02 00 F4 03 04 00 32 1D 16 67 B6 04 01 00 00 BA 73 D7 D1 22 18 C3 58 [15:43:48]CommunicateWithHost err = 0 [15:43:48]CheckOFDResponse [15:43:48]1017 (14) - 77093643461234 [15:43:48]1041 (16) - 0000000000871759 [15:43:48]1040 (4) - 166089 [15:43:48]1012 (4) - 21.10.2024 09:21 [15:43:48]1206 (1) - 0 [15:43:48]OFD Sender: Remove packet 166089 [15:43:48]ProducePacketName [15:43:48]name=ofd_packets/00166089 [15:43:48]NVStorageDeleteData [15:43:48]Write to MH i2c: 01 00 00 EE 63 51 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: 01 07 00 EE 63 00 00 00 00 00 01 0D 66 [15:43:48]RasterBufferAndPrint [15:43:48]line [15:43:48]line [15:43:48]line [15:43:48]line [15:43:48]line [15:43:48]written 0, free lines is 3336 [15:43:48]MH_Cut [15:43:48]Write to MH i2c: D1 01 00 F5 63 01 2A [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: D1 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: D1 01 00 [15:43:48]MH_I2C_Read... [15:43:48]Read from MH i2c: D1 01 00 F5 63 00 29 [15:43:48]Write to MH i2c: 01 00 00 F6 63 59 [15:43:48]Write i2c OK [15:43:48]MH_I2C_Read... [15:43:48]OFD Sender: No OFD packet to send [15:43:48]*** Cut start [15:43:48]*** Partial cut [15:43:48]*** CUTSNS_PIN = 1 [15:43:48]*** CUTSNS_PIN = 0 [15:43:49]*** Brake cut motor [15:43:49]Read from MH i2c: 01 [15:43:49]MH_I2C_Read... [15:43:49]*** Stop cut motor [15:43:49]*** Cut end [15:43:49]Read from MH i2c: 01 07 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: 01 07 00 F6 63 00 00 00 00 00 FF 0F 6E [15:43:49]process_action close_receipt done [15:43:49]requested_data is exist [15:43:49]produce_requested_data [15:43:49]requested_item fm.sn is exist - process it [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 11 00 00 [15:43:49]Write to MH i2c: E2 08 00 F7 63 80 11 00 00 00 00 00 00 D4 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 17 00 F7 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [15:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:43:49]wFMCommunicate OK [15:43:49]requested_item fd.num is exist - process it [15:43:49]SAM_PROTO_GetFieldsCounters [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 00 00 [15:43:49]Write to MH i2c: E2 08 00 F8 63 80 13 00 00 00 00 00 00 D7 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 62 00 F8 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [15:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 C9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetFieldsCounters done [15:43:49]requested_item shift.num is exist - process it [15:43:49]requested_item shift.opened is exist - process it [15:43:49]req_shift_opened [15:43:49]FM_GetShiftState [15:43:49]SAM_PROTO_GetShiftState [15:43:49]wFMCommunicate request_size=4 [15:43:49]MH_SAM_APDU [15:43:49]CAPDU: 80 13 01 00 [15:43:49]Write to MH i2c: E2 08 00 F9 63 80 13 01 00 00 00 00 00 D9 [15:43:49]Write i2c OK [15:43:49]MH_I2C_Read... [15:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:49]Read from MH i2c: E2 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 [15:43:49]MH_I2C_Read... [15:43:49]Read from MH i2c: E2 0E 00 F9 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E2 [15:43:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:43:49]wFMCommunicate OK [15:43:49]SAM_PROTO_GetShiftState done [15:43:49]FM_GetShiftState done [15:43:49]req_shift_opened done [15:43:49]requested_item shift.open_date is exist - process it [15:43:49]req_shift_open_date [15:43:49]req_shift_open_date done [15:43:49]produce_requested_data done [15:43:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166089,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:43:49]process_action_free close_receipt [15:43:49]json_value_free [15:43:49]json_value_free done [15:43:49]process_json_proto returns [15:43:49]Send response to host [15:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166089,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:43:49]free response buf [15:43:49]execute_script done [15:43:49]execute_script returns [15:43:49]free content buf [15:43:49]Sock 7.Close socket [15:43:49]Sock 7.Thread stoped [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:43:59]accept exits with 5 [15:43:59]New connection [15:43:59]New thread 3066920292 created [15:43:59]Thread 3066776932 joined [15:43:59]Waiting for new connection... [15:43:59] Sock 5.Parse request [15:43:59]Sock 5.Check first char [15:43:59]Sock 5.First char is OK [15:43:59]request: POST /json_proto HTTP/1.0 [15:43:59]Method: POST [15:43:59]URL: /json_proto [15:43:59]Method is POST - this is cgi request [15:43:59]url: /json_proto [15:43:59]query_string will be loaded in cgi processing [15:43:59]execute_cgi json_proto POST (null) [15:43:59]execute_cgi path=json_proto method=POST [15:43:59]POST find Content-Length [15:43:59]Host: 172.17.53.195:8080 [15:43:59]Content-Length: 677 [15:43:59]Content-Type: application/json [15:43:59] [15:43:59]POST finish read [15:43:59]Found Content-Length = 677 [15:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:59]execute_script... [15:43: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)220661", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:59]POST & json_proto [15:43:59]process_json_proto [15:43:59]json parsed OK: [15:43:59]protocol is kg_v1.0 [15:43:59]action value=close_receipt [15:43:59]process_action close_receipt [15:43:59]cmd_close_receipt [15:43:59]MH_GetDate [15:43:59]Write to MH i2c: F0 00 00 FA 63 4C [15:43:59]Write i2c OK [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: F0 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: F0 09 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: F0 09 00 FA 63 00 D2 76 16 67 21 48 4A 65 32 [15:43:59]GetLastDocTimeStamp 1729525444 [15:43:59]current date 1729525458 [15:43:59]FM_GetShiftState [15:43:59]SAM_PROTO_GetShiftState [15:43:59]wFMCommunicate request_size=4 [15:43:59]MH_SAM_APDU [15:43:59]CAPDU: 80 13 01 00 [15:43:59]Write to MH i2c: E2 08 00 FB 63 80 13 01 00 00 00 00 00 DB [15:43:59]Write i2c OK [15:43:59]MH_I2C_Read... [15:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:59]Read from MH i2c: E2 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 0E 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 0E 00 FB 63 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E4 [15:43:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:43:59]wFMCommunicate OK [15:43:59]SAM_PROTO_GetShiftState done [15:43:59]FM_GetShiftState done [15:43:59]opened in 1729470944 [15:43:59]opened+sec_in_day 1729557344 [15:43:59]quantity*price = 50041 [15:43:59]sum+1 = 50042 [15:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 201 21.10.2024 15:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166090 ФПД: 36702830877609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154418&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166090&fm=36702830877609&tin=02508201610067®Number=0000000000091764&sum=50000 [15:44:00]StoreToDocumentArchive [15:44:00]shift 535 fd 166090 [15:44:00]save to /storage/0535/doc_00166090 [15:44:00]save last doc name /storage/0535/doc_00166090 to /storage/kkm_last_doc_name [15:44:00]save OK [15:44:00]Clear old archive folders... [15:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:00]tlvbuf is 0162D010 [15:44:00]SAM_PROTO_ClearQueue [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 09 00 00 [15:44:00]Write to MH i2c: E2 08 00 08 64 80 09 00 00 00 00 00 00 DE [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 08 64 00 90 00 E0 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]SAM_PROTO_ClearQueue done [15:44:00]KKMCreateOFDPacket [15:44:00]OFDProtocolAddRootSTLVToBuf [15:44:00]FM_MakeSignedData [15:44:00]FM_MakeSignedData [15:44:00]SAM_PROTO_SignData [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 0D 01 02 [15:44:00]Write to MH i2c: E2 08 00 09 64 80 0D 01 02 00 00 00 00 E6 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 09 64 00 90 00 E1 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]wFMCommunicate request_size=255 [15:44:00]MH_SAM_APDU [15:44: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 88 02 00 35 04 06 00 21 [15:44:00]Write to MH i2c: E2 02 01 0A 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 D2 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 88 02 00 35 04 06 00 21 00 00 98 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 0A 64 00 90 00 E2 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]wFMCommunicate request_size=10 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 0D 02 02 05 61 8B 32 5B A9 [15:44:00]Write to MH i2c: E2 0D 00 0B 64 80 0D 02 02 05 00 61 8B 32 5B A9 00 00 15 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 0B 64 00 90 00 E3 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 0D 03 02 [15:44:00]Write to MH i2c: E2 08 00 0C 64 80 0D 03 02 00 00 00 00 EB [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 0B 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 0B 00 0C 64 00 91 EE 58 FF 74 62 BC 59 90 00 AD [15:44:00]RAPDU: 91 EE 58 FF 74 62 BC 59 90 00 [15:44:00]wFMCommunicate OK [15:44:00]SAM_PROTO_SignData done [15:44:00]FM_MakeSignedData done [15:44:00]CreateOFDProtocolMessage [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 11 00 00 [15:44:00]Write to MH i2c: E2 08 00 0D 64 80 11 00 00 00 00 00 00 EB [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 17 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 17 00 0D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [15:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:44:00]wFMCommunicate OK [15:44:00]CreateOFDProtocolMessage done [15:44:00]OFDSenderStorePacket 166090 [15:44:00]StoreOFDPacket docnum=166090 [15:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B AB 07 01 9F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 88 02 00 35 04 06 00 21 61 8B 32 5B A9 91 EE 58 FF 74 62 BC 59 [15:44:00]CheckFolder [15:44:00]dirname=/storage/ofd_packets [15:44:00]CheckFolder done [15:44:00]ProducePacketName [15:44:00]name=ofd_packets/00166090 [15:44:00]NVStorageSaveData ofd_packets/00166090 [15:44:00]File name is /storage/ofd_packets/00166090 [15:44:00]Write 301 bytes [15:44:00]NVStorageSaveData done [15:44:00]OFDSenderStorePacket done [15:44:00]KKMCreateOFDPacket done [15:44:00]NVStorageSaveData kkm_last_timestamp [15:44:00]File name is /storage/kkm_last_timestamp [15:44:00]Write 4 bytes [15:44:00]NVStorageSaveData done [15:44:00]ExternCall_PrintAddStr [15:44:00]wPrintStart [15:44:00]Write to MH i2c: 01 00 00 0E 64 72 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: 01 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: 01 07 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: 01 07 00 0E 64 00 00 00 00 00 FF 0F 87 [15:44:00]RasterBufferAndPrint [15:44:00]line Счет N : (1)220661 [15:44:00]line ИНН: 02508201610067 [15:44:00]line Контрольно-Кассовый Чек [15:44:00]line ПРОДАЖА [15:44:00]line ТРК (МРК, ГНК) : 23 [15:44:00]line Товар: 2710124130 [15:44:00]line Аи-92-К-5 [15:44:00]line 7.480 * 66.90 [15:44:00]line = 500.41 [15:44:00]line НДС 12% НСП 1% [15:44:00]line > о реализуемом товаре [15:44:00]line ОКРУГЛЕНИЕ: -0.41 [15:44:00]line ИТОГО: 500.00 [15:44:00]line Внесено: 500.00 [15:44:00]line СДАЧА: 0.00 [15:44:00]line НСП 1% : 4.43 [15:44:00]line НДС 12% : 53.14 [15:44:00]line Наличными: 500.00 [15:44:00]line Безнал.: 0.00 [15:44:00]line Место: АЗС № 161 "Партнер Нефть" [15:44:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:44:00]line СНО: Общий режим [15:44:00]line Чек 201 21.10.2024 15:44 [15:44:00]line Смена: 535 ФФД: 1.0 [15:44:00]line ЗНМ: 0300000104 [15:44:00]line РНМ: 0000000000091764 [15:44:00]line Версия ККМ: 001 [15:44:00]line ФМ: 0000000000871759 [15:44:00]line ФД: 166090 [15:44:00]line ФПД: 36702830877609 [15:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154418&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166090&fm=36702830877609&tin=02508201610067®Number=0000000000091764&sum=50000 [15:44:01]OFD Sender: Processing packet 166090 [packets to send 48, broken 47] [15:44:01]ProducePacketName [15:44:01]name=ofd_packets/00166090 [15:44:01]OFD Sender: To server: pG, [15:44:01]CommunicateWithHost lk.salyk.kg:30040 [15:44:01]ConnectInit lk.salyk.kg [15:44:01]written 0, free lines is 4095 [15:44:01]Connected sock=7 [15:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B AB 07 01 9F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 76 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 88 02 00 35 04 06 00 21 61 8B 32 5B A9 91 EE 58 FF 74 62 BC 59 [15:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1F F4 47 00 63 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CA 88 02 00 F4 03 04 00 40 1D 16 67 B6 04 01 00 00 0F 49 0C 01 82 F8 FF 0C [15:44:01]CommunicateWithHost err = 0 [15:44:01]CheckOFDResponse [15:44:01]1017 (14) - 77093643461234 [15:44:01]1041 (16) - 0000000000871759 [15:44:01]1040 (4) - 166090 [15:44:01]1012 (4) - 21.10.2024 09:22 [15:44:01]1206 (1) - 0 [15:44:01]OFD Sender: Remove packet 166090 [15:44:01]ProducePacketName [15:44:01]name=ofd_packets/00166090 [15:44:01]NVStorageDeleteData [15:44:01]Write to MH i2c: 01 00 00 39 64 9D [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: 01 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: 01 07 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: 01 07 00 39 64 00 00 00 00 00 E1 0C 91 [15:44:01]RasterBufferAndPrint [15:44:01]line [15:44:01]line [15:44:01]line [15:44:01]line [15:44:01]line [15:44:01]written 0, free lines is 3305 [15:44:01]MH_Cut [15:44:01]Write to MH i2c: D1 01 00 40 64 01 76 [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: D1 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: D1 01 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: D1 01 00 40 64 00 75 [15:44:01]Write to MH i2c: 01 00 00 41 64 A5 [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:02]OFD Sender: No OFD packet to send [15:44:02]*** Cut start [15:44:02]*** Partial cut [15:44:02]*** CUTSNS_PIN = 1 [15:44:02]*** CUTSNS_PIN = 0 [15:44:02]*** Brake cut motor [15:44:03]Read from MH i2c: 01 [15:44:03]MH_I2C_Read... [15:44:03]*** Stop cut motor [15:44:03]*** Cut end [15:44:03]Read from MH i2c: 01 07 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: 01 07 00 41 64 00 00 00 00 00 FF 0F BA [15:44:03]process_action close_receipt done [15:44:03]requested_data is exist [15:44:03]produce_requested_data [15:44:03]requested_item fm.sn is exist - process it [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 11 00 00 [15:44:03]Write to MH i2c: E2 08 00 42 64 80 11 00 00 00 00 00 00 20 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 17 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 17 00 42 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [15:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:44:03]wFMCommunicate OK [15:44:03]requested_item fd.num is exist - process it [15:44:03]SAM_PROTO_GetFieldsCounters [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 13 00 00 [15:44:03]Write to MH i2c: E2 08 00 43 64 80 13 00 00 00 00 00 00 23 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 62 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 62 00 43 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [15:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_GetFieldsCounters done [15:44:03]requested_item shift.num is exist - process it [15:44:03]requested_item shift.opened is exist - process it [15:44:03]req_shift_opened [15:44:03]FM_GetShiftState [15:44:03]SAM_PROTO_GetShiftState [15:44:03]wFMCommunicate request_size=4 [15:44:03]MH_SAM_APDU [15:44:03]CAPDU: 80 13 01 00 [15:44:03]Write to MH i2c: E2 08 00 44 64 80 13 01 00 00 00 00 00 25 [15:44:03]Write i2c OK [15:44:03]MH_I2C_Read... [15:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:03]Read from MH i2c: E2 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 [15:44:03]MH_I2C_Read... [15:44:03]Read from MH i2c: E2 0E 00 44 64 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2E [15:44:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:44:03]wFMCommunicate OK [15:44:03]SAM_PROTO_GetShiftState done [15:44:03]FM_GetShiftState done [15:44:03]req_shift_opened done [15:44:03]requested_item shift.open_date is exist - process it [15:44:03]req_shift_open_date [15:44:03]req_shift_open_date done [15:44:03]produce_requested_data done [15:44:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166090,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:44:03]process_action_free close_receipt [15:44:03]json_value_free [15:44:03]json_value_free done [15:44:03]process_json_proto returns [15:44:03]Send response to host [15:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166090,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:44:03]free response buf [15:44:03]execute_script done [15:44:03]execute_script returns [15:44:03]free content buf [15:44:03]Sock 5.Close socket [15:44:03]Sock 5.Thread stoped [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46: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:26]accept exits with 6 [15:48:26]New connection [15:48:26]New thread 3066776932 created [15:48:26]Thread 3066920292 joined [15:48:26]Waiting for new connection... [15:48:26] Sock 6.Parse request [15:48:26]Sock 6.Check first char [15:48:26]Sock 6.First char is OK [15:48:26]request: POST /json_proto HTTP/1.0 [15:48:26]Method: POST [15:48:26]URL: /json_proto [15:48:26]Method is POST - this is cgi request [15:48:26]url: /json_proto [15:48:26]query_string will be loaded in cgi processing [15:48:26]execute_cgi json_proto POST (null) [15:48:26]execute_cgi path=json_proto method=POST [15:48:26]POST find Content-Length [15:48:26]Host: 172.17.53.195:8080 [15:48:26]Content-Length: 679 [15:48:26]Content-Type: application/json [15:48:26] [15:48:26]POST finish read [15:48:26]Found Content-Length = 679 [15:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 48.560, "sum" : 3700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:26]execute_script... [15:48:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220662", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 48.560, "sum" : 3700.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3700.00, "total" : 3700.00, "payments": [ { "type": 0, "sum" : 3700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:26]POST & json_proto [15:48:26]process_json_proto [15:48:26]json parsed OK: [15:48:26]protocol is kg_v1.0 [15:48:26]action value=close_receipt [15:48:26]process_action close_receipt [15:48:26]cmd_close_receipt [15:48:26]MH_GetDate [15:48:26]Write to MH i2c: F0 00 00 45 64 98 [15:48:26]Write i2c OK [15:48:26]MH_I2C_Read... [15:48:26]Read from MH i2c: F0 [15:48:26]MH_I2C_Read... [15:48:26]Read from MH i2c: F0 09 00 [15:48:26]MH_I2C_Read... [15:48:26]Read from MH i2c: F0 09 00 45 64 00 DD 77 16 67 21 48 4A 65 8A [15:48:26]GetLastDocTimeStamp 1729525458 [15:48:26]current date 1729525725 [15:48:26]FM_GetShiftState [15:48:26]SAM_PROTO_GetShiftState [15:48:26]wFMCommunicate request_size=4 [15:48:26]MH_SAM_APDU [15:48:26]CAPDU: 80 13 01 00 [15:48:26]Write to MH i2c: E2 08 00 46 64 80 13 01 00 00 00 00 00 27 [15:48:26]Write i2c OK [15:48:26]MH_I2C_Read... [15:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:26]Read from MH i2c: E2 [15:48:26]MH_I2C_Read... [15:48:26]Read from MH i2c: E2 0E 00 [15:48:26]MH_I2C_Read... [15:48:26]Read from MH i2c: E2 0E 00 46 64 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 30 [15:48:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:48:26]wFMCommunicate OK [15:48:26]SAM_PROTO_GetShiftState done [15:48:26]FM_GetShiftState done [15:48:26]opened in 1729470944 [15:48:26]opened+sec_in_day 1729557344 [15:48:26]quantity*price = 370027 [15:48:26]sum+1 = 370028 [15:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 3700.00 Внесено: 3700.00 СДАЧА: 0.00 НСП 1% : 32.75 НДС 12% : 392.95 Наличными: 3700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 202 21.10.2024 15:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166091 ФПД: 180647670777789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166091&fm=180647670777789&tin=02508201610067®Number=0000000000091764&sum=370000 [15:48:27]StoreToDocumentArchive [15:48:27]shift 535 fd 166091 [15:48:27]save to /storage/0535/doc_00166091 [15:48:27]save last doc name /storage/0535/doc_00166091 to /storage/kkm_last_doc_name [15:48:27]save OK [15:48:27]Clear old archive folders... [15:48:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:48:27]tlvbuf is 0161C0D0 [15:48:27]SAM_PROTO_ClearQueue [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 09 00 00 [15:48:27]Write to MH i2c: E2 08 00 53 64 80 09 00 00 00 00 00 00 29 [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 53 64 00 90 00 2B [15:48:27]RAPDU: 90 00 [15:48:27]wFMCommunicate OK [15:48:27]SAM_PROTO_ClearQueue done [15:48:27]KKMCreateOFDPacket [15:48:27]OFDProtocolAddRootSTLVToBuf [15:48:27]FM_MakeSignedData [15:48:27]FM_MakeSignedData [15:48:27]SAM_PROTO_SignData [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 0D 01 02 [15:48:27]Write to MH i2c: E2 08 00 54 64 80 0D 01 02 00 00 00 00 31 [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 54 64 00 90 00 2C [15:48:27]RAPDU: 90 00 [15:48:27]wFMCommunicate OK [15:48:27]wFMCommunicate request_size=255 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DD 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 88 02 00 35 04 06 00 A4 4C 50 3F [15:48:27]Write to MH i2c: E2 02 01 55 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DD 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 88 02 00 35 04 06 00 A4 4C 50 3F 00 00 63 [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 55 64 00 90 00 2D [15:48:27]RAPDU: 90 00 [15:48:27]wFMCommunicate OK [15:48:27]wFMCommunicate request_size=7 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 0D 02 02 02 07 BD [15:48:27]Write to MH i2c: E2 0A 00 56 64 80 0D 02 02 02 00 07 BD 00 00 FC [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 03 00 56 64 00 90 00 2E [15:48:27]RAPDU: 90 00 [15:48:27]wFMCommunicate OK [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 0D 03 02 [15:48:27]Write to MH i2c: E2 08 00 57 64 80 0D 03 02 00 00 00 00 36 [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:27]Read from MH i2c: E2 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 0B 00 [15:48:27]MH_I2C_Read... [15:48:27]Read from MH i2c: E2 0B 00 57 64 00 84 DD 11 28 28 96 43 C2 90 00 94 [15:48:27]RAPDU: 84 DD 11 28 28 96 43 C2 90 00 [15:48:27]wFMCommunicate OK [15:48:27]SAM_PROTO_SignData done [15:48:27]FM_MakeSignedData done [15:48:27]CreateOFDProtocolMessage [15:48:27]wFMCommunicate request_size=4 [15:48:27]MH_SAM_APDU [15:48:27]CAPDU: 80 11 00 00 [15:48:27]Write to MH i2c: E2 08 00 58 64 80 11 00 00 00 00 00 00 36 [15:48:27]Write i2c OK [15:48:27]MH_I2C_Read... [15:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:28]Read from MH i2c: E2 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: E2 17 00 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: E2 17 00 58 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [15:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:48:28]wFMCommunicate OK [15:48:28]CreateOFDProtocolMessage done [15:48:28]OFDSenderStorePacket 166091 [15:48:28]StoreOFDPacket docnum=166091 [15:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0A 63 04 01 16 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DD 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 88 02 00 35 04 06 00 A4 4C 50 3F 07 BD 84 DD 11 28 28 96 43 C2 [15:48:28]CheckFolder [15:48:28]dirname=/storage/ofd_packets [15:48:28]CheckFolder done [15:48:28]ProducePacketName [15:48:28]name=ofd_packets/00166091 [15:48:28]NVStorageSaveData ofd_packets/00166091 [15:48:28]File name is /storage/ofd_packets/00166091 [15:48:28]Write 298 bytes [15:48:28]NVStorageSaveData done [15:48:28]OFDSenderStorePacket done [15:48:28]KKMCreateOFDPacket done [15:48:28]NVStorageSaveData kkm_last_timestamp [15:48:28]File name is /storage/kkm_last_timestamp [15:48:28]Write 4 bytes [15:48:28]NVStorageSaveData done [15:48:28]ExternCall_PrintAddStr [15:48:28]wPrintStart [15:48:28]Write to MH i2c: 01 00 00 59 64 BD [15:48:28]Write i2c OK [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: 01 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: 01 07 00 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: 01 07 00 59 64 00 00 00 00 00 FF 0F D2 [15:48:28]RasterBufferAndPrint [15:48:28]line Счет N : (1)220662 [15:48:28]line ИНН: 02508201610067 [15:48:28]line Контрольно-Кассовый Чек [15:48:28]line ПРОДАЖА [15:48:28]line ТРК (МРК, ГНК) : 31 [15:48:28]line Товар: 2710194210 [15:48:28]line ДТ-К-5 [15:48:28]line 48.560 * 76.20 [15:48:28]line = 3700.27 [15:48:28]line НДС 12% НСП 1% [15:48:28]line > о реализуемом товаре [15:48:28]line ОКРУГЛЕНИЕ: -0.27 [15:48:28]line ИТОГО: 3700.00 [15:48:28]line Внесено: 3700.00 [15:48:28]line СДАЧА: 0.00 [15:48:28]line НСП 1% : 32.75 [15:48:28]line НДС 12% : 392.95 [15:48:28]line Наличными: 3700.00 [15:48:28]line Безнал.: 0.00 [15:48:28]line Место: АЗС № 161 "Партнер Нефть" [15:48:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:48:28]line СНО: Общий режим [15:48:28]line Чек 202 21.10.2024 15:48 [15:48:28]line Смена: 535 ФФД: 1.0 [15:48:28]line ЗНМ: 0300000104 [15:48:28]line РНМ: 0000000000091764 [15:48:28]line Версия ККМ: 001 [15:48:28]line ФМ: 0000000000871759 [15:48:28]line ФД: 166091 [15:48:28]line ФПД: 180647670777789 [15:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154845&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166091&fm=180647670777789&tin=02508201610067®Number=0000000000091764&sum=370000 [15:48:28]OFD Sender: Processing packet 166091 [packets to send 48, broken 47] [15:48:28]ProducePacketName [15:48:28]name=ofd_packets/00166091 [15:48:28]written 0, free lines is 4095 [15:48:28]OFD Sender: To server: pG, [15:48:28]CommunicateWithHost lk.salyk.kg:30040 [15:48:28]ConnectInit lk.salyk.kg [15:48:28]Connected sock=9 [15:48:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 0A 63 04 01 16 4F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B0 BD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6B A5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 A5 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 99 00 00 00 00 07 04 06 00 50 A5 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DD 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 88 02 00 35 04 06 00 A4 4C 50 3F 07 BD 84 DD 11 28 28 96 43 C2 [15:48:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F5 0A 47 00 6D 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CB 88 02 00 F4 03 04 00 4B 1E 16 67 B6 04 01 00 00 08 E6 03 31 58 E7 1E CB [15:48:28]CommunicateWithHost err = 0 [15:48:28]CheckOFDResponse [15:48:28]1017 (14) - 77093643461234 [15:48:28]1041 (16) - 0000000000871759 [15:48:28]1040 (4) - 166091 [15:48:28]1012 (4) - 21.10.2024 09:26 [15:48:28]1206 (1) - 0 [15:48:28]OFD Sender: Remove packet 166091 [15:48:28]ProducePacketName [15:48:28]name=ofd_packets/00166091 [15:48:28]NVStorageDeleteData [15:48:28]Write to MH i2c: 01 00 00 84 64 E8 [15:48:28]Write i2c OK [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: 01 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: 01 07 00 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: 01 07 00 84 64 00 00 00 00 00 DA 0C D5 [15:48:28]RasterBufferAndPrint [15:48:28]line [15:48:28]line [15:48:28]line [15:48:28]line [15:48:28]line [15:48:28]written 0, free lines is 3297 [15:48:28]MH_Cut [15:48:28]Write to MH i2c: D1 01 00 8B 64 01 C1 [15:48:28]Write i2c OK [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: D1 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: D1 01 00 [15:48:28]MH_I2C_Read... [15:48:28]Read from MH i2c: D1 01 00 8B 64 00 C0 [15:48:28]Write to MH i2c: 01 00 00 8C 64 F0 [15:48:28]Write i2c OK [15:48:28]MH_I2C_Read... [15:48:29]OFD Sender: No OFD packet to send [15:48:29]*** Cut start [15:48:29]*** Partial cut [15:48:29]*** CUTSNS_PIN = 1 [15:48:29]*** CUTSNS_PIN = 0 [15:48:29]*** Brake cut motor [15:48:30]Read from MH i2c: 01 [15:48:30]MH_I2C_Read... [15:48:30]*** Stop cut motor [15:48:30]*** Cut end [15:48:30]Read from MH i2c: 01 07 00 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: 01 07 00 8C 64 00 00 00 00 00 FF 0F 05 [15:48:30]process_action close_receipt done [15:48:30]requested_data is exist [15:48:30]produce_requested_data [15:48:30]requested_item fm.sn is exist - process it [15:48:30]wFMCommunicate request_size=4 [15:48:30]MH_SAM_APDU [15:48:30]CAPDU: 80 11 00 00 [15:48:30]Write to MH i2c: E2 08 00 8D 64 80 11 00 00 00 00 00 00 6B [15:48:30]Write i2c OK [15:48:30]MH_I2C_Read... [15:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:30]Read from MH i2c: E2 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: E2 17 00 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: E2 17 00 8D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [15:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:48:30]wFMCommunicate OK [15:48:30]requested_item fd.num is exist - process it [15:48:30]SAM_PROTO_GetFieldsCounters [15:48:30]wFMCommunicate request_size=4 [15:48:30]MH_SAM_APDU [15:48:30]CAPDU: 80 13 00 00 [15:48:30]Write to MH i2c: E2 08 00 8E 64 80 13 00 00 00 00 00 00 6E [15:48:30]Write i2c OK [15:48:30]MH_I2C_Read... [15:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:30]Read from MH i2c: E2 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: E2 62 00 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: E2 62 00 8E 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:30]wFMCommunicate OK [15:48:30]SAM_PROTO_GetFieldsCounters done [15:48:30]requested_item shift.num is exist - process it [15:48:30]requested_item shift.opened is exist - process it [15:48:30]req_shift_opened [15:48:30]FM_GetShiftState [15:48:30]SAM_PROTO_GetShiftState [15:48:30]wFMCommunicate request_size=4 [15:48:30]MH_SAM_APDU [15:48:30]CAPDU: 80 13 01 00 [15:48:30]Write to MH i2c: E2 08 00 8F 64 80 13 01 00 00 00 00 00 70 [15:48:30]Write i2c OK [15:48:30]MH_I2C_Read... [15:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:30]Read from MH i2c: E2 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: E2 0E 00 [15:48:30]MH_I2C_Read... [15:48:30]Read from MH i2c: E2 0E 00 8F 64 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 79 [15:48:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:48:30]wFMCommunicate OK [15:48:30]SAM_PROTO_GetShiftState done [15:48:30]FM_GetShiftState done [15:48:30]req_shift_opened done [15:48:30]requested_item shift.open_date is exist - process it [15:48:30]req_shift_open_date [15:48:30]req_shift_open_date done [15:48:30]produce_requested_data done [15:48:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166091,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:48:30]process_action_free close_receipt [15:48:30]json_value_free [15:48:30]json_value_free done [15:48:30]process_json_proto returns [15:48:30]Send response to host [15:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166091,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:48:30]free response buf [15:48:30]execute_script done [15:48:30]execute_script returns [15:48:30]free content buf [15:48:30]Sock 6.Close socket [15:48:30]Sock 6.Thread stoped [15:48:34]OFD Sender: No OFD packet to send [15:48:39]OFD Sender: No OFD packet to send [15:48:44]OFD Sender: No OFD packet to send [15:48:49]OFD Sender: No OFD packet to send [15:48:54]OFD Sender: No OFD packet to send [15:48:59]accept exits with 5 [15:48:59]New connection [15:48:59]New thread 3066920292 created [15:48:59]Thread 3066776932 joined [15:48:59]Waiting for new connection... [15:48:59] Sock 5.Parse request [15:48:59]Sock 5.Check first char [15:48:59]Sock 5.First char is OK [15:48:59]request: POST /json_proto HTTP/1.0 [15:48:59]Method: POST [15:48:59]URL: /json_proto [15:48:59]Method is POST - this is cgi request [15:48:59]url: /json_proto [15:48:59]query_string will be loaded in cgi processing [15:48:59]execute_cgi json_proto POST (null) [15:48:59]execute_cgi path=json_proto method=POST [15:48:59]POST find Content-Length [15:48:59]Host: 172.17.53.195:8080 [15:48:59]Content-Length: 763 [15:48:59]Content-Type: application/json [15:48:59] [15:48:59]POST finish read [15:48:59]Found Content-Length = 763 [15:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:59]execute_script... [15:48:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220663", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:59]POST & json_proto [15:48:59]process_json_proto [15:48:59]json parsed OK: [15:48:59]protocol is kg_v1.0 [15:48:59]action value=close_receipt [15:48:59]process_action close_receipt [15:48:59]cmd_close_receipt [15:48:59]MH_GetDate [15:48:59]Write to MH i2c: F0 00 00 90 64 E3 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 09 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: F0 09 00 90 64 00 FD 77 16 67 21 48 4A 65 F5 [15:48:59]GetLastDocTimeStamp 1729525725 [15:48:59]current date 1729525757 [15:48:59]FM_GetShiftState [15:48:59]SAM_PROTO_GetShiftState [15:48:59]wFMCommunicate request_size=4 [15:48:59]MH_SAM_APDU [15:48:59]CAPDU: 80 13 01 00 [15:48:59]Write to MH i2c: E2 08 00 91 64 80 13 01 00 00 00 00 00 72 [15:48:59]Write i2c OK [15:48:59]MH_I2C_Read... [15:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:59]Read from MH i2c: E2 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: E2 0E 00 [15:48:59]MH_I2C_Read... [15:48:59]Read from MH i2c: E2 0E 00 91 64 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7B [15:48:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:48:59]wFMCommunicate OK [15:48:59]SAM_PROTO_GetShiftState done [15:48:59]FM_GetShiftState done [15:48:59]opened in 1729470944 [15:48:59]opened+sec_in_day 1729557344 [15:48:59]quantity*price = 40005 [15:48:59]sum+1 = 40006 [15:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.05 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.05 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 203 21.10.2024 15:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166092 ФПД: 157091789626916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166092&fm=157091789626916&tin=02508201610067®Number=0000000000091764&sum=40005 [15:49:00]StoreToDocumentArchive [15:49:00]shift 535 fd 166092 [15:49:00]save to /storage/0535/doc_00166092 [15:49:00]save last doc name /storage/0535/doc_00166092 to /storage/kkm_last_doc_name [15:49:00]save OK [15:49:00]Clear old archive folders... [15:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:49:00]tlvbuf is 01493240 [15:49:00]SAM_PROTO_ClearQueue [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 09 00 00 [15:49:00]Write to MH i2c: E2 08 00 9E 64 80 09 00 00 00 00 00 00 74 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 9E 64 00 90 00 76 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_ClearQueue done [15:49:00]KKMCreateOFDPacket [15:49:00]OFDProtocolAddRootSTLVToBuf [15:49:00]FM_MakeSignedData [15:49:00]FM_MakeSignedData [15:49:00]SAM_PROTO_SignData [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 01 02 [15:49:00]Write to MH i2c: E2 08 00 9F 64 80 0D 01 02 00 00 00 00 7C [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 9F 64 00 90 00 77 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=255 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FE 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 88 02 00 35 04 06 00 8E DF C8 51 [15:49:00]Write to MH i2c: E2 02 01 A0 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FE 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 88 02 00 35 04 06 00 8E DF C8 51 00 00 B7 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 A0 64 00 90 00 78 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=7 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 02 02 02 5E 24 [15:49:00]Write to MH i2c: E2 0A 00 A1 64 80 0D 02 02 02 00 5E 24 00 00 05 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 03 00 A1 64 00 90 00 79 [15:49:00]RAPDU: 90 00 [15:49:00]wFMCommunicate OK [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 0D 03 02 [15:49:00]Write to MH i2c: E2 08 00 A2 64 80 0D 03 02 00 00 00 00 81 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0B 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 0B 00 A2 64 00 F3 8E 4D E0 BE B4 34 2B 90 00 01 [15:49:00]RAPDU: F3 8E 4D E0 BE B4 34 2B 90 00 [15:49:00]wFMCommunicate OK [15:49:00]SAM_PROTO_SignData done [15:49:00]FM_MakeSignedData done [15:49:00]CreateOFDProtocolMessage [15:49:00]wFMCommunicate request_size=4 [15:49:00]MH_SAM_APDU [15:49:00]CAPDU: 80 11 00 00 [15:49:00]Write to MH i2c: E2 08 00 A3 64 80 11 00 00 00 00 00 00 81 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:00]Read from MH i2c: E2 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 17 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: E2 17 00 A3 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [15:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:49:00]wFMCommunicate OK [15:49:00]CreateOFDProtocolMessage done [15:49:00]OFDSenderStorePacket 166092 [15:49:00]StoreOFDPacket docnum=166092 [15:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 71 F9 04 01 A6 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FE 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 88 02 00 35 04 06 00 8E DF C8 51 5E 24 F3 8E 4D E0 BE B4 34 2B [15:49:00]CheckFolder [15:49:00]dirname=/storage/ofd_packets [15:49:00]CheckFolder done [15:49:00]ProducePacketName [15:49:00]name=ofd_packets/00166092 [15:49:00]NVStorageSaveData ofd_packets/00166092 [15:49:00]File name is /storage/ofd_packets/00166092 [15:49:00]Write 298 bytes [15:49:00]NVStorageSaveData done [15:49:00]OFDSenderStorePacket done [15:49:00]KKMCreateOFDPacket done [15:49:00]NVStorageSaveData kkm_last_timestamp [15:49:00]File name is /storage/kkm_last_timestamp [15:49:00]Write 4 bytes [15:49:00]NVStorageSaveData done [15:49:00]ExternCall_PrintAddStr [15:49:00]wPrintStart [15:49:00]Write to MH i2c: 01 00 00 A4 64 08 [15:49:00]Write i2c OK [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 07 00 [15:49:00]MH_I2C_Read... [15:49:00]Read from MH i2c: 01 07 00 A4 64 00 00 00 00 00 FF 0F 1D [15:49:00]RasterBufferAndPrint [15:49:00]line Счет N : (1)220663 [15:49:00]line ИНН: 02508201610067 [15:49:00]line Контрольно-Кассовый Чек [15:49:00]line ПРОДАЖА [15:49:00]line ТРК (МРК, ГНК) : 21 [15:49:00]line Товар: 2710194210 [15:49:00]line ДТ-К-5 [15:49:00]line 5.250 * 76.20 [15:49:00]line = 400.05 [15:49:00]line НДС 12% НСП 1% [15:49:00]line > о реализуемом товаре [15:49:00]line ИТОГО: 400.05 [15:49:00]line НСП 1% : 3.54 [15:49:00]line НДС 12% : 42.48 [15:49:00]line Наличными: 0.00 [15:49:00]line Безнал.: 400.05 [15:49:00]line Место: АЗС № 161 "Партнер Нефть" [15:49:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:49:00]line СНО: Общий режим [15:49:00]line Чек 203 21.10.2024 15:49 [15:49:00]line Смена: 535 ФФД: 1.0 [15:49:00]line ЗНМ: 0300000104 [15:49:00]line РНМ: 0000000000091764 [15:49:00]line Версия ККМ: 001 [15:49:00]line Платежная система: Mbank [15:49:00]line ФМ: 0000000000871759 [15:49:00]line ФД: 166092 [15:49:00]line ФПД: 157091789626916 [15:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T154918&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166092&fm=157091789626916&tin=02508201610067®Number=0000000000091764&sum=40005 [15:49:01]OFD Sender: Processing packet 166092 [packets to send 48, broken 47] [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00166092 [15:49:01]OFD Sender: To server: pG, [15:49:01]CommunicateWithHost lk.salyk.kg:30040 [15:49:01]ConnectInit lk.salyk.kg [15:49:01]written 0, free lines is 4095 [15:49:01]Connected sock=7 [15:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 71 F9 04 01 A6 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 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 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 FE 77 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 88 02 00 35 04 06 00 8E DF C8 51 5E 24 F3 8E 4D E0 BE B4 34 2B [15:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 51 E9 47 00 0B 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CC 88 02 00 F4 03 04 00 6C 1E 16 67 B6 04 01 00 00 E2 5D 6A CC D1 11 28 42 [15:49:01]CommunicateWithHost err = 0 [15:49:01]CheckOFDResponse [15:49:01]1017 (14) - 77093643461234 [15:49:01]1041 (16) - 0000000000871759 [15:49:01]1040 (4) - 166092 [15:49:01]1012 (4) - 21.10.2024 09:27 [15:49:01]1206 (1) - 0 [15:49:01]OFD Sender: Remove packet 166092 [15:49:01]ProducePacketName [15:49:01]name=ofd_packets/00166092 [15:49:01]NVStorageDeleteData [15:49:01]Write to MH i2c: 01 00 00 CD 64 31 [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: 01 07 00 CD 64 00 00 00 00 00 EB 0C 2F [15:49:01]RasterBufferAndPrint [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]line [15:49:01]written 0, free lines is 3313 [15:49:01]MH_Cut [15:49:01]Write to MH i2c: D1 01 00 D4 64 01 0A [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 01 00 [15:49:01]MH_I2C_Read... [15:49:01]Read from MH i2c: D1 01 00 D4 64 00 09 [15:49:01]Write to MH i2c: 01 00 00 D5 64 39 [15:49:01]Write i2c OK [15:49:01]MH_I2C_Read... [15:49:01]OFD Sender: No OFD packet to send [15:49:02]*** Cut start [15:49:02]*** Partial cut [15:49:02]*** CUTSNS_PIN = 1 [15:49:02]*** CUTSNS_PIN = 0 [15:49:02]*** Brake cut motor [15:49:02]Read from MH i2c: 01 [15:49:02]MH_I2C_Read... [15:49:02]*** Stop cut motor [15:49:02]*** Cut end [15:49:02]Read from MH i2c: 01 07 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: 01 07 00 D5 64 00 00 00 00 00 FF 0F 4E [15:49:02]process_action close_receipt done [15:49:02]requested_data is exist [15:49:02]produce_requested_data [15:49:02]requested_item fm.sn is exist - process it [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 11 00 00 [15:49:02]Write to MH i2c: E2 08 00 D6 64 80 11 00 00 00 00 00 00 B4 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:02]Read from MH i2c: E2 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 17 00 [15:49:02]MH_I2C_Read... [15:49:02]Read from MH i2c: E2 17 00 D6 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0C [15:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:49:02]wFMCommunicate OK [15:49:02]requested_item fd.num is exist - process it [15:49:02]SAM_PROTO_GetFieldsCounters [15:49:02]wFMCommunicate request_size=4 [15:49:02]MH_SAM_APDU [15:49:02]CAPDU: 80 13 00 00 [15:49:02]Write to MH i2c: E2 08 00 D7 64 80 13 00 00 00 00 00 00 B7 [15:49:02]Write i2c OK [15:49:02]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 62 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 62 00 D7 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [15:49:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetFieldsCounters done [15:49:03]requested_item shift.num is exist - process it [15:49:03]requested_item shift.opened is exist - process it [15:49:03]req_shift_opened [15:49:03]FM_GetShiftState [15:49:03]SAM_PROTO_GetShiftState [15:49:03]wFMCommunicate request_size=4 [15:49:03]MH_SAM_APDU [15:49:03]CAPDU: 80 13 01 00 [15:49:03]Write to MH i2c: E2 08 00 D8 64 80 13 01 00 00 00 00 00 B9 [15:49:03]Write i2c OK [15:49:03]MH_I2C_Read... [15:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:03]Read from MH i2c: E2 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 [15:49:03]MH_I2C_Read... [15:49:03]Read from MH i2c: E2 0E 00 D8 64 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C2 [15:49:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:49:03]wFMCommunicate OK [15:49:03]SAM_PROTO_GetShiftState done [15:49:03]FM_GetShiftState done [15:49:03]req_shift_opened done [15:49:03]requested_item shift.open_date is exist - process it [15:49:03]req_shift_open_date [15:49:03]req_shift_open_date done [15:49:03]produce_requested_data done [15:49:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166092,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:49:03]process_action_free close_receipt [15:49:03]json_value_free [15:49:03]json_value_free done [15:49:03]process_json_proto returns [15:49:03]Send response to host [15:49:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166092,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:49:03]free response buf [15:49:03]execute_script done [15:49:03]execute_script returns [15:49:03]free content buf [15:49:03]Sock 5.Close socket [15:49:03]Sock 5.Thread stoped [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:26]accept exits with 6 [15:57:26]New connection [15:57:26]New thread 3066776932 created [15:57:26]Thread 3066920292 joined [15:57:26]Waiting for new connection... [15:57:26] Sock 6.Parse request [15:57:26]Sock 6.Check first char [15:57:26]Sock 6.First char is OK [15:57:26]request: POST /json_proto HTTP/1.0 [15:57:26]Method: POST [15:57:26]URL: /json_proto [15:57:26]Method is POST - this is cgi request [15:57:26]url: /json_proto [15:57:26]query_string will be loaded in cgi processing [15:57:26]execute_cgi json_proto POST (null) [15:57:26]execute_cgi path=json_proto method=POST [15:57:26]POST find Content-Length [15:57:26]Host: 172.17.53.195:8080 [15:57:26]Content-Length: 679 [15:57:26]Content-Type: application/json [15:57:26] [15:57:26]POST finish read [15:57:26]Found Content-Length = 679 [15:57:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:26]execute_script... [15:57: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)220664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:57:26]POST & json_proto [15:57:26]process_json_proto [15:57:26]json parsed OK: [15:57:26]protocol is kg_v1.0 [15:57:26]action value=close_receipt [15:57:26]process_action close_receipt [15:57:26]cmd_close_receipt [15:57:26]MH_GetDate [15:57:26]Write to MH i2c: F0 00 00 D9 64 2C [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: F0 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: F0 09 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: F0 09 00 D9 64 00 F9 79 16 67 21 48 4A 65 3C [15:57:26]GetLastDocTimeStamp 1729525758 [15:57:26]current date 1729526265 [15:57:26]FM_GetShiftState [15:57:26]SAM_PROTO_GetShiftState [15:57:26]wFMCommunicate request_size=4 [15:57:26]MH_SAM_APDU [15:57:26]CAPDU: 80 13 01 00 [15:57:26]Write to MH i2c: E2 08 00 DA 64 80 13 01 00 00 00 00 00 BB [15:57:26]Write i2c OK [15:57:26]MH_I2C_Read... [15:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:26]Read from MH i2c: E2 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 0E 00 [15:57:26]MH_I2C_Read... [15:57:26]Read from MH i2c: E2 0E 00 DA 64 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C4 [15:57:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:57:26]wFMCommunicate OK [15:57:26]SAM_PROTO_GetShiftState done [15:57:26]FM_GetShiftState done [15:57:26]opened in 1729470944 [15:57:26]opened+sec_in_day 1729557344 [15:57:26]quantity*price = 150037 [15:57:26]sum+1 = 150039 [15:57:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 204 21.10.2024 15:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166093 ФПД: 75883080483203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155745&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166093&fm=75883080483203&tin=02508201610067®Number=0000000000091764&sum=150000 [15:57:27]StoreToDocumentArchive [15:57:27]shift 535 fd 166093 [15:57:27]save to /storage/0535/doc_00166093 [15:57:27]save last doc name /storage/0535/doc_00166093 to /storage/kkm_last_doc_name [15:57:27]save OK [15:57:27]Clear old archive folders... [15:57:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:57:27]tlvbuf is 016E4CF0 [15:57:27]SAM_PROTO_ClearQueue [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 09 00 00 [15:57:27]Write to MH i2c: E2 08 00 E7 64 80 09 00 00 00 00 00 00 BD [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:27]Read from MH i2c: E2 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 [15:57:27]MH_I2C_Read... [15:57:27]Read from MH i2c: E2 03 00 E7 64 00 90 00 BF [15:57:27]RAPDU: 90 00 [15:57:27]wFMCommunicate OK [15:57:27]SAM_PROTO_ClearQueue done [15:57:27]KKMCreateOFDPacket [15:57:27]OFDProtocolAddRootSTLVToBuf [15:57:27]FM_MakeSignedData [15:57:27]FM_MakeSignedData [15:57:27]SAM_PROTO_SignData [15:57:27]wFMCommunicate request_size=4 [15:57:27]MH_SAM_APDU [15:57:27]CAPDU: 80 0D 01 02 [15:57:27]Write to MH i2c: E2 08 00 E8 64 80 0D 01 02 00 00 00 00 C5 [15:57:27]Write i2c OK [15:57:27]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 E8 64 00 90 00 C0 [15:57:28]RAPDU: 90 00 [15:57:28]wFMCommunicate OK [15:57:28]wFMCommunicate request_size=255 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 F9 79 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 88 02 00 35 04 06 00 45 03 E8 0E [15:57:28]Write to MH i2c: E2 02 01 E9 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 F9 79 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 88 02 00 35 04 06 00 45 03 E8 0E 00 00 31 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 E9 64 00 90 00 C1 [15:57:28]RAPDU: 90 00 [15:57:28]wFMCommunicate OK [15:57:28]wFMCommunicate request_size=7 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 0D 02 02 02 81 83 [15:57:28]Write to MH i2c: E2 0A 00 EA 64 80 0D 02 02 02 00 81 83 00 00 D0 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 03 00 EA 64 00 90 00 C2 [15:57:28]RAPDU: 90 00 [15:57:28]wFMCommunicate OK [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 0D 03 02 [15:57:28]Write to MH i2c: E2 08 00 EB 64 80 0D 03 02 00 00 00 00 CA [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 0B 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 0B 00 EB 64 00 F3 25 F4 ED 4C 3F 00 ED 90 00 3C [15:57:28]RAPDU: F3 25 F4 ED 4C 3F 00 ED 90 00 [15:57:28]wFMCommunicate OK [15:57:28]SAM_PROTO_SignData done [15:57:28]FM_MakeSignedData done [15:57:28]CreateOFDProtocolMessage [15:57:28]wFMCommunicate request_size=4 [15:57:28]MH_SAM_APDU [15:57:28]CAPDU: 80 11 00 00 [15:57:28]Write to MH i2c: E2 08 00 EC 64 80 11 00 00 00 00 00 00 CA [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:28]Read from MH i2c: E2 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 17 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: E2 17 00 EC 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [15:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:57:28]wFMCommunicate OK [15:57:28]CreateOFDProtocolMessage done [15:57:28]OFDSenderStorePacket 166093 [15:57:28]StoreOFDPacket docnum=166093 [15:57:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C6 A0 04 01 60 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 F9 79 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 88 02 00 35 04 06 00 45 03 E8 0E 81 83 F3 25 F4 ED 4C 3F 00 ED [15:57:28]CheckFolder [15:57:28]dirname=/storage/ofd_packets [15:57:28]CheckFolder done [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00166093 [15:57:28]NVStorageSaveData ofd_packets/00166093 [15:57:28]File name is /storage/ofd_packets/00166093 [15:57:28]Write 298 bytes [15:57:28]NVStorageSaveData done [15:57:28]OFDSenderStorePacket done [15:57:28]KKMCreateOFDPacket done [15:57:28]NVStorageSaveData kkm_last_timestamp [15:57:28]File name is /storage/kkm_last_timestamp [15:57:28]Write 4 bytes [15:57:28]NVStorageSaveData done [15:57:28]ExternCall_PrintAddStr [15:57:28]wPrintStart [15:57:28]Write to MH i2c: 01 00 00 ED 64 51 [15:57:28]Write i2c OK [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 [15:57:28]MH_I2C_Read... [15:57:28]Read from MH i2c: 01 07 00 ED 64 00 00 00 00 00 FF 0F 66 [15:57:28]RasterBufferAndPrint [15:57:28]line Счет N : (1)220664 [15:57:28]line ИНН: 02508201610067 [15:57:28]line Контрольно-Кассовый Чек [15:57:28]line ПРОДАЖА [15:57:28]line ТРК (МРК, ГНК) : 11 [15:57:28]line Товар: 2710194210 [15:57:28]line ДТ-К-5 [15:57:28]line 19.690 * 76.20 [15:57:28]line = 1500.38 [15:57:28]line НДС 12% НСП 1% [15:57:28]line > о реализуемом товаре [15:57:28]line ОКРУГЛЕНИЕ: -0.38 [15:57:28]line ИТОГО: 1500.00 [15:57:28]line Внесено: 1500.00 [15:57:28]line СДАЧА: 0.00 [15:57:28]line НСП 1% : 13.28 [15:57:28]line НДС 12% : 159.33 [15:57:28]line Наличными: 1500.00 [15:57:28]line Безнал.: 0.00 [15:57:28]line Место: АЗС № 161 "Партнер Нефть" [15:57:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [15:57:28]line СНО: Общий режим [15:57:28]line Чек 204 21.10.2024 15:57 [15:57:28]line Смена: 535 ФФД: 1.0 [15:57:28]line ЗНМ: 0300000104 [15:57:28]line РНМ: 0000000000091764 [15:57:28]line Версия ККМ: 001 [15:57:28]line ФМ: 0000000000871759 [15:57:28]line ФД: 166093 [15:57:28]line ФПД: 75883080483203 [15:57:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T155745&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166093&fm=75883080483203&tin=02508201610067®Number=0000000000091764&sum=150000 [15:57:28]OFD Sender: Processing packet 166093 [packets to send 48, broken 47] [15:57:28]ProducePacketName [15:57:28]name=ofd_packets/00166093 [15:57:28]OFD Sender: To server: pG, [15:57:28]CommunicateWithHost lk.salyk.kg:30040 [15:57:28]ConnectInit lk.salyk.kg [15:57:28]written 0, free lines is 4095 [15:57:28]Connected sock=7 [15:57:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C6 A0 04 01 60 7F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 CC 00 00 00 F4 03 04 00 F9 79 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 88 02 00 35 04 06 00 45 03 E8 0E 81 83 F3 25 F4 ED 4C 3F 00 ED [15:57:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8B 1D 47 00 A8 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CD 88 02 00 F4 03 04 00 67 20 16 67 B6 04 01 00 00 BE 2E D7 60 06 F1 B7 7A [15:57:29]CommunicateWithHost err = 0 [15:57:29]CheckOFDResponse [15:57:29]1017 (14) - 77093643461234 [15:57:29]1041 (16) - 0000000000871759 [15:57:29]1040 (4) - 166093 [15:57:29]1012 (4) - 21.10.2024 09:35 [15:57:29]1206 (1) - 0 [15:57:29]OFD Sender: Remove packet 166093 [15:57:29]ProducePacketName [15:57:29]name=ofd_packets/00166093 [15:57:29]NVStorageDeleteData [15:57:29]Write to MH i2c: 01 00 00 18 65 7D [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: 01 07 00 18 65 00 00 00 00 00 CE 0C 5E [15:57:29]RasterBufferAndPrint [15:57:29]line [15:57:29]line [15:57:29]line [15:57:29]line [15:57:29]line [15:57:29]written 0, free lines is 3284 [15:57:29]MH_Cut [15:57:29]Write to MH i2c: D1 01 00 1F 65 01 56 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: D1 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: D1 01 00 [15:57:29]MH_I2C_Read... [15:57:29]Read from MH i2c: D1 01 00 1F 65 00 55 [15:57:29]Write to MH i2c: 01 00 00 20 65 85 [15:57:29]Write i2c OK [15:57:29]MH_I2C_Read... [15:57:29]OFD Sender: No OFD packet to send [15:57:29]*** Cut start [15:57:29]*** Partial cut [15:57:29]*** CUTSNS_PIN = 1 [15:57:30]*** CUTSNS_PIN = 0 [15:57:30]*** Brake cut motor [15:57:30]Read from MH i2c: 01 [15:57:30]MH_I2C_Read... [15:57:30]*** Stop cut motor [15:57:30]*** Cut end [15:57:30]Read from MH i2c: 01 07 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: 01 07 00 20 65 00 00 00 00 00 FF 0F 9A [15:57:30]process_action close_receipt done [15:57:30]requested_data is exist [15:57:30]produce_requested_data [15:57:30]requested_item fm.sn is exist - process it [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 11 00 00 [15:57:30]Write to MH i2c: E2 08 00 21 65 80 11 00 00 00 00 00 00 00 [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 17 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 17 00 21 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [15:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [15:57:30]wFMCommunicate OK [15:57:30]requested_item fd.num is exist - process it [15:57:30]SAM_PROTO_GetFieldsCounters [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 13 00 00 [15:57:30]Write to MH i2c: E2 08 00 22 65 80 13 00 00 00 00 00 00 03 [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 62 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 62 00 22 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [15:57:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:30]wFMCommunicate OK [15:57:30]SAM_PROTO_GetFieldsCounters done [15:57:30]requested_item shift.num is exist - process it [15:57:30]requested_item shift.opened is exist - process it [15:57:30]req_shift_opened [15:57:30]FM_GetShiftState [15:57:30]SAM_PROTO_GetShiftState [15:57:30]wFMCommunicate request_size=4 [15:57:30]MH_SAM_APDU [15:57:30]CAPDU: 80 13 01 00 [15:57:30]Write to MH i2c: E2 08 00 23 65 80 13 01 00 00 00 00 00 05 [15:57:30]Write i2c OK [15:57:30]MH_I2C_Read... [15:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:30]Read from MH i2c: E2 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 0E 00 [15:57:30]MH_I2C_Read... [15:57:30]Read from MH i2c: E2 0E 00 23 65 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0E [15:57:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [15:57:30]wFMCommunicate OK [15:57:30]SAM_PROTO_GetShiftState done [15:57:30]FM_GetShiftState done [15:57:30]req_shift_opened done [15:57:30]requested_item shift.open_date is exist - process it [15:57:30]req_shift_open_date [15:57:30]req_shift_open_date done [15:57:30]produce_requested_data done [15:57:30]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166093,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [15:57:30]process_action_free close_receipt [15:57:30]json_value_free [15:57:30]json_value_free done [15:57:30]process_json_proto returns [15:57:30]Send response to host [15:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166093,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [15:57:30]free response buf [15:57:30]execute_script done [15:57:30]execute_script returns [15:57:30]free content buf [15:57:30]Sock 6.Close socket [15:57:30]Sock 6.Thread stoped [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:14]OFD Sender: No OFD packet to send [15:58:19]OFD Sender: No OFD packet to send [15:58:24]OFD Sender: No OFD packet to send [15:58:29]OFD Sender: No OFD packet to send [15:58:34]OFD Sender: No OFD packet to send [15:58:39]OFD Sender: No OFD packet to send [15:58:44]OFD Sender: No OFD packet to send [15:58:49]OFD Sender: No OFD packet to send [15:58:54]OFD Sender: No OFD packet to send [15:58:59]OFD Sender: No OFD packet to send [15:59:04]OFD Sender: No OFD packet to send [15:59:09]OFD Sender: No OFD packet to send [15:59:14]OFD Sender: No OFD packet to send [15:59:19]OFD Sender: No OFD packet to send [15:59:24]OFD Sender: No OFD packet to send [15:59:29]OFD Sender: No OFD packet to send [15:59:34]OFD Sender: No OFD packet to send [15:59:39]OFD Sender: No OFD packet to send [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:22]accept exits with 5 [16:03:22]New connection [16:03:22]New thread 3066920292 created [16:03:22]Thread 3066776932 joined [16:03:22]Waiting for new connection... [16:03:22] Sock 5.Parse request [16:03:22]Sock 5.Check first char [16:03:22]Sock 5.First char is OK [16:03:22]request: POST /json_proto HTTP/1.0 [16:03:22]Method: POST [16:03:22]URL: /json_proto [16:03:22]Method is POST - this is cgi request [16:03:22]url: /json_proto [16:03:22]query_string will be loaded in cgi processing [16:03:22]execute_cgi json_proto POST (null) [16:03:22]execute_cgi path=json_proto method=POST [16:03:22]POST find Content-Length [16:03:22]Host: 172.17.53.195:8080 [16:03:22]Content-Length: 766 [16:03:22]Content-Type: application/json [16:03:22] [16:03:22]POST finish read [16:03:22]Found Content-Length = 766 [16:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:22]execute_script... [16:03:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:22]POST & json_proto [16:03:22]process_json_proto [16:03:22]json parsed OK: [16:03:22]protocol is kg_v1.0 [16:03:22]action value=close_receipt [16:03:22]process_action close_receipt [16:03:22]cmd_close_receipt [16:03:22]MH_GetDate [16:03:22]Write to MH i2c: F0 00 00 24 65 78 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: F0 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: F0 09 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: F0 09 00 24 65 00 5D 7B 16 67 21 48 4A 65 EE [16:03:22]GetLastDocTimeStamp 1729526265 [16:03:22]current date 1729526621 [16:03:22]FM_GetShiftState [16:03:22]SAM_PROTO_GetShiftState [16:03:22]wFMCommunicate request_size=4 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 13 01 00 [16:03:22]Write to MH i2c: E2 08 00 25 65 80 13 01 00 00 00 00 00 07 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 0E 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 0E 00 25 65 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 10 [16:03:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:03:22]wFMCommunicate OK [16:03:22]SAM_PROTO_GetShiftState done [16:03:22]FM_GetShiftState done [16:03:22]opened in 1729470944 [16:03:22]opened+sec_in_day 1729557344 [16:03:22]quantity*price = 300075 [16:03:22]sum+1 = 300077 [16:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 205 21.10.2024 16:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166094 ФПД: 247554793554854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166094&fm=247554793554854&tin=02508201610067®Number=0000000000091764&sum=300076 [16:03:23]StoreToDocumentArchive [16:03:23]shift 535 fd 166094 [16:03:23]save to /storage/0535/doc_00166094 [16:03:23]save last doc name /storage/0535/doc_00166094 to /storage/kkm_last_doc_name [16:03:23]save OK [16:03:23]Clear old archive folders... [16:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:03:23]tlvbuf is 01A0AE70 [16:03:23]SAM_PROTO_ClearQueue [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 09 00 00 [16:03:23]Write to MH i2c: E2 08 00 32 65 80 09 00 00 00 00 00 00 09 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 32 65 00 90 00 0B [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_ClearQueue done [16:03:23]KKMCreateOFDPacket [16:03:23]OFDProtocolAddRootSTLVToBuf [16:03:23]FM_MakeSignedData [16:03:23]FM_MakeSignedData [16:03:23]SAM_PROTO_SignData [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 01 02 [16:03:23]Write to MH i2c: E2 08 00 33 65 80 0D 01 02 00 00 00 00 11 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 33 65 00 90 00 0C [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]wFMCommunicate request_size=255 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 7B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 88 02 00 35 04 06 00 E1 26 57 88 [16:03:23]Write to MH i2c: E2 02 01 34 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 7B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 88 02 00 35 04 06 00 E1 26 57 88 00 00 E7 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 34 65 00 90 00 0D [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]wFMCommunicate request_size=7 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 02 02 02 43 A6 [16:03:23]Write to MH i2c: E2 0A 00 35 65 80 0D 02 02 02 00 43 A6 00 00 01 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 35 65 00 90 00 0E [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 03 02 [16:03:23]Write to MH i2c: E2 08 00 36 65 80 0D 03 02 00 00 00 00 16 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0B 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0B 00 36 65 00 1E B3 AF EC 29 37 9C AA 90 00 29 [16:03:23]RAPDU: 1E B3 AF EC 29 37 9C AA 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_SignData done [16:03:23]FM_MakeSignedData done [16:03:23]CreateOFDProtocolMessage [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 11 00 00 [16:03:23]Write to MH i2c: E2 08 00 37 65 80 11 00 00 00 00 00 00 16 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 17 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 17 00 37 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [16:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:03:23]wFMCommunicate OK [16:03:23]CreateOFDProtocolMessage done [16:03:23]OFDSenderStorePacket 166094 [16:03:23]StoreOFDPacket docnum=166094 [16:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8C A1 04 01 60 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 7B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 88 02 00 35 04 06 00 E1 26 57 88 43 A6 1E B3 AF EC 29 37 9C AA [16:03:23]CheckFolder [16:03:23]dirname=/storage/ofd_packets [16:03:23]CheckFolder done [16:03:23]ProducePacketName [16:03:23]name=ofd_packets/00166094 [16:03:23]NVStorageSaveData ofd_packets/00166094 [16:03:23]File name is /storage/ofd_packets/00166094 [16:03:23]Write 298 bytes [16:03:23]NVStorageSaveData done [16:03:23]OFDSenderStorePacket done [16:03:23]KKMCreateOFDPacket done [16:03:23]NVStorageSaveData kkm_last_timestamp [16:03:23]File name is /storage/kkm_last_timestamp [16:03:23]Write 4 bytes [16:03:23]NVStorageSaveData done [16:03:23]ExternCall_PrintAddStr [16:03:23]wPrintStart [16:03:23]Write to MH i2c: 01 00 00 38 65 9D [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 07 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: 01 07 00 38 65 00 00 00 00 00 FF 0F B2 [16:03:23]RasterBufferAndPrint [16:03:23]line Счет N : (1)220665 [16:03:23]line ИНН: 02508201610067 [16:03:23]line Контрольно-Кассовый Чек [16:03:23]line ПРОДАЖА [16:03:23]line ТРК (МРК, ГНК) : 21 [16:03:23]line Товар: 2710194210 [16:03:23]line ДТ-К-5 [16:03:23]line 39.380 * 76.20 [16:03:23]line = 3000.76 [16:03:23]line НДС 12% НСП 1% [16:03:23]line > о реализуемом товаре [16:03:23]line ИТОГО: 3000.76 [16:03:23]line НСП 1% : 26.55 [16:03:23]line НДС 12% : 318.66 [16:03:23]line Наличными: 0.00 [16:03:23]line Безнал.: 3000.76 [16:03:23]line Место: АЗС № 161 "Партнер Нефть" [16:03:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:03:23]line СНО: Общий режим [16:03:23]line Чек 205 21.10.2024 16:03 [16:03:23]line Смена: 535 ФФД: 1.0 [16:03:23]line ЗНМ: 0300000104 [16:03:23]line РНМ: 0000000000091764 [16:03:23]line Версия ККМ: 001 [16:03:23]line Платежная система: Mbank [16:03:23]line ФМ: 0000000000871759 [16:03:23]line ФД: 166094 [16:03:23]line ФПД: 247554793554854 [16:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T160341&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166094&fm=247554793554854&tin=02508201610067®Number=0000000000091764&sum=300076 [16:03:24]OFD Sender: Processing packet 166094 [packets to send 48, broken 47] [16:03:24]ProducePacketName [16:03:24]name=ofd_packets/00166094 [16:03:24]OFD Sender: To server: pG, [16:03:24]CommunicateWithHost lk.salyk.kg:30040 [16:03:24]ConnectInit lk.salyk.kg [16:03:24]written 0, free lines is 4095 [16:03:24]Connected sock=7 [16:03:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8C A1 04 01 60 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 5D 7B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 88 02 00 35 04 06 00 E1 26 57 88 43 A6 1E B3 AF EC 29 37 9C AA [16:03:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C9 7D 47 00 E5 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CE 88 02 00 F4 03 04 00 CB 21 16 67 B6 04 01 00 00 86 87 55 68 E5 A1 E0 EC [16:03:24]CommunicateWithHost err = 0 [16:03:24]CheckOFDResponse [16:03:24]1017 (14) - 77093643461234 [16:03:24]1041 (16) - 0000000000871759 [16:03:24]1040 (4) - 166094 [16:03:24]1012 (4) - 21.10.2024 09:41 [16:03:24]1206 (1) - 0 [16:03:24]OFD Sender: Remove packet 166094 [16:03:24]ProducePacketName [16:03:24]name=ofd_packets/00166094 [16:03:24]NVStorageDeleteData [16:03:24]Write to MH i2c: 01 00 00 61 65 C6 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 61 65 00 00 00 00 00 EB 0C C4 [16:03:24]RasterBufferAndPrint [16:03:24]line [16:03:24]line [16:03:24]line [16:03:24]line [16:03:24]line [16:03:24]written 0, free lines is 3314 [16:03:24]MH_Cut [16:03:24]Write to MH i2c: D1 01 00 68 65 01 9F [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: D1 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: D1 01 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: D1 01 00 68 65 00 9E [16:03:24]Write to MH i2c: 01 00 00 69 65 CE [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:25]OFD Sender: No OFD packet to send [16:03:25]*** Cut start [16:03:25]*** Partial cut [16:03:25]*** CUTSNS_PIN = 1 [16:03:25]*** CUTSNS_PIN = 0 [16:03:25]*** Brake cut motor [16:03:26]Read from MH i2c: 01 [16:03:26]MH_I2C_Read... [16:03:26]*** Stop cut motor [16:03:26]*** Cut end [16:03:26]Read from MH i2c: 01 07 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: 01 07 00 69 65 00 00 00 00 00 FF 0F E3 [16:03:26]process_action close_receipt done [16:03:26]requested_data is exist [16:03:26]produce_requested_data [16:03:26]requested_item fm.sn is exist - process it [16:03:26]wFMCommunicate request_size=4 [16:03:26]MH_SAM_APDU [16:03:26]CAPDU: 80 11 00 00 [16:03:26]Write to MH i2c: E2 08 00 6A 65 80 11 00 00 00 00 00 00 49 [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:26]Read from MH i2c: E2 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 17 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 17 00 6A 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A1 [16:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:03:26]wFMCommunicate OK [16:03:26]requested_item fd.num is exist - process it [16:03:26]SAM_PROTO_GetFieldsCounters [16:03:26]wFMCommunicate request_size=4 [16:03:26]MH_SAM_APDU [16:03:26]CAPDU: 80 13 00 00 [16:03:26]Write to MH i2c: E2 08 00 6B 65 80 13 00 00 00 00 00 00 4C [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:26]Read from MH i2c: E2 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 62 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 62 00 6B 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [16:03:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:26]wFMCommunicate OK [16:03:26]SAM_PROTO_GetFieldsCounters done [16:03:26]requested_item shift.num is exist - process it [16:03:26]requested_item shift.opened is exist - process it [16:03:26]req_shift_opened [16:03:26]FM_GetShiftState [16:03:26]SAM_PROTO_GetShiftState [16:03:26]wFMCommunicate request_size=4 [16:03:26]MH_SAM_APDU [16:03:26]CAPDU: 80 13 01 00 [16:03:26]Write to MH i2c: E2 08 00 6C 65 80 13 01 00 00 00 00 00 4E [16:03:26]Write i2c OK [16:03:26]MH_I2C_Read... [16:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:26]Read from MH i2c: E2 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 0E 00 [16:03:26]MH_I2C_Read... [16:03:26]Read from MH i2c: E2 0E 00 6C 65 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 57 [16:03:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:03:26]wFMCommunicate OK [16:03:26]SAM_PROTO_GetShiftState done [16:03:26]FM_GetShiftState done [16:03:26]req_shift_opened done [16:03:26]requested_item shift.open_date is exist - process it [16:03:26]req_shift_open_date [16:03:26]req_shift_open_date done [16:03:26]produce_requested_data done [16:03:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166094,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:03:26]process_action_free close_receipt [16:03:26]json_value_free [16:03:26]json_value_free done [16:03:26]process_json_proto returns [16:03:26]Send response to host [16:03:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166094,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:03:26]free response buf [16:03:26]execute_script done [16:03:26]execute_script returns [16:03:26]free content buf [16:03:26]Sock 5.Close socket [16:03:26]Sock 5.Thread stoped [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]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:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:53]accept exits with 6 [16:09:53]New connection [16:09:53]New thread 3066776932 created [16:09:53]Thread 3066920292 joined [16:09:53]Waiting for new connection... [16:09:53] Sock 6.Parse request [16:09:53]Sock 6.Check first char [16:09:53]Sock 6.First char is OK [16:09:53]request: POST /json_proto HTTP/1.0 [16:09:53]Method: POST [16:09:53]URL: /json_proto [16:09:53]Method is POST - this is cgi request [16:09:53]url: /json_proto [16:09:53]query_string will be loaded in cgi processing [16:09:53]execute_cgi json_proto POST (null) [16:09:53]execute_cgi path=json_proto method=POST [16:09:53]POST find Content-Length [16:09:53]Host: 172.17.53.195:8080 [16:09:53]Content-Length: 674 [16:09:53]Content-Type: application/json [16:09:53] [16:09:53]POST finish read [16:09:53]Found Content-Length = 674 [16:09:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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:09:53]execute_script... [16:09: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)220666", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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:09:53]POST & json_proto [16:09:53]process_json_proto [16:09:53]json parsed OK: [16:09:53]protocol is kg_v1.0 [16:09:53]action value=close_receipt [16:09:53]process_action close_receipt [16:09:53]cmd_close_receipt [16:09:53]MH_GetDate [16:09:53]Write to MH i2c: F0 00 00 6D 65 C1 [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: F0 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: F0 09 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: F0 09 00 6D 65 00 E4 7C 16 67 21 48 4A 65 BF [16:09:53]GetLastDocTimeStamp 1729526621 [16:09:53]current date 1729527012 [16:09:53]FM_GetShiftState [16:09:53]SAM_PROTO_GetShiftState [16:09:53]wFMCommunicate request_size=4 [16:09:53]MH_SAM_APDU [16:09:53]CAPDU: 80 13 01 00 [16:09:53]Write to MH i2c: E2 08 00 6E 65 80 13 01 00 00 00 00 00 50 [16:09:53]Write i2c OK [16:09:53]MH_I2C_Read... [16:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:53]Read from MH i2c: E2 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: E2 0E 00 [16:09:53]MH_I2C_Read... [16:09:53]Read from MH i2c: E2 0E 00 6E 65 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 59 [16:09:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:09:53]wFMCommunicate OK [16:09:53]SAM_PROTO_GetShiftState done [16:09:53]FM_GetShiftState done [16:09:53]opened in 1729470944 [16:09:53]opened+sec_in_day 1729557344 [16:09:53]quantity*price = 50063 [16:09:53]sum+1 = 50064 [16:09:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 206 21.10.2024 16:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166095 ФПД: 214946088520552 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161012&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166095&fm=214946088520552&tin=02508201610067®Number=0000000000091764&sum=50000 [16:09:54]StoreToDocumentArchive [16:09:54]shift 535 fd 166095 [16:09:54]save to /storage/0535/doc_00166095 [16:09:54]save last doc name /storage/0535/doc_00166095 to /storage/kkm_last_doc_name [16:09:54]save OK [16:09:54]Clear old archive folders... [16:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:09:54]tlvbuf is 01B8E530 [16:09:54]SAM_PROTO_ClearQueue [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 09 00 00 [16:09:54]Write to MH i2c: E2 08 00 7B 65 80 09 00 00 00 00 00 00 52 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 7B 65 00 90 00 54 [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]SAM_PROTO_ClearQueue done [16:09:54]KKMCreateOFDPacket [16:09:54]OFDProtocolAddRootSTLVToBuf [16:09:54]FM_MakeSignedData [16:09:54]FM_MakeSignedData [16:09:54]SAM_PROTO_SignData [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 01 02 [16:09:54]Write to MH i2c: E2 08 00 7C 65 80 0D 01 02 00 00 00 00 5A [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 7C 65 00 90 00 55 [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=255 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E4 7C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 88 02 00 35 04 06 00 C3 7E 09 40 [16:09:54]Write to MH i2c: E2 02 01 7D 65 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E4 7C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 88 02 00 35 04 06 00 C3 7E 09 40 00 00 15 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 7D 65 00 90 00 56 [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=7 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 02 02 02 8B 68 [16:09:54]Write to MH i2c: E2 0A 00 7E 65 80 0D 02 02 02 00 8B 68 00 00 54 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 7E 65 00 90 00 57 [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 03 02 [16:09:54]Write to MH i2c: E2 08 00 7F 65 80 0D 03 02 00 00 00 00 5F [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 0B 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 0B 00 7F 65 00 72 A6 06 78 70 B2 D9 E8 90 00 D9 [16:09:54]RAPDU: 72 A6 06 78 70 B2 D9 E8 90 00 [16:09:54]wFMCommunicate OK [16:09:54]SAM_PROTO_SignData done [16:09:54]FM_MakeSignedData done [16:09:54]CreateOFDProtocolMessage [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 11 00 00 [16:09:54]Write to MH i2c: E2 08 00 80 65 80 11 00 00 00 00 00 00 5F [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 17 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 17 00 80 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [16:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:09:54]wFMCommunicate OK [16:09:54]CreateOFDProtocolMessage done [16:09:54]OFDSenderStorePacket 166095 [16:09:54]StoreOFDPacket docnum=166095 [16:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 13 01 04 01 BA E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E4 7C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 88 02 00 35 04 06 00 C3 7E 09 40 8B 68 72 A6 06 78 70 B2 D9 E8 [16:09:54]CheckFolder [16:09:54]dirname=/storage/ofd_packets [16:09:54]CheckFolder done [16:09:54]ProducePacketName [16:09:54]name=ofd_packets/00166095 [16:09:54]NVStorageSaveData ofd_packets/00166095 [16:09:54]File name is /storage/ofd_packets/00166095 [16:09:54]Write 298 bytes [16:09:54]NVStorageSaveData done [16:09:54]OFDSenderStorePacket done [16:09:54]KKMCreateOFDPacket done [16:09:54]NVStorageSaveData kkm_last_timestamp [16:09:54]File name is /storage/kkm_last_timestamp [16:09:54]Write 4 bytes [16:09:54]NVStorageSaveData done [16:09:54]ExternCall_PrintAddStr [16:09:54]wPrintStart [16:09:54]Write to MH i2c: 01 00 00 81 65 E6 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: 01 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: 01 07 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: 01 07 00 81 65 00 00 00 00 00 FF 0F FB [16:09:54]RasterBufferAndPrint [16:09:54]line Счет N : (1)220666 [16:09:54]line ИНН: 02508201610067 [16:09:54]line Контрольно-Кассовый Чек [16:09:54]line ПРОДАЖА [16:09:54]line ТРК (МРК, ГНК) : 21 [16:09:54]line Товар: 2710194210 [16:09:54]line ДТ-К-5 [16:09:54]line 6.570 * 76.20 [16:09:54]line = 500.63 [16:09:54]line НДС 12% НСП 1% [16:09:54]line > о реализуемом товаре [16:09:54]line ОКРУГЛЕНИЕ: -0.63 [16:09:54]line ИТОГО: 500.00 [16:09:54]line Внесено: 500.00 [16:09:54]line СДАЧА: 0.00 [16:09:54]line НСП 1% : 4.43 [16:09:54]line НДС 12% : 53.16 [16:09:54]line Наличными: 500.00 [16:09:54]line Безнал.: 0.00 [16:09:54]line Место: АЗС № 161 "Партнер Нефть" [16:09:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:09:54]line СНО: Общий режим [16:09:54]line Чек 206 21.10.2024 16:10 [16:09:54]line Смена: 535 ФФД: 1.0 [16:09:54]line ЗНМ: 0300000104 [16:09:54]line РНМ: 0000000000091764 [16:09:54]line Версия ККМ: 001 [16:09:54]line ФМ: 0000000000871759 [16:09:54]line ФД: 166095 [16:09:54]line ФПД: 214946088520552 [16:09:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161012&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166095&fm=214946088520552&tin=02508201610067®Number=0000000000091764&sum=50000 [16:09:55]OFD Sender: Processing packet 166095 [packets to send 48, broken 47] [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00166095 [16:09:55]OFD Sender: To server: pG, [16:09:55]CommunicateWithHost lk.salyk.kg:30040 [16:09:55]ConnectInit lk.salyk.kg [16:09:55]written 0, free lines is 4095 [16:09:55]Connected sock=7 [16:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 13 01 04 01 BA E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 E4 7C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 88 02 00 35 04 06 00 C3 7E 09 40 8B 68 72 A6 06 78 70 B2 D9 E8 [16:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 54 5E 47 00 56 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 CF 88 02 00 F4 03 04 00 52 23 16 67 B6 04 01 00 00 CB 39 F8 EC 11 95 43 F9 [16:09:55]CommunicateWithHost err = 0 [16:09:55]CheckOFDResponse [16:09:55]1017 (14) - 77093643461234 [16:09:55]1041 (16) - 0000000000871759 [16:09:55]1040 (4) - 166095 [16:09:55]1012 (4) - 21.10.2024 09:48 [16:09:55]1206 (1) - 0 [16:09:55]OFD Sender: Remove packet 166095 [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00166095 [16:09:55]NVStorageDeleteData [16:09:55]Write to MH i2c: 01 00 00 AC 65 11 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 AC 65 00 00 00 00 00 BC 0C E0 [16:09:55]RasterBufferAndPrint [16:09:55]line [16:09:55]line [16:09:55]line [16:09:55]line [16:09:55]line [16:09:55]written 0, free lines is 3267 [16:09:55]MH_Cut [16:09:55]Write to MH i2c: D1 01 00 B3 65 01 EA [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: D1 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: D1 01 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: D1 01 00 B3 65 00 E9 [16:09:55]Write to MH i2c: 01 00 00 B4 65 19 [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:56]OFD Sender: No OFD packet to send [16:09:56]*** Cut start [16:09:56]*** Partial cut [16:09:56]*** CUTSNS_PIN = 1 [16:09:56]*** CUTSNS_PIN = 0 [16:09:56]*** Brake cut motor [16:09:57]Read from MH i2c: 01 [16:09:57]MH_I2C_Read... [16:09:57]*** Stop cut motor [16:09:57]*** Cut end [16:09:57]Read from MH i2c: 01 07 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: 01 07 00 B4 65 00 00 00 00 00 FF 0F 2E [16:09:57]process_action close_receipt done [16:09:57]requested_data is exist [16:09:57]produce_requested_data [16:09:57]requested_item fm.sn is exist - process it [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 11 00 00 [16:09:57]Write to MH i2c: E2 08 00 B5 65 80 11 00 00 00 00 00 00 94 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 17 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 17 00 B5 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [16:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:09:57]wFMCommunicate OK [16:09:57]requested_item fd.num is exist - process it [16:09:57]SAM_PROTO_GetFieldsCounters [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 13 00 00 [16:09:57]Write to MH i2c: E2 08 00 B6 65 80 13 00 00 00 00 00 00 97 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 62 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 62 00 B6 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 CF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_GetFieldsCounters done [16:09:57]requested_item shift.num is exist - process it [16:09:57]requested_item shift.opened is exist - process it [16:09:57]req_shift_opened [16:09:57]FM_GetShiftState [16:09:57]SAM_PROTO_GetShiftState [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 13 01 00 [16:09:57]Write to MH i2c: E2 08 00 B7 65 80 13 01 00 00 00 00 00 99 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0E 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 0E 00 B7 65 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A2 [16:09:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_GetShiftState done [16:09:57]FM_GetShiftState done [16:09:57]req_shift_opened done [16:09:57]requested_item shift.open_date is exist - process it [16:09:57]req_shift_open_date [16:09:57]req_shift_open_date done [16:09:57]produce_requested_data done [16:09:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166095,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:09:57]process_action_free close_receipt [16:09:57]json_value_free [16:09:57]json_value_free done [16:09:57]process_json_proto returns [16:09:57]Send response to host [16:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166095,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:09:57]free response buf [16:09:57]execute_script done [16:09:57]execute_script returns [16:09:57]free content buf [16:09:57]Sock 6.Close socket [16:09:57]Sock 6.Thread stoped [16:10:01]OFD Sender: No OFD packet to send [16:10:06]OFD Sender: No OFD packet to send [16:10:11]OFD Sender: No OFD packet to send [16:10:16]OFD Sender: No OFD packet to send [16:10:21]OFD Sender: No OFD packet to send [16:10:26]OFD Sender: No OFD packet to send [16:10:31]OFD Sender: No OFD packet to send [16:10:36]OFD Sender: No OFD packet to send [16:10:41]OFD Sender: No OFD packet to send [16:10:46]OFD Sender: No OFD packet to send [16:10:51]OFD Sender: No OFD packet to send [16:10:56]OFD Sender: No OFD packet to send [16:11:01]OFD Sender: No OFD packet to send [16:11:06]OFD Sender: No OFD packet to send [16:11:11]OFD Sender: No OFD packet to send [16:11:16]OFD Sender: No OFD packet to send [16:11:21]OFD Sender: No OFD packet to send [16:11:26]OFD Sender: No OFD packet to send [16:11:31]OFD Sender: No OFD packet to send [16:11:36]OFD Sender: No OFD packet to send [16:11:41]OFD Sender: No OFD packet to send [16:11:46]OFD Sender: No OFD packet to send [16:11:51]OFD Sender: No OFD packet to send [16:11:56]OFD Sender: No OFD packet to send [16:12:01]OFD Sender: No OFD packet to send [16:12:06]OFD Sender: No OFD packet to send [16:12:11]OFD Sender: No OFD packet to send [16:12:16]OFD Sender: No OFD packet to send [16:12:21]OFD Sender: No OFD packet to send [16:12:26]OFD Sender: No OFD packet to send [16:12:29]accept exits with 5 [16:12:29]New connection [16:12:29]New thread 3066920292 created [16:12:29]Thread 3066776932 joined [16:12:29]Waiting for new connection... [16:12:29] Sock 5.Parse request [16:12:29]Sock 5.Check first char [16:12:29]Sock 5.First char is OK [16:12:29]request: POST /json_proto HTTP/1.0 [16:12:29]Method: POST [16:12:29]URL: /json_proto [16:12:29]Method is POST - this is cgi request [16:12:29]url: /json_proto [16:12:29]query_string will be loaded in cgi processing [16:12:29]execute_cgi json_proto POST (null) [16:12:29]execute_cgi path=json_proto method=POST [16:12:29]POST find Content-Length [16:12:29]Host: 172.17.53.195:8080 [16:12:29]Content-Length: 677 [16:12:29]Content-Type: application/json [16:12:29] [16:12:29]POST finish read [16:12:29]Found Content-Length = 677 [16:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:29]execute_script... [16:12: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)220668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:12:29]POST & json_proto [16:12:29]process_json_proto [16:12:29]json parsed OK: [16:12:29]protocol is kg_v1.0 [16:12:29]action value=close_receipt [16:12:29]process_action close_receipt [16:12:29]cmd_close_receipt [16:12:29]MH_GetDate [16:12:29]Write to MH i2c: F0 00 00 B8 65 0C [16:12:29]Write i2c OK [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: F0 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: F0 09 00 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: F0 09 00 B8 65 00 80 7D 16 67 21 48 4A 65 A7 [16:12:29]GetLastDocTimeStamp 1729527012 [16:12:29]current date 1729527168 [16:12:29]FM_GetShiftState [16:12:29]SAM_PROTO_GetShiftState [16:12:29]wFMCommunicate request_size=4 [16:12:29]MH_SAM_APDU [16:12:29]CAPDU: 80 13 01 00 [16:12:29]Write to MH i2c: E2 08 00 B9 65 80 13 01 00 00 00 00 00 9B [16:12:29]Write i2c OK [16:12:29]MH_I2C_Read... [16:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:29]Read from MH i2c: E2 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: E2 0E 00 [16:12:29]MH_I2C_Read... [16:12:29]Read from MH i2c: E2 0E 00 B9 65 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A4 [16:12:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:12:29]wFMCommunicate OK [16:12:29]SAM_PROTO_GetShiftState done [16:12:29]FM_GetShiftState done [16:12:29]opened in 1729470944 [16:12:29]opened+sec_in_day 1729557344 [16:12:29]quantity*price = 50041 [16:12:29]sum+1 = 50042 [16:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 207 21.10.2024 16:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166096 ФПД: 267582741376559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161248&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166096&fm=267582741376559&tin=02508201610067®Number=0000000000091764&sum=50000 [16:12:30]StoreToDocumentArchive [16:12:30]shift 535 fd 166096 [16:12:30]save to /storage/0535/doc_00166096 [16:12:30]save last doc name /storage/0535/doc_00166096 to /storage/kkm_last_doc_name [16:12:30]save OK [16:12:30]Clear old archive folders... [16:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:30]tlvbuf is 01A92030 [16:12:30]SAM_PROTO_ClearQueue [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 09 00 00 [16:12:30]Write to MH i2c: E2 08 00 C6 65 80 09 00 00 00 00 00 00 9D [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 C6 65 00 90 00 9F [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]SAM_PROTO_ClearQueue done [16:12:30]KKMCreateOFDPacket [16:12:30]OFDProtocolAddRootSTLVToBuf [16:12:30]FM_MakeSignedData [16:12:30]FM_MakeSignedData [16:12:30]SAM_PROTO_SignData [16:12:30]wFMCommunicate request_size=4 [16:12:30]MH_SAM_APDU [16:12:30]CAPDU: 80 0D 01 02 [16:12:30]Write to MH i2c: E2 08 00 C7 65 80 0D 01 02 00 00 00 00 A5 [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:30]Read from MH i2c: E2 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 [16:12:30]MH_I2C_Read... [16:12:30]Read from MH i2c: E2 03 00 C7 65 00 90 00 A0 [16:12:30]RAPDU: 90 00 [16:12:30]wFMCommunicate OK [16:12:30]wFMCommunicate request_size=255 [16:12:30]MH_SAM_APDU [16:12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 80 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 88 02 00 35 04 06 00 F3 [16:12:30]Write to MH i2c: E2 02 01 C8 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 80 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 88 02 00 35 04 06 00 F3 00 00 EA [16:12:30]Write i2c OK [16:12:30]MH_I2C_Read... [16:12:31]OFD Sender: No OFD packet to send [16:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 03 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 03 00 C8 65 00 90 00 A1 [16:12:31]RAPDU: 90 00 [16:12:31]wFMCommunicate OK [16:12:31]wFMCommunicate request_size=10 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 0D 02 02 05 5D 76 3F 6E 2F [16:12:31]Write to MH i2c: E2 0D 00 C9 65 80 0D 02 02 05 00 5D 76 3F 6E 2F 00 00 61 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 03 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 03 00 C9 65 00 90 00 A2 [16:12:31]RAPDU: 90 00 [16:12:31]wFMCommunicate OK [16:12:31]wFMCommunicate request_size=4 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 0D 03 02 [16:12:31]Write to MH i2c: E2 08 00 CA 65 80 0D 03 02 00 00 00 00 AA [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 0B 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 0B 00 CA 65 00 21 D1 2C B2 9A 96 49 99 90 00 8D [16:12:31]RAPDU: 21 D1 2C B2 9A 96 49 99 90 00 [16:12:31]wFMCommunicate OK [16:12:31]SAM_PROTO_SignData done [16:12:31]FM_MakeSignedData done [16:12:31]CreateOFDProtocolMessage [16:12:31]wFMCommunicate request_size=4 [16:12:31]MH_SAM_APDU [16:12:31]CAPDU: 80 11 00 00 [16:12:31]Write to MH i2c: E2 08 00 CB 65 80 11 00 00 00 00 00 00 AA [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:31]Read from MH i2c: E2 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 17 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: E2 17 00 CB 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [16:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:12:31]wFMCommunicate OK [16:12:31]CreateOFDProtocolMessage done [16:12:31]OFDSenderStorePacket 166096 [16:12:31]StoreOFDPacket docnum=166096 [16:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 24 81 07 01 84 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 80 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 88 02 00 35 04 06 00 F3 5D 76 3F 6E 2F 21 D1 2C B2 9A 96 49 99 [16:12:31]CheckFolder [16:12:31]dirname=/storage/ofd_packets [16:12:31]CheckFolder done [16:12:31]ProducePacketName [16:12:31]name=ofd_packets/00166096 [16:12:31]NVStorageSaveData ofd_packets/00166096 [16:12:31]File name is /storage/ofd_packets/00166096 [16:12:31]Write 301 bytes [16:12:31]NVStorageSaveData done [16:12:31]OFDSenderStorePacket done [16:12:31]KKMCreateOFDPacket done [16:12:31]NVStorageSaveData kkm_last_timestamp [16:12:31]File name is /storage/kkm_last_timestamp [16:12:31]Write 4 bytes [16:12:31]NVStorageSaveData done [16:12:31]ExternCall_PrintAddStr [16:12:31]wPrintStart [16:12:31]Write to MH i2c: 01 00 00 CC 65 31 [16:12:31]Write i2c OK [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: 01 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: 01 07 00 [16:12:31]MH_I2C_Read... [16:12:31]Read from MH i2c: 01 07 00 CC 65 00 00 00 00 00 FF 0F 46 [16:12:31]RasterBufferAndPrint [16:12:31]line Счет N : (1)220668 [16:12:31]line ИНН: 02508201610067 [16:12:31]line Контрольно-Кассовый Чек [16:12:31]line ПРОДАЖА [16:12:31]line ТРК (МРК, ГНК) : 23 [16:12:31]line Товар: 2710124130 [16:12:31]line Аи-92-К-5 [16:12:31]line 7.480 * 66.90 [16:12:31]line = 500.41 [16:12:31]line НДС 12% НСП 1% [16:12:31]line > о реализуемом товаре [16:12:31]line ОКРУГЛЕНИЕ: -0.41 [16:12:31]line ИТОГО: 500.00 [16:12:31]line Внесено: 500.00 [16:12:31]line СДАЧА: 0.00 [16:12:31]line НСП 1% : 4.43 [16:12:31]line НДС 12% : 53.14 [16:12:31]line Наличными: 500.00 [16:12:31]line Безнал.: 0.00 [16:12:31]line Место: АЗС № 161 "Партнер Нефть" [16:12:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:12:31]line СНО: Общий режим [16:12:31]line Чек 207 21.10.2024 16:12 [16:12:31]line Смена: 535 ФФД: 1.0 [16:12:31]line ЗНМ: 0300000104 [16:12:31]line РНМ: 0000000000091764 [16:12:31]line Версия ККМ: 001 [16:12:31]line ФМ: 0000000000871759 [16:12:31]line ФД: 166096 [16:12:31]line ФПД: 267582741376559 [16:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161248&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166096&fm=267582741376559&tin=02508201610067®Number=0000000000091764&sum=50000 [16:12:31]OFD Sender: Processing packet 166096 [packets to send 48, broken 47] [16:12:31]ProducePacketName [16:12:31]name=ofd_packets/00166096 [16:12:31]OFD Sender: To server: pG, [16:12:31]CommunicateWithHost lk.salyk.kg:30040 [16:12:31]ConnectInit lk.salyk.kg [16:12:31]written 0, free lines is 4095 [16:12:31]Connected sock=7 [16:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 24 81 07 01 84 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 80 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 88 02 00 35 04 06 00 F3 5D 76 3F 6E 2F 21 D1 2C B2 9A 96 49 99 [16:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 88 39 47 00 4D BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D0 88 02 00 F4 03 04 00 EE 23 16 67 B6 04 01 00 00 E2 15 54 08 38 4F 5D 91 [16:12:32]CommunicateWithHost err = 0 [16:12:32]CheckOFDResponse [16:12:32]1017 (14) - 77093643461234 [16:12:32]1041 (16) - 0000000000871759 [16:12:32]1040 (4) - 166096 [16:12:32]1012 (4) - 21.10.2024 09:50 [16:12:32]1206 (1) - 0 [16:12:32]OFD Sender: Remove packet 166096 [16:12:32]ProducePacketName [16:12:32]name=ofd_packets/00166096 [16:12:32]NVStorageDeleteData [16:12:32]Write to MH i2c: 01 00 00 F7 65 5C [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: 01 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: 01 07 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: 01 07 00 F7 65 00 00 00 00 00 C2 0C 31 [16:12:32]RasterBufferAndPrint [16:12:32]line [16:12:32]line [16:12:32]line [16:12:32]line [16:12:32]line [16:12:32]written 0, free lines is 3272 [16:12:32]MH_Cut [16:12:32]Write to MH i2c: D1 01 00 FE 65 01 35 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: D1 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: D1 01 00 [16:12:32]MH_I2C_Read... [16:12:32]Read from MH i2c: D1 01 00 FE 65 00 34 [16:12:32]Write to MH i2c: 01 00 00 FF 65 64 [16:12:32]Write i2c OK [16:12:32]MH_I2C_Read... [16:12:32]OFD Sender: No OFD packet to send [16:12:32]*** Cut start [16:12:32]*** Partial cut [16:12:32]*** CUTSNS_PIN = 1 [16:12:32]*** CUTSNS_PIN = 0 [16:12:33]*** Brake cut motor [16:12:33]Read from MH i2c: 01 [16:12:33]MH_I2C_Read... [16:12:33]*** Stop cut motor [16:12:33]*** Cut end [16:12:33]Read from MH i2c: 01 07 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: 01 07 00 FF 65 00 00 00 00 00 FF 0F 79 [16:12:33]process_action close_receipt done [16:12:33]requested_data is exist [16:12:33]produce_requested_data [16:12:33]requested_item fm.sn is exist - process it [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 11 00 00 [16:12:33]Write to MH i2c: E2 08 00 00 66 80 11 00 00 00 00 00 00 E0 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 17 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 17 00 00 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [16:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:12:33]wFMCommunicate OK [16:12:33]requested_item fd.num is exist - process it [16:12:33]SAM_PROTO_GetFieldsCounters [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 13 00 00 [16:12:33]Write to MH i2c: E2 08 00 01 66 80 13 00 00 00 00 00 00 E3 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 62 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 62 00 01 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [16:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_GetFieldsCounters done [16:12:33]requested_item shift.num is exist - process it [16:12:33]requested_item shift.opened is exist - process it [16:12:33]req_shift_opened [16:12:33]FM_GetShiftState [16:12:33]SAM_PROTO_GetShiftState [16:12:33]wFMCommunicate request_size=4 [16:12:33]MH_SAM_APDU [16:12:33]CAPDU: 80 13 01 00 [16:12:33]Write to MH i2c: E2 08 00 02 66 80 13 01 00 00 00 00 00 E5 [16:12:33]Write i2c OK [16:12:33]MH_I2C_Read... [16:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:33]Read from MH i2c: E2 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 0E 00 [16:12:33]MH_I2C_Read... [16:12:33]Read from MH i2c: E2 0E 00 02 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EE [16:12:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:12:33]wFMCommunicate OK [16:12:33]SAM_PROTO_GetShiftState done [16:12:33]FM_GetShiftState done [16:12:33]req_shift_opened done [16:12:33]requested_item shift.open_date is exist - process it [16:12:33]req_shift_open_date [16:12:33]req_shift_open_date done [16:12:33]produce_requested_data done [16:12:33]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166096,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:12:33]process_action_free close_receipt [16:12:33]json_value_free [16:12:33]json_value_free done [16:12:33]process_json_proto returns [16:12:33]Send response to host [16:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166096,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:12:33]free response buf [16:12:33]execute_script done [16:12:33]execute_script returns [16:12:33]free content buf [16:12:33]Sock 5.Close socket [16:12:33]Sock 5.Thread stoped [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:14]accept exits with 6 [16:13:14]New connection [16:13:14]New thread 3066776932 created [16:13:14]Thread 3066920292 joined [16:13:14]Waiting for new connection... [16:13:14] Sock 6.Parse request [16:13:14]Sock 6.Check first char [16:13:14]Sock 6.First char is OK [16:13:14]request: POST /json_proto HTTP/1.0 [16:13:14]Method: POST [16:13:14]URL: /json_proto [16:13:14]Method is POST - this is cgi request [16:13:14]url: /json_proto [16:13:14]query_string will be loaded in cgi processing [16:13:14]execute_cgi json_proto POST (null) [16:13:14]execute_cgi path=json_proto method=POST [16:13:14]POST find Content-Length [16:13:14]Host: 172.17.53.195:8080 [16:13:14]Content-Length: 682 [16:13:14]Content-Type: application/json [16:13:14] [16:13:14]POST finish read [16:13:14]Found Content-Length = 682 [16:13:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [16:13:14]execute_script... [16:13:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220667", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [16:13:14]POST & json_proto [16:13:14]process_json_proto [16:13:14]json parsed OK: [16:13:14]protocol is kg_v1.0 [16:13:14]action value=close_receipt [16:13:14]process_action close_receipt [16:13:14]cmd_close_receipt [16:13:14]MH_GetDate [16:13:14]Write to MH i2c: F0 00 00 03 66 58 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: F0 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: F0 09 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: F0 09 00 03 66 00 AD 7D 16 67 21 48 4A 65 20 [16:13:14]GetLastDocTimeStamp 1729527168 [16:13:14]current date 1729527213 [16:13:14]FM_GetShiftState [16:13:14]SAM_PROTO_GetShiftState [16:13:14]wFMCommunicate request_size=4 [16:13:14]MH_SAM_APDU [16:13:14]CAPDU: 80 13 01 00 [16:13:14]Write to MH i2c: E2 08 00 04 66 80 13 01 00 00 00 00 00 E7 [16:13:14]Write i2c OK [16:13:14]MH_I2C_Read... [16:13:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:14]Read from MH i2c: E2 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 0E 00 [16:13:14]MH_I2C_Read... [16:13:14]Read from MH i2c: E2 0E 00 04 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F0 [16:13:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:13:14]wFMCommunicate OK [16:13:14]SAM_PROTO_GetShiftState done [16:13:14]FM_GetShiftState done [16:13:14]opened in 1729470944 [16:13:14]opened+sec_in_day 1729557344 [16:13:14]quantity*price = 200043 [16:13:14]sum+1 = 200044 [16:13:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 208 21.10.2024 16:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166097 ФПД: 63639913193706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166097&fm=63639913193706&tin=02508201610067®Number=0000000000091764&sum=200000 [16:13:15]StoreToDocumentArchive [16:13:15]shift 535 fd 166097 [16:13:15]save to /storage/0535/doc_00166097 [16:13:15]save last doc name /storage/0535/doc_00166097 to /storage/kkm_last_doc_name [16:13:15]save OK [16:13:15]Clear old archive folders... [16:13:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:15]tlvbuf is 0165D8A0 [16:13:15]SAM_PROTO_ClearQueue [16:13:15]wFMCommunicate request_size=4 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 09 00 00 [16:13:15]Write to MH i2c: E2 08 00 11 66 80 09 00 00 00 00 00 00 E9 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 11 66 00 90 00 EB [16:13:15]RAPDU: 90 00 [16:13:15]wFMCommunicate OK [16:13:15]SAM_PROTO_ClearQueue done [16:13:15]KKMCreateOFDPacket [16:13:15]OFDProtocolAddRootSTLVToBuf [16:13:15]FM_MakeSignedData [16:13:15]FM_MakeSignedData [16:13:15]SAM_PROTO_SignData [16:13:15]wFMCommunicate request_size=4 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 0D 01 02 [16:13:15]Write to MH i2c: E2 08 00 12 66 80 0D 01 02 00 00 00 00 F1 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 12 66 00 90 00 EC [16:13:15]RAPDU: 90 00 [16:13:15]wFMCommunicate OK [16:13:15]wFMCommunicate request_size=255 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D0 00 00 00 F4 03 04 00 AD 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 88 02 00 35 04 06 00 39 [16:13:15]Write to MH i2c: E2 02 01 13 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D0 00 00 00 F4 03 04 00 AD 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 88 02 00 35 04 06 00 39 00 00 53 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 13 66 00 90 00 ED [16:13:15]RAPDU: 90 00 [16:13:15]wFMCommunicate OK [16:13:15]wFMCommunicate request_size=10 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 0D 02 02 05 E1 52 6B 60 EA [16:13:15]Write to MH i2c: E2 0D 00 14 66 80 0D 02 02 05 00 E1 52 6B 60 EA 00 00 E6 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 03 00 14 66 00 90 00 EE [16:13:15]RAPDU: 90 00 [16:13:15]wFMCommunicate OK [16:13:15]wFMCommunicate request_size=4 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 0D 03 02 [16:13:15]Write to MH i2c: E2 08 00 15 66 80 0D 03 02 00 00 00 00 F6 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:16]Read from MH i2c: E2 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 0B 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 0B 00 15 66 00 25 72 BE BD 20 1D 05 CB 90 00 16 [16:13:16]RAPDU: 25 72 BE BD 20 1D 05 CB 90 00 [16:13:16]wFMCommunicate OK [16:13:16]SAM_PROTO_SignData done [16:13:16]FM_MakeSignedData done [16:13:16]CreateOFDProtocolMessage [16:13:16]wFMCommunicate request_size=4 [16:13:16]MH_SAM_APDU [16:13:16]CAPDU: 80 11 00 00 [16:13:16]Write to MH i2c: E2 08 00 16 66 80 11 00 00 00 00 00 00 F6 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:16]Read from MH i2c: E2 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 17 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 17 00 16 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4E [16:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:13:16]wFMCommunicate OK [16:13:16]CreateOFDProtocolMessage done [16:13:16]OFDSenderStorePacket 166097 [16:13:16]StoreOFDPacket docnum=166097 [16:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 CF 07 01 8F 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 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 D0 00 00 00 F4 03 04 00 AD 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 88 02 00 35 04 06 00 39 E1 52 6B 60 EA 25 72 BE BD 20 1D 05 CB [16:13:16]CheckFolder [16:13:16]dirname=/storage/ofd_packets [16:13:16]CheckFolder done [16:13:16]ProducePacketName [16:13:16]name=ofd_packets/00166097 [16:13:16]NVStorageSaveData ofd_packets/00166097 [16:13:16]File name is /storage/ofd_packets/00166097 [16:13:16]Write 301 bytes [16:13:16]NVStorageSaveData done [16:13:16]OFDSenderStorePacket done [16:13:16]KKMCreateOFDPacket done [16:13:16]NVStorageSaveData kkm_last_timestamp [16:13:16]File name is /storage/kkm_last_timestamp [16:13:16]Write 4 bytes [16:13:16]NVStorageSaveData done [16:13:16]ExternCall_PrintAddStr [16:13:16]wPrintStart [16:13:16]Write to MH i2c: 01 00 00 17 66 7D [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 07 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 07 00 17 66 00 00 00 00 00 FF 0F 92 [16:13:16]RasterBufferAndPrint [16:13:16]line Счет N : (1)220667 [16:13:16]line ИНН: 02508201610067 [16:13:16]line Контрольно-Кассовый Чек [16:13:16]line ПРОДАЖА [16:13:16]line ТРК (МРК, ГНК) : 34 [16:13:16]line Товар: 2710124500 [16:13:16]line Аи-95-К-5 [16:13:16]line 26.960 * 74.20 [16:13:16]line = 2000.43 [16:13:16]line НДС 12% НСП 1% [16:13:16]line > о реализуемом товаре [16:13:16]line ОКРУГЛЕНИЕ: -0.43 [16:13:16]line ИТОГО: 2000.00 [16:13:16]line Внесено: 2000.00 [16:13:16]line СДАЧА: 0.00 [16:13:16]line НСП 1% : 17.70 [16:13:16]line НДС 12% : 212.43 [16:13:16]line Наличными: 2000.00 [16:13:16]line Безнал.: 0.00 [16:13:16]line Место: АЗС № 161 "Партнер Нефть" [16:13:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:13:16]line СНО: Общий режим [16:13:16]line Чек 208 21.10.2024 16:13 [16:13:16]line Смена: 535 ФФД: 1.0 [16:13:16]line ЗНМ: 0300000104 [16:13:16]line РНМ: 0000000000091764 [16:13:16]line Версия ККМ: 001 [16:13:16]line ФМ: 0000000000871759 [16:13:16]line ФД: 166097 [16:13:16]line ФПД: 63639913193706 [16:13:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T161333&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166097&fm=63639913193706&tin=02508201610067®Number=0000000000091764&sum=200000 [16:13:16]OFD Sender: Processing packet 166097 [packets to send 48, broken 47] [16:13:16]ProducePacketName [16:13:16]name=ofd_packets/00166097 [16:13:16]OFD Sender: To server: pG, [16:13:16]CommunicateWithHost lk.salyk.kg:30040 [16:13:16]ConnectInit lk.salyk.kg [16:13:16]written 0, free lines is 4095 [16:13:16]Connected sock=7 [16:13:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 50 CF 07 01 8F 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 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 D0 00 00 00 F4 03 04 00 AD 7D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D1 88 02 00 35 04 06 00 39 E1 52 6B 60 EA 25 72 BE BD 20 1D 05 CB [16:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 E7 47 00 5B 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 35 39 10 04 04 00 D1 88 02 00 F4 03 04 00 1B 24 16 67 B6 04 01 00 00 C0 2C AD 2A 28 3F B9 1E [16:13:16]CommunicateWithHost err = 0 [16:13:16]CheckOFDResponse [16:13:16]1017 (14) - 77093643461234 [16:13:16]1041 (16) - 0000000000871759 [16:13:16]1040 (4) - 166097 [16:13:16]1012 (4) - 21.10.2024 09:51 [16:13:16]1206 (1) - 0 [16:13:16]OFD Sender: Remove packet 166097 [16:13:16]ProducePacketName [16:13:16]name=ofd_packets/00166097 [16:13:16]NVStorageDeleteData [16:13:16]Write to MH i2c: 01 00 00 42 66 A8 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 07 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: 01 07 00 42 66 00 00 00 00 00 CA 0C 85 [16:13:16]RasterBufferAndPrint [16:13:16]line [16:13:16]line [16:13:16]line [16:13:16]line [16:13:16]line [16:13:16]written 0, free lines is 3281 [16:13:16]MH_Cut [16:13:16]Write to MH i2c: D1 01 00 49 66 01 81 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: D1 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: D1 01 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: D1 01 00 49 66 00 80 [16:13:16]Write to MH i2c: 01 00 00 4A 66 B0 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:17]OFD Sender: No OFD packet to send [16:13:17]*** Cut start [16:13:17]*** Partial cut [16:13:17]*** CUTSNS_PIN = 1 [16:13:17]*** CUTSNS_PIN = 0 [16:13:17]*** Brake cut motor [16:13:18]Read from MH i2c: 01 [16:13:18]MH_I2C_Read... [16:13:18]*** Stop cut motor [16:13:18]*** Cut end [16:13:18]Read from MH i2c: 01 07 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: 01 07 00 4A 66 00 00 00 00 00 FF 0F C5 [16:13:18]process_action close_receipt done [16:13:18]requested_data is exist [16:13:18]produce_requested_data [16:13:18]requested_item fm.sn is exist - process it [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 11 00 00 [16:13:18]Write to MH i2c: E2 08 00 4B 66 80 11 00 00 00 00 00 00 2B [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:18]Read from MH i2c: E2 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 17 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 17 00 4B 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 83 [16:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:13:18]wFMCommunicate OK [16:13:18]requested_item fd.num is exist - process it [16:13:18]SAM_PROTO_GetFieldsCounters [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 13 00 00 [16:13:18]Write to MH i2c: E2 08 00 4C 66 80 13 00 00 00 00 00 00 2E [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:18]Read from MH i2c: E2 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 62 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 62 00 4C 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [16:13:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:18]wFMCommunicate OK [16:13:18]SAM_PROTO_GetFieldsCounters done [16:13:18]requested_item shift.num is exist - process it [16:13:18]requested_item shift.opened is exist - process it [16:13:18]req_shift_opened [16:13:18]FM_GetShiftState [16:13:18]SAM_PROTO_GetShiftState [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 13 01 00 [16:13:18]Write to MH i2c: E2 08 00 4D 66 80 13 01 00 00 00 00 00 30 [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:18]Read from MH i2c: E2 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 0E 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 0E 00 4D 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 39 [16:13:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:13:18]wFMCommunicate OK [16:13:18]SAM_PROTO_GetShiftState done [16:13:18]FM_GetShiftState done [16:13:18]req_shift_opened done [16:13:18]requested_item shift.open_date is exist - process it [16:13:18]req_shift_open_date [16:13:18]req_shift_open_date done [16:13:18]produce_requested_data done [16:13:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166097,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:13:18]process_action_free close_receipt [16:13:18]json_value_free [16:13:18]json_value_free done [16:13:18]process_json_proto returns [16:13:18]Send response to host [16:13:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166097,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:13:18]free response buf [16:13:18]execute_script done [16:13:18]execute_script returns [16:13:18]free content buf [16:13:18]Sock 6.Close socket [16:13:18]Sock 6.Thread stoped [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:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:16]accept exits with 5 [16:20:16]New connection [16:20:16]New thread 3066920292 created [16:20:16]Thread 3066776932 joined [16:20:16]Waiting for new connection... [16:20:16] Sock 5.Parse request [16:20:16]Sock 5.Check first char [16:20:16]Sock 5.First char is OK [16:20:16]request: POST /json_proto HTTP/1.0 [16:20:16]Method: POST [16:20:16]URL: /json_proto [16:20:16]Method is POST - this is cgi request [16:20:16]url: /json_proto [16:20:16]query_string will be loaded in cgi processing [16:20:16]execute_cgi json_proto POST (null) [16:20:16]execute_cgi path=json_proto method=POST [16:20:16]POST find Content-Length [16:20:16]Host: 172.17.53.195:8080 [16:20:16]Content-Length: 677 [16:20:16]Content-Type: application/json [16:20:16] [16:20:16]POST finish read [16:20:16]Found Content-Length = 677 [16:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.680, "sum" : 379.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 379.00, "payments": [ { "type": 0, "sum" : 379.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:16]execute_script... [16:20: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)220669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.680, "sum" : 379.99, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 379.00, "payments": [ { "type": 0, "sum" : 379.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:16]POST & json_proto [16:20:16]process_json_proto [16:20:16]json parsed OK: [16:20:16]protocol is kg_v1.0 [16:20:16]action value=close_receipt [16:20:16]process_action close_receipt [16:20:16]cmd_close_receipt [16:20:16]MH_GetDate [16:20:16]Write to MH i2c: F0 00 00 4E 66 A3 [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: F0 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: F0 09 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: F0 09 00 4E 66 00 53 7F 16 67 21 48 4A 65 13 [16:20:16]GetLastDocTimeStamp 1729527213 [16:20:16]current date 1729527635 [16:20:16]FM_GetShiftState [16:20:16]SAM_PROTO_GetShiftState [16:20:16]wFMCommunicate request_size=4 [16:20:16]MH_SAM_APDU [16:20:16]CAPDU: 80 13 01 00 [16:20:16]Write to MH i2c: E2 08 00 4F 66 80 13 01 00 00 00 00 00 32 [16:20:16]Write i2c OK [16:20:16]MH_I2C_Read... [16:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:16]Read from MH i2c: E2 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 0E 00 [16:20:16]MH_I2C_Read... [16:20:16]Read from MH i2c: E2 0E 00 4F 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3B [16:20:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:20:16]wFMCommunicate OK [16:20:16]SAM_PROTO_GetShiftState done [16:20:16]FM_GetShiftState done [16:20:16]opened in 1729470944 [16:20:16]opened+sec_in_day 1729557344 [16:20:16]quantity*price = 37999 [16:20:16]sum+1 = 38000 [16:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.99 ИТОГО: 379.00 Внесено: 380.00 СДАЧА: 1.00 НСП 1% : 3.36 НДС 12% : 40.35 Наличными: 379.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 209 21.10.2024 16:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166098 ФПД: 57164845733617 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166098&fm=57164845733617&tin=02508201610067®Number=0000000000091764&sum=37900 [16:20:17]StoreToDocumentArchive [16:20:17]shift 535 fd 166098 [16:20:17]save to /storage/0535/doc_00166098 [16:20:17]save last doc name /storage/0535/doc_00166098 to /storage/kkm_last_doc_name [16:20:17]save OK [16:20:17]Clear old archive folders... [16:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:20:17]tlvbuf is 014B2F50 [16:20:17]SAM_PROTO_ClearQueue [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 09 00 00 [16:20:17]Write to MH i2c: E2 08 00 5C 66 80 09 00 00 00 00 00 00 34 [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:17]OFD Sender: No OFD packet to send [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 03 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 03 00 5C 66 00 90 00 36 [16:20:17]RAPDU: 90 00 [16:20:17]wFMCommunicate OK [16:20:17]SAM_PROTO_ClearQueue done [16:20:17]KKMCreateOFDPacket [16:20:17]OFDProtocolAddRootSTLVToBuf [16:20:17]FM_MakeSignedData [16:20:17]FM_MakeSignedData [16:20:17]SAM_PROTO_SignData [16:20:17]wFMCommunicate request_size=4 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 0D 01 02 [16:20:17]Write to MH i2c: E2 08 00 5D 66 80 0D 01 02 00 00 00 00 3C [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 03 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 03 00 5D 66 00 90 00 37 [16:20:17]RAPDU: 90 00 [16:20:17]wFMCommunicate OK [16:20:17]wFMCommunicate request_size=255 [16:20:17]MH_SAM_APDU [16:20: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 30 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 0C 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 53 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 88 02 00 35 04 06 00 33 [16:20:17]Write to MH i2c: E2 02 01 5E 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 0C 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 53 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 88 02 00 35 04 06 00 33 00 00 FD [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:17]Read from MH i2c: E2 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 03 00 [16:20:17]MH_I2C_Read... [16:20:17]Read from MH i2c: E2 03 00 5E 66 00 90 00 38 [16:20:17]RAPDU: 90 00 [16:20:17]wFMCommunicate OK [16:20:17]wFMCommunicate request_size=10 [16:20:17]MH_SAM_APDU [16:20:17]CAPDU: 80 0D 02 02 05 FD BA 52 D6 F1 [16:20:17]Write to MH i2c: E2 0D 00 5F 66 80 0D 02 02 05 00 FD BA 52 D6 F1 00 00 19 [16:20:17]Write i2c OK [16:20:17]MH_I2C_Read... [16:20:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:18]Read from MH i2c: E2 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 03 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 03 00 5F 66 00 90 00 39 [16:20:18]RAPDU: 90 00 [16:20:18]wFMCommunicate OK [16:20:18]wFMCommunicate request_size=4 [16:20:18]MH_SAM_APDU [16:20:18]CAPDU: 80 0D 03 02 [16:20:18]Write to MH i2c: E2 08 00 60 66 80 0D 03 02 00 00 00 00 41 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:18]Read from MH i2c: E2 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 0B 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 0B 00 60 66 00 21 A8 11 31 C8 AC 93 C8 90 00 1C [16:20:18]RAPDU: 21 A8 11 31 C8 AC 93 C8 90 00 [16:20:18]wFMCommunicate OK [16:20:18]SAM_PROTO_SignData done [16:20:18]FM_MakeSignedData done [16:20:18]CreateOFDProtocolMessage [16:20:18]wFMCommunicate request_size=4 [16:20:18]MH_SAM_APDU [16:20:18]CAPDU: 80 11 00 00 [16:20:18]Write to MH i2c: E2 08 00 61 66 80 11 00 00 00 00 00 00 41 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:18]Read from MH i2c: E2 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 17 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: E2 17 00 61 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 99 [16:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:20:18]wFMCommunicate OK [16:20:18]CreateOFDProtocolMessage done [16:20:18]OFDSenderStorePacket 166098 [16:20:18]StoreOFDPacket docnum=166098 [16:20:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA FC 07 01 9E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 0C 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 53 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 88 02 00 35 04 06 00 33 FD BA 52 D6 F1 21 A8 11 31 C8 AC 93 C8 [16:20:18]CheckFolder [16:20:18]dirname=/storage/ofd_packets [16:20:18]CheckFolder done [16:20:18]ProducePacketName [16:20:18]name=ofd_packets/00166098 [16:20:18]NVStorageSaveData ofd_packets/00166098 [16:20:18]File name is /storage/ofd_packets/00166098 [16:20:18]Write 301 bytes [16:20:18]NVStorageSaveData done [16:20:18]OFDSenderStorePacket done [16:20:18]KKMCreateOFDPacket done [16:20:18]NVStorageSaveData kkm_last_timestamp [16:20:18]File name is /storage/kkm_last_timestamp [16:20:18]Write 4 bytes [16:20:18]NVStorageSaveData done [16:20:18]ExternCall_PrintAddStr [16:20:18]wPrintStart [16:20:18]Write to MH i2c: 01 00 00 62 66 C8 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: 01 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: 01 07 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: 01 07 00 62 66 00 00 00 00 00 FF 0F DD [16:20:18]RasterBufferAndPrint [16:20:18]line Счет N : (1)220669 [16:20:18]line ИНН: 02508201610067 [16:20:18]line Контрольно-Кассовый Чек [16:20:18]line ПРОДАЖА [16:20:18]line ТРК (МРК, ГНК) : 13 [16:20:18]line Товар: 2710124130 [16:20:18]line Аи-92-К-5 [16:20:18]line 5.680 * 66.90 [16:20:18]line = 379.99 [16:20:18]line НДС 12% НСП 1% [16:20:18]line > о реализуемом товаре [16:20:18]line ОКРУГЛЕНИЕ: -0.99 [16:20:18]line ИТОГО: 379.00 [16:20:18]line Внесено: 380.00 [16:20:18]line СДАЧА: 1.00 [16:20:18]line НСП 1% : 3.36 [16:20:18]line НДС 12% : 40.35 [16:20:18]line Наличными: 379.00 [16:20:18]line Безнал.: 0.00 [16:20:18]line Место: АЗС № 161 "Партнер Нефть" [16:20:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:20:18]line СНО: Общий режим [16:20:18]line Чек 209 21.10.2024 16:20 [16:20:18]line Смена: 535 ФФД: 1.0 [16:20:18]line ЗНМ: 0300000104 [16:20:18]line РНМ: 0000000000091764 [16:20:18]line Версия ККМ: 001 [16:20:18]line ФМ: 0000000000871759 [16:20:18]line ФД: 166098 [16:20:18]line ФПД: 57164845733617 [16:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162035&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166098&fm=57164845733617&tin=02508201610067®Number=0000000000091764&sum=37900 [16:20:18]OFD Sender: Processing packet 166098 [packets to send 48, broken 47] [16:20:18]ProducePacketName [16:20:18]name=ofd_packets/00166098 [16:20:18]OFD Sender: To server: pG, [16:20:18]CommunicateWithHost lk.salyk.kg:30040 [16:20:18]ConnectInit lk.salyk.kg [16:20:18]written 0, free lines is 4095 [16:20:18]Connected sock=6 [16:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA FC 07 01 9E 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 16 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6F 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 0C 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 53 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 88 02 00 35 04 06 00 33 FD BA 52 D6 F1 21 A8 11 31 C8 AC 93 C8 [16:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 12 EB 47 00 5A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D2 88 02 00 F4 03 04 00 C1 25 16 67 B6 04 01 00 00 40 62 F8 4F C4 C7 D4 5C [16:20:18]CommunicateWithHost err = 0 [16:20:18]CheckOFDResponse [16:20:18]1017 (14) - 77093643461234 [16:20:18]1041 (16) - 0000000000871759 [16:20:18]1040 (4) - 166098 [16:20:18]1012 (4) - 21.10.2024 09:58 [16:20:18]1206 (1) - 0 [16:20:18]OFD Sender: Remove packet 166098 [16:20:18]ProducePacketName [16:20:18]name=ofd_packets/00166098 [16:20:18]NVStorageDeleteData [16:20:18]Write to MH i2c: 01 00 00 8D 66 F3 [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: 01 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: 01 07 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: 01 07 00 8D 66 00 00 00 00 00 C9 0C CF [16:20:18]RasterBufferAndPrint [16:20:18]line [16:20:18]line [16:20:18]line [16:20:18]line [16:20:18]line [16:20:18]written 0, free lines is 3279 [16:20:18]MH_Cut [16:20:18]Write to MH i2c: D1 01 00 94 66 01 CC [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: D1 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: D1 01 00 [16:20:18]MH_I2C_Read... [16:20:18]Read from MH i2c: D1 01 00 94 66 00 CB [16:20:18]Write to MH i2c: 01 00 00 95 66 FB [16:20:18]Write i2c OK [16:20:18]MH_I2C_Read... [16:20:19]OFD Sender: No OFD packet to send [16:20:19]*** Cut start [16:20:19]*** Partial cut [16:20:19]*** CUTSNS_PIN = 1 [16:20:19]*** CUTSNS_PIN = 0 [16:20:19]*** Brake cut motor [16:20:20]Read from MH i2c: 01 [16:20:20]MH_I2C_Read... [16:20:20]*** Stop cut motor [16:20:20]*** Cut end [16:20:20]Read from MH i2c: 01 07 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: 01 07 00 95 66 00 00 00 00 00 FF 0F 10 [16:20:20]process_action close_receipt done [16:20:20]requested_data is exist [16:20:20]produce_requested_data [16:20:20]requested_item fm.sn is exist - process it [16:20:20]wFMCommunicate request_size=4 [16:20:20]MH_SAM_APDU [16:20:20]CAPDU: 80 11 00 00 [16:20:20]Write to MH i2c: E2 08 00 96 66 80 11 00 00 00 00 00 00 76 [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:20]Read from MH i2c: E2 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 17 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 17 00 96 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CE [16:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:20:20]wFMCommunicate OK [16:20:20]requested_item fd.num is exist - process it [16:20:20]SAM_PROTO_GetFieldsCounters [16:20:20]wFMCommunicate request_size=4 [16:20:20]MH_SAM_APDU [16:20:20]CAPDU: 80 13 00 00 [16:20:20]Write to MH i2c: E2 08 00 97 66 80 13 00 00 00 00 00 00 79 [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:20]Read from MH i2c: E2 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 62 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 62 00 97 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [16:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:20]wFMCommunicate OK [16:20:20]SAM_PROTO_GetFieldsCounters done [16:20:20]requested_item shift.num is exist - process it [16:20:20]requested_item shift.opened is exist - process it [16:20:20]req_shift_opened [16:20:20]FM_GetShiftState [16:20:20]SAM_PROTO_GetShiftState [16:20:20]wFMCommunicate request_size=4 [16:20:20]MH_SAM_APDU [16:20:20]CAPDU: 80 13 01 00 [16:20:20]Write to MH i2c: E2 08 00 98 66 80 13 01 00 00 00 00 00 7B [16:20:20]Write i2c OK [16:20:20]MH_I2C_Read... [16:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:20]Read from MH i2c: E2 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 0E 00 [16:20:20]MH_I2C_Read... [16:20:20]Read from MH i2c: E2 0E 00 98 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 84 [16:20:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:20:20]wFMCommunicate OK [16:20:20]SAM_PROTO_GetShiftState done [16:20:20]FM_GetShiftState done [16:20:20]req_shift_opened done [16:20:20]requested_item shift.open_date is exist - process it [16:20:20]req_shift_open_date [16:20:20]req_shift_open_date done [16:20:20]produce_requested_data done [16:20:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166098,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:20:20]process_action_free close_receipt [16:20:20]json_value_free [16:20:20]json_value_free done [16:20:20]process_json_proto returns [16:20:20]Send response to host [16:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166098,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:20:20]free response buf [16:20:20]execute_script done [16:20:20]execute_script returns [16:20:20]free content buf [16:20:20]Sock 5.Close socket [16:20:20]Sock 5.Thread stoped [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:08]accept exits with 7 [16:21:08]New connection [16:21:08]New thread 3066776932 created [16:21:08]Thread 3066920292 joined [16:21:08]Waiting for new connection... [16:21:08] Sock 7.Parse request [16:21:08]Sock 7.Check first char [16:21:08]Sock 7.First char is OK [16:21:08]request: POST /json_proto HTTP/1.0 [16:21:08]Method: POST [16:21:08]URL: /json_proto [16:21:08]Method is POST - this is cgi request [16:21:08]url: /json_proto [16:21:08]query_string will be loaded in cgi processing [16:21:08]execute_cgi json_proto POST (null) [16:21:08]execute_cgi path=json_proto method=POST [16:21:08]POST find Content-Length [16:21:08]Host: 172.17.53.195:8080 [16:21:08]Content-Length: 766 [16:21:08]Content-Type: application/json [16:21:08] [16:21:08]POST finish read [16:21:08]Found Content-Length = 766 [16:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:08]execute_script... [16:21: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)220670", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:21:08]POST & json_proto [16:21:08]process_json_proto [16:21:08]json parsed OK: [16:21:08]protocol is kg_v1.0 [16:21:08]action value=close_receipt [16:21:08]process_action close_receipt [16:21:08]cmd_close_receipt [16:21:08]MH_GetDate [16:21:08]Write to MH i2c: F0 00 00 99 66 EE [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: F0 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: F0 09 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: F0 09 00 99 66 00 87 7F 16 67 21 48 4A 65 92 [16:21:08]GetLastDocTimeStamp 1729527635 [16:21:08]current date 1729527687 [16:21:08]FM_GetShiftState [16:21:08]SAM_PROTO_GetShiftState [16:21:08]wFMCommunicate request_size=4 [16:21:08]MH_SAM_APDU [16:21:08]CAPDU: 80 13 01 00 [16:21:08]Write to MH i2c: E2 08 00 9A 66 80 13 01 00 00 00 00 00 7D [16:21:08]Write i2c OK [16:21:08]MH_I2C_Read... [16:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:08]Read from MH i2c: E2 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 0E 00 [16:21:08]MH_I2C_Read... [16:21:08]Read from MH i2c: E2 0E 00 9A 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 86 [16:21:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:21:08]wFMCommunicate OK [16:21:08]SAM_PROTO_GetShiftState done [16:21:08]FM_GetShiftState done [16:21:08]opened in 1729470944 [16:21:08]opened+sec_in_day 1729557344 [16:21:08]quantity*price = 200025 [16:21:08]sum+1 = 200026 [16:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 210 21.10.2024 16:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166099 ФПД: 193769472710630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166099&fm=193769472710630&tin=02508201610067®Number=0000000000091764&sum=200025 [16:21:09]StoreToDocumentArchive [16:21:09]shift 535 fd 166099 [16:21:09]save to /storage/0535/doc_00166099 [16:21:09]save last doc name /storage/0535/doc_00166099 to /storage/kkm_last_doc_name [16:21:09]save OK [16:21:09]Clear old archive folders... [16:21:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:09]tlvbuf is 0148FFF0 [16:21:09]SAM_PROTO_ClearQueue [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 09 00 00 [16:21:09]Write to MH i2c: E2 08 00 A7 66 80 09 00 00 00 00 00 00 7F [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 A7 66 00 90 00 81 [16:21:09]RAPDU: 90 00 [16:21:09]wFMCommunicate OK [16:21:09]SAM_PROTO_ClearQueue done [16:21:09]KKMCreateOFDPacket [16:21:09]OFDProtocolAddRootSTLVToBuf [16:21:09]FM_MakeSignedData [16:21:09]FM_MakeSignedData [16:21:09]SAM_PROTO_SignData [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 0D 01 02 [16:21:09]Write to MH i2c: E2 08 00 A8 66 80 0D 01 02 00 00 00 00 87 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:09]OFD Sender: No OFD packet to send [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 A8 66 00 90 00 82 [16:21:09]RAPDU: 90 00 [16:21:09]wFMCommunicate OK [16:21:09]wFMCommunicate request_size=255 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 87 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 88 02 00 35 04 06 00 B0 3B 78 96 [16:21:09]Write to MH i2c: E2 02 01 A9 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 87 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 88 02 00 35 04 06 00 B0 3B 78 96 00 00 F7 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 A9 66 00 90 00 83 [16:21:09]RAPDU: 90 00 [16:21:09]wFMCommunicate OK [16:21:09]wFMCommunicate request_size=7 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 0D 02 02 02 D7 E6 [16:21:09]Write to MH i2c: E2 0A 00 AA 66 80 0D 02 02 02 00 D7 E6 00 00 4B [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 03 00 AA 66 00 90 00 84 [16:21:09]RAPDU: 90 00 [16:21:09]wFMCommunicate OK [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 0D 03 02 [16:21:09]Write to MH i2c: E2 08 00 AB 66 80 0D 03 02 00 00 00 00 8C [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 0B 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 0B 00 AB 66 00 53 78 13 B2 54 ED DE E2 90 00 1E [16:21:09]RAPDU: 53 78 13 B2 54 ED DE E2 90 00 [16:21:09]wFMCommunicate OK [16:21:09]SAM_PROTO_SignData done [16:21:09]FM_MakeSignedData done [16:21:09]CreateOFDProtocolMessage [16:21:09]wFMCommunicate request_size=4 [16:21:09]MH_SAM_APDU [16:21:09]CAPDU: 80 11 00 00 [16:21:09]Write to MH i2c: E2 08 00 AC 66 80 11 00 00 00 00 00 00 8C [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:09]Read from MH i2c: E2 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 17 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: E2 17 00 AC 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E4 [16:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:21:09]wFMCommunicate OK [16:21:09]CreateOFDProtocolMessage done [16:21:09]OFDSenderStorePacket 166099 [16:21:09]StoreOFDPacket docnum=166099 [16:21:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 79 B0 04 01 EC 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 87 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 88 02 00 35 04 06 00 B0 3B 78 96 D7 E6 53 78 13 B2 54 ED DE E2 [16:21:09]CheckFolder [16:21:09]dirname=/storage/ofd_packets [16:21:09]CheckFolder done [16:21:09]ProducePacketName [16:21:09]name=ofd_packets/00166099 [16:21:09]NVStorageSaveData ofd_packets/00166099 [16:21:09]File name is /storage/ofd_packets/00166099 [16:21:09]Write 298 bytes [16:21:09]NVStorageSaveData done [16:21:09]OFDSenderStorePacket done [16:21:09]KKMCreateOFDPacket done [16:21:09]NVStorageSaveData kkm_last_timestamp [16:21:09]File name is /storage/kkm_last_timestamp [16:21:09]Write 4 bytes [16:21:09]NVStorageSaveData done [16:21:09]ExternCall_PrintAddStr [16:21:09]wPrintStart [16:21:09]Write to MH i2c: 01 00 00 AD 66 13 [16:21:09]Write i2c OK [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: 01 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: 01 07 00 [16:21:09]MH_I2C_Read... [16:21:09]Read from MH i2c: 01 07 00 AD 66 00 00 00 00 00 FF 0F 28 [16:21:09]RasterBufferAndPrint [16:21:09]line Счет N : (1)220670 [16:21:09]line ИНН: 02508201610067 [16:21:09]line Контрольно-Кассовый Чек [16:21:09]line ПРОДАЖА [16:21:09]line ТРК (МРК, ГНК) : 21 [16:21:09]line Товар: 2710194210 [16:21:09]line ДТ-К-5 [16:21:09]line 26.250 * 76.20 [16:21:09]line = 2000.25 [16:21:09]line НДС 12% НСП 1% [16:21:09]line > о реализуемом товаре [16:21:09]line ИТОГО: 2000.25 [16:21:09]line НСП 1% : 17.70 [16:21:09]line НДС 12% : 212.42 [16:21:09]line Наличными: 0.00 [16:21:09]line Безнал.: 2000.25 [16:21:09]line Место: АЗС № 161 "Партнер Нефть" [16:21:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:21:09]line СНО: Общий режим [16:21:09]line Чек 210 21.10.2024 16:21 [16:21:09]line Смена: 535 ФФД: 1.0 [16:21:09]line ЗНМ: 0300000104 [16:21:09]line РНМ: 0000000000091764 [16:21:09]line Версия ККМ: 001 [16:21:09]line Платежная система: Mbank [16:21:09]line ФМ: 0000000000871759 [16:21:09]line ФД: 166099 [16:21:09]line ФПД: 193769472710630 [16:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166099&fm=193769472710630&tin=02508201610067®Number=0000000000091764&sum=200025 [16:21:10]OFD Sender: Processing packet 166099 [packets to send 48, broken 47] [16:21:10]ProducePacketName [16:21:10]name=ofd_packets/00166099 [16:21:10]OFD Sender: To server: pG, [16:21:10]CommunicateWithHost lk.salyk.kg:30040 [16:21:10]ConnectInit lk.salyk.kg [16:21:10]written 0, free lines is 4095 [16:21:10]Connected sock=6 [16:21:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 79 B0 04 01 EC 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 87 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 88 02 00 35 04 06 00 B0 3B 78 96 D7 E6 53 78 13 B2 54 ED DE E2 [16:21:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 36 E8 47 00 AB 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D3 88 02 00 F4 03 04 00 F5 25 16 67 B6 04 01 00 00 F7 48 2D 04 21 03 60 18 [16:21:10]CommunicateWithHost err = 0 [16:21:10]CheckOFDResponse [16:21:10]1017 (14) - 77093643461234 [16:21:10]1041 (16) - 0000000000871759 [16:21:10]1040 (4) - 166099 [16:21:10]1012 (4) - 21.10.2024 09:59 [16:21:10]1206 (1) - 0 [16:21:10]OFD Sender: Remove packet 166099 [16:21:10]ProducePacketName [16:21:10]name=ofd_packets/00166099 [16:21:10]NVStorageDeleteData [16:21:10]Write to MH i2c: 01 00 00 D6 66 3C [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 07 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: 01 07 00 D6 66 00 00 00 00 00 F0 0C 3F [16:21:10]RasterBufferAndPrint [16:21:10]line [16:21:10]line [16:21:10]line [16:21:10]line [16:21:10]line [16:21:10]written 0, free lines is 3318 [16:21:10]MH_Cut [16:21:10]Write to MH i2c: D1 01 00 DD 66 01 15 [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: D1 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: D1 01 00 [16:21:10]MH_I2C_Read... [16:21:10]Read from MH i2c: D1 01 00 DD 66 00 14 [16:21:10]Write to MH i2c: 01 00 00 DE 66 44 [16:21:10]Write i2c OK [16:21:10]MH_I2C_Read... [16:21:10]OFD Sender: No OFD packet to send [16:21:11]*** Cut start [16:21:11]*** Partial cut [16:21:11]*** CUTSNS_PIN = 1 [16:21:11]*** CUTSNS_PIN = 0 [16:21:11]*** Brake cut motor [16:21:11]Read from MH i2c: 01 [16:21:11]MH_I2C_Read... [16:21:11]*** Stop cut motor [16:21:11]*** Cut end [16:21:11]Read from MH i2c: 01 07 00 [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: 01 07 00 DE 66 00 00 00 00 00 FF 0F 59 [16:21:11]process_action close_receipt done [16:21:11]requested_data is exist [16:21:11]produce_requested_data [16:21:11]requested_item fm.sn is exist - process it [16:21:11]wFMCommunicate request_size=4 [16:21:11]MH_SAM_APDU [16:21:11]CAPDU: 80 11 00 00 [16:21:11]Write to MH i2c: E2 08 00 DF 66 80 11 00 00 00 00 00 00 BF [16:21:11]Write i2c OK [16:21:11]MH_I2C_Read... [16:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:11]Read from MH i2c: E2 [16:21:11]MH_I2C_Read... [16:21:11]Read from MH i2c: E2 17 00 [16:21:11]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 17 00 DF 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [16:21:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:21:12]wFMCommunicate OK [16:21:12]requested_item fd.num is exist - process it [16:21:12]SAM_PROTO_GetFieldsCounters [16:21:12]wFMCommunicate request_size=4 [16:21:12]MH_SAM_APDU [16:21:12]CAPDU: 80 13 00 00 [16:21:12]Write to MH i2c: E2 08 00 E0 66 80 13 00 00 00 00 00 00 C2 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:12]Read from MH i2c: E2 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 62 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 62 00 E0 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:21:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:12]wFMCommunicate OK [16:21:12]SAM_PROTO_GetFieldsCounters done [16:21:12]requested_item shift.num is exist - process it [16:21:12]requested_item shift.opened is exist - process it [16:21:12]req_shift_opened [16:21:12]FM_GetShiftState [16:21:12]SAM_PROTO_GetShiftState [16:21:12]wFMCommunicate request_size=4 [16:21:12]MH_SAM_APDU [16:21:12]CAPDU: 80 13 01 00 [16:21:12]Write to MH i2c: E2 08 00 E1 66 80 13 01 00 00 00 00 00 C4 [16:21:12]Write i2c OK [16:21:12]MH_I2C_Read... [16:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:12]Read from MH i2c: E2 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 0E 00 [16:21:12]MH_I2C_Read... [16:21:12]Read from MH i2c: E2 0E 00 E1 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [16:21:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:21:12]wFMCommunicate OK [16:21:12]SAM_PROTO_GetShiftState done [16:21:12]FM_GetShiftState done [16:21:12]req_shift_opened done [16:21:12]requested_item shift.open_date is exist - process it [16:21:12]req_shift_open_date [16:21:12]req_shift_open_date done [16:21:12]produce_requested_data done [16:21:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166099,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:21:12]process_action_free close_receipt [16:21:12]json_value_free [16:21:12]json_value_free done [16:21:12]process_json_proto returns [16:21:12]Send response to host [16:21:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166099,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:21:12]free response buf [16:21:12]execute_script done [16:21:12]execute_script returns [16:21:12]free content buf [16:21:12]Sock 7.Close socket [16:21:12]Sock 7.Thread stoped [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:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:47]accept exits with 5 [16:22:47]New connection [16:22:47]New thread 3066920292 created [16:22:47]Thread 3066776932 joined [16:22:47]Waiting for new connection... [16:22:47] Sock 5.Parse request [16:22:47]Sock 5.Check first char [16:22:47]Sock 5.First char is OK [16:22:47]request: POST /json_proto HTTP/1.0 [16:22:47]Method: POST [16:22:47]URL: /json_proto [16:22:47]Method is POST - this is cgi request [16:22:47]url: /json_proto [16:22:47]query_string will be loaded in cgi processing [16:22:47]execute_cgi json_proto POST (null) [16:22:47]execute_cgi path=json_proto method=POST [16:22:47]POST find Content-Length [16:22:47]Host: 172.17.53.195:8080 [16:22:47]Content-Length: 675 [16:22:47]Content-Type: application/json [16:22:47] [16:22:47]POST finish read [16:22:47]Found Content-Length = 675 [16:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.810, "sum" : 899.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:47]execute_script... [16:22: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)220671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.810, "sum" : 899.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 899.00, "payments": [ { "type": 0, "sum" : 899.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:22:47]POST & json_proto [16:22:47]process_json_proto [16:22:47]json parsed OK: [16:22:47]protocol is kg_v1.0 [16:22:47]action value=close_receipt [16:22:47]process_action close_receipt [16:22:47]cmd_close_receipt [16:22:47]MH_GetDate [16:22:47]Write to MH i2c: F0 00 00 E2 66 37 [16:22:47]Write i2c OK [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: F0 [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: F0 09 00 [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: F0 09 00 E2 66 00 EA 7F 16 67 21 48 4A 65 3E [16:22:47]GetLastDocTimeStamp 1729527687 [16:22:47]current date 1729527786 [16:22:47]FM_GetShiftState [16:22:47]SAM_PROTO_GetShiftState [16:22:47]wFMCommunicate request_size=4 [16:22:47]MH_SAM_APDU [16:22:47]CAPDU: 80 13 01 00 [16:22:47]Write to MH i2c: E2 08 00 E3 66 80 13 01 00 00 00 00 00 C6 [16:22:47]Write i2c OK [16:22:47]MH_I2C_Read... [16:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:47]Read from MH i2c: E2 [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: E2 0E 00 [16:22:47]MH_I2C_Read... [16:22:47]Read from MH i2c: E2 0E 00 E3 66 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CF [16:22:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:22:47]wFMCommunicate OK [16:22:47]SAM_PROTO_GetShiftState done [16:22:47]FM_GetShiftState done [16:22:47]opened in 1729470944 [16:22:47]opened+sec_in_day 1729557344 [16:22:47]quantity*price = 89992 [16:22:47]sum+1 = 89993 [16:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 899.00 Внесено: 900.00 СДАЧА: 1.00 НСП 1% : 7.96 НДС 12% : 95.57 Наличными: 899.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 211 21.10.2024 16:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166100 ФПД: 125787993806203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166100&fm=125787993806203&tin=02508201610067®Number=0000000000091764&sum=89900 [16:22:48]StoreToDocumentArchive [16:22:48]shift 535 fd 166100 [16:22:48]save to /storage/0535/doc_00166100 [16:22:48]save last doc name /storage/0535/doc_00166100 to /storage/kkm_last_doc_name [16:22:48]save OK [16:22:48]Clear old archive folders... [16:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:48]tlvbuf is 015DDAB0 [16:22:48]SAM_PROTO_ClearQueue [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 09 00 00 [16:22:48]Write to MH i2c: E2 08 00 F0 66 80 09 00 00 00 00 00 00 C8 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 F0 66 00 90 00 CA [16:22:48]RAPDU: 90 00 [16:22:48]wFMCommunicate OK [16:22:48]SAM_PROTO_ClearQueue done [16:22:48]KKMCreateOFDPacket [16:22:48]OFDProtocolAddRootSTLVToBuf [16:22:48]FM_MakeSignedData [16:22:48]FM_MakeSignedData [16:22:48]SAM_PROTO_SignData [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 0D 01 02 [16:22:48]Write to MH i2c: E2 08 00 F1 66 80 0D 01 02 00 00 00 00 D0 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 F1 66 00 90 00 CB [16:22:48]RAPDU: 90 00 [16:22:48]wFMCommunicate OK [16:22:48]wFMCommunicate request_size=255 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 D3 00 00 00 F4 03 04 00 EA 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 88 02 00 35 04 06 00 72 67 4C B0 [16:22:48]Write to MH i2c: E2 02 01 F2 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 D3 00 00 00 F4 03 04 00 EA 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 88 02 00 35 04 06 00 72 67 4C B0 00 00 03 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 F2 66 00 90 00 CC [16:22:48]RAPDU: 90 00 [16:22:48]wFMCommunicate OK [16:22:48]wFMCommunicate request_size=7 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 0D 02 02 02 15 7B [16:22:48]Write to MH i2c: E2 0A 00 F3 66 80 0D 02 02 02 00 15 7B 00 00 67 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 03 00 F3 66 00 90 00 CD [16:22:48]RAPDU: 90 00 [16:22:48]wFMCommunicate OK [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 0D 03 02 [16:22:48]Write to MH i2c: E2 08 00 F4 66 80 0D 03 02 00 00 00 00 D5 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0B 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 0B 00 F4 66 00 A9 B1 31 69 E8 E7 BA 9A 90 00 ED [16:22:48]RAPDU: A9 B1 31 69 E8 E7 BA 9A 90 00 [16:22:48]wFMCommunicate OK [16:22:48]SAM_PROTO_SignData done [16:22:48]FM_MakeSignedData done [16:22:48]CreateOFDProtocolMessage [16:22:48]wFMCommunicate request_size=4 [16:22:48]MH_SAM_APDU [16:22:48]CAPDU: 80 11 00 00 [16:22:48]Write to MH i2c: E2 08 00 F5 66 80 11 00 00 00 00 00 00 D5 [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:48]Read from MH i2c: E2 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 17 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: E2 17 00 F5 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [16:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:22:48]wFMCommunicate OK [16:22:48]CreateOFDProtocolMessage done [16:22:48]OFDSenderStorePacket 166100 [16:22:48]StoreOFDPacket docnum=166100 [16:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 92 80 04 01 53 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 D3 00 00 00 F4 03 04 00 EA 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 88 02 00 35 04 06 00 72 67 4C B0 15 7B A9 B1 31 69 E8 E7 BA 9A [16:22:48]CheckFolder [16:22:48]dirname=/storage/ofd_packets [16:22:48]CheckFolder done [16:22:48]ProducePacketName [16:22:48]name=ofd_packets/00166100 [16:22:48]NVStorageSaveData ofd_packets/00166100 [16:22:48]File name is /storage/ofd_packets/00166100 [16:22:48]Write 298 bytes [16:22:48]NVStorageSaveData done [16:22:48]OFDSenderStorePacket done [16:22:48]KKMCreateOFDPacket done [16:22:48]NVStorageSaveData kkm_last_timestamp [16:22:48]File name is /storage/kkm_last_timestamp [16:22:48]Write 4 bytes [16:22:48]NVStorageSaveData done [16:22:48]ExternCall_PrintAddStr [16:22:48]wPrintStart [16:22:48]Write to MH i2c: 01 00 00 F6 66 5C [16:22:48]Write i2c OK [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: 01 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: 01 07 00 [16:22:48]MH_I2C_Read... [16:22:48]Read from MH i2c: 01 07 00 F6 66 00 00 00 00 00 FF 0F 71 [16:22:48]RasterBufferAndPrint [16:22:48]line Счет N : (1)220671 [16:22:48]line ИНН: 02508201610067 [16:22:48]line Контрольно-Кассовый Чек [16:22:48]line ПРОДАЖА [16:22:48]line ТРК (МРК, ГНК) : 41 [16:22:48]line Товар: 2710194210 [16:22:48]line ДТ-К-5 [16:22:48]line 11.810 * 76.20 [16:22:48]line = 899.92 [16:22:48]line НДС 12% НСП 1% [16:22:48]line > о реализуемом товаре [16:22:48]line ОКРУГЛЕНИЕ: -0.92 [16:22:48]line ИТОГО: 899.00 [16:22:48]line Внесено: 900.00 [16:22:48]line СДАЧА: 1.00 [16:22:48]line НСП 1% : 7.96 [16:22:48]line НДС 12% : 95.57 [16:22:48]line Наличными: 899.00 [16:22:48]line Безнал.: 0.00 [16:22:48]line Место: АЗС № 161 "Партнер Нефть" [16:22:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:22:48]line СНО: Общий режим [16:22:48]line Чек 211 21.10.2024 16:23 [16:22:48]line Смена: 535 ФФД: 1.0 [16:22:48]line ЗНМ: 0300000104 [16:22:48]line РНМ: 0000000000091764 [16:22:48]line Версия ККМ: 001 [16:22:48]line ФМ: 0000000000871759 [16:22:48]line ФД: 166100 [16:22:48]line ФПД: 125787993806203 [16:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166100&fm=125787993806203&tin=02508201610067®Number=0000000000091764&sum=89900 [16:22:49]OFD Sender: Processing packet 166100 [packets to send 48, broken 47] [16:22:49]ProducePacketName [16:22:49]name=ofd_packets/00166100 [16:22:49]OFD Sender: To server: pG, [16:22:49]CommunicateWithHost lk.salyk.kg:30040 [16:22:49]ConnectInit lk.salyk.kg [16:22:49]written 0, free lines is 4095 [16:22:49]Connected sock=7 [16:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 92 80 04 01 53 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 22 2E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 25 00 00 00 00 07 04 06 00 2C 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 D3 00 00 00 F4 03 04 00 EA 7F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 88 02 00 35 04 06 00 72 67 4C B0 15 7B A9 B1 31 69 E8 E7 BA 9A [16:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 83 73 47 00 B7 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D4 88 02 00 F4 03 04 00 58 26 16 67 B6 04 01 00 00 10 35 E7 12 88 77 8B 74 [16:22:49]CommunicateWithHost err = 0 [16:22:49]CheckOFDResponse [16:22:49]1017 (14) - 77093643461234 [16:22:49]1041 (16) - 0000000000871759 [16:22:49]1040 (4) - 166100 [16:22:49]1012 (4) - 21.10.2024 10:00 [16:22:49]1206 (1) - 0 [16:22:49]OFD Sender: Remove packet 166100 [16:22:49]ProducePacketName [16:22:49]name=ofd_packets/00166100 [16:22:49]NVStorageDeleteData [16:22:49]Write to MH i2c: 01 00 00 21 67 88 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: 01 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: 01 07 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: 01 07 00 21 67 00 00 00 00 00 D5 0C 70 [16:22:49]RasterBufferAndPrint [16:22:49]line [16:22:49]line [16:22:49]line [16:22:49]line [16:22:49]line [16:22:49]written 0, free lines is 3302 [16:22:49]MH_Cut [16:22:49]Write to MH i2c: D1 01 00 28 67 01 61 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: D1 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: D1 01 00 [16:22:49]MH_I2C_Read... [16:22:49]Read from MH i2c: D1 01 00 28 67 00 60 [16:22:49]Write to MH i2c: 01 00 00 29 67 90 [16:22:49]Write i2c OK [16:22:49]MH_I2C_Read... [16:22:50]OFD Sender: No OFD packet to send [16:22:50]*** Cut start [16:22:50]*** Partial cut [16:22:50]*** CUTSNS_PIN = 1 [16:22:50]*** CUTSNS_PIN = 0 [16:22:50]*** Brake cut motor [16:22:51]Read from MH i2c: 01 [16:22:51]MH_I2C_Read... [16:22:51]*** Stop cut motor [16:22:51]*** Cut end [16:22:51]Read from MH i2c: 01 07 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: 01 07 00 29 67 00 00 00 00 00 FF 0F A5 [16:22:51]process_action close_receipt done [16:22:51]requested_data is exist [16:22:51]produce_requested_data [16:22:51]requested_item fm.sn is exist - process it [16:22:51]wFMCommunicate request_size=4 [16:22:51]MH_SAM_APDU [16:22:51]CAPDU: 80 11 00 00 [16:22:51]Write to MH i2c: E2 08 00 2A 67 80 11 00 00 00 00 00 00 0B [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:51]Read from MH i2c: E2 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 17 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 17 00 2A 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [16:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:22:51]wFMCommunicate OK [16:22:51]requested_item fd.num is exist - process it [16:22:51]SAM_PROTO_GetFieldsCounters [16:22:51]wFMCommunicate request_size=4 [16:22:51]MH_SAM_APDU [16:22:51]CAPDU: 80 13 00 00 [16:22:51]Write to MH i2c: E2 08 00 2B 67 80 13 00 00 00 00 00 00 0E [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:51]Read from MH i2c: E2 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 62 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 62 00 2B 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [16:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:22:51]wFMCommunicate OK [16:22:51]SAM_PROTO_GetFieldsCounters done [16:22:51]requested_item shift.num is exist - process it [16:22:51]requested_item shift.opened is exist - process it [16:22:51]req_shift_opened [16:22:51]FM_GetShiftState [16:22:51]SAM_PROTO_GetShiftState [16:22:51]wFMCommunicate request_size=4 [16:22:51]MH_SAM_APDU [16:22:51]CAPDU: 80 13 01 00 [16:22:51]Write to MH i2c: E2 08 00 2C 67 80 13 01 00 00 00 00 00 10 [16:22:51]Write i2c OK [16:22:51]MH_I2C_Read... [16:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:51]Read from MH i2c: E2 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 0E 00 [16:22:51]MH_I2C_Read... [16:22:51]Read from MH i2c: E2 0E 00 2C 67 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [16:22:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:22:51]wFMCommunicate OK [16:22:51]SAM_PROTO_GetShiftState done [16:22:51]FM_GetShiftState done [16:22:51]req_shift_opened done [16:22:51]requested_item shift.open_date is exist - process it [16:22:51]req_shift_open_date [16:22:51]req_shift_open_date done [16:22:51]produce_requested_data done [16:22:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166100,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:22:51]process_action_free close_receipt [16:22:51]json_value_free [16:22:51]json_value_free done [16:22:51]process_json_proto returns [16:22:51]Send response to host [16:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166100,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:22:51]free response buf [16:22:51]execute_script done [16:22:51]execute_script returns [16:22:51]free content buf [16:22:51]Sock 5.Close socket [16:22:51]Sock 5.Thread stoped [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:23:55]accept exits with 6 [16:23:55]New connection [16:23:55]New thread 3066776932 created [16:23:55]Thread 3066920292 joined [16:23:55]Waiting for new connection... [16:23:55] Sock 6.Parse request [16:23:55]Sock 6.Check first char [16:23:55]Sock 6.First char is OK [16:23:55]request: POST /json_proto HTTP/1.0 [16:23:55]Method: POST [16:23:55]URL: /json_proto [16:23:55]Method is POST - this is cgi request [16:23:55]url: /json_proto [16:23:55]query_string will be loaded in cgi processing [16:23:55]execute_cgi json_proto POST (null) [16:23:55]execute_cgi path=json_proto method=POST [16:23:55]POST find Content-Length [16:23:55]Host: 172.17.53.195:8080 [16:23:55]Content-Length: 677 [16:23:55]Content-Type: application/json [16:23:55] [16:23:55]POST finish read [16:23:55]Found Content-Length = 677 [16:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:55]execute_script... [16:23: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)220672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:23:55]POST & json_proto [16:23:55]process_json_proto [16:23:55]json parsed OK: [16:23:55]protocol is kg_v1.0 [16:23:55]action value=close_receipt [16:23:55]process_action close_receipt [16:23:55]cmd_close_receipt [16:23:55]MH_GetDate [16:23:55]Write to MH i2c: F0 00 00 2D 67 83 [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 09 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: F0 09 00 2D 67 00 2E 80 16 67 21 48 4A 65 CF [16:23:55]GetLastDocTimeStamp 1729527786 [16:23:55]current date 1729527854 [16:23:55]FM_GetShiftState [16:23:55]SAM_PROTO_GetShiftState [16:23:55]wFMCommunicate request_size=4 [16:23:55]MH_SAM_APDU [16:23:55]CAPDU: 80 13 01 00 [16:23:55]Write to MH i2c: E2 08 00 2E 67 80 13 01 00 00 00 00 00 12 [16:23:55]Write i2c OK [16:23:55]MH_I2C_Read... [16:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:55]Read from MH i2c: E2 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 [16:23:55]MH_I2C_Read... [16:23:55]Read from MH i2c: E2 0E 00 2E 67 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1B [16:23:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:23:55]wFMCommunicate OK [16:23:55]SAM_PROTO_GetShiftState done [16:23:55]FM_GetShiftState done [16:23:55]opened in 1729470944 [16:23:55]opened+sec_in_day 1729557344 [16:23:55]quantity*price = 50041 [16:23:55]sum+1 = 50042 [16:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 212 21.10.2024 16:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166101 ФПД: 219119865464809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166101&fm=219119865464809&tin=02508201610067®Number=0000000000091764&sum=50000 [16:23:56]StoreToDocumentArchive [16:23:56]shift 535 fd 166101 [16:23:56]save to /storage/0535/doc_00166101 [16:23:56]save last doc name /storage/0535/doc_00166101 to /storage/kkm_last_doc_name [16:23:56]save OK [16:23:56]Clear old archive folders... [16:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:56]tlvbuf is 0157EB90 [16:23:56]SAM_PROTO_ClearQueue [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 09 00 00 [16:23:56]Write to MH i2c: E2 08 00 3B 67 80 09 00 00 00 00 00 00 14 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 3B 67 00 90 00 16 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]SAM_PROTO_ClearQueue done [16:23:56]KKMCreateOFDPacket [16:23:56]OFDProtocolAddRootSTLVToBuf [16:23:56]FM_MakeSignedData [16:23:56]FM_MakeSignedData [16:23:56]SAM_PROTO_SignData [16:23:56]wFMCommunicate request_size=4 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 01 02 [16:23:56]Write to MH i2c: E2 08 00 3C 67 80 0D 01 02 00 00 00 00 1C [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:56]Read from MH i2c: E2 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 [16:23:56]MH_I2C_Read... [16:23:56]Read from MH i2c: E2 03 00 3C 67 00 90 00 17 [16:23:56]RAPDU: 90 00 [16:23:56]wFMCommunicate OK [16:23:56]wFMCommunicate request_size=255 [16:23:56]MH_SAM_APDU [16:23:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2E 80 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 88 02 00 35 04 06 00 C7 [16:23:56]Write to MH i2c: E2 02 01 3D 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 2E 80 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 88 02 00 35 04 06 00 C7 00 00 F0 [16:23:56]Write i2c OK [16:23:56]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 3D 67 00 90 00 18 [16:23:57]RAPDU: 90 00 [16:23:57]wFMCommunicate OK [16:23:57]wFMCommunicate request_size=10 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 0D 02 02 05 49 D1 BE 87 E9 [16:23:57]Write to MH i2c: E2 0D 00 3E 67 80 0D 02 02 05 00 49 D1 BE 87 E9 00 00 71 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 03 00 3E 67 00 90 00 19 [16:23:57]RAPDU: 90 00 [16:23:57]wFMCommunicate OK [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 0D 03 02 [16:23:57]Write to MH i2c: E2 08 00 3F 67 80 0D 03 02 00 00 00 00 21 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 0B 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 0B 00 3F 67 00 74 6B FD 1D 2D 5D 65 73 90 00 7D [16:23:57]RAPDU: 74 6B FD 1D 2D 5D 65 73 90 00 [16:23:57]wFMCommunicate OK [16:23:57]SAM_PROTO_SignData done [16:23:57]FM_MakeSignedData done [16:23:57]CreateOFDProtocolMessage [16:23:57]wFMCommunicate request_size=4 [16:23:57]MH_SAM_APDU [16:23:57]CAPDU: 80 11 00 00 [16:23:57]Write to MH i2c: E2 08 00 40 67 80 11 00 00 00 00 00 00 21 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:57]Read from MH i2c: E2 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 17 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: E2 17 00 40 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [16:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:23:57]wFMCommunicate OK [16:23:57]CreateOFDProtocolMessage done [16:23:57]OFDSenderStorePacket 166101 [16:23:57]StoreOFDPacket docnum=166101 [16:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 8F 07 01 1D E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2E 80 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 88 02 00 35 04 06 00 C7 49 D1 BE 87 E9 74 6B FD 1D 2D 5D 65 73 [16:23:57]CheckFolder [16:23:57]dirname=/storage/ofd_packets [16:23:57]CheckFolder done [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00166101 [16:23:57]NVStorageSaveData ofd_packets/00166101 [16:23:57]File name is /storage/ofd_packets/00166101 [16:23:57]Write 301 bytes [16:23:57]NVStorageSaveData done [16:23:57]OFDSenderStorePacket done [16:23:57]KKMCreateOFDPacket done [16:23:57]NVStorageSaveData kkm_last_timestamp [16:23:57]File name is /storage/kkm_last_timestamp [16:23:57]Write 4 bytes [16:23:57]NVStorageSaveData done [16:23:57]ExternCall_PrintAddStr [16:23:57]wPrintStart [16:23:57]Write to MH i2c: 01 00 00 41 67 A8 [16:23:57]Write i2c OK [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 07 00 [16:23:57]MH_I2C_Read... [16:23:57]Read from MH i2c: 01 07 00 41 67 00 00 00 00 00 FF 0F BD [16:23:57]RasterBufferAndPrint [16:23:57]line Счет N : (1)220672 [16:23:57]line ИНН: 02508201610067 [16:23:57]line Контрольно-Кассовый Чек [16:23:57]line ПРОДАЖА [16:23:57]line ТРК (МРК, ГНК) : 23 [16:23:57]line Товар: 2710124130 [16:23:57]line Аи-92-К-5 [16:23:57]line 7.480 * 66.90 [16:23:57]line = 500.41 [16:23:57]line НДС 12% НСП 1% [16:23:57]line > о реализуемом товаре [16:23:57]line ОКРУГЛЕНИЕ: -0.41 [16:23:57]line ИТОГО: 500.00 [16:23:57]line Внесено: 500.00 [16:23:57]line СДАЧА: 0.00 [16:23:57]line НСП 1% : 4.43 [16:23:57]line НДС 12% : 53.14 [16:23:57]line Наличными: 500.00 [16:23:57]line Безнал.: 0.00 [16:23:57]line Место: АЗС № 161 "Партнер Нефть" [16:23:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:23:57]line СНО: Общий режим [16:23:57]line Чек 212 21.10.2024 16:24 [16:23:57]line Смена: 535 ФФД: 1.0 [16:23:57]line ЗНМ: 0300000104 [16:23:57]line РНМ: 0000000000091764 [16:23:57]line Версия ККМ: 001 [16:23:57]line ФМ: 0000000000871759 [16:23:57]line ФД: 166101 [16:23:57]line ФПД: 219119865464809 [16:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T162414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166101&fm=219119865464809&tin=02508201610067®Number=0000000000091764&sum=50000 [16:23:57]OFD Sender: Processing packet 166101 [packets to send 48, broken 47] [16:23:57]ProducePacketName [16:23:57]name=ofd_packets/00166101 [16:23:57]OFD Sender: To server: pG, [16:23:57]CommunicateWithHost lk.salyk.kg:30040 [16:23:57]ConnectInit lk.salyk.kg [16:23:57]written 0, free lines is 4095 [16:23:57]Connected sock=7 [16:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 8F 07 01 1D E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 2E 80 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 88 02 00 35 04 06 00 C7 49 D1 BE 87 E9 74 6B FD 1D 2D 5D 65 73 [16:23:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4A CE 47 00 F3 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D5 88 02 00 F4 03 04 00 9C 26 16 67 B6 04 01 00 00 2A AA 8F BD 10 06 8B E1 [16:23:58]CommunicateWithHost err = 0 [16:23:58]CheckOFDResponse [16:23:58]1017 (14) - 77093643461234 [16:23:58]1041 (16) - 0000000000871759 [16:23:58]1040 (4) - 166101 [16:23:58]1012 (4) - 21.10.2024 10:02 [16:23:58]1206 (1) - 0 [16:23:58]OFD Sender: Remove packet 166101 [16:23:58]ProducePacketName [16:23:58]name=ofd_packets/00166101 [16:23:58]NVStorageDeleteData [16:23:58]Write to MH i2c: 01 00 00 6C 67 D3 [16:23:58]Write i2c OK [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: 01 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: 01 07 00 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: 01 07 00 6C 67 00 00 00 00 00 CD 0C B3 [16:23:58]RasterBufferAndPrint [16:23:58]line [16:23:58]line [16:23:58]line [16:23:58]line [16:23:58]line [16:23:58]written 0, free lines is 3286 [16:23:58]MH_Cut [16:23:58]Write to MH i2c: D1 01 00 73 67 01 AC [16:23:58]Write i2c OK [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: D1 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: D1 01 00 [16:23:58]MH_I2C_Read... [16:23:58]Read from MH i2c: D1 01 00 73 67 00 AB [16:23:58]Write to MH i2c: 01 00 00 74 67 DB [16:23:58]Write i2c OK [16:23:58]MH_I2C_Read... [16:23:58]OFD Sender: No OFD packet to send [16:23:58]*** Cut start [16:23:58]*** Partial cut [16:23:58]*** CUTSNS_PIN = 1 [16:23:58]*** CUTSNS_PIN = 0 [16:23:59]*** Brake cut motor [16:23:59]Read from MH i2c: 01 [16:23:59]MH_I2C_Read... [16:23:59]*** Stop cut motor [16:23:59]*** Cut end [16:23:59]Read from MH i2c: 01 07 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: 01 07 00 74 67 00 00 00 00 00 FF 0F F0 [16:23:59]process_action close_receipt done [16:23:59]requested_data is exist [16:23:59]produce_requested_data [16:23:59]requested_item fm.sn is exist - process it [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 11 00 00 [16:23:59]Write to MH i2c: E2 08 00 75 67 80 11 00 00 00 00 00 00 56 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 17 00 75 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [16:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:23:59]wFMCommunicate OK [16:23:59]requested_item fd.num is exist - process it [16:23:59]SAM_PROTO_GetFieldsCounters [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 13 00 00 [16:23:59]Write to MH i2c: E2 08 00 76 67 80 13 00 00 00 00 00 00 59 [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 62 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 62 00 76 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [16:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_GetFieldsCounters done [16:23:59]requested_item shift.num is exist - process it [16:23:59]requested_item shift.opened is exist - process it [16:23:59]req_shift_opened [16:23:59]FM_GetShiftState [16:23:59]SAM_PROTO_GetShiftState [16:23:59]wFMCommunicate request_size=4 [16:23:59]MH_SAM_APDU [16:23:59]CAPDU: 80 13 01 00 [16:23:59]Write to MH i2c: E2 08 00 77 67 80 13 01 00 00 00 00 00 5B [16:23:59]Write i2c OK [16:23:59]MH_I2C_Read... [16:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:59]Read from MH i2c: E2 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0E 00 [16:23:59]MH_I2C_Read... [16:23:59]Read from MH i2c: E2 0E 00 77 67 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 64 [16:23:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:23:59]wFMCommunicate OK [16:23:59]SAM_PROTO_GetShiftState done [16:23:59]FM_GetShiftState done [16:23:59]req_shift_opened done [16:23:59]requested_item shift.open_date is exist - process it [16:23:59]req_shift_open_date [16:23:59]req_shift_open_date done [16:23:59]produce_requested_data done [16:23:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166101,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:23:59]process_action_free close_receipt [16:23:59]json_value_free [16:23:59]json_value_free done [16:23:59]process_json_proto returns [16:23:59]Send response to host [16:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166101,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:23:59]free response buf [16:23:59]execute_script done [16:23:59]execute_script returns [16:23:59]free content buf [16:23:59]Sock 6.Close socket [16:23:59]Sock 6.Thread stoped [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:34]OFD Sender: No OFD packet to send [16:32:39]OFD Sender: No OFD packet to send [16:32:44]OFD Sender: No OFD packet to send [16:32:49]OFD Sender: No OFD packet to send [16:32:54]OFD Sender: No OFD packet to send [16:32:59]OFD Sender: No OFD packet to send [16:33:04]OFD Sender: No OFD packet to send [16:33:09]OFD Sender: No OFD packet to send [16:33:14]OFD Sender: No OFD packet to send [16:33:19]OFD Sender: No OFD packet to send [16:33:24]OFD Sender: No OFD packet to send [16:33:29]OFD Sender: No OFD packet to send [16:33:34]OFD Sender: No OFD packet to send [16:33:39]OFD Sender: No OFD packet to send [16:33:44]OFD Sender: No OFD packet to send [16:33:49]OFD Sender: No OFD packet to send [16:33:54]OFD Sender: No OFD packet to send [16:33:59]OFD Sender: No OFD packet to send [16:34:04]OFD Sender: No OFD packet to send [16:34:09]OFD Sender: No OFD packet to send [16:34:14]OFD Sender: No OFD packet to send [16:34:19]OFD Sender: No OFD packet to send [16:34:24]OFD Sender: No OFD packet to send [16:34:29]OFD Sender: No OFD packet to send [16:34:34]OFD Sender: No OFD packet to send [16:34:39]OFD Sender: No OFD packet to send [16:34:44]OFD Sender: No OFD packet to send [16:34:49]OFD Sender: No OFD packet to send [16:34:54]OFD Sender: No OFD packet to send [16:34:59]OFD Sender: No OFD packet to send [16:35:04]OFD Sender: No OFD packet to send [16:35:09]OFD Sender: No OFD packet to send [16:35:14]OFD Sender: No OFD packet to send [16:35:19]OFD Sender: No OFD packet to send [16:35:24]OFD Sender: No OFD packet to send [16:35:29]OFD Sender: No OFD packet to send [16:35:34]OFD Sender: No OFD packet to send [16:35:39]OFD Sender: No OFD packet to send [16:35:44]OFD Sender: No OFD packet to send [16:35:49]OFD Sender: No OFD packet to send [16:35:54]OFD Sender: No OFD packet to send [16:35:59]OFD Sender: No OFD packet to send [16:36:04]OFD Sender: No OFD packet to send [16:36:09]OFD Sender: No OFD packet to send [16:36:14]OFD Sender: No OFD packet to send [16:36:19]OFD Sender: No OFD packet to send [16:36:24]OFD Sender: No OFD packet to send [16:36:29]OFD Sender: No OFD packet to send [16:36:34]OFD Sender: No OFD packet to send [16:36:39]OFD Sender: No OFD packet to send [16:36:44]OFD Sender: No OFD packet to send [16:36:49]OFD Sender: No OFD packet to send [16:36:54]OFD Sender: No OFD packet to send [16:36:59]OFD Sender: No OFD packet to send [16:37:04]OFD Sender: No OFD packet to send [16:37:09]OFD Sender: No OFD packet to send [16:37:14]OFD Sender: No OFD packet to send [16:37:19]OFD Sender: No OFD packet to send [16:37:24]OFD Sender: No OFD packet to send [16:37:29]OFD Sender: No OFD packet to send [16:37:34]OFD Sender: No OFD packet to send [16:37:39]OFD Sender: No OFD packet to send [16:37:44]OFD Sender: No OFD packet to send [16:37:49]OFD Sender: No OFD packet to send [16:37:54]OFD Sender: No OFD packet to send [16:37:59]OFD Sender: No OFD packet to send [16:38:04]OFD Sender: No OFD packet to send [16:38:09]OFD Sender: No OFD packet to send [16:38:14]OFD Sender: No OFD packet to send [16:38:19]OFD Sender: No OFD packet to send [16:38:24]OFD Sender: No OFD packet to send [16:38:29]OFD Sender: No OFD packet to send [16:38:34]OFD Sender: No OFD packet to send [16:38:39]OFD Sender: No OFD packet to send [16:38:44]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:20]accept exits with 5 [16:40:20]New connection [16:40:20]New thread 3066920292 created [16:40:20]Thread 3066776932 joined [16:40:20]Waiting for new connection... [16:40:20] Sock 5.Parse request [16:40:20]Sock 5.Check first char [16:40:20]Sock 5.First char is OK [16:40:20]request: POST /json_proto HTTP/1.0 [16:40:20]Method: POST [16:40:20]URL: /json_proto [16:40:20]Method is POST - this is cgi request [16:40:20]url: /json_proto [16:40:20]query_string will be loaded in cgi processing [16:40:20]execute_cgi json_proto POST (null) [16:40:20]execute_cgi path=json_proto method=POST [16:40:20]POST find Content-Length [16:40:20]Host: 172.17.53.195:8080 [16:40:20]Content-Length: 677 [16:40:20]Content-Type: application/json [16:40:20] [16:40:20]POST finish read [16:40:20]Found Content-Length = 677 [16:40:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:20]execute_script... [16:40: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)220673", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:20]POST & json_proto [16:40:20]process_json_proto [16:40:20]json parsed OK: [16:40:20]protocol is kg_v1.0 [16:40:20]action value=close_receipt [16:40:20]process_action close_receipt [16:40:20]cmd_close_receipt [16:40:20]MH_GetDate [16:40:20]Write to MH i2c: F0 00 00 78 67 CE [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: F0 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: F0 09 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: F0 09 00 78 67 00 08 84 16 67 21 48 4A 65 F8 [16:40:20]GetLastDocTimeStamp 1729527854 [16:40:20]current date 1729528840 [16:40:20]FM_GetShiftState [16:40:20]SAM_PROTO_GetShiftState [16:40:20]wFMCommunicate request_size=4 [16:40:20]MH_SAM_APDU [16:40:20]CAPDU: 80 13 01 00 [16:40:20]Write to MH i2c: E2 08 00 79 67 80 13 01 00 00 00 00 00 5D [16:40:20]Write i2c OK [16:40:20]MH_I2C_Read... [16:40:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:20]Read from MH i2c: E2 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 0E 00 [16:40:20]MH_I2C_Read... [16:40:20]Read from MH i2c: E2 0E 00 79 67 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 66 [16:40:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:40:20]wFMCommunicate OK [16:40:20]SAM_PROTO_GetShiftState done [16:40:20]FM_GetShiftState done [16:40:20]opened in 1729470944 [16:40:20]opened+sec_in_day 1729557344 [16:40:20]quantity*price = 50041 [16:40:20]sum+1 = 50042 [16:40:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 213 21.10.2024 16:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166102 ФПД: 253315670496959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164040&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166102&fm=253315670496959&tin=02508201610067®Number=0000000000091764&sum=50000 [16:40:22]StoreToDocumentArchive [16:40:22]shift 535 fd 166102 [16:40:22]save to /storage/0535/doc_00166102 [16:40:22]save last doc name /storage/0535/doc_00166102 to /storage/kkm_last_doc_name [16:40:22]save OK [16:40:22]Clear old archive folders... [16:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:40:22]tlvbuf is 01512B20 [16:40:22]SAM_PROTO_ClearQueue [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 09 00 00 [16:40:22]Write to MH i2c: E2 08 00 86 67 80 09 00 00 00 00 00 00 5F [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 86 67 00 90 00 61 [16:40:22]RAPDU: 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_ClearQueue done [16:40:22]KKMCreateOFDPacket [16:40:22]OFDProtocolAddRootSTLVToBuf [16:40:22]FM_MakeSignedData [16:40:22]FM_MakeSignedData [16:40:22]SAM_PROTO_SignData [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 0D 01 02 [16:40:22]Write to MH i2c: E2 08 00 87 67 80 0D 01 02 00 00 00 00 67 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 87 67 00 90 00 62 [16:40:22]RAPDU: 90 00 [16:40:22]wFMCommunicate OK [16:40:22]wFMCommunicate request_size=255 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 08 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 88 02 00 35 04 06 00 E6 [16:40:22]Write to MH i2c: E2 02 01 88 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 88 02 00 35 04 06 00 E6 00 00 3A [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 88 67 00 90 00 63 [16:40:22]RAPDU: 90 00 [16:40:22]wFMCommunicate OK [16:40:22]wFMCommunicate request_size=10 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 0D 02 02 05 63 A6 8E 56 BF [16:40:22]Write to MH i2c: E2 0D 00 89 67 80 0D 02 02 05 00 63 A6 8E 56 BF 00 00 20 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 03 00 89 67 00 90 00 64 [16:40:22]RAPDU: 90 00 [16:40:22]wFMCommunicate OK [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 0D 03 02 [16:40:22]Write to MH i2c: E2 08 00 8A 67 80 0D 03 02 00 00 00 00 6C [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0B 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 0B 00 8A 67 00 57 74 B5 28 42 D3 2A AB 90 00 FF [16:40:22]RAPDU: 57 74 B5 28 42 D3 2A AB 90 00 [16:40:22]wFMCommunicate OK [16:40:22]SAM_PROTO_SignData done [16:40:22]FM_MakeSignedData done [16:40:22]CreateOFDProtocolMessage [16:40:22]wFMCommunicate request_size=4 [16:40:22]MH_SAM_APDU [16:40:22]CAPDU: 80 11 00 00 [16:40:22]Write to MH i2c: E2 08 00 8B 67 80 11 00 00 00 00 00 00 6C [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:22]Read from MH i2c: E2 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 17 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: E2 17 00 8B 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [16:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:40:22]wFMCommunicate OK [16:40:22]CreateOFDProtocolMessage done [16:40:22]OFDSenderStorePacket 166102 [16:40:22]StoreOFDPacket docnum=166102 [16:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 22 07 01 7A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 88 02 00 35 04 06 00 E6 63 A6 8E 56 BF 57 74 B5 28 42 D3 2A AB [16:40:22]CheckFolder [16:40:22]dirname=/storage/ofd_packets [16:40:22]CheckFolder done [16:40:22]ProducePacketName [16:40:22]name=ofd_packets/00166102 [16:40:22]NVStorageSaveData ofd_packets/00166102 [16:40:22]File name is /storage/ofd_packets/00166102 [16:40:22]Write 301 bytes [16:40:22]NVStorageSaveData done [16:40:22]OFDSenderStorePacket done [16:40:22]KKMCreateOFDPacket done [16:40:22]NVStorageSaveData kkm_last_timestamp [16:40:22]File name is /storage/kkm_last_timestamp [16:40:22]Write 4 bytes [16:40:22]NVStorageSaveData done [16:40:22]ExternCall_PrintAddStr [16:40:22]wPrintStart [16:40:22]Write to MH i2c: 01 00 00 8C 67 F3 [16:40:22]Write i2c OK [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: 01 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: 01 07 00 [16:40:22]MH_I2C_Read... [16:40:22]Read from MH i2c: 01 07 00 8C 67 00 00 00 00 00 FF 0F 08 [16:40:22]RasterBufferAndPrint [16:40:22]line Счет N : (1)220673 [16:40:22]line ИНН: 02508201610067 [16:40:22]line Контрольно-Кассовый Чек [16:40:22]line ПРОДАЖА [16:40:22]line ТРК (МРК, ГНК) : 33 [16:40:22]line Товар: 2710124130 [16:40:22]line Аи-92-К-5 [16:40:22]line 7.480 * 66.90 [16:40:22]line = 500.41 [16:40:22]line НДС 12% НСП 1% [16:40:22]line > о реализуемом товаре [16:40:22]line ОКРУГЛЕНИЕ: -0.41 [16:40:22]line ИТОГО: 500.00 [16:40:22]line Внесено: 500.00 [16:40:22]line СДАЧА: 0.00 [16:40:22]line НСП 1% : 4.43 [16:40:22]line НДС 12% : 53.14 [16:40:22]line Наличными: 500.00 [16:40:22]line Безнал.: 0.00 [16:40:22]line Место: АЗС № 161 "Партнер Нефть" [16:40:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:40:22]line СНО: Общий режим [16:40:22]line Чек 213 21.10.2024 16:40 [16:40:22]line Смена: 535 ФФД: 1.0 [16:40:22]line ЗНМ: 0300000104 [16:40:22]line РНМ: 0000000000091764 [16:40:22]line Версия ККМ: 001 [16:40:22]line ФМ: 0000000000871759 [16:40:22]line ФД: 166102 [16:40:22]line ФПД: 253315670496959 [16:40:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164040&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166102&fm=253315670496959&tin=02508201610067®Number=0000000000091764&sum=50000 [16:40:22]OFD Sender: Processing packet 166102 [packets to send 48, broken 47] [16:40:22]ProducePacketName [16:40:22]name=ofd_packets/00166102 [16:40:22]OFD Sender: To server: pG, [16:40:22]CommunicateWithHost lk.salyk.kg:30040 [16:40:22]ConnectInit lk.salyk.kg [16:40:22]written 0, free lines is 4095 [16:40:23]Connected sock=7 [16:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6C 22 07 01 7A 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 08 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 88 02 00 35 04 06 00 E6 63 A6 8E 56 BF 57 74 B5 28 42 D3 2A AB [16: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 35 39 4F 00 00 00 9B 4F 47 00 0A 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D6 88 02 00 F4 03 04 00 76 2A 16 67 B6 04 01 00 00 1B 09 2F 4B E0 46 EB 9D [16:40:23]CommunicateWithHost err = 0 [16:40:23]CheckOFDResponse [16:40:23]1017 (14) - 77093643461234 [16:40:23]1041 (16) - 0000000000871759 [16:40:23]1040 (4) - 166102 [16:40:23]1012 (4) - 21.10.2024 10:18 [16:40:23]1206 (1) - 0 [16:40:23]OFD Sender: Remove packet 166102 [16:40:23]ProducePacketName [16:40:23]name=ofd_packets/00166102 [16:40:23]NVStorageDeleteData [16:40:23]Write to MH i2c: 01 00 00 B7 67 1E [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 07 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: 01 07 00 B7 67 00 00 00 00 00 D4 0C 05 [16:40:23]RasterBufferAndPrint [16:40:23]line [16:40:23]line [16:40:23]line [16:40:23]line [16:40:23]line [16:40:23]written 0, free lines is 3293 [16:40:23]MH_Cut [16:40:23]Write to MH i2c: D1 01 00 BE 67 01 F7 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: D1 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: D1 01 00 [16:40:23]MH_I2C_Read... [16:40:23]Read from MH i2c: D1 01 00 BE 67 00 F6 [16:40:23]Write to MH i2c: 01 00 00 BF 67 26 [16:40:23]Write i2c OK [16:40:23]MH_I2C_Read... [16:40:23]OFD Sender: No OFD packet to send [16:40:24]*** Cut start [16:40:24]*** Partial cut [16:40:24]*** CUTSNS_PIN = 1 [16:40:24]*** CUTSNS_PIN = 0 [16:40:24]*** Brake cut motor [16:40:24]Read from MH i2c: 01 [16:40:24]MH_I2C_Read... [16:40:24]*** Stop cut motor [16:40:24]*** Cut end [16:40:24]Read from MH i2c: 01 07 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: 01 07 00 BF 67 00 00 00 00 00 FF 0F 3B [16:40:24]process_action close_receipt done [16:40:24]requested_data is exist [16:40:24]produce_requested_data [16:40:24]requested_item fm.sn is exist - process it [16:40:24]wFMCommunicate request_size=4 [16:40:24]MH_SAM_APDU [16:40:24]CAPDU: 80 11 00 00 [16:40:24]Write to MH i2c: E2 08 00 C0 67 80 11 00 00 00 00 00 00 A1 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:24]Read from MH i2c: E2 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: E2 17 00 [16:40:24]MH_I2C_Read... [16:40:24]Read from MH i2c: E2 17 00 C0 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [16:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:40:24]wFMCommunicate OK [16:40:24]requested_item fd.num is exist - process it [16:40:24]SAM_PROTO_GetFieldsCounters [16:40:24]wFMCommunicate request_size=4 [16:40:24]MH_SAM_APDU [16:40:24]CAPDU: 80 13 00 00 [16:40:24]Write to MH i2c: E2 08 00 C1 67 80 13 00 00 00 00 00 00 A4 [16:40:24]Write i2c OK [16:40:24]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 62 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 62 00 C1 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [16:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:25]wFMCommunicate OK [16:40:25]SAM_PROTO_GetFieldsCounters done [16:40:25]requested_item shift.num is exist - process it [16:40:25]requested_item shift.opened is exist - process it [16:40:25]req_shift_opened [16:40:25]FM_GetShiftState [16:40:25]SAM_PROTO_GetShiftState [16:40:25]wFMCommunicate request_size=4 [16:40:25]MH_SAM_APDU [16:40:25]CAPDU: 80 13 01 00 [16:40:25]Write to MH i2c: E2 08 00 C2 67 80 13 01 00 00 00 00 00 A6 [16:40:25]Write i2c OK [16:40:25]MH_I2C_Read... [16:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:25]Read from MH i2c: E2 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 0E 00 [16:40:25]MH_I2C_Read... [16:40:25]Read from MH i2c: E2 0E 00 C2 67 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AF [16:40:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:40:25]wFMCommunicate OK [16:40:25]SAM_PROTO_GetShiftState done [16:40:25]FM_GetShiftState done [16:40:25]req_shift_opened done [16:40:25]requested_item shift.open_date is exist - process it [16:40:25]req_shift_open_date [16:40:25]req_shift_open_date done [16:40:25]produce_requested_data done [16:40:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166102,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:40:25]process_action_free close_receipt [16:40:25]json_value_free [16:40:25]json_value_free done [16:40:25]process_json_proto returns [16:40:25]Send response to host [16:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166102,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:40:25]free response buf [16:40:25]execute_script done [16:40:25]execute_script returns [16:40:25]free content buf [16:40:25]Sock 5.Close socket [16:40:25]Sock 5.Thread stoped [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:06]accept exits with 6 [16:41:06]New connection [16:41:06]New thread 3066776932 created [16:41:06]Thread 3066920292 joined [16:41:06]Waiting for new connection... [16:41:06] Sock 6.Parse request [16:41:06]Sock 6.Check first char [16:41:06]Sock 6.First char is OK [16:41:06]request: POST /json_proto HTTP/1.0 [16:41:06]Method: POST [16:41:06]URL: /json_proto [16:41:06]Method is POST - this is cgi request [16:41:06]url: /json_proto [16:41:06]query_string will be loaded in cgi processing [16:41:06]execute_cgi json_proto POST (null) [16:41:06]execute_cgi path=json_proto method=POST [16:41:06]POST find Content-Length [16:41:06]Host: 172.17.53.195:8080 [16:41:06]Content-Length: 677 [16:41:06]Content-Type: application/json [16:41:06] [16:41:06]POST finish read [16:41:06]Found Content-Length = 677 [16:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:06]execute_script... [16:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:41:06]POST & json_proto [16:41:06]process_json_proto [16:41:06]json parsed OK: [16:41:06]protocol is kg_v1.0 [16:41:06]action value=close_receipt [16:41:06]process_action close_receipt [16:41:06]cmd_close_receipt [16:41:06]MH_GetDate [16:41:06]Write to MH i2c: F0 00 00 C3 67 19 [16:41:06]Write i2c OK [16:41:06]MH_I2C_Read... [16:41:06]Read from MH i2c: F0 [16:41:06]MH_I2C_Read... [16:41:06]Read from MH i2c: F0 09 00 [16:41:06]MH_I2C_Read... [16:41:06]Read from MH i2c: F0 09 00 C3 67 00 36 84 16 67 21 48 4A 65 71 [16:41:06]GetLastDocTimeStamp 1729528840 [16:41:06]current date 1729528886 [16:41:06]FM_GetShiftState [16:41:06]SAM_PROTO_GetShiftState [16:41:06]wFMCommunicate request_size=4 [16:41:06]MH_SAM_APDU [16:41:06]CAPDU: 80 13 01 00 [16:41:06]Write to MH i2c: E2 08 00 C4 67 80 13 01 00 00 00 00 00 A8 [16:41:06]Write i2c OK [16:41:06]MH_I2C_Read... [16:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:06]Read from MH i2c: E2 [16:41:06]MH_I2C_Read... [16:41:06]Read from MH i2c: E2 0E 00 [16:41:06]MH_I2C_Read... [16:41:06]Read from MH i2c: E2 0E 00 C4 67 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B1 [16:41:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:41:06]wFMCommunicate OK [16:41:06]SAM_PROTO_GetShiftState done [16:41:06]FM_GetShiftState done [16:41:06]opened in 1729470944 [16:41:06]opened+sec_in_day 1729557344 [16:41:06]quantity*price = 50041 [16:41:06]sum+1 = 50042 [16:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 214 21.10.2024 16:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166103 ФПД: 75197389114159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166103&fm=75197389114159&tin=02508201610067®Number=0000000000091764&sum=50000 [16:41:08]StoreToDocumentArchive [16:41:08]shift 535 fd 166103 [16:41:08]save to /storage/0535/doc_00166103 [16:41:08]save last doc name /storage/0535/doc_00166103 to /storage/kkm_last_doc_name [16:41:08]save OK [16:41:08]Clear old archive folders... [16:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:08]tlvbuf is 0162CEA0 [16:41:08]SAM_PROTO_ClearQueue [16:41:08]wFMCommunicate request_size=4 [16:41:08]MH_SAM_APDU [16:41:08]CAPDU: 80 09 00 00 [16:41:08]Write to MH i2c: E2 08 00 D1 67 80 09 00 00 00 00 00 00 AA [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:08]Read from MH i2c: E2 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 D1 67 00 90 00 AC [16:41:08]RAPDU: 90 00 [16:41:08]wFMCommunicate OK [16:41:08]SAM_PROTO_ClearQueue done [16:41:08]KKMCreateOFDPacket [16:41:08]OFDProtocolAddRootSTLVToBuf [16:41:08]FM_MakeSignedData [16:41:08]FM_MakeSignedData [16:41:08]SAM_PROTO_SignData [16:41:08]wFMCommunicate request_size=4 [16:41:08]MH_SAM_APDU [16:41:08]CAPDU: 80 0D 01 02 [16:41:08]Write to MH i2c: E2 08 00 D2 67 80 0D 01 02 00 00 00 00 B2 [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:08]Read from MH i2c: E2 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 D2 67 00 90 00 AD [16:41:08]RAPDU: 90 00 [16:41:08]wFMCommunicate OK [16:41:08]wFMCommunicate request_size=255 [16:41:08]MH_SAM_APDU [16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 88 02 00 35 04 06 00 44 [16:41:08]Write to MH i2c: E2 02 01 D3 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 36 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 88 02 00 35 04 06 00 44 00 00 13 [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:08]Read from MH i2c: E2 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 D3 67 00 90 00 AE [16:41:08]RAPDU: 90 00 [16:41:08]wFMCommunicate OK [16:41:08]wFMCommunicate request_size=10 [16:41:08]MH_SAM_APDU [16:41:08]CAPDU: 80 0D 02 02 05 64 41 AA 8B 2F [16:41:08]Write to MH i2c: E2 0D 00 D4 67 80 0D 02 02 05 00 64 41 AA 8B 2F 00 00 C8 [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:08]Read from MH i2c: E2 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 03 00 D4 67 00 90 00 AF [16:41:08]RAPDU: 90 00 [16:41:08]wFMCommunicate OK [16:41:08]wFMCommunicate request_size=4 [16:41:08]MH_SAM_APDU [16:41:08]CAPDU: 80 0D 03 02 [16:41:08]Write to MH i2c: E2 08 00 D5 67 80 0D 03 02 00 00 00 00 B7 [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:08]Read from MH i2c: E2 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 0B 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 0B 00 D5 67 00 6C 35 CB D2 8E AA 34 CD 90 00 2F [16:41:08]RAPDU: 6C 35 CB D2 8E AA 34 CD 90 00 [16:41:08]wFMCommunicate OK [16:41:08]SAM_PROTO_SignData done [16:41:08]FM_MakeSignedData done [16:41:08]CreateOFDProtocolMessage [16:41:08]wFMCommunicate request_size=4 [16:41:08]MH_SAM_APDU [16:41:08]CAPDU: 80 11 00 00 [16:41:08]Write to MH i2c: E2 08 00 D6 67 80 11 00 00 00 00 00 00 B7 [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:08]Read from MH i2c: E2 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 17 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: E2 17 00 D6 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [16:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:41:08]wFMCommunicate OK [16:41:08]CreateOFDProtocolMessage done [16:41:08]OFDSenderStorePacket 166103 [16:41:08]StoreOFDPacket docnum=166103 [16:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DE A3 07 01 A4 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 36 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 88 02 00 35 04 06 00 44 64 41 AA 8B 2F 6C 35 CB D2 8E AA 34 CD [16:41:08]CheckFolder [16:41:08]dirname=/storage/ofd_packets [16:41:08]CheckFolder done [16:41:08]ProducePacketName [16:41:08]name=ofd_packets/00166103 [16:41:08]NVStorageSaveData ofd_packets/00166103 [16:41:08]File name is /storage/ofd_packets/00166103 [16:41:08]Write 301 bytes [16:41:08]NVStorageSaveData done [16:41:08]OFDSenderStorePacket done [16:41:08]KKMCreateOFDPacket done [16:41:08]NVStorageSaveData kkm_last_timestamp [16:41:08]File name is /storage/kkm_last_timestamp [16:41:08]Write 4 bytes [16:41:08]NVStorageSaveData done [16:41:08]ExternCall_PrintAddStr [16:41:08]wPrintStart [16:41:08]Write to MH i2c: 01 00 00 D7 67 3E [16:41:08]Write i2c OK [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: 01 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: 01 07 00 [16:41:08]MH_I2C_Read... [16:41:08]Read from MH i2c: 01 07 00 D7 67 00 00 00 00 00 FF 0F 53 [16:41:08]RasterBufferAndPrint [16:41:08]line Счет N : (1)220674 [16:41:08]line ИНН: 02508201610067 [16:41:08]line Контрольно-Кассовый Чек [16:41:08]line ПРОДАЖА [16:41:08]line ТРК (МРК, ГНК) : 13 [16:41:08]line Товар: 2710124130 [16:41:08]line Аи-92-К-5 [16:41:08]line 7.480 * 66.90 [16:41:08]line = 500.41 [16:41:08]line НДС 12% НСП 1% [16:41:08]line > о реализуемом товаре [16:41:08]line ОКРУГЛЕНИЕ: -0.41 [16:41:08]line ИТОГО: 500.00 [16:41:08]line Внесено: 500.00 [16:41:08]line СДАЧА: 0.00 [16:41:08]line НСП 1% : 4.43 [16:41:08]line НДС 12% : 53.14 [16:41:08]line Наличными: 500.00 [16:41:08]line Безнал.: 0.00 [16:41:08]line Место: АЗС № 161 "Партнер Нефть" [16:41:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:41:08]line СНО: Общий режим [16:41:08]line Чек 214 21.10.2024 16:41 [16:41:08]line Смена: 535 ФФД: 1.0 [16:41:08]line ЗНМ: 0300000104 [16:41:08]line РНМ: 0000000000091764 [16:41:08]line Версия ККМ: 001 [16:41:08]line ФМ: 0000000000871759 [16:41:08]line ФД: 166103 [16:41:08]line ФПД: 75197389114159 [16:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164126&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166103&fm=75197389114159&tin=02508201610067®Number=0000000000091764&sum=50000 [16:41:08]OFD Sender: Processing packet 166103 [packets to send 48, broken 47] [16:41:08]ProducePacketName [16:41:08]name=ofd_packets/00166103 [16:41:08]OFD Sender: To server: pG, [16:41:08]CommunicateWithHost lk.salyk.kg:30040 [16:41:08]ConnectInit lk.salyk.kg [16:41:08]written 0, free lines is 4095 [16:41:09]Connected sock=9 [16: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 35 39 0F 01 00 00 DE A3 07 01 A4 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 36 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 88 02 00 35 04 06 00 44 64 41 AA 8B 2F 6C 35 CB D2 8E AA 34 CD [16:41:09]Write to MH i2c: 01 00 00 02 68 6A [16:41:09]Write i2c OK [16:41:09]MH_I2C_Read... [16:41:09]Read from MH i2c: 01 [16:41:09]MH_I2C_Read... [16:41:09]Read from MH i2c: 01 07 00 [16:41:09]MH_I2C_Read... [16:41:09]Read from MH i2c: 01 07 00 02 68 00 00 00 00 00 BE 0C 3B [16:41:09]RasterBufferAndPrint [16:41:09]line [16:41:09]line [16:41:09]line [16:41:09]line [16:41:09]line [16:41:09]written 0, free lines is 3268 [16:41:09]MH_Cut [16:41:09]Write to MH i2c: D1 01 00 09 68 01 43 [16:41:09]Write i2c OK [16:41:09]MH_I2C_Read... [16:41:09]Read from MH i2c: D1 [16:41:09]MH_I2C_Read... [16:41:09]Read from MH i2c: D1 01 00 [16:41:09]MH_I2C_Read... [16:41:09]Read from MH i2c: D1 01 00 09 68 00 42 [16:41:09]Write to MH i2c: 01 00 00 0A 68 72 [16:41:09]Write i2c OK [16:41:09]MH_I2C_Read... [16:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9A 41 47 00 D5 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D7 88 02 00 F4 03 04 00 A4 2A 16 67 B6 04 01 00 00 13 61 2E 4C B7 DB 55 B8 [16:41:09]CommunicateWithHost err = 0 [16:41:09]CheckOFDResponse [16:41:09]1017 (14) - 77093643461234 [16:41:09]1041 (16) - 0000000000871759 [16:41:09]1040 (4) - 166103 [16:41:09]1012 (4) - 21.10.2024 10:19 [16:41:09]1206 (1) - 0 [16:41:09]OFD Sender: Remove packet 166103 [16:41:09]ProducePacketName [16:41:09]name=ofd_packets/00166103 [16:41:09]NVStorageDeleteData [16:41:09]OFD Sender: No OFD packet to send [16:41:10]*** Cut start [16:41:10]*** Partial cut [16:41:10]*** CUTSNS_PIN = 1 [16:41:10]*** CUTSNS_PIN = 0 [16:41:10]*** Brake cut motor [16:41:10]Read from MH i2c: 01 [16:41:10]MH_I2C_Read... [16:41:10]*** Stop cut motor [16:41:10]*** Cut end [16:41:10]Read from MH i2c: 01 07 00 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: 01 07 00 0A 68 00 00 00 00 00 FF 0F 87 [16:41:10]process_action close_receipt done [16:41:10]requested_data is exist [16:41:10]produce_requested_data [16:41:10]requested_item fm.sn is exist - process it [16:41:10]wFMCommunicate request_size=4 [16:41:10]MH_SAM_APDU [16:41:10]CAPDU: 80 11 00 00 [16:41:10]Write to MH i2c: E2 08 00 0B 68 80 11 00 00 00 00 00 00 ED [16:41:10]Write i2c OK [16:41:10]MH_I2C_Read... [16:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:10]Read from MH i2c: E2 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: E2 17 00 [16:41:10]MH_I2C_Read... [16:41:10]Read from MH i2c: E2 17 00 0B 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [16:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:41:10]wFMCommunicate OK [16:41:10]requested_item fd.num is exist - process it [16:41:10]SAM_PROTO_GetFieldsCounters [16:41:10]wFMCommunicate request_size=4 [16:41:10]MH_SAM_APDU [16:41:10]CAPDU: 80 13 00 00 [16:41:10]Write to MH i2c: E2 08 00 0C 68 80 13 00 00 00 00 00 00 F0 [16:41:10]Write i2c OK [16:41:10]MH_I2C_Read... [16:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:11]Read from MH i2c: E2 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 62 00 [16:41:11]MH_I2C_Read... [16:41:11]Read from MH i2c: E2 62 00 0C 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [16: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:11]wFMCommunicate OK [16:41:11]SAM_PROTO_GetFieldsCounters done [16:41:11]requested_item shift.num is exist - process it [16:41:11]requested_item shift.opened is exist - process it [16:41:11]req_shift_opened [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 0D 68 80 13 01 00 00 00 00 00 F2 [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 0D 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FB [16:41:11]RAPDU: 09 00 01 E0 A1 15 67 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]req_shift_opened done [16:41:11]requested_item shift.open_date is exist - process it [16:41:11]req_shift_open_date [16:41:11]req_shift_open_date done [16:41:11]produce_requested_data done [16:41:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166103,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:41:11]process_action_free close_receipt [16:41:11]json_value_free [16:41:11]json_value_free done [16:41:11]process_json_proto returns [16:41:11]Send response to host [16:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166103,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:41:11]free response buf [16:41:11]execute_script done [16:41:11]execute_script returns [16:41:11]free content buf [16:41:11]Sock 6.Close socket [16:41:11]Sock 6.Thread stoped [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:06]accept exits with 5 [16:42:06]New connection [16:42:06]New thread 3066920292 created [16:42:06]Thread 3066776932 joined [16:42:06]Waiting for new connection... [16:42:06] Sock 5.Parse request [16:42:06]Sock 5.Check first char [16:42:06]Sock 5.First char is OK [16:42:06]request: POST /json_proto HTTP/1.0 [16:42:06]Method: POST [16:42:06]URL: /json_proto [16:42:06]Method is POST - this is cgi request [16:42:06]url: /json_proto [16:42:06]query_string will be loaded in cgi processing [16:42:06]execute_cgi json_proto POST (null) [16:42:06]execute_cgi path=json_proto method=POST [16:42:06]POST find Content-Length [16:42:06]Host: 172.17.53.195:8080 [16:42:06]Content-Length: 677 [16:42:06]Content-Type: application/json [16:42:06] [16:42:06]POST finish read [16:42:06]Found Content-Length = 677 [16:42:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:06]execute_script... [16:42: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)220675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.960, "sum" : 599.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 599.00, "payments": [ { "type": 0, "sum" : 599.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:06]POST & json_proto [16:42:06]process_json_proto [16:42:06]json parsed OK: [16:42:06]protocol is kg_v1.0 [16:42:06]action value=close_receipt [16:42:06]process_action close_receipt [16:42:06]cmd_close_receipt [16:42:06]MH_GetDate [16:42:06]Write to MH i2c: F0 00 00 0E 68 65 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: F0 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: F0 09 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: F0 09 00 0E 68 00 71 84 16 67 21 48 4A 65 F8 [16:42:06]GetLastDocTimeStamp 1729528886 [16:42:06]current date 1729528945 [16:42:06]FM_GetShiftState [16:42:06]SAM_PROTO_GetShiftState [16:42:06]wFMCommunicate request_size=4 [16:42:06]MH_SAM_APDU [16:42:06]CAPDU: 80 13 01 00 [16:42:06]Write to MH i2c: E2 08 00 0F 68 80 13 01 00 00 00 00 00 F4 [16:42:06]Write i2c OK [16:42:06]MH_I2C_Read... [16:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:06]Read from MH i2c: E2 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 0E 00 [16:42:06]MH_I2C_Read... [16:42:06]Read from MH i2c: E2 0E 00 0F 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FD [16:42:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:42:06]wFMCommunicate OK [16:42:06]SAM_PROTO_GetShiftState done [16:42:06]FM_GetShiftState done [16:42:06]opened in 1729470944 [16:42:06]opened+sec_in_day 1729557344 [16:42:06]quantity*price = 59942 [16:42:06]sum+1 = 59943 [16:42:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 599.00 Внесено: 600.00 СДАЧА: 1.00 НСП 1% : 5.30 НДС 12% : 63.65 Наличными: 599.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 215 21.10.2024 16:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166104 ФПД: 173928050861632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164225&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166104&fm=173928050861632&tin=02508201610067®Number=0000000000091764&sum=59900 [16:42:07]StoreToDocumentArchive [16:42:07]shift 535 fd 166104 [16:42:07]save to /storage/0535/doc_00166104 [16:42:07]save last doc name /storage/0535/doc_00166104 to /storage/kkm_last_doc_name [16:42:07]save OK [16:42:07]Clear old archive folders... [16:42:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:07]tlvbuf is 01AFBE60 [16:42:07]SAM_PROTO_ClearQueue [16:42:07]wFMCommunicate request_size=4 [16:42:07]MH_SAM_APDU [16:42:07]CAPDU: 80 09 00 00 [16:42:07]Write to MH i2c: E2 08 00 1C 68 80 09 00 00 00 00 00 00 F6 [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:07]Read from MH i2c: E2 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 1C 68 00 90 00 F8 [16:42:07]RAPDU: 90 00 [16:42:07]wFMCommunicate OK [16:42:07]SAM_PROTO_ClearQueue done [16:42:07]KKMCreateOFDPacket [16:42:07]OFDProtocolAddRootSTLVToBuf [16:42:07]FM_MakeSignedData [16:42:07]FM_MakeSignedData [16:42:07]SAM_PROTO_SignData [16:42:07]wFMCommunicate request_size=4 [16:42:07]MH_SAM_APDU [16:42:07]CAPDU: 80 0D 01 02 [16:42:07]Write to MH i2c: E2 08 00 1D 68 80 0D 01 02 00 00 00 00 FE [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:07]Read from MH i2c: E2 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 1D 68 00 90 00 F9 [16:42:07]RAPDU: 90 00 [16:42:07]wFMCommunicate OK [16:42:07]wFMCommunicate request_size=255 [16:42:07]MH_SAM_APDU [16:42: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 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 71 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 88 02 00 35 04 06 00 9E [16:42:07]Write to MH i2c: E2 02 01 1E 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 71 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 88 02 00 35 04 06 00 9E 00 00 B3 [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:07]Read from MH i2c: E2 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 1E 68 00 90 00 FA [16:42:07]RAPDU: 90 00 [16:42:07]wFMCommunicate OK [16:42:07]wFMCommunicate request_size=10 [16:42:07]MH_SAM_APDU [16:42:07]CAPDU: 80 0D 02 02 05 2F C7 B0 26 40 [16:42:07]Write to MH i2c: E2 0D 00 1F 68 80 0D 02 02 05 00 2F C7 B0 26 40 00 00 17 [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:07]Read from MH i2c: E2 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 03 00 1F 68 00 90 00 FB [16:42:07]RAPDU: 90 00 [16:42:07]wFMCommunicate OK [16:42:07]wFMCommunicate request_size=4 [16:42:07]MH_SAM_APDU [16:42:07]CAPDU: 80 0D 03 02 [16:42:07]Write to MH i2c: E2 08 00 20 68 80 0D 03 02 00 00 00 00 03 [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:07]Read from MH i2c: E2 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 0B 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 0B 00 20 68 00 49 9A 9F 49 7C EF 70 8B 90 00 35 [16:42:07]RAPDU: 49 9A 9F 49 7C EF 70 8B 90 00 [16:42:07]wFMCommunicate OK [16:42:07]SAM_PROTO_SignData done [16:42:07]FM_MakeSignedData done [16:42:07]CreateOFDProtocolMessage [16:42:07]wFMCommunicate request_size=4 [16:42:07]MH_SAM_APDU [16:42:07]CAPDU: 80 11 00 00 [16:42:07]Write to MH i2c: E2 08 00 21 68 80 11 00 00 00 00 00 00 03 [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:07]Read from MH i2c: E2 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 17 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: E2 17 00 21 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [16:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:42:07]wFMCommunicate OK [16:42:07]CreateOFDProtocolMessage done [16:42:07]OFDSenderStorePacket 166104 [16:42:07]StoreOFDPacket docnum=166104 [16:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 A9 07 01 03 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 71 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 88 02 00 35 04 06 00 9E 2F C7 B0 26 40 49 9A 9F 49 7C EF 70 8B [16:42:07]CheckFolder [16:42:07]dirname=/storage/ofd_packets [16:42:07]CheckFolder done [16:42:07]ProducePacketName [16:42:07]name=ofd_packets/00166104 [16:42:07]NVStorageSaveData ofd_packets/00166104 [16:42:07]File name is /storage/ofd_packets/00166104 [16:42:07]Write 301 bytes [16:42:07]NVStorageSaveData done [16:42:07]OFDSenderStorePacket done [16:42:07]KKMCreateOFDPacket done [16:42:07]NVStorageSaveData kkm_last_timestamp [16:42:07]File name is /storage/kkm_last_timestamp [16:42:07]Write 4 bytes [16:42:07]NVStorageSaveData done [16:42:07]ExternCall_PrintAddStr [16:42:07]wPrintStart [16:42:07]Write to MH i2c: 01 00 00 22 68 8A [16:42:07]Write i2c OK [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: 01 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: 01 07 00 [16:42:07]MH_I2C_Read... [16:42:07]Read from MH i2c: 01 07 00 22 68 00 00 00 00 00 FF 0F 9F [16:42:07]RasterBufferAndPrint [16:42:07]line Счет N : (1)220675 [16:42:07]line ИНН: 02508201610067 [16:42:07]line Контрольно-Кассовый Чек [16:42:07]line ПРОДАЖА [16:42:07]line ТРК (МРК, ГНК) : 43 [16:42:07]line Товар: 2710124130 [16:42:07]line Аи-92-К-5 [16:42:07]line 8.960 * 66.90 [16:42:07]line = 599.42 [16:42:07]line НДС 12% НСП 1% [16:42:07]line > о реализуемом товаре [16:42:07]line ОКРУГЛЕНИЕ: -0.42 [16:42:07]line ИТОГО: 599.00 [16:42:07]line Внесено: 600.00 [16:42:07]line СДАЧА: 1.00 [16:42:07]line НСП 1% : 5.30 [16:42:07]line НДС 12% : 63.65 [16:42:07]line Наличными: 599.00 [16:42:07]line Безнал.: 0.00 [16:42:07]line Место: АЗС № 161 "Партнер Нефть" [16:42:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:42:07]line СНО: Общий режим [16:42:07]line Чек 215 21.10.2024 16:42 [16:42:07]line Смена: 535 ФФД: 1.0 [16:42:07]line ЗНМ: 0300000104 [16:42:07]line РНМ: 0000000000091764 [16:42:07]line Версия ККМ: 001 [16:42:07]line ФМ: 0000000000871759 [16:42:07]line ФД: 166104 [16:42:07]line ФПД: 173928050861632 [16:42:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164225&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166104&fm=173928050861632&tin=02508201610067®Number=0000000000091764&sum=59900 [16:42:08]OFD Sender: Processing packet 166104 [packets to send 48, broken 47] [16:42:08]ProducePacketName [16:42:08]name=ofd_packets/00166104 [16:42:08]OFD Sender: To server: pG, [16:42:08]CommunicateWithHost lk.salyk.kg:30040 [16:42:08]ConnectInit lk.salyk.kg [16:42:08]written 0, free lines is 4095 [16:42:08]Connected sock=7 [16:42:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F5 A9 07 01 03 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 00 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 18 00 00 00 00 07 04 06 00 FC E9 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 71 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 88 02 00 35 04 06 00 9E 2F C7 B0 26 40 49 9A 9F 49 7C EF 70 8B [16:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6D 8A 47 00 8D 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D8 88 02 00 F4 03 04 00 DF 2A 16 67 B6 04 01 00 00 31 6B 27 1C 88 58 23 34 [16:42:08]CommunicateWithHost err = 0 [16:42:08]CheckOFDResponse [16:42:08]1017 (14) - 77093643461234 [16:42:08]1041 (16) - 0000000000871759 [16:42:08]1040 (4) - 166104 [16:42:08]1012 (4) - 21.10.2024 10:20 [16:42:08]1206 (1) - 0 [16:42:08]OFD Sender: Remove packet 166104 [16:42:08]ProducePacketName [16:42:08]name=ofd_packets/00166104 [16:42:08]NVStorageDeleteData [16:42:08]Write to MH i2c: 01 00 00 4D 68 B5 [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: 01 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: 01 07 00 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: 01 07 00 4D 68 00 00 00 00 00 D8 0C A0 [16:42:08]RasterBufferAndPrint [16:42:08]line [16:42:08]line [16:42:08]line [16:42:08]line [16:42:08]line [16:42:08]written 0, free lines is 3296 [16:42:08]MH_Cut [16:42:08]Write to MH i2c: D1 01 00 54 68 01 8E [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: D1 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: D1 01 00 [16:42:08]MH_I2C_Read... [16:42:08]Read from MH i2c: D1 01 00 54 68 00 8D [16:42:08]Write to MH i2c: 01 00 00 55 68 BD [16:42:08]Write i2c OK [16:42:08]MH_I2C_Read... [16:42:09]OFD Sender: No OFD packet to send [16:42:09]*** Cut start [16:42:09]*** Partial cut [16:42:09]*** CUTSNS_PIN = 1 [16:42:09]*** CUTSNS_PIN = 0 [16:42:09]*** Brake cut motor [16:42:09]Read from MH i2c: 01 [16:42:10]MH_I2C_Read... [16:42:10]*** Stop cut motor [16:42:10]*** Cut end [16:42:10]Read from MH i2c: 01 07 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: 01 07 00 55 68 00 00 00 00 00 FF 0F D2 [16:42:10]process_action close_receipt done [16:42:10]requested_data is exist [16:42:10]produce_requested_data [16:42:10]requested_item fm.sn is exist - process it [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 11 00 00 [16:42:10]Write to MH i2c: E2 08 00 56 68 80 11 00 00 00 00 00 00 38 [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 17 00 56 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [16:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:42:10]wFMCommunicate OK [16:42:10]requested_item fd.num is exist - process it [16:42:10]SAM_PROTO_GetFieldsCounters [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 13 00 00 [16:42:10]Write to MH i2c: E2 08 00 57 68 80 13 00 00 00 00 00 00 3B [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 62 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 62 00 57 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [16:42:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_GetFieldsCounters done [16:42:10]requested_item shift.num is exist - process it [16:42:10]requested_item shift.opened is exist - process it [16:42:10]req_shift_opened [16:42:10]FM_GetShiftState [16:42:10]SAM_PROTO_GetShiftState [16:42:10]wFMCommunicate request_size=4 [16:42:10]MH_SAM_APDU [16:42:10]CAPDU: 80 13 01 00 [16:42:10]Write to MH i2c: E2 08 00 58 68 80 13 01 00 00 00 00 00 3D [16:42:10]Write i2c OK [16:42:10]MH_I2C_Read... [16:42:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:10]Read from MH i2c: E2 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0E 00 [16:42:10]MH_I2C_Read... [16:42:10]Read from MH i2c: E2 0E 00 58 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 46 [16:42:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:42:10]wFMCommunicate OK [16:42:10]SAM_PROTO_GetShiftState done [16:42:10]FM_GetShiftState done [16:42:10]req_shift_opened done [16:42:10]requested_item shift.open_date is exist - process it [16:42:10]req_shift_open_date [16:42:10]req_shift_open_date done [16:42:10]produce_requested_data done [16:42:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166104,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:42:10]process_action_free close_receipt [16:42:10]json_value_free [16:42:10]json_value_free done [16:42:10]process_json_proto returns [16:42:10]Send response to host [16:42:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166104,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:42:10]free response buf [16:42:10]execute_script done [16:42:10]execute_script returns [16:42:10]free content buf [16:42:10]Sock 5.Close socket [16:42:10]Sock 5.Thread stoped [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:42:59]accept exits with 6 [16:42:59]New connection [16:42:59]New thread 3066776932 created [16:42:59]Thread 3066920292 joined [16:42:59]Waiting for new connection... [16:42:59] Sock 6.Parse request [16:42:59]Sock 6.Check first char [16:42:59]Sock 6.First char is OK [16:42:59]request: POST /json_proto HTTP/1.0 [16:42:59]Method: POST [16:42:59]URL: /json_proto [16:42:59]Method is POST - this is cgi request [16:42:59]url: /json_proto [16:42:59]query_string will be loaded in cgi processing [16:42:59]execute_cgi json_proto POST (null) [16:42:59]execute_cgi path=json_proto method=POST [16:42:59]POST find Content-Length [16:42:59]Host: 172.17.53.195:8080 [16:42:59]Content-Length: 677 [16:42:59]Content-Type: application/json [16:42:59] [16:42:59]POST finish read [16:42:59]Found Content-Length = 677 [16:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:59]execute_script... [16: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)220676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:59]POST & json_proto [16:42:59]process_json_proto [16:42:59]json parsed OK: [16:42:59]protocol is kg_v1.0 [16:42:59]action value=close_receipt [16:42:59]process_action close_receipt [16:42:59]cmd_close_receipt [16:42:59]MH_GetDate [16:42:59]Write to MH i2c: F0 00 00 59 68 B0 [16:42:59]Write i2c OK [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: F0 [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: F0 09 00 [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: F0 09 00 59 68 00 A7 84 16 67 21 48 4A 65 79 [16:42:59]GetLastDocTimeStamp 1729528945 [16:42:59]current date 1729528999 [16:42:59]FM_GetShiftState [16:42:59]SAM_PROTO_GetShiftState [16:42:59]wFMCommunicate request_size=4 [16:42:59]MH_SAM_APDU [16:42:59]CAPDU: 80 13 01 00 [16:42:59]Write to MH i2c: E2 08 00 5A 68 80 13 01 00 00 00 00 00 3F [16:42:59]Write i2c OK [16:42:59]MH_I2C_Read... [16:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:59]Read from MH i2c: E2 [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: E2 0E 00 [16:42:59]MH_I2C_Read... [16:42:59]Read from MH i2c: E2 0E 00 5A 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 48 [16:42:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:42:59]wFMCommunicate OK [16:42:59]SAM_PROTO_GetShiftState done [16:42:59]FM_GetShiftState done [16:42:59]opened in 1729470944 [16:42:59]opened+sec_in_day 1729557344 [16:42:59]quantity*price = 20003 [16:42:59]sum+1 = 20004 [16:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 216 21.10.2024 16:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166105 ФПД: 8153937282751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166105&fm=8153937282751&tin=02508201610067®Number=0000000000091764&sum=20000 [16:43:01]StoreToDocumentArchive [16:43:01]shift 535 fd 166105 [16:43:01]save to /storage/0535/doc_00166105 [16:43:01]save last doc name /storage/0535/doc_00166105 to /storage/kkm_last_doc_name [16:43:01]save OK [16:43:01]Clear old archive folders... [16:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:01]tlvbuf is 01891AC0 [16:43:01]SAM_PROTO_ClearQueue [16:43:01]wFMCommunicate request_size=4 [16:43:01]MH_SAM_APDU [16:43:01]CAPDU: 80 09 00 00 [16:43:01]Write to MH i2c: E2 08 00 67 68 80 09 00 00 00 00 00 00 41 [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:01]Read from MH i2c: E2 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 67 68 00 90 00 43 [16:43:01]RAPDU: 90 00 [16:43:01]wFMCommunicate OK [16:43:01]SAM_PROTO_ClearQueue done [16:43:01]KKMCreateOFDPacket [16:43:01]OFDProtocolAddRootSTLVToBuf [16:43:01]FM_MakeSignedData [16:43:01]FM_MakeSignedData [16:43:01]SAM_PROTO_SignData [16:43:01]wFMCommunicate request_size=4 [16:43:01]MH_SAM_APDU [16:43:01]CAPDU: 80 0D 01 02 [16:43:01]Write to MH i2c: E2 08 00 68 68 80 0D 01 02 00 00 00 00 49 [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:01]Read from MH i2c: E2 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 68 68 00 90 00 44 [16:43:01]RAPDU: 90 00 [16:43:01]wFMCommunicate OK [16:43:01]wFMCommunicate request_size=255 [16:43:01]MH_SAM_APDU [16:43:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A7 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 88 02 00 35 04 06 00 07 [16:43:01]Write to MH i2c: E2 02 01 69 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A7 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 88 02 00 35 04 06 00 07 00 00 A4 [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:01]Read from MH i2c: E2 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 69 68 00 90 00 45 [16:43:01]RAPDU: 90 00 [16:43:01]wFMCommunicate OK [16:43:01]wFMCommunicate request_size=10 [16:43:01]MH_SAM_APDU [16:43:01]CAPDU: 80 0D 02 02 05 6A 7C 89 06 BF [16:43:01]Write to MH i2c: E2 0D 00 6A 68 80 0D 02 02 05 00 6A 7C 89 06 BF 00 00 8A [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:01]Read from MH i2c: E2 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 03 00 6A 68 00 90 00 46 [16:43:01]RAPDU: 90 00 [16:43:01]wFMCommunicate OK [16:43:01]wFMCommunicate request_size=4 [16:43:01]MH_SAM_APDU [16:43:01]CAPDU: 80 0D 03 02 [16:43:01]Write to MH i2c: E2 08 00 6B 68 80 0D 03 02 00 00 00 00 4E [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:01]Read from MH i2c: E2 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 0B 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 0B 00 6B 68 00 16 40 F9 10 C5 E9 5B 0C 90 00 C3 [16:43:01]RAPDU: 16 40 F9 10 C5 E9 5B 0C 90 00 [16:43:01]wFMCommunicate OK [16:43:01]SAM_PROTO_SignData done [16:43:01]FM_MakeSignedData done [16:43:01]CreateOFDProtocolMessage [16:43:01]wFMCommunicate request_size=4 [16:43:01]MH_SAM_APDU [16:43:01]CAPDU: 80 11 00 00 [16:43:01]Write to MH i2c: E2 08 00 6C 68 80 11 00 00 00 00 00 00 4E [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:01]Read from MH i2c: E2 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 17 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: E2 17 00 6C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [16:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:01]wFMCommunicate OK [16:43:01]CreateOFDProtocolMessage done [16:43:01]OFDSenderStorePacket 166105 [16:43:01]StoreOFDPacket docnum=166105 [16:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 09 C0 07 01 D7 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A7 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 88 02 00 35 04 06 00 07 6A 7C 89 06 BF 16 40 F9 10 C5 E9 5B 0C [16:43:01]CheckFolder [16:43:01]dirname=/storage/ofd_packets [16:43:01]CheckFolder done [16:43:01]ProducePacketName [16:43:01]name=ofd_packets/00166105 [16:43:01]NVStorageSaveData ofd_packets/00166105 [16:43:01]File name is /storage/ofd_packets/00166105 [16:43:01]Write 301 bytes [16:43:01]NVStorageSaveData done [16:43:01]OFDSenderStorePacket done [16:43:01]KKMCreateOFDPacket done [16:43:01]NVStorageSaveData kkm_last_timestamp [16:43:01]File name is /storage/kkm_last_timestamp [16:43:01]Write 4 bytes [16:43:01]NVStorageSaveData done [16:43:01]ExternCall_PrintAddStr [16:43:01]wPrintStart [16:43:01]Write to MH i2c: 01 00 00 6D 68 D5 [16:43:01]Write i2c OK [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: 01 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: 01 07 00 [16:43:01]MH_I2C_Read... [16:43:01]Read from MH i2c: 01 07 00 6D 68 00 00 00 00 00 FF 0F EA [16:43:01]RasterBufferAndPrint [16:43:01]line Счет N : (1)220676 [16:43:01]line ИНН: 02508201610067 [16:43:01]line Контрольно-Кассовый Чек [16:43:01]line ПРОДАЖА [16:43:01]line ТРК (МРК, ГНК) : 23 [16:43:01]line Товар: 2710124130 [16:43:01]line Аи-92-К-5 [16:43:01]line 2.990 * 66.90 [16:43:01]line = 200.03 [16:43:01]line НДС 12% НСП 1% [16:43:01]line > о реализуемом товаре [16:43:01]line ОКРУГЛЕНИЕ: -0.03 [16:43:01]line ИТОГО: 200.00 [16:43:01]line Внесено: 200.00 [16:43:01]line СДАЧА: 0.00 [16:43:01]line НСП 1% : 1.77 [16:43:01]line НДС 12% : 21.24 [16:43:01]line Наличными: 200.00 [16:43:01]line Безнал.: 0.00 [16:43:01]line Место: АЗС № 161 "Партнер Нефть" [16:43:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:43:01]line СНО: Общий режим [16:43:01]line Чек 216 21.10.2024 16:43 [16:43:01]line Смена: 535 ФФД: 1.0 [16:43:01]line ЗНМ: 0300000104 [16:43:01]line РНМ: 0000000000091764 [16:43:01]line Версия ККМ: 001 [16:43:01]line ФМ: 0000000000871759 [16:43:01]line ФД: 166105 [16:43:01]line ФПД: 8153937282751 [16:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166105&fm=8153937282751&tin=02508201610067®Number=0000000000091764&sum=20000 [16:43:01]OFD Sender: Processing packet 166105 [packets to send 48, broken 47] [16:43:01]ProducePacketName [16:43:01]name=ofd_packets/00166105 [16:43:01]OFD Sender: To server: pG, [16:43:01]CommunicateWithHost lk.salyk.kg:30040 [16:43:01]ConnectInit lk.salyk.kg [16:43:01]written 0, free lines is 4095 [16:43:02]Connected sock=7 [16: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 35 39 0F 01 00 00 09 C0 07 01 D7 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 A7 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 88 02 00 35 04 06 00 07 6A 7C 89 06 BF 16 40 F9 10 C5 E9 5B 0C [16: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 35 39 4F 00 00 00 83 BA 47 00 00 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 D9 88 02 00 F4 03 04 00 14 2B 16 67 B6 04 01 00 00 90 81 25 EF 2B AE D1 5D [16:43:02]CommunicateWithHost err = 0 [16:43:02]CheckOFDResponse [16:43:02]1017 (14) - 77093643461234 [16:43:02]1041 (16) - 0000000000871759 [16:43:02]1040 (4) - 166105 [16:43:02]1012 (4) - 21.10.2024 10:21 [16:43:02]1206 (1) - 0 [16:43:02]OFD Sender: Remove packet 166105 [16:43:02]ProducePacketName [16:43:02]name=ofd_packets/00166105 [16:43:02]NVStorageDeleteData [16:43:02]Write to MH i2c: 01 00 00 98 68 00 [16:43:02]Write i2c OK [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: 01 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: 01 07 00 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: 01 07 00 98 68 00 00 00 00 00 D2 0C E5 [16:43:02]RasterBufferAndPrint [16:43:02]line [16:43:02]line [16:43:02]line [16:43:02]line [16:43:02]line [16:43:02]written 0, free lines is 3288 [16:43:02]MH_Cut [16:43:02]Write to MH i2c: D1 01 00 9F 68 01 D9 [16:43:02]Write i2c OK [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: D1 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: D1 01 00 [16:43:02]MH_I2C_Read... [16:43:02]Read from MH i2c: D1 01 00 9F 68 00 D8 [16:43:02]Write to MH i2c: 01 00 00 A0 68 08 [16:43:02]Write i2c OK [16:43:02]MH_I2C_Read... [16:43:02]OFD Sender: No OFD packet to send [16:43:03]*** Cut start [16:43:03]*** Partial cut [16:43:03]*** CUTSNS_PIN = 1 [16:43:03]*** CUTSNS_PIN = 0 [16:43:03]*** Brake cut motor [16:43:03]Read from MH i2c: 01 [16:43:03]MH_I2C_Read... [16:43:03]*** Stop cut motor [16:43:03]Read from MH i2c: *** Cut end [16:43:03]01 07 00 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: 01 07 00 A0 68 00 00 00 00 00 FF 0F 1D [16:43:03]process_action close_receipt done [16:43:03]requested_data is exist [16:43:03]produce_requested_data [16:43:03]requested_item fm.sn is exist - process it [16:43:03]wFMCommunicate request_size=4 [16:43:03]MH_SAM_APDU [16:43:03]CAPDU: 80 11 00 00 [16:43:03]Write to MH i2c: E2 08 00 A1 68 80 11 00 00 00 00 00 00 83 [16:43:03]Write i2c OK [16:43:03]MH_I2C_Read... [16:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:03]Read from MH i2c: E2 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: E2 17 00 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: E2 17 00 A1 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [16:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:43:03]wFMCommunicate OK [16:43:03]requested_item fd.num is exist - process it [16:43:03]SAM_PROTO_GetFieldsCounters [16:43:03]wFMCommunicate request_size=4 [16:43:03]MH_SAM_APDU [16:43:03]CAPDU: 80 13 00 00 [16:43:03]Write to MH i2c: E2 08 00 A2 68 80 13 00 00 00 00 00 00 86 [16:43:03]Write i2c OK [16:43:03]MH_I2C_Read... [16:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:03]Read from MH i2c: E2 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: E2 62 00 [16:43:03]MH_I2C_Read... [16:43:03]Read from MH i2c: E2 62 00 A2 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [16: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 D9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:03]wFMCommunicate OK [16:43:03]SAM_PROTO_GetFieldsCounters done [16:43:03]requested_item shift.num is exist - process it [16:43:03]requested_item shift.opened is exist - process it [16:43:03]req_shift_opened [16:43:03]FM_GetShiftState [16:43:03]SAM_PROTO_GetShiftState [16:43:03]wFMCommunicate request_size=4 [16:43:03]MH_SAM_APDU [16:43:03]CAPDU: 80 13 01 00 [16:43:03]Write to MH i2c: E2 08 00 A3 68 80 13 01 00 00 00 00 00 88 [16:43:03]Write i2c OK [16:43:03]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0E 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0E 00 A3 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 91 [16:43:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:43:04]wFMCommunicate OK [16:43:04]SAM_PROTO_GetShiftState done [16:43:04]FM_GetShiftState done [16:43:04]req_shift_opened done [16:43:04]requested_item shift.open_date is exist - process it [16:43:04]req_shift_open_date [16:43:04]req_shift_open_date done [16:43:04]produce_requested_data done [16:43:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166105,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:43:04]process_action_free close_receipt [16:43:04]json_value_free [16:43:04]json_value_free done [16:43:04]process_json_proto returns [16:43:04]Send response to host [16:43:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166105,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:43:04]free response buf [16:43:04]execute_script done [16:43:04]execute_script returns [16:43:04]free content buf [16:43:04]Sock 6.Close socket [16:43:04]Sock 6.Thread stoped [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:26]accept exits with 5 [16:44:26]New connection [16:44:26]New thread 3066920292 created [16:44:26]Thread 3066776932 joined [16:44:26]Waiting for new connection... [16:44:26] Sock 5.Parse request [16:44:26]Sock 5.Check first char [16:44:26]Sock 5.First char is OK [16:44:26]request: POST /json_proto HTTP/1.0 [16:44:26]Method: POST [16:44:26]URL: /json_proto [16:44:26]Method is POST - this is cgi request [16:44:26]url: /json_proto [16:44:26]query_string will be loaded in cgi processing [16:44:26]execute_cgi json_proto POST (null) [16:44:26]execute_cgi path=json_proto method=POST [16:44:26]POST find Content-Length [16:44:26]Host: 172.17.53.195:8080 [16:44:26]Content-Length: 677 [16:44:26]Content-Type: application/json [16:44:26] [16:44:26]POST finish read [16:44:26]Found Content-Length = 677 [16:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:26]execute_script... [16:44: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)220677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:26]POST & json_proto [16:44:26]process_json_proto [16:44:26]json parsed OK: [16:44:26]protocol is kg_v1.0 [16:44:26]action value=close_receipt [16:44:26]process_action close_receipt [16:44:26]cmd_close_receipt [16:44:26]MH_GetDate [16:44:26]Write to MH i2c: F0 00 00 A4 68 FB [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: F0 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: F0 09 00 [16:44:26]MH_I2C_Read... [16:44:26]Read from MH i2c: F0 09 00 A4 68 00 FE 84 16 67 21 48 4A 65 1B [16:44:26]GetLastDocTimeStamp 1729528999 [16:44:26]current date 1729529086 [16:44:26]FM_GetShiftState [16:44:26]SAM_PROTO_GetShiftState [16:44:26]wFMCommunicate request_size=4 [16:44:26]MH_SAM_APDU [16:44:26]CAPDU: 80 13 01 00 [16:44:26]Write to MH i2c: E2 08 00 A5 68 80 13 01 00 00 00 00 00 8A [16:44:26]Write i2c OK [16:44:26]MH_I2C_Read... [16:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:27]Read from MH i2c: E2 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 0E 00 [16:44:27]MH_I2C_Read... [16:44:27]Read from MH i2c: E2 0E 00 A5 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 93 [16:44:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:44:27]wFMCommunicate OK [16:44:27]SAM_PROTO_GetShiftState done [16:44:27]FM_GetShiftState done [16:44:27]opened in 1729470944 [16:44:27]opened+sec_in_day 1729557344 [16:44:27]quantity*price = 50041 [16:44:27]sum+1 = 50042 [16:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 217 21.10.2024 16:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166106 ФПД: 244067302859183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164446&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166106&fm=244067302859183&tin=02508201610067®Number=0000000000091764&sum=50000 [16:44:28]StoreToDocumentArchive [16:44:28]shift 535 fd 166106 [16:44:28]save to /storage/0535/doc_00166106 [16:44:28]save last doc name /storage/0535/doc_00166106 to /storage/kkm_last_doc_name [16:44:28]save OK [16:44:28]Clear old archive folders... [16:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:28]tlvbuf is 0184C3D0 [16:44:28]SAM_PROTO_ClearQueue [16:44:28]wFMCommunicate request_size=4 [16:44:28]MH_SAM_APDU [16:44:28]CAPDU: 80 09 00 00 [16:44:28]Write to MH i2c: E2 08 00 B2 68 80 09 00 00 00 00 00 00 8C [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:28]Read from MH i2c: E2 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 B2 68 00 90 00 8E [16:44:28]RAPDU: 90 00 [16:44:28]wFMCommunicate OK [16:44:28]SAM_PROTO_ClearQueue done [16:44:28]KKMCreateOFDPacket [16:44:28]OFDProtocolAddRootSTLVToBuf [16:44:28]FM_MakeSignedData [16:44:28]FM_MakeSignedData [16:44:28]SAM_PROTO_SignData [16:44:28]wFMCommunicate request_size=4 [16:44:28]MH_SAM_APDU [16:44:28]CAPDU: 80 0D 01 02 [16:44:28]Write to MH i2c: E2 08 00 B3 68 80 0D 01 02 00 00 00 00 94 [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:28]Read from MH i2c: E2 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 B3 68 00 90 00 8F [16:44:28]RAPDU: 90 00 [16:44:28]wFMCommunicate OK [16:44:28]wFMCommunicate request_size=255 [16:44:28]MH_SAM_APDU [16:44:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 88 02 00 35 04 06 00 DD [16:44:28]Write to MH i2c: E2 02 01 B4 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 FE 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 88 02 00 35 04 06 00 DD 00 00 5C [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:28]Read from MH i2c: E2 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 B4 68 00 90 00 90 [16:44:28]RAPDU: 90 00 [16:44:28]wFMCommunicate OK [16:44:28]wFMCommunicate request_size=10 [16:44:28]MH_SAM_APDU [16:44:28]CAPDU: 80 0D 02 02 05 FA 58 E3 61 AF [16:44:28]Write to MH i2c: E2 0D 00 B5 68 80 0D 02 02 05 00 FA 58 E3 61 AF 00 00 E6 [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:28]Read from MH i2c: E2 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 03 00 B5 68 00 90 00 91 [16:44:28]RAPDU: 90 00 [16:44:28]wFMCommunicate OK [16:44:28]wFMCommunicate request_size=4 [16:44:28]MH_SAM_APDU [16:44:28]CAPDU: 80 0D 03 02 [16:44:28]Write to MH i2c: E2 08 00 B6 68 80 0D 03 02 00 00 00 00 99 [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:28]Read from MH i2c: E2 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 0B 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 0B 00 B6 68 00 DF 6C 5E 91 F9 DC 57 08 90 00 08 [16:44:28]RAPDU: DF 6C 5E 91 F9 DC 57 08 90 00 [16:44:28]wFMCommunicate OK [16:44:28]SAM_PROTO_SignData done [16:44:28]FM_MakeSignedData done [16:44:28]CreateOFDProtocolMessage [16:44:28]wFMCommunicate request_size=4 [16:44:28]MH_SAM_APDU [16:44:28]CAPDU: 80 11 00 00 [16:44:28]Write to MH i2c: E2 08 00 B7 68 80 11 00 00 00 00 00 00 99 [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:28]Read from MH i2c: E2 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 17 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: E2 17 00 B7 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [16:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:44:28]wFMCommunicate OK [16:44:28]CreateOFDProtocolMessage done [16:44:28]OFDSenderStorePacket 166106 [16:44:28]StoreOFDPacket docnum=166106 [16:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA D4 07 01 AB 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 88 02 00 35 04 06 00 DD FA 58 E3 61 AF DF 6C 5E 91 F9 DC 57 08 [16:44:28]CheckFolder [16:44:28]dirname=/storage/ofd_packets [16:44:28]CheckFolder done [16:44:28]ProducePacketName [16:44:28]name=ofd_packets/00166106 [16:44:28]NVStorageSaveData ofd_packets/00166106 [16:44:28]File name is /storage/ofd_packets/00166106 [16:44:28]Write 301 bytes [16:44:28]NVStorageSaveData done [16:44:28]OFDSenderStorePacket done [16:44:28]KKMCreateOFDPacket done [16:44:28]NVStorageSaveData kkm_last_timestamp [16:44:28]File name is /storage/kkm_last_timestamp [16:44:28]Write 4 bytes [16:44:28]NVStorageSaveData done [16:44:28]ExternCall_PrintAddStr [16:44:28]wPrintStart [16:44:28]Write to MH i2c: 01 00 00 B8 68 20 [16:44:28]Write i2c OK [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: 01 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: 01 07 00 [16:44:28]MH_I2C_Read... [16:44:28]Read from MH i2c: 01 07 00 B8 68 00 00 00 00 00 FF 0F 35 [16:44:28]RasterBufferAndPrint [16:44:28]line Счет N : (1)220677 [16:44:28]line ИНН: 02508201610067 [16:44:28]line Контрольно-Кассовый Чек [16:44:28]line ПРОДАЖА [16:44:28]line ТРК (МРК, ГНК) : 33 [16:44:28]line Товар: 2710124130 [16:44:28]line Аи-92-К-5 [16:44:28]line 7.480 * 66.90 [16:44:28]line = 500.41 [16:44:28]line НДС 12% НСП 1% [16:44:28]line > о реализуемом товаре [16:44:28]line ОКРУГЛЕНИЕ: -0.41 [16:44:28]line ИТОГО: 500.00 [16:44:28]line Внесено: 500.00 [16:44:28]line СДАЧА: 0.00 [16:44:28]line НСП 1% : 4.43 [16:44:28]line НДС 12% : 53.14 [16:44:28]line Наличными: 500.00 [16:44:28]line Безнал.: 0.00 [16:44:28]line Место: АЗС № 161 "Партнер Нефть" [16:44:28]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:44:28]line СНО: Общий режим [16:44:28]line Чек 217 21.10.2024 16:44 [16:44:28]line Смена: 535 ФФД: 1.0 [16:44:28]line ЗНМ: 0300000104 [16:44:28]line РНМ: 0000000000091764 [16:44:28]line Версия ККМ: 001 [16:44:28]line ФМ: 0000000000871759 [16:44:28]line ФД: 166106 [16:44:28]line ФПД: 244067302859183 [16:44:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164446&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166106&fm=244067302859183&tin=02508201610067®Number=0000000000091764&sum=50000 [16:44:29]OFD Sender: Processing packet 166106 [packets to send 48, broken 47] [16:44:29]ProducePacketName [16:44:29]name=ofd_packets/00166106 [16:44:29]OFD Sender: To server: pG, [16:44:29]CommunicateWithHost lk.salyk.kg:30040 [16:44:29]ConnectInit lk.salyk.kg [16:44:29]written 0, free lines is 4095 [16:44:29]Connected sock=7 [16:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AA D4 07 01 AB 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 FE 84 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 88 02 00 35 04 06 00 DD FA 58 E3 61 AF DF 6C 5E 91 F9 DC 57 08 [16:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2C 4F 47 00 33 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DA 88 02 00 F4 03 04 00 6C 2B 16 67 B6 04 01 00 00 B5 20 A7 ED 2C 76 10 42 [16:44:29]CommunicateWithHost err = 0 [16:44:29]CheckOFDResponse [16:44:29]1017 (14) - 77093643461234 [16:44:29]1041 (16) - 0000000000871759 [16:44:29]1040 (4) - 166106 [16:44:29]1012 (4) - 21.10.2024 10:22 [16:44:29]1206 (1) - 0 [16:44:29]OFD Sender: Remove packet 166106 [16:44:29]ProducePacketName [16:44:29]name=ofd_packets/00166106 [16:44:29]NVStorageDeleteData [16:44:29]Write to MH i2c: 01 00 00 E3 68 4B [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: 01 07 00 E3 68 00 00 00 00 00 C1 0C 1F [16:44:29]RasterBufferAndPrint [16:44:29]line [16:44:29]line [16:44:29]line [16:44:29]line [16:44:29]line [16:44:29]written 0, free lines is 3274 [16:44:29]MH_Cut [16:44:29]Write to MH i2c: D1 01 00 EA 68 01 24 [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: D1 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: D1 01 00 [16:44:29]MH_I2C_Read... [16:44:29]Read from MH i2c: D1 01 00 EA 68 00 23 [16:44:29]Write to MH i2c: 01 00 00 EB 68 53 [16:44:29]Write i2c OK [16:44:29]MH_I2C_Read... [16:44:29]OFD Sender: No OFD packet to send [16:44:30]*** Cut start [16:44:30]*** Partial cut [16:44:30]*** CUTSNS_PIN = 1 [16:44:30]*** CUTSNS_PIN = 0 [16:44:30]*** Brake cut motor [16:44:30]Read from MH i2c: 01 [16:44:30]MH_I2C_Read... [16:44:30]*** Stop cut motor [16:44:30]*** Cut end [16:44:30]Read from MH i2c: 01 07 00 [16:44:30]MH_I2C_Read... [16:44:30]Read from MH i2c: 01 07 00 EB 68 00 00 00 00 00 FF 0F 68 [16:44:30]process_action close_receipt done [16:44:30]requested_data is exist [16:44:30]produce_requested_data [16:44:30]requested_item fm.sn is exist - process it [16:44:30]wFMCommunicate request_size=4 [16:44:30]MH_SAM_APDU [16:44:30]CAPDU: 80 11 00 00 [16:44:30]Write to MH i2c: E2 08 00 EC 68 80 11 00 00 00 00 00 00 CE [16:44:30]Write i2c OK [16:44:30]MH_I2C_Read... [16:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:30]Read from MH i2c: E2 [16:44:30]MH_I2C_Read... [16:44:30]Read from MH i2c: E2 17 00 [16:44:30]MH_I2C_Read... [16:44:30]Read from MH i2c: E2 17 00 EC 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [16:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:44:30]wFMCommunicate OK [16:44:30]requested_item fd.num is exist - process it [16:44:30]SAM_PROTO_GetFieldsCounters [16:44:30]wFMCommunicate request_size=4 [16:44:30]MH_SAM_APDU [16:44:30]CAPDU: 80 13 00 00 [16:44:30]Write to MH i2c: E2 08 00 ED 68 80 13 00 00 00 00 00 00 D1 [16:44:30]Write i2c OK [16:44:30]MH_I2C_Read... [16:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:31]Read from MH i2c: E2 [16:44:31]MH_I2C_Read... [16:44:31]Read from MH i2c: E2 62 00 [16:44:31]MH_I2C_Read... [16:44:31]Read from MH i2c: E2 62 00 ED 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [16:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:31]wFMCommunicate OK [16:44:31]SAM_PROTO_GetFieldsCounters done [16:44:31]requested_item shift.num is exist - process it [16:44:31]requested_item shift.opened is exist - process it [16:44:31]req_shift_opened [16:44:31]FM_GetShiftState [16:44:31]SAM_PROTO_GetShiftState [16:44:31]wFMCommunicate request_size=4 [16:44:31]MH_SAM_APDU [16:44:31]CAPDU: 80 13 01 00 [16:44:31]Write to MH i2c: E2 08 00 EE 68 80 13 01 00 00 00 00 00 D3 [16:44:31]Write i2c OK [16:44:31]MH_I2C_Read... [16:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:31]Read from MH i2c: E2 [16:44:31]MH_I2C_Read... [16:44:31]Read from MH i2c: E2 0E 00 [16:44:31]MH_I2C_Read... [16:44:31]Read from MH i2c: E2 0E 00 EE 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [16:44:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:44:31]wFMCommunicate OK [16:44:31]SAM_PROTO_GetShiftState done [16:44:31]FM_GetShiftState done [16:44:31]req_shift_opened done [16:44:31]requested_item shift.open_date is exist - process it [16:44:31]req_shift_open_date [16:44:31]req_shift_open_date done [16:44:31]produce_requested_data done [16:44:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166106,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:44:31]process_action_free close_receipt [16:44:31]json_value_free [16:44:31]json_value_free done [16:44:31]process_json_proto returns [16:44:31]Send response to host [16:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166106,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:44:31]free response buf [16:44:31]execute_script done [16:44:31]execute_script returns [16:44:31]free content buf [16:44:31]Sock 5.Close socket [16:44:31]Sock 5.Thread stoped [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:03]accept exits with 6 [16:45:03]New connection [16:45:03]New thread 3066776932 created [16:45:03]Thread 3066920292 joined [16:45:03]Waiting for new connection... [16:45:03] Sock 6.Parse request [16:45:03]Sock 6.Check first char [16:45:03]Sock 6.First char is OK [16:45:03]request: POST /json_proto HTTP/1.0 [16:45:03]Method: POST [16:45:03]URL: /json_proto [16:45:03]Method is POST - this is cgi request [16:45:03]url: /json_proto [16:45:03]query_string will be loaded in cgi processing [16:45:03]execute_cgi json_proto POST (null) [16:45:03]execute_cgi path=json_proto method=POST [16:45:03]POST find Content-Length [16:45:03]Host: 172.17.53.195:8080 [16:45:03]Content-Length: 677 [16:45:03]Content-Type: application/json [16:45:03] [16:45:03]POST finish read [16:45:03]Found Content-Length = 677 [16:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:03]execute_script... [16: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)220678", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:45:03]POST & json_proto [16:45:03]process_json_proto [16:45:03]json parsed OK: [16:45:03]protocol is kg_v1.0 [16:45:03]action value=close_receipt [16:45:03]process_action close_receipt [16:45:03]cmd_close_receipt [16:45:03]MH_GetDate [16:45:03]Write to MH i2c: F0 00 00 EF 68 46 [16:45:03]Write i2c OK [16:45:03]MH_I2C_Read... [16:45:03]Read from MH i2c: F0 [16:45:03]MH_I2C_Read... [16:45:03]Read from MH i2c: F0 09 00 [16:45:03]MH_I2C_Read... [16:45:03]Read from MH i2c: F0 09 00 EF 68 00 22 85 16 67 21 48 4A 65 8B [16:45:03]GetLastDocTimeStamp 1729529086 [16:45:03]current date 1729529122 [16:45:03]FM_GetShiftState [16:45:03]SAM_PROTO_GetShiftState [16:45:03]wFMCommunicate request_size=4 [16:45:03]MH_SAM_APDU [16:45:03]CAPDU: 80 13 01 00 [16:45:03]Write to MH i2c: E2 08 00 F0 68 80 13 01 00 00 00 00 00 D5 [16:45:03]Write i2c OK [16:45:03]MH_I2C_Read... [16:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:03]Read from MH i2c: E2 [16:45:03]MH_I2C_Read... [16:45:03]Read from MH i2c: E2 0E 00 [16:45:03]MH_I2C_Read... [16:45:03]Read from MH i2c: E2 0E 00 F0 68 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DE [16:45:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:45:03]wFMCommunicate OK [16:45:03]SAM_PROTO_GetShiftState done [16:45:03]FM_GetShiftState done [16:45:03]opened in 1729470944 [16:45:03]opened+sec_in_day 1729557344 [16:45:03]quantity*price = 50041 [16:45:03]sum+1 = 50042 [16:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 218 21.10.2024 16:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166107 ФПД: 34415475589520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164522&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166107&fm=34415475589520&tin=02508201610067®Number=0000000000091764&sum=50000 [16:45:04]StoreToDocumentArchive [16:45:04]shift 535 fd 166107 [16:45:04]save to /storage/0535/doc_00166107 [16:45:04]save last doc name /storage/0535/doc_00166107 to /storage/kkm_last_doc_name [16:45:04]save OK [16:45:04]Clear old archive folders... [16:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:45:04]tlvbuf is 0186B500 [16:45:04]SAM_PROTO_ClearQueue [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 09 00 00 [16:45:04]Write to MH i2c: E2 08 00 FD 68 80 09 00 00 00 00 00 00 D7 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 FD 68 00 90 00 D9 [16:45:04]RAPDU: 90 00 [16:45:04]wFMCommunicate OK [16:45:04]SAM_PROTO_ClearQueue done [16:45:04]KKMCreateOFDPacket [16:45:04]OFDProtocolAddRootSTLVToBuf [16:45:04]FM_MakeSignedData [16:45:04]FM_MakeSignedData [16:45:04]SAM_PROTO_SignData [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 0D 01 02 [16:45:04]Write to MH i2c: E2 08 00 FE 68 80 0D 01 02 00 00 00 00 DF [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 FE 68 00 90 00 DA [16:45:04]RAPDU: 90 00 [16:45:04]wFMCommunicate OK [16:45:04]wFMCommunicate request_size=255 [16:45:04]MH_SAM_APDU [16: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 22 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 88 02 00 35 04 06 00 1F [16:45:04]Write to MH i2c: E2 02 01 FF 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 22 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 88 02 00 35 04 06 00 1F 00 00 10 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 FF 68 00 90 00 DB [16:45:04]RAPDU: 90 00 [16:45:04]wFMCommunicate OK [16:45:04]wFMCommunicate request_size=10 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 0D 02 02 05 4C FA 32 81 90 [16:45:04]Write to MH i2c: E2 0D 00 00 69 80 0D 02 02 05 00 4C FA 32 81 90 00 00 76 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 03 00 00 69 00 90 00 DD [16:45:04]RAPDU: 90 00 [16:45:04]wFMCommunicate OK [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 0D 03 02 [16:45:04]Write to MH i2c: E2 08 00 01 69 80 0D 03 02 00 00 00 00 E5 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0B 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 0B 00 01 69 00 7A 83 0E 37 62 D0 AC E6 90 00 EC [16:45:04]RAPDU: 7A 83 0E 37 62 D0 AC E6 90 00 [16:45:04]wFMCommunicate OK [16:45:04]SAM_PROTO_SignData done [16:45:04]FM_MakeSignedData done [16:45:04]CreateOFDProtocolMessage [16:45:04]wFMCommunicate request_size=4 [16:45:04]MH_SAM_APDU [16:45:04]CAPDU: 80 11 00 00 [16:45:04]Write to MH i2c: E2 08 00 02 69 80 11 00 00 00 00 00 00 E5 [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:04]Read from MH i2c: E2 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 17 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: E2 17 00 02 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [16:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:45:04]wFMCommunicate OK [16:45:04]CreateOFDProtocolMessage done [16:45:04]OFDSenderStorePacket 166107 [16:45:04]StoreOFDPacket docnum=166107 [16:45:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 30 07 01 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 22 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 88 02 00 35 04 06 00 1F 4C FA 32 81 90 7A 83 0E 37 62 D0 AC E6 [16:45:04]CheckFolder [16:45:04]dirname=/storage/ofd_packets [16:45:04]CheckFolder done [16:45:04]ProducePacketName [16:45:04]name=ofd_packets/00166107 [16:45:04]NVStorageSaveData ofd_packets/00166107 [16:45:04]File name is /storage/ofd_packets/00166107 [16:45:04]Write 301 bytes [16:45:04]NVStorageSaveData done [16:45:04]OFDSenderStorePacket done [16:45:04]KKMCreateOFDPacket done [16:45:04]NVStorageSaveData kkm_last_timestamp [16:45:04]File name is /storage/kkm_last_timestamp [16:45:04]Write 4 bytes [16:45:04]NVStorageSaveData done [16:45:04]ExternCall_PrintAddStr [16:45:04]wPrintStart [16:45:04]Write to MH i2c: 01 00 00 03 69 6C [16:45:04]Write i2c OK [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: 01 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: 01 07 00 [16:45:04]MH_I2C_Read... [16:45:04]Read from MH i2c: 01 07 00 03 69 00 00 00 00 00 FF 0F 81 [16:45:04]RasterBufferAndPrint [16:45:04]line Счет N : (1)220678 [16:45:04]line ИНН: 02508201610067 [16:45:04]line Контрольно-Кассовый Чек [16:45:04]line ПРОДАЖА [16:45:04]line ТРК (МРК, ГНК) : 23 [16:45:04]line Товар: 2710124130 [16:45:04]line Аи-92-К-5 [16:45:04]line 7.480 * 66.90 [16:45:04]line = 500.41 [16:45:04]line НДС 12% НСП 1% [16:45:04]line > о реализуемом товаре [16:45:04]line ОКРУГЛЕНИЕ: -0.41 [16:45:04]line ИТОГО: 500.00 [16:45:04]line Внесено: 500.00 [16:45:04]line СДАЧА: 0.00 [16:45:04]line НСП 1% : 4.43 [16:45:04]line НДС 12% : 53.14 [16:45:04]line Наличными: 500.00 [16:45:04]line Безнал.: 0.00 [16:45:04]line Место: АЗС № 161 "Партнер Нефть" [16:45:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:45:04]line СНО: Общий режим [16:45:04]line Чек 218 21.10.2024 16:45 [16:45:04]line Смена: 535 ФФД: 1.0 [16:45:04]line ЗНМ: 0300000104 [16:45:04]line РНМ: 0000000000091764 [16:45:04]line Версия ККМ: 001 [16:45:04]line ФМ: 0000000000871759 [16:45:04]line ФД: 166107 [16:45:04]line ФПД: 34415475589520 [16:45:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164522&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166107&fm=34415475589520&tin=02508201610067®Number=0000000000091764&sum=50000 [16:45:05]OFD Sender: Processing packet 166107 [packets to send 48, broken 47] [16:45:05]ProducePacketName [16:45:05]name=ofd_packets/00166107 [16:45:05]OFD Sender: To server: pG, [16:45:05]CommunicateWithHost lk.salyk.kg:30040 [16:45:05]ConnectInit lk.salyk.kg [16:45:05]written 0, free lines is 4095 [16:45:05]Connected sock=7 [16: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 35 39 0F 01 00 00 A5 30 07 01 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 22 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 88 02 00 35 04 06 00 1F 4C FA 32 81 90 7A 83 0E 37 62 D0 AC E6 [16: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 35 39 4F 00 00 00 C7 D0 47 00 F6 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DB 88 02 00 F4 03 04 00 90 2B 16 67 B6 04 01 00 00 BF B7 E5 3F 1B 6E 10 49 [16:45:05]CommunicateWithHost err = 0 [16:45:05]CheckOFDResponse [16:45:05]1017 (14) - 77093643461234 [16:45:05]1041 (16) - 0000000000871759 [16:45:05]1040 (4) - 166107 [16:45:05]1012 (4) - 21.10.2024 10:23 [16:45:05]1206 (1) - 0 [16:45:05]OFD Sender: Remove packet 166107 [16:45:05]ProducePacketName [16:45:05]name=ofd_packets/00166107 [16:45:05]NVStorageDeleteData [16:45:05]Write to MH i2c: 01 00 00 2E 69 97 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: 01 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: 01 07 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: 01 07 00 2E 69 00 00 00 00 00 BE 0C 68 [16:45:05]RasterBufferAndPrint [16:45:05]line [16:45:05]line [16:45:05]line [16:45:05]line [16:45:05]line [16:45:05]written 0, free lines is 3271 [16:45:05]MH_Cut [16:45:05]Write to MH i2c: D1 01 00 35 69 01 70 [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: D1 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: D1 01 00 [16:45:05]MH_I2C_Read... [16:45:05]Read from MH i2c: D1 01 00 35 69 00 6F [16:45:05]Write to MH i2c: 01 00 00 36 69 9F [16:45:05]Write i2c OK [16:45:05]MH_I2C_Read... [16:45:05]OFD Sender: No OFD packet to send [16:45:06]*** Cut start [16:45:06]*** Partial cut [16:45:06]*** CUTSNS_PIN = 1 [16:45:06]*** CUTSNS_PIN = 0 [16:45:06]*** Brake cut motor [16:45:07]Read from MH i2c: 01 [16:45:07]MH_I2C_Read... [16:45:07]*** Stop cut motor [16:45:07]*** Cut end [16:45:07]Read from MH i2c: 01 07 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: 01 07 00 36 69 00 00 00 00 00 FF 0F B4 [16:45:07]process_action close_receipt done [16:45:07]requested_data is exist [16:45:07]produce_requested_data [16:45:07]requested_item fm.sn is exist - process it [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 11 00 00 [16:45:07]Write to MH i2c: E2 08 00 37 69 80 11 00 00 00 00 00 00 1A [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 17 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 17 00 37 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 72 [16:45:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:45:07]wFMCommunicate OK [16:45:07]requested_item fd.num is exist - process it [16:45:07]SAM_PROTO_GetFieldsCounters [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 13 00 00 [16:45:07]Write to MH i2c: E2 08 00 38 69 80 13 00 00 00 00 00 00 1D [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 62 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 62 00 38 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [16: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:07]wFMCommunicate OK [16:45:07]SAM_PROTO_GetFieldsCounters done [16:45:07]requested_item shift.num is exist - process it [16:45:07]requested_item shift.opened is exist - process it [16:45:07]req_shift_opened [16:45:07]FM_GetShiftState [16:45:07]SAM_PROTO_GetShiftState [16:45:07]wFMCommunicate request_size=4 [16:45:07]MH_SAM_APDU [16:45:07]CAPDU: 80 13 01 00 [16:45:07]Write to MH i2c: E2 08 00 39 69 80 13 01 00 00 00 00 00 1F [16:45:07]Write i2c OK [16:45:07]MH_I2C_Read... [16:45:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:07]Read from MH i2c: E2 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 [16:45:07]MH_I2C_Read... [16:45:07]Read from MH i2c: E2 0E 00 39 69 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 28 [16:45:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:45:07]wFMCommunicate OK [16:45:07]SAM_PROTO_GetShiftState done [16:45:07]FM_GetShiftState done [16:45:07]req_shift_opened done [16:45:07]requested_item shift.open_date is exist - process it [16:45:07]req_shift_open_date [16:45:07]req_shift_open_date done [16:45:07]produce_requested_data done [16:45:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166107,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:45:07]process_action_free close_receipt [16:45:07]json_value_free [16:45:07]json_value_free done [16:45:07]process_json_proto returns [16:45:07]Send response to host [16:45:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166107,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:45:07]free response buf [16:45:07]execute_script done [16:45:07]execute_script returns [16:45:07]free content buf [16:45:07]Sock 6.Close socket [16:45:07]Sock 6.Thread stoped [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:21]accept exits with 5 [16:45:21]New connection [16:45:21]New thread 3066920292 created [16:45:21]Thread 3066776932 joined [16:45:21]Waiting for new connection... [16:45:21] Sock 5.Parse request [16:45:21]Sock 5.Check first char [16:45:21]Sock 5.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.53.195: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)220679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.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)220679", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.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 3A 69 92 [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 3A 69 00 34 85 16 67 21 48 4A 65 E9 [16:45:21]GetLastDocTimeStamp 1729529122 [16:45:21]current date 1729529140 [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 3B 69 80 13 01 00 00 00 00 00 21 [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 3B 69 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2A [16:45:21]RAPDU: 09 00 01 E0 A1 15 67 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 1729470944 [16:45:21]opened+sec_in_day 1729557344 [16:45:21]quantity*price = 49974 [16:45:21]sum+1 = 49975 [16:45:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 219 21.10.2024 16:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166108 ФПД: 129375680474661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164540&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166108&fm=129375680474661&tin=02508201610067®Number=0000000000091764&sum=49900 [16:45:22]StoreToDocumentArchive [16:45:22]shift 535 fd 166108 [16:45:22]save to /storage/0535/doc_00166108 [16:45:22]save last doc name /storage/0535/doc_00166108 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 01475B50 [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 48 69 80 09 00 00 00 00 00 00 23 [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 48 69 00 90 00 25 [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 49 69 80 0D 01 02 00 00 00 00 2B [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 49 69 00 90 00 26 [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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 34 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 88 02 00 35 04 06 00 75 [16:45:22]Write to MH i2c: E2 02 01 4A 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 34 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 88 02 00 35 04 06 00 75 00 00 A7 [16:45:22]Write i2c OK [16:45:22]MH_I2C_Read... [16:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:23]Read from MH i2c: E2 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 03 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 03 00 4A 69 00 90 00 27 [16:45:23]RAPDU: 90 00 [16:45:23]wFMCommunicate OK [16:45:23]wFMCommunicate request_size=10 [16:45:23]MH_SAM_APDU [16:45:23]CAPDU: 80 0D 02 02 05 AA 9F 7A 2E 25 [16:45:23]Write to MH i2c: E2 0D 00 4B 69 80 0D 02 02 05 00 AA 9F 7A 2E 25 00 00 4E [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:45:23]Read from MH i2c: E2 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 03 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 03 00 4B 69 00 90 00 28 [16:45:23]RAPDU: 90 00 [16:45:23]wFMCommunicate OK [16:45:23]wFMCommunicate request_size=4 [16:45:23]MH_SAM_APDU [16:45:23]CAPDU: 80 0D 03 02 [16:45:23]Write to MH i2c: E2 08 00 4C 69 80 0D 03 02 00 00 00 00 30 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:45:23]Read from MH i2c: E2 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 0B 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 0B 00 4C 69 00 19 C1 3A 5F FD EB 5F 5D 90 00 48 [16:45:23]RAPDU: 19 C1 3A 5F FD EB 5F 5D 90 00 [16:45:23]wFMCommunicate OK [16:45:23]SAM_PROTO_SignData done [16:45:23]FM_MakeSignedData done [16:45:23]CreateOFDProtocolMessage [16:45:23]wFMCommunicate request_size=4 [16:45:23]MH_SAM_APDU [16:45:23]CAPDU: 80 11 00 00 [16:45:23]Write to MH i2c: E2 08 00 4D 69 80 11 00 00 00 00 00 00 30 [16:45:23]Write i2c OK [16:45:23]MH_I2C_Read... [16:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:23]Read from MH i2c: E2 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 17 00 [16:45:23]MH_I2C_Read... [16:45:23]Read from MH i2c: E2 17 00 4D 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [16:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:45:23]wFMCommunicate OK [16:45:23]CreateOFDProtocolMessage done [16:45:23]OFDSenderStorePacket 166108 [16:45:23]StoreOFDPacket docnum=166108 [16:45:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA 3D 07 01 DF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 34 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 88 02 00 35 04 06 00 75 AA 9F 7A 2E 25 19 C1 3A 5F FD EB 5F 5D [16:45:23]CheckFolder [16:45:23]dirname=/storage/ofd_packets [16:45:23]CheckFolder done [16:45:23]ProducePacketName [16:45:23]name=ofd_packets/00166108 [16:45:23]NVStorageSaveData ofd_packets/00166108 [16:45:23]File name is /storage/ofd_packets/00166108 [16:45:23]Write 301 bytes [16:45:23]NVStorageSaveData done [16:45:23]OFDSenderStorePacket done [16:45:23]KKMCreateOFDPacket done [16:45:23]NVStorageSaveData kkm_last_timestamp [16:45:23]File name is /storage/kkm_last_timestamp [16:45:23]Write 4 bytes [16:45:23]NVStorageSaveData done [16:45:23]ExternCall_PrintAddStr [16:45:23]wPrintStart [16:45:23]Write to MH i2c: 01 00 00 4E 69 B7 [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 4E 69 00 00 00 00 00 FF 0F CC [16:45:23]RasterBufferAndPrint [16:45:23]line Счет N : (1)220679 [16:45:23]line ИНН: 02508201610067 [16:45:23]line Контрольно-Кассовый Чек [16:45:23]line ПРОДАЖА [16:45:23]line ТРК (МРК, ГНК) : 13 [16:45:23]line Товар: 2710124130 [16:45:23]line Аи-92-К-5 [16:45:23]line 7.470 * 66.90 [16:45:23]line = 499.74 [16:45:23]line НДС 12% НСП 1% [16:45:23]line > о реализуемом товаре [16:45:23]line ОКРУГЛЕНИЕ: -0.74 [16:45:23]line ИТОГО: 499.00 [16:45:23]line Внесено: 500.00 [16:45:23]line СДАЧА: 1.00 [16:45:23]line НСП 1% : 4.42 [16:45:23]line НДС 12% : 53.07 [16:45:23]line Наличными: 499.00 [16:45:23]line Безнал.: 0.00 [16:45:23]line Место: АЗС № 161 "Партнер Нефть" [16:45:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:45:23]line СНО: Общий режим [16:45:23]line Чек 219 21.10.2024 16:45 [16:45:23]line Смена: 535 ФФД: 1.0 [16:45:23]line ЗНМ: 0300000104 [16:45:23]line РНМ: 0000000000091764 [16:45:23]line Версия ККМ: 001 [16:45:23]line ФМ: 0000000000871759 [16:45:23]line ФД: 166108 [16:45:23]line ФПД: 129375680474661 [16:45:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164540&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166108&fm=129375680474661&tin=02508201610067®Number=0000000000091764&sum=49900 [16:45:23]OFD Sender: Processing packet 166108 [packets to send 48, broken 47] [16:45:23]ProducePacketName [16:45:23]name=ofd_packets/00166108 [16:45:23]OFD Sender: To server: pG, [16:45:23]CommunicateWithHost lk.salyk.kg:30040 [16:45:23]ConnectInit lk.salyk.kg [16:45:23]written 0, free lines is 4095 [16:45:23]Connected sock=7 [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 35 39 0F 01 00 00 DA 3D 07 01 DF 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 34 85 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 88 02 00 35 04 06 00 75 AA 9F 7A 2E 25 19 C1 3A 5F FD EB 5F 5D [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 35 39 4F 00 00 00 FB 62 47 00 D2 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DC 88 02 00 F4 03 04 00 A2 2B 16 67 B6 04 01 00 00 AA C2 FD 05 16 8E E6 90 [16:45:23]CommunicateWithHost err = 0 [16:45:23]CheckOFDResponse [16:45:23]1017 (14) - 77093643461234 [16:45:23]1041 (16) - 0000000000871759 [16:45:23]1040 (4) - 166108 [16:45:23]1012 (4) - 21.10.2024 10:23 [16:45:23]1206 (1) - 0 [16:45:23]OFD Sender: Remove packet 166108 [16:45:23]ProducePacketName [16:45:23]name=ofd_packets/00166108 [16:45:23]NVStorageDeleteData [16:45:24]Write to MH i2c: 01 00 00 79 69 E2 [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: 01 [16:45:24]MH_I2C_Read... [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 79 69 00 00 00 00 00 D4 0C C9 [16:45:24]RasterBufferAndPrint [16:45:24]line [16:45:24]line [16:45:24]line [16:45:24]line [16:45:24]line [16:45:24]written 0, free lines is 3290 [16:45:24]MH_Cut [16:45:24]Write to MH i2c: D1 01 00 80 69 01 BB [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: D1 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: D1 01 00 [16:45:24]MH_I2C_Read... [16:45:24]Read from MH i2c: D1 01 00 80 69 00 BA [16:45:24]Write to MH i2c: 01 00 00 81 69 EA [16:45:24]Write i2c OK [16:45:24]MH_I2C_Read... [16:45:24]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:25]*** Brake cut motor [16:45:25]Read from MH i2c: 01 [16:45:25]MH_I2C_Read... [16:45:25]*** Stop cut motor [16:45:25]*** Cut end [16:45:25]Read from MH i2c: 01 07 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: 01 07 00 81 69 00 00 00 00 00 FF 0F FF [16:45:25]process_action close_receipt done [16:45:25]requested_data is exist [16:45:25]produce_requested_data [16:45:25]requested_item fm.sn is exist - process it [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 11 00 00 [16:45:25]Write to MH i2c: E2 08 00 82 69 80 11 00 00 00 00 00 00 65 [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 17 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 17 00 82 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BD [16:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:45:25]wFMCommunicate OK [16:45:25]requested_item fd.num is exist - process it [16:45:25]SAM_PROTO_GetFieldsCounters [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 13 00 00 [16:45:25]Write to MH i2c: E2 08 00 83 69 80 13 00 00 00 00 00 00 68 [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 62 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 62 00 83 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [16:45:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:45:25]wFMCommunicate OK [16:45:25]SAM_PROTO_GetFieldsCounters done [16:45:25]requested_item shift.num is exist - process it [16:45:25]requested_item shift.opened is exist - process it [16:45:25]req_shift_opened [16:45:25]FM_GetShiftState [16:45:25]SAM_PROTO_GetShiftState [16:45:25]wFMCommunicate request_size=4 [16:45:25]MH_SAM_APDU [16:45:25]CAPDU: 80 13 01 00 [16:45:25]Write to MH i2c: E2 08 00 84 69 80 13 01 00 00 00 00 00 6A [16:45:25]Write i2c OK [16:45:25]MH_I2C_Read... [16:45:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:25]Read from MH i2c: E2 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 0E 00 [16:45:25]MH_I2C_Read... [16:45:25]Read from MH i2c: E2 0E 00 84 69 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 73 [16:45:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:45:25]wFMCommunicate OK [16:45:25]SAM_PROTO_GetShiftState done [16:45:25]FM_GetShiftState done [16:45:25]req_shift_opened done [16:45:25]requested_item shift.open_date is exist - process it [16:45:25]req_shift_open_date [16:45:25]req_shift_open_date done [16:45:25]produce_requested_data done [16:45:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166108,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:45:25]process_action_free close_receipt [16:45:25]json_value_free [16:45:25]json_value_free done [16:45:25]process_json_proto returns [16:45:25]Send response to host [16:45:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166108,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:45:25]free response buf [16:45:25]execute_script done [16:45:25]execute_script returns [16:45:25]free content buf [16:45:25]Sock 5.Close socket [16:45:25]Sock 5.Thread stoped [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:34]OFD Sender: No OFD packet to send [16:46:39]OFD Sender: No OFD packet to send [16:46:44]OFD Sender: No OFD packet to send [16:46:49]OFD Sender: No OFD packet to send [16:46:54]OFD Sender: No OFD packet to send [16:46:59]OFD Sender: No OFD packet to send [16:47:04]OFD Sender: No OFD packet to send [16:47:09]OFD Sender: No OFD packet to send [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:19]accept exits with 6 [16:49:19]New connection [16:49:19]New thread 3066776932 created [16:49:19]Thread 3066920292 joined [16:49:19]Waiting for new connection... [16:49:19] Sock 6.Parse request [16:49:19]Sock 6.Check first char [16:49:19]Sock 6.First char is OK [16:49:19]request: POST /json_proto HTTP/1.0 [16:49:19]Method: POST [16:49:19]URL: /json_proto [16:49:19]Method is POST - this is cgi request [16:49:19]url: /json_proto [16:49:19]query_string will be loaded in cgi processing [16:49:19]execute_cgi json_proto POST (null) [16:49:19]execute_cgi path=json_proto method=POST [16:49:19]POST find Content-Length [16:49:19]Host: 172.17.53.195:8080 [16:49:19]Content-Length: 682 [16:49:19]Content-Type: application/json [16:49:19] [16:49:19]POST finish read [16:49:19]Found Content-Length = 682 [16:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:19]execute_script... [16:49:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:49:19]POST & json_proto [16:49:19]process_json_proto [16:49:19]json parsed OK: [16:49:19]protocol is kg_v1.0 [16:49:19]action value=close_receipt [16:49:19]process_action close_receipt [16:49:19]cmd_close_receipt [16:49:19]MH_GetDate [16:49:19]Write to MH i2c: F0 00 00 85 69 DD [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: F0 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: F0 09 00 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: F0 09 00 85 69 00 23 86 16 67 21 48 4A 65 24 [16:49:19]GetLastDocTimeStamp 1729529140 [16:49:19]current date 1729529379 [16:49:19]FM_GetShiftState [16:49:19]SAM_PROTO_GetShiftState [16:49:19]wFMCommunicate request_size=4 [16:49:19]MH_SAM_APDU [16:49:19]CAPDU: 80 13 01 00 [16:49:19]Write to MH i2c: E2 08 00 86 69 80 13 01 00 00 00 00 00 6C [16:49:19]Write i2c OK [16:49:19]MH_I2C_Read... [16:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:19]Read from MH i2c: E2 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: E2 0E 00 [16:49:19]MH_I2C_Read... [16:49:19]Read from MH i2c: E2 0E 00 86 69 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 75 [16:49:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:49:19]wFMCommunicate OK [16:49:19]SAM_PROTO_GetShiftState done [16:49:19]FM_GetShiftState done [16:49:19]opened in 1729470944 [16:49:19]opened+sec_in_day 1729557344 [16:49:19]quantity*price = 100015 [16:49:19]sum+1 = 100017 [16:49:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 220 21.10.2024 16:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166109 ФПД: 106045410397851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164939&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166109&fm=106045410397851&tin=02508201610067®Number=0000000000091764&sum=100000 [16:49:21]StoreToDocumentArchive [16:49:21]shift 535 fd 166109 [16:49:21]save to /storage/0535/doc_00166109 [16:49:21]save last doc name /storage/0535/doc_00166109 to /storage/kkm_last_doc_name [16:49:21]save OK [16:49:21]Clear old archive folders... [16:49:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:49:21]tlvbuf is 01799FC0 [16:49:21]SAM_PROTO_ClearQueue [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 09 00 00 [16:49:21]Write to MH i2c: E2 08 00 93 69 80 09 00 00 00 00 00 00 6E [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 93 69 00 90 00 70 [16:49:21]RAPDU: 90 00 [16:49:21]wFMCommunicate OK [16:49:21]SAM_PROTO_ClearQueue done [16:49:21]KKMCreateOFDPacket [16:49:21]OFDProtocolAddRootSTLVToBuf [16:49:21]FM_MakeSignedData [16:49:21]FM_MakeSignedData [16:49:21]SAM_PROTO_SignData [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 0D 01 02 [16:49:21]Write to MH i2c: E2 08 00 94 69 80 0D 01 02 00 00 00 00 76 [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 94 69 00 90 00 71 [16:49:21]RAPDU: 90 00 [16:49:21]wFMCommunicate OK [16:49:21]wFMCommunicate request_size=255 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 88 02 00 35 04 06 00 60 [16:49:21]Write to MH i2c: E2 02 01 95 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 88 02 00 35 04 06 00 60 00 00 E8 [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 95 69 00 90 00 72 [16:49:21]RAPDU: 90 00 [16:49:21]wFMCommunicate OK [16:49:21]wFMCommunicate request_size=10 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 0D 02 02 05 72 9F 04 4E 9B [16:49:21]Write to MH i2c: E2 0D 00 96 69 80 0D 02 02 05 00 72 9F 04 4E 9B 00 00 81 [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 03 00 96 69 00 90 00 73 [16:49:21]RAPDU: 90 00 [16:49:21]wFMCommunicate OK [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 0D 03 02 [16:49:21]Write to MH i2c: E2 08 00 97 69 80 0D 03 02 00 00 00 00 7B [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 0B 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 0B 00 97 69 00 59 CE 2C 56 3B 67 4C 2B 90 00 3E [16:49:21]RAPDU: 59 CE 2C 56 3B 67 4C 2B 90 00 [16:49:21]wFMCommunicate OK [16:49:21]SAM_PROTO_SignData done [16:49:21]FM_MakeSignedData done [16:49:21]CreateOFDProtocolMessage [16:49:21]wFMCommunicate request_size=4 [16:49:21]MH_SAM_APDU [16:49:21]CAPDU: 80 11 00 00 [16:49:21]Write to MH i2c: E2 08 00 98 69 80 11 00 00 00 00 00 00 7B [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:21]Read from MH i2c: E2 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 17 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: E2 17 00 98 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D3 [16:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:49:21]wFMCommunicate OK [16:49:21]CreateOFDProtocolMessage done [16:49:21]OFDSenderStorePacket 166109 [16:49:21]StoreOFDPacket docnum=166109 [16:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 4F 07 01 FA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 88 02 00 35 04 06 00 60 72 9F 04 4E 9B 59 CE 2C 56 3B 67 4C 2B [16:49:21]CheckFolder [16:49:21]dirname=/storage/ofd_packets [16:49:21]CheckFolder done [16:49:21]ProducePacketName [16:49:21]name=ofd_packets/00166109 [16:49:21]NVStorageSaveData ofd_packets/00166109 [16:49:21]File name is /storage/ofd_packets/00166109 [16:49:21]Write 301 bytes [16:49:21]NVStorageSaveData done [16:49:21]OFDSenderStorePacket done [16:49:21]KKMCreateOFDPacket done [16:49:21]NVStorageSaveData kkm_last_timestamp [16:49:21]File name is /storage/kkm_last_timestamp [16:49:21]Write 4 bytes [16:49:21]NVStorageSaveData done [16:49:21]ExternCall_PrintAddStr [16:49:21]wPrintStart [16:49:21]Write to MH i2c: 01 00 00 99 69 02 [16:49:21]Write i2c OK [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: 01 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: 01 07 00 [16:49:21]MH_I2C_Read... [16:49:21]Read from MH i2c: 01 07 00 99 69 00 00 00 00 00 FF 0F 17 [16:49:21]RasterBufferAndPrint [16:49:21]line Счет N : (1)220680 [16:49:21]line ИНН: 02508201610067 [16:49:21]line Контрольно-Кассовый Чек [16:49:21]line ПРОДАЖА [16:49:21]line ТРК (МРК, ГНК) : 23 [16:49:21]line Товар: 2710124130 [16:49:21]line Аи-92-К-5 [16:49:21]line 14.950 * 66.90 [16:49:21]line = 1000.16 [16:49:21]line НДС 12% НСП 1% [16:49:21]line > о реализуемом товаре [16:49:21]line ОКРУГЛЕНИЕ: -0.16 [16:49:21]line ИТОГО: 1000.00 [16:49:21]line Внесено: 1000.00 [16:49:21]line СДАЧА: 0.00 [16:49:21]line НСП 1% : 8.85 [16:49:21]line НДС 12% : 106.21 [16:49:21]line Наличными: 1000.00 [16:49:21]line Безнал.: 0.00 [16:49:21]line Место: АЗС № 161 "Партнер Нефть" [16:49:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:49:21]line СНО: Общий режим [16:49:21]line Чек 220 21.10.2024 16:49 [16:49:21]line Смена: 535 ФФД: 1.0 [16:49:21]line ЗНМ: 0300000104 [16:49:21]line РНМ: 0000000000091764 [16:49:21]line Версия ККМ: 001 [16:49:21]line ФМ: 0000000000871759 [16:49:21]line ФД: 166109 [16:49:21]line ФПД: 106045410397851 [16:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T164939&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166109&fm=106045410397851&tin=02508201610067®Number=0000000000091764&sum=100000 [16:49:21]OFD Sender: Processing packet 166109 [packets to send 48, broken 47] [16:49:21]ProducePacketName [16:49:21]name=ofd_packets/00166109 [16:49:21]OFD Sender: To server: pG, [16:49:21]CommunicateWithHost lk.salyk.kg:30040 [16:49:21]ConnectInit lk.salyk.kg [16:49:21]written 0, free lines is 4095 [16:49:22]Connected sock=7 [16:49:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1C 4F 07 01 FA 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 23 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 88 02 00 35 04 06 00 60 72 9F 04 4E 9B 59 CE 2C 56 3B 67 4C 2B [16:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5F 0F 47 00 6E D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DD 88 02 00 F4 03 04 00 91 2C 16 67 B6 04 01 00 00 16 00 2D F5 48 23 20 C7 [16:49:22]CommunicateWithHost err = 0 [16:49:22]CheckOFDResponse [16:49:22]1017 (14) - 77093643461234 [16:49:22]1041 (16) - 0000000000871759 [16:49:22]1040 (4) - 166109 [16:49:22]1012 (4) - 21.10.2024 10:27 [16:49:22]1206 (1) - 0 [16:49:22]OFD Sender: Remove packet 166109 [16:49:22]ProducePacketName [16:49:22]name=ofd_packets/00166109 [16:49:22]NVStorageDeleteData [16:49:22]Write to MH i2c: 01 00 00 C4 69 2D [16:49:22]Write i2c OK [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: 01 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: 01 07 00 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: 01 07 00 C4 69 00 00 00 00 00 CE 0C 0E [16:49:22]RasterBufferAndPrint [16:49:22]line [16:49:22]line [16:49:22]line [16:49:22]line [16:49:22]line [16:49:22]written 0, free lines is 3284 [16:49:22]MH_Cut [16:49:22]Write to MH i2c: D1 01 00 CB 69 01 06 [16:49:22]Write i2c OK [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: D1 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: D1 01 00 [16:49:22]MH_I2C_Read... [16:49:22]Read from MH i2c: D1 01 00 CB 69 00 05 [16:49:22]Write to MH i2c: 01 00 00 CC 69 35 [16:49:22]Write i2c OK [16:49:22]MH_I2C_Read... [16:49:22]OFD Sender: No OFD packet to send [16:49:23]*** Cut start [16:49:23]*** Partial cut [16:49:23]*** CUTSNS_PIN = 1 [16:49:23]*** CUTSNS_PIN = 0 [16:49:23]*** Brake cut motor [16:49:23]Read from MH i2c: 01 [16:49:23]MH_I2C_Read... [16:49:23]*** Stop cut motor [16:49:23]*** Cut end [16:49:23]Read from MH i2c: 01 07 00 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: 01 07 00 CC 69 00 00 00 00 00 FF 0F 4A [16:49:23]process_action close_receipt done [16:49:23]requested_data is exist [16:49:23]produce_requested_data [16:49:23]requested_item fm.sn is exist - process it [16:49:23]wFMCommunicate request_size=4 [16:49:23]MH_SAM_APDU [16:49:23]CAPDU: 80 11 00 00 [16:49:23]Write to MH i2c: E2 08 00 CD 69 80 11 00 00 00 00 00 00 B0 [16:49:23]Write i2c OK [16:49:23]MH_I2C_Read... [16:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:49:23]Read from MH i2c: E2 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: E2 17 00 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: E2 17 00 CD 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 08 [16:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:49:23]wFMCommunicate OK [16:49:23]requested_item fd.num is exist - process it [16:49:23]SAM_PROTO_GetFieldsCounters [16:49:23]wFMCommunicate request_size=4 [16:49:23]MH_SAM_APDU [16:49:23]CAPDU: 80 13 00 00 [16:49:23]Write to MH i2c: E2 08 00 CE 69 80 13 00 00 00 00 00 00 B3 [16:49:23]Write i2c OK [16:49:23]MH_I2C_Read... [16:49:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:49:23]Read from MH i2c: E2 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: E2 62 00 [16:49:23]MH_I2C_Read... [16:49:23]Read from MH i2c: E2 62 00 CE 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [16:49:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:49:23]wFMCommunicate OK [16:49:23]SAM_PROTO_GetFieldsCounters done [16:49:23]requested_item shift.num is exist - process it [16:49:23]requested_item shift.opened is exist - process it [16:49:23]req_shift_opened [16:49:24]FM_GetShiftState [16:49:24]SAM_PROTO_GetShiftState [16:49:24]wFMCommunicate request_size=4 [16:49:24]MH_SAM_APDU [16:49:24]CAPDU: 80 13 01 00 [16:49:24]Write to MH i2c: E2 08 00 CF 69 80 13 01 00 00 00 00 00 B5 [16:49:24]Write i2c OK [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 [16:49:24]MH_I2C_Read... [16:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:49:24]Read from MH i2c: E2 0E 00 [16:49:24]MH_I2C_Read... [16:49:24]Read from MH i2c: E2 0E 00 CF 69 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BE [16:49:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:49:24]wFMCommunicate OK [16:49:24]SAM_PROTO_GetShiftState done [16:49:24]FM_GetShiftState done [16:49:24]req_shift_opened done [16:49:24]requested_item shift.open_date is exist - process it [16:49:24]req_shift_open_date [16:49:24]req_shift_open_date done [16:49:24]produce_requested_data done [16:49:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166109,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:49:24]process_action_free close_receipt [16:49:24]json_value_free [16:49:24]json_value_free done [16:49:24]process_json_proto returns [16:49:24]Send response to host [16:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166109,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:49:24]free response buf [16:49:24]execute_script done [16:49:24]execute_script returns [16:49:24]free content buf [16:49:24]Sock 6.Close socket [16:49:24]Sock 6.Thread stoped [16:49:27]OFD Sender: No OFD packet to send [16:49:32]OFD Sender: No OFD packet to send [16:49:37]OFD Sender: No OFD packet to send [16:49:42]OFD Sender: No OFD packet to send [16:49:47]OFD Sender: No OFD packet to send [16:49:52]OFD Sender: No OFD packet to send [16:49:57]OFD Sender: No OFD packet to send [16:50:02]OFD Sender: No OFD packet to send [16:50:07]OFD Sender: No OFD packet to send [16:50:12]OFD Sender: No OFD packet to send [16:50:12]accept exits with 5 [16:50:12]New connection [16:50:12]New thread 3066920292 created [16:50:12]Thread 3066776932 joined [16:50:12]Waiting for new connection... [16:50:12] Sock 5.Parse request [16:50:12]Sock 5.Check first char [16:50:12]Sock 5.First char is OK [16:50:12]request: POST /json_proto HTTP/1.0 [16:50:12]Method: POST [16:50:12]URL: /json_proto [16:50:12]Method is POST - this is cgi request [16:50:12]url: /json_proto [16:50:12]query_string will be loaded in cgi processing [16:50:12]execute_cgi json_proto POST (null) [16:50:12]execute_cgi path=json_proto method=POST [16:50:12]POST find Content-Length [16:50:12]Host: 172.17.53.195:8080 [16:50:12]Content-Length: 677 [16:50:12]Content-Type: application/json [16:50:12] [16:50:12]POST finish read [16:50:12]Found Content-Length = 677 [16:50:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:12]execute_script... [16:50: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)220681", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:12]POST & json_proto [16:50:12]process_json_proto [16:50:12]json parsed OK: [16:50:12]protocol is kg_v1.0 [16:50:12]action value=close_receipt [16:50:12]process_action close_receipt [16:50:12]cmd_close_receipt [16:50:12]MH_GetDate [16:50:12]Write to MH i2c: F0 00 00 D0 69 28 [16:50:12]Write i2c OK [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 09 00 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: F0 09 00 D0 69 00 58 86 16 67 21 48 4A 65 A4 [16:50:12]GetLastDocTimeStamp 1729529379 [16:50:12]current date 1729529432 [16:50:12]FM_GetShiftState [16:50:12]SAM_PROTO_GetShiftState [16:50:12]wFMCommunicate request_size=4 [16:50:12]MH_SAM_APDU [16:50:12]CAPDU: 80 13 01 00 [16:50:12]Write to MH i2c: E2 08 00 D1 69 80 13 01 00 00 00 00 00 B7 [16:50:12]Write i2c OK [16:50:12]MH_I2C_Read... [16:50:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:12]Read from MH i2c: E2 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: E2 0E 00 [16:50:12]MH_I2C_Read... [16:50:12]Read from MH i2c: E2 0E 00 D1 69 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C0 [16:50:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:50:12]wFMCommunicate OK [16:50:12]SAM_PROTO_GetShiftState done [16:50:12]FM_GetShiftState done [16:50:12]opened in 1729470944 [16:50:12]opened+sec_in_day 1729557344 [16:50:12]quantity*price = 40006 [16:50:12]sum+1 = 40007 [16:50:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 221 21.10.2024 16:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166110 ФПД: 264047157620121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165032&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166110&fm=264047157620121&tin=02508201610067®Number=0000000000091764&sum=40000 [16:50:14]StoreToDocumentArchive [16:50:14]shift 535 fd 166110 [16:50:14]save to /storage/0535/doc_00166110 [16:50:14]save last doc name /storage/0535/doc_00166110 to /storage/kkm_last_doc_name [16:50:14]save OK [16:50:14]Clear old archive folders... [16:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:14]tlvbuf is 017B0790 [16:50:14]SAM_PROTO_ClearQueue [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 09 00 00 [16:50:14]Write to MH i2c: E2 08 00 DE 69 80 09 00 00 00 00 00 00 B9 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 DE 69 00 90 00 BB [16:50:14]RAPDU: 90 00 [16:50:14]wFMCommunicate OK [16:50:14]SAM_PROTO_ClearQueue done [16:50:14]KKMCreateOFDPacket [16:50:14]OFDProtocolAddRootSTLVToBuf [16:50:14]FM_MakeSignedData [16:50:14]FM_MakeSignedData [16:50:14]SAM_PROTO_SignData [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 0D 01 02 [16:50:14]Write to MH i2c: E2 08 00 DF 69 80 0D 01 02 00 00 00 00 C1 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 DF 69 00 90 00 BC [16:50:14]RAPDU: 90 00 [16:50:14]wFMCommunicate OK [16:50:14]wFMCommunicate request_size=255 [16:50:14]MH_SAM_APDU [16:50: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 88 02 00 35 04 06 00 F0 [16:50:14]Write to MH i2c: E2 02 01 E0 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 88 02 00 35 04 06 00 F0 00 00 CF [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 E0 69 00 90 00 BD [16:50:14]RAPDU: 90 00 [16:50:14]wFMCommunicate OK [16:50:14]wFMCommunicate request_size=10 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 0D 02 02 05 26 45 08 AD 99 [16:50:14]Write to MH i2c: E2 0D 00 E1 69 80 0D 02 02 05 00 26 45 08 AD 99 00 00 87 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 03 00 E1 69 00 90 00 BE [16:50:14]RAPDU: 90 00 [16:50:14]wFMCommunicate OK [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 0D 03 02 [16:50:14]Write to MH i2c: E2 08 00 E2 69 80 0D 03 02 00 00 00 00 C6 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0B 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0B 00 E2 69 00 D7 5B 88 9D 4E 7A D2 36 90 00 EE [16:50:14]RAPDU: D7 5B 88 9D 4E 7A D2 36 90 00 [16:50:14]wFMCommunicate OK [16:50:14]SAM_PROTO_SignData done [16:50:14]FM_MakeSignedData done [16:50:14]CreateOFDProtocolMessage [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 11 00 00 [16:50:14]Write to MH i2c: E2 08 00 E3 69 80 11 00 00 00 00 00 00 C6 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 17 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 17 00 E3 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1E [16:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:50:14]wFMCommunicate OK [16:50:14]CreateOFDProtocolMessage done [16:50:14]OFDSenderStorePacket 166110 [16:50:14]StoreOFDPacket docnum=166110 [16:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3C BB 07 01 EB 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 88 02 00 35 04 06 00 F0 26 45 08 AD 99 D7 5B 88 9D 4E 7A D2 36 [16:50:14]CheckFolder [16:50:14]dirname=/storage/ofd_packets [16:50:14]CheckFolder done [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00166110 [16:50:14]NVStorageSaveData ofd_packets/00166110 [16:50:14]File name is /storage/ofd_packets/00166110 [16:50:14]Write 301 bytes [16:50:14]NVStorageSaveData done [16:50:14]OFDSenderStorePacket done [16:50:14]KKMCreateOFDPacket done [16:50:14]NVStorageSaveData kkm_last_timestamp [16:50:14]File name is /storage/kkm_last_timestamp [16:50:14]Write 4 bytes [16:50:14]NVStorageSaveData done [16:50:14]ExternCall_PrintAddStr [16:50:14]wPrintStart [16:50:14]Write to MH i2c: 01 00 00 E4 69 4D [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: 01 07 00 E4 69 00 00 00 00 00 FF 0F 62 [16:50:14]RasterBufferAndPrint [16:50:14]line Счет N : (1)220681 [16:50:14]line ИНН: 02508201610067 [16:50:14]line Контрольно-Кассовый Чек [16:50:14]line ПРОДАЖА [16:50:14]line ТРК (МРК, ГНК) : 13 [16:50:14]line Товар: 2710124130 [16:50:14]line Аи-92-К-5 [16:50:14]line 5.980 * 66.90 [16:50:14]line = 400.06 [16:50:14]line НДС 12% НСП 1% [16:50:14]line > о реализуемом товаре [16:50:14]line ОКРУГЛЕНИЕ: -0.06 [16:50:14]line ИТОГО: 400.00 [16:50:14]line Внесено: 400.00 [16:50:14]line СДАЧА: 0.00 [16:50:14]line НСП 1% : 3.54 [16:50:14]line НДС 12% : 42.48 [16:50:14]line Наличными: 400.00 [16:50:14]line Безнал.: 0.00 [16:50:14]line Место: АЗС № 161 "Партнер Нефть" [16:50:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:50:14]line СНО: Общий режим [16:50:14]line Чек 221 21.10.2024 16:50 [16:50:14]line Смена: 535 ФФД: 1.0 [16:50:14]line ЗНМ: 0300000104 [16:50:14]line РНМ: 0000000000091764 [16:50:14]line Версия ККМ: 001 [16:50:14]line ФМ: 0000000000871759 [16:50:14]line ФД: 166110 [16:50:14]line ФПД: 264047157620121 [16:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165032&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166110&fm=264047157620121&tin=02508201610067®Number=0000000000091764&sum=40000 [16:50:14]OFD Sender: Processing packet 166110 [packets to send 48, broken 47] [16:50:14]ProducePacketName [16:50:14]name=ofd_packets/00166110 [16:50:14]OFD Sender: To server: pG, [16:50:14]CommunicateWithHost lk.salyk.kg:30040 [16:50:14]ConnectInit lk.salyk.kg [16:50:14]written 0, free lines is 4095 [16:50:14]Connected sock=7 [16: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 35 39 0F 01 00 00 3C BB 07 01 EB 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 58 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 88 02 00 35 04 06 00 F0 26 45 08 AD 99 D7 5B 88 9D 4E 7A D2 36 [16:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A3 30 47 00 1F 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DE 88 02 00 F4 03 04 00 C5 2C 16 67 B6 04 01 00 00 A5 D9 94 CD EA 59 3E CB [16:50:15]CommunicateWithHost err = 0 [16:50:15]CheckOFDResponse [16:50:15]1017 (14) - 77093643461234 [16:50:15]1041 (16) - 0000000000871759 [16:50:15]1040 (4) - 166110 [16:50:15]1012 (4) - 21.10.2024 10:28 [16:50:15]1206 (1) - 0 [16:50:15]OFD Sender: Remove packet 166110 [16:50:15]ProducePacketName [16:50:15]name=ofd_packets/00166110 [16:50:15]NVStorageDeleteData [16:50:15]Write to MH i2c: 01 00 00 0F 6A 79 [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: 01 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: 01 07 00 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: 01 07 00 0F 6A 00 00 00 00 00 CD 0C 59 [16:50:15]RasterBufferAndPrint [16:50:15]line [16:50:15]line [16:50:15]line [16:50:15]line [16:50:15]line [16:50:15]written 0, free lines is 3286 [16:50:15]MH_Cut [16:50:15]Write to MH i2c: D1 01 00 16 6A 01 52 [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: D1 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: D1 01 00 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: D1 01 00 16 6A 00 51 [16:50:15]Write to MH i2c: 01 00 00 17 6A 81 [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:15]OFD Sender: No OFD packet to send [16:50:16]*** Cut start [16:50:16]*** Partial cut [16:50:16]*** CUTSNS_PIN = 1 [16:50:16]*** CUTSNS_PIN = 0 [16:50:16]*** Brake cut motor [16:50:16]Read from MH i2c: 01 [16:50:16]MH_I2C_Read... [16:50:16]*** Stop cut motor [16:50:16]*** Cut end [16:50:16]Read from MH i2c: 01 07 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 07 00 17 6A 00 00 00 00 00 FF 0F 96 [16:50:16]process_action close_receipt done [16:50:16]requested_data is exist [16:50:16]produce_requested_data [16:50:16]requested_item fm.sn is exist - process it [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 11 00 00 [16:50:16]Write to MH i2c: E2 08 00 18 6A 80 11 00 00 00 00 00 00 FC [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 17 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 17 00 18 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 54 [16:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:50:16]wFMCommunicate OK [16:50:16]requested_item fd.num is exist - process it [16:50:16]SAM_PROTO_GetFieldsCounters [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 13 00 00 [16:50:16]Write to MH i2c: E2 08 00 19 6A 80 13 00 00 00 00 00 00 FF [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 62 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 62 00 19 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [16:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:50:16]wFMCommunicate OK [16:50:16]SAM_PROTO_GetFieldsCounters done [16:50:16]requested_item shift.num is exist - process it [16:50:16]requested_item shift.opened is exist - process it [16:50:16]req_shift_opened [16:50:16]FM_GetShiftState [16:50:16]SAM_PROTO_GetShiftState [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 13 01 00 [16:50:16]Write to MH i2c: E2 08 00 1A 6A 80 13 01 00 00 00 00 00 01 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 [16:50:17]MH_I2C_Read... [16:50:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:17]Read from MH i2c: E2 0E 00 [16:50:17]MH_I2C_Read... [16:50:17]Read from MH i2c: E2 0E 00 1A 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0A [16:50:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:50:17]wFMCommunicate OK [16:50:17]SAM_PROTO_GetShiftState done [16:50:17]FM_GetShiftState done [16:50:17]req_shift_opened done [16:50:17]requested_item shift.open_date is exist - process it [16:50:17]req_shift_open_date [16:50:17]req_shift_open_date done [16:50:17]produce_requested_data done [16:50:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166110,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:50:17]process_action_free close_receipt [16:50:17]json_value_free [16:50:17]json_value_free done [16:50:17]process_json_proto returns [16:50:17]Send response to host [16:50:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166110,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:50:17]free response buf [16:50:17]execute_script done [16:50:17]execute_script returns [16:50:17]free content buf [16:50:17]Sock 5.Close socket [16:50:17]Sock 5.Thread stoped [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:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:15]accept exits with 6 [16:52:15]New connection [16:52:15]New thread 3066776932 created [16:52:15]Thread 3066920292 joined [16:52:15]Waiting for new connection... [16:52:15] Sock 6.Parse request [16:52:15]Sock 6.Check first char [16:52:15]Sock 6.First char is OK [16:52:15]request: POST /json_proto HTTP/1.0 [16:52:15]Method: POST [16:52:15]URL: /json_proto [16:52:15]Method is POST - this is cgi request [16:52:15]url: /json_proto [16:52:15]query_string will be loaded in cgi processing [16:52:15]execute_cgi json_proto POST (null) [16:52:15]execute_cgi path=json_proto method=POST [16:52:15]POST find Content-Length [16:52:15]Host: 172.17.53.195:8080 [16:52:15]Content-Length: 677 [16:52:15]Content-Type: application/json [16:52:15] [16:52:15]POST finish read [16:52:15]Found Content-Length = 677 [16:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:15]execute_script... [16:52: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)220683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:15]POST & json_proto [16:52:15]process_json_proto [16:52:15]json parsed OK: [16:52:15]protocol is kg_v1.0 [16:52:15]action value=close_receipt [16:52:15]process_action close_receipt [16:52:15]cmd_close_receipt [16:52:15]MH_GetDate [16:52:15]Write to MH i2c: F0 00 00 1B 6A 74 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: F0 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: F0 09 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: F0 09 00 1B 6A 00 D3 86 16 67 21 48 4A 65 6B [16:52:15]GetLastDocTimeStamp 1729529432 [16:52:15]current date 1729529555 [16:52:15]FM_GetShiftState [16:52:15]SAM_PROTO_GetShiftState [16:52:15]wFMCommunicate request_size=4 [16:52:15]MH_SAM_APDU [16:52:15]CAPDU: 80 13 01 00 [16:52:15]Write to MH i2c: E2 08 00 1C 6A 80 13 01 00 00 00 00 00 03 [16:52:15]Write i2c OK [16:52:15]MH_I2C_Read... [16:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:15]Read from MH i2c: E2 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 [16:52:15]MH_I2C_Read... [16:52:15]Read from MH i2c: E2 0E 00 1C 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0C [16:52:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:52:15]wFMCommunicate OK [16:52:15]SAM_PROTO_GetShiftState done [16:52:15]FM_GetShiftState done [16:52:15]opened in 1729470944 [16:52:15]opened+sec_in_day 1729557344 [16:52:15]quantity*price = 20003 [16:52:15]sum+1 = 20004 [16:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 222 21.10.2024 16:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166111 ФПД: 266081466863385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165235&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166111&fm=266081466863385&tin=02508201610067®Number=0000000000091764&sum=20000 [16:52:17]StoreToDocumentArchive [16:52:17]shift 535 fd 166111 [16:52:17]save to /storage/0535/doc_00166111 [16:52:17]save last doc name /storage/0535/doc_00166111 to /storage/kkm_last_doc_name [16:52:17]save OK [16:52:17]Clear old archive folders... [16:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:17]tlvbuf is 01456DC0 [16:52:17]SAM_PROTO_ClearQueue [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 09 00 00 [16:52:17]Write to MH i2c: E2 08 00 29 6A 80 09 00 00 00 00 00 00 05 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 29 6A 00 90 00 07 [16:52:17]RAPDU: 90 00 [16:52:17]wFMCommunicate OK [16:52:17]SAM_PROTO_ClearQueue done [16:52:17]KKMCreateOFDPacket [16:52:17]OFDProtocolAddRootSTLVToBuf [16:52:17]FM_MakeSignedData [16:52:17]FM_MakeSignedData [16:52:17]SAM_PROTO_SignData [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 0D 01 02 [16:52:17]Write to MH i2c: E2 08 00 2A 6A 80 0D 01 02 00 00 00 00 0D [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 2A 6A 00 90 00 08 [16:52:17]RAPDU: 90 00 [16:52:17]wFMCommunicate OK [16:52:17]wFMCommunicate request_size=255 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 D3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 88 02 00 35 04 06 00 F1 [16:52:17]Write to MH i2c: E2 02 01 2B 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 D3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 88 02 00 35 04 06 00 F1 00 00 8C [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 2B 6A 00 90 00 09 [16:52:17]RAPDU: 90 00 [16:52:17]wFMCommunicate OK [16:52:17]wFMCommunicate request_size=10 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 0D 02 02 05 FF EB 50 4F 19 [16:52:17]Write to MH i2c: E2 0D 00 2C 6A 80 0D 02 02 05 00 FF EB 50 4F 19 00 00 BC [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 03 00 2C 6A 00 90 00 0A [16:52:17]RAPDU: 90 00 [16:52:17]wFMCommunicate OK [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 0D 03 02 [16:52:17]Write to MH i2c: E2 08 00 2D 6A 80 0D 03 02 00 00 00 00 12 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 0B 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 0B 00 2D 6A 00 C4 D9 0F B0 F6 D5 E5 62 90 00 81 [16:52:17]RAPDU: C4 D9 0F B0 F6 D5 E5 62 90 00 [16:52:17]wFMCommunicate OK [16:52:17]SAM_PROTO_SignData done [16:52:17]FM_MakeSignedData done [16:52:17]CreateOFDProtocolMessage [16:52:17]wFMCommunicate request_size=4 [16:52:17]MH_SAM_APDU [16:52:17]CAPDU: 80 11 00 00 [16:52:17]Write to MH i2c: E2 08 00 2E 6A 80 11 00 00 00 00 00 00 12 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:17]Read from MH i2c: E2 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 17 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: E2 17 00 2E 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6A [16:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:17]wFMCommunicate OK [16:52:17]CreateOFDProtocolMessage done [16:52:17]OFDSenderStorePacket 166111 [16:52:17]StoreOFDPacket docnum=166111 [16:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3E A1 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 D3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 88 02 00 35 04 06 00 F1 FF EB 50 4F 19 C4 D9 0F B0 F6 D5 E5 62 [16:52:17]CheckFolder [16:52:17]dirname=/storage/ofd_packets [16:52:17]CheckFolder done [16:52:17]ProducePacketName [16:52:17]name=ofd_packets/00166111 [16:52:17]NVStorageSaveData ofd_packets/00166111 [16:52:17]File name is /storage/ofd_packets/00166111 [16:52:17]Write 301 bytes [16:52:17]NVStorageSaveData done [16:52:17]OFDSenderStorePacket done [16:52:17]KKMCreateOFDPacket done [16:52:17]NVStorageSaveData kkm_last_timestamp [16:52:17]File name is /storage/kkm_last_timestamp [16:52:17]Write 4 bytes [16:52:17]NVStorageSaveData done [16:52:17]ExternCall_PrintAddStr [16:52:17]wPrintStart [16:52:17]Write to MH i2c: 01 00 00 2F 6A 99 [16:52:17]Write i2c OK [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: 01 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: 01 07 00 [16:52:17]MH_I2C_Read... [16:52:17]Read from MH i2c: 01 07 00 2F 6A 00 00 00 00 00 FF 0F AE [16:52:17]RasterBufferAndPrint [16:52:17]line Счет N : (1)220683 [16:52:17]line ИНН: 02508201610067 [16:52:17]line Контрольно-Кассовый Чек [16:52:17]line ПРОДАЖА [16:52:17]line ТРК (МРК, ГНК) : 23 [16:52:17]line Товар: 2710124130 [16:52:17]line Аи-92-К-5 [16:52:17]line 2.990 * 66.90 [16:52:17]line = 200.03 [16:52:17]line НДС 12% НСП 1% [16:52:17]line > о реализуемом товаре [16:52:17]line ОКРУГЛЕНИЕ: -0.03 [16:52:17]line ИТОГО: 200.00 [16:52:17]line Внесено: 200.00 [16:52:17]line СДАЧА: 0.00 [16:52:17]line НСП 1% : 1.77 [16:52:17]line НДС 12% : 21.24 [16:52:17]line Наличными: 200.00 [16:52:17]line Безнал.: 0.00 [16:52:17]line Место: АЗС № 161 "Партнер Нефть" [16:52:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:52:17]line СНО: Общий режим [16:52:17]line Чек 222 21.10.2024 16:52 [16:52:17]line Смена: 535 ФФД: 1.0 [16:52:17]line ЗНМ: 0300000104 [16:52:17]line РНМ: 0000000000091764 [16:52:17]line Версия ККМ: 001 [16:52:17]line ФМ: 0000000000871759 [16:52:17]line ФД: 166111 [16:52:17]line ФПД: 266081466863385 [16:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165235&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166111&fm=266081466863385&tin=02508201610067®Number=0000000000091764&sum=20000 [16:52:17]OFD Sender: Processing packet 166111 [packets to send 48, broken 47] [16:52:17]ProducePacketName [16:52:17]name=ofd_packets/00166111 [16:52:17]OFD Sender: To server: pG, [16:52:17]CommunicateWithHost lk.salyk.kg:30040 [16:52:17]ConnectInit lk.salyk.kg [16:52:17]written 0, free lines is 4095 [16:52:18]Connected sock=7 [16:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 3E A1 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 D3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 88 02 00 35 04 06 00 F1 FF EB 50 4F 19 C4 D9 0F B0 F6 D5 E5 62 [16:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3F 8B 47 00 9F 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 DF 88 02 00 F4 03 04 00 41 2D 16 67 B6 04 01 00 00 61 79 F5 34 27 FB 44 1B [16:52:18]CommunicateWithHost err = 0 [16:52:18]CheckOFDResponse [16:52:18]1017 (14) - 77093643461234 [16:52:18]1041 (16) - 0000000000871759 [16:52:18]1040 (4) - 166111 [16:52:18]1012 (4) - 21.10.2024 10:30 [16:52:18]1206 (1) - 0 [16:52:18]OFD Sender: Remove packet 166111 [16:52:18]ProducePacketName [16:52:18]name=ofd_packets/00166111 [16:52:18]NVStorageDeleteData [16:52:18]Write to MH i2c: 01 00 00 5A 6A C4 [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: 01 07 00 5A 6A 00 00 00 00 00 DD 0C B4 [16:52:18]RasterBufferAndPrint [16:52:18]line [16:52:18]line [16:52:18]line [16:52:18]line [16:52:18]line [16:52:18]written 0, free lines is 3300 [16:52:18]MH_Cut [16:52:18]Write to MH i2c: D1 01 00 61 6A 01 9D [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: D1 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: D1 01 00 [16:52:18]MH_I2C_Read... [16:52:18]Read from MH i2c: D1 01 00 61 6A 00 9C [16:52:18]Write to MH i2c: 01 00 00 62 6A CC [16:52:18]Write i2c OK [16:52:18]MH_I2C_Read... [16:52:18]OFD Sender: No OFD packet to send [16:52:19]*** Cut start [16:52:19]*** Partial cut [16:52:19]*** CUTSNS_PIN = 1 [16:52:19]*** CUTSNS_PIN = 0 [16:52:19]*** Brake cut motor [16:52:19]Read from MH i2c: 01 [16:52:19]MH_I2C_Read... [16:52:19]*** Stop cut motor [16:52:19]*** Cut end [16:52:19]Read from MH i2c: 01 07 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: 01 07 00 62 6A 00 00 00 00 00 FF 0F E1 [16:52:19]process_action close_receipt done [16:52:19]requested_data is exist [16:52:19]produce_requested_data [16:52:19]requested_item fm.sn is exist - process it [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 11 00 00 [16:52:19]Write to MH i2c: E2 08 00 63 6A 80 11 00 00 00 00 00 00 47 [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 17 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 17 00 63 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [16:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:19]wFMCommunicate OK [16:52:19]requested_item fd.num is exist - process it [16:52:19]SAM_PROTO_GetFieldsCounters [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 13 00 00 [16:52:19]Write to MH i2c: E2 08 00 64 6A 80 13 00 00 00 00 00 00 4A [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:19]Read from MH i2c: E2 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 62 00 [16:52:19]MH_I2C_Read... [16:52:19]Read from MH i2c: E2 62 00 64 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [16:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 DF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:19]wFMCommunicate OK [16:52:19]SAM_PROTO_GetFieldsCounters done [16:52:19]requested_item shift.num is exist - process it [16:52:19]requested_item shift.opened is exist - process it [16:52:19]req_shift_opened [16:52:19]FM_GetShiftState [16:52:19]SAM_PROTO_GetShiftState [16:52:19]wFMCommunicate request_size=4 [16:52:19]MH_SAM_APDU [16:52:19]CAPDU: 80 13 01 00 [16:52:19]Write to MH i2c: E2 08 00 65 6A 80 13 01 00 00 00 00 00 4C [16:52:19]Write i2c OK [16:52:19]MH_I2C_Read... [16:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:20]Read from MH i2c: E2 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 0E 00 [16:52:20]MH_I2C_Read... [16:52:20]Read from MH i2c: E2 0E 00 65 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 55 [16:52:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:52:20]wFMCommunicate OK [16:52:20]SAM_PROTO_GetShiftState done [16:52:20]FM_GetShiftState done [16:52:20]req_shift_opened done [16:52:20]requested_item shift.open_date is exist - process it [16:52:20]req_shift_open_date [16:52:20]req_shift_open_date done [16:52:20]produce_requested_data done [16:52:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166111,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:52:20]process_action_free close_receipt [16:52:20]json_value_free [16:52:20]json_value_free done [16:52:20]process_json_proto returns [16:52:20]Send response to host [16:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166111,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:52:20]free response buf [16:52:20]execute_script done [16:52:20]execute_script returns [16:52:20]free content buf [16:52:20]Sock 6.Close socket [16:52:20]Sock 6.Thread stoped [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:32]accept exits with 5 [16:52:32]New connection [16:52:32]New thread 3066920292 created [16:52:32]Thread 3066776932 joined [16:52:32]Waiting for new connection... [16:52:32] Sock 5.Parse request [16:52:32]Sock 5.Check first char [16:52:32]Sock 5.First char is OK [16:52:32]request: POST /json_proto HTTP/1.0 [16:52:32]Method: POST [16:52:32]URL: /json_proto [16:52:32]Method is POST - this is cgi request [16:52:32]url: /json_proto [16:52:32]query_string will be loaded in cgi processing [16:52:32]execute_cgi json_proto POST (null) [16:52:32]execute_cgi path=json_proto method=POST [16:52:32]POST find Content-Length [16:52:32]Host: 172.17.53.195:8080 [16:52:32]Content-Length: 677 [16:52:32]Content-Type: application/json [16:52:32] [16:52:32]POST finish read [16:52:32]Found Content-Length = 677 [16:52:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:32]execute_script... [16: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)220682", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:52:32]POST & json_proto [16:52:32]process_json_proto [16:52:32]json parsed OK: [16:52:32]protocol is kg_v1.0 [16:52:32]action value=close_receipt [16:52:32]process_action close_receipt [16:52:32]cmd_close_receipt [16:52:32]MH_GetDate [16:52:32]Write to MH i2c: F0 00 00 66 6A BF [16:52:32]Write i2c OK [16:52:32]MH_I2C_Read... [16:52:32]Read from MH i2c: F0 [16:52:32]MH_I2C_Read... [16:52:32]Read from MH i2c: F0 09 00 [16:52:32]MH_I2C_Read... [16:52:32]Read from MH i2c: F0 09 00 66 6A 00 E3 86 16 67 21 48 4A 65 C6 [16:52:32]GetLastDocTimeStamp 1729529555 [16:52:32]current date 1729529571 [16:52:32]FM_GetShiftState [16:52:32]SAM_PROTO_GetShiftState [16:52:32]wFMCommunicate request_size=4 [16:52:32]MH_SAM_APDU [16:52:32]CAPDU: 80 13 01 00 [16:52:32]Write to MH i2c: E2 08 00 67 6A 80 13 01 00 00 00 00 00 4E [16:52:32]Write i2c OK [16:52:32]MH_I2C_Read... [16:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:32]Read from MH i2c: E2 [16:52:32]MH_I2C_Read... [16:52:32]Read from MH i2c: E2 0E 00 [16:52:32]MH_I2C_Read... [16:52:32]Read from MH i2c: E2 0E 00 67 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 57 [16:52:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:52:32]wFMCommunicate OK [16:52:32]SAM_PROTO_GetShiftState done [16:52:32]FM_GetShiftState done [16:52:32]opened in 1729470944 [16:52:32]opened+sec_in_day 1729557344 [16:52:32]quantity*price = 50041 [16:52:32]sum+1 = 50042 [16:52:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 223 21.10.2024 16:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166112 ФПД: 157635935197510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165251&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166112&fm=157635935197510&tin=02508201610067®Number=0000000000091764&sum=50000 [16:52:33]StoreToDocumentArchive [16:52:33]shift 535 fd 166112 [16:52:33]save to /storage/0535/doc_00166112 [16:52:33]save last doc name /storage/0535/doc_00166112 to /storage/kkm_last_doc_name [16:52:33]save OK [16:52:33]Clear old archive folders... [16:52:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:33]tlvbuf is 016E48D0 [16:52:33]SAM_PROTO_ClearQueue [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 09 00 00 [16:52:33]Write to MH i2c: E2 08 00 74 6A 80 09 00 00 00 00 00 00 50 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 74 6A 00 90 00 52 [16:52:33]RAPDU: 90 00 [16:52:33]wFMCommunicate OK [16:52:33]SAM_PROTO_ClearQueue done [16:52:33]KKMCreateOFDPacket [16:52:33]OFDProtocolAddRootSTLVToBuf [16:52:33]FM_MakeSignedData [16:52:33]FM_MakeSignedData [16:52:33]SAM_PROTO_SignData [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 0D 01 02 [16:52:33]Write to MH i2c: E2 08 00 75 6A 80 0D 01 02 00 00 00 00 58 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 75 6A 00 90 00 53 [16:52:33]RAPDU: 90 00 [16:52:33]wFMCommunicate OK [16:52:33]wFMCommunicate request_size=255 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 88 02 00 35 04 06 00 8F [16:52:33]Write to MH i2c: E2 02 01 76 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 88 02 00 35 04 06 00 8F 00 00 C5 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 76 6A 00 90 00 54 [16:52:33]RAPDU: 90 00 [16:52:33]wFMCommunicate OK [16:52:33]wFMCommunicate request_size=10 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 0D 02 02 05 5E 79 EB D9 46 [16:52:33]Write to MH i2c: E2 0D 00 77 6A 80 0D 02 02 05 00 5E 79 EB D9 46 00 00 46 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 03 00 77 6A 00 90 00 55 [16:52:33]RAPDU: 90 00 [16:52:33]wFMCommunicate OK [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 0D 03 02 [16:52:33]Write to MH i2c: E2 08 00 78 6A 80 0D 03 02 00 00 00 00 5D [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]OFD Sender: No OFD packet to send [16:52:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0B 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0B 00 78 6A 00 7A 04 77 EE 8F 33 63 14 90 00 7A [16:52:33]RAPDU: 7A 04 77 EE 8F 33 63 14 90 00 [16:52:33]wFMCommunicate OK [16:52:33]SAM_PROTO_SignData done [16:52:33]FM_MakeSignedData done [16:52:33]CreateOFDProtocolMessage [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 11 00 00 [16:52:33]Write to MH i2c: E2 08 00 79 6A 80 11 00 00 00 00 00 00 5D [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 17 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 17 00 79 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B5 [16:52:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:33]wFMCommunicate OK [16:52:33]CreateOFDProtocolMessage done [16:52:33]OFDSenderStorePacket 166112 [16:52:33]StoreOFDPacket docnum=166112 [16:52:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 80 6B 07 01 B0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 88 02 00 35 04 06 00 8F 5E 79 EB D9 46 7A 04 77 EE 8F 33 63 14 [16:52:33]CheckFolder [16:52:33]dirname=/storage/ofd_packets [16:52:33]CheckFolder done [16:52:33]ProducePacketName [16:52:33]name=ofd_packets/00166112 [16:52:33]NVStorageSaveData ofd_packets/00166112 [16:52:33]File name is /storage/ofd_packets/00166112 [16:52:33]Write 301 bytes [16:52:33]NVStorageSaveData done [16:52:33]OFDSenderStorePacket done [16:52:33]KKMCreateOFDPacket done [16:52:33]NVStorageSaveData kkm_last_timestamp [16:52:33]File name is /storage/kkm_last_timestamp [16:52:33]Write 4 bytes [16:52:33]NVStorageSaveData done [16:52:33]ExternCall_PrintAddStr [16:52:33]wPrintStart [16:52:33]Write to MH i2c: 01 00 00 7A 6A E4 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: 01 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: 01 07 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: 01 07 00 7A 6A 00 00 00 00 00 FF 0F F9 [16:52:33]RasterBufferAndPrint [16:52:33]line Счет N : (1)220682 [16:52:33]line ИНН: 02508201610067 [16:52:33]line Контрольно-Кассовый Чек [16:52:33]line ПРОДАЖА [16:52:33]line ТРК (МРК, ГНК) : 33 [16:52:33]line Товар: 2710124130 [16:52:33]line Аи-92-К-5 [16:52:33]line 7.480 * 66.90 [16:52:33]line = 500.41 [16:52:33]line НДС 12% НСП 1% [16:52:33]line > о реализуемом товаре [16:52:33]line ОКРУГЛЕНИЕ: -0.41 [16:52:33]line ИТОГО: 500.00 [16:52:33]line Внесено: 500.00 [16:52:33]line СДАЧА: 0.00 [16:52:33]line НСП 1% : 4.43 [16:52:33]line НДС 12% : 53.14 [16:52:33]line Наличными: 500.00 [16:52:33]line Безнал.: 0.00 [16:52:33]line Место: АЗС № 161 "Партнер Нефть" [16:52:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:52:33]line СНО: Общий режим [16:52:33]line Чек 223 21.10.2024 16:52 [16:52:33]line Смена: 535 ФФД: 1.0 [16:52:33]line ЗНМ: 0300000104 [16:52:33]line РНМ: 0000000000091764 [16:52:33]line Версия ККМ: 001 [16:52:33]line ФМ: 0000000000871759 [16:52:33]line ФД: 166112 [16:52:33]line ФПД: 157635935197510 [16:52:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165251&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166112&fm=157635935197510&tin=02508201610067®Number=0000000000091764&sum=50000 [16:52:34]OFD Sender: Processing packet 166112 [packets to send 48, broken 47] [16:52:34]ProducePacketName [16:52:34]name=ofd_packets/00166112 [16:52:34]OFD Sender: To server: pG, [16:52:34]CommunicateWithHost lk.salyk.kg:30040 [16:52:34]ConnectInit lk.salyk.kg [16:52:34]written 0, free lines is 4095 [16:52:34]Connected sock=7 [16: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 35 39 0F 01 00 00 80 6B 07 01 B0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 E3 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 88 02 00 35 04 06 00 8F 5E 79 EB D9 46 7A 04 77 EE 8F 33 63 14 [16:52:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 20 45 47 00 72 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E0 88 02 00 F4 03 04 00 51 2D 16 67 B6 04 01 00 00 29 91 9D 69 44 AF 43 73 [16:52:34]CommunicateWithHost err = 0 [16:52:34]CheckOFDResponse [16:52:34]1017 (14) - 77093643461234 [16:52:34]1041 (16) - 0000000000871759 [16:52:34]1040 (4) - 166112 [16:52:34]1012 (4) - 21.10.2024 10:30 [16:52:34]1206 (1) - 0 [16:52:34]OFD Sender: Remove packet 166112 [16:52:34]ProducePacketName [16:52:34]name=ofd_packets/00166112 [16:52:34]NVStorageDeleteData [16:52:34]Write to MH i2c: 01 00 00 A5 6A 0F [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: 01 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: 01 07 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: 01 07 00 A5 6A 00 00 00 00 00 BE 0C E0 [16:52:34]RasterBufferAndPrint [16:52:34]line [16:52:34]line [16:52:34]line [16:52:34]line [16:52:34]line [16:52:34]written 0, free lines is 3271 [16:52:34]MH_Cut [16:52:34]Write to MH i2c: D1 01 00 AC 6A 01 E8 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: D1 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: D1 01 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: D1 01 00 AC 6A 00 E7 [16:52:34]Write to MH i2c: 01 00 00 AD 6A 17 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:35]OFD Sender: No OFD packet to send [16:52:35]*** Cut start [16:52:35]*** Partial cut [16:52:35]*** CUTSNS_PIN = 1 [16:52:35]*** CUTSNS_PIN = 0 [16:52:35]*** Brake cut motor [16:52:36]Read from MH i2c: 01 [16:52:36]MH_I2C_Read... [16:52:36]*** Stop cut motor [16:52:36]*** Cut end [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 AD 6A 00 00 00 00 00 FF 0F 2C [16:52:36]process_action close_receipt done [16:52:36]requested_data is exist [16:52:36]produce_requested_data [16:52:36]requested_item fm.sn is exist - process it [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 AE 6A 80 11 00 00 00 00 00 00 92 [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 AE 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [16:52:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:36]wFMCommunicate OK [16:52:36]requested_item fd.num is exist - process it [16:52:36]SAM_PROTO_GetFieldsCounters [16:52:36]wFMCommunicate request_size=4 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 13 00 00 [16:52:36]Write to MH i2c: E2 08 00 AF 6A 80 13 00 00 00 00 00 00 95 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 62 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 62 00 AF 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [16: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:36]wFMCommunicate OK [16:52:36]SAM_PROTO_GetFieldsCounters done [16:52:36]requested_item shift.num is exist - process it [16:52:36]requested_item shift.opened is exist - process it [16:52:36]req_shift_opened [16:52:36]FM_GetShiftState [16:52:36]SAM_PROTO_GetShiftState [16:52:36]wFMCommunicate request_size=4 [16:52:36]MH_SAM_APDU [16:52:36]CAPDU: 80 13 01 00 [16:52:36]Write to MH i2c: E2 08 00 B0 6A 80 13 01 00 00 00 00 00 97 [16:52:36]Write i2c OK [16:52:36]MH_I2C_Read... [16:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:36]Read from MH i2c: E2 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 0E 00 [16:52:36]MH_I2C_Read... [16:52:36]Read from MH i2c: E2 0E 00 B0 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A0 [16:52:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:52:36]wFMCommunicate OK [16:52:36]SAM_PROTO_GetShiftState done [16:52:36]FM_GetShiftState done [16:52:36]req_shift_opened done [16:52:36]requested_item shift.open_date is exist - process it [16:52:36]req_shift_open_date [16:52:36]req_shift_open_date done [16:52:36]produce_requested_data done [16:52:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166112,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:52:36]process_action_free close_receipt [16:52:36]json_value_free [16:52:36]json_value_free done [16:52:36]process_json_proto returns [16:52:36]Send response to host [16:52:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166112,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:52:36]free response buf [16:52:36]execute_script done [16:52:36]execute_script returns [16:52:36]free content buf [16:52:36]Sock 5.Close socket [16:52:36]Sock 5.Thread stoped [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:49]accept exits with 6 [16:52:49]New connection [16:52:49]New thread 3066776932 created [16:52:49]Thread 3066920292 joined [16:52:49]Waiting for new connection... [16:52:49] Sock 6.Parse request [16:52:49]Sock 6.Check first char [16:52:49]Sock 6.First char is OK [16:52:49]request: POST /json_proto HTTP/1.0 [16:52:49]Method: POST [16:52:49]URL: /json_proto [16:52:49]Method is POST - this is cgi request [16:52:49]url: /json_proto [16:52:49]query_string will be loaded in cgi processing [16:52:49]execute_cgi json_proto POST (null) [16:52:49]execute_cgi path=json_proto method=POST [16:52:49]POST find Content-Length [16:52:49]Host: 172.17.53.195:8080 [16:52:49]Content-Length: 682 [16:52:49]Content-Type: application/json [16:52:49] [16:52:49]POST finish read [16:52:49]Found Content-Length = 682 [16:52:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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" ] } } [16:52:49]execute_script... [16:52: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)220684", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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" ] } } [16:52:49]POST & json_proto [16:52:49]process_json_proto [16:52:49]json parsed OK: [16:52:49]protocol is kg_v1.0 [16:52:49]action value=close_receipt [16:52:49]process_action close_receipt [16:52:49]cmd_close_receipt [16:52:49]MH_GetDate [16:52:49]Write to MH i2c: F0 00 00 B1 6A 0A [16:52:49]Write i2c OK [16:52:49]MH_I2C_Read... [16:52:49]Read from MH i2c: F0 [16:52:49]MH_I2C_Read... [16:52:49]Read from MH i2c: F0 09 00 [16:52:49]MH_I2C_Read... [16:52:49]Read from MH i2c: F0 09 00 B1 6A 00 F4 86 16 67 21 48 4A 65 22 [16:52:49]GetLastDocTimeStamp 1729529571 [16:52:49]current date 1729529588 [16:52:49]FM_GetShiftState [16:52:49]SAM_PROTO_GetShiftState [16:52:49]wFMCommunicate request_size=4 [16:52:49]MH_SAM_APDU [16:52:49]CAPDU: 80 13 01 00 [16:52:49]Write to MH i2c: E2 08 00 B2 6A 80 13 01 00 00 00 00 00 99 [16:52:49]Write i2c OK [16:52:49]MH_I2C_Read... [16:52:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:49]Read from MH i2c: E2 [16:52:49]MH_I2C_Read... [16:52:49]Read from MH i2c: E2 0E 00 [16:52:49]MH_I2C_Read... [16:52:49]Read from MH i2c: E2 0E 00 B2 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A2 [16:52:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:52:49]wFMCommunicate OK [16:52:49]SAM_PROTO_GetShiftState done [16:52:49]FM_GetShiftState done [16:52:49]opened in 1729470944 [16:52:49]opened+sec_in_day 1729557344 [16:52:49]quantity*price = 100021 [16:52:49]sum+1 = 100023 [16:52:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 224 21.10.2024 16:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166113 ФПД: 27371520541533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166113&fm=27371520541533&tin=02508201610067®Number=0000000000091764&sum=100000 [16:52:50]StoreToDocumentArchive [16:52:50]shift 535 fd 166113 [16:52:50]save to /storage/0535/doc_00166113 [16:52:50]save last doc name /storage/0535/doc_00166113 to /storage/kkm_last_doc_name [16:52:50]save OK [16:52:50]Clear old archive folders... [16:52:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:50]tlvbuf is 018919F0 [16:52:50]SAM_PROTO_ClearQueue [16:52:50]wFMCommunicate request_size=4 [16:52:50]MH_SAM_APDU [16:52:50]CAPDU: 80 09 00 00 [16:52:50]Write to MH i2c: E2 08 00 BF 6A 80 09 00 00 00 00 00 00 9B [16:52:50]Write i2c OK [16:52:50]MH_I2C_Read... [16:52:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:50]Read from MH i2c: E2 [16:52:50]MH_I2C_Read... [16:52:50]Read from MH i2c: E2 03 00 [16:52:50]MH_I2C_Read... [16:52:50]Read from MH i2c: E2 03 00 BF 6A 00 90 00 9D [16:52:50]RAPDU: 90 00 [16:52:50]wFMCommunicate OK [16:52:50]SAM_PROTO_ClearQueue done [16:52:50]KKMCreateOFDPacket [16:52:50]OFDProtocolAddRootSTLVToBuf [16:52:50]FM_MakeSignedData [16:52:50]FM_MakeSignedData [16:52:50]SAM_PROTO_SignData [16:52:50]wFMCommunicate request_size=4 [16:52:50]MH_SAM_APDU [16:52:50]CAPDU: 80 0D 01 02 [16:52:50]Write to MH i2c: E2 08 00 C0 6A 80 0D 01 02 00 00 00 00 A3 [16:52:50]Write i2c OK [16:52:50]MH_I2C_Read... [16:52:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:50]Read from MH i2c: E2 [16:52:50]MH_I2C_Read... [16:52:50]Read from MH i2c: E2 03 00 [16:52:50]MH_I2C_Read... [16:52:50]Read from MH i2c: E2 03 00 C0 6A 00 90 00 9E [16:52:50]RAPDU: 90 00 [16:52:50]wFMCommunicate OK [16:52:50]wFMCommunicate request_size=255 [16:52:50]MH_SAM_APDU [16:52:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 F4 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 88 02 00 35 04 06 00 18 [16:52:50]Write to MH i2c: E2 02 01 C1 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 E0 00 00 00 F4 03 04 00 F4 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 88 02 00 35 04 06 00 18 00 00 C9 [16:52:50]Write i2c OK [16:52:50]MH_I2C_Read... [16:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:51]Read from MH i2c: E2 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 03 00 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 03 00 C1 6A 00 90 00 9F [16:52:51]RAPDU: 90 00 [16:52:51]wFMCommunicate OK [16:52:51]wFMCommunicate request_size=10 [16:52:51]MH_SAM_APDU [16:52:51]CAPDU: 80 0D 02 02 05 E4 ED C2 43 5D [16:52:51]Write to MH i2c: E2 0D 00 C2 6A 80 0D 02 02 05 00 E4 ED C2 43 5D 00 00 E3 [16:52:51]Write i2c OK [16:52:51]MH_I2C_Read... [16:52:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:51]Read from MH i2c: E2 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 03 00 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 03 00 C2 6A 00 90 00 A0 [16:52:51]RAPDU: 90 00 [16:52:51]wFMCommunicate OK [16:52:51]wFMCommunicate request_size=4 [16:52:51]MH_SAM_APDU [16:52:51]CAPDU: 80 0D 03 02 [16:52:51]Write to MH i2c: E2 08 00 C3 6A 80 0D 03 02 00 00 00 00 A8 [16:52:51]Write i2c OK [16:52:51]MH_I2C_Read... [16:52:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:51]Read from MH i2c: E2 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 0B 00 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 0B 00 C3 6A 00 14 12 21 DD 6B 5D A2 2B 90 00 62 [16:52:51]RAPDU: 14 12 21 DD 6B 5D A2 2B 90 00 [16:52:51]wFMCommunicate OK [16:52:51]SAM_PROTO_SignData done [16:52:51]FM_MakeSignedData done [16:52:51]CreateOFDProtocolMessage [16:52:51]wFMCommunicate request_size=4 [16:52:51]MH_SAM_APDU [16:52:51]CAPDU: 80 11 00 00 [16:52:51]Write to MH i2c: E2 08 00 C4 6A 80 11 00 00 00 00 00 00 A8 [16:52:51]Write i2c OK [16:52:51]MH_I2C_Read... [16:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:51]Read from MH i2c: E2 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 17 00 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: E2 17 00 C4 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 00 [16:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:51]wFMCommunicate OK [16:52:51]CreateOFDProtocolMessage done [16:52:51]OFDSenderStorePacket 166113 [16:52:51]StoreOFDPacket docnum=166113 [16:52:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C BE 07 01 E0 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 F4 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 88 02 00 35 04 06 00 18 E4 ED C2 43 5D 14 12 21 DD 6B 5D A2 2B [16:52:51]CheckFolder [16:52:51]dirname=/storage/ofd_packets [16:52:51]CheckFolder done [16:52:51]ProducePacketName [16:52:51]name=ofd_packets/00166113 [16:52:51]NVStorageSaveData ofd_packets/00166113 [16:52:51]File name is /storage/ofd_packets/00166113 [16:52:51]Write 301 bytes [16:52:51]NVStorageSaveData done [16:52:51]OFDSenderStorePacket done [16:52:51]KKMCreateOFDPacket done [16:52:51]NVStorageSaveData kkm_last_timestamp [16:52:51]File name is /storage/kkm_last_timestamp [16:52:51]Write 4 bytes [16:52:51]NVStorageSaveData done [16:52:51]ExternCall_PrintAddStr [16:52:51]wPrintStart [16:52:51]Write to MH i2c: 01 00 00 C5 6A 2F [16:52:51]Write i2c OK [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: 01 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: 01 07 00 [16:52:51]MH_I2C_Read... [16:52:51]Read from MH i2c: 01 07 00 C5 6A 00 00 00 00 00 FF 0F 44 [16:52:51]RasterBufferAndPrint [16:52:51]line Счет N : (1)220684 [16:52:51]line ИНН: 02508201610067 [16:52:51]line Контрольно-Кассовый Чек [16:52:51]line ПРОДАЖА [16:52:51]line ТРК (МРК, ГНК) : 14 [16:52:51]line Товар: 2710124500 [16:52:51]line Аи-95-К-5 [16:52:51]line 13.480 * 74.20 [16:52:51]line = 1000.22 [16:52:51]line НДС 12% НСП 1% [16:52:51]line > о реализуемом товаре [16:52:51]line ОКРУГЛЕНИЕ: -0.22 [16:52:51]line ИТОГО: 1000.00 [16:52:51]line Внесено: 1000.00 [16:52:51]line СДАЧА: 0.00 [16:52:51]line НСП 1% : 8.85 [16:52:51]line НДС 12% : 106.22 [16:52:51]line Наличными: 1000.00 [16:52:51]line Безнал.: 0.00 [16:52:51]line Место: АЗС № 161 "Партнер Нефть" [16:52:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:52:51]line СНО: Общий режим [16:52:51]line Чек 224 21.10.2024 16:53 [16:52:51]line Смена: 535 ФФД: 1.0 [16:52:51]line ЗНМ: 0300000104 [16:52:51]line РНМ: 0000000000091764 [16:52:51]line Версия ККМ: 001 [16:52:51]line ФМ: 0000000000871759 [16:52:51]line ФД: 166113 [16:52:51]line ФПД: 27371520541533 [16:52:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166113&fm=27371520541533&tin=02508201610067®Number=0000000000091764&sum=100000 [16:52:51]OFD Sender: Processing packet 166113 [packets to send 48, broken 47] [16:52:51]ProducePacketName [16:52:51]name=ofd_packets/00166113 [16:52:51]OFD Sender: To server: pG, [16:52:51]CommunicateWithHost lk.salyk.kg:30040 [16:52:51]ConnectInit lk.salyk.kg [16:52:51]written 0, free lines is 4095 [16:52:51]Connected sock=7 [16:52:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C BE 07 01 E0 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 E0 00 00 00 F4 03 04 00 F4 86 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 88 02 00 35 04 06 00 18 E4 ED C2 43 5D 14 12 21 DD 6B 5D A2 2B [16:52:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 9A B8 47 00 0E 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E1 88 02 00 F4 03 04 00 62 2D 16 67 B6 04 01 00 00 AE C4 2D B3 3F 3B EC ED [16:52:51]CommunicateWithHost err = 0 [16:52:51]CheckOFDResponse [16:52:51]1017 (14) - 77093643461234 [16:52:51]1041 (16) - 0000000000871759 [16:52:51]1040 (4) - 166113 [16:52:51]1012 (4) - 21.10.2024 10:30 [16:52:51]1206 (1) - 0 [16:52:51]OFD Sender: Remove packet 166113 [16:52:51]ProducePacketName [16:52:51]name=ofd_packets/00166113 [16:52:51]NVStorageDeleteData [16:52:52]Write to MH i2c: 01 00 00 F0 6A 5A [16:52:52]Write i2c OK [16:52:52]MH_I2C_Read... [16:52:52]Read from MH i2c: 01 [16:52:52]MH_I2C_Read... [16:52:52]Read from MH i2c: 01 07 00 [16:52:52]MH_I2C_Read... [16:52:52]Read from MH i2c: 01 07 00 F0 6A 00 00 00 00 00 C2 0C 2F [16:52:52]RasterBufferAndPrint [16:52:52]line [16:52:52]line [16:52:52]line [16:52:52]line [16:52:52]line [16:52:52]written 0, free lines is 3275 [16:52:52]MH_Cut [16:52:52]Write to MH i2c: D1 01 00 F7 6A 01 33 [16:52:52]Write i2c OK [16:52:52]MH_I2C_Read... [16:52:52]Read from MH i2c: D1 [16:52:52]MH_I2C_Read... [16:52:52]Read from MH i2c: D1 01 00 [16:52:52]MH_I2C_Read... [16:52:52]Read from MH i2c: D1 01 00 F7 6A 00 32 [16:52:52]Write to MH i2c: 01 00 00 F8 6A 62 [16:52:52]Write i2c OK [16:52:52]MH_I2C_Read... [16:52:52]OFD Sender: No OFD packet to send [16:52:52]*** Cut start [16:52:52]*** Partial cut [16:52:52]*** CUTSNS_PIN = 1 [16:52:52]*** CUTSNS_PIN = 0 [16:52:53]*** Brake cut motor [16:52:53]Read from MH i2c: 01 [16:52:53]MH_I2C_Read... [16:52:53]*** Stop cut motor [16:52:53]*** Cut end [16:52:53]Read from MH i2c: 01 07 00 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: 01 07 00 F8 6A 00 00 00 00 00 FF 0F 77 [16:52:53]process_action close_receipt done [16:52:53]requested_data is exist [16:52:53]produce_requested_data [16:52:53]requested_item fm.sn is exist - process it [16:52:53]wFMCommunicate request_size=4 [16:52:53]MH_SAM_APDU [16:52:53]CAPDU: 80 11 00 00 [16:52:53]Write to MH i2c: E2 08 00 F9 6A 80 11 00 00 00 00 00 00 DD [16:52:53]Write i2c OK [16:52:53]MH_I2C_Read... [16:52:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:53]Read from MH i2c: E2 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: E2 17 00 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: E2 17 00 F9 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [16:52:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:52:53]wFMCommunicate OK [16:52:53]requested_item fd.num is exist - process it [16:52:53]SAM_PROTO_GetFieldsCounters [16:52:53]wFMCommunicate request_size=4 [16:52:53]MH_SAM_APDU [16:52:53]CAPDU: 80 13 00 00 [16:52:53]Write to MH i2c: E2 08 00 FA 6A 80 13 00 00 00 00 00 00 E0 [16:52:53]Write i2c OK [16:52:53]MH_I2C_Read... [16:52:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:53]Read from MH i2c: E2 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: E2 62 00 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: E2 62 00 FA 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [16:52:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:52:53]wFMCommunicate OK [16:52:53]SAM_PROTO_GetFieldsCounters done [16:52:53]requested_item shift.num is exist - process it [16:52:53]requested_item shift.opened is exist - process it [16:52:53]req_shift_opened [16:52:53]FM_GetShiftState [16:52:53]SAM_PROTO_GetShiftState [16:52:53]wFMCommunicate request_size=4 [16:52:53]MH_SAM_APDU [16:52:53]CAPDU: 80 13 01 00 [16:52:53]Write to MH i2c: E2 08 00 FB 6A 80 13 01 00 00 00 00 00 E2 [16:52:53]Write i2c OK [16:52:53]MH_I2C_Read... [16:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:53]Read from MH i2c: E2 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: E2 0E 00 [16:52:53]MH_I2C_Read... [16:52:53]Read from MH i2c: E2 0E 00 FB 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EB [16:52:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:52:53]wFMCommunicate OK [16:52:53]SAM_PROTO_GetShiftState done [16:52:53]FM_GetShiftState done [16:52:53]req_shift_opened done [16:52:53]requested_item shift.open_date is exist - process it [16:52:53]req_shift_open_date [16:52:53]req_shift_open_date done [16:52:53]produce_requested_data done [16:52:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166113,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:52:53]process_action_free close_receipt [16:52:53]json_value_free [16:52:53]json_value_free done [16:52:53]process_json_proto returns [16:52:53]Send response to host [16:52:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166113,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:52:53]free response buf [16:52:53]execute_script done [16:52:53]execute_script returns [16:52:53]free content buf [16:52:53]Sock 6.Close socket [16:52:53]Sock 6.Thread stoped [16:52:57]OFD Sender: No OFD packet to send [16:53:02]OFD Sender: No OFD packet to send [16:53:07]OFD Sender: No OFD packet to send [16:53:12]OFD Sender: No OFD packet to send [16:53:17]OFD Sender: No OFD packet to send [16:53:22]OFD Sender: No OFD packet to send [16:53:27]OFD Sender: No OFD packet to send [16:53:32]OFD Sender: No OFD packet to send [16:53:37]OFD Sender: No OFD packet to send [16:53:42]OFD Sender: No OFD packet to send [16:53:47]OFD Sender: No OFD packet to send [16:53:52]OFD Sender: No OFD packet to send [16:53:57]OFD Sender: No OFD packet to send [16:54:02]OFD Sender: No OFD packet to send [16:54:07]OFD Sender: No OFD packet to send [16:54:12]OFD Sender: No OFD packet to send [16:54:17]OFD Sender: No OFD packet to send [16:54:22]OFD Sender: No OFD packet to send [16:54:27]OFD Sender: No OFD packet to send [16:54:32]OFD Sender: No OFD packet to send [16:54:37]OFD Sender: No OFD packet to send [16:54:42]OFD Sender: No OFD packet to send [16:54:47]OFD Sender: No OFD packet to send [16:54:52]OFD Sender: No OFD packet to send [16:54:57]OFD Sender: No OFD packet to send [16:55:02]OFD Sender: No OFD packet to send [16:55:07]OFD Sender: No OFD packet to send [16:55:12]OFD Sender: No OFD packet to send [16:55:14]accept exits with 5 [16:55:14]New connection [16:55:14]New thread 3066920292 created [16:55:14]Thread 3066776932 joined [16:55:14]Waiting for new connection... [16:55:14] Sock 5.Parse request [16:55:14]Sock 5.Check first char [16:55:14]Sock 5.First char is OK [16:55:14]request: POST /json_proto HTTP/1.0 [16:55:14]Method: POST [16:55:14]URL: /json_proto [16:55:14]Method is POST - this is cgi request [16:55:14]url: /json_proto [16:55:14]query_string will be loaded in cgi processing [16:55:14]execute_cgi json_proto POST (null) [16:55:14]execute_cgi path=json_proto method=POST [16:55:14]POST find Content-Length [16:55:14]Host: 172.17.53.195:8080 [16:55:14]Content-Length: 682 [16:55:14]Content-Type: application/json [16:55:14] [16:55:14]POST finish read [16:55:14]Found Content-Length = 682 [16:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "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" ] } } [16:55:14]execute_script... [16:55: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)220685", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "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" ] } } [16:55:14]POST & json_proto [16:55:14]process_json_proto [16:55:14]json parsed OK: [16:55:14]protocol is kg_v1.0 [16:55:14]action value=close_receipt [16:55:14]process_action close_receipt [16:55:14]cmd_close_receipt [16:55:14]MH_GetDate [16:55:14]Write to MH i2c: F0 00 00 FC 6A 55 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: F0 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: F0 09 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: F0 09 00 FC 6A 00 85 87 16 67 21 48 4A 65 FF [16:55:14]GetLastDocTimeStamp 1729529588 [16:55:14]current date 1729529733 [16:55:14]FM_GetShiftState [16:55:14]SAM_PROTO_GetShiftState [16:55:14]wFMCommunicate request_size=4 [16:55:14]MH_SAM_APDU [16:55:14]CAPDU: 80 13 01 00 [16:55:14]Write to MH i2c: E2 08 00 FD 6A 80 13 01 00 00 00 00 00 E4 [16:55:14]Write i2c OK [16:55:14]MH_I2C_Read... [16:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:14]Read from MH i2c: E2 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 [16:55:14]MH_I2C_Read... [16:55:14]Read from MH i2c: E2 0E 00 FD 6A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 ED [16:55:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:55:14]wFMCommunicate OK [16:55:14]SAM_PROTO_GetShiftState done [16:55:14]FM_GetShiftState done [16:55:14]opened in 1729470944 [16:55:14]opened+sec_in_day 1729557344 [16:55:14]quantity*price = 200043 [16:55:14]sum+1 = 200044 [16:55:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 225 21.10.2024 16:55 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166114 ФПД: 149513002334099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166114&fm=149513002334099&tin=02508201610067®Number=0000000000091764&sum=200000 [16:55:15]StoreToDocumentArchive [16:55:15]shift 535 fd 166114 [16:55:15]save to /storage/0535/doc_00166114 [16:55:15]save last doc name /storage/0535/doc_00166114 to /storage/kkm_last_doc_name [16:55:15]save OK [16:55:15]Clear old archive folders... [16:55:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:55:15]tlvbuf is 01599DE0 [16:55:15]SAM_PROTO_ClearQueue [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 09 00 00 [16:55:15]Write to MH i2c: E2 08 00 0A 6B 80 09 00 00 00 00 00 00 E7 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 0A 6B 00 90 00 E9 [16:55:15]RAPDU: 90 00 [16:55:15]wFMCommunicate OK [16:55:15]SAM_PROTO_ClearQueue done [16:55:15]KKMCreateOFDPacket [16:55:15]OFDProtocolAddRootSTLVToBuf [16:55:15]FM_MakeSignedData [16:55:15]FM_MakeSignedData [16:55:15]SAM_PROTO_SignData [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 0D 01 02 [16:55:15]Write to MH i2c: E2 08 00 0B 6B 80 0D 01 02 00 00 00 00 EF [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 0B 6B 00 90 00 EA [16:55:15]RAPDU: 90 00 [16:55:15]wFMCommunicate OK [16:55:15]wFMCommunicate request_size=255 [16:55:15]MH_SAM_APDU [16:55: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 E1 00 00 00 F4 03 04 00 85 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 88 02 00 35 04 06 00 87 [16:55:15]Write to MH i2c: E2 02 01 0C 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 85 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 88 02 00 35 04 06 00 87 00 00 A3 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 0C 6B 00 90 00 EB [16:55:15]RAPDU: 90 00 [16:55:15]wFMCommunicate OK [16:55:15]wFMCommunicate request_size=10 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 0D 02 02 05 FB 35 64 B7 93 [16:55:15]Write to MH i2c: E2 0D 00 0D 6B 80 0D 02 02 05 00 FB 35 64 B7 93 00 00 DA [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:15]Read from MH i2c: E2 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 [16:55:15]MH_I2C_Read... [16:55:15]Read from MH i2c: E2 03 00 0D 6B 00 90 00 EC [16:55:15]RAPDU: 90 00 [16:55:15]wFMCommunicate OK [16:55:15]wFMCommunicate request_size=4 [16:55:15]MH_SAM_APDU [16:55:15]CAPDU: 80 0D 03 02 [16:55:15]Write to MH i2c: E2 08 00 0E 6B 80 0D 03 02 00 00 00 00 F4 [16:55:15]Write i2c OK [16:55:15]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 0B 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 0B 00 0E 6B 00 3A 97 B0 CB 7E 2E AB 48 90 00 E0 [16:55:16]RAPDU: 3A 97 B0 CB 7E 2E AB 48 90 00 [16:55:16]wFMCommunicate OK [16:55:16]SAM_PROTO_SignData done [16:55:16]FM_MakeSignedData done [16:55:16]CreateOFDProtocolMessage [16:55:16]wFMCommunicate request_size=4 [16:55:16]MH_SAM_APDU [16:55:16]CAPDU: 80 11 00 00 [16:55:16]Write to MH i2c: E2 08 00 0F 6B 80 11 00 00 00 00 00 00 F4 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:16]Read from MH i2c: E2 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 17 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: E2 17 00 0F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [16:55:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:55:16]wFMCommunicate OK [16:55:16]CreateOFDProtocolMessage done [16:55:16]OFDSenderStorePacket 166114 [16:55:16]StoreOFDPacket docnum=166114 [16:55:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 7D 07 01 C6 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 85 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 88 02 00 35 04 06 00 87 FB 35 64 B7 93 3A 97 B0 CB 7E 2E AB 48 [16:55:16]CheckFolder [16:55:16]dirname=/storage/ofd_packets [16:55:16]CheckFolder done [16:55:16]ProducePacketName [16:55:16]name=ofd_packets/00166114 [16:55:16]NVStorageSaveData ofd_packets/00166114 [16:55:16]File name is /storage/ofd_packets/00166114 [16:55:16]Write 301 bytes [16:55:16]NVStorageSaveData done [16:55:16]OFDSenderStorePacket done [16:55:16]KKMCreateOFDPacket done [16:55:16]NVStorageSaveData kkm_last_timestamp [16:55:16]File name is /storage/kkm_last_timestamp [16:55:16]Write 4 bytes [16:55:16]NVStorageSaveData done [16:55:16]ExternCall_PrintAddStr [16:55:16]wPrintStart [16:55:16]Write to MH i2c: 01 00 00 10 6B 7B [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 10 6B 00 00 00 00 00 FF 0F 90 [16:55:16]RasterBufferAndPrint [16:55:16]line Счет N : (1)220685 [16:55:16]line ИНН: 02508201610067 [16:55:16]line Контрольно-Кассовый Чек [16:55:16]line ПРОДАЖА [16:55:16]line ТРК (МРК, ГНК) : 44 [16:55:16]line Товар: 2710124500 [16:55:16]line Аи-95-К-5 [16:55:16]line 26.960 * 74.20 [16:55:16]line = 2000.43 [16:55:16]line НДС 12% НСП 1% [16:55:16]line > о реализуемом товаре [16:55:16]line ОКРУГЛЕНИЕ: -0.43 [16:55:16]line ИТОГО: 2000.00 [16:55:16]line Внесено: 2000.00 [16:55:16]line СДАЧА: 0.00 [16:55:16]line НСП 1% : 17.70 [16:55:16]line НДС 12% : 212.43 [16:55:16]line Наличными: 2000.00 [16:55:16]line Безнал.: 0.00 [16:55:16]line Место: АЗС № 161 "Партнер Нефть" [16:55:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:55:16]line СНО: Общий режим [16:55:16]line Чек 225 21.10.2024 16:55 [16:55:16]line Смена: 535 ФФД: 1.0 [16:55:16]line ЗНМ: 0300000104 [16:55:16]line РНМ: 0000000000091764 [16:55:16]line Версия ККМ: 001 [16:55:16]line ФМ: 0000000000871759 [16:55:16]line ФД: 166114 [16:55:16]line ФПД: 149513002334099 [16:55:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166114&fm=149513002334099&tin=02508201610067®Number=0000000000091764&sum=200000 [16:55:16]OFD Sender: Processing packet 166114 [packets to send 48, broken 47] [16:55:16]ProducePacketName [16:55:16]name=ofd_packets/00166114 [16:55:16]OFD Sender: To server: pG, [16:55:16]CommunicateWithHost lk.salyk.kg:30040 [16:55:16]ConnectInit lk.salyk.kg [16:55:16]written 0, free lines is 4095 [16:55:16]Connected sock=7 [16:55:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 7D 07 01 C6 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 85 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 88 02 00 35 04 06 00 87 FB 35 64 B7 93 3A 97 B0 CB 7E 2E AB 48 [16:55:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 DA 47 00 8D F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E2 88 02 00 F4 03 04 00 F3 2D 16 67 B6 04 01 00 00 1A 9E 51 B4 29 78 92 EE [16:55:16]CommunicateWithHost err = 0 [16:55:16]CheckOFDResponse [16:55:16]1017 (14) - 77093643461234 [16:55:16]1041 (16) - 0000000000871759 [16:55:16]1040 (4) - 166114 [16:55:16]1012 (4) - 21.10.2024 10:33 [16:55:16]1206 (1) - 0 [16:55:16]OFD Sender: Remove packet 166114 [16:55:16]ProducePacketName [16:55:16]name=ofd_packets/00166114 [16:55:16]NVStorageDeleteData [16:55:16]Write to MH i2c: 01 00 00 3B 6B A6 [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: 01 07 00 3B 6B 00 00 00 00 00 DE 0C 97 [16:55:16]RasterBufferAndPrint [16:55:16]line [16:55:16]line [16:55:16]line [16:55:16]line [16:55:16]line [16:55:16]written 0, free lines is 3300 [16:55:16]MH_Cut [16:55:16]Write to MH i2c: D1 01 00 42 6B 01 7F [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: D1 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: D1 01 00 [16:55:16]MH_I2C_Read... [16:55:16]Read from MH i2c: D1 01 00 42 6B 00 7E [16:55:16]Write to MH i2c: 01 00 00 43 6B AE [16:55:16]Write i2c OK [16:55:16]MH_I2C_Read... [16:55:17]OFD Sender: No OFD packet to send [16:55:17]*** Cut start [16:55:17]*** Partial cut [16:55:17]*** CUTSNS_PIN = 1 [16:55:17]*** CUTSNS_PIN = 0 [16:55:17]*** Brake cut motor [16:55:18]Read from MH i2c: 01 [16:55:18]MH_I2C_Read... [16:55:18]*** Stop cut motor [16:55:18]*** Cut end [16:55:18]Read from MH i2c: 01 07 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: 01 07 00 43 6B 00 00 00 00 00 FF 0F C3 [16:55:18]process_action close_receipt done [16:55:18]requested_data is exist [16:55:18]produce_requested_data [16:55:18]requested_item fm.sn is exist - process it [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 11 00 00 [16:55:18]Write to MH i2c: E2 08 00 44 6B 80 11 00 00 00 00 00 00 29 [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 17 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 17 00 44 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [16:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:55:18]wFMCommunicate OK [16:55:18]requested_item fd.num is exist - process it [16:55:18]SAM_PROTO_GetFieldsCounters [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 13 00 00 [16:55:18]Write to MH i2c: E2 08 00 45 6B 80 13 00 00 00 00 00 00 2C [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 62 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 62 00 45 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [16:55:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_GetFieldsCounters done [16:55:18]requested_item shift.num is exist - process it [16:55:18]requested_item shift.opened is exist - process it [16:55:18]req_shift_opened [16:55:18]FM_GetShiftState [16:55:18]SAM_PROTO_GetShiftState [16:55:18]wFMCommunicate request_size=4 [16:55:18]MH_SAM_APDU [16:55:18]CAPDU: 80 13 01 00 [16:55:18]Write to MH i2c: E2 08 00 46 6B 80 13 01 00 00 00 00 00 2E [16:55:18]Write i2c OK [16:55:18]MH_I2C_Read... [16:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:18]Read from MH i2c: E2 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 [16:55:18]MH_I2C_Read... [16:55:18]Read from MH i2c: E2 0E 00 46 6B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 37 [16:55:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:55:18]wFMCommunicate OK [16:55:18]SAM_PROTO_GetShiftState done [16:55:18]FM_GetShiftState done [16:55:18]req_shift_opened done [16:55:18]requested_item shift.open_date is exist - process it [16:55:18]req_shift_open_date [16:55:18]req_shift_open_date done [16:55:18]produce_requested_data done [16:55:18]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166114,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:55:18]process_action_free close_receipt [16:55:18]json_value_free [16:55:18]json_value_free done [16:55:18]process_json_proto returns [16:55:18]Send response to host [16:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166114,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:55:18]free response buf [16:55:18]execute_script done [16:55:18]execute_script returns [16:55:18]free content buf [16:55:18]Sock 5.Close socket [16:55:18]Sock 5.Thread stoped [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]accept exits with 6 [16:56:42]New connection [16:56:42]New thread 3066776932 created [16:56:42]Thread 3066920292 joined [16:56:42]Waiting for new connection... [16:56:42] Sock 6.Parse request [16:56:42]Sock 6.Check first char [16:56:42]Sock 6.First char is OK [16:56:42]request: POST /json_proto HTTP/1.0 [16:56:42]Method: POST [16:56:42]URL: /json_proto [16:56:42]Method is POST - this is cgi request [16:56:42]url: /json_proto [16:56:42]query_string will be loaded in cgi processing [16:56:42]execute_cgi json_proto POST (null) [16:56:42]execute_cgi path=json_proto method=POST [16:56:42]POST find Content-Length [16:56:42]Host: 172.17.53.195:8080 [16:56:42]Content-Length: 679 [16:56:42]Content-Type: application/json [16:56:42] [16:56:42]POST finish read [16:56:42]Found Content-Length = 679 [16:56:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:42]execute_script... [16:56: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)220686", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:56:42]POST & json_proto [16:56:42]process_json_proto [16:56:42]json parsed OK: [16:56:42]protocol is kg_v1.0 [16:56:42]action value=close_receipt [16:56:42]process_action close_receipt [16:56:42]cmd_close_receipt [16:56:42]MH_GetDate [16:56:42]Write to MH i2c: F0 00 00 47 6B A1 [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: F0 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: F0 09 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: F0 09 00 47 6B 00 DD 87 16 67 21 48 4A 65 A3 [16:56:42]GetLastDocTimeStamp 1729529733 [16:56:42]current date 1729529821 [16:56:42]FM_GetShiftState [16:56:42]SAM_PROTO_GetShiftState [16:56:42]wFMCommunicate request_size=4 [16:56:42]MH_SAM_APDU [16:56:42]CAPDU: 80 13 01 00 [16:56:42]Write to MH i2c: E2 08 00 48 6B 80 13 01 00 00 00 00 00 30 [16:56:42]Write i2c OK [16:56:42]MH_I2C_Read... [16:56:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:42]Read from MH i2c: E2 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 0E 00 [16:56:42]MH_I2C_Read... [16:56:42]Read from MH i2c: E2 0E 00 48 6B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 39 [16:56:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:56:42]wFMCommunicate OK [16:56:42]SAM_PROTO_GetShiftState done [16:56:42]FM_GetShiftState done [16:56:42]opened in 1729470944 [16:56:42]opened+sec_in_day 1729557344 [16:56:42]quantity*price = 200025 [16:56:42]sum+1 = 200026 [16:56:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 226 21.10.2024 16:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166115 ФПД: 18058154140187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165701&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166115&fm=18058154140187&tin=02508201610067®Number=0000000000091764&sum=200000 [16:56:43]StoreToDocumentArchive [16:56:43]shift 535 fd 166115 [16:56:43]save to /storage/0535/doc_00166115 [16:56:43]save last doc name /storage/0535/doc_00166115 to /storage/kkm_last_doc_name [16:56:43]save OK [16:56:43]Clear old archive folders... [16:56:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:56:43]tlvbuf is 01A72CB0 [16:56:43]SAM_PROTO_ClearQueue [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 09 00 00 [16:56:43]Write to MH i2c: E2 08 00 55 6B 80 09 00 00 00 00 00 00 32 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 55 6B 00 90 00 34 [16:56:43]RAPDU: 90 00 [16:56:43]wFMCommunicate OK [16:56:43]SAM_PROTO_ClearQueue done [16:56:43]KKMCreateOFDPacket [16:56:43]OFDProtocolAddRootSTLVToBuf [16:56:43]FM_MakeSignedData [16:56:43]FM_MakeSignedData [16:56:43]SAM_PROTO_SignData [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 0D 01 02 [16:56:43]Write to MH i2c: E2 08 00 56 6B 80 0D 01 02 00 00 00 00 3A [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 56 6B 00 90 00 35 [16:56:43]RAPDU: 90 00 [16:56:43]wFMCommunicate OK [16:56:43]wFMCommunicate request_size=255 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DD 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 88 02 00 35 04 06 00 10 6C 7D DC [16:56:43]Write to MH i2c: E2 02 01 57 6B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E2 00 00 00 F4 03 04 00 DD 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 88 02 00 35 04 06 00 10 6C 7D DC 00 00 D2 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 57 6B 00 90 00 36 [16:56:43]RAPDU: 90 00 [16:56:43]wFMCommunicate OK [16:56:43]wFMCommunicate request_size=7 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 0D 02 02 02 E2 1B [16:56:43]Write to MH i2c: E2 0A 00 58 6B 80 0D 02 02 02 00 E2 1B 00 00 3E [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 03 00 58 6B 00 90 00 37 [16:56:43]RAPDU: 90 00 [16:56:43]wFMCommunicate OK [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 0D 03 02 [16:56:43]Write to MH i2c: E2 08 00 59 6B 80 0D 03 02 00 00 00 00 3F [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 0B 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 0B 00 59 6B 00 D8 23 5B 10 5A 69 82 08 90 00 F3 [16:56:43]RAPDU: D8 23 5B 10 5A 69 82 08 90 00 [16:56:43]wFMCommunicate OK [16:56:43]SAM_PROTO_SignData done [16:56:43]FM_MakeSignedData done [16:56:43]CreateOFDProtocolMessage [16:56:43]wFMCommunicate request_size=4 [16:56:43]MH_SAM_APDU [16:56:43]CAPDU: 80 11 00 00 [16:56:43]Write to MH i2c: E2 08 00 5A 6B 80 11 00 00 00 00 00 00 3F [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:43]Read from MH i2c: E2 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 17 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: E2 17 00 5A 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [16:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:56:43]wFMCommunicate OK [16:56:43]CreateOFDProtocolMessage done [16:56:43]OFDSenderStorePacket 166115 [16:56:43]StoreOFDPacket docnum=166115 [16:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F6 AF 04 01 66 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DD 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 88 02 00 35 04 06 00 10 6C 7D DC E2 1B D8 23 5B 10 5A 69 82 08 [16:56:43]CheckFolder [16:56:43]dirname=/storage/ofd_packets [16:56:43]CheckFolder done [16:56:43]ProducePacketName [16:56:43]name=ofd_packets/00166115 [16:56:43]NVStorageSaveData ofd_packets/00166115 [16:56:43]File name is /storage/ofd_packets/00166115 [16:56:43]Write 298 bytes [16:56:43]NVStorageSaveData done [16:56:43]OFDSenderStorePacket done [16:56:43]KKMCreateOFDPacket done [16:56:43]NVStorageSaveData kkm_last_timestamp [16:56:43]File name is /storage/kkm_last_timestamp [16:56:43]Write 4 bytes [16:56:43]NVStorageSaveData done [16:56:43]ExternCall_PrintAddStr [16:56:43]wPrintStart [16:56:43]Write to MH i2c: 01 00 00 5B 6B C6 [16:56:43]Write i2c OK [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: 01 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: 01 07 00 [16:56:43]MH_I2C_Read... [16:56:43]Read from MH i2c: 01 07 00 5B 6B 00 00 00 00 00 FF 0F DB [16:56:43]RasterBufferAndPrint [16:56:43]line Счет N : (1)220686 [16:56:43]line ИНН: 02508201610067 [16:56:43]line Контрольно-Кассовый Чек [16:56:43]line ПРОДАЖА [16:56:43]line ТРК (МРК, ГНК) : 21 [16:56:43]line Товар: 2710194210 [16:56:43]line ДТ-К-5 [16:56:43]line 26.250 * 76.20 [16:56:43]line = 2000.25 [16:56:43]line НДС 12% НСП 1% [16:56:43]line > о реализуемом товаре [16:56:43]line ОКРУГЛЕНИЕ: -0.25 [16:56:43]line ИТОГО: 2000.00 [16:56:43]line Внесено: 2000.00 [16:56:43]line СДАЧА: 0.00 [16:56:43]line НСП 1% : 17.70 [16:56:43]line НДС 12% : 212.42 [16:56:43]line Наличными: 2000.00 [16:56:43]line Безнал.: 0.00 [16:56:43]line Место: АЗС № 161 "Партнер Нефть" [16:56:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:56:43]line СНО: Общий режим [16:56:43]line Чек 226 21.10.2024 16:57 [16:56:43]line Смена: 535 ФФД: 1.0 [16:56:43]line ЗНМ: 0300000104 [16:56:43]line РНМ: 0000000000091764 [16:56:43]line Версия ККМ: 001 [16:56:43]line ФМ: 0000000000871759 [16:56:43]line ФД: 166115 [16:56:43]line ФПД: 18058154140187 [16:56:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165701&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166115&fm=18058154140187&tin=02508201610067®Number=0000000000091764&sum=200000 [16:56:44]OFD Sender: Processing packet 166115 [packets to send 48, broken 47] [16:56:44]ProducePacketName [16:56:44]name=ofd_packets/00166115 [16:56:44]OFD Sender: To server: pG, [16:56:44]CommunicateWithHost lk.salyk.kg:30040 [16:56:44]ConnectInit lk.salyk.kg [16:56:44]written 0, free lines is 4095 [16:56:44]Connected sock=7 [16:56:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F6 AF 04 01 66 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 DD 87 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 88 02 00 35 04 06 00 10 6C 7D DC E2 1B D8 23 5B 10 5A 69 82 08 [16:56:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7E 36 47 00 89 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E3 88 02 00 F4 03 04 00 4B 2E 16 67 B6 04 01 00 00 39 63 9E EB A7 AE B6 AF [16:56:44]CommunicateWithHost err = 0 [16:56:44]CheckOFDResponse [16:56:44]1017 (14) - 77093643461234 [16:56:44]1041 (16) - 0000000000871759 [16:56:44]1040 (4) - 166115 [16:56:44]1012 (4) - 21.10.2024 10:34 [16:56:44]1206 (1) - 0 [16:56:44]OFD Sender: Remove packet 166115 [16:56:44]ProducePacketName [16:56:44]name=ofd_packets/00166115 [16:56:44]NVStorageDeleteData [16:56:44]Write to MH i2c: 01 00 00 86 6B F1 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: 01 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: 01 07 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: 01 07 00 86 6B 00 00 00 00 00 CC 0C D0 [16:56:44]RasterBufferAndPrint [16:56:44]line [16:56:44]line [16:56:44]line [16:56:44]line [16:56:44]line [16:56:44]written 0, free lines is 3281 [16:56:44]MH_Cut [16:56:44]Write to MH i2c: D1 01 00 8D 6B 01 CA [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: D1 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: D1 01 00 [16:56:44]MH_I2C_Read... [16:56:44]Read from MH i2c: D1 01 00 8D 6B 00 C9 [16:56:44]Write to MH i2c: 01 00 00 8E 6B F9 [16:56:44]Write i2c OK [16:56:44]MH_I2C_Read... [16:56:45]OFD Sender: No OFD packet to send [16:56:45]*** Cut start [16:56:45]*** Partial cut [16:56:45]*** CUTSNS_PIN = 1 [16:56:45]*** CUTSNS_PIN = 0 [16:56:45]*** Brake cut motor [16:56:46]Read from MH i2c: 01 [16:56:46]MH_I2C_Read... [16:56:46]*** Stop cut motor [16:56:46]*** Cut end [16:56:46]Read from MH i2c: 01 07 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: 01 07 00 8E 6B 00 00 00 00 00 FF 0F 0E [16:56:46]process_action close_receipt done [16:56:46]requested_data is exist [16:56:46]produce_requested_data [16:56:46]requested_item fm.sn is exist - process it [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 11 00 00 [16:56:46]Write to MH i2c: E2 08 00 8F 6B 80 11 00 00 00 00 00 00 74 [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 17 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 17 00 8F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [16:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:56:46]wFMCommunicate OK [16:56:46]requested_item fd.num is exist - process it [16:56:46]SAM_PROTO_GetFieldsCounters [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 13 00 00 [16:56:46]Write to MH i2c: E2 08 00 90 6B 80 13 00 00 00 00 00 00 77 [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 62 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 62 00 90 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [16:56:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:46]wFMCommunicate OK [16:56:46]SAM_PROTO_GetFieldsCounters done [16:56:46]requested_item shift.num is exist - process it [16:56:46]requested_item shift.opened is exist - process it [16:56:46]req_shift_opened [16:56:46]FM_GetShiftState [16:56:46]SAM_PROTO_GetShiftState [16:56:46]wFMCommunicate request_size=4 [16:56:46]MH_SAM_APDU [16:56:46]CAPDU: 80 13 01 00 [16:56:46]Write to MH i2c: E2 08 00 91 6B 80 13 01 00 00 00 00 00 79 [16:56:46]Write i2c OK [16:56:46]MH_I2C_Read... [16:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:46]Read from MH i2c: E2 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 0E 00 [16:56:46]MH_I2C_Read... [16:56:46]Read from MH i2c: E2 0E 00 91 6B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 82 [16:56:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:56:46]wFMCommunicate OK [16:56:46]SAM_PROTO_GetShiftState done [16:56:46]FM_GetShiftState done [16:56:46]req_shift_opened done [16:56:46]requested_item shift.open_date is exist - process it [16:56:46]req_shift_open_date [16:56:46]req_shift_open_date done [16:56:46]produce_requested_data done [16:56:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166115,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:56:46]process_action_free close_receipt [16:56:46]json_value_free [16:56:46]json_value_free done [16:56:46]process_json_proto returns [16:56:46]Send response to host [16:56:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166115,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:56:46]free response buf [16:56:46]execute_script done [16:56:46]execute_script returns [16:56:46]free content buf [16:56:46]Sock 6.Close socket [16:56:46]Sock 6.Thread stoped [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:24]accept exits with 5 [16:57:24]New connection [16:57:24]New thread 3066920292 created [16:57:24]Thread 3066776932 joined [16:57:24]Waiting for new connection... [16:57:24] Sock 5.Parse request [16:57:24]Sock 5.Check first char [16:57:24]Sock 5.First char is OK [16:57:24]request: POST /json_proto HTTP/1.0 [16:57:24]Method: POST [16:57:24]URL: /json_proto [16:57:24]Method is POST - this is cgi request [16:57:24]url: /json_proto [16:57:24]query_string will be loaded in cgi processing [16:57:24]execute_cgi json_proto POST (null) [16:57:24]execute_cgi path=json_proto method=POST [16:57:24]POST find Content-Length [16:57:24]Host: 172.17.53.195:8080 [16:57:24]Content-Length: 677 [16:57:24]Content-Type: application/json [16:57:24] [16:57:24]POST finish read [16:57:24]Found Content-Length = 677 [16:57:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:24]execute_script... [16:57: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)220687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:24]POST & json_proto [16:57:24]process_json_proto [16:57:24]json parsed OK: [16:57:24]protocol is kg_v1.0 [16:57:24]action value=close_receipt [16:57:24]process_action close_receipt [16:57:24]cmd_close_receipt [16:57:24]MH_GetDate [16:57:24]Write to MH i2c: F0 00 00 92 6B EC [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: F0 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: F0 09 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: F0 09 00 92 6B 00 07 88 16 67 21 48 4A 65 19 [16:57:24]GetLastDocTimeStamp 1729529821 [16:57:24]current date 1729529863 [16:57:24]FM_GetShiftState [16:57:24]SAM_PROTO_GetShiftState [16:57:24]wFMCommunicate request_size=4 [16:57:24]MH_SAM_APDU [16:57:24]CAPDU: 80 13 01 00 [16:57:24]Write to MH i2c: E2 08 00 93 6B 80 13 01 00 00 00 00 00 7B [16:57:24]Write i2c OK [16:57:24]MH_I2C_Read... [16:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:24]Read from MH i2c: E2 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 0E 00 [16:57:24]MH_I2C_Read... [16:57:24]Read from MH i2c: E2 0E 00 93 6B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 84 [16:57:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:57:24]wFMCommunicate OK [16:57:24]SAM_PROTO_GetShiftState done [16:57:24]FM_GetShiftState done [16:57:24]opened in 1729470944 [16:57:24]opened+sec_in_day 1729557344 [16:57:24]quantity*price = 50041 [16:57:24]sum+1 = 50042 [16:57:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 227 21.10.2024 16:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166116 ФПД: 65939010427885 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166116&fm=65939010427885&tin=02508201610067®Number=0000000000091764&sum=50000 [16:57:25]StoreToDocumentArchive [16:57:25]shift 535 fd 166116 [16:57:25]save to /storage/0535/doc_00166116 [16:57:25]save last doc name /storage/0535/doc_00166116 to /storage/kkm_last_doc_name [16:57:25]save OK [16:57:25]Clear old archive folders... [16:57:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:57:25]tlvbuf is 0166B3E0 [16:57:25]SAM_PROTO_ClearQueue [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 09 00 00 [16:57:25]Write to MH i2c: E2 08 00 A0 6B 80 09 00 00 00 00 00 00 7D [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 A0 6B 00 90 00 7F [16:57:25]RAPDU: 90 00 [16:57:25]wFMCommunicate OK [16:57:25]SAM_PROTO_ClearQueue done [16:57:25]KKMCreateOFDPacket [16:57:25]OFDProtocolAddRootSTLVToBuf [16:57:25]FM_MakeSignedData [16:57:25]FM_MakeSignedData [16:57:25]SAM_PROTO_SignData [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 0D 01 02 [16:57:25]Write to MH i2c: E2 08 00 A1 6B 80 0D 01 02 00 00 00 00 85 [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 A1 6B 00 90 00 80 [16:57:25]RAPDU: 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=255 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 07 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 88 02 00 35 04 06 00 3B [16:57:25]Write to MH i2c: E2 02 01 A2 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 07 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 88 02 00 35 04 06 00 3B 00 00 CC [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 A2 6B 00 90 00 81 [16:57:25]RAPDU: 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=10 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 0D 02 02 05 F8 9F 4B 1B ED [16:57:25]Write to MH i2c: E2 0D 00 A3 6B 80 0D 02 02 05 00 F8 9F 4B 1B ED 00 00 7C [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:25]Read from MH i2c: E2 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 [16:57:25]MH_I2C_Read... [16:57:25]Read from MH i2c: E2 03 00 A3 6B 00 90 00 82 [16:57:25]RAPDU: 90 00 [16:57:25]wFMCommunicate OK [16:57:25]wFMCommunicate request_size=4 [16:57:25]MH_SAM_APDU [16:57:25]CAPDU: 80 0D 03 02 [16:57:25]Write to MH i2c: E2 08 00 A4 6B 80 0D 03 02 00 00 00 00 8A [16:57:25]Write i2c OK [16:57:25]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 0B 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 0B 00 A4 6B 00 B8 9D DE B1 2A 8E 4A AE 90 00 1F [16:57:26]RAPDU: B8 9D DE B1 2A 8E 4A AE 90 00 [16:57:26]wFMCommunicate OK [16:57:26]SAM_PROTO_SignData done [16:57:26]FM_MakeSignedData done [16:57:26]CreateOFDProtocolMessage [16:57:26]wFMCommunicate request_size=4 [16:57:26]MH_SAM_APDU [16:57:26]CAPDU: 80 11 00 00 [16:57:26]Write to MH i2c: E2 08 00 A5 6B 80 11 00 00 00 00 00 00 8A [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:26]Read from MH i2c: E2 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 17 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: E2 17 00 A5 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [16:57:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:57:26]wFMCommunicate OK [16:57:26]CreateOFDProtocolMessage done [16:57:26]OFDSenderStorePacket 166116 [16:57:26]StoreOFDPacket docnum=166116 [16:57:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 E6 07 01 CD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 07 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 88 02 00 35 04 06 00 3B F8 9F 4B 1B ED B8 9D DE B1 2A 8E 4A AE [16:57:26]CheckFolder [16:57:26]dirname=/storage/ofd_packets [16:57:26]CheckFolder done [16:57:26]ProducePacketName [16:57:26]name=ofd_packets/00166116 [16:57:26]NVStorageSaveData ofd_packets/00166116 [16:57:26]File name is /storage/ofd_packets/00166116 [16:57:26]Write 301 bytes [16:57:26]NVStorageSaveData done [16:57:26]OFDSenderStorePacket done [16:57:26]KKMCreateOFDPacket done [16:57:26]NVStorageSaveData kkm_last_timestamp [16:57:26]File name is /storage/kkm_last_timestamp [16:57:26]Write 4 bytes [16:57:26]NVStorageSaveData done [16:57:26]ExternCall_PrintAddStr [16:57:26]wPrintStart [16:57:26]Write to MH i2c: 01 00 00 A6 6B 11 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 07 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 07 00 A6 6B 00 00 00 00 00 FF 0F 26 [16:57:26]RasterBufferAndPrint [16:57:26]line Счет N : (1)220687 [16:57:26]line ИНН: 02508201610067 [16:57:26]line Контрольно-Кассовый Чек [16:57:26]line ПРОДАЖА [16:57:26]line ТРК (МРК, ГНК) : 43 [16:57:26]line Товар: 2710124130 [16:57:26]line Аи-92-К-5 [16:57:26]line 7.480 * 66.90 [16:57:26]line = 500.41 [16:57:26]line НДС 12% НСП 1% [16:57:26]line > о реализуемом товаре [16:57:26]line ОКРУГЛЕНИЕ: -0.41 [16:57:26]line ИТОГО: 500.00 [16:57:26]line Внесено: 500.00 [16:57:26]line СДАЧА: 0.00 [16:57:26]line НСП 1% : 4.43 [16:57:26]line НДС 12% : 53.14 [16:57:26]line Наличными: 500.00 [16:57:26]line Безнал.: 0.00 [16:57:26]line Место: АЗС № 161 "Партнер Нефть" [16:57:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:57:26]line СНО: Общий режим [16:57:26]line Чек 227 21.10.2024 16:57 [16:57:26]line Смена: 535 ФФД: 1.0 [16:57:26]line ЗНМ: 0300000104 [16:57:26]line РНМ: 0000000000091764 [16:57:26]line Версия ККМ: 001 [16:57:26]line ФМ: 0000000000871759 [16:57:26]line ФД: 166116 [16:57:26]line ФПД: 65939010427885 [16:57:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165743&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166116&fm=65939010427885&tin=02508201610067®Number=0000000000091764&sum=50000 [16:57:26]OFD Sender: Processing packet 166116 [packets to send 48, broken 47] [16:57:26]ProducePacketName [16:57:26]name=ofd_packets/00166116 [16:57:26]OFD Sender: To server: pG, [16:57:26]CommunicateWithHost lk.salyk.kg:30040 [16:57:26]ConnectInit lk.salyk.kg [16:57:26]written 0, free lines is 4095 [16:57:26]Connected sock=7 [16:57:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 25 E6 07 01 CD 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 07 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 88 02 00 35 04 06 00 3B F8 9F 4B 1B ED B8 9D DE B1 2A 8E 4A AE [16:57:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 49 EA 47 00 16 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E4 88 02 00 F4 03 04 00 75 2E 16 67 B6 04 01 00 00 EC 25 FC AA AA 91 AA F8 [16:57:26]CommunicateWithHost err = 0 [16:57:26]CheckOFDResponse [16:57:26]1017 (14) - 77093643461234 [16:57:26]1041 (16) - 0000000000871759 [16:57:26]1040 (4) - 166116 [16:57:26]1012 (4) - 21.10.2024 10:35 [16:57:26]1206 (1) - 0 [16:57:26]OFD Sender: Remove packet 166116 [16:57:26]ProducePacketName [16:57:26]name=ofd_packets/00166116 [16:57:26]NVStorageDeleteData [16:57:26]Write to MH i2c: 01 00 00 D1 6B 3C [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 07 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: 01 07 00 D1 6B 00 00 00 00 00 D5 0C 24 [16:57:26]RasterBufferAndPrint [16:57:26]line [16:57:26]line [16:57:26]line [16:57:26]line [16:57:26]line [16:57:26]written 0, free lines is 3293 [16:57:26]MH_Cut [16:57:26]Write to MH i2c: D1 01 00 D8 6B 01 15 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: D1 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: D1 01 00 [16:57:26]MH_I2C_Read... [16:57:26]Read from MH i2c: D1 01 00 D8 6B 00 14 [16:57:26]Write to MH i2c: 01 00 00 D9 6B 44 [16:57:26]Write i2c OK [16:57:26]MH_I2C_Read... [16:57:27]OFD Sender: No OFD packet to send [16:57:27]*** Cut start [16:57:27]*** Partial cut [16:57:27]*** CUTSNS_PIN = 1 [16:57:27]*** CUTSNS_PIN = 0 [16:57:27]*** Brake cut motor [16:57:28]Read from MH i2c: 01 [16:57:28]MH_I2C_Read... [16:57:28]*** Stop cut motor [16:57:28]*** Cut end [16:57:28]Read from MH i2c: 01 07 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: 01 07 00 D9 6B 00 00 00 00 00 FF 0F 59 [16:57:28]process_action close_receipt done [16:57:28]requested_data is exist [16:57:28]produce_requested_data [16:57:28]requested_item fm.sn is exist - process it [16:57:28]wFMCommunicate request_size=4 [16:57:28]MH_SAM_APDU [16:57:28]CAPDU: 80 11 00 00 [16:57:28]Write to MH i2c: E2 08 00 DA 6B 80 11 00 00 00 00 00 00 BF [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:28]Read from MH i2c: E2 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 17 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 17 00 DA 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [16:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:57:28]wFMCommunicate OK [16:57:28]requested_item fd.num is exist - process it [16:57:28]SAM_PROTO_GetFieldsCounters [16:57:28]wFMCommunicate request_size=4 [16:57:28]MH_SAM_APDU [16:57:28]CAPDU: 80 13 00 00 [16:57:28]Write to MH i2c: E2 08 00 DB 6B 80 13 00 00 00 00 00 00 C2 [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:28]Read from MH i2c: E2 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 62 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 62 00 DB 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [16:57:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:57:28]wFMCommunicate OK [16:57:28]SAM_PROTO_GetFieldsCounters done [16:57:28]requested_item shift.num is exist - process it [16:57:28]requested_item shift.opened is exist - process it [16:57:28]req_shift_opened [16:57:28]FM_GetShiftState [16:57:28]SAM_PROTO_GetShiftState [16:57:28]wFMCommunicate request_size=4 [16:57:28]MH_SAM_APDU [16:57:28]CAPDU: 80 13 01 00 [16:57:28]Write to MH i2c: E2 08 00 DC 6B 80 13 01 00 00 00 00 00 C4 [16:57:28]Write i2c OK [16:57:28]MH_I2C_Read... [16:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:28]Read from MH i2c: E2 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 0E 00 [16:57:28]MH_I2C_Read... [16:57:28]Read from MH i2c: E2 0E 00 DC 6B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [16:57:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:57:28]wFMCommunicate OK [16:57:28]SAM_PROTO_GetShiftState done [16:57:28]FM_GetShiftState done [16:57:28]req_shift_opened done [16:57:28]requested_item shift.open_date is exist - process it [16:57:28]req_shift_open_date [16:57:28]req_shift_open_date done [16:57:28]produce_requested_data done [16:57:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166116,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:57:28]process_action_free close_receipt [16:57:28]json_value_free [16:57:28]json_value_free done [16:57:28]process_json_proto returns [16:57:28]Send response to host [16:57:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166116,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:57:28]free response buf [16:57:28]execute_script done [16:57:28]execute_script returns [16:57:28]free content buf [16:57:28]Sock 5.Close socket [16:57:28]Sock 5.Thread stoped [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:57]OFD Sender: No OFD packet to send [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:36]accept exits with 6 [16:58:36]New connection [16:58:36]New thread 3066776932 created [16:58:36]Thread 3066920292 joined [16:58:36]Waiting for new connection... [16:58:36] Sock 6.Parse request [16:58:36]Sock 6.Check first char [16:58:36]Sock 6.First char is OK [16:58:36]request: POST /json_proto HTTP/1.0 [16:58:36]Method: POST [16:58:36]URL: /json_proto [16:58:36]Method is POST - this is cgi request [16:58:36]url: /json_proto [16:58:36]query_string will be loaded in cgi processing [16:58:36]execute_cgi json_proto POST (null) [16:58:36]execute_cgi path=json_proto method=POST [16:58:36]POST find Content-Length [16:58:36]Host: 172.17.53.195:8080 [16:58:36]Content-Length: 674 [16:58:36]Content-Type: application/json [16:58:36] [16:58:36]POST finish read [16:58:36]Found Content-Length = 674 [16:58:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:36]execute_script... [16: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)220688", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:58:36]POST & json_proto [16:58:36]process_json_proto [16:58:36]json parsed OK: [16:58:36]protocol is kg_v1.0 [16:58:36]action value=close_receipt [16:58:36]process_action close_receipt [16:58:36]cmd_close_receipt [16:58:36]MH_GetDate [16:58:36]Write to MH i2c: F0 00 00 DD 6B 37 [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: F0 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: F0 09 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: F0 09 00 DD 6B 00 4F 88 16 67 21 48 4A 65 AC [16:58:36]GetLastDocTimeStamp 1729529863 [16:58:36]current date 1729529935 [16:58:36]FM_GetShiftState [16:58:36]SAM_PROTO_GetShiftState [16:58:36]wFMCommunicate request_size=4 [16:58:36]MH_SAM_APDU [16:58:36]CAPDU: 80 13 01 00 [16:58:36]Write to MH i2c: E2 08 00 DE 6B 80 13 01 00 00 00 00 00 C6 [16:58:36]Write i2c OK [16:58:36]MH_I2C_Read... [16:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:36]Read from MH i2c: E2 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 0E 00 [16:58:36]MH_I2C_Read... [16:58:36]Read from MH i2c: E2 0E 00 DE 6B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CF [16:58:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:58:36]wFMCommunicate OK [16:58:36]SAM_PROTO_GetShiftState done [16:58:36]FM_GetShiftState done [16:58:36]opened in 1729470944 [16:58:36]opened+sec_in_day 1729557344 [16:58:36]quantity*price = 70027 [16:58:36]sum+1 = 70029 [16:58:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 228 21.10.2024 16:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166117 ФПД: 209378969280818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165856&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166117&fm=209378969280818&tin=02508201610067®Number=0000000000091764&sum=70000 [16:58:37]StoreToDocumentArchive [16:58:37]shift 535 fd 166117 [16:58:37]save to /storage/0535/doc_00166117 [16:58:37]save last doc name /storage/0535/doc_00166117 to /storage/kkm_last_doc_name [16:58:37]save OK [16:58:37]Clear old archive folders... [16:58:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:58:37]tlvbuf is 017B0C40 [16:58:37]SAM_PROTO_ClearQueue [16:58:37]wFMCommunicate request_size=4 [16:58:37]MH_SAM_APDU [16:58:37]CAPDU: 80 09 00 00 [16:58:37]Write to MH i2c: E2 08 00 EB 6B 80 09 00 00 00 00 00 00 C8 [16:58:37]Write i2c OK [16:58:37]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 EB 6B 00 90 00 CA [16:58:38]RAPDU: 90 00 [16:58:38]wFMCommunicate OK [16:58:38]SAM_PROTO_ClearQueue done [16:58:38]KKMCreateOFDPacket [16:58:38]OFDProtocolAddRootSTLVToBuf [16:58:38]FM_MakeSignedData [16:58:38]FM_MakeSignedData [16:58:38]SAM_PROTO_SignData [16:58:38]wFMCommunicate request_size=4 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 0D 01 02 [16:58:38]Write to MH i2c: E2 08 00 EC 6B 80 0D 01 02 00 00 00 00 D0 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 EC 6B 00 90 00 CB [16:58:38]RAPDU: 90 00 [16:58:38]wFMCommunicate OK [16:58:38]wFMCommunicate request_size=255 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 50 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 88 02 00 35 04 06 00 BE 6D D7 16 [16:58:38]Write to MH i2c: E2 02 01 ED 6B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 50 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 88 02 00 35 04 06 00 BE 6D D7 16 00 00 31 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 ED 6B 00 90 00 CC [16:58:38]RAPDU: 90 00 [16:58:38]wFMCommunicate OK [16:58:38]wFMCommunicate request_size=7 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 0D 02 02 02 61 32 [16:58:38]Write to MH i2c: E2 0A 00 EE 6B 80 0D 02 02 02 00 61 32 00 00 6A [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 03 00 EE 6B 00 90 00 CD [16:58:38]RAPDU: 90 00 [16:58:38]wFMCommunicate OK [16:58:38]wFMCommunicate request_size=4 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 0D 03 02 [16:58:38]Write to MH i2c: E2 08 00 EF 6B 80 0D 03 02 00 00 00 00 D5 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 0B 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 0B 00 EF 6B 00 15 F0 78 F1 DE 11 E7 3D 90 00 57 [16:58:38]RAPDU: 15 F0 78 F1 DE 11 E7 3D 90 00 [16:58:38]wFMCommunicate OK [16:58:38]SAM_PROTO_SignData done [16:58:38]FM_MakeSignedData done [16:58:38]CreateOFDProtocolMessage [16:58:38]wFMCommunicate request_size=4 [16:58:38]MH_SAM_APDU [16:58:38]CAPDU: 80 11 00 00 [16:58:38]Write to MH i2c: E2 08 00 F0 6B 80 11 00 00 00 00 00 00 D5 [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:38]Read from MH i2c: E2 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 17 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: E2 17 00 F0 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [16:58:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:58:38]wFMCommunicate OK [16:58:38]CreateOFDProtocolMessage done [16:58:38]OFDSenderStorePacket 166117 [16:58:38]StoreOFDPacket docnum=166117 [16:58:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 84 7E 04 01 D5 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 50 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 88 02 00 35 04 06 00 BE 6D D7 16 61 32 15 F0 78 F1 DE 11 E7 3D [16:58:38]CheckFolder [16:58:38]dirname=/storage/ofd_packets [16:58:38]CheckFolder done [16:58:38]ProducePacketName [16:58:38]name=ofd_packets/00166117 [16:58:38]NVStorageSaveData ofd_packets/00166117 [16:58:38]File name is /storage/ofd_packets/00166117 [16:58:38]Write 298 bytes [16:58:38]NVStorageSaveData done [16:58:38]OFDSenderStorePacket done [16:58:38]KKMCreateOFDPacket done [16:58:38]NVStorageSaveData kkm_last_timestamp [16:58:38]File name is /storage/kkm_last_timestamp [16:58:38]Write 4 bytes [16:58:38]NVStorageSaveData done [16:58:38]ExternCall_PrintAddStr [16:58:38]wPrintStart [16:58:38]Write to MH i2c: 01 00 00 F1 6B 5C [16:58:38]Write i2c OK [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: 01 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: 01 07 00 [16:58:38]MH_I2C_Read... [16:58:38]Read from MH i2c: 01 07 00 F1 6B 00 00 00 00 00 FF 0F 71 [16:58:38]RasterBufferAndPrint [16:58:38]line Счет N : (1)220688 [16:58:38]line ИНН: 02508201610067 [16:58:38]line Контрольно-Кассовый Чек [16:58:38]line ПРОДАЖА [16:58:38]line ТРК (МРК, ГНК) : 31 [16:58:38]line Товар: 2710194210 [16:58:38]line ДТ-К-5 [16:58:38]line 9.190 * 76.20 [16:58:38]line = 700.28 [16:58:38]line НДС 12% НСП 1% [16:58:38]line > о реализуемом товаре [16:58:38]line ОКРУГЛЕНИЕ: -0.28 [16:58:38]line ИТОГО: 700.00 [16:58:38]line Внесено: 700.00 [16:58:38]line СДАЧА: 0.00 [16:58:38]line НСП 1% : 6.20 [16:58:38]line НДС 12% : 74.37 [16:58:38]line Наличными: 700.00 [16:58:38]line Безнал.: 0.00 [16:58:38]line Место: АЗС № 161 "Партнер Нефть" [16:58:38]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:58:38]line СНО: Общий режим [16:58:38]line Чек 228 21.10.2024 16:58 [16:58:38]line Смена: 535 ФФД: 1.0 [16:58:38]line ЗНМ: 0300000104 [16:58:38]line РНМ: 0000000000091764 [16:58:38]line Версия ККМ: 001 [16:58:38]line ФМ: 0000000000871759 [16:58:38]line ФД: 166117 [16:58:38]line ФПД: 209378969280818 [16:58:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T165856&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166117&fm=209378969280818&tin=02508201610067®Number=0000000000091764&sum=70000 [16:58:38]OFD Sender: Processing packet 166117 [packets to send 48, broken 47] [16:58:38]ProducePacketName [16:58:38]name=ofd_packets/00166117 [16:58:38]OFD Sender: To server: pG, [16:58:38]CommunicateWithHost lk.salyk.kg:30040 [16:58:38]ConnectInit lk.salyk.kg [16:58:38]written 0, free lines is 4095 [16:58:38]Connected sock=7 [16: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 35 39 0C 01 00 00 84 7E 04 01 D5 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E4 00 00 00 F4 03 04 00 50 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 88 02 00 35 04 06 00 BE 6D D7 16 61 32 15 F0 78 F1 DE 11 E7 3D [16: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 35 39 4F 00 00 00 A6 0A 47 00 2A 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E5 88 02 00 F4 03 04 00 BD 2E 16 67 B6 04 01 00 00 30 8B 41 BA 41 4A 4E AF [16:58:39]CommunicateWithHost err = 0 [16:58:39]CheckOFDResponse [16:58:39]1017 (14) - 77093643461234 [16:58:39]1041 (16) - 0000000000871759 [16:58:39]1040 (4) - 166117 [16:58:39]1012 (4) - 21.10.2024 10:36 [16:58:39]1206 (1) - 0 [16:58:39]OFD Sender: Remove packet 166117 [16:58:39]ProducePacketName [16:58:39]name=ofd_packets/00166117 [16:58:39]NVStorageDeleteData [16:58:39]Write to MH i2c: 01 00 00 1C 6C 88 [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: 01 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: 01 07 00 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: 01 07 00 1C 6C 00 00 00 00 00 DA 0C 75 [16:58:39]RasterBufferAndPrint [16:58:39]line [16:58:39]line [16:58:39]line [16:58:39]line [16:58:39]line [16:58:39]written 0, free lines is 3301 [16:58:39]MH_Cut [16:58:39]Write to MH i2c: D1 01 00 23 6C 01 61 [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: D1 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: D1 01 00 [16:58:39]MH_I2C_Read... [16:58:39]Read from MH i2c: D1 01 00 23 6C 00 60 [16:58:39]Write to MH i2c: 01 00 00 24 6C 90 [16:58:39]Write i2c OK [16:58:39]MH_I2C_Read... [16:58:39]OFD Sender: No OFD packet to send [16:58:40]*** Cut start [16:58:40]*** Partial cut [16:58:40]*** CUTSNS_PIN = 1 [16:58:40]*** CUTSNS_PIN = 0 [16:58:40]*** Brake cut motor [16:58:40]Read from MH i2c: 01 [16:58:40]MH_I2C_Read... [16:58:40]*** Stop cut motor [16:58:40]*** Cut end [16:58:40]Read from MH i2c: 01 07 00 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: 01 07 00 24 6C 00 00 00 00 00 FF 0F A5 [16:58:40]process_action close_receipt done [16:58:40]requested_data is exist [16:58:40]produce_requested_data [16:58:40]requested_item fm.sn is exist - process it [16:58:40]wFMCommunicate request_size=4 [16:58:40]MH_SAM_APDU [16:58:40]CAPDU: 80 11 00 00 [16:58:40]Write to MH i2c: E2 08 00 25 6C 80 11 00 00 00 00 00 00 0B [16:58:40]Write i2c OK [16:58:40]MH_I2C_Read... [16:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:40]Read from MH i2c: E2 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 17 00 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 17 00 25 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [16:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:58:40]wFMCommunicate OK [16:58:40]requested_item fd.num is exist - process it [16:58:40]SAM_PROTO_GetFieldsCounters [16:58:40]wFMCommunicate request_size=4 [16:58:40]MH_SAM_APDU [16:58:40]CAPDU: 80 13 00 00 [16:58:40]Write to MH i2c: E2 08 00 26 6C 80 13 00 00 00 00 00 00 0E [16:58:40]Write i2c OK [16:58:40]MH_I2C_Read... [16:58:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:40]Read from MH i2c: E2 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 62 00 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 62 00 26 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [16: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:40]wFMCommunicate OK [16:58:40]SAM_PROTO_GetFieldsCounters done [16:58:40]requested_item shift.num is exist - process it [16:58:40]requested_item shift.opened is exist - process it [16:58:40]req_shift_opened [16:58:40]FM_GetShiftState [16:58:40]SAM_PROTO_GetShiftState [16:58:40]wFMCommunicate request_size=4 [16:58:40]MH_SAM_APDU [16:58:40]CAPDU: 80 13 01 00 [16:58:40]Write to MH i2c: E2 08 00 27 6C 80 13 01 00 00 00 00 00 10 [16:58:40]Write i2c OK [16:58:40]MH_I2C_Read... [16:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:40]Read from MH i2c: E2 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 0E 00 [16:58:40]MH_I2C_Read... [16:58:40]Read from MH i2c: E2 0E 00 27 6C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [16:58:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:58:40]wFMCommunicate OK [16:58:40]SAM_PROTO_GetShiftState done [16:58:40]FM_GetShiftState done [16:58:40]req_shift_opened done [16:58:40]requested_item shift.open_date is exist - process it [16:58:40]req_shift_open_date [16:58:40]req_shift_open_date done [16:58:40]produce_requested_data done [16:58:40]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166117,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:58:40]process_action_free close_receipt [16:58:40]json_value_free [16:58:40]json_value_free done [16:58:40]process_json_proto returns [16:58:40]Send response to host [16:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166117,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:58:40]free response buf [16:58:40]execute_script done [16:58:40]execute_script returns [16:58:40]free content buf [16:58:40]Sock 6.Close socket [16:58:40]Sock 6.Thread stoped [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]accept exits with 5 [16:59:54]New connection [16:59:54]New thread 3066920292 created [16:59:54]Thread 3066776932 joined [16:59:54]Waiting for new connection... [16:59:54] Sock 5.Parse request [16:59:54]Sock 5.Check first char [16:59:54]Sock 5.First char is OK [16:59:54]request: POST /json_proto HTTP/1.0 [16:59:54]Method: POST [16:59:54]URL: /json_proto [16:59:54]Method is POST - this is cgi request [16:59:54]url: /json_proto [16:59:54]query_string will be loaded in cgi processing [16:59:54]execute_cgi json_proto POST (null) [16:59:54]execute_cgi path=json_proto method=POST [16:59:54]POST find Content-Length [16:59:54]Host: 172.17.53.195:8080 [16:59:54]Content-Length: 677 [16:59:54]Content-Type: application/json [16:59:54] [16:59:54]POST finish read [16:59:54]Found Content-Length = 677 [16:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:54]execute_script... [16:59:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:54]POST & json_proto [16:59:54]process_json_proto [16:59:54]json parsed OK: [16:59:54]protocol is kg_v1.0 [16:59:54]action value=close_receipt [16:59:54]process_action close_receipt [16:59:54]cmd_close_receipt [16:59:54]MH_GetDate [16:59:54]Write to MH i2c: F0 00 00 28 6C 83 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: F0 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: F0 09 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: F0 09 00 28 6C 00 9D 88 16 67 21 48 4A 65 46 [16:59:54]GetLastDocTimeStamp 1729529936 [16:59:54]current date 1729530013 [16:59:54]FM_GetShiftState [16:59:54]SAM_PROTO_GetShiftState [16:59:54]wFMCommunicate request_size=4 [16:59:54]MH_SAM_APDU [16:59:54]CAPDU: 80 13 01 00 [16:59:54]Write to MH i2c: E2 08 00 29 6C 80 13 01 00 00 00 00 00 12 [16:59:54]Write i2c OK [16:59:54]MH_I2C_Read... [16:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:54]Read from MH i2c: E2 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0E 00 [16:59:54]MH_I2C_Read... [16:59:54]Read from MH i2c: E2 0E 00 29 6C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1B [16:59:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:59:54]wFMCommunicate OK [16:59:54]SAM_PROTO_GetShiftState done [16:59:54]FM_GetShiftState done [16:59:54]opened in 1729470944 [16:59:54]opened+sec_in_day 1729557344 [16:59:54]quantity*price = 15052 [16:59:54]sum+1 = 15054 [16:59:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 229 21.10.2024 17:00 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166118 ФПД: 115558700470417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170013&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166118&fm=115558700470417&tin=02508201610067®Number=0000000000091764&sum=15000 [16:59:55]StoreToDocumentArchive [16:59:55]shift 535 fd 166118 [16:59:55]save to /storage/0535/doc_00166118 [16:59:55]save last doc name /storage/0535/doc_00166118 to /storage/kkm_last_doc_name [16:59:55]save OK [16:59:55]Clear old archive folders... [16:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:55]tlvbuf is 01C0F200 [16:59:55]SAM_PROTO_ClearQueue [16:59:55]wFMCommunicate request_size=4 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 09 00 00 [16:59:55]Write to MH i2c: E2 08 00 36 6C 80 09 00 00 00 00 00 00 14 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 36 6C 00 90 00 16 [16:59:55]RAPDU: 90 00 [16:59:55]wFMCommunicate OK [16:59:55]SAM_PROTO_ClearQueue done [16:59:55]KKMCreateOFDPacket [16:59:55]OFDProtocolAddRootSTLVToBuf [16:59:55]FM_MakeSignedData [16:59:55]FM_MakeSignedData [16:59:55]SAM_PROTO_SignData [16:59:55]wFMCommunicate request_size=4 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 0D 01 02 [16:59:55]Write to MH i2c: E2 08 00 37 6C 80 0D 01 02 00 00 00 00 1C [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 03 00 37 6C 00 90 00 17 [16:59:55]RAPDU: 90 00 [16:59:55]wFMCommunicate OK [16:59:55]wFMCommunicate request_size=255 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9D 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 88 02 00 35 04 06 00 69 [16:59:55]Write to MH i2c: E2 02 01 38 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9D 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 88 02 00 35 04 06 00 69 00 00 28 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:56]Read from MH i2c: E2 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 03 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 03 00 38 6C 00 90 00 18 [16:59:56]RAPDU: 90 00 [16:59:56]wFMCommunicate OK [16:59:56]wFMCommunicate request_size=10 [16:59:56]MH_SAM_APDU [16:59:56]CAPDU: 80 0D 02 02 05 19 9B 4A D0 91 [16:59:56]Write to MH i2c: E2 0D 00 39 6C 80 0D 02 02 05 00 19 9B 4A D0 91 00 00 88 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:56]Read from MH i2c: E2 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 03 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 03 00 39 6C 00 90 00 19 [16:59:56]RAPDU: 90 00 [16:59:56]wFMCommunicate OK [16:59:56]wFMCommunicate request_size=4 [16:59:56]MH_SAM_APDU [16:59:56]CAPDU: 80 0D 03 02 [16:59:56]Write to MH i2c: E2 08 00 3A 6C 80 0D 03 02 00 00 00 00 21 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:56]Read from MH i2c: E2 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 0B 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 0B 00 3A 6C 00 04 73 BB 2E 85 9B E4 36 90 00 BC [16:59:56]RAPDU: 04 73 BB 2E 85 9B E4 36 90 00 [16:59:56]wFMCommunicate OK [16:59:56]SAM_PROTO_SignData done [16:59:56]FM_MakeSignedData done [16:59:56]CreateOFDProtocolMessage [16:59:56]wFMCommunicate request_size=4 [16:59:56]MH_SAM_APDU [16:59:56]CAPDU: 80 11 00 00 [16:59:56]Write to MH i2c: E2 08 00 3B 6C 80 11 00 00 00 00 00 00 21 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:56]Read from MH i2c: E2 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 17 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: E2 17 00 3B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [16:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:56]wFMCommunicate OK [16:59:56]CreateOFDProtocolMessage done [16:59:56]OFDSenderStorePacket 166118 [16:59:56]StoreOFDPacket docnum=166118 [16:59:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 1F 07 01 C8 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9D 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 88 02 00 35 04 06 00 69 19 9B 4A D0 91 04 73 BB 2E 85 9B E4 36 [16:59:56]CheckFolder [16:59:56]dirname=/storage/ofd_packets [16:59:56]CheckFolder done [16:59:56]ProducePacketName [16:59:56]name=ofd_packets/00166118 [16:59:56]NVStorageSaveData ofd_packets/00166118 [16:59:56]File name is /storage/ofd_packets/00166118 [16:59:56]Write 301 bytes [16:59:56]NVStorageSaveData done [16:59:56]OFDSenderStorePacket done [16:59:56]KKMCreateOFDPacket done [16:59:56]NVStorageSaveData kkm_last_timestamp [16:59:56]File name is /storage/kkm_last_timestamp [16:59:56]Write 4 bytes [16:59:56]NVStorageSaveData done [16:59:56]ExternCall_PrintAddStr [16:59:56]wPrintStart [16:59:56]Write to MH i2c: 01 00 00 3C 6C A8 [16:59:56]Write i2c OK [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 07 00 [16:59:56]MH_I2C_Read... [16:59:56]Read from MH i2c: 01 07 00 3C 6C 00 00 00 00 00 FF 0F BD [16:59:56]RasterBufferAndPrint [16:59:56]line Счет N : (1)220689 [16:59:56]line ИНН: 02508201610067 [16:59:56]line Контрольно-Кассовый Чек [16:59:56]line ПРОДАЖА [16:59:56]line ТРК (МРК, ГНК) : 13 [16:59:56]line Товар: 2710124130 [16:59:56]line Аи-92-К-5 [16:59:56]line 2.250 * 66.90 [16:59:56]line = 150.53 [16:59:56]line НДС 12% НСП 1% [16:59:56]line > о реализуемом товаре [16:59:56]line ОКРУГЛЕНИЕ: -0.53 [16:59:56]line ИТОГО: 150.00 [16:59:56]line Внесено: 150.00 [16:59:56]line СДАЧА: 0.00 [16:59:56]line НСП 1% : 1.33 [16:59:56]line НДС 12% : 15.98 [16:59:56]line Наличными: 150.00 [16:59:56]line Безнал.: 0.00 [16:59:56]line Место: АЗС № 161 "Партнер Нефть" [16:59:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [16:59:56]line СНО: Общий режим [16:59:56]line Чек 229 21.10.2024 17:00 [16:59:56]line Смена: 535 ФФД: 1.0 [16:59:56]line ЗНМ: 0300000104 [16:59:56]line РНМ: 0000000000091764 [16:59:56]line Версия ККМ: 001 [16:59:56]line ФМ: 0000000000871759 [16:59:56]line ФД: 166118 [16:59:56]line ФПД: 115558700470417 [16:59:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170013&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166118&fm=115558700470417&tin=02508201610067®Number=0000000000091764&sum=15000 [16:59:56]OFD Sender: Processing packet 166118 [packets to send 48, broken 47] [16:59:56]ProducePacketName [16:59:56]name=ofd_packets/00166118 [16:59:56]OFD Sender: To server: pG, [16:59:56]CommunicateWithHost lk.salyk.kg:30040 [16:59:56]ConnectInit lk.salyk.kg [16:59:56]written 0, free lines is 4095 [16:59:56]Connected sock=7 [16:59:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 1F 07 01 C8 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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 9D 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 88 02 00 35 04 06 00 69 19 9B 4A D0 91 04 73 BB 2E 85 9B E4 36 [16:59:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C2 2F 47 00 0A 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E6 88 02 00 F4 03 04 00 0B 2F 16 67 B6 04 01 00 00 0F C4 7E F8 44 94 D0 FE [16:59:56]CommunicateWithHost err = 0 [16:59:56]CheckOFDResponse [16:59:56]1017 (14) - 77093643461234 [16:59:56]1041 (16) - 0000000000871759 [16:59:56]1040 (4) - 166118 [16:59:56]1012 (4) - 21.10.2024 10:38 [16:59:56]1206 (1) - 0 [16:59:56]OFD Sender: Remove packet 166118 [16:59:56]ProducePacketName [16:59:56]name=ofd_packets/00166118 [16:59:56]NVStorageDeleteData [16:59:57]Write to MH i2c: 01 00 00 67 6C D3 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 07 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 07 00 67 6C 00 00 00 00 00 DA 0C C0 [16:59:57]RasterBufferAndPrint [16:59:57]line [16:59:57]line [16:59:57]line [16:59:57]line [16:59:57]line [16:59:57]written 0, free lines is 3297 [16:59:57]MH_Cut [16:59:57]Write to MH i2c: D1 01 00 6E 6C 01 AC [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: D1 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: D1 01 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: D1 01 00 6E 6C 00 AB [16:59:57]Write to MH i2c: 01 00 00 6F 6C DB [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]OFD Sender: No OFD packet to send [16:59:57]*** Cut start [16:59:57]*** Partial cut [16:59:57]*** CUTSNS_PIN = 1 [16:59:57]*** CUTSNS_PIN = 0 [16:59:58]*** Brake cut motor [16:59:58]Read from MH i2c: 01 [16:59:58]MH_I2C_Read... [16:59:58]*** Stop cut motor [16:59:58]*** Cut end [16:59:58]Read from MH i2c: 01 07 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: 01 07 00 6F 6C 00 00 00 00 00 FF 0F F0 [16:59:58]process_action close_receipt done [16:59:58]requested_data is exist [16:59:58]produce_requested_data [16:59:58]requested_item fm.sn is exist - process it [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 11 00 00 [16:59:58]Write to MH i2c: E2 08 00 70 6C 80 11 00 00 00 00 00 00 56 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 70 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AE [16:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [16:59:58]wFMCommunicate OK [16:59:58]requested_item fd.num is exist - process it [16:59:58]SAM_PROTO_GetFieldsCounters [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 13 00 00 [16:59:58]Write to MH i2c: E2 08 00 71 6C 80 13 00 00 00 00 00 00 59 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 62 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 62 00 71 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [16:59:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_GetFieldsCounters done [16:59:58]requested_item shift.num is exist - process it [16:59:58]requested_item shift.opened is exist - process it [16:59:58]req_shift_opened [16:59:58]FM_GetShiftState [16:59:58]SAM_PROTO_GetShiftState [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 13 01 00 [16:59:58]Write to MH i2c: E2 08 00 72 6C 80 13 01 00 00 00 00 00 5B [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0E 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0E 00 72 6C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 64 [16:59:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_GetShiftState done [16:59:58]FM_GetShiftState done [16:59:58]req_shift_opened done [16:59:58]requested_item shift.open_date is exist - process it [16:59:58]req_shift_open_date [16:59:58]req_shift_open_date done [16:59:58]produce_requested_data done [16:59:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166118,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [16:59:58]process_action_free close_receipt [16:59:58]json_value_free [16:59:58]json_value_free done [16:59:58]process_json_proto returns [16:59:58]Send response to host [16:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166118,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [16:59:58]free response buf [16:59:58]execute_script done [16:59:58]execute_script returns [16:59:58]free content buf [16:59:58]Sock 5.Close socket [16:59:58]Sock 5.Thread stoped [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:44]accept exits with 6 [17:00:44]New connection [17:00:44]New thread 3066776932 created [17:00:44]Thread 3066920292 joined [17:00:44]Waiting for new connection... [17:00:44] Sock 6.Parse request [17:00:44]Sock 6.Check first char [17:00:44]Sock 6.First char is OK [17:00:44]request: POST /json_proto HTTP/1.0 [17:00:44]Method: POST [17:00:44]URL: /json_proto [17:00:44]Method is POST - this is cgi request [17:00:44]url: /json_proto [17:00:44]query_string will be loaded in cgi processing [17:00:44]execute_cgi json_proto POST (null) [17:00:44]execute_cgi path=json_proto method=POST [17:00:44]POST find Content-Length [17:00:44]Host: 172.17.53.195:8080 [17:00:44]Content-Length: 677 [17:00:44]Content-Type: application/json [17:00:44] [17:00:44]POST finish read [17:00:44]Found Content-Length = 677 [17:00:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:44]execute_script... [17:00: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)220690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:44]POST & json_proto [17:00:44]process_json_proto [17:00:44]json parsed OK: [17:00:44]protocol is kg_v1.0 [17:00:44]action value=close_receipt [17:00:44]process_action close_receipt [17:00:44]cmd_close_receipt [17:00:44]MH_GetDate [17:00:44]Write to MH i2c: F0 00 00 73 6C CE [17:00:44]Write i2c OK [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: F0 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: F0 09 00 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: F0 09 00 73 6C 00 D0 88 16 67 21 48 4A 65 C4 [17:00:44]GetLastDocTimeStamp 1729530013 [17:00:44]current date 1729530064 [17:00:44]FM_GetShiftState [17:00:44]SAM_PROTO_GetShiftState [17:00:44]wFMCommunicate request_size=4 [17:00:44]MH_SAM_APDU [17:00:44]CAPDU: 80 13 01 00 [17:00:44]Write to MH i2c: E2 08 00 74 6C 80 13 01 00 00 00 00 00 5D [17:00:44]Write i2c OK [17:00:44]MH_I2C_Read... [17:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:44]Read from MH i2c: E2 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 0E 00 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 0E 00 74 6C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 66 [17:00:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:00:44]wFMCommunicate OK [17:00:44]SAM_PROTO_GetShiftState done [17:00:44]FM_GetShiftState done [17:00:44]opened in 1729470944 [17:00:44]opened+sec_in_day 1729557344 [17:00:44]quantity*price = 49974 [17:00:44]sum+1 = 49975 [17:00:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 230 21.10.2024 17:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166119 ФПД: 280640934101016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166119&fm=280640934101016&tin=02508201610067®Number=0000000000091764&sum=49900 [17:00:46]StoreToDocumentArchive [17:00:46]shift 535 fd 166119 [17:00:46]save to /storage/0535/doc_00166119 [17:00:46]save last doc name /storage/0535/doc_00166119 to /storage/kkm_last_doc_name [17:00:46]save OK [17:00:46]Clear old archive folders... [17:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:00:46]tlvbuf is 014DA750 [17:00:46]SAM_PROTO_ClearQueue [17:00:46]wFMCommunicate request_size=4 [17:00:46]MH_SAM_APDU [17:00:46]CAPDU: 80 09 00 00 [17:00:46]Write to MH i2c: E2 08 00 81 6C 80 09 00 00 00 00 00 00 5F [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:46]Read from MH i2c: E2 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 81 6C 00 90 00 61 [17:00:46]RAPDU: 90 00 [17:00:46]wFMCommunicate OK [17:00:46]SAM_PROTO_ClearQueue done [17:00:46]KKMCreateOFDPacket [17:00:46]OFDProtocolAddRootSTLVToBuf [17:00:46]FM_MakeSignedData [17:00:46]FM_MakeSignedData [17:00:46]SAM_PROTO_SignData [17:00:46]wFMCommunicate request_size=4 [17:00:46]MH_SAM_APDU [17:00:46]CAPDU: 80 0D 01 02 [17:00:46]Write to MH i2c: E2 08 00 82 6C 80 0D 01 02 00 00 00 00 67 [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:46]Read from MH i2c: E2 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 82 6C 00 90 00 62 [17:00:46]RAPDU: 90 00 [17:00:46]wFMCommunicate OK [17:00:46]wFMCommunicate request_size=255 [17:00:46]MH_SAM_APDU [17:00: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D0 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 88 02 00 35 04 06 00 FF [17:00:46]Write to MH i2c: E2 02 01 83 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D0 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 88 02 00 35 04 06 00 FF 00 00 22 [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:46]Read from MH i2c: E2 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 83 6C 00 90 00 63 [17:00:46]RAPDU: 90 00 [17:00:46]wFMCommunicate OK [17:00:46]wFMCommunicate request_size=10 [17:00:46]MH_SAM_APDU [17:00:46]CAPDU: 80 0D 02 02 05 3D CF 2F C0 18 [17:00:46]Write to MH i2c: E2 0D 00 84 6C 80 0D 02 02 05 00 3D CF 2F C0 18 00 00 87 [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:46]Read from MH i2c: E2 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 03 00 84 6C 00 90 00 64 [17:00:46]RAPDU: 90 00 [17:00:46]wFMCommunicate OK [17:00:46]wFMCommunicate request_size=4 [17:00:46]MH_SAM_APDU [17:00:46]CAPDU: 80 0D 03 02 [17:00:46]Write to MH i2c: E2 08 00 85 6C 80 0D 03 02 00 00 00 00 6C [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:46]Read from MH i2c: E2 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 0B 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 0B 00 85 6C 00 90 A3 B0 E2 77 1F 45 46 90 00 53 [17:00:46]RAPDU: 90 A3 B0 E2 77 1F 45 46 90 00 [17:00:46]wFMCommunicate OK [17:00:46]SAM_PROTO_SignData done [17:00:46]FM_MakeSignedData done [17:00:46]CreateOFDProtocolMessage [17:00:46]wFMCommunicate request_size=4 [17:00:46]MH_SAM_APDU [17:00:46]CAPDU: 80 11 00 00 [17:00:46]Write to MH i2c: E2 08 00 86 6C 80 11 00 00 00 00 00 00 6C [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:46]Read from MH i2c: E2 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 17 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: E2 17 00 86 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C4 [17:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:00:46]wFMCommunicate OK [17:00:46]CreateOFDProtocolMessage done [17:00:46]OFDSenderStorePacket 166119 [17:00:46]StoreOFDPacket docnum=166119 [17:00:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 07 6B 07 01 7D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D0 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 88 02 00 35 04 06 00 FF 3D CF 2F C0 18 90 A3 B0 E2 77 1F 45 46 [17:00:46]CheckFolder [17:00:46]dirname=/storage/ofd_packets [17:00:46]CheckFolder done [17:00:46]ProducePacketName [17:00:46]name=ofd_packets/00166119 [17:00:46]NVStorageSaveData ofd_packets/00166119 [17:00:46]File name is /storage/ofd_packets/00166119 [17:00:46]Write 301 bytes [17:00:46]NVStorageSaveData done [17:00:46]OFDSenderStorePacket done [17:00:46]KKMCreateOFDPacket done [17:00:46]NVStorageSaveData kkm_last_timestamp [17:00:46]File name is /storage/kkm_last_timestamp [17:00:46]Write 4 bytes [17:00:46]NVStorageSaveData done [17:00:46]ExternCall_PrintAddStr [17:00:46]wPrintStart [17:00:46]Write to MH i2c: 01 00 00 87 6C F3 [17:00:46]Write i2c OK [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: 01 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: 01 07 00 [17:00:46]MH_I2C_Read... [17:00:46]Read from MH i2c: 01 07 00 87 6C 00 00 00 00 00 FF 0F 08 [17:00:46]RasterBufferAndPrint [17:00:46]line Счет N : (1)220690 [17:00:46]line ИНН: 02508201610067 [17:00:46]line Контрольно-Кассовый Чек [17:00:46]line ПРОДАЖА [17:00:46]line ТРК (МРК, ГНК) : 13 [17:00:46]line Товар: 2710124130 [17:00:46]line Аи-92-К-5 [17:00:46]line 7.470 * 66.90 [17:00:46]line = 499.74 [17:00:46]line НДС 12% НСП 1% [17:00:46]line > о реализуемом товаре [17:00:46]line ОКРУГЛЕНИЕ: -0.74 [17:00:46]line ИТОГО: 499.00 [17:00:46]line Внесено: 500.00 [17:00:46]line СДАЧА: 1.00 [17:00:46]line НСП 1% : 4.42 [17:00:46]line НДС 12% : 53.07 [17:00:46]line Наличными: 499.00 [17:00:46]line Безнал.: 0.00 [17:00:46]line Место: АЗС № 161 "Партнер Нефть" [17:00:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:00:46]line СНО: Общий режим [17:00:46]line Чек 230 21.10.2024 17:01 [17:00:46]line Смена: 535 ФФД: 1.0 [17:00:46]line ЗНМ: 0300000104 [17:00:46]line РНМ: 0000000000091764 [17:00:46]line Версия ККМ: 001 [17:00:46]line ФМ: 0000000000871759 [17:00:46]line ФД: 166119 [17:00:46]line ФПД: 280640934101016 [17:00:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170104&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166119&fm=280640934101016&tin=02508201610067®Number=0000000000091764&sum=49900 [17:00:46]OFD Sender: Processing packet 166119 [packets to send 48, broken 47] [17:00:46]ProducePacketName [17:00:46]name=ofd_packets/00166119 [17:00:46]OFD Sender: To server: pG, [17:00:46]CommunicateWithHost lk.salyk.kg:30040 [17:00:46]ConnectInit lk.salyk.kg [17:00:46]written 0, free lines is 4095 [17:00:47]Connected sock=7 [17:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 07 6B 07 01 7D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 D0 88 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 88 02 00 35 04 06 00 FF 3D CF 2F C0 18 90 A3 B0 E2 77 1F 45 46 [17:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F7 AD 47 00 79 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E7 88 02 00 F4 03 04 00 3E 2F 16 67 B6 04 01 00 00 97 EA 03 9F 43 76 46 08 [17:00:47]CommunicateWithHost err = 0 [17:00:47]CheckOFDResponse [17:00:47]1017 (14) - 77093643461234 [17:00:47]1041 (16) - 0000000000871759 [17:00:47]1040 (4) - 166119 [17:00:47]1012 (4) - 21.10.2024 10:38 [17:00:47]1206 (1) - 0 [17:00:47]OFD Sender: Remove packet 166119 [17:00:47]ProducePacketName [17:00:47]name=ofd_packets/00166119 [17:00:47]NVStorageDeleteData [17:00:47]Write to MH i2c: 01 00 00 B2 6C 1E [17:00:47]Write i2c OK [17:00:47]MH_I2C_Read... [17:00:47]Read from MH i2c: 01 [17:00:47]MH_I2C_Read... [17:00:47]Read from MH i2c: 01 07 00 [17:00:47]MH_I2C_Read... [17:00:47]Read from MH i2c: 01 07 00 B2 6C 00 00 00 00 00 C2 0C F3 [17:00:47]RasterBufferAndPrint [17:00:47]line [17:00:47]line [17:00:47]line [17:00:47]line [17:00:47]line [17:00:47]written 0, free lines is 3275 [17:00:47]MH_Cut [17:00:47]Write to MH i2c: D1 01 00 B9 6C 01 F7 [17:00:47]Write i2c OK [17:00:47]MH_I2C_Read... [17:00:47]Read from MH i2c: D1 [17:00:47]MH_I2C_Read... [17:00:47]Read from MH i2c: D1 01 00 [17:00:47]MH_I2C_Read... [17:00:47]Read from MH i2c: D1 01 00 B9 6C 00 F6 [17:00:47]Write to MH i2c: 01 00 00 BA 6C 26 [17:00:47]Write i2c OK [17:00:47]MH_I2C_Read... [17:00:47]OFD Sender: No OFD packet to send [17:00:48]*** Cut start [17:00:48]*** Partial cut [17:00:48]*** CUTSNS_PIN = 1 [17:00:48]*** CUTSNS_PIN = 0 [17:00:48]*** Brake cut motor [17:00:48]Read from MH i2c: 01 [17:00:48]MH_I2C_Read... [17:00:48]*** Stop cut motor [17:00:48]*** Cut end [17:00:48]Read from MH i2c: 01 07 00 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: 01 07 00 BA 6C 00 00 00 00 00 FF 0F 3B [17:00:48]process_action close_receipt done [17:00:48]requested_data is exist [17:00:48]produce_requested_data [17:00:48]requested_item fm.sn is exist - process it [17:00:48]wFMCommunicate request_size=4 [17:00:48]MH_SAM_APDU [17:00:48]CAPDU: 80 11 00 00 [17:00:48]Write to MH i2c: E2 08 00 BB 6C 80 11 00 00 00 00 00 00 A1 [17:00:48]Write i2c OK [17:00:48]MH_I2C_Read... [17:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:48]Read from MH i2c: E2 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: E2 17 00 [17:00:48]MH_I2C_Read... [17:00:48]Read from MH i2c: E2 17 00 BB 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F9 [17:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:00:48]wFMCommunicate OK [17:00:48]requested_item fd.num is exist - process it [17:00:48]SAM_PROTO_GetFieldsCounters [17:00:48]wFMCommunicate request_size=4 [17:00:48]MH_SAM_APDU [17:00:48]CAPDU: 80 13 00 00 [17:00:48]Write to MH i2c: E2 08 00 BC 6C 80 13 00 00 00 00 00 00 A4 [17:00:48]Write i2c OK [17:00:48]MH_I2C_Read... [17:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:49]Read from MH i2c: E2 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 62 00 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 62 00 BC 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [17:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:49]wFMCommunicate OK [17:00:49]SAM_PROTO_GetFieldsCounters done [17:00:49]requested_item shift.num is exist - process it [17:00:49]requested_item shift.opened is exist - process it [17:00:49]req_shift_opened [17:00:49]FM_GetShiftState [17:00:49]SAM_PROTO_GetShiftState [17:00:49]wFMCommunicate request_size=4 [17:00:49]MH_SAM_APDU [17:00:49]CAPDU: 80 13 01 00 [17:00:49]Write to MH i2c: E2 08 00 BD 6C 80 13 01 00 00 00 00 00 A6 [17:00:49]Write i2c OK [17:00:49]MH_I2C_Read... [17:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:49]Read from MH i2c: E2 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 0E 00 [17:00:49]MH_I2C_Read... [17:00:49]Read from MH i2c: E2 0E 00 BD 6C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AF [17:00:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:00:49]wFMCommunicate OK [17:00:49]SAM_PROTO_GetShiftState done [17:00:49]FM_GetShiftState done [17:00:49]req_shift_opened done [17:00:49]requested_item shift.open_date is exist - process it [17:00:49]req_shift_open_date [17:00:49]req_shift_open_date done [17:00:49]produce_requested_data done [17:00:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166119,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:00:49]process_action_free close_receipt [17:00:49]json_value_free [17:00:49]json_value_free done [17:00:49]process_json_proto returns [17:00:49]Send response to host [17:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166119,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:00:49]free response buf [17:00:49]execute_script done [17:00:49]execute_script returns [17:00:49]free content buf [17:00:49]Sock 6.Close socket [17:00:49]Sock 6.Thread stoped [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:06]accept exits with 5 [17:02:06]New connection [17:02:06]New thread 3066920292 created [17:02:06]Thread 3066776932 joined [17:02:06]Waiting for new connection... [17:02:06] Sock 5.Parse request [17:02:06]Sock 5.Check first char [17:02:06]Sock 5.First char is OK [17:02:06]request: POST /json_proto HTTP/1.0 [17:02:06]Method: POST [17:02:06]URL: /json_proto [17:02:06]Method is POST - this is cgi request [17:02:06]url: /json_proto [17:02:06]query_string will be loaded in cgi processing [17:02:06]execute_cgi json_proto POST (null) [17:02:06]execute_cgi path=json_proto method=POST [17:02:06]POST find Content-Length [17:02:06]Host: 172.17.53.195:8080 [17:02:06]Content-Length: 677 [17:02:06]Content-Type: application/json [17:02:06] [17:02:06]POST finish read [17:02:06]Found Content-Length = 677 [17:02:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:06]execute_script... [17:02: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)220691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:06]POST & json_proto [17:02:06]process_json_proto [17:02:06]json parsed OK: [17:02:06]protocol is kg_v1.0 [17:02:06]action value=close_receipt [17:02:06]process_action close_receipt [17:02:06]cmd_close_receipt [17:02:06]MH_GetDate [17:02:06]Write to MH i2c: F0 00 00 BE 6C 19 [17:02:06]Write i2c OK [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 09 00 [17:02:06]MH_I2C_Read... [17:02:06]Read from MH i2c: F0 09 00 BE 6C 00 22 89 16 67 21 48 4A 65 62 [17:02:06]GetLastDocTimeStamp 1729530064 [17:02:06]current date 1729530146 [17:02:06]FM_GetShiftState [17:02:06]SAM_PROTO_GetShiftState [17:02:06]wFMCommunicate request_size=4 [17:02:06]MH_SAM_APDU [17:02:06]CAPDU: 80 13 01 00 [17:02:06]Write to MH i2c: E2 08 00 BF 6C 80 13 01 00 00 00 00 00 A8 [17:02:06]Write i2c OK [17:02:06]MH_I2C_Read... [17:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:07]Read from MH i2c: E2 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 0E 00 [17:02:07]MH_I2C_Read... [17:02:07]Read from MH i2c: E2 0E 00 BF 6C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B1 [17:02:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:02:07]wFMCommunicate OK [17:02:07]SAM_PROTO_GetShiftState done [17:02:07]FM_GetShiftState done [17:02:07]opened in 1729470944 [17:02:07]opened+sec_in_day 1729557344 [17:02:07]quantity*price = 30038 [17:02:07]sum+1 = 30039 [17:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 231 21.10.2024 17:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166120 ФПД: 245830764217404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170226&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166120&fm=245830764217404&tin=02508201610067®Number=0000000000091764&sum=30000 [17:02:08]StoreToDocumentArchive [17:02:08]shift 535 fd 166120 [17:02:08]save to /storage/0535/doc_00166120 [17:02:08]save last doc name /storage/0535/doc_00166120 to /storage/kkm_last_doc_name [17:02:08]save OK [17:02:08]Clear old archive folders... [17:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:08]tlvbuf is 01599950 [17:02:08]SAM_PROTO_ClearQueue [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 09 00 00 [17:02:08]Write to MH i2c: E2 08 00 CC 6C 80 09 00 00 00 00 00 00 AA [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 CC 6C 00 90 00 AC [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]SAM_PROTO_ClearQueue done [17:02:08]KKMCreateOFDPacket [17:02:08]OFDProtocolAddRootSTLVToBuf [17:02:08]FM_MakeSignedData [17:02:08]FM_MakeSignedData [17:02:08]SAM_PROTO_SignData [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 01 02 [17:02:08]Write to MH i2c: E2 08 00 CD 6C 80 0D 01 02 00 00 00 00 B2 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 CD 6C 00 90 00 AD [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=255 [17:02:08]MH_SAM_APDU [17:02: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 22 89 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 88 02 00 35 04 06 00 DF [17:02:08]Write to MH i2c: E2 02 01 CE 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 22 89 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 88 02 00 35 04 06 00 DF 00 00 B5 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 CE 6C 00 90 00 AE [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=10 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 02 02 05 94 EF 60 44 3C [17:02:08]Write to MH i2c: E2 0D 00 CF 6C 80 0D 02 02 05 00 94 EF 60 44 3C 00 00 22 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 03 00 CF 6C 00 90 00 AF [17:02:08]RAPDU: 90 00 [17:02:08]wFMCommunicate OK [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 0D 03 02 [17:02:08]Write to MH i2c: E2 08 00 D0 6C 80 0D 03 02 00 00 00 00 B7 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 0B 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 0B 00 D0 6C 00 32 65 F8 D7 61 A2 8D 03 90 00 B1 [17:02:08]RAPDU: 32 65 F8 D7 61 A2 8D 03 90 00 [17:02:08]wFMCommunicate OK [17:02:08]SAM_PROTO_SignData done [17:02:08]FM_MakeSignedData done [17:02:08]CreateOFDProtocolMessage [17:02:08]wFMCommunicate request_size=4 [17:02:08]MH_SAM_APDU [17:02:08]CAPDU: 80 11 00 00 [17:02:08]Write to MH i2c: E2 08 00 D1 6C 80 11 00 00 00 00 00 00 B7 [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:08]Read from MH i2c: E2 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 17 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: E2 17 00 D1 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [17:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:08]wFMCommunicate OK [17:02:08]CreateOFDProtocolMessage done [17:02:08]OFDSenderStorePacket 166120 [17:02:08]StoreOFDPacket docnum=166120 [17:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 C5 07 01 32 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 22 89 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 88 02 00 35 04 06 00 DF 94 EF 60 44 3C 32 65 F8 D7 61 A2 8D 03 [17:02:08]CheckFolder [17:02:08]dirname=/storage/ofd_packets [17:02:08]CheckFolder done [17:02:08]ProducePacketName [17:02:08]name=ofd_packets/00166120 [17:02:08]NVStorageSaveData ofd_packets/00166120 [17:02:08]File name is /storage/ofd_packets/00166120 [17:02:08]Write 301 bytes [17:02:08]NVStorageSaveData done [17:02:08]OFDSenderStorePacket done [17:02:08]KKMCreateOFDPacket done [17:02:08]NVStorageSaveData kkm_last_timestamp [17:02:08]File name is /storage/kkm_last_timestamp [17:02:08]Write 4 bytes [17:02:08]NVStorageSaveData done [17:02:08]ExternCall_PrintAddStr [17:02:08]wPrintStart [17:02:08]Write to MH i2c: 01 00 00 D2 6C 3E [17:02:08]Write i2c OK [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 [17:02:08]MH_I2C_Read... [17:02:08]Read from MH i2c: 01 07 00 D2 6C 00 00 00 00 00 FF 0F 53 [17:02:08]RasterBufferAndPrint [17:02:08]line Счет N : (1)220691 [17:02:08]line ИНН: 02508201610067 [17:02:08]line Контрольно-Кассовый Чек [17:02:08]line ПРОДАЖА [17:02:08]line ТРК (МРК, ГНК) : 33 [17:02:08]line Товар: 2710124130 [17:02:08]line Аи-92-К-5 [17:02:08]line 4.490 * 66.90 [17:02:08]line = 300.38 [17:02:08]line НДС 12% НСП 1% [17:02:08]line > о реализуемом товаре [17:02:08]line ОКРУГЛЕНИЕ: -0.38 [17:02:08]line ИТОГО: 300.00 [17:02:08]line Внесено: 300.00 [17:02:08]line СДАЧА: 0.00 [17:02:08]line НСП 1% : 2.66 [17:02:08]line НДС 12% : 31.90 [17:02:08]line Наличными: 300.00 [17:02:08]line Безнал.: 0.00 [17:02:08]line Место: АЗС № 161 "Партнер Нефть" [17:02:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:02:08]line СНО: Общий режим [17:02:08]line Чек 231 21.10.2024 17:02 [17:02:08]line Смена: 535 ФФД: 1.0 [17:02:08]line ЗНМ: 0300000104 [17:02:08]line РНМ: 0000000000091764 [17:02:08]line Версия ККМ: 001 [17:02:08]line ФМ: 0000000000871759 [17:02:08]line ФД: 166120 [17:02:08]line ФПД: 245830764217404 [17:02:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170226&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166120&fm=245830764217404&tin=02508201610067®Number=0000000000091764&sum=30000 [17:02:09]OFD Sender: Processing packet 166120 [packets to send 48, broken 47] [17:02:09]ProducePacketName [17:02:09]name=ofd_packets/00166120 [17:02:09]OFD Sender: To server: pG, [17:02:09]CommunicateWithHost lk.salyk.kg:30040 [17:02:09]ConnectInit lk.salyk.kg [17:02:09]written 0, free lines is 4095 [17:02:09]Connected sock=7 [17:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 C5 07 01 32 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 22 89 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 88 02 00 35 04 06 00 DF 94 EF 60 44 3C 32 65 F8 D7 61 A2 8D 03 [17:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AF 90 47 00 C5 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E8 88 02 00 F4 03 04 00 90 2F 16 67 B6 04 01 00 00 80 C5 AB 82 E6 84 24 3E [17:02:09]CommunicateWithHost err = 0 [17:02:09]CheckOFDResponse [17:02:09]1017 (14) - 77093643461234 [17:02:09]1041 (16) - 0000000000871759 [17:02:09]1040 (4) - 166120 [17:02:09]1012 (4) - 21.10.2024 10:40 [17:02:09]1206 (1) - 0 [17:02:09]OFD Sender: Remove packet 166120 [17:02:09]ProducePacketName [17:02:09]name=ofd_packets/00166120 [17:02:09]NVStorageDeleteData [17:02:09]Write to MH i2c: 01 00 00 FD 6C 69 [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 07 00 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: 01 07 00 FD 6C 00 00 00 00 00 DA 0C 56 [17:02:09]RasterBufferAndPrint [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]line [17:02:09]written 0, free lines is 3300 [17:02:09]MH_Cut [17:02:09]Write to MH i2c: D1 01 00 04 6D 01 43 [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 01 00 [17:02:09]MH_I2C_Read... [17:02:09]Read from MH i2c: D1 01 00 04 6D 00 42 [17:02:09]Write to MH i2c: 01 00 00 05 6D 72 [17:02:09]Write i2c OK [17:02:09]MH_I2C_Read... [17:02:09]OFD Sender: No OFD packet to send [17:02:10]*** Cut start [17:02:10]*** Partial cut [17:02:10]*** CUTSNS_PIN = 1 [17:02:10]*** CUTSNS_PIN = 0 [17:02:10]*** Brake cut motor [17:02:10]Read from MH i2c: 01 [17:02:10]MH_I2C_Read... [17:02:10]*** Stop cut motor [17:02:10]*** Cut end [17:02:10]Read from MH i2c: 01 07 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: 01 07 00 05 6D 00 00 00 00 00 FF 0F 87 [17:02:10]process_action close_receipt done [17:02:10]requested_data is exist [17:02:10]produce_requested_data [17:02:10]requested_item fm.sn is exist - process it [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 11 00 00 [17:02:10]Write to MH i2c: E2 08 00 06 6D 80 11 00 00 00 00 00 00 ED [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:10]Read from MH i2c: E2 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 17 00 [17:02:10]MH_I2C_Read... [17:02:10]Read from MH i2c: E2 17 00 06 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [17:02:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:02:10]wFMCommunicate OK [17:02:10]requested_item fd.num is exist - process it [17:02:10]SAM_PROTO_GetFieldsCounters [17:02:10]wFMCommunicate request_size=4 [17:02:10]MH_SAM_APDU [17:02:10]CAPDU: 80 13 00 00 [17:02:10]Write to MH i2c: E2 08 00 07 6D 80 13 00 00 00 00 00 00 F0 [17:02:10]Write i2c OK [17:02:10]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 62 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 62 00 07 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [17:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_GetFieldsCounters done [17:02:11]requested_item shift.num is exist - process it [17:02:11]requested_item shift.opened is exist - process it [17:02:11]req_shift_opened [17:02:11]FM_GetShiftState [17:02:11]SAM_PROTO_GetShiftState [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 13 01 00 [17:02:11]Write to MH i2c: E2 08 00 08 6D 80 13 01 00 00 00 00 00 F2 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 08 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FB [17:02:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_GetShiftState done [17:02:11]FM_GetShiftState done [17:02:11]req_shift_opened done [17:02:11]requested_item shift.open_date is exist - process it [17:02:11]req_shift_open_date [17:02:11]req_shift_open_date done [17:02:11]produce_requested_data done [17:02:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166120,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:02:11]process_action_free close_receipt [17:02:11]json_value_free [17:02:11]json_value_free done [17:02:11]process_json_proto returns [17:02:11]Send response to host [17:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166120,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:02:11]free response buf [17:02:11]execute_script done [17:02:11]execute_script returns [17:02:11]free content buf [17:02:11]Sock 5.Close socket [17:02:11]Sock 5.Thread stoped [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:20]accept exits with 6 [17:08:20]New connection [17:08:20]New thread 3066776932 created [17:08:20]Thread 3066920292 joined [17:08:20]Waiting for new connection... [17:08:20] Sock 6.Parse request [17:08:20]Sock 6.Check first char [17:08:20]Sock 6.First char is OK [17:08:20]request: POST /json_proto HTTP/1.0 [17:08:20]Method: POST [17:08:20]URL: /json_proto [17:08:20]Method is POST - this is cgi request [17:08:20]url: /json_proto [17:08:20]query_string will be loaded in cgi processing [17:08:20]execute_cgi json_proto POST (null) [17:08:20]execute_cgi path=json_proto method=POST [17:08:20]POST find Content-Length [17:08:20]Host: 172.17.53.195:8080 [17:08:20]Content-Length: 679 [17:08:20]Content-Type: application/json [17:08:20] [17:08:20]POST finish read [17:08:20]Found Content-Length = 679 [17:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:20]execute_script... [17:08: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)220693", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:20]POST & json_proto [17:08:20]process_json_proto [17:08:20]json parsed OK: [17:08:20]protocol is kg_v1.0 [17:08:20]action value=close_receipt [17:08:20]process_action close_receipt [17:08:20]cmd_close_receipt [17:08:20]MH_GetDate [17:08:20]Write to MH i2c: F0 00 00 09 6D 65 [17:08:20]Write i2c OK [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: F0 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: F0 09 00 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: F0 09 00 09 6D 00 97 8A 16 67 21 48 4A 65 24 [17:08:20]GetLastDocTimeStamp 1729530146 [17:08:20]current date 1729530519 [17:08:20]FM_GetShiftState [17:08:20]SAM_PROTO_GetShiftState [17:08:20]wFMCommunicate request_size=4 [17:08:20]MH_SAM_APDU [17:08:20]CAPDU: 80 13 01 00 [17:08:20]Write to MH i2c: E2 08 00 0A 6D 80 13 01 00 00 00 00 00 F4 [17:08:20]Write i2c OK [17:08:20]MH_I2C_Read... [17:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:20]Read from MH i2c: E2 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: E2 0E 00 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: E2 0E 00 0A 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FD [17:08:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:08:20]wFMCommunicate OK [17:08:20]SAM_PROTO_GetShiftState done [17:08:20]FM_GetShiftState done [17:08:20]opened in 1729470944 [17:08:20]opened+sec_in_day 1729557344 [17:08:20]quantity*price = 200025 [17:08:20]sum+1 = 200026 [17:08:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 232 21.10.2024 17:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166121 ФПД: 171450963336245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166121&fm=171450963336245&tin=02508201610067®Number=0000000000091764&sum=200000 [17:08:21]StoreToDocumentArchive [17:08:21]shift 535 fd 166121 [17:08:21]save to /storage/0535/doc_00166121 [17:08:21]save last doc name /storage/0535/doc_00166121 to /storage/kkm_last_doc_name [17:08:21]save OK [17:08:21]Clear old archive folders... [17:08:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:21]tlvbuf is 01839F20 [17:08:21]SAM_PROTO_ClearQueue [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 09 00 00 [17:08:21]Write to MH i2c: E2 08 00 17 6D 80 09 00 00 00 00 00 00 F6 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 17 6D 00 90 00 F8 [17:08:21]RAPDU: 90 00 [17:08:21]wFMCommunicate OK [17:08:21]SAM_PROTO_ClearQueue done [17:08:21]KKMCreateOFDPacket [17:08:21]OFDProtocolAddRootSTLVToBuf [17:08:21]FM_MakeSignedData [17:08:21]FM_MakeSignedData [17:08:21]SAM_PROTO_SignData [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 0D 01 02 [17:08:21]Write to MH i2c: E2 08 00 18 6D 80 0D 01 02 00 00 00 00 FE [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 18 6D 00 90 00 F9 [17:08:21]RAPDU: 90 00 [17:08:21]wFMCommunicate OK [17:08:21]wFMCommunicate request_size=255 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 97 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 88 02 00 35 04 06 00 9B EF 09 C4 [17:08:21]Write to MH i2c: E2 02 01 19 6D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 97 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 88 02 00 35 04 06 00 9B EF 09 C4 00 00 E1 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:21]Read from MH i2c: E2 03 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 19 6D 00 90 00 FA [17:08:21]RAPDU: 90 00 [17:08:21]wFMCommunicate OK [17:08:21]wFMCommunicate request_size=7 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 0D 02 02 02 1C 35 [17:08:21]Write to MH i2c: E2 0A 00 1A 6D 80 0D 02 02 02 00 1C 35 00 00 56 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 03 00 1A 6D 00 90 00 FB [17:08:21]RAPDU: 90 00 [17:08:21]wFMCommunicate OK [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 0D 03 02 [17:08:21]Write to MH i2c: E2 08 00 1B 6D 80 0D 03 02 00 00 00 00 03 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 0B 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 0B 00 1B 6D 00 CE B1 68 5B 72 E1 62 73 90 00 6E [17:08:21]RAPDU: CE B1 68 5B 72 E1 62 73 90 00 [17:08:21]wFMCommunicate OK [17:08:21]SAM_PROTO_SignData done [17:08:21]FM_MakeSignedData done [17:08:21]CreateOFDProtocolMessage [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 11 00 00 [17:08:21]Write to MH i2c: E2 08 00 1C 6D 80 11 00 00 00 00 00 00 03 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:22]Read from MH i2c: E2 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 17 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: E2 17 00 1C 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [17:08:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:22]wFMCommunicate OK [17:08:22]CreateOFDProtocolMessage done [17:08:22]OFDSenderStorePacket 166121 [17:08:22]StoreOFDPacket docnum=166121 [17:08:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E4 E2 04 01 05 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 97 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 88 02 00 35 04 06 00 9B EF 09 C4 1C 35 CE B1 68 5B 72 E1 62 73 [17:08:22]CheckFolder [17:08:22]dirname=/storage/ofd_packets [17:08:22]CheckFolder done [17:08:22]ProducePacketName [17:08:22]name=ofd_packets/00166121 [17:08:22]NVStorageSaveData ofd_packets/00166121 [17:08:22]File name is /storage/ofd_packets/00166121 [17:08:22]Write 298 bytes [17:08:22]NVStorageSaveData done [17:08:22]OFDSenderStorePacket done [17:08:22]KKMCreateOFDPacket done [17:08:22]NVStorageSaveData kkm_last_timestamp [17:08:22]File name is /storage/kkm_last_timestamp [17:08:22]Write 4 bytes [17:08:22]NVStorageSaveData done [17:08:22]ExternCall_PrintAddStr [17:08:22]wPrintStart [17:08:22]Write to MH i2c: 01 00 00 1D 6D 8A [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: 01 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: 01 07 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: 01 07 00 1D 6D 00 00 00 00 00 FF 0F 9F [17:08:22]RasterBufferAndPrint [17:08:22]line Счет N : (1)220693 [17:08:22]line ИНН: 02508201610067 [17:08:22]line Контрольно-Кассовый Чек [17:08:22]line ПРОДАЖА [17:08:22]line ТРК (МРК, ГНК) : 11 [17:08:22]line Товар: 2710194210 [17:08:22]line ДТ-К-5 [17:08:22]line 26.250 * 76.20 [17:08:22]line = 2000.25 [17:08:22]line НДС 12% НСП 1% [17:08:22]line > о реализуемом товаре [17:08:22]line ОКРУГЛЕНИЕ: -0.25 [17:08:22]line ИТОГО: 2000.00 [17:08:22]line Внесено: 2000.00 [17:08:22]line СДАЧА: 0.00 [17:08:22]line НСП 1% : 17.70 [17:08:22]line НДС 12% : 212.42 [17:08:22]line Наличными: 2000.00 [17:08:22]line Безнал.: 0.00 [17:08:22]line Место: АЗС № 161 "Партнер Нефть" [17:08:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:08:22]line СНО: Общий режим [17:08:22]line Чек 232 21.10.2024 17:08 [17:08:22]line Смена: 535 ФФД: 1.0 [17:08:22]line ЗНМ: 0300000104 [17:08:22]line РНМ: 0000000000091764 [17:08:22]line Версия ККМ: 001 [17:08:22]line ФМ: 0000000000871759 [17:08:22]line ФД: 166121 [17:08:22]line ФПД: 171450963336245 [17:08:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170839&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166121&fm=171450963336245&tin=02508201610067®Number=0000000000091764&sum=200000 [17:08:22]written 0, free lines is 4095 [17:08:22]OFD Sender: Processing packet 166121 [packets to send 48, broken 47] [17:08:22]ProducePacketName [17:08:22]name=ofd_packets/00166121 [17:08:22]OFD Sender: To server: pG, [17:08:22]CommunicateWithHost lk.salyk.kg:30040 [17:08:22]ConnectInit lk.salyk.kg [17:08:22]Connected sock=7 [17:08:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E4 E2 04 01 05 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 E8 00 00 00 F4 03 04 00 97 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 88 02 00 35 04 06 00 9B EF 09 C4 1C 35 CE B1 68 5B 72 E1 62 73 [17:08:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F1 B3 47 00 CC 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 E9 88 02 00 F4 03 04 00 05 31 16 67 B6 04 01 00 00 6F 35 8C AE F1 99 78 A2 [17:08:22]CommunicateWithHost err = 0 [17:08:22]CheckOFDResponse [17:08:22]1017 (14) - 77093643461234 [17:08:22]1041 (16) - 0000000000871759 [17:08:22]1040 (4) - 166121 [17:08:22]1012 (4) - 21.10.2024 10:46 [17:08:22]1206 (1) - 0 [17:08:22]OFD Sender: Remove packet 166121 [17:08:22]ProducePacketName [17:08:22]name=ofd_packets/00166121 [17:08:22]NVStorageDeleteData [17:08:22]Write to MH i2c: 01 00 00 48 6D B5 [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: 01 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: 01 07 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: 01 07 00 48 6D 00 00 00 00 00 D2 0C 9A [17:08:22]RasterBufferAndPrint [17:08:22]line [17:08:22]line [17:08:22]line [17:08:22]line [17:08:22]line [17:08:22]written 0, free lines is 3287 [17:08:22]MH_Cut [17:08:22]Write to MH i2c: D1 01 00 4F 6D 01 8E [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: D1 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: D1 01 00 [17:08:22]MH_I2C_Read... [17:08:22]Read from MH i2c: D1 01 00 4F 6D 00 8D [17:08:22]Write to MH i2c: 01 00 00 50 6D BD [17:08:22]Write i2c OK [17:08:22]MH_I2C_Read... [17:08:22]OFD Sender: No OFD packet to send [17:08:23]*** Cut start [17:08:23]*** Partial cut [17:08:23]*** CUTSNS_PIN = 1 [17:08:23]*** CUTSNS_PIN = 0 [17:08:23]*** Brake cut motor [17:08:23]Read from MH i2c: 01 [17:08:23]MH_I2C_Read... [17:08:23]*** Stop cut motor [17:08:23]*** Cut end [17:08:23]Read from MH i2c: 01 07 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: 01 07 00 50 6D 00 00 00 00 00 FF 0F D2 [17:08:23]process_action close_receipt done [17:08:23]requested_data is exist [17:08:23]produce_requested_data [17:08:23]requested_item fm.sn is exist - process it [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 11 00 00 [17:08:23]Write to MH i2c: E2 08 00 51 6D 80 11 00 00 00 00 00 00 38 [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:23]Read from MH i2c: E2 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 17 00 [17:08:23]MH_I2C_Read... [17:08:23]Read from MH i2c: E2 17 00 51 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 90 [17:08:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:23]wFMCommunicate OK [17:08:23]requested_item fd.num is exist - process it [17:08:23]SAM_PROTO_GetFieldsCounters [17:08:23]wFMCommunicate request_size=4 [17:08:23]MH_SAM_APDU [17:08:23]CAPDU: 80 13 00 00 [17:08:23]Write to MH i2c: E2 08 00 52 6D 80 13 00 00 00 00 00 00 3B [17:08:23]Write i2c OK [17:08:23]MH_I2C_Read... [17:08:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:24]Read from MH i2c: E2 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 62 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 62 00 52 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [17:08:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 E9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:24]wFMCommunicate OK [17:08:24]SAM_PROTO_GetFieldsCounters done [17:08:24]requested_item shift.num is exist - process it [17:08:24]requested_item shift.opened is exist - process it [17:08:24]req_shift_opened [17:08:24]FM_GetShiftState [17:08:24]SAM_PROTO_GetShiftState [17:08:24]wFMCommunicate request_size=4 [17:08:24]MH_SAM_APDU [17:08:24]CAPDU: 80 13 01 00 [17:08:24]Write to MH i2c: E2 08 00 53 6D 80 13 01 00 00 00 00 00 3D [17:08:24]Write i2c OK [17:08:24]MH_I2C_Read... [17:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:24]Read from MH i2c: E2 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 0E 00 [17:08:24]MH_I2C_Read... [17:08:24]Read from MH i2c: E2 0E 00 53 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 46 [17:08:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:08:24]wFMCommunicate OK [17:08:24]SAM_PROTO_GetShiftState done [17:08:24]FM_GetShiftState done [17:08:24]req_shift_opened done [17:08:24]requested_item shift.open_date is exist - process it [17:08:24]req_shift_open_date [17:08:24]req_shift_open_date done [17:08:24]produce_requested_data done [17:08:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166121,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:08:24]process_action_free close_receipt [17:08:24]json_value_free [17:08:24]json_value_free done [17:08:24]process_json_proto returns [17:08:24]Send response to host [17:08:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166121,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:08:24]free response buf [17:08:24]execute_script done [17:08:24]execute_script returns [17:08:24]free content buf [17:08:24]Sock 6.Close socket [17:08:24]Sock 6.Thread stoped [17:08:27]OFD Sender: No OFD packet to send [17:08:32]accept exits with 5 [17:08:32]New connection [17:08:32]New thread 3066920292 created [17:08:32]Thread 3066776932 joined [17:08:32]Waiting for new connection... [17:08:32] Sock 5.Parse request [17:08:32]Sock 5.Check first char [17:08:32]Sock 5.First char is OK [17:08:32]request: POST /json_proto HTTP/1.0 [17:08:32]Method: POST [17:08:32]URL: /json_proto [17:08:32]Method is POST - this is cgi request [17:08:32]url: /json_proto [17:08:32]query_string will be loaded in cgi processing [17:08:32]execute_cgi json_proto POST (null) [17:08:32]execute_cgi path=json_proto method=POST [17:08:32]POST find Content-Length [17:08:32]Host: 172.17.53.195:8080 [17:08:32]Content-Length: 763 [17:08:32]Content-Type: application/json [17:08:32] [17:08:32]POST finish read [17:08:32]Found Content-Length = 763 [17:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.300, "sum" : 480.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 480.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:32]execute_script... [17:08: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)220692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.300, "sum" : 480.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 480.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:08:32]POST & json_proto [17:08:32]process_json_proto [17:08:32]json parsed OK: [17:08:32]protocol is kg_v1.0 [17:08:32]action value=close_receipt [17:08:32]process_action close_receipt [17:08:32]cmd_close_receipt [17:08:32]MH_GetDate [17:08:32]Write to MH i2c: F0 00 00 54 6D B0 [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: F0 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: F0 09 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: F0 09 00 54 6D 00 A3 8A 16 67 21 48 4A 65 7B [17:08:32]GetLastDocTimeStamp 1729530519 [17:08:32]current date 1729530531 [17:08:32]FM_GetShiftState [17:08:32]SAM_PROTO_GetShiftState [17:08:32]wFMCommunicate request_size=4 [17:08:32]MH_SAM_APDU [17:08:32]CAPDU: 80 13 01 00 [17:08:32]Write to MH i2c: E2 08 00 55 6D 80 13 01 00 00 00 00 00 3F [17:08:32]Write i2c OK [17:08:32]MH_I2C_Read... [17:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:32]Read from MH i2c: E2 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: E2 0E 00 [17:08:32]MH_I2C_Read... [17:08:32]Read from MH i2c: E2 0E 00 55 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 48 [17:08:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:08:32]wFMCommunicate OK [17:08:32]SAM_PROTO_GetShiftState done [17:08:32]FM_GetShiftState done [17:08:32]opened in 1729470944 [17:08:32]opened+sec_in_day 1729557344 [17:08:32]quantity*price = 48006 [17:08:32]sum+1 = 48007 [17:08:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 480.06 НСП 1% : 4.25 НДС 12% : 50.98 Наличными: 0.00 Безнал.: 480.06 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 233 21.10.2024 17:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166122 ФПД: 27212145540750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166122&fm=27212145540750&tin=02508201610067®Number=0000000000091764&sum=48006 [17:08:33]StoreToDocumentArchive [17:08:33]shift 535 fd 166122 [17:08:33]save to /storage/0535/doc_00166122 [17:08:33]save last doc name /storage/0535/doc_00166122 to /storage/kkm_last_doc_name [17:08:33]save OK [17:08:33]Clear old archive folders... [17:08:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:08:33]tlvbuf is 01512D30 [17:08:33]SAM_PROTO_ClearQueue [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 09 00 00 [17:08:33]Write to MH i2c: E2 08 00 62 6D 80 09 00 00 00 00 00 00 41 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 62 6D 00 90 00 43 [17:08:33]RAPDU: 90 00 [17:08:33]wFMCommunicate OK [17:08:33]SAM_PROTO_ClearQueue done [17:08:33]KKMCreateOFDPacket [17:08:33]OFDProtocolAddRootSTLVToBuf [17:08:33]FM_MakeSignedData [17:08:33]FM_MakeSignedData [17:08:33]SAM_PROTO_SignData [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 0D 01 02 [17:08:33]Write to MH i2c: E2 08 00 63 6D 80 0D 01 02 00 00 00 00 49 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 63 6D 00 90 00 44 [17:08:33]RAPDU: 90 00 [17:08:33]wFMCommunicate OK [17:08:33]wFMCommunicate request_size=255 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 88 02 00 35 04 06 00 18 BF D2 44 [17:08:33]Write to MH i2c: E2 02 01 64 6D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 88 02 00 35 04 06 00 18 BF D2 44 00 00 B9 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 64 6D 00 90 00 45 [17:08:33]RAPDU: 90 00 [17:08:33]wFMCommunicate OK [17:08:33]wFMCommunicate request_size=7 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 0D 02 02 02 BE 8E [17:08:33]Write to MH i2c: E2 0A 00 65 6D 80 0D 02 02 02 00 BE 8E 00 00 9C [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 03 00 65 6D 00 90 00 46 [17:08:33]RAPDU: 90 00 [17:08:33]wFMCommunicate OK [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 0D 03 02 [17:08:33]Write to MH i2c: E2 08 00 66 6D 80 0D 03 02 00 00 00 00 4E [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 0B 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 0B 00 66 6D 00 DC 03 CE 08 96 99 45 71 90 00 E9 [17:08:33]RAPDU: DC 03 CE 08 96 99 45 71 90 00 [17:08:33]wFMCommunicate OK [17:08:33]SAM_PROTO_SignData done [17:08:33]FM_MakeSignedData done [17:08:33]CreateOFDProtocolMessage [17:08:33]wFMCommunicate request_size=4 [17:08:33]MH_SAM_APDU [17:08:33]CAPDU: 80 11 00 00 [17:08:33]Write to MH i2c: E2 08 00 67 6D 80 11 00 00 00 00 00 00 4E [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:33]Read from MH i2c: E2 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 17 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: E2 17 00 67 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [17:08:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:33]wFMCommunicate OK [17:08:33]CreateOFDProtocolMessage done [17:08:33]OFDSenderStorePacket 166122 [17:08:33]StoreOFDPacket docnum=166122 [17:08:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 56 A0 04 01 F5 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 88 02 00 35 04 06 00 18 BF D2 44 BE 8E DC 03 CE 08 96 99 45 71 [17:08:33]CheckFolder [17:08:33]dirname=/storage/ofd_packets [17:08:33]CheckFolder done [17:08:33]ProducePacketName [17:08:33]name=ofd_packets/00166122 [17:08:33]NVStorageSaveData ofd_packets/00166122 [17:08:33]File name is /storage/ofd_packets/00166122 [17:08:33]Write 298 bytes [17:08:33]NVStorageSaveData done [17:08:33]OFDSenderStorePacket done [17:08:33]KKMCreateOFDPacket done [17:08:33]NVStorageSaveData kkm_last_timestamp [17:08:33]File name is /storage/kkm_last_timestamp [17:08:33]Write 4 bytes [17:08:33]NVStorageSaveData done [17:08:33]ExternCall_PrintAddStr [17:08:33]wPrintStart [17:08:33]Write to MH i2c: 01 00 00 68 6D D5 [17:08:33]Write i2c OK [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: 01 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: 01 07 00 [17:08:33]MH_I2C_Read... [17:08:33]Read from MH i2c: 01 07 00 68 6D 00 00 00 00 00 FF 0F EA [17:08:33]RasterBufferAndPrint [17:08:33]line Счет N : (1)220692 [17:08:33]line ИНН: 02508201610067 [17:08:33]line Контрольно-Кассовый Чек [17:08:33]line ПРОДАЖА [17:08:33]line ТРК (МРК, ГНК) : 41 [17:08:33]line Товар: 2710194210 [17:08:33]line ДТ-К-5 [17:08:33]line 6.300 * 76.20 [17:08:33]line = 480.06 [17:08:33]line НДС 12% НСП 1% [17:08:33]line > о реализуемом товаре [17:08:33]line ИТОГО: 480.06 [17:08:33]line НСП 1% : 4.25 [17:08:33]line НДС 12% : 50.98 [17:08:33]line Наличными: 0.00 [17:08:33]line Безнал.: 480.06 [17:08:33]line Место: АЗС № 161 "Партнер Нефть" [17:08:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:08:33]line СНО: Общий режим [17:08:33]line Чек 233 21.10.2024 17:08 [17:08:33]line Смена: 535 ФФД: 1.0 [17:08:33]line ЗНМ: 0300000104 [17:08:33]line РНМ: 0000000000091764 [17:08:33]line Версия ККМ: 001 [17:08:33]line Платежная система: Mbank [17:08:33]line ФМ: 0000000000871759 [17:08:33]line ФД: 166122 [17:08:33]line ФПД: 27212145540750 [17:08:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166122&fm=27212145540750&tin=02508201610067®Number=0000000000091764&sum=48006 [17:08:34]OFD Sender: Processing packet 166122 [packets to send 48, broken 47] [17:08:34]ProducePacketName [17:08:34]name=ofd_packets/00166122 [17:08:34]OFD Sender: To server: pG, [17:08:34]CommunicateWithHost lk.salyk.kg:30040 [17:08:34]ConnectInit lk.salyk.kg [17:08:34]written 0, free lines is 4095 [17:08:34]Connected sock=7 [17:08:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 56 A0 04 01 F5 09 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9C 18 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 86 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 13 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 86 BB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 A3 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 88 02 00 35 04 06 00 18 BF D2 44 BE 8E DC 03 CE 08 96 99 45 71 [17:08:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C1 2C 47 00 3F CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EA 88 02 00 F4 03 04 00 11 31 16 67 B6 04 01 00 00 C2 D5 34 21 68 EA 2E C2 [17:08:34]CommunicateWithHost err = 0 [17:08:34]CheckOFDResponse [17:08:34]1017 (14) - 77093643461234 [17:08:34]1041 (16) - 0000000000871759 [17:08:34]1040 (4) - 166122 [17:08:34]1012 (4) - 21.10.2024 10:46 [17:08:34]1206 (1) - 0 [17:08:34]OFD Sender: Remove packet 166122 [17:08:34]ProducePacketName [17:08:34]name=ofd_packets/00166122 [17:08:34]NVStorageDeleteData [17:08:34]Write to MH i2c: 01 00 00 91 6D FE [17:08:34]Write i2c OK [17:08:34]MH_I2C_Read... [17:08:34]Read from MH i2c: 01 [17:08:34]MH_I2C_Read... [17:08:34]Read from MH i2c: 01 07 00 [17:08:34]MH_I2C_Read... [17:08:34]Read from MH i2c: 01 07 00 91 6D 00 00 00 00 00 FC 0C 0D [17:08:34]RasterBufferAndPrint [17:08:34]line [17:08:34]line [17:08:34]line [17:08:34]line [17:08:34]line [17:08:34]written 0, free lines is 3333 [17:08:34]MH_Cut [17:08:34]Write to MH i2c: D1 01 00 98 6D 01 D7 [17:08:34]Write i2c OK [17:08:34]MH_I2C_Read... [17:08:34]Read from MH i2c: D1 [17:08:34]MH_I2C_Read... [17:08:34]Read from MH i2c: D1 01 00 [17:08:34]MH_I2C_Read... [17:08:34]Read from MH i2c: D1 01 00 98 6D 00 D6 [17:08:34]Write to MH i2c: 01 00 00 99 6D 06 [17:08:34]Write i2c OK [17:08:34]MH_I2C_Read... [17:08:34]OFD Sender: No OFD packet to send [17:08:35]*** Cut start [17:08:35]*** Partial cut [17:08:35]*** CUTSNS_PIN = 1 [17:08:35]*** CUTSNS_PIN = 0 [17:08:35]*** Brake cut motor [17:08:35]Read from MH i2c: 01 [17:08:35]MH_I2C_Read... [17:08:35]*** Stop cut motor [17:08:35]*** Cut end [17:08:35]Read from MH i2c: 01 07 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: 01 07 00 99 6D 00 00 00 00 00 FF 0F 1B [17:08:35]process_action close_receipt done [17:08:35]requested_data is exist [17:08:35]produce_requested_data [17:08:35]requested_item fm.sn is exist - process it [17:08:35]wFMCommunicate request_size=4 [17:08:35]MH_SAM_APDU [17:08:35]CAPDU: 80 11 00 00 [17:08:35]Write to MH i2c: E2 08 00 9A 6D 80 11 00 00 00 00 00 00 81 [17:08:35]Write i2c OK [17:08:35]MH_I2C_Read... [17:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:35]Read from MH i2c: E2 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 17 00 [17:08:35]MH_I2C_Read... [17:08:35]Read from MH i2c: E2 17 00 9A 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [17:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:08:36]wFMCommunicate OK [17:08:36]requested_item fd.num is exist - process it [17:08:36]SAM_PROTO_GetFieldsCounters [17:08:36]wFMCommunicate request_size=4 [17:08:36]MH_SAM_APDU [17:08:36]CAPDU: 80 13 00 00 [17:08:36]Write to MH i2c: E2 08 00 9B 6D 80 13 00 00 00 00 00 00 84 [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:36]Read from MH i2c: E2 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: E2 62 00 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: E2 62 00 9B 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [17:08:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:36]wFMCommunicate OK [17:08:36]SAM_PROTO_GetFieldsCounters done [17:08:36]requested_item shift.num is exist - process it [17:08:36]requested_item shift.opened is exist - process it [17:08:36]req_shift_opened [17:08:36]FM_GetShiftState [17:08:36]SAM_PROTO_GetShiftState [17:08:36]wFMCommunicate request_size=4 [17:08:36]MH_SAM_APDU [17:08:36]CAPDU: 80 13 01 00 [17:08:36]Write to MH i2c: E2 08 00 9C 6D 80 13 01 00 00 00 00 00 86 [17:08:36]Write i2c OK [17:08:36]MH_I2C_Read... [17:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:36]Read from MH i2c: E2 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: E2 0E 00 [17:08:36]MH_I2C_Read... [17:08:36]Read from MH i2c: E2 0E 00 9C 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8F [17:08:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:08:36]wFMCommunicate OK [17:08:36]SAM_PROTO_GetShiftState done [17:08:36]FM_GetShiftState done [17:08:36]req_shift_opened done [17:08:36]requested_item shift.open_date is exist - process it [17:08:36]req_shift_open_date [17:08:36]req_shift_open_date done [17:08:36]produce_requested_data done [17:08:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166122,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:08:36]process_action_free close_receipt [17:08:36]json_value_free [17:08:36]json_value_free done [17:08:36]process_json_proto returns [17:08:36]Send response to host [17:08:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166122,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:08:36]free response buf [17:08:36]execute_script done [17:08:36]execute_script returns [17:08:36]free content buf [17:08:36]Sock 5.Close socket [17:08:36]Sock 5.Thread stoped [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:18]accept exits with 6 [17:09:18]New connection [17:09:18]New thread 3066776932 created [17:09:18]Thread 3066920292 joined [17:09:18]Waiting for new connection... [17:09:18] Sock 6.Parse request [17:09:18]Sock 6.Check first char [17:09:18]Sock 6.First char is OK [17:09:18]request: POST /json_proto HTTP/1.0 [17:09:18]Method: POST [17:09:18]URL: /json_proto [17:09:18]Method is POST - this is cgi request [17:09:18]url: /json_proto [17:09:18]query_string will be loaded in cgi processing [17:09:18]execute_cgi json_proto POST (null) [17:09:18]execute_cgi path=json_proto method=POST [17:09:18]POST find Content-Length [17:09:18]Host: 172.17.53.195:8080 [17:09:18]Content-Length: 674 [17:09:18]Content-Type: application/json [17:09:18] [17:09:18]POST finish read [17:09:18]Found Content-Length = 674 [17:09:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.660, "sum" : 355.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:18]execute_script... [17:09:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.660, "sum" : 355.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 355.00, "total" : 355.00, "payments": [ { "type": 0, "sum" : 355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:18]POST & json_proto [17:09:18]process_json_proto [17:09:18]json parsed OK: [17:09:18]protocol is kg_v1.0 [17:09:18]action value=close_receipt [17:09:18]process_action close_receipt [17:09:18]cmd_close_receipt [17:09:18]MH_GetDate [17:09:18]Write to MH i2c: F0 00 00 9D 6D F9 [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: F0 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: F0 09 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: F0 09 00 9D 6D 00 D2 8A 16 67 21 48 4A 65 F3 [17:09:18]GetLastDocTimeStamp 1729530531 [17:09:18]current date 1729530578 [17:09:18]FM_GetShiftState [17:09:18]SAM_PROTO_GetShiftState [17:09:18]wFMCommunicate request_size=4 [17:09:18]MH_SAM_APDU [17:09:18]CAPDU: 80 13 01 00 [17:09:18]Write to MH i2c: E2 08 00 9E 6D 80 13 01 00 00 00 00 00 88 [17:09:18]Write i2c OK [17:09:18]MH_I2C_Read... [17:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:18]Read from MH i2c: E2 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 0E 00 [17:09:18]MH_I2C_Read... [17:09:18]Read from MH i2c: E2 0E 00 9E 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 91 [17:09:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:09:18]wFMCommunicate OK [17:09:18]SAM_PROTO_GetShiftState done [17:09:18]FM_GetShiftState done [17:09:18]opened in 1729470944 [17:09:18]opened+sec_in_day 1729557344 [17:09:18]quantity*price = 35509 [17:09:18]sum+1 = 35510 [17:09:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 355.00 Внесено: 355.00 СДАЧА: 0.00 НСП 1% : 3.14 НДС 12% : 37.71 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 234 21.10.2024 17:09 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166123 ФПД: 280952807216489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166123&fm=280952807216489&tin=02508201610067®Number=0000000000091764&sum=35500 [17:09:20]StoreToDocumentArchive [17:09:20]shift 535 fd 166123 [17:09:20]save to /storage/0535/doc_00166123 [17:09:20]save last doc name /storage/0535/doc_00166123 to /storage/kkm_last_doc_name [17:09:20]save OK [17:09:20]Clear old archive folders... [17:09:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:09:20]tlvbuf is 01522B80 [17:09:20]SAM_PROTO_ClearQueue [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 09 00 00 [17:09:20]Write to MH i2c: E2 08 00 AB 6D 80 09 00 00 00 00 00 00 8A [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 AB 6D 00 90 00 8C [17:09:20]RAPDU: 90 00 [17:09:20]wFMCommunicate OK [17:09:20]SAM_PROTO_ClearQueue done [17:09:20]KKMCreateOFDPacket [17:09:20]OFDProtocolAddRootSTLVToBuf [17:09:20]FM_MakeSignedData [17:09:20]FM_MakeSignedData [17:09:20]SAM_PROTO_SignData [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 0D 01 02 [17:09:20]Write to MH i2c: E2 08 00 AC 6D 80 0D 01 02 00 00 00 00 92 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 AC 6D 00 90 00 8D [17:09:20]RAPDU: 90 00 [17:09:20]wFMCommunicate OK [17:09:20]wFMCommunicate request_size=255 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 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 D2 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 88 02 00 35 04 06 00 FF 86 6C 45 [17:09:20]Write to MH i2c: E2 02 01 AD 6D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 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 D2 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 88 02 00 35 04 06 00 FF 86 6C 45 00 00 53 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 AD 6D 00 90 00 8E [17:09:20]RAPDU: 90 00 [17:09:20]wFMCommunicate OK [17:09:20]wFMCommunicate request_size=7 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 0D 02 02 02 D5 69 [17:09:20]Write to MH i2c: E2 0A 00 AE 6D 80 0D 02 02 02 00 D5 69 00 00 D7 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 03 00 AE 6D 00 90 00 8F [17:09:20]RAPDU: 90 00 [17:09:20]wFMCommunicate OK [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 0D 03 02 [17:09:20]Write to MH i2c: E2 08 00 AF 6D 80 0D 03 02 00 00 00 00 97 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 0B 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 0B 00 AF 6D 00 22 6D 0D AC 60 D5 C2 D2 90 00 A9 [17:09:20]RAPDU: 22 6D 0D AC 60 D5 C2 D2 90 00 [17:09:20]wFMCommunicate OK [17:09:20]SAM_PROTO_SignData done [17:09:20]FM_MakeSignedData done [17:09:20]CreateOFDProtocolMessage [17:09:20]wFMCommunicate request_size=4 [17:09:20]MH_SAM_APDU [17:09:20]CAPDU: 80 11 00 00 [17:09:20]Write to MH i2c: E2 08 00 B0 6D 80 11 00 00 00 00 00 00 97 [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:20]Read from MH i2c: E2 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 17 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: E2 17 00 B0 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [17:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:09:20]wFMCommunicate OK [17:09:20]CreateOFDProtocolMessage done [17:09:20]OFDSenderStorePacket 166123 [17:09:20]StoreOFDPacket docnum=166123 [17:09:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E9 0B 04 01 01 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 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 D2 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 88 02 00 35 04 06 00 FF 86 6C 45 D5 69 22 6D 0D AC 60 D5 C2 D2 [17:09:20]CheckFolder [17:09:20]dirname=/storage/ofd_packets [17:09:20]CheckFolder done [17:09:20]ProducePacketName [17:09:20]name=ofd_packets/00166123 [17:09:20]NVStorageSaveData ofd_packets/00166123 [17:09:20]File name is /storage/ofd_packets/00166123 [17:09:20]Write 298 bytes [17:09:20]NVStorageSaveData done [17:09:20]OFDSenderStorePacket done [17:09:20]KKMCreateOFDPacket done [17:09:20]NVStorageSaveData kkm_last_timestamp [17:09:20]File name is /storage/kkm_last_timestamp [17:09:20]Write 4 bytes [17:09:20]NVStorageSaveData done [17:09:20]ExternCall_PrintAddStr [17:09:20]wPrintStart [17:09:20]Write to MH i2c: 01 00 00 B1 6D 1E [17:09:20]Write i2c OK [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: 01 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: 01 07 00 [17:09:20]MH_I2C_Read... [17:09:20]Read from MH i2c: 01 07 00 B1 6D 00 00 00 00 00 FF 0F 33 [17:09:20]RasterBufferAndPrint [17:09:20]line Счет N : (1)220694 [17:09:20]line ИНН: 02508201610067 [17:09:20]line Контрольно-Кассовый Чек [17:09:20]line ПРОДАЖА [17:09:20]line ТРК (МРК, ГНК) : 21 [17:09:20]line Товар: 2710194210 [17:09:20]line ДТ-К-5 [17:09:20]line 4.660 * 76.20 [17:09:20]line = 355.09 [17:09:20]line НДС 12% НСП 1% [17:09:20]line > о реализуемом товаре [17:09:20]line ОКРУГЛЕНИЕ: -0.09 [17:09:20]line ИТОГО: 355.00 [17:09:20]line Внесено: 355.00 [17:09:20]line СДАЧА: 0.00 [17:09:20]line НСП 1% : 3.14 [17:09:20]line НДС 12% : 37.71 [17:09:20]line Наличными: 355.00 [17:09:20]line Безнал.: 0.00 [17:09:20]line Место: АЗС № 161 "Партнер Нефть" [17:09:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:09:20]line СНО: Общий режим [17:09:20]line Чек 234 21.10.2024 17:09 [17:09:20]line Смена: 535 ФФД: 1.0 [17:09:20]line ЗНМ: 0300000104 [17:09:20]line РНМ: 0000000000091764 [17:09:20]line Версия ККМ: 001 [17:09:20]line ФМ: 0000000000871759 [17:09:20]line ФД: 166123 [17:09:20]line ФПД: 280952807216489 [17:09:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T170938&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166123&fm=280952807216489&tin=02508201610067®Number=0000000000091764&sum=35500 [17:09:20]OFD Sender: Processing packet 166123 [packets to send 48, broken 47] [17:09:20]ProducePacketName [17:09:20]name=ofd_packets/00166123 [17:09:20]OFD Sender: To server: pG, [17:09:20]CommunicateWithHost lk.salyk.kg:30040 [17:09:20]ConnectInit lk.salyk.kg [17:09:20]written 0, free lines is 4095 [17:09:20]Connected sock=7 [17:09:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E9 0B 04 01 01 49 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 34 12 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B5 8A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 0E 00 00 00 00 07 04 06 00 AC 8A 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 D2 8A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 88 02 00 35 04 06 00 FF 86 6C 45 D5 69 22 6D 0D AC 60 D5 C2 D2 [17:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 39 FA 47 00 78 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EB 88 02 00 F4 03 04 00 40 31 16 67 B6 04 01 00 00 17 9E 62 A4 8E 7C FD 2C [17:09:21]CommunicateWithHost err = 0 [17:09:21]CheckOFDResponse [17:09:21]1017 (14) - 77093643461234 [17:09:21]1041 (16) - 0000000000871759 [17:09:21]1040 (4) - 166123 [17:09:21]1012 (4) - 21.10.2024 10:47 [17:09:21]1206 (1) - 0 [17:09:21]OFD Sender: Remove packet 166123 [17:09:21]ProducePacketName [17:09:21]name=ofd_packets/00166123 [17:09:21]NVStorageDeleteData [17:09:21]Write to MH i2c: 01 00 00 DC 6D 49 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 07 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: 01 07 00 DC 6D 00 00 00 00 00 D2 0C 2E [17:09:21]RasterBufferAndPrint [17:09:21]line [17:09:21]line [17:09:21]line [17:09:21]line [17:09:21]line [17:09:21]written 0, free lines is 3288 [17:09:21]MH_Cut [17:09:21]Write to MH i2c: D1 01 00 E3 6D 01 22 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: D1 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: D1 01 00 [17:09:21]MH_I2C_Read... [17:09:21]Read from MH i2c: D1 01 00 E3 6D 00 21 [17:09:21]Write to MH i2c: 01 00 00 E4 6D 51 [17:09:21]Write i2c OK [17:09:21]MH_I2C_Read... [17:09:21]OFD Sender: No OFD packet to send [17:09:22]*** Cut start [17:09:22]*** Partial cut [17:09:22]*** CUTSNS_PIN = 1 [17:09:22]*** CUTSNS_PIN = 0 [17:09:22]*** Brake cut motor [17:09:22]Read from MH i2c: 01 [17:09:22]MH_I2C_Read... [17:09:22]*** Stop cut motor [17:09:22]*** Cut end [17:09:22]Read from MH i2c: 01 07 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: 01 07 00 E4 6D 00 00 00 00 00 FF 0F 66 [17:09:22]process_action close_receipt done [17:09:22]requested_data is exist [17:09:22]produce_requested_data [17:09:22]requested_item fm.sn is exist - process it [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 11 00 00 [17:09:22]Write to MH i2c: E2 08 00 E5 6D 80 11 00 00 00 00 00 00 CC [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 17 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 17 00 E5 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [17:09:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:09:22]wFMCommunicate OK [17:09:22]requested_item fd.num is exist - process it [17:09:22]SAM_PROTO_GetFieldsCounters [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 13 00 00 [17:09:22]Write to MH i2c: E2 08 00 E6 6D 80 13 00 00 00 00 00 00 CF [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:22]Read from MH i2c: E2 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 62 00 [17:09:22]MH_I2C_Read... [17:09:22]Read from MH i2c: E2 62 00 E6 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [17:09:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:09:22]wFMCommunicate OK [17:09:22]SAM_PROTO_GetFieldsCounters done [17:09:22]requested_item shift.num is exist - process it [17:09:22]requested_item shift.opened is exist - process it [17:09:22]req_shift_opened [17:09:22]FM_GetShiftState [17:09:22]SAM_PROTO_GetShiftState [17:09:22]wFMCommunicate request_size=4 [17:09:22]MH_SAM_APDU [17:09:22]CAPDU: 80 13 01 00 [17:09:22]Write to MH i2c: E2 08 00 E7 6D 80 13 01 00 00 00 00 00 D1 [17:09:22]Write i2c OK [17:09:22]MH_I2C_Read... [17:09:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:23]Read from MH i2c: E2 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: E2 0E 00 [17:09:23]MH_I2C_Read... [17:09:23]Read from MH i2c: E2 0E 00 E7 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DA [17:09:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:09:23]wFMCommunicate OK [17:09:23]SAM_PROTO_GetShiftState done [17:09:23]FM_GetShiftState done [17:09:23]req_shift_opened done [17:09:23]requested_item shift.open_date is exist - process it [17:09:23]req_shift_open_date [17:09:23]req_shift_open_date done [17:09:23]produce_requested_data done [17:09:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166123,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:09:23]process_action_free close_receipt [17:09:23]json_value_free [17:09:23]json_value_free done [17:09:23]process_json_proto returns [17:09:23]Send response to host [17:09:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166123,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:09:23]free response buf [17:09:23]execute_script done [17:09:23]execute_script returns [17:09:23]free content buf [17:09:23]Sock 6.Close socket [17:09:23]Sock 6.Thread stoped [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]accept exits with 5 [17:12:56]New connection [17:12:56]New thread 3066920292 created [17:12:56]Thread 3066776932 joined [17:12:56]Waiting for new connection... [17:12:56] Sock 5.Parse request [17:12:56]Sock 5.Check first char [17:12:56]Sock 5.First char is OK [17:12:56]request: POST /json_proto HTTP/1.0 [17:12:56]Method: POST [17:12:56]URL: /json_proto [17:12:56]Method is POST - this is cgi request [17:12:56]url: /json_proto [17:12:56]query_string will be loaded in cgi processing [17:12:56]execute_cgi json_proto POST (null) [17:12:56]execute_cgi path=json_proto method=POST [17:12:56]POST find Content-Length [17:12:56]Host: 172.17.53.195:8080 [17:12:56]Content-Length: 766 [17:12:56]Content-Type: application/json [17:12:56] [17:12:56]POST finish read [17:12:56]Found Content-Length = 766 [17:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:56]execute_script... [17:12: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)220695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:56]POST & json_proto [17:12:56]process_json_proto [17:12:56]json parsed OK: [17:12:56]protocol is kg_v1.0 [17:12:56]action value=close_receipt [17:12:56]process_action close_receipt [17:12:56]cmd_close_receipt [17:12:56]MH_GetDate [17:12:56]Write to MH i2c: F0 00 00 E8 6D 44 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: F0 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: F0 09 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: F0 09 00 E8 6D 00 AB 8B 16 67 21 48 4A 65 18 [17:12:56]GetLastDocTimeStamp 1729530578 [17:12:56]current date 1729530795 [17:12:56]FM_GetShiftState [17:12:56]SAM_PROTO_GetShiftState [17:12:56]wFMCommunicate request_size=4 [17:12:56]MH_SAM_APDU [17:12:56]CAPDU: 80 13 01 00 [17:12:56]Write to MH i2c: E2 08 00 E9 6D 80 13 01 00 00 00 00 00 D3 [17:12:56]Write i2c OK [17:12:56]MH_I2C_Read... [17:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:56]Read from MH i2c: E2 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 0E 00 [17:12:56]MH_I2C_Read... [17:12:56]Read from MH i2c: E2 0E 00 E9 6D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [17:12:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:12:56]wFMCommunicate OK [17:12:56]SAM_PROTO_GetShiftState done [17:12:56]FM_GetShiftState done [17:12:56]opened in 1729470944 [17:12:56]opened+sec_in_day 1729557344 [17:12:56]quantity*price = 50041 [17:12:56]sum+1 = 50042 [17:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 235 21.10.2024 17:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166124 ФПД: 190160993863099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166124&fm=190160993863099&tin=02508201610067®Number=0000000000091764&sum=50041 [17:12:57]StoreToDocumentArchive [17:12:57]shift 535 fd 166124 [17:12:57]save to /storage/0535/doc_00166124 [17:12:57]save last doc name /storage/0535/doc_00166124 to /storage/kkm_last_doc_name [17:12:57]save OK [17:12:57]Clear old archive folders... [17:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:57]tlvbuf is 019710E0 [17:12:57]SAM_PROTO_ClearQueue [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 09 00 00 [17:12:57]Write to MH i2c: E2 08 00 F6 6D 80 09 00 00 00 00 00 00 D5 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 F6 6D 00 90 00 D7 [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]SAM_PROTO_ClearQueue done [17:12:57]KKMCreateOFDPacket [17:12:57]OFDProtocolAddRootSTLVToBuf [17:12:57]FM_MakeSignedData [17:12:57]FM_MakeSignedData [17:12:57]SAM_PROTO_SignData [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 01 02 [17:12:57]Write to MH i2c: E2 08 00 F7 6D 80 0D 01 02 00 00 00 00 DD [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 F7 6D 00 90 00 D8 [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=255 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 AB 8B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 88 02 00 35 04 06 00 AC [17:12:57]Write to MH i2c: E2 02 01 F8 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 AB 8B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 88 02 00 35 04 06 00 AC 00 00 9E [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 F8 6D 00 90 00 D9 [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=10 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 02 02 05 F3 4E 7D 45 BB [17:12:57]Write to MH i2c: E2 0D 00 F9 6D 80 0D 02 02 05 00 F3 4E 7D 45 BB 00 00 A8 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 03 00 F9 6D 00 90 00 DA [17:12:57]RAPDU: 90 00 [17:12:57]wFMCommunicate OK [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 0D 03 02 [17:12:57]Write to MH i2c: E2 08 00 FA 6D 80 0D 03 02 00 00 00 00 E2 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0B 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0B 00 FA 6D 00 E2 5F BA 24 48 1F 68 B0 90 00 81 [17:12:57]RAPDU: E2 5F BA 24 48 1F 68 B0 90 00 [17:12:57]wFMCommunicate OK [17:12:57]SAM_PROTO_SignData done [17:12:57]FM_MakeSignedData done [17:12:57]CreateOFDProtocolMessage [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 11 00 00 [17:12:57]Write to MH i2c: E2 08 00 FB 6D 80 11 00 00 00 00 00 00 E2 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 17 00 FB 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [17:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:12:57]wFMCommunicate OK [17:12:57]CreateOFDProtocolMessage done [17:12:57]OFDSenderStorePacket 166124 [17:12:57]StoreOFDPacket docnum=166124 [17:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 86 07 01 CB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 AB 8B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 88 02 00 35 04 06 00 AC F3 4E 7D 45 BB E2 5F BA 24 48 1F 68 B0 [17:12:57]CheckFolder [17:12:57]dirname=/storage/ofd_packets [17:12:57]CheckFolder done [17:12:57]ProducePacketName [17:12:57]name=ofd_packets/00166124 [17:12:57]NVStorageSaveData ofd_packets/00166124 [17:12:57]File name is /storage/ofd_packets/00166124 [17:12:57]Write 301 bytes [17:12:57]NVStorageSaveData done [17:12:57]OFDSenderStorePacket done [17:12:57]KKMCreateOFDPacket done [17:12:57]NVStorageSaveData kkm_last_timestamp [17:12:57]File name is /storage/kkm_last_timestamp [17:12:57]Write 4 bytes [17:12:57]NVStorageSaveData done [17:12:57]ExternCall_PrintAddStr [17:12:57]wPrintStart [17:12:57]Write to MH i2c: 01 00 00 FC 6D 69 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: 01 07 00 FC 6D 00 00 00 00 00 FF 0F 7E [17:12:57]RasterBufferAndPrint [17:12:57]line Счет N : (1)220695 [17:12:57]line ИНН: 02508201610067 [17:12:57]line Контрольно-Кассовый Чек [17:12:57]line ПРОДАЖА [17:12:57]line ТРК (МРК, ГНК) : 23 [17:12:57]line Товар: 2710124130 [17:12:57]line Аи-92-К-5 [17:12:57]line 7.480 * 66.90 [17:12:57]line = 500.41 [17:12:57]line НДС 12% НСП 1% [17:12:57]line > о реализуемом товаре [17:12:57]line ИТОГО: 500.41 [17:12:57]line НСП 1% : 4.43 [17:12:57]line НДС 12% : 53.14 [17:12:57]line Наличными: 0.00 [17:12:57]line Безнал.: 500.41 [17:12:57]line Место: АЗС № 161 "Партнер Нефть" [17:12:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:12:57]line СНО: Общий режим [17:12:57]line Чек 235 21.10.2024 17:13 [17:12:57]line Смена: 535 ФФД: 1.0 [17:12:57]line ЗНМ: 0300000104 [17:12:57]line РНМ: 0000000000091764 [17:12:57]line Версия ККМ: 001 [17:12:57]line Платежная система: Mbank [17:12:57]line ФМ: 0000000000871759 [17:12:57]line ФД: 166124 [17:12:57]line ФПД: 190160993863099 [17:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166124&fm=190160993863099&tin=02508201610067®Number=0000000000091764&sum=50041 [17:12:57]written 0, free lines is 4095 [17:12:57]OFD Sender: Processing packet 166124 [packets to send 48, broken 47] [17:12:57]ProducePacketName [17:12:57]name=ofd_packets/00166124 [17:12:57]OFD Sender: To server: pG, [17:12:57]CommunicateWithHost lk.salyk.kg:30040 [17:12:57]ConnectInit lk.salyk.kg [17:12:58]Connected sock=7 [17:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A7 86 07 01 CB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 AB 8B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EC 88 02 00 35 04 06 00 AC F3 4E 7D 45 BB E2 5F BA 24 48 1F 68 B0 [17:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 91 FD 47 00 7E 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 35 39 10 04 04 00 EC 88 02 00 F4 03 04 00 19 32 16 67 B6 04 01 00 00 45 77 AD 5D 68 CA 69 80 [17:12:58]CommunicateWithHost err = 0 [17:12:58]CheckOFDResponse [17:12:58]1017 (14) - 77093643461234 [17:12:58]1041 (16) - 0000000000871759 [17:12:58]1040 (4) - 166124 [17:12:58]1012 (4) - 21.10.2024 10:51 [17:12:58]1206 (1) - 0 [17:12:58]OFD Sender: Remove packet 166124 [17:12:58]ProducePacketName [17:12:58]name=ofd_packets/00166124 [17:12:58]NVStorageDeleteData [17:12:58]Write to MH i2c: 01 00 00 25 6E 93 [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 07 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: 01 07 00 25 6E 00 00 00 00 00 FD 0C A3 [17:12:58]RasterBufferAndPrint [17:12:58]line [17:12:58]line [17:12:58]line [17:12:58]line [17:12:58]line [17:12:58]written 0, free lines is 3331 [17:12:58]MH_Cut [17:12:58]Write to MH i2c: D1 01 00 2C 6E 01 6C [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: D1 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: D1 01 00 [17:12:58]MH_I2C_Read... [17:12:58]Read from MH i2c: D1 01 00 2C 6E 00 6B [17:12:58]Write to MH i2c: 01 00 00 2D 6E 9B [17:12:58]Write i2c OK [17:12:58]MH_I2C_Read... [17:12:58]OFD Sender: No OFD packet to send [17:12:59]*** Cut start [17:12:59]*** Partial cut [17:12:59]*** CUTSNS_PIN = 1 [17:12:59]*** CUTSNS_PIN = 0 [17:12:59]*** Brake cut motor [17:12:59]Read from MH i2c: 01 [17:12:59]MH_I2C_Read... [17:12:59]*** Stop cut motor [17:12:59]*** Cut end [17:12:59]Read from MH i2c: 01 07 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: 01 07 00 2D 6E 00 00 00 00 00 FF 0F B0 [17:12:59]process_action close_receipt done [17:12:59]requested_data is exist [17:12:59]produce_requested_data [17:12:59]requested_item fm.sn is exist - process it [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 11 00 00 [17:12:59]Write to MH i2c: E2 08 00 2E 6E 80 11 00 00 00 00 00 00 16 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 17 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 17 00 2E 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [17:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:12:59]wFMCommunicate OK [17:12:59]requested_item fd.num is exist - process it [17:12:59]SAM_PROTO_GetFieldsCounters [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 13 00 00 [17:12:59]Write to MH i2c: E2 08 00 2F 6E 80 13 00 00 00 00 00 00 19 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 62 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 62 00 2F 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [17:12:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:59]wFMCommunicate OK [17:12:59]SAM_PROTO_GetFieldsCounters done [17:12:59]requested_item shift.num is exist - process it [17:12:59]requested_item shift.opened is exist - process it [17:12:59]req_shift_opened [17:12:59]FM_GetShiftState [17:12:59]SAM_PROTO_GetShiftState [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 13 01 00 [17:12:59]Write to MH i2c: E2 08 00 30 6E 80 13 01 00 00 00 00 00 1B [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:00]Read from MH i2c: E2 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 0E 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: E2 0E 00 30 6E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 24 [17:13:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:13:00]wFMCommunicate OK [17:13:00]SAM_PROTO_GetShiftState done [17:13:00]FM_GetShiftState done [17:13:00]req_shift_opened done [17:13:00]requested_item shift.open_date is exist - process it [17:13:00]req_shift_open_date [17:13:00]req_shift_open_date done [17:13:00]produce_requested_data done [17:13:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166124,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:13:00]process_action_free close_receipt [17:13:00]json_value_free [17:13:00]json_value_free done [17:13:00]process_json_proto returns [17:13:00]Send response to host [17:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166124,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:13:00]free response buf [17:13:00]execute_script done [17:13:00]execute_script returns [17:13:00]free content buf [17:13:00]Sock 5.Close socket [17:13:00]Sock 5.Thread stoped [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:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]accept exits with 6 [17:14:33]New connection [17:14:33]New thread 3066776932 created [17:14:33]Thread 3066920292 joined [17:14:33]Waiting for new connection... [17:14:33] Sock 6.Parse request [17:14:33]Sock 6.Check first char [17:14:33]Sock 6.First char is OK [17:14:33]request: POST /json_proto HTTP/1.0 [17:14:33]Method: POST [17:14:33]URL: /json_proto [17:14:33]Method is POST - this is cgi request [17:14:33]url: /json_proto [17:14:33]query_string will be loaded in cgi processing [17:14:33]execute_cgi json_proto POST (null) [17:14:33]execute_cgi path=json_proto method=POST [17:14:33]POST find Content-Length [17:14:33]Host: 172.17.53.195:8080 [17:14:33]Content-Length: 679 [17:14:33]Content-Type: application/json [17:14:33] [17:14:33]POST finish read [17:14:33]Found Content-Length = 679 [17:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:33]execute_script... [17:14: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)220696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 15.750, "sum" : 1200.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:33]POST & json_proto [17:14:33]process_json_proto [17:14:33]json parsed OK: [17:14:33]protocol is kg_v1.0 [17:14:33]action value=close_receipt [17:14:33]process_action close_receipt [17:14:33]cmd_close_receipt [17:14:33]MH_GetDate [17:14:33]Write to MH i2c: F0 00 00 31 6E 8E [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: F0 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: F0 09 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: F0 09 00 31 6E 00 0D 8C 16 67 21 48 4A 65 C5 [17:14:33]GetLastDocTimeStamp 1729530795 [17:14:33]current date 1729530893 [17:14:33]FM_GetShiftState [17:14:33]SAM_PROTO_GetShiftState [17:14:33]wFMCommunicate request_size=4 [17:14:33]MH_SAM_APDU [17:14:33]CAPDU: 80 13 01 00 [17:14:33]Write to MH i2c: E2 08 00 32 6E 80 13 01 00 00 00 00 00 1D [17:14:33]Write i2c OK [17:14:33]MH_I2C_Read... [17:14:33]OFD Sender: No OFD packet to send [17:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:33]Read from MH i2c: E2 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 0E 00 [17:14:33]MH_I2C_Read... [17:14:33]Read from MH i2c: E2 0E 00 32 6E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 26 [17:14:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:14:33]wFMCommunicate OK [17:14:33]SAM_PROTO_GetShiftState done [17:14:33]FM_GetShiftState done [17:14:33]opened in 1729470944 [17:14:33]opened+sec_in_day 1729557344 [17:14:33]quantity*price = 120015 [17:14:33]sum+1 = 120016 [17:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 236 21.10.2024 17:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166125 ФПД: 280236714368602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166125&fm=280236714368602&tin=02508201610067®Number=0000000000091764&sum=120000 [17:14:35]StoreToDocumentArchive [17:14:35]shift 535 fd 166125 [17:14:35]save to /storage/0535/doc_00166125 [17:14:35]save last doc name /storage/0535/doc_00166125 to /storage/kkm_last_doc_name [17:14:35]save OK [17:14:35]Clear old archive folders... [17:14:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:14:35]tlvbuf is 01971360 [17:14:35]SAM_PROTO_ClearQueue [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 09 00 00 [17:14:35]Write to MH i2c: E2 08 00 3F 6E 80 09 00 00 00 00 00 00 1F [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 3F 6E 00 90 00 21 [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]SAM_PROTO_ClearQueue done [17:14:35]KKMCreateOFDPacket [17:14:35]OFDProtocolAddRootSTLVToBuf [17:14:35]FM_MakeSignedData [17:14:35]FM_MakeSignedData [17:14:35]SAM_PROTO_SignData [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 0D 01 02 [17:14:35]Write to MH i2c: E2 08 00 40 6E 80 0D 01 02 00 00 00 00 27 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 40 6E 00 90 00 22 [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]wFMCommunicate request_size=255 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0D 8C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 88 02 00 35 04 06 00 FE DF B1 D0 [17:14:35]Write to MH i2c: E2 02 01 41 6E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0D 8C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 88 02 00 35 04 06 00 FE DF B1 D0 00 00 11 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 41 6E 00 90 00 23 [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]wFMCommunicate request_size=7 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 0D 02 02 02 1E 5A [17:14:35]Write to MH i2c: E2 0A 00 42 6E 80 0D 02 02 02 00 1E 5A 00 00 A6 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 03 00 42 6E 00 90 00 24 [17:14:35]RAPDU: 90 00 [17:14:35]wFMCommunicate OK [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 0D 03 02 [17:14:35]Write to MH i2c: E2 08 00 43 6E 80 0D 03 02 00 00 00 00 2C [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 0B 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 0B 00 43 6E 00 C0 B4 B6 5C AD 18 F0 3E 90 00 A6 [17:14:35]RAPDU: C0 B4 B6 5C AD 18 F0 3E 90 00 [17:14:35]wFMCommunicate OK [17:14:35]SAM_PROTO_SignData done [17:14:35]FM_MakeSignedData done [17:14:35]CreateOFDProtocolMessage [17:14:35]wFMCommunicate request_size=4 [17:14:35]MH_SAM_APDU [17:14:35]CAPDU: 80 11 00 00 [17:14:35]Write to MH i2c: E2 08 00 44 6E 80 11 00 00 00 00 00 00 2C [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:35]Read from MH i2c: E2 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 17 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: E2 17 00 44 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [17:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:14:35]wFMCommunicate OK [17:14:35]CreateOFDProtocolMessage done [17:14:35]OFDSenderStorePacket 166125 [17:14:35]StoreOFDPacket docnum=166125 [17:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 94 C4 04 01 07 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0D 8C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 88 02 00 35 04 06 00 FE DF B1 D0 1E 5A C0 B4 B6 5C AD 18 F0 3E [17:14:35]CheckFolder [17:14:35]dirname=/storage/ofd_packets [17:14:35]CheckFolder done [17:14:35]ProducePacketName [17:14:35]name=ofd_packets/00166125 [17:14:35]NVStorageSaveData ofd_packets/00166125 [17:14:35]File name is /storage/ofd_packets/00166125 [17:14:35]Write 298 bytes [17:14:35]NVStorageSaveData done [17:14:35]OFDSenderStorePacket done [17:14:35]KKMCreateOFDPacket done [17:14:35]NVStorageSaveData kkm_last_timestamp [17:14:35]File name is /storage/kkm_last_timestamp [17:14:35]Write 4 bytes [17:14:35]NVStorageSaveData done [17:14:35]ExternCall_PrintAddStr [17:14:35]wPrintStart [17:14:35]Write to MH i2c: 01 00 00 45 6E B3 [17:14:35]Write i2c OK [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: 01 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: 01 07 00 [17:14:35]MH_I2C_Read... [17:14:35]Read from MH i2c: 01 07 00 45 6E 00 00 00 00 00 FF 0F C8 [17:14:35]RasterBufferAndPrint [17:14:35]line Счет N : (1)220696 [17:14:35]line ИНН: 02508201610067 [17:14:35]line Контрольно-Кассовый Чек [17:14:35]line ПРОДАЖА [17:14:35]line ТРК (МРК, ГНК) : 11 [17:14:35]line Товар: 2710194210 [17:14:35]line ДТ-К-5 [17:14:35]line 15.750 * 76.20 [17:14:35]line = 1200.15 [17:14:35]line НДС 12% НСП 1% [17:14:35]line > о реализуемом товаре [17:14:35]line ОКРУГЛЕНИЕ: -0.15 [17:14:35]line ИТОГО: 1200.00 [17:14:35]line Внесено: 1200.00 [17:14:35]line СДАЧА: 0.00 [17:14:35]line НСП 1% : 10.62 [17:14:35]line НДС 12% : 127.45 [17:14:35]line Наличными: 1200.00 [17:14:35]line Безнал.: 0.00 [17:14:35]line Место: АЗС № 161 "Партнер Нефть" [17:14:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:14:35]line СНО: Общий режим [17:14:35]line Чек 236 21.10.2024 17:14 [17:14:35]line Смена: 535 ФФД: 1.0 [17:14:35]line ЗНМ: 0300000104 [17:14:35]line РНМ: 0000000000091764 [17:14:35]line Версия ККМ: 001 [17:14:35]line ФМ: 0000000000871759 [17:14:35]line ФД: 166125 [17:14:35]line ФПД: 280236714368602 [17:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T171453&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166125&fm=280236714368602&tin=02508201610067®Number=0000000000091764&sum=120000 [17:14:35]OFD Sender: Processing packet 166125 [packets to send 48, broken 47] [17:14:35]ProducePacketName [17:14:35]name=ofd_packets/00166125 [17:14:35]OFD Sender: To server: pG, [17:14:35]CommunicateWithHost lk.salyk.kg:30040 [17:14:35]ConnectInit lk.salyk.kg [17:14:35]written 0, free lines is 4095 [17:14:35]Connected sock=7 [17:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 94 C4 04 01 07 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 3D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CF D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 0D 8C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 88 02 00 35 04 06 00 FE DF B1 D0 1E 5A C0 B4 B6 5C AD 18 F0 3E [17:14:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C C8 47 00 15 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 ED 88 02 00 F4 03 04 00 7B 32 16 67 B6 04 01 00 00 42 20 64 61 95 20 DD D6 [17:14:36]CommunicateWithHost err = 0 [17:14:36]CheckOFDResponse [17:14:36]1017 (14) - 77093643461234 [17:14:36]1041 (16) - 0000000000871759 [17:14:36]1040 (4) - 166125 [17:14:36]1012 (4) - 21.10.2024 10:52 [17:14:36]1206 (1) - 0 [17:14:36]OFD Sender: Remove packet 166125 [17:14:36]ProducePacketName [17:14:36]name=ofd_packets/00166125 [17:14:36]NVStorageDeleteData [17:14:36]Write to MH i2c: 01 00 00 70 6E DE [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 07 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: 01 07 00 70 6E 00 00 00 00 00 CB 0C BC [17:14:36]RasterBufferAndPrint [17:14:36]line [17:14:36]line [17:14:36]line [17:14:36]line [17:14:36]line [17:14:36]written 0, free lines is 3282 [17:14:36]MH_Cut [17:14:36]Write to MH i2c: D1 01 00 77 6E 01 B7 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: D1 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: D1 01 00 [17:14:36]MH_I2C_Read... [17:14:36]Read from MH i2c: D1 01 00 77 6E 00 B6 [17:14:36]Write to MH i2c: 01 00 00 78 6E E6 [17:14:36]Write i2c OK [17:14:36]MH_I2C_Read... [17:14:36]OFD Sender: No OFD packet to send [17:14:37]*** Cut start [17:14:37]*** Partial cut [17:14:37]*** CUTSNS_PIN = 1 [17:14:37]*** CUTSNS_PIN = 0 [17:14:37]*** Brake cut motor [17:14:37]Read from MH i2c: 01 [17:14:37]MH_I2C_Read... [17:14:37]*** Stop cut motor [17:14:37]*** Cut end [17:14:37]Read from MH i2c: 01 07 00 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: 01 07 00 78 6E 00 00 00 00 00 FF 0F FB [17:14:37]process_action close_receipt done [17:14:37]requested_data is exist [17:14:37]produce_requested_data [17:14:37]requested_item fm.sn is exist - process it [17:14:37]wFMCommunicate request_size=4 [17:14:37]MH_SAM_APDU [17:14:37]CAPDU: 80 11 00 00 [17:14:37]Write to MH i2c: E2 08 00 79 6E 80 11 00 00 00 00 00 00 61 [17:14:37]Write i2c OK [17:14:37]MH_I2C_Read... [17:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:37]Read from MH i2c: E2 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 17 00 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 17 00 79 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [17:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:14:37]wFMCommunicate OK [17:14:37]requested_item fd.num is exist - process it [17:14:37]SAM_PROTO_GetFieldsCounters [17:14:37]wFMCommunicate request_size=4 [17:14:37]MH_SAM_APDU [17:14:37]CAPDU: 80 13 00 00 [17:14:37]Write to MH i2c: E2 08 00 7A 6E 80 13 00 00 00 00 00 00 64 [17:14:37]Write i2c OK [17:14:37]MH_I2C_Read... [17:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:37]Read from MH i2c: E2 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 62 00 [17:14:37]MH_I2C_Read... [17:14:37]Read from MH i2c: E2 62 00 7A 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [17:14:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 ED 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:37]wFMCommunicate OK [17:14:37]SAM_PROTO_GetFieldsCounters done [17:14:37]requested_item shift.num is exist - process it [17:14:37]requested_item shift.opened is exist - process it [17:14:37]req_shift_opened [17:14:37]FM_GetShiftState [17:14:37]SAM_PROTO_GetShiftState [17:14:37]wFMCommunicate request_size=4 [17:14:37]MH_SAM_APDU [17:14:37]CAPDU: 80 13 01 00 [17:14:37]Write to MH i2c: E2 08 00 7B 6E 80 13 01 00 00 00 00 00 66 [17:14:37]Write i2c OK [17:14:37]MH_I2C_Read... [17:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:38]Read from MH i2c: E2 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 0E 00 [17:14:38]MH_I2C_Read... [17:14:38]Read from MH i2c: E2 0E 00 7B 6E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [17:14:38]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:14:38]wFMCommunicate OK [17:14:38]SAM_PROTO_GetShiftState done [17:14:38]FM_GetShiftState done [17:14:38]req_shift_opened done [17:14:38]requested_item shift.open_date is exist - process it [17:14:38]req_shift_open_date [17:14:38]req_shift_open_date done [17:14:38]produce_requested_data done [17:14:38]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166125,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:14:38]process_action_free close_receipt [17:14:38]json_value_free [17:14:38]json_value_free done [17:14:38]process_json_proto returns [17:14:38]Send response to host [17:14:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166125,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:14:38]free response buf [17:14:38]execute_script done [17:14:38]execute_script returns [17:14:38]free content buf [17:14:38]Sock 6.Close socket [17:14:38]Sock 6.Thread stoped [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:46]accept exits with 5 [17:19:46]New connection [17:19:46]New thread 3066920292 created [17:19:46]Thread 3066776932 joined [17:19:46]Waiting for new connection... [17:19:46] Sock 5.Parse request [17:19:46]Sock 5.Check first char [17:19:46]Sock 5.First char is OK [17:19:46]request: POST /json_proto HTTP/1.0 [17:19:46]Method: POST [17:19:46]URL: /json_proto [17:19:46]Method is POST - this is cgi request [17:19:46]url: /json_proto [17:19:46]query_string will be loaded in cgi processing [17:19:46]execute_cgi json_proto POST (null) [17:19:46]execute_cgi path=json_proto method=POST [17:19:46]POST find Content-Length [17:19:46]Host: 172.17.53.195:8080 [17:19:46]Content-Length: 769 [17:19:46]Content-Type: application/json [17:19:46] [17:19:46]POST finish read [17:19:46]Found Content-Length = 769 [17:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:46]execute_script... [17:19:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220697", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:46]POST & json_proto [17:19:46]process_json_proto [17:19:46]json parsed OK: [17:19:46]protocol is kg_v1.0 [17:19:46]action value=close_receipt [17:19:46]process_action close_receipt [17:19:46]cmd_close_receipt [17:19:46]MH_GetDate [17:19:46]Write to MH i2c: F0 00 00 7C 6E D9 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: F0 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: F0 09 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: F0 09 00 7C 6E 00 46 8D 16 67 21 48 4A 65 4A [17:19:46]GetLastDocTimeStamp 1729530893 [17:19:46]current date 1729531206 [17:19:46]FM_GetShiftState [17:19:46]SAM_PROTO_GetShiftState [17:19:46]wFMCommunicate request_size=4 [17:19:46]MH_SAM_APDU [17:19:46]CAPDU: 80 13 01 00 [17:19:46]Write to MH i2c: E2 08 00 7D 6E 80 13 01 00 00 00 00 00 68 [17:19:46]Write i2c OK [17:19:46]MH_I2C_Read... [17:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:46]Read from MH i2c: E2 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0E 00 [17:19:46]MH_I2C_Read... [17:19:46]Read from MH i2c: E2 0E 00 7D 6E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 71 [17:19:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:19:46]wFMCommunicate OK [17:19:46]SAM_PROTO_GetShiftState done [17:19:46]FM_GetShiftState done [17:19:46]opened in 1729470944 [17:19:46]opened+sec_in_day 1729557344 [17:19:46]quantity*price = 100015 [17:19:46]sum+1 = 100017 [17:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 237 21.10.2024 17:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166126 ФПД: 165012493276011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166126&fm=165012493276011&tin=02508201610067®Number=0000000000091764&sum=100016 [17:19:48]StoreToDocumentArchive [17:19:48]shift 535 fd 166126 [17:19:48]save to /storage/0535/doc_00166126 [17:19:48]save last doc name /storage/0535/doc_00166126 to /storage/kkm_last_doc_name [17:19:48]save OK [17:19:48]Clear old archive folders... [17:19:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:48]tlvbuf is 01971020 [17:19:48]SAM_PROTO_ClearQueue [17:19:48]wFMCommunicate request_size=4 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 09 00 00 [17:19:48]Write to MH i2c: E2 08 00 8A 6E 80 09 00 00 00 00 00 00 6A [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 8A 6E 00 90 00 6C [17:19:48]RAPDU: 90 00 [17:19:48]wFMCommunicate OK [17:19:48]SAM_PROTO_ClearQueue done [17:19:48]KKMCreateOFDPacket [17:19:48]OFDProtocolAddRootSTLVToBuf [17:19:48]FM_MakeSignedData [17:19:48]FM_MakeSignedData [17:19:48]SAM_PROTO_SignData [17:19:48]wFMCommunicate request_size=4 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 0D 01 02 [17:19:48]Write to MH i2c: E2 08 00 8B 6E 80 0D 01 02 00 00 00 00 72 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 8B 6E 00 90 00 6D [17:19:48]RAPDU: 90 00 [17:19:48]wFMCommunicate OK [17:19:48]wFMCommunicate request_size=255 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 46 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 88 02 00 35 04 06 00 96 [17:19:48]Write to MH i2c: E2 02 01 8C 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 46 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 88 02 00 35 04 06 00 96 00 00 86 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 8C 6E 00 90 00 6E [17:19:48]RAPDU: 90 00 [17:19:48]wFMCommunicate OK [17:19:48]wFMCommunicate request_size=10 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 0D 02 02 05 13 F7 0B 93 6B [17:19:48]Write to MH i2c: E2 0D 00 8D 6E 80 0D 02 02 05 00 13 F7 0B 93 6B 00 00 92 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 03 00 8D 6E 00 90 00 6F [17:19:48]RAPDU: 90 00 [17:19:48]wFMCommunicate OK [17:19:48]wFMCommunicate request_size=4 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 0D 03 02 [17:19:48]Write to MH i2c: E2 08 00 8E 6E 80 0D 03 02 00 00 00 00 77 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 0B 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 0B 00 8E 6E 00 F6 EC 27 74 AD DF 4D 8B 90 00 59 [17:19:48]RAPDU: F6 EC 27 74 AD DF 4D 8B 90 00 [17:19:48]wFMCommunicate OK [17:19:48]SAM_PROTO_SignData done [17:19:48]FM_MakeSignedData done [17:19:48]CreateOFDProtocolMessage [17:19:48]wFMCommunicate request_size=4 [17:19:48]MH_SAM_APDU [17:19:48]CAPDU: 80 11 00 00 [17:19:48]Write to MH i2c: E2 08 00 8F 6E 80 11 00 00 00 00 00 00 77 [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:48]Read from MH i2c: E2 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 17 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: E2 17 00 8F 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [17:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:19:48]wFMCommunicate OK [17:19:48]CreateOFDProtocolMessage done [17:19:48]OFDSenderStorePacket 166126 [17:19:48]StoreOFDPacket docnum=166126 [17:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 1D 07 01 89 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 46 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 88 02 00 35 04 06 00 96 13 F7 0B 93 6B F6 EC 27 74 AD DF 4D 8B [17:19:48]CheckFolder [17:19:48]dirname=/storage/ofd_packets [17:19:48]CheckFolder done [17:19:48]ProducePacketName [17:19:48]name=ofd_packets/00166126 [17:19:48]NVStorageSaveData ofd_packets/00166126 [17:19:48]File name is /storage/ofd_packets/00166126 [17:19:48]Write 301 bytes [17:19:48]NVStorageSaveData done [17:19:48]OFDSenderStorePacket done [17:19:48]KKMCreateOFDPacket done [17:19:48]NVStorageSaveData kkm_last_timestamp [17:19:48]File name is /storage/kkm_last_timestamp [17:19:48]Write 4 bytes [17:19:48]NVStorageSaveData done [17:19:48]ExternCall_PrintAddStr [17:19:48]wPrintStart [17:19:48]Write to MH i2c: 01 00 00 90 6E FE [17:19:48]Write i2c OK [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 [17:19:48]MH_I2C_Read... [17:19:48]Read from MH i2c: 01 07 00 90 6E 00 00 00 00 00 FF 0F 13 [17:19:48]RasterBufferAndPrint [17:19:48]line Счет N : (1)220697 [17:19:48]line ИНН: 02508201610067 [17:19:48]line Контрольно-Кассовый Чек [17:19:48]line ПРОДАЖА [17:19:48]line ТРК (МРК, ГНК) : 23 [17:19:48]line Товар: 2710124130 [17:19:48]line Аи-92-К-5 [17:19:48]line 14.950 * 66.90 [17:19:48]line = 1000.16 [17:19:48]line НДС 12% НСП 1% [17:19:48]line > о реализуемом товаре [17:19:48]line ИТОГО: 1000.16 [17:19:48]line НСП 1% : 8.85 [17:19:48]line НДС 12% : 106.21 [17:19:48]line Наличными: 0.00 [17:19:48]line Безнал.: 1000.16 [17:19:48]line Место: АЗС № 161 "Партнер Нефть" [17:19:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:19:48]line СНО: Общий режим [17:19:48]line Чек 237 21.10.2024 17:20 [17:19:48]line Смена: 535 ФФД: 1.0 [17:19:48]line ЗНМ: 0300000104 [17:19:48]line РНМ: 0000000000091764 [17:19:48]line Версия ККМ: 001 [17:19:48]line Платежная система: Mbank [17:19:48]line ФМ: 0000000000871759 [17:19:48]line ФД: 166126 [17:19:48]line ФПД: 165012493276011 [17:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172006&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166126&fm=165012493276011&tin=02508201610067®Number=0000000000091764&sum=100016 [17:19:48]OFD Sender: Processing packet 166126 [packets to send 48, broken 47] [17:19:48]ProducePacketName [17:19:48]name=ofd_packets/00166126 [17:19:48]OFD Sender: To server: pG, [17:19:48]CommunicateWithHost lk.salyk.kg:30040 [17:19:48]ConnectInit lk.salyk.kg [17:19:48]written 0, free lines is 4095 [17:19:49]Connected sock=9 [17:19:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E1 1D 07 01 89 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 46 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 88 02 00 35 04 06 00 96 13 F7 0B 93 6B F6 EC 27 74 AD DF 4D 8B [17:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 48 47 00 30 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EE 88 02 00 F4 03 04 00 B4 33 16 67 B6 04 01 00 00 45 27 A2 E3 86 C3 3D EC [17:19:49]CommunicateWithHost err = 0 [17:19:49]CheckOFDResponse [17:19:49]1017 (14) - 77093643461234 [17:19:49]1041 (16) - 0000000000871759 [17:19:49]1040 (4) - 166126 [17:19:49]1012 (4) - 21.10.2024 10:57 [17:19:49]1206 (1) - 0 [17:19:49]OFD Sender: Remove packet 166126 [17:19:49]ProducePacketName [17:19:49]name=ofd_packets/00166126 [17:19:49]NVStorageDeleteData [17:19:49]Write to MH i2c: 01 00 00 B9 6E 27 [17:19:49]Write i2c OK [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: 01 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: 01 07 00 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: 01 07 00 B9 6E 00 00 00 00 00 E7 0C 21 [17:19:49]RasterBufferAndPrint [17:19:49]line [17:19:49]line [17:19:49]line [17:19:49]line [17:19:49]line [17:19:49]written 0, free lines is 3310 [17:19:49]MH_Cut [17:19:49]Write to MH i2c: D1 01 00 C0 6E 01 00 [17:19:49]Write i2c OK [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: D1 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: D1 01 00 [17:19:49]MH_I2C_Read... [17:19:49]Read from MH i2c: D1 01 00 C0 6E 00 FF [17:19:49]Write to MH i2c: 01 00 00 C1 6E 2F [17:19:49]Write i2c OK [17:19:49]MH_I2C_Read... [17:19:49]OFD Sender: No OFD packet to send [17:19:50]*** Cut start [17:19:50]*** Partial cut [17:19:50]*** CUTSNS_PIN = 1 [17:19:50]*** CUTSNS_PIN = 0 [17:19:50]*** Brake cut motor [17:19:50]Read from MH i2c: 01 [17:19:50]MH_I2C_Read... [17:19:50]*** Stop cut motor [17:19:50]*** Cut end [17:19:50]Read from MH i2c: 01 07 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: 01 07 00 C1 6E 00 00 00 00 00 FF 0F 44 [17:19:50]process_action close_receipt done [17:19:50]requested_data is exist [17:19:50]produce_requested_data [17:19:50]requested_item fm.sn is exist - process it [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 11 00 00 [17:19:50]Write to MH i2c: E2 08 00 C2 6E 80 11 00 00 00 00 00 00 AA [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:50]Read from MH i2c: E2 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 [17:19:50]MH_I2C_Read... [17:19:50]Read from MH i2c: E2 17 00 C2 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [17:19:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:19:50]wFMCommunicate OK [17:19:50]requested_item fd.num is exist - process it [17:19:50]SAM_PROTO_GetFieldsCounters [17:19:50]wFMCommunicate request_size=4 [17:19:50]MH_SAM_APDU [17:19:50]CAPDU: 80 13 00 00 [17:19:50]Write to MH i2c: E2 08 00 C3 6E 80 13 00 00 00 00 00 00 AD [17:19:50]Write i2c OK [17:19:50]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 62 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 62 00 C3 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [17: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_GetFieldsCounters done [17:19:51]requested_item shift.num is exist - process it [17:19:51]requested_item shift.opened is exist - process it [17:19:51]req_shift_opened [17:19:51]FM_GetShiftState [17:19:51]SAM_PROTO_GetShiftState [17:19:51]wFMCommunicate request_size=4 [17:19:51]MH_SAM_APDU [17:19:51]CAPDU: 80 13 01 00 [17:19:51]Write to MH i2c: E2 08 00 C4 6E 80 13 01 00 00 00 00 00 AF [17:19:51]Write i2c OK [17:19:51]MH_I2C_Read... [17:19:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:51]Read from MH i2c: E2 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0E 00 [17:19:51]MH_I2C_Read... [17:19:51]Read from MH i2c: E2 0E 00 C4 6E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B8 [17:19:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:19:51]wFMCommunicate OK [17:19:51]SAM_PROTO_GetShiftState done [17:19:51]FM_GetShiftState done [17:19:51]req_shift_opened done [17:19:51]requested_item shift.open_date is exist - process it [17:19:51]req_shift_open_date [17:19:51]req_shift_open_date done [17:19:51]produce_requested_data done [17:19:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166126,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:19:51]process_action_free close_receipt [17:19:51]json_value_free [17:19:51]json_value_free done [17:19:51]process_json_proto returns [17:19:51]Send response to host [17:19:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166126,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:19:51]free response buf [17:19:51]execute_script done [17:19:51]execute_script returns [17:19:51]free content buf [17:19:51]Sock 5.Close socket [17:19:51]Sock 5.Thread stoped [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20: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:27]accept exits with 6 [17:21:27]New connection [17:21:27]New thread 3066776932 created [17:21:27]Thread 3066920292 joined [17:21:27]Waiting for new connection... [17:21:27] Sock 6.Parse request [17:21:27]Sock 6.Check first char [17:21:27]Sock 6.First char is OK [17:21:27]request: POST /json_proto HTTP/1.0 [17:21:27]Method: POST [17:21:27]URL: /json_proto [17:21:27]Method is POST - this is cgi request [17:21:27]url: /json_proto [17:21:27]query_string will be loaded in cgi processing [17:21:27]execute_cgi json_proto POST (null) [17:21:27]execute_cgi path=json_proto method=POST [17:21:27]POST find Content-Length [17:21:27]Host: 172.17.53.195:8080 [17:21:27]Content-Length: 767 [17:21:27]Content-Type: application/json [17:21:27] [17:21:27]POST finish read [17:21:27]Found Content-Length = 767 [17:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 950.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:27]execute_script... [17:21: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)220698", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 950.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:27]POST & json_proto [17:21:27]process_json_proto [17:21:27]json parsed OK: [17:21:27]protocol is kg_v1.0 [17:21:27]action value=close_receipt [17:21:27]process_action close_receipt [17:21:27]cmd_close_receipt [17:21:27]MH_GetDate [17:21:27]Write to MH i2c: F0 00 00 C5 6E 22 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: F0 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: F0 09 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: F0 09 00 C5 6E 00 AB 8D 16 67 21 48 4A 65 F8 [17:21:27]GetLastDocTimeStamp 1729531206 [17:21:27]current date 1729531307 [17:21:27]FM_GetShiftState [17:21:27]SAM_PROTO_GetShiftState [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 13 01 00 [17:21:27]Write to MH i2c: E2 08 00 C6 6E 80 13 01 00 00 00 00 00 B1 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:27]Read from MH i2c: E2 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 0E 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 0E 00 C6 6E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BA [17:21:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:21:27]wFMCommunicate OK [17:21:27]SAM_PROTO_GetShiftState done [17:21:27]FM_GetShiftState done [17:21:27]opened in 1729470944 [17:21:27]opened+sec_in_day 1729557344 [17:21:27]quantity*price = 95064 [17:21:27]sum+1 = 95066 [17:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 950.65 НСП 1% : 8.41 НДС 12% : 100.95 Наличными: 0.00 Безнал.: 950.65 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 238 21.10.2024 17:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166127 ФПД: 41753191092575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172147&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166127&fm=41753191092575&tin=02508201610067®Number=0000000000091764&sum=95065 [17:21:29]StoreToDocumentArchive [17:21:29]shift 535 fd 166127 [17:21:29]save to /storage/0535/doc_00166127 [17:21:29]save last doc name /storage/0535/doc_00166127 to /storage/kkm_last_doc_name [17:21:29]save OK [17:21:29]Clear old archive folders... [17:21:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:29]tlvbuf is 0177AD70 [17:21:29]SAM_PROTO_ClearQueue [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 09 00 00 [17:21:29]Write to MH i2c: E2 08 00 D3 6E 80 09 00 00 00 00 00 00 B3 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 D3 6E 00 90 00 B5 [17:21:29]RAPDU: 90 00 [17:21:29]wFMCommunicate OK [17:21:29]SAM_PROTO_ClearQueue done [17:21:29]KKMCreateOFDPacket [17:21:29]OFDProtocolAddRootSTLVToBuf [17:21:29]FM_MakeSignedData [17:21:29]FM_MakeSignedData [17:21:29]SAM_PROTO_SignData [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 0D 01 02 [17:21:29]Write to MH i2c: E2 08 00 D4 6E 80 0D 01 02 00 00 00 00 BB [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:29]Read from MH i2c: E2 03 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 D4 6E 00 90 00 B6 [17:21:29]RAPDU: 90 00 [17:21:29]wFMCommunicate OK [17:21:29]wFMCommunicate request_size=255 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 AB 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 88 02 00 35 04 06 00 25 [17:21:29]Write to MH i2c: E2 02 01 D5 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 AB 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 88 02 00 35 04 06 00 25 00 00 64 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 D5 6E 00 90 00 B7 [17:21:29]RAPDU: 90 00 [17:21:29]wFMCommunicate OK [17:21:29]wFMCommunicate request_size=10 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 0D 02 02 05 F9 6C 1F 91 5F [17:21:29]Write to MH i2c: E2 0D 00 D6 6E 80 0D 02 02 05 00 F9 6C 1F 91 5F 00 00 3C [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 03 00 D6 6E 00 90 00 B8 [17:21:29]RAPDU: 90 00 [17:21:29]wFMCommunicate OK [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 0D 03 02 [17:21:29]Write to MH i2c: E2 08 00 D7 6E 80 0D 03 02 00 00 00 00 C0 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 0B 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 0B 00 D7 6E 00 0E 26 11 47 4A 97 0C 4E 90 00 88 [17:21:29]RAPDU: 0E 26 11 47 4A 97 0C 4E 90 00 [17:21:29]wFMCommunicate OK [17:21:29]SAM_PROTO_SignData done [17:21:29]FM_MakeSignedData done [17:21:29]CreateOFDProtocolMessage [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 11 00 00 [17:21:29]Write to MH i2c: E2 08 00 D8 6E 80 11 00 00 00 00 00 00 C0 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 17 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 17 00 D8 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [17:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:21:29]wFMCommunicate OK [17:21:29]CreateOFDProtocolMessage done [17:21:29]OFDSenderStorePacket 166127 [17:21:29]StoreOFDPacket docnum=166127 [17:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 55 6F 07 01 F6 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 AB 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 88 02 00 35 04 06 00 25 F9 6C 1F 91 5F 0E 26 11 47 4A 97 0C 4E [17:21:29]CheckFolder [17:21:29]dirname=/storage/ofd_packets [17:21:29]CheckFolder done [17:21:29]ProducePacketName [17:21:29]name=ofd_packets/00166127 [17:21:29]NVStorageSaveData ofd_packets/00166127 [17:21:29]File name is /storage/ofd_packets/00166127 [17:21:29]Write 301 bytes [17:21:29]NVStorageSaveData done [17:21:29]OFDSenderStorePacket done [17:21:29]KKMCreateOFDPacket done [17:21:29]NVStorageSaveData kkm_last_timestamp [17:21:29]File name is /storage/kkm_last_timestamp [17:21:29]Write 4 bytes [17:21:29]NVStorageSaveData done [17:21:29]ExternCall_PrintAddStr [17:21:29]wPrintStart [17:21:29]Write to MH i2c: 01 00 00 D9 6E 47 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: 01 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: 01 07 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: 01 07 00 D9 6E 00 00 00 00 00 FF 0F 5C [17:21:29]RasterBufferAndPrint [17:21:29]line Счет N : (1)220698 [17:21:29]line ИНН: 02508201610067 [17:21:29]line Контрольно-Кассовый Чек [17:21:29]line ПРОДАЖА [17:21:29]line ТРК (МРК, ГНК) : 43 [17:21:29]line Товар: 2710124130 [17:21:29]line Аи-92-К-5 [17:21:29]line 14.210 * 66.90 [17:21:29]line = 950.65 [17:21:29]line НДС 12% НСП 1% [17:21:29]line > о реализуемом товаре [17:21:29]line ИТОГО: 950.65 [17:21:29]line НСП 1% : 8.41 [17:21:29]line НДС 12% : 100.95 [17:21:29]line Наличными: 0.00 [17:21:29]line Безнал.: 950.65 [17:21:29]line Место: АЗС № 161 "Партнер Нефть" [17:21:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:21:29]line СНО: Общий режим [17:21:29]line Чек 238 21.10.2024 17:21 [17:21:29]line Смена: 535 ФФД: 1.0 [17:21:29]line ЗНМ: 0300000104 [17:21:29]line РНМ: 0000000000091764 [17:21:29]line Версия ККМ: 001 [17:21:29]line Платежная система: Mbank [17:21:29]line ФМ: 0000000000871759 [17:21:29]line ФД: 166127 [17:21:29]line ФПД: 41753191092575 [17:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172147&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166127&fm=41753191092575&tin=02508201610067®Number=0000000000091764&sum=95065 [17:21:29]OFD Sender: Processing packet 166127 [packets to send 48, broken 47] [17:21:29]ProducePacketName [17:21:29]name=ofd_packets/00166127 [17:21:29]OFD Sender: To server: pG, [17:21:29]CommunicateWithHost lk.salyk.kg:30040 [17:21:29]ConnectInit lk.salyk.kg [17:21:29]written 0, free lines is 4095 [17:21:30]Connected sock=7 [17:21:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 55 6F 07 01 F6 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 AB 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 88 02 00 35 04 06 00 25 F9 6C 1F 91 5F 0E 26 11 47 4A 97 0C 4E [17:21:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 74 47 00 99 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 EF 88 02 00 F4 03 04 00 19 34 16 67 B6 04 01 00 00 8D 34 81 00 AB 23 53 C4 [17:21:30]CommunicateWithHost err = 0 [17:21:30]CheckOFDResponse [17:21:30]1017 (14) - 77093643461234 [17:21:30]1041 (16) - 0000000000871759 [17:21:30]1040 (4) - 166127 [17:21:30]1012 (4) - 21.10.2024 10:59 [17:21:30]1206 (1) - 0 [17:21:30]OFD Sender: Remove packet 166127 [17:21:30]ProducePacketName [17:21:30]name=ofd_packets/00166127 [17:21:30]NVStorageDeleteData [17:21:30]Write to MH i2c: 01 00 00 02 6F 71 [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: 01 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: 01 07 00 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: 01 07 00 02 6F 00 00 00 00 00 E5 0C 69 [17:21:30]RasterBufferAndPrint [17:21:30]line [17:21:30]line [17:21:30]line [17:21:30]line [17:21:30]line [17:21:30]written 0, free lines is 3307 [17:21:30]MH_Cut [17:21:30]Write to MH i2c: D1 01 00 09 6F 01 4A [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: D1 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: D1 01 00 [17:21:30]MH_I2C_Read... [17:21:30]Read from MH i2c: D1 01 00 09 6F 00 49 [17:21:30]Write to MH i2c: 01 00 00 0A 6F 79 [17:21:30]Write i2c OK [17:21:30]MH_I2C_Read... [17:21:30]OFD Sender: No OFD packet to send [17:21:31]*** Cut start [17:21:31]*** Partial cut [17:21:31]*** CUTSNS_PIN = 1 [17:21:31]*** CUTSNS_PIN = 0 [17:21:31]*** Brake cut motor [17:21:31]Read from MH i2c: 01 [17:21:31]MH_I2C_Read... [17:21:31]*** Stop cut motor [17:21:31]*** Cut end [17:21:31]Read from MH i2c: 01 07 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: 01 07 00 0A 6F 00 00 00 00 00 FF 0F 8E [17:21:31]process_action close_receipt done [17:21:31]requested_data is exist [17:21:31]produce_requested_data [17:21:31]requested_item fm.sn is exist - process it [17:21:31]wFMCommunicate request_size=4 [17:21:31]MH_SAM_APDU [17:21:31]CAPDU: 80 11 00 00 [17:21:31]Write to MH i2c: E2 08 00 0B 6F 80 11 00 00 00 00 00 00 F4 [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:31]Read from MH i2c: E2 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 17 00 [17:21:31]MH_I2C_Read... [17:21:31]Read from MH i2c: E2 17 00 0B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [17:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:21:31]wFMCommunicate OK [17:21:31]requested_item fd.num is exist - process it [17:21:31]SAM_PROTO_GetFieldsCounters [17:21:31]wFMCommunicate request_size=4 [17:21:31]MH_SAM_APDU [17:21:31]CAPDU: 80 13 00 00 [17:21:31]Write to MH i2c: E2 08 00 0C 6F 80 13 00 00 00 00 00 00 F7 [17:21:31]Write i2c OK [17:21:31]MH_I2C_Read... [17:21:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:32]Read from MH i2c: E2 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: E2 62 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: E2 62 00 0C 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [17:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 EF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:32]wFMCommunicate OK [17:21:32]SAM_PROTO_GetFieldsCounters done [17:21:32]requested_item shift.num is exist - process it [17:21:32]requested_item shift.opened is exist - process it [17:21:32]req_shift_opened [17:21:32]FM_GetShiftState [17:21:32]SAM_PROTO_GetShiftState [17:21:32]wFMCommunicate request_size=4 [17:21:32]MH_SAM_APDU [17:21:32]CAPDU: 80 13 01 00 [17:21:32]Write to MH i2c: E2 08 00 0D 6F 80 13 01 00 00 00 00 00 F9 [17:21:32]Write i2c OK [17:21:32]MH_I2C_Read... [17:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:32]Read from MH i2c: E2 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: E2 0E 00 [17:21:32]MH_I2C_Read... [17:21:32]Read from MH i2c: E2 0E 00 0D 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 02 [17:21:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:21:32]wFMCommunicate OK [17:21:32]SAM_PROTO_GetShiftState done [17:21:32]FM_GetShiftState done [17:21:32]req_shift_opened done [17:21:32]requested_item shift.open_date is exist - process it [17:21:32]req_shift_open_date [17:21:32]req_shift_open_date done [17:21:32]produce_requested_data done [17:21:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166127,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:21:32]process_action_free close_receipt [17:21:32]json_value_free [17:21:32]json_value_free done [17:21:32]process_json_proto returns [17:21:32]Send response to host [17:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166127,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:21:32]free response buf [17:21:32]execute_script done [17:21:32]execute_script returns [17:21:32]free content buf [17:21:32]Sock 6.Close socket [17:21:32]Sock 6.Thread stoped [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [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:42]accept exits with 5 [17:22:42]New connection [17:22:42]New thread 3066920292 created [17:22:42]Thread 3066776932 joined [17:22:42]Waiting for new connection... [17:22:42] Sock 5.Parse request [17:22:42]Sock 5.Check first char [17:22:42]Sock 5.First char is OK [17:22:42]request: POST /json_proto HTTP/1.0 [17:22:42]Method: POST [17:22:42]URL: /json_proto [17:22:42]Method is POST - this is cgi request [17:22:42]url: /json_proto [17:22:42]query_string will be loaded in cgi processing [17:22:42]execute_cgi json_proto POST (null) [17:22:42]execute_cgi path=json_proto method=POST [17:22:42]POST find Content-Length [17:22:42]Host: 172.17.53.195:8080 [17:22:42]Content-Length: 677 [17:22:42]Content-Type: application/json [17:22:42] [17:22:42]POST finish read [17:22:42]Found Content-Length = 677 [17:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:42]execute_script... [17:22: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)220700", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:42]POST & json_proto [17:22:42]process_json_proto [17:22:42]json parsed OK: [17:22:42]protocol is kg_v1.0 [17:22:42]action value=close_receipt [17:22:42]process_action close_receipt [17:22:42]cmd_close_receipt [17:22:42]MH_GetDate [17:22:42]Write to MH i2c: F0 00 00 0E 6F 6C [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: F0 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: F0 09 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: F0 09 00 0E 6F 00 F5 8D 16 67 21 48 4A 65 8C [17:22:42]GetLastDocTimeStamp 1729531307 [17:22:42]current date 1729531381 [17:22:42]FM_GetShiftState [17:22:42]SAM_PROTO_GetShiftState [17:22:42]wFMCommunicate request_size=4 [17:22:42]MH_SAM_APDU [17:22:42]CAPDU: 80 13 01 00 [17:22:42]Write to MH i2c: E2 08 00 0F 6F 80 13 01 00 00 00 00 00 FB [17:22:42]Write i2c OK [17:22:42]MH_I2C_Read... [17:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:42]Read from MH i2c: E2 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 0E 00 [17:22:42]MH_I2C_Read... [17:22:42]Read from MH i2c: E2 0E 00 0F 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 04 [17:22:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:22:42]wFMCommunicate OK [17:22:42]SAM_PROTO_GetShiftState done [17:22:42]FM_GetShiftState done [17:22:42]opened in 1729470944 [17:22:42]opened+sec_in_day 1729557344 [17:22:42]quantity*price = 20003 [17:22:42]sum+1 = 20004 [17:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 239 21.10.2024 17:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166128 ФПД: 76683293087137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172302&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166128&fm=76683293087137&tin=02508201610067®Number=0000000000091764&sum=20000 [17:22:43]StoreToDocumentArchive [17:22:43]shift 535 fd 166128 [17:22:43]save to /storage/0535/doc_00166128 [17:22:43]save last doc name /storage/0535/doc_00166128 to /storage/kkm_last_doc_name [17:22:43]save OK [17:22:43]Clear old archive folders... [17:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:43]tlvbuf is 0177A9A0 [17:22:43]SAM_PROTO_ClearQueue [17:22:43]wFMCommunicate request_size=4 [17:22:43]MH_SAM_APDU [17:22:43]CAPDU: 80 09 00 00 [17:22:43]Write to MH i2c: E2 08 00 1C 6F 80 09 00 00 00 00 00 00 FD [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 1C 6F 00 90 00 FF [17:22:43]RAPDU: 90 00 [17:22:43]wFMCommunicate OK [17:22:43]SAM_PROTO_ClearQueue done [17:22:43]KKMCreateOFDPacket [17:22:43]OFDProtocolAddRootSTLVToBuf [17:22:43]FM_MakeSignedData [17:22:43]FM_MakeSignedData [17:22:43]SAM_PROTO_SignData [17:22:43]wFMCommunicate request_size=4 [17:22:43]MH_SAM_APDU [17:22:43]CAPDU: 80 0D 01 02 [17:22:43]Write to MH i2c: E2 08 00 1D 6F 80 0D 01 02 00 00 00 00 05 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:43]Read from MH i2c: E2 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 [17:22:43]MH_I2C_Read... [17:22:43]Read from MH i2c: E2 03 00 1D 6F 00 90 00 00 [17:22:43]RAPDU: 90 00 [17:22:43]wFMCommunicate OK [17:22:43]wFMCommunicate request_size=255 [17:22:43]MH_SAM_APDU [17:22: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 F6 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 88 02 00 35 04 06 00 45 [17:22:43]Write to MH i2c: E2 02 01 1E 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 F6 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 88 02 00 35 04 06 00 45 00 00 24 [17:22:43]Write i2c OK [17:22:43]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 1E 6F 00 90 00 01 [17:22:44]RAPDU: 90 00 [17:22:44]wFMCommunicate OK [17:22:44]wFMCommunicate request_size=10 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 0D 02 02 05 BE 38 71 D5 A1 [17:22:44]Write to MH i2c: E2 0D 00 1F 6F 80 0D 02 02 05 00 BE 38 71 D5 A1 00 00 EF [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 03 00 1F 6F 00 90 00 02 [17:22:44]RAPDU: 90 00 [17:22:44]wFMCommunicate OK [17:22:44]wFMCommunicate request_size=4 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 0D 03 02 [17:22:44]Write to MH i2c: E2 08 00 20 6F 80 0D 03 02 00 00 00 00 0A [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 0B 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 0B 00 20 6F 00 C5 85 67 59 1F 49 3C 6D 90 00 26 [17:22:44]RAPDU: C5 85 67 59 1F 49 3C 6D 90 00 [17:22:44]wFMCommunicate OK [17:22:44]SAM_PROTO_SignData done [17:22:44]FM_MakeSignedData done [17:22:44]CreateOFDProtocolMessage [17:22:44]wFMCommunicate request_size=4 [17:22:44]MH_SAM_APDU [17:22:44]CAPDU: 80 11 00 00 [17:22:44]Write to MH i2c: E2 08 00 21 6F 80 11 00 00 00 00 00 00 0A [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:44]Read from MH i2c: E2 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 17 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: E2 17 00 21 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [17:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:22:44]wFMCommunicate OK [17:22:44]CreateOFDProtocolMessage done [17:22:44]OFDSenderStorePacket 166128 [17:22:44]StoreOFDPacket docnum=166128 [17:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 66 07 01 93 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 F6 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 88 02 00 35 04 06 00 45 BE 38 71 D5 A1 C5 85 67 59 1F 49 3C 6D [17:22:44]CheckFolder [17:22:44]dirname=/storage/ofd_packets [17:22:44]CheckFolder done [17:22:44]ProducePacketName [17:22:44]name=ofd_packets/00166128 [17:22:44]NVStorageSaveData ofd_packets/00166128 [17:22:44]File name is /storage/ofd_packets/00166128 [17:22:44]Write 301 bytes [17:22:44]NVStorageSaveData done [17:22:44]OFDSenderStorePacket done [17:22:44]KKMCreateOFDPacket done [17:22:44]NVStorageSaveData kkm_last_timestamp [17:22:44]File name is /storage/kkm_last_timestamp [17:22:44]Write 4 bytes [17:22:44]NVStorageSaveData done [17:22:44]ExternCall_PrintAddStr [17:22:44]wPrintStart [17:22:44]Write to MH i2c: 01 00 00 22 6F 91 [17:22:44]Write i2c OK [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: 01 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: 01 07 00 [17:22:44]MH_I2C_Read... [17:22:44]Read from MH i2c: 01 07 00 22 6F 00 00 00 00 00 FF 0F A6 [17:22:44]RasterBufferAndPrint [17:22:44]line Счет N : (1)220700 [17:22:44]line ИНН: 02508201610067 [17:22:44]line Контрольно-Кассовый Чек [17:22:44]line ПРОДАЖА [17:22:44]line ТРК (МРК, ГНК) : 23 [17:22:44]line Товар: 2710124130 [17:22:44]line Аи-92-К-5 [17:22:44]line 2.990 * 66.90 [17:22:44]line = 200.03 [17:22:44]line НДС 12% НСП 1% [17:22:44]line > о реализуемом товаре [17:22:44]line ОКРУГЛЕНИЕ: -0.03 [17:22:44]line ИТОГО: 200.00 [17:22:44]line Внесено: 200.00 [17:22:44]line СДАЧА: 0.00 [17:22:44]line НСП 1% : 1.77 [17:22:44]line НДС 12% : 21.24 [17:22:44]line Наличными: 200.00 [17:22:44]line Безнал.: 0.00 [17:22:44]line Место: АЗС № 161 "Партнер Нефть" [17:22:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:22:44]line СНО: Общий режим [17:22:44]line Чек 239 21.10.2024 17:23 [17:22:44]line Смена: 535 ФФД: 1.0 [17:22:44]line ЗНМ: 0300000104 [17:22:44]line РНМ: 0000000000091764 [17:22:44]line Версия ККМ: 001 [17:22:44]line ФМ: 0000000000871759 [17:22:44]line ФД: 166128 [17:22:44]line ФПД: 76683293087137 [17:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172302&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166128&fm=76683293087137&tin=02508201610067®Number=0000000000091764&sum=20000 [17:22:44]OFD Sender: Processing packet 166128 [packets to send 48, broken 47] [17:22:44]ProducePacketName [17:22:44]name=ofd_packets/00166128 [17:22:44]OFD Sender: To server: pG, [17:22:44]CommunicateWithHost lk.salyk.kg:30040 [17:22:44]ConnectInit lk.salyk.kg [17:22:44]written 0, free lines is 4095 [17:22:44]Connected sock=7 [17:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 66 07 01 93 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 F6 8D 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 88 02 00 35 04 06 00 45 BE 38 71 D5 A1 C5 85 67 59 1F 49 3C 6D [17:22:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 58 38 47 00 92 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F0 88 02 00 F4 03 04 00 63 34 16 67 B6 04 01 00 00 E9 D5 C5 DB 19 C1 F3 BD [17:22:45]CommunicateWithHost err = 0 [17:22:45]CheckOFDResponse [17:22:45]1017 (14) - 77093643461234 [17:22:45]1041 (16) - 0000000000871759 [17:22:45]1040 (4) - 166128 [17:22:45]1012 (4) - 21.10.2024 11:00 [17:22:45]1206 (1) - 0 [17:22:45]OFD Sender: Remove packet 166128 [17:22:45]ProducePacketName [17:22:45]name=ofd_packets/00166128 [17:22:45]NVStorageDeleteData [17:22:45]Write to MH i2c: 01 00 00 4D 6F BC [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 07 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: 01 07 00 4D 6F 00 00 00 00 00 C6 0C 95 [17:22:45]RasterBufferAndPrint [17:22:45]line [17:22:45]line [17:22:45]line [17:22:45]line [17:22:45]line [17:22:45]written 0, free lines is 3276 [17:22:45]MH_Cut [17:22:45]Write to MH i2c: D1 01 00 54 6F 01 95 [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: D1 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: D1 01 00 [17:22:45]MH_I2C_Read... [17:22:45]Read from MH i2c: D1 01 00 54 6F 00 94 [17:22:45]Write to MH i2c: 01 00 00 55 6F C4 [17:22:45]Write i2c OK [17:22:45]MH_I2C_Read... [17:22:45]OFD Sender: No OFD packet to send [17:22:45]*** Cut start [17:22:45]*** Partial cut [17:22:45]*** CUTSNS_PIN = 1 [17:22:46]*** CUTSNS_PIN = 0 [17:22:46]*** Brake cut motor [17:22:46]Read from MH i2c: 01 [17:22:46]MH_I2C_Read... [17:22:46]*** Stop cut motor [17:22:46]*** Cut end [17:22:46]Read from MH i2c: 01 07 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: 01 07 00 55 6F 00 00 00 00 00 FF 0F D9 [17:22:46]process_action close_receipt done [17:22:46]requested_data is exist [17:22:46]produce_requested_data [17:22:46]requested_item fm.sn is exist - process it [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 11 00 00 [17:22:46]Write to MH i2c: E2 08 00 56 6F 80 11 00 00 00 00 00 00 3F [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 17 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 17 00 56 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [17:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:22:46]wFMCommunicate OK [17:22:46]requested_item fd.num is exist - process it [17:22:46]SAM_PROTO_GetFieldsCounters [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 13 00 00 [17:22:46]Write to MH i2c: E2 08 00 57 6F 80 13 00 00 00 00 00 00 42 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 62 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 62 00 57 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [17:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F0 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:46]wFMCommunicate OK [17:22:46]SAM_PROTO_GetFieldsCounters done [17:22:46]requested_item shift.num is exist - process it [17:22:46]requested_item shift.opened is exist - process it [17:22:46]req_shift_opened [17:22:46]FM_GetShiftState [17:22:46]SAM_PROTO_GetShiftState [17:22:46]wFMCommunicate request_size=4 [17:22:46]MH_SAM_APDU [17:22:46]CAPDU: 80 13 01 00 [17:22:46]Write to MH i2c: E2 08 00 58 6F 80 13 01 00 00 00 00 00 44 [17:22:46]Write i2c OK [17:22:46]MH_I2C_Read... [17:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:46]Read from MH i2c: E2 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 0E 00 [17:22:46]MH_I2C_Read... [17:22:46]Read from MH i2c: E2 0E 00 58 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4D [17:22:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:22:46]wFMCommunicate OK [17:22:46]SAM_PROTO_GetShiftState done [17:22:46]FM_GetShiftState done [17:22:46]req_shift_opened done [17:22:46]requested_item shift.open_date is exist - process it [17:22:46]req_shift_open_date [17:22:46]req_shift_open_date done [17:22:46]produce_requested_data done [17:22:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166128,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:22:46]process_action_free close_receipt [17:22:46]json_value_free [17:22:46]json_value_free done [17:22:46]process_json_proto returns [17:22:46]Send response to host [17:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166128,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:22:46]free response buf [17:22:46]execute_script done [17:22:46]execute_script returns [17:22:46]free content buf [17:22:46]Sock 5.Close socket [17:22:46]Sock 5.Thread stoped [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:33]accept exits with 6 [17:23:33]New connection [17:23:33]New thread 3066776932 created [17:23:33]Thread 3066920292 joined [17:23:33]Waiting for new connection... [17:23:33] Sock 6.Parse request [17:23:33]Sock 6.Check first char [17:23:33]Sock 6.First char is OK [17:23:33]request: POST /json_proto HTTP/1.0 [17:23:33]Method: POST [17:23:33]URL: /json_proto [17:23:33]Method is POST - this is cgi request [17:23:33]url: /json_proto [17:23:33]query_string will be loaded in cgi processing [17:23:33]execute_cgi json_proto POST (null) [17:23:33]execute_cgi path=json_proto method=POST [17:23:33]POST find Content-Length [17:23:33]Host: 172.17.53.195:8080 [17:23:33]Content-Length: 789 [17:23:33]Content-Type: application/json [17:23:33] [17:23:33]POST finish read [17:23:33]Found Content-Length = 789 [17:23:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.620, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:33]execute_script... [17:23: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)220699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 65.620, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:33]POST & json_proto [17:23:33]process_json_proto [17:23:33]json parsed OK: [17:23:33]protocol is kg_v1.0 [17:23:33]action value=close_receipt [17:23:33]process_action close_receipt [17:23:33]cmd_close_receipt [17:23:33]MH_GetDate [17:23:33]Write to MH i2c: F0 00 00 59 6F B7 [17:23:33]Write i2c OK [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: F0 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: F0 09 00 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: F0 09 00 59 6F 00 28 8E 16 67 21 48 4A 65 0B [17:23:33]GetLastDocTimeStamp 1729531382 [17:23:33]current date 1729531432 [17:23:33]FM_GetShiftState [17:23:33]SAM_PROTO_GetShiftState [17:23:33]wFMCommunicate request_size=4 [17:23:33]MH_SAM_APDU [17:23:33]CAPDU: 80 13 01 00 [17:23:33]Write to MH i2c: E2 08 00 5A 6F 80 13 01 00 00 00 00 00 46 [17:23:33]Write i2c OK [17:23:33]MH_I2C_Read... [17:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:33]Read from MH i2c: E2 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: E2 0E 00 [17:23:33]MH_I2C_Read... [17:23:33]Read from MH i2c: E2 0E 00 5A 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4F [17:23:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:23:33]wFMCommunicate OK [17:23:33]SAM_PROTO_GetShiftState done [17:23:33]FM_GetShiftState done [17:23:33]opened in 1729470944 [17:23:33]opened+sec_in_day 1729557344 [17:23:33]quantity*price = 0 [17:23:33]sum+1 = 1 [17:23:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 240 21.10.2024 17:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166129 ФПД: 83731306542727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172352&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166129&fm=83731306542727&tin=02508201610067®Number=0000000000091764&sum=0 [17:23:34]StoreToDocumentArchive [17:23:34]shift 535 fd 166129 [17:23:34]save to /storage/0535/doc_00166129 [17:23:34]save last doc name /storage/0535/doc_00166129 to /storage/kkm_last_doc_name [17:23:34]save OK [17:23:34]Clear old archive folders... [17:23:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:23:34]tlvbuf is 015E9B00 [17:23:34]SAM_PROTO_ClearQueue [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 09 00 00 [17:23:34]Write to MH i2c: E2 08 00 67 6F 80 09 00 00 00 00 00 00 48 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 67 6F 00 90 00 4A [17:23:34]RAPDU: 90 00 [17:23:34]wFMCommunicate OK [17:23:34]SAM_PROTO_ClearQueue done [17:23:34]KKMCreateOFDPacket [17:23:34]OFDProtocolAddRootSTLVToBuf [17:23:34]FM_MakeSignedData [17:23:34]FM_MakeSignedData [17:23:34]SAM_PROTO_SignData [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 0D 01 02 [17:23:34]Write to MH i2c: E2 08 00 68 6F 80 0D 01 02 00 00 00 00 50 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 68 6F 00 90 00 4B [17:23:34]RAPDU: 90 00 [17:23:34]wFMCommunicate OK [17:23:34]wFMCommunicate request_size=255 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 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 F0 00 00 00 F4 03 04 00 28 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 88 02 00 35 04 06 00 4C 27 36 C8 [17:23:34]Write to MH i2c: E2 02 01 69 6F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 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 F0 00 00 00 F4 03 04 00 28 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 88 02 00 35 04 06 00 4C 27 36 C8 00 00 31 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 69 6F 00 90 00 4C [17:23:34]RAPDU: 90 00 [17:23:34]wFMCommunicate OK [17:23:34]wFMCommunicate request_size=7 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 0D 02 02 02 76 87 [17:23:34]Write to MH i2c: E2 0A 00 6A 6F 80 0D 02 02 02 00 76 87 00 00 54 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 03 00 6A 6F 00 90 00 4D [17:23:34]RAPDU: 90 00 [17:23:34]wFMCommunicate OK [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 0D 03 02 [17:23:34]Write to MH i2c: E2 08 00 6B 6F 80 0D 03 02 00 00 00 00 55 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 0B 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 0B 00 6B 6F 00 D1 C3 7E 93 7C 2D 9A C0 90 00 FE [17:23:34]RAPDU: D1 C3 7E 93 7C 2D 9A C0 90 00 [17:23:34]wFMCommunicate OK [17:23:34]SAM_PROTO_SignData done [17:23:34]FM_MakeSignedData done [17:23:34]CreateOFDProtocolMessage [17:23:34]wFMCommunicate request_size=4 [17:23:34]MH_SAM_APDU [17:23:34]CAPDU: 80 11 00 00 [17:23:34]Write to MH i2c: E2 08 00 6C 6F 80 11 00 00 00 00 00 00 55 [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:34]Read from MH i2c: E2 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 17 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: E2 17 00 6C 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [17:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:34]wFMCommunicate OK [17:23:34]CreateOFDProtocolMessage done [17:23:34]OFDSenderStorePacket 166129 [17:23:34]StoreOFDPacket docnum=166129 [17:23:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 61 04 01 56 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 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 F0 00 00 00 F4 03 04 00 28 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 88 02 00 35 04 06 00 4C 27 36 C8 76 87 D1 C3 7E 93 7C 2D 9A C0 [17:23:34]CheckFolder [17:23:34]dirname=/storage/ofd_packets [17:23:34]CheckFolder done [17:23:34]ProducePacketName [17:23:34]name=ofd_packets/00166129 [17:23:34]NVStorageSaveData ofd_packets/00166129 [17:23:34]File name is /storage/ofd_packets/00166129 [17:23:34]Write 298 bytes [17:23:34]NVStorageSaveData done [17:23:34]OFDSenderStorePacket done [17:23:34]KKMCreateOFDPacket done [17:23:34]NVStorageSaveData kkm_last_timestamp [17:23:34]File name is /storage/kkm_last_timestamp [17:23:34]Write 4 bytes [17:23:34]NVStorageSaveData done [17:23:34]ExternCall_PrintAddStr [17:23:34]wPrintStart [17:23:34]Write to MH i2c: 01 00 00 6D 6F DC [17:23:34]Write i2c OK [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: 01 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: 01 07 00 [17:23:34]MH_I2C_Read... [17:23:34]Read from MH i2c: 01 07 00 6D 6F 00 00 00 00 00 FF 0F F1 [17:23:34]RasterBufferAndPrint [17:23:34]line Счет N : (1)220699 [17:23:34]line ИНН: 02508201610067 [17:23:34]line Контрольно-Кассовый Чек [17:23:34]line ПРОДАЖА [17:23:34]line ТРК (МРК, ГНК) : 11 [17:23:34]line Товар: 2710194210 [17:23:34]line ДТ-К-5 [17:23:34]line 65.620 * 0.00 [17:23:34]line = 0.00 [17:23:34]line НДС 12% НСП 1% [17:23:34]line > о реализуемом товаре [17:23:34]line ИТОГО: 0.00 [17:23:34]line НСП 1% : 0.00 [17:23:34]line НДС 12% : 0.00 [17:23:34]line Наличными: 0.00 [17:23:34]line Безнал.: 0.00 [17:23:34]line Место: АЗС № 161 "Партнер Нефть" [17:23:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:23:34]line СНО: Общий режим [17:23:34]line Чек 240 21.10.2024 17:23 [17:23:34]line Смена: 535 ФФД: 1.0 [17:23:34]line ЗНМ: 0300000104 [17:23:34]line РНМ: 0000000000091764 [17:23:34]line Версия ККМ: 001 [17:23:34]line Талоны: Топливная Карта [17:23:34]line 38286 [17:23:34]line ФМ: 0000000000871759 [17:23:34]line ФД: 166129 [17:23:34]line ФПД: 83731306542727 [17:23:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172352&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166129&fm=83731306542727&tin=02508201610067®Number=0000000000091764&sum=0 [17:23:35]OFD Sender: Processing packet 166129 [packets to send 48, broken 47] [17:23:35]ProducePacketName [17:23:35]name=ofd_packets/00166129 [17:23:35]OFD Sender: To server: pG, [17:23:35]CommunicateWithHost lk.salyk.kg:30040 [17:23:35]ConnectInit lk.salyk.kg [17:23:35]written 0, free lines is 4095 [17:23:35]Connected sock=7 [17:23:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 61 04 01 56 F6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 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 F0 00 00 00 F4 03 04 00 28 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 88 02 00 35 04 06 00 4C 27 36 C8 76 87 D1 C3 7E 93 7C 2D 9A C0 [17:23:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3D 70 47 00 24 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F1 88 02 00 F4 03 04 00 96 34 16 67 B6 04 01 00 00 CC 85 BE 07 39 A2 5B AF [17:23:35]CommunicateWithHost err = 0 [17:23:35]CheckOFDResponse [17:23:35]1017 (14) - 77093643461234 [17:23:35]1041 (16) - 0000000000871759 [17:23:35]1040 (4) - 166129 [17:23:35]1012 (4) - 21.10.2024 11:01 [17:23:35]1206 (1) - 0 [17:23:35]OFD Sender: Remove packet 166129 [17:23:35]ProducePacketName [17:23:35]name=ofd_packets/00166129 [17:23:35]NVStorageDeleteData [17:23:35]Write to MH i2c: 01 00 00 97 6F 06 [17:23:35]Write i2c OK [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: 01 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: 01 07 00 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: 01 07 00 97 6F 00 00 00 00 00 C5 0C DE [17:23:35]RasterBufferAndPrint [17:23:35]line [17:23:35]line [17:23:35]line [17:23:35]line [17:23:35]line [17:23:35]written 0, free lines is 3279 [17:23:35]MH_Cut [17:23:35]Write to MH i2c: D1 01 00 9E 6F 01 DF [17:23:35]Write i2c OK [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: D1 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: D1 01 00 [17:23:35]MH_I2C_Read... [17:23:35]Read from MH i2c: D1 01 00 9E 6F 00 DE [17:23:35]Write to MH i2c: 01 00 00 9F 6F 0E [17:23:35]Write i2c OK [17:23:35]MH_I2C_Read... [17:23:35]OFD Sender: No OFD packet to send [17:23:36]*** Cut start [17:23:36]*** Partial cut [17:23:36]*** CUTSNS_PIN = 1 [17:23:36]*** CUTSNS_PIN = 0 [17:23:36]*** Brake cut motor [17:23:36]Read from MH i2c: 01 [17:23:36]MH_I2C_Read... [17:23:36]*** Stop cut motor [17:23:36]*** Cut end [17:23:36]Read from MH i2c: 01 07 00 [17:23:36]MH_I2C_Read... [17:23:36]Read from MH i2c: 01 07 00 9F 6F 00 00 00 00 00 FF 0F 23 [17:23:36]process_action close_receipt done [17:23:36]requested_data is exist [17:23:36]produce_requested_data [17:23:36]requested_item fm.sn is exist - process it [17:23:36]wFMCommunicate request_size=4 [17:23:36]MH_SAM_APDU [17:23:36]CAPDU: 80 11 00 00 [17:23:36]Write to MH i2c: E2 08 00 A0 6F 80 11 00 00 00 00 00 00 89 [17:23:36]Write i2c OK [17:23:36]MH_I2C_Read... [17:23:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:36]Read from MH i2c: E2 [17:23:36]MH_I2C_Read... [17:23:36]Read from MH i2c: E2 17 00 [17:23:36]MH_I2C_Read... [17:23:36]Read from MH i2c: E2 17 00 A0 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [17:23:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:36]wFMCommunicate OK [17:23:36]requested_item fd.num is exist - process it [17:23:36]SAM_PROTO_GetFieldsCounters [17:23:36]wFMCommunicate request_size=4 [17:23:36]MH_SAM_APDU [17:23:36]CAPDU: 80 13 00 00 [17:23:36]Write to MH i2c: E2 08 00 A1 6F 80 13 00 00 00 00 00 00 8C [17:23:36]Write i2c OK [17:23:36]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 62 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 62 00 A1 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [17:23:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F1 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:37]wFMCommunicate OK [17:23:37]SAM_PROTO_GetFieldsCounters done [17:23:37]requested_item shift.num is exist - process it [17:23:37]requested_item shift.opened is exist - process it [17:23:37]req_shift_opened [17:23:37]FM_GetShiftState [17:23:37]SAM_PROTO_GetShiftState [17:23:37]wFMCommunicate request_size=4 [17:23:37]MH_SAM_APDU [17:23:37]CAPDU: 80 13 01 00 [17:23:37]Write to MH i2c: E2 08 00 A2 6F 80 13 01 00 00 00 00 00 8E [17:23:37]Write i2c OK [17:23:37]MH_I2C_Read... [17:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:37]Read from MH i2c: E2 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0E 00 [17:23:37]MH_I2C_Read... [17:23:37]Read from MH i2c: E2 0E 00 A2 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 97 [17:23:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:23:37]wFMCommunicate OK [17:23:37]SAM_PROTO_GetShiftState done [17:23:37]FM_GetShiftState done [17:23:37]req_shift_opened done [17:23:37]requested_item shift.open_date is exist - process it [17:23:37]req_shift_open_date [17:23:37]req_shift_open_date done [17:23:37]produce_requested_data done [17:23:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166129,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:23:37]process_action_free close_receipt [17:23:37]json_value_free [17:23:37]json_value_free done [17:23:37]process_json_proto returns [17:23:37]Send response to host [17:23:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166129,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:23:37]free response buf [17:23:37]execute_script done [17:23:37]execute_script returns [17:23:37]free content buf [17:23:37]Sock 6.Close socket [17:23:37]Sock 6.Thread stoped [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:52]accept exits with 5 [17:23:52]New connection [17:23:52]New thread 3066920292 created [17:23:52]Thread 3066776932 joined [17:23:52]Waiting for new connection... [17:23:52] Sock 5.Parse request [17:23:52]Sock 5.Check first char [17:23:52]Sock 5.First char is OK [17:23:52]request: POST /json_proto HTTP/1.0 [17:23:52]Method: POST [17:23:52]URL: /json_proto [17:23:52]Method is POST - this is cgi request [17:23:52]url: /json_proto [17:23:52]query_string will be loaded in cgi processing [17:23:52]execute_cgi json_proto POST (null) [17:23:52]execute_cgi path=json_proto method=POST [17:23:52]POST find Content-Length [17:23:52]Host: 172.17.53.195:8080 [17:23:52]Content-Length: 677 [17:23:52]Content-Type: application/json [17:23:52] [17:23:52]POST finish read [17:23:52]Found Content-Length = 677 [17:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:52]execute_script... [17: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)220701", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:52]POST & json_proto [17:23:52]process_json_proto [17:23:52]json parsed OK: [17:23:52]protocol is kg_v1.0 [17:23:52]action value=close_receipt [17:23:52]process_action close_receipt [17:23:52]cmd_close_receipt [17:23:52]MH_GetDate [17:23:52]Write to MH i2c: F0 00 00 A3 6F 01 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 09 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 09 00 A3 6F 00 3B 8E 16 67 21 48 4A 65 68 [17:23:52]GetLastDocTimeStamp 1729531432 [17:23:52]current date 1729531451 [17:23:52]FM_GetShiftState [17:23:52]SAM_PROTO_GetShiftState [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 13 01 00 [17:23:52]Write to MH i2c: E2 08 00 A4 6F 80 13 01 00 00 00 00 00 90 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0E 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0E 00 A4 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 99 [17:23:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:23:52]wFMCommunicate OK [17:23:52]SAM_PROTO_GetShiftState done [17:23:52]FM_GetShiftState done [17:23:52]opened in 1729470944 [17:23:52]opened+sec_in_day 1729557344 [17:23:52]quantity*price = 49974 [17:23:52]sum+1 = 49975 [17:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 241 21.10.2024 17:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166130 ФПД: 280395416221749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166130&fm=280395416221749&tin=02508201610067®Number=0000000000091764&sum=49900 [17:23:53]StoreToDocumentArchive [17:23:53]shift 535 fd 166130 [17:23:53]save to /storage/0535/doc_00166130 [17:23:53]save last doc name /storage/0535/doc_00166130 to /storage/kkm_last_doc_name [17:23:53]save OK [17:23:53]Clear old archive folders... [17:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:53]tlvbuf is 015E9910 [17:23:53]SAM_PROTO_ClearQueue [17:23:53]wFMCommunicate request_size=4 [17:23:53]MH_SAM_APDU [17:23:53]CAPDU: 80 09 00 00 [17:23:53]Write to MH i2c: E2 08 00 B1 6F 80 09 00 00 00 00 00 00 92 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:53]Read from MH i2c: E2 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 B1 6F 00 90 00 94 [17:23:53]RAPDU: 90 00 [17:23:53]wFMCommunicate OK [17:23:53]SAM_PROTO_ClearQueue done [17:23:53]KKMCreateOFDPacket [17:23:53]OFDProtocolAddRootSTLVToBuf [17:23:53]FM_MakeSignedData [17:23:53]FM_MakeSignedData [17:23:53]SAM_PROTO_SignData [17:23:53]wFMCommunicate request_size=4 [17:23:53]MH_SAM_APDU [17:23:53]CAPDU: 80 0D 01 02 [17:23:53]Write to MH i2c: E2 08 00 B2 6F 80 0D 01 02 00 00 00 00 9A [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:53]Read from MH i2c: E2 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 B2 6F 00 90 00 95 [17:23:53]RAPDU: 90 00 [17:23:53]wFMCommunicate OK [17:23:53]wFMCommunicate request_size=255 [17:23:53]MH_SAM_APDU [17: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 3B 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 88 02 00 35 04 06 00 FF [17:23:53]Write to MH i2c: E2 02 01 B3 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 3B 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 88 02 00 35 04 06 00 FF 00 00 DC [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 B3 6F 00 90 00 96 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=10 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 02 02 05 04 A5 2E 38 35 [17:23:54]Write to MH i2c: E2 0D 00 B4 6F 80 0D 02 02 05 00 04 A5 2E 38 35 00 00 EB [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 B4 6F 00 90 00 97 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 03 02 [17:23:54]Write to MH i2c: E2 08 00 B5 6F 80 0D 03 02 00 00 00 00 9F [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0B 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0B 00 B5 6F 00 EF FC D2 C0 07 88 8E 08 90 00 42 [17:23:54]RAPDU: EF FC D2 C0 07 88 8E 08 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_SignData done [17:23:54]FM_MakeSignedData done [17:23:54]CreateOFDProtocolMessage [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 11 00 00 [17:23:54]Write to MH i2c: E2 08 00 B6 6F 80 11 00 00 00 00 00 00 9F [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 B6 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [17:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:54]wFMCommunicate OK [17:23:54]CreateOFDProtocolMessage done [17:23:54]OFDSenderStorePacket 166130 [17:23:54]StoreOFDPacket docnum=166130 [17:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 1C 07 01 FC 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 3B 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 88 02 00 35 04 06 00 FF 04 A5 2E 38 35 EF FC D2 C0 07 88 8E 08 [17:23:54]CheckFolder [17:23:54]dirname=/storage/ofd_packets [17:23:54]CheckFolder done [17:23:54]ProducePacketName [17:23:54]name=ofd_packets/00166130 [17:23:54]NVStorageSaveData ofd_packets/00166130 [17:23:54]File name is /storage/ofd_packets/00166130 [17:23:54]Write 301 bytes [17:23:54]NVStorageSaveData done [17:23:54]OFDSenderStorePacket done [17:23:54]KKMCreateOFDPacket done [17:23:54]NVStorageSaveData kkm_last_timestamp [17:23:54]File name is /storage/kkm_last_timestamp [17:23:54]Write 4 bytes [17:23:54]NVStorageSaveData done [17:23:54]ExternCall_PrintAddStr [17:23:54]wPrintStart [17:23:54]Write to MH i2c: 01 00 00 B7 6F 26 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 07 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 07 00 B7 6F 00 00 00 00 00 FF 0F 3B [17:23:54]RasterBufferAndPrint [17:23:54]line Счет N : (1)220701 [17:23:54]line ИНН: 02508201610067 [17:23:54]line Контрольно-Кассовый Чек [17:23:54]line ПРОДАЖА [17:23:54]line ТРК (МРК, ГНК) : 43 [17:23:54]line Товар: 2710124130 [17:23:54]line Аи-92-К-5 [17:23:54]line 7.470 * 66.90 [17:23:54]line = 499.74 [17:23:54]line НДС 12% НСП 1% [17:23:54]line > о реализуемом товаре [17:23:54]line ОКРУГЛЕНИЕ: -0.74 [17:23:54]line ИТОГО: 499.00 [17:23:54]line Внесено: 500.00 [17:23:54]line СДАЧА: 1.00 [17:23:54]line НСП 1% : 4.42 [17:23:54]line НДС 12% : 53.07 [17:23:54]line Наличными: 499.00 [17:23:54]line Безнал.: 0.00 [17:23:54]line Место: АЗС № 161 "Партнер Нефть" [17:23:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:23:54]line СНО: Общий режим [17:23:54]line Чек 241 21.10.2024 17:24 [17:23:54]line Смена: 535 ФФД: 1.0 [17:23:54]line ЗНМ: 0300000104 [17:23:54]line РНМ: 0000000000091764 [17:23:54]line Версия ККМ: 001 [17:23:54]line ФМ: 0000000000871759 [17:23:54]line ФД: 166130 [17:23:54]line ФПД: 280395416221749 [17:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172411&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166130&fm=280395416221749&tin=02508201610067®Number=0000000000091764&sum=49900 [17:23:54]OFD Sender: Processing packet 166130 [packets to send 48, broken 47] [17:23:54]ProducePacketName [17:23:54]name=ofd_packets/00166130 [17:23:54]OFD Sender: To server: pG, [17:23:54]CommunicateWithHost lk.salyk.kg:30040 [17:23:54]ConnectInit lk.salyk.kg [17:23:54]written 0, free lines is 4095 [17:23:54]Connected sock=7 [17:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 68 1C 07 01 FC 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 3B 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 88 02 00 35 04 06 00 FF 04 A5 2E 38 35 EF FC D2 C0 07 88 8E 08 [17:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E4 AF 47 00 CB 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F2 88 02 00 F4 03 04 00 A9 34 16 67 B6 04 01 00 00 A4 9B A6 D1 E4 DC 75 1F [17:23:54]CommunicateWithHost err = 0 [17:23:54]CheckOFDResponse [17:23:54]1017 (14) - 77093643461234 [17:23:54]1041 (16) - 0000000000871759 [17:23:54]1040 (4) - 166130 [17:23:54]1012 (4) - 21.10.2024 11:02 [17:23:54]1206 (1) - 0 [17:23:54]OFD Sender: Remove packet 166130 [17:23:54]ProducePacketName [17:23:54]name=ofd_packets/00166130 [17:23:54]NVStorageDeleteData [17:23:55]Write to MH i2c: 01 00 00 E2 6F 51 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 E2 6F 00 00 00 00 00 C8 0C 2C [17:23:55]RasterBufferAndPrint [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]written 0, free lines is 3278 [17:23:55]MH_Cut [17:23:55]Write to MH i2c: D1 01 00 E9 6F 01 2A [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: D1 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: D1 01 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: D1 01 00 E9 6F 00 29 [17:23:55]Write to MH i2c: 01 00 00 EA 6F 59 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]OFD Sender: No OFD packet to send [17:23:55]*** Cut start [17:23:55]*** Partial cut [17:23:55]*** CUTSNS_PIN = 1 [17:23:55]*** CUTSNS_PIN = 0 [17:23:56]*** Brake cut motor [17:23:56]Read from MH i2c: 01 [17:23:56]MH_I2C_Read... [17:23:56]*** Stop cut motor [17:23:56]*** Cut end [17:23:56]Read from MH i2c: 01 07 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: 01 07 00 EA 6F 00 00 00 00 00 FF 0F 6E [17:23:56]process_action close_receipt done [17:23:56]requested_data is exist [17:23:56]produce_requested_data [17:23:56]requested_item fm.sn is exist - process it [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 11 00 00 [17:23:56]Write to MH i2c: E2 08 00 EB 6F 80 11 00 00 00 00 00 00 D4 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 17 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 17 00 EB 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [17:23:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:23:56]wFMCommunicate OK [17:23:56]requested_item fd.num is exist - process it [17:23:56]SAM_PROTO_GetFieldsCounters [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 13 00 00 [17:23:56]Write to MH i2c: E2 08 00 EC 6F 80 13 00 00 00 00 00 00 D7 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 62 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 62 00 EC 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [17: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F2 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_GetFieldsCounters done [17:23:56]requested_item shift.num is exist - process it [17:23:56]requested_item shift.opened is exist - process it [17:23:56]req_shift_opened [17:23:56]FM_GetShiftState [17:23:56]SAM_PROTO_GetShiftState [17:23:56]wFMCommunicate request_size=4 [17:23:56]MH_SAM_APDU [17:23:56]CAPDU: 80 13 01 00 [17:23:56]Write to MH i2c: E2 08 00 ED 6F 80 13 01 00 00 00 00 00 D9 [17:23:56]Write i2c OK [17:23:56]MH_I2C_Read... [17:23:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:56]Read from MH i2c: E2 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 0E 00 [17:23:56]MH_I2C_Read... [17:23:56]Read from MH i2c: E2 0E 00 ED 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E2 [17:23:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:23:56]wFMCommunicate OK [17:23:56]SAM_PROTO_GetShiftState done [17:23:56]FM_GetShiftState done [17:23:56]req_shift_opened done [17:23:56]requested_item shift.open_date is exist - process it [17:23:56]req_shift_open_date [17:23:56]req_shift_open_date done [17:23:56]produce_requested_data done [17:23:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166130,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:23:56]process_action_free close_receipt [17:23:56]json_value_free [17:23:56]json_value_free done [17:23:56]process_json_proto returns [17:23:56]Send response to host [17:23:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166130,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:23:56]free response buf [17:23:56]execute_script done [17:23:56]execute_script returns [17:23:56]free content buf [17:23:56]Sock 5.Close socket [17:23:56]Sock 5.Thread stoped [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:19]accept exits with 6 [17:25:19]New connection [17:25:19]New thread 3066776932 created [17:25:19]Thread 3066920292 joined [17:25:19]Waiting for new connection... [17:25:19] Sock 6.Parse request [17:25:19]Sock 6.Check first char [17:25:19]Sock 6.First char is OK [17:25:19]request: POST /json_proto HTTP/1.0 [17:25:19]Method: POST [17:25:19]URL: /json_proto [17:25:19]Method is POST - this is cgi request [17:25:19]url: /json_proto [17:25:19]query_string will be loaded in cgi processing [17:25:19]execute_cgi json_proto POST (null) [17:25:19]execute_cgi path=json_proto method=POST [17:25:19]POST find Content-Length [17:25:19]Host: 172.17.53.195:8080 [17:25:19]Content-Length: 677 [17:25:19]Content-Type: application/json [17:25:19] [17:25:19]POST finish read [17:25:19]Found Content-Length = 677 [17:25:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:19]execute_script... [17:25:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220702", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:19]POST & json_proto [17:25:19]process_json_proto [17:25:19]json parsed OK: [17:25:19]protocol is kg_v1.0 [17:25:19]action value=close_receipt [17:25:19]process_action close_receipt [17:25:19]cmd_close_receipt [17:25:19]MH_GetDate [17:25:19]Write to MH i2c: F0 00 00 EE 6F 4C [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: F0 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: F0 09 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: F0 09 00 EE 6F 00 92 8E 16 67 21 48 4A 65 0A [17:25:19]GetLastDocTimeStamp 1729531451 [17:25:19]current date 1729531538 [17:25:19]FM_GetShiftState [17:25:19]SAM_PROTO_GetShiftState [17:25:19]wFMCommunicate request_size=4 [17:25:19]MH_SAM_APDU [17:25:19]CAPDU: 80 13 01 00 [17:25:19]Write to MH i2c: E2 08 00 EF 6F 80 13 01 00 00 00 00 00 DB [17:25:19]Write i2c OK [17:25:19]MH_I2C_Read... [17:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:19]Read from MH i2c: E2 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 0E 00 [17:25:19]MH_I2C_Read... [17:25:19]Read from MH i2c: E2 0E 00 EF 6F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E4 [17:25:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:25:19]wFMCommunicate OK [17:25:19]SAM_PROTO_GetShiftState done [17:25:19]FM_GetShiftState done [17:25:19]opened in 1729470944 [17:25:19]opened+sec_in_day 1729557344 [17:25:19]quantity*price = 20003 [17:25:19]sum+1 = 20004 [17:25:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 242 21.10.2024 17:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166131 ФПД: 235755065190395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172538&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166131&fm=235755065190395&tin=02508201610067®Number=0000000000091764&sum=20000 [17:25:20]StoreToDocumentArchive [17:25:20]shift 535 fd 166131 [17:25:20]save to /storage/0535/doc_00166131 [17:25:20]save last doc name /storage/0535/doc_00166131 to /storage/kkm_last_doc_name [17:25:20]save OK [17:25:20]Clear old archive folders... [17:25:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:20]tlvbuf is 015129F0 [17:25:20]SAM_PROTO_ClearQueue [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 09 00 00 [17:25:20]Write to MH i2c: E2 08 00 FC 6F 80 09 00 00 00 00 00 00 DD [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 FC 6F 00 90 00 DF [17:25:20]RAPDU: 90 00 [17:25:20]wFMCommunicate OK [17:25:20]SAM_PROTO_ClearQueue done [17:25:20]KKMCreateOFDPacket [17:25:20]OFDProtocolAddRootSTLVToBuf [17:25:20]FM_MakeSignedData [17:25:20]FM_MakeSignedData [17:25:20]SAM_PROTO_SignData [17:25:20]wFMCommunicate request_size=4 [17:25:20]MH_SAM_APDU [17:25:20]CAPDU: 80 0D 01 02 [17:25:20]Write to MH i2c: E2 08 00 FD 6F 80 0D 01 02 00 00 00 00 E5 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:20]Read from MH i2c: E2 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 [17:25:20]MH_I2C_Read... [17:25:20]Read from MH i2c: E2 03 00 FD 6F 00 90 00 E0 [17:25:20]RAPDU: 90 00 [17:25:20]wFMCommunicate OK [17:25:20]wFMCommunicate request_size=255 [17:25:20]MH_SAM_APDU [17: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 92 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 88 02 00 35 04 06 00 D6 [17:25:20]Write to MH i2c: E2 02 01 FE 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 92 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 88 02 00 35 04 06 00 D6 00 00 38 [17:25:20]Write i2c OK [17:25:20]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 FE 6F 00 90 00 E1 [17:25:21]RAPDU: 90 00 [17:25:21]wFMCommunicate OK [17:25:21]wFMCommunicate request_size=10 [17:25:21]MH_SAM_APDU [17:25:21]CAPDU: 80 0D 02 02 05 6B 00 EA 27 FB [17:25:21]Write to MH i2c: E2 0D 00 FF 6F 80 0D 02 02 05 00 6B 00 EA 27 FB 00 00 69 [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 03 00 FF 6F 00 90 00 E2 [17:25:21]RAPDU: 90 00 [17:25:21]wFMCommunicate OK [17:25:21]wFMCommunicate request_size=4 [17:25:21]MH_SAM_APDU [17:25:21]CAPDU: 80 0D 03 02 [17:25:21]Write to MH i2c: E2 08 00 00 70 80 0D 03 02 00 00 00 00 EB [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 0B 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 0B 00 00 70 00 08 7D E1 19 F6 8D A7 57 90 00 EC [17:25:21]RAPDU: 08 7D E1 19 F6 8D A7 57 90 00 [17:25:21]wFMCommunicate OK [17:25:21]SAM_PROTO_SignData done [17:25:21]FM_MakeSignedData done [17:25:21]CreateOFDProtocolMessage [17:25:21]wFMCommunicate request_size=4 [17:25:21]MH_SAM_APDU [17:25:21]CAPDU: 80 11 00 00 [17:25:21]Write to MH i2c: E2 08 00 01 70 80 11 00 00 00 00 00 00 EB [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:21]Read from MH i2c: E2 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 17 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: E2 17 00 01 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [17:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:25:21]wFMCommunicate OK [17:25:21]CreateOFDProtocolMessage done [17:25:21]OFDSenderStorePacket 166131 [17:25:21]StoreOFDPacket docnum=166131 [17:25:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 4A 07 01 26 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 92 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 88 02 00 35 04 06 00 D6 6B 00 EA 27 FB 08 7D E1 19 F6 8D A7 57 [17:25:21]CheckFolder [17:25:21]dirname=/storage/ofd_packets [17:25:21]CheckFolder done [17:25:21]ProducePacketName [17:25:21]name=ofd_packets/00166131 [17:25:21]NVStorageSaveData ofd_packets/00166131 [17:25:21]File name is /storage/ofd_packets/00166131 [17:25:21]Write 301 bytes [17:25:21]NVStorageSaveData done [17:25:21]OFDSenderStorePacket done [17:25:21]KKMCreateOFDPacket done [17:25:21]NVStorageSaveData kkm_last_timestamp [17:25:21]File name is /storage/kkm_last_timestamp [17:25:21]Write 4 bytes [17:25:21]NVStorageSaveData done [17:25:21]ExternCall_PrintAddStr [17:25:21]wPrintStart [17:25:21]Write to MH i2c: 01 00 00 02 70 72 [17:25:21]Write i2c OK [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 07 00 [17:25:21]MH_I2C_Read... [17:25:21]Read from MH i2c: 01 07 00 02 70 00 00 00 00 00 FF 0F 87 [17:25:21]RasterBufferAndPrint [17:25:21]line Счет N : (1)220702 [17:25:21]line ИНН: 02508201610067 [17:25:21]line Контрольно-Кассовый Чек [17:25:21]line ПРОДАЖА [17:25:21]line ТРК (МРК, ГНК) : 23 [17:25:21]line Товар: 2710124130 [17:25:21]line Аи-92-К-5 [17:25:21]line 2.990 * 66.90 [17:25:21]line = 200.03 [17:25:21]line НДС 12% НСП 1% [17:25:21]line > о реализуемом товаре [17:25:21]line ОКРУГЛЕНИЕ: -0.03 [17:25:21]line ИТОГО: 200.00 [17:25:21]line Внесено: 200.00 [17:25:21]line СДАЧА: 0.00 [17:25:21]line НСП 1% : 1.77 [17:25:21]line НДС 12% : 21.24 [17:25:21]line Наличными: 200.00 [17:25:21]line Безнал.: 0.00 [17:25:21]line Место: АЗС № 161 "Партнер Нефть" [17:25:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:25:21]line СНО: Общий режим [17:25:21]line Чек 242 21.10.2024 17:25 [17:25:21]line Смена: 535 ФФД: 1.0 [17:25:21]line ЗНМ: 0300000104 [17:25:21]line РНМ: 0000000000091764 [17:25:21]line Версия ККМ: 001 [17:25:21]line ФМ: 0000000000871759 [17:25:21]line ФД: 166131 [17:25:21]line ФПД: 235755065190395 [17:25:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172538&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166131&fm=235755065190395&tin=02508201610067®Number=0000000000091764&sum=20000 [17:25:21]OFD Sender: Processing packet 166131 [packets to send 48, broken 47] [17:25:21]ProducePacketName [17:25:21]name=ofd_packets/00166131 [17:25:21]OFD Sender: To server: pG, [17:25:21]CommunicateWithHost lk.salyk.kg:30040 [17:25:21]ConnectInit lk.salyk.kg [17:25:21]written 0, free lines is 4095 [17:25:21]Connected sock=9 [17:25:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 10 4A 07 01 26 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 92 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 88 02 00 35 04 06 00 D6 6B 00 EA 27 FB 08 7D E1 19 F6 8D A7 57 [17: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 35 39 4F 00 00 00 23 52 47 00 6A 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F3 88 02 00 F4 03 04 00 00 35 16 67 B6 04 01 00 00 32 34 FB 6A B2 1A 41 1C [17:25:21]CommunicateWithHost err = 0 [17:25:21]CheckOFDResponse [17:25:21]1017 (14) - 77093643461234 [17:25:21]1041 (16) - 0000000000871759 [17:25:21]1040 (4) - 166131 [17:25:21]1012 (4) - 21.10.2024 11:03 [17:25:21]1206 (1) - 0 [17:25:21]OFD Sender: Remove packet 166131 [17:25:21]ProducePacketName [17:25:21]name=ofd_packets/00166131 [17:25:21]NVStorageDeleteData [17:25:22]Write to MH i2c: 01 00 00 2D 70 9D [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 07 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: 01 07 00 2D 70 00 00 00 00 00 C2 0C 72 [17:25:22]RasterBufferAndPrint [17:25:22]line [17:25:22]line [17:25:22]line [17:25:22]line [17:25:22]line [17:25:22]written 0, free lines is 3272 [17:25:22]MH_Cut [17:25:22]Write to MH i2c: D1 01 00 34 70 01 76 [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: D1 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: D1 01 00 [17:25:22]MH_I2C_Read... [17:25:22]Read from MH i2c: D1 01 00 34 70 00 75 [17:25:22]Write to MH i2c: 01 00 00 35 70 A5 [17:25:22]Write i2c OK [17:25:22]MH_I2C_Read... [17:25:22]OFD Sender: No OFD packet to send [17:25:22]*** Cut start [17:25:22]*** Partial cut [17:25:22]*** CUTSNS_PIN = 1 [17:25:22]*** CUTSNS_PIN = 0 [17:25:23]*** Brake cut motor [17:25:23]Read from MH i2c: 01 [17:25:23]MH_I2C_Read... [17:25:23]*** Stop cut motor [17:25:23]*** Cut end [17:25:23]Read from MH i2c: 01 07 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: 01 07 00 35 70 00 00 00 00 00 FF 0F BA [17:25:23]process_action close_receipt done [17:25:23]requested_data is exist [17:25:23]produce_requested_data [17:25:23]requested_item fm.sn is exist - process it [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 11 00 00 [17:25:23]Write to MH i2c: E2 08 00 36 70 80 11 00 00 00 00 00 00 20 [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 17 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 17 00 36 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [17:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:25:23]wFMCommunicate OK [17:25:23]requested_item fd.num is exist - process it [17:25:23]SAM_PROTO_GetFieldsCounters [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 13 00 00 [17:25:23]Write to MH i2c: E2 08 00 37 70 80 13 00 00 00 00 00 00 23 [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 62 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 62 00 37 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [17:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F3 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:23]wFMCommunicate OK [17:25:23]SAM_PROTO_GetFieldsCounters done [17:25:23]requested_item shift.num is exist - process it [17:25:23]requested_item shift.opened is exist - process it [17:25:23]req_shift_opened [17:25:23]FM_GetShiftState [17:25:23]SAM_PROTO_GetShiftState [17:25:23]wFMCommunicate request_size=4 [17:25:23]MH_SAM_APDU [17:25:23]CAPDU: 80 13 01 00 [17:25:23]Write to MH i2c: E2 08 00 38 70 80 13 01 00 00 00 00 00 25 [17:25:23]Write i2c OK [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 [17:25:23]MH_I2C_Read... [17:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:23]Read from MH i2c: E2 0E 00 [17:25:23]MH_I2C_Read... [17:25:23]Read from MH i2c: E2 0E 00 38 70 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2E [17:25:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:25:23]wFMCommunicate OK [17:25:23]SAM_PROTO_GetShiftState done [17:25:23]FM_GetShiftState done [17:25:23]req_shift_opened done [17:25:23]requested_item shift.open_date is exist - process it [17:25:23]req_shift_open_date [17:25:23]req_shift_open_date done [17:25:23]produce_requested_data done [17:25:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166131,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:25:23]process_action_free close_receipt [17:25:23]json_value_free [17:25:23]json_value_free done [17:25:23]process_json_proto returns [17:25:23]Send response to host [17:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166131,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:25:23]free response buf [17:25:23]execute_script done [17:25:23]execute_script returns [17:25:23]free content buf [17:25:23]Sock 6.Close socket [17:25:23]Sock 6.Thread stoped [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:05]accept exits with 5 [17:26:05]New connection [17:26:05]New thread 3066920292 created [17:26:05]Thread 3066776932 joined [17:26:05]Waiting for new connection... [17:26:05] Sock 5.Parse request [17:26:05]Sock 5.Check first char [17:26:05]Sock 5.First char is OK [17:26:05]request: POST /json_proto HTTP/1.0 [17:26:05]Method: POST [17:26:05]URL: /json_proto [17:26:05]Method is POST - this is cgi request [17:26:05]url: /json_proto [17:26:05]query_string will be loaded in cgi processing [17:26:05]execute_cgi json_proto POST (null) [17:26:05]execute_cgi path=json_proto method=POST [17:26:05]POST find Content-Length [17:26:05]Host: 172.17.53.195:8080 [17:26:05]Content-Length: 677 [17:26:05]Content-Type: application/json [17:26:05] [17:26:05]POST finish read [17:26:05]Found Content-Length = 677 [17:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:05]execute_script... [17:26: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)220703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:05]POST & json_proto [17:26:05]process_json_proto [17:26:05]json parsed OK: [17:26:05]protocol is kg_v1.0 [17:26:05]action value=close_receipt [17:26:05]process_action close_receipt [17:26:05]cmd_close_receipt [17:26:05]MH_GetDate [17:26:05]Write to MH i2c: F0 00 00 39 70 98 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: F0 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: F0 09 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: F0 09 00 39 70 00 C0 8E 16 67 21 48 4A 65 84 [17:26:05]GetLastDocTimeStamp 1729531538 [17:26:05]current date 1729531584 [17:26:05]FM_GetShiftState [17:26:05]SAM_PROTO_GetShiftState [17:26:05]wFMCommunicate request_size=4 [17:26:05]MH_SAM_APDU [17:26:05]CAPDU: 80 13 01 00 [17:26:05]Write to MH i2c: E2 08 00 3A 70 80 13 01 00 00 00 00 00 27 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:05]Read from MH i2c: E2 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 0E 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: E2 0E 00 3A 70 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 30 [17:26:05]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:26:05]wFMCommunicate OK [17:26:05]SAM_PROTO_GetShiftState done [17:26:05]FM_GetShiftState done [17:26:05]opened in 1729470944 [17:26:05]opened+sec_in_day 1729557344 [17:26:05]quantity*price = 40006 [17:26:05]sum+1 = 40007 [17:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 243 21.10.2024 17:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166132 ФПД: 275735725584413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166132&fm=275735725584413&tin=02508201610067®Number=0000000000091764&sum=40000 [17:26:06]StoreToDocumentArchive [17:26:06]shift 535 fd 166132 [17:26:06]save to /storage/0535/doc_00166132 [17:26:06]save last doc name /storage/0535/doc_00166132 to /storage/kkm_last_doc_name [17:26:06]save OK [17:26:06]Clear old archive folders... [17:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:06]tlvbuf is 01971380 [17:26:06]SAM_PROTO_ClearQueue [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 09 00 00 [17:26:06]Write to MH i2c: E2 08 00 47 70 80 09 00 00 00 00 00 00 29 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 47 70 00 90 00 2B [17:26:06]RAPDU: 90 00 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_ClearQueue done [17:26:06]KKMCreateOFDPacket [17:26:06]OFDProtocolAddRootSTLVToBuf [17:26:06]FM_MakeSignedData [17:26:06]FM_MakeSignedData [17:26:06]SAM_PROTO_SignData [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 0D 01 02 [17:26:06]Write to MH i2c: E2 08 00 48 70 80 0D 01 02 00 00 00 00 31 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 03 00 48 70 00 90 00 2C [17:26:06]RAPDU: 90 00 [17:26:06]wFMCommunicate OK [17:26:06]wFMCommunicate request_size=255 [17:26:06]MH_SAM_APDU [17:26: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C0 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 88 02 00 35 04 06 00 FA [17:26:06]Write to MH i2c: E2 02 01 49 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C0 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 88 02 00 35 04 06 00 FA 00 00 E5 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:07]Read from MH i2c: E2 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 03 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 03 00 49 70 00 90 00 2D [17:26:07]RAPDU: 90 00 [17:26:07]wFMCommunicate OK [17:26:07]wFMCommunicate request_size=10 [17:26:07]MH_SAM_APDU [17:26:07]CAPDU: 80 0D 02 02 05 C7 B9 F9 B0 1D [17:26:07]Write to MH i2c: E2 0D 00 4A 70 80 0D 02 02 05 00 C7 B9 F9 B0 1D 00 00 84 [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:07]Read from MH i2c: E2 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 03 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 03 00 4A 70 00 90 00 2E [17:26:07]RAPDU: 90 00 [17:26:07]wFMCommunicate OK [17:26:07]wFMCommunicate request_size=4 [17:26:07]MH_SAM_APDU [17:26:07]CAPDU: 80 0D 03 02 [17:26:07]Write to MH i2c: E2 08 00 4B 70 80 0D 03 02 00 00 00 00 36 [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:07]Read from MH i2c: E2 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 0B 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 0B 00 4B 70 00 74 20 8E 2D 91 80 BF 37 90 00 8D [17:26:07]RAPDU: 74 20 8E 2D 91 80 BF 37 90 00 [17:26:07]wFMCommunicate OK [17:26:07]SAM_PROTO_SignData done [17:26:07]FM_MakeSignedData done [17:26:07]CreateOFDProtocolMessage [17:26:07]wFMCommunicate request_size=4 [17:26:07]MH_SAM_APDU [17:26:07]CAPDU: 80 11 00 00 [17:26:07]Write to MH i2c: E2 08 00 4C 70 80 11 00 00 00 00 00 00 36 [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:07]Read from MH i2c: E2 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 17 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: E2 17 00 4C 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8E [17:26:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:26:07]wFMCommunicate OK [17:26:07]CreateOFDProtocolMessage done [17:26:07]OFDSenderStorePacket 166132 [17:26:07]StoreOFDPacket docnum=166132 [17:26:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 2C 07 01 CC 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C0 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 88 02 00 35 04 06 00 FA C7 B9 F9 B0 1D 74 20 8E 2D 91 80 BF 37 [17:26:07]CheckFolder [17:26:07]dirname=/storage/ofd_packets [17:26:07]CheckFolder done [17:26:07]ProducePacketName [17:26:07]name=ofd_packets/00166132 [17:26:07]NVStorageSaveData ofd_packets/00166132 [17:26:07]File name is /storage/ofd_packets/00166132 [17:26:07]Write 301 bytes [17:26:07]NVStorageSaveData done [17:26:07]OFDSenderStorePacket done [17:26:07]KKMCreateOFDPacket done [17:26:07]NVStorageSaveData kkm_last_timestamp [17:26:07]File name is /storage/kkm_last_timestamp [17:26:07]Write 4 bytes [17:26:07]NVStorageSaveData done [17:26:07]ExternCall_PrintAddStr [17:26:07]wPrintStart [17:26:07]Write to MH i2c: 01 00 00 4D 70 BD [17:26:07]Write i2c OK [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: 01 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: 01 07 00 [17:26:07]MH_I2C_Read... [17:26:07]Read from MH i2c: 01 07 00 4D 70 00 00 00 00 00 FF 0F D2 [17:26:07]RasterBufferAndPrint [17:26:07]line Счет N : (1)220703 [17:26:07]line ИНН: 02508201610067 [17:26:07]line Контрольно-Кассовый Чек [17:26:07]line ПРОДАЖА [17:26:07]line ТРК (МРК, ГНК) : 33 [17:26:07]line Товар: 2710124130 [17:26:07]line Аи-92-К-5 [17:26:07]line 5.980 * 66.90 [17:26:07]line = 400.06 [17:26:07]line НДС 12% НСП 1% [17:26:07]line > о реализуемом товаре [17:26:07]line ОКРУГЛЕНИЕ: -0.06 [17:26:07]line ИТОГО: 400.00 [17:26:07]line Внесено: 400.00 [17:26:07]line СДАЧА: 0.00 [17:26:07]line НСП 1% : 3.54 [17:26:07]line НДС 12% : 42.48 [17:26:07]line Наличными: 400.00 [17:26:07]line Безнал.: 0.00 [17:26:07]line Место: АЗС № 161 "Партнер Нефть" [17:26:07]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:26:07]line СНО: Общий режим [17:26:07]line Чек 243 21.10.2024 17:26 [17:26:07]line Смена: 535 ФФД: 1.0 [17:26:07]line ЗНМ: 0300000104 [17:26:07]line РНМ: 0000000000091764 [17:26:07]line Версия ККМ: 001 [17:26:07]line ФМ: 0000000000871759 [17:26:07]line ФД: 166132 [17:26:07]line ФПД: 275735725584413 [17:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172624&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166132&fm=275735725584413&tin=02508201610067®Number=0000000000091764&sum=40000 [17:26:07]OFD Sender: Processing packet 166132 [packets to send 48, broken 47] [17:26:07]ProducePacketName [17:26:07]name=ofd_packets/00166132 [17:26:07]OFD Sender: To server: pG, [17:26:07]CommunicateWithHost lk.salyk.kg:30040 [17:26:07]ConnectInit lk.salyk.kg [17:26:07]written 0, free lines is 4095 [17:26:07]Connected sock=7 [17:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5D 2C 07 01 CC 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 C0 8E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 88 02 00 35 04 06 00 FA C7 B9 F9 B0 1D 74 20 8E 2D 91 80 BF 37 [17:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1F A8 47 00 EF 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F4 88 02 00 F4 03 04 00 2E 35 16 67 B6 04 01 00 00 B0 FF 64 6E AA 26 38 53 [17:26:07]CommunicateWithHost err = 0 [17:26:07]CheckOFDResponse [17:26:07]1017 (14) - 77093643461234 [17:26:07]1041 (16) - 0000000000871759 [17:26:07]1040 (4) - 166132 [17:26:07]1012 (4) - 21.10.2024 11:04 [17:26:07]1206 (1) - 0 [17:26:07]OFD Sender: Remove packet 166132 [17:26:07]ProducePacketName [17:26:07]name=ofd_packets/00166132 [17:26:07]NVStorageDeleteData [17:26:08]Write to MH i2c: 01 00 00 78 70 E8 [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: 01 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: 01 07 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: 01 07 00 78 70 00 00 00 00 00 C6 0C C1 [17:26:08]RasterBufferAndPrint [17:26:08]line [17:26:08]line [17:26:08]line [17:26:08]line [17:26:08]line [17:26:08]written 0, free lines is 3279 [17:26:08]MH_Cut [17:26:08]Write to MH i2c: D1 01 00 7F 70 01 C1 [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: D1 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: D1 01 00 [17:26:08]MH_I2C_Read... [17:26:08]Read from MH i2c: D1 01 00 7F 70 00 C0 [17:26:08]Write to MH i2c: 01 00 00 80 70 F0 [17:26:08]Write i2c OK [17:26:08]MH_I2C_Read... [17:26:08]OFD Sender: No OFD packet to send [17:26:08]*** Cut start [17:26:08]*** Partial cut [17:26:08]*** CUTSNS_PIN = 1 [17:26:08]*** CUTSNS_PIN = 0 [17:26:09]*** Brake cut motor [17:26:09]Read from MH i2c: 01 [17:26:09]MH_I2C_Read... [17:26:09]*** Stop cut motor [17:26:09]*** Cut end [17:26:09]Read from MH i2c: 01 07 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: 01 07 00 80 70 00 00 00 00 00 FF 0F 05 [17:26:09]process_action close_receipt done [17:26:09]requested_data is exist [17:26:09]produce_requested_data [17:26:09]requested_item fm.sn is exist - process it [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 11 00 00 [17:26:09]Write to MH i2c: E2 08 00 81 70 80 11 00 00 00 00 00 00 6B [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 17 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 17 00 81 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [17:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:26:09]wFMCommunicate OK [17:26:09]requested_item fd.num is exist - process it [17:26:09]SAM_PROTO_GetFieldsCounters [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 13 00 00 [17:26:09]Write to MH i2c: E2 08 00 82 70 80 13 00 00 00 00 00 00 6E [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 62 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 62 00 82 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F4 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:09]wFMCommunicate OK [17:26:09]SAM_PROTO_GetFieldsCounters done [17:26:09]requested_item shift.num is exist - process it [17:26:09]requested_item shift.opened is exist - process it [17:26:09]req_shift_opened [17:26:09]FM_GetShiftState [17:26:09]SAM_PROTO_GetShiftState [17:26:09]wFMCommunicate request_size=4 [17:26:09]MH_SAM_APDU [17:26:09]CAPDU: 80 13 01 00 [17:26:09]Write to MH i2c: E2 08 00 83 70 80 13 01 00 00 00 00 00 70 [17:26:09]Write i2c OK [17:26:09]MH_I2C_Read... [17:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:09]Read from MH i2c: E2 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 0E 00 [17:26:09]MH_I2C_Read... [17:26:09]Read from MH i2c: E2 0E 00 83 70 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 79 [17:26:09]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:26:09]wFMCommunicate OK [17:26:09]SAM_PROTO_GetShiftState done [17:26:09]FM_GetShiftState done [17:26:09]req_shift_opened done [17:26:09]requested_item shift.open_date is exist - process it [17:26:09]req_shift_open_date [17:26:09]req_shift_open_date done [17:26:09]produce_requested_data done [17:26:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166132,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:26:09]process_action_free close_receipt [17:26:09]json_value_free [17:26:09]json_value_free done [17:26:09]process_json_proto returns [17:26:09]Send response to host [17:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166132,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:26:09]free response buf [17:26:09]execute_script done [17:26:09]execute_script returns [17:26:09]free content buf [17:26:09]Sock 5.Close socket [17:26:09]Sock 5.Thread stoped [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:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:32]accept exits with 6 [17:28:32]New connection [17:28:32]New thread 3066776932 created [17:28:32]Thread 3066920292 joined [17:28:32]Waiting for new connection... [17:28:32] Sock 6.Parse request [17:28:32]Sock 6.Check first char [17:28:32]Sock 6.First char is OK [17:28:32]request: POST /json_proto HTTP/1.0 [17:28:32]Method: POST [17:28:32]URL: /json_proto [17:28:32]Method is POST - this is cgi request [17:28:32]url: /json_proto [17:28:32]query_string will be loaded in cgi processing [17:28:32]execute_cgi json_proto POST (null) [17:28:32]execute_cgi path=json_proto method=POST [17:28:32]POST find Content-Length [17:28:32]Host: 172.17.53.195:8080 [17:28:32]Content-Length: 677 [17:28:32]Content-Type: application/json [17:28:32] [17:28:32]POST finish read [17:28:32]Found Content-Length = 677 [17:28:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:32]execute_script... [17:28: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)220704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:32]POST & json_proto [17:28:32]process_json_proto [17:28:32]json parsed OK: [17:28:32]protocol is kg_v1.0 [17:28:32]action value=close_receipt [17:28:32]process_action close_receipt [17:28:32]cmd_close_receipt [17:28:32]MH_GetDate [17:28:32]Write to MH i2c: F0 00 00 84 70 E3 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: F0 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: F0 09 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: F0 09 00 84 70 00 53 8F 16 67 21 48 4A 65 63 [17:28:32]GetLastDocTimeStamp 1729531584 [17:28:32]current date 1729531731 [17:28:32]FM_GetShiftState [17:28:32]SAM_PROTO_GetShiftState [17:28:32]wFMCommunicate request_size=4 [17:28:32]MH_SAM_APDU [17:28:32]CAPDU: 80 13 01 00 [17:28:32]Write to MH i2c: E2 08 00 85 70 80 13 01 00 00 00 00 00 72 [17:28:32]Write i2c OK [17:28:32]MH_I2C_Read... [17:28:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:32]Read from MH i2c: E2 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 0E 00 [17:28:32]MH_I2C_Read... [17:28:32]Read from MH i2c: E2 0E 00 85 70 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7B [17:28:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:28:32]wFMCommunicate OK [17:28:32]SAM_PROTO_GetShiftState done [17:28:32]FM_GetShiftState done [17:28:32]opened in 1729470944 [17:28:32]opened+sec_in_day 1729557344 [17:28:32]quantity*price = 50041 [17:28:32]sum+1 = 50042 [17:28:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 244 21.10.2024 17:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166133 ФПД: 180213866755943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166133&fm=180213866755943&tin=02508201610067®Number=0000000000091764&sum=50000 [17:28:33]StoreToDocumentArchive [17:28:33]shift 535 fd 166133 [17:28:33]save to /storage/0535/doc_00166133 [17:28:33]save last doc name /storage/0535/doc_00166133 to /storage/kkm_last_doc_name [17:28:33]save OK [17:28:33]Clear old archive folders... [17:28:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:33]tlvbuf is 01C36420 [17:28:33]SAM_PROTO_ClearQueue [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 09 00 00 [17:28:33]Write to MH i2c: E2 08 00 92 70 80 09 00 00 00 00 00 00 74 [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 92 70 00 90 00 76 [17:28:33]RAPDU: 90 00 [17:28:33]wFMCommunicate OK [17:28:33]SAM_PROTO_ClearQueue done [17:28:33]KKMCreateOFDPacket [17:28:33]OFDProtocolAddRootSTLVToBuf [17:28:33]FM_MakeSignedData [17:28:33]FM_MakeSignedData [17:28:33]SAM_PROTO_SignData [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 0D 01 02 [17:28:33]Write to MH i2c: E2 08 00 93 70 80 0D 01 02 00 00 00 00 7C [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]OFD Sender: No OFD packet to send [17:28:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 93 70 00 90 00 77 [17:28:33]RAPDU: 90 00 [17:28:33]wFMCommunicate OK [17:28:33]wFMCommunicate request_size=255 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 53 8F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 88 02 00 35 04 06 00 A3 [17:28:33]Write to MH i2c: E2 02 01 94 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 53 8F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 88 02 00 35 04 06 00 A3 00 00 A0 [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 94 70 00 90 00 78 [17:28:33]RAPDU: 90 00 [17:28:33]wFMCommunicate OK [17:28:33]wFMCommunicate request_size=10 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 0D 02 02 05 E7 4F 82 F7 67 [17:28:33]Write to MH i2c: E2 0D 00 95 70 80 0D 02 02 05 00 E7 4F 82 F7 67 00 00 9F [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 03 00 95 70 00 90 00 79 [17:28:33]RAPDU: 90 00 [17:28:33]wFMCommunicate OK [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 0D 03 02 [17:28:33]Write to MH i2c: E2 08 00 96 70 80 0D 03 02 00 00 00 00 81 [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:33]Read from MH i2c: E2 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 0B 00 [17:28:33]MH_I2C_Read... [17:28:33]Read from MH i2c: E2 0B 00 96 70 00 EB E7 72 82 0E 71 E9 AC 90 00 5C [17:28:33]RAPDU: EB E7 72 82 0E 71 E9 AC 90 00 [17:28:33]wFMCommunicate OK [17:28:33]SAM_PROTO_SignData done [17:28:33]FM_MakeSignedData done [17:28:33]CreateOFDProtocolMessage [17:28:33]wFMCommunicate request_size=4 [17:28:33]MH_SAM_APDU [17:28:33]CAPDU: 80 11 00 00 [17:28:33]Write to MH i2c: E2 08 00 97 70 80 11 00 00 00 00 00 00 81 [17:28:33]Write i2c OK [17:28:33]MH_I2C_Read... [17:28:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:34]Read from MH i2c: E2 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: E2 17 00 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: E2 17 00 97 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D9 [17:28:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:28:34]wFMCommunicate OK [17:28:34]CreateOFDProtocolMessage done [17:28:34]OFDSenderStorePacket 166133 [17:28:34]StoreOFDPacket docnum=166133 [17:28:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D7 09 07 01 CC D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 53 8F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 88 02 00 35 04 06 00 A3 E7 4F 82 F7 67 EB E7 72 82 0E 71 E9 AC [17:28:34]CheckFolder [17:28:34]dirname=/storage/ofd_packets [17:28:34]CheckFolder done [17:28:34]ProducePacketName [17:28:34]name=ofd_packets/00166133 [17:28:34]NVStorageSaveData ofd_packets/00166133 [17:28:34]File name is /storage/ofd_packets/00166133 [17:28:34]Write 301 bytes [17:28:34]NVStorageSaveData done [17:28:34]OFDSenderStorePacket done [17:28:34]KKMCreateOFDPacket done [17:28:34]NVStorageSaveData kkm_last_timestamp [17:28:34]File name is /storage/kkm_last_timestamp [17:28:34]Write 4 bytes [17:28:34]NVStorageSaveData done [17:28:34]ExternCall_PrintAddStr [17:28:34]wPrintStart [17:28:34]Write to MH i2c: 01 00 00 98 70 08 [17:28:34]Write i2c OK [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: 01 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: 01 07 00 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: 01 07 00 98 70 00 00 00 00 00 FF 0F 1D [17:28:34]RasterBufferAndPrint [17:28:34]line Счет N : (1)220704 [17:28:34]line ИНН: 02508201610067 [17:28:34]line Контрольно-Кассовый Чек [17:28:34]line ПРОДАЖА [17:28:34]line ТРК (МРК, ГНК) : 33 [17:28:34]line Товар: 2710124130 [17:28:34]line Аи-92-К-5 [17:28:34]line 7.480 * 66.90 [17:28:34]line = 500.41 [17:28:34]line НДС 12% НСП 1% [17:28:34]line > о реализуемом товаре [17:28:34]line ОКРУГЛЕНИЕ: -0.41 [17:28:34]line ИТОГО: 500.00 [17:28:34]line Внесено: 500.00 [17:28:34]line СДАЧА: 0.00 [17:28:34]line НСП 1% : 4.43 [17:28:34]line НДС 12% : 53.14 [17:28:34]line Наличными: 500.00 [17:28:34]line Безнал.: 0.00 [17:28:34]line Место: АЗС № 161 "Партнер Нефть" [17:28:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:28:34]line СНО: Общий режим [17:28:34]line Чек 244 21.10.2024 17:28 [17:28:34]line Смена: 535 ФФД: 1.0 [17:28:34]line ЗНМ: 0300000104 [17:28:34]line РНМ: 0000000000091764 [17:28:34]line Версия ККМ: 001 [17:28:34]line ФМ: 0000000000871759 [17:28:34]line ФД: 166133 [17:28:34]line ФПД: 180213866755943 [17:28:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T172851&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166133&fm=180213866755943&tin=02508201610067®Number=0000000000091764&sum=50000 [17:28:34]written 0, free lines is 4095 [17:28:34]OFD Sender: Processing packet 166133 [packets to send 48, broken 47] [17:28:34]ProducePacketName [17:28:34]name=ofd_packets/00166133 [17:28:34]OFD Sender: To server: pG, [17:28:34]CommunicateWithHost lk.salyk.kg:30040 [17:28:34]ConnectInit lk.salyk.kg [17:28:34]Connected sock=7 [17:28:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 D7 09 07 01 CC D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 53 8F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 88 02 00 35 04 06 00 A3 E7 4F 82 F7 67 EB E7 72 82 0E 71 E9 AC [17:28:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7A 5E 47 00 A9 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F5 88 02 00 F4 03 04 00 C1 35 16 67 B6 04 01 00 00 9D 4F BC 52 80 9E 4A F0 [17:28:34]CommunicateWithHost err = 0 [17:28:34]CheckOFDResponse [17:28:34]1017 (14) - 77093643461234 [17:28:34]1041 (16) - 0000000000871759 [17:28:34]1040 (4) - 166133 [17:28:34]1012 (4) - 21.10.2024 11:06 [17:28:34]1206 (1) - 0 [17:28:34]OFD Sender: Remove packet 166133 [17:28:34]ProducePacketName [17:28:34]name=ofd_packets/00166133 [17:28:34]NVStorageDeleteData [17:28:34]Write to MH i2c: 01 00 00 C3 70 33 [17:28:34]Write i2c OK [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: 01 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: 01 07 00 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: 01 07 00 C3 70 00 00 00 00 00 D4 0C 1A [17:28:34]RasterBufferAndPrint [17:28:34]line [17:28:34]line [17:28:34]line [17:28:34]line [17:28:34]line [17:28:34]written 0, free lines is 3292 [17:28:34]MH_Cut [17:28:34]Write to MH i2c: D1 01 00 CA 70 01 0C [17:28:34]Write i2c OK [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: D1 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: D1 01 00 [17:28:34]MH_I2C_Read... [17:28:34]Read from MH i2c: D1 01 00 CA 70 00 0B [17:28:34]Write to MH i2c: 01 00 00 CB 70 3B [17:28:34]Write i2c OK [17:28:34]MH_I2C_Read... [17:28:34]OFD Sender: No OFD packet to send [17:28:35]*** Cut start [17:28:35]*** Partial cut [17:28:35]*** CUTSNS_PIN = 1 [17:28:35]*** CUTSNS_PIN = 0 [17:28:35]*** Brake cut motor [17:28:35]Read from MH i2c: 01 [17:28:35]MH_I2C_Read... [17:28:35]*** Stop cut motor [17:28:35]*** Cut end [17:28:35]Read from MH i2c: 01 07 00 [17:28:35]MH_I2C_Read... [17:28:35]Read from MH i2c: 01 07 00 CB 70 00 00 00 00 00 FF 0F 50 [17:28:35]process_action close_receipt done [17:28:35]requested_data is exist [17:28:35]produce_requested_data [17:28:35]requested_item fm.sn is exist - process it [17:28:35]wFMCommunicate request_size=4 [17:28:35]MH_SAM_APDU [17:28:35]CAPDU: 80 11 00 00 [17:28:35]Write to MH i2c: E2 08 00 CC 70 80 11 00 00 00 00 00 00 B6 [17:28:35]Write i2c OK [17:28:35]MH_I2C_Read... [17:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:35]Read from MH i2c: E2 [17:28:35]MH_I2C_Read... [17:28:35]Read from MH i2c: E2 17 00 [17:28:35]MH_I2C_Read... [17:28:35]Read from MH i2c: E2 17 00 CC 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0E [17:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:28:35]wFMCommunicate OK [17:28:35]requested_item fd.num is exist - process it [17:28:35]SAM_PROTO_GetFieldsCounters [17:28:35]wFMCommunicate request_size=4 [17:28:35]MH_SAM_APDU [17:28:35]CAPDU: 80 13 00 00 [17:28:35]Write to MH i2c: E2 08 00 CD 70 80 13 00 00 00 00 00 00 B9 [17:28:35]Write i2c OK [17:28:35]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 62 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 62 00 CD 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [17:28:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F5 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:36]wFMCommunicate OK [17:28:36]SAM_PROTO_GetFieldsCounters done [17:28:36]requested_item shift.num is exist - process it [17:28:36]requested_item shift.opened is exist - process it [17:28:36]req_shift_opened [17:28:36]FM_GetShiftState [17:28:36]SAM_PROTO_GetShiftState [17:28:36]wFMCommunicate request_size=4 [17:28:36]MH_SAM_APDU [17:28:36]CAPDU: 80 13 01 00 [17:28:36]Write to MH i2c: E2 08 00 CE 70 80 13 01 00 00 00 00 00 BB [17:28:36]Write i2c OK [17:28:36]MH_I2C_Read... [17:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:36]Read from MH i2c: E2 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 0E 00 [17:28:36]MH_I2C_Read... [17:28:36]Read from MH i2c: E2 0E 00 CE 70 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C4 [17:28:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:28:36]wFMCommunicate OK [17:28:36]SAM_PROTO_GetShiftState done [17:28:36]FM_GetShiftState done [17:28:36]req_shift_opened done [17:28:36]requested_item shift.open_date is exist - process it [17:28:36]req_shift_open_date [17:28:36]req_shift_open_date done [17:28:36]produce_requested_data done [17:28:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166133,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:28:36]process_action_free close_receipt [17:28:36]json_value_free [17:28:36]json_value_free done [17:28:36]process_json_proto returns [17:28:36]Send response to host [17:28:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166133,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:28:36]free response buf [17:28:36]execute_script done [17:28:36]execute_script returns [17:28:36]free content buf [17:28:36]Sock 6.Close socket [17:28:36]Sock 6.Thread stoped [17:28:39]OFD Sender: No OFD packet to send [17:28:44]OFD Sender: No OFD packet to send [17:28:49]OFD Sender: No OFD packet to send [17:28:54]OFD Sender: No OFD packet to send [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]accept exits with 5 [17:33:30]New connection [17:33:30]New thread 3066920292 created [17:33:30]Thread 3066776932 joined [17:33:30]Waiting for new connection... [17:33:30] Sock 5.Parse request [17:33:30]Sock 5.Check first char [17:33:30]Sock 5.First char is OK [17:33:30]request: POST /json_proto HTTP/1.0 [17:33:30]Method: POST [17:33:30]URL: /json_proto [17:33:30]Method is POST - this is cgi request [17:33:30]url: /json_proto [17:33:30]query_string will be loaded in cgi processing [17:33:30]execute_cgi json_proto POST (null) [17:33:30]execute_cgi path=json_proto method=POST [17:33:30]POST find Content-Length [17:33:30]Host: 172.17.53.195:8080 [17:33:30]Content-Length: 769 [17:33:30]Content-Type: application/json [17:33:30] [17:33:30]POST finish read [17:33:30]Found Content-Length = 769 [17:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:30]execute_script... [17:33:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:30]POST & json_proto [17:33:30]process_json_proto [17:33:30]json parsed OK: [17:33:30]protocol is kg_v1.0 [17:33:30]action value=close_receipt [17:33:30]process_action close_receipt [17:33:30]cmd_close_receipt [17:33:30]MH_GetDate [17:33:30]Write to MH i2c: F0 00 00 CF 70 2E [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: F0 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: F0 09 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: F0 09 00 CF 70 00 7D 90 16 67 21 48 4A 65 D9 [17:33:30]GetLastDocTimeStamp 1729531731 [17:33:30]current date 1729532029 [17:33:30]FM_GetShiftState [17:33:30]SAM_PROTO_GetShiftState [17:33:30]wFMCommunicate request_size=4 [17:33:30]MH_SAM_APDU [17:33:30]CAPDU: 80 13 01 00 [17:33:30]Write to MH i2c: E2 08 00 D0 70 80 13 01 00 00 00 00 00 BD [17:33:30]Write i2c OK [17:33:30]MH_I2C_Read... [17:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:30]Read from MH i2c: E2 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: E2 0E 00 [17:33:30]MH_I2C_Read... [17:33:30]Read from MH i2c: E2 0E 00 D0 70 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C6 [17:33:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:33:30]wFMCommunicate OK [17:33:30]SAM_PROTO_GetShiftState done [17:33:30]FM_GetShiftState done [17:33:30]opened in 1729470944 [17:33:30]opened+sec_in_day 1729557344 [17:33:30]quantity*price = 100015 [17:33:30]sum+1 = 100017 [17:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 245 21.10.2024 17:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166134 ФПД: 259060654385857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166134&fm=259060654385857&tin=02508201610067®Number=0000000000091764&sum=100016 [17:33:31]StoreToDocumentArchive [17:33:31]shift 535 fd 166134 [17:33:31]save to /storage/0535/doc_00166134 [17:33:31]save last doc name /storage/0535/doc_00166134 to /storage/kkm_last_doc_name [17:33:31]save OK [17:33:31]Clear old archive folders... [17:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:31]tlvbuf is 0190BA50 [17:33:31]SAM_PROTO_ClearQueue [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 09 00 00 [17:33:31]Write to MH i2c: E2 08 00 DD 70 80 09 00 00 00 00 00 00 BF [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 DD 70 00 90 00 C1 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]SAM_PROTO_ClearQueue done [17:33:31]KKMCreateOFDPacket [17:33:31]OFDProtocolAddRootSTLVToBuf [17:33:31]FM_MakeSignedData [17:33:31]FM_MakeSignedData [17:33:31]SAM_PROTO_SignData [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 01 02 [17:33:31]Write to MH i2c: E2 08 00 DE 70 80 0D 01 02 00 00 00 00 C7 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 DE 70 00 90 00 C2 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]wFMCommunicate request_size=255 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 90 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 88 02 00 35 04 06 00 EB [17:33:31]Write to MH i2c: E2 02 01 DF 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 90 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 88 02 00 35 04 06 00 EB 00 00 7A [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 DF 70 00 90 00 C3 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]wFMCommunicate request_size=10 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 02 02 05 9D 42 47 AA C1 [17:33:31]Write to MH i2c: E2 0D 00 E0 70 80 0D 02 02 05 00 9D 42 47 AA C1 00 00 65 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 03 00 E0 70 00 90 00 C4 [17:33:31]RAPDU: 90 00 [17:33:31]wFMCommunicate OK [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 0D 03 02 [17:33:31]Write to MH i2c: E2 08 00 E1 70 80 0D 03 02 00 00 00 00 CC [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 0B 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 0B 00 E1 70 00 2F E6 0C 74 7F 7F 50 6E 90 00 1E [17:33:31]RAPDU: 2F E6 0C 74 7F 7F 50 6E 90 00 [17:33:31]wFMCommunicate OK [17:33:31]SAM_PROTO_SignData done [17:33:31]FM_MakeSignedData done [17:33:31]CreateOFDProtocolMessage [17:33:31]wFMCommunicate request_size=4 [17:33:31]MH_SAM_APDU [17:33:31]CAPDU: 80 11 00 00 [17:33:31]Write to MH i2c: E2 08 00 E2 70 80 11 00 00 00 00 00 00 CC [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:31]Read from MH i2c: E2 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 17 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: E2 17 00 E2 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [17:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:33:31]wFMCommunicate OK [17:33:31]CreateOFDProtocolMessage done [17:33:31]OFDSenderStorePacket 166134 [17:33:31]StoreOFDPacket docnum=166134 [17:33:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E D4 07 01 E6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 90 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 88 02 00 35 04 06 00 EB 9D 42 47 AA C1 2F E6 0C 74 7F 7F 50 6E [17:33:31]CheckFolder [17:33:31]dirname=/storage/ofd_packets [17:33:31]CheckFolder done [17:33:31]ProducePacketName [17:33:31]name=ofd_packets/00166134 [17:33:31]NVStorageSaveData ofd_packets/00166134 [17:33:31]File name is /storage/ofd_packets/00166134 [17:33:31]Write 301 bytes [17:33:31]NVStorageSaveData done [17:33:31]OFDSenderStorePacket done [17:33:31]KKMCreateOFDPacket done [17:33:31]NVStorageSaveData kkm_last_timestamp [17:33:31]File name is /storage/kkm_last_timestamp [17:33:31]Write 4 bytes [17:33:31]NVStorageSaveData done [17:33:31]ExternCall_PrintAddStr [17:33:31]wPrintStart [17:33:31]Write to MH i2c: 01 00 00 E3 70 53 [17:33:31]Write i2c OK [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: 01 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: 01 07 00 [17:33:31]MH_I2C_Read... [17:33:31]Read from MH i2c: 01 07 00 E3 70 00 00 00 00 00 FF 0F 68 [17:33:31]RasterBufferAndPrint [17:33:31]line Счет N : (1)220705 [17:33:31]line ИНН: 02508201610067 [17:33:31]line Контрольно-Кассовый Чек [17:33:31]line ПРОДАЖА [17:33:31]line ТРК (МРК, ГНК) : 23 [17:33:31]line Товар: 2710124130 [17:33:31]line Аи-92-К-5 [17:33:31]line 14.950 * 66.90 [17:33:31]line = 1000.16 [17:33:31]line НДС 12% НСП 1% [17:33:31]line > о реализуемом товаре [17:33:31]line ИТОГО: 1000.16 [17:33:31]line НСП 1% : 8.85 [17:33:31]line НДС 12% : 106.21 [17:33:31]line Наличными: 0.00 [17:33:31]line Безнал.: 1000.16 [17:33:31]line Место: АЗС № 161 "Партнер Нефть" [17:33:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:33:31]line СНО: Общий режим [17:33:31]line Чек 245 21.10.2024 17:33 [17:33:31]line Смена: 535 ФФД: 1.0 [17:33:31]line ЗНМ: 0300000104 [17:33:31]line РНМ: 0000000000091764 [17:33:31]line Версия ККМ: 001 [17:33:31]line Платежная система: Mbank [17:33:31]line ФМ: 0000000000871759 [17:33:31]line ФД: 166134 [17:33:31]line ФПД: 259060654385857 [17:33:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173349&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166134&fm=259060654385857&tin=02508201610067®Number=0000000000091764&sum=100016 [17:33:32]written 0, free lines is 4095 [17:33:32]OFD Sender: Processing packet 166134 [packets to send 48, broken 47] [17:33:32]ProducePacketName [17:33:32]name=ofd_packets/00166134 [17:33:32]OFD Sender: To server: pG, [17:33:32]CommunicateWithHost lk.salyk.kg:30040 [17:33:32]ConnectInit lk.salyk.kg [17:33:32]Connected sock=7 [17:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E D4 07 01 E6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 7D 90 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 88 02 00 35 04 06 00 EB 9D 42 47 AA C1 2F E6 0C 74 7F 7F 50 6E [17:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 16 45 47 00 47 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F6 88 02 00 F4 03 04 00 EB 36 16 67 B6 04 01 00 00 D2 AC 36 D2 11 37 FC F5 [17:33:32]CommunicateWithHost err = 0 [17:33:32]CheckOFDResponse [17:33:32]1017 (14) - 77093643461234 [17:33:32]1041 (16) - 0000000000871759 [17:33:32]1040 (4) - 166134 [17:33:32]1012 (4) - 21.10.2024 11:11 [17:33:32]1206 (1) - 0 [17:33:32]OFD Sender: Remove packet 166134 [17:33:32]ProducePacketName [17:33:32]name=ofd_packets/00166134 [17:33:32]NVStorageDeleteData [17:33:32]Write to MH i2c: 01 00 00 0C 71 7D [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: 01 07 00 0C 71 00 00 00 00 00 F2 0C 82 [17:33:32]RasterBufferAndPrint [17:33:32]line [17:33:32]line [17:33:32]line [17:33:32]line [17:33:32]line [17:33:32]written 0, free lines is 3320 [17:33:32]MH_Cut [17:33:32]Write to MH i2c: D1 01 00 13 71 01 56 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: D1 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: D1 01 00 [17:33:32]MH_I2C_Read... [17:33:32]Read from MH i2c: D1 01 00 13 71 00 55 [17:33:32]Write to MH i2c: 01 00 00 14 71 85 [17:33:32]Write i2c OK [17:33:32]MH_I2C_Read... [17:33:32]OFD Sender: No OFD packet to send [17:33:33]*** Cut start [17:33:33]*** Partial cut [17:33:33]*** CUTSNS_PIN = 1 [17:33:33]*** CUTSNS_PIN = 0 [17:33:33]*** Brake cut motor [17:33:33]Read from MH i2c: 01 [17:33:33]MH_I2C_Read... [17:33:33]*** Stop cut motor [17:33:33]*** Cut end [17:33:33]Read from MH i2c: 01 07 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: 01 07 00 14 71 00 00 00 00 00 FF 0F 9A [17:33:33]process_action close_receipt done [17:33:33]requested_data is exist [17:33:33]produce_requested_data [17:33:33]requested_item fm.sn is exist - process it [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 11 00 00 [17:33:33]Write to MH i2c: E2 08 00 15 71 80 11 00 00 00 00 00 00 00 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 17 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 17 00 15 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [17:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:33:33]wFMCommunicate OK [17:33:33]requested_item fd.num is exist - process it [17:33:33]SAM_PROTO_GetFieldsCounters [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 13 00 00 [17:33:33]Write to MH i2c: E2 08 00 16 71 80 13 00 00 00 00 00 00 03 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 62 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 62 00 16 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [17:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F6 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_GetFieldsCounters done [17:33:34]requested_item shift.num is exist - process it [17:33:34]requested_item shift.opened is exist - process it [17:33:34]req_shift_opened [17:33:34]FM_GetShiftState [17:33:34]SAM_PROTO_GetShiftState [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 13 01 00 [17:33:34]Write to MH i2c: E2 08 00 17 71 80 13 01 00 00 00 00 00 05 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 0E 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 0E 00 17 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0E [17:33:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_GetShiftState done [17:33:34]FM_GetShiftState done [17:33:34]req_shift_opened done [17:33:34]requested_item shift.open_date is exist - process it [17:33:34]req_shift_open_date [17:33:34]req_shift_open_date done [17:33:34]produce_requested_data done [17:33:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166134,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:33:34]process_action_free close_receipt [17:33:34]json_value_free [17:33:34]json_value_free done [17:33:34]process_json_proto returns [17:33:34]Send response to host [17:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166134,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:33:34]free response buf [17:33:34]execute_script done [17:33:34]execute_script returns [17:33:34]free content buf [17:33:34]Sock 5.Close socket [17:33:34]Sock 5.Thread stoped [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:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:00]accept exits with 6 [17:37:00]New connection [17:37:00]New thread 3066776932 created [17:37:00]Thread 3066920292 joined [17:37:00]Waiting for new connection... [17:37:00] Sock 6.Parse request [17:37:00]Sock 6.Check first char [17:37:00]Sock 6.First char is OK [17:37:00]request: POST /json_proto HTTP/1.0 [17:37:00]Method: POST [17:37:00]URL: /json_proto [17:37:00]Method is POST - this is cgi request [17:37:00]url: /json_proto [17:37:00]query_string will be loaded in cgi processing [17:37:00]execute_cgi json_proto POST (null) [17:37:00]execute_cgi path=json_proto method=POST [17:37:00]POST find Content-Length [17:37:00]Host: 172.17.53.195:8080 [17:37:00]Content-Length: 682 [17:37:00]Content-Type: application/json [17:37:00] [17:37:00]POST finish read [17:37:00]Found Content-Length = 682 [17:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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:37:00]execute_script... [17:37:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220706", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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:37:00]POST & json_proto [17:37:00]process_json_proto [17:37:00]json parsed OK: [17:37:00]protocol is kg_v1.0 [17:37:00]action value=close_receipt [17:37:00]process_action close_receipt [17:37:00]cmd_close_receipt [17:37:00]MH_GetDate [17:37:00]Write to MH i2c: F0 00 00 18 71 78 [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 09 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 09 00 18 71 00 4F 91 16 67 21 48 4A 65 F6 [17:37:00]GetLastDocTimeStamp 1729532029 [17:37:00]current date 1729532239 [17:37:00]FM_GetShiftState [17:37:00]SAM_PROTO_GetShiftState [17:37:00]wFMCommunicate request_size=4 [17:37:00]MH_SAM_APDU [17:37:00]CAPDU: 80 13 01 00 [17:37:00]Write to MH i2c: E2 08 00 19 71 80 13 01 00 00 00 00 00 07 [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:00]Read from MH i2c: E2 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: E2 0E 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: E2 0E 00 19 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 10 [17:37:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:37:00]wFMCommunicate OK [17:37:00]SAM_PROTO_GetShiftState done [17:37:00]FM_GetShiftState done [17:37:00]opened in 1729470944 [17:37:00]opened+sec_in_day 1729557344 [17:37:00]quantity*price = 100021 [17:37:00]sum+1 = 100023 [17:37:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 246 21.10.2024 17:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166135 ФПД: 267802970709066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173719&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166135&fm=267802970709066&tin=02508201610067®Number=0000000000091764&sum=100000 [17:37:01]StoreToDocumentArchive [17:37:01]shift 535 fd 166135 [17:37:01]save to /storage/0535/doc_00166135 [17:37:01]save last doc name /storage/0535/doc_00166135 to /storage/kkm_last_doc_name [17:37:01]save OK [17:37:01]Clear old archive folders... [17:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:01]tlvbuf is 0163FAC0 [17:37:01]SAM_PROTO_ClearQueue [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 09 00 00 [17:37:01]Write to MH i2c: E2 08 00 26 71 80 09 00 00 00 00 00 00 09 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 26 71 00 90 00 0B [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_ClearQueue done [17:37:01]KKMCreateOFDPacket [17:37:01]OFDProtocolAddRootSTLVToBuf [17:37:01]FM_MakeSignedData [17:37:01]FM_MakeSignedData [17:37:01]SAM_PROTO_SignData [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 01 02 [17:37:01]Write to MH i2c: E2 08 00 27 71 80 0D 01 02 00 00 00 00 11 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 27 71 00 90 00 0C [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=255 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F6 00 00 00 F4 03 04 00 4F 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 88 02 00 35 04 06 00 F3 [17:37:01]Write to MH i2c: E2 02 01 28 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 F6 00 00 00 F4 03 04 00 4F 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 88 02 00 35 04 06 00 F3 00 00 A4 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 28 71 00 90 00 0D [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=10 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 02 02 05 90 BC F0 5C 4A [17:37:01]Write to MH i2c: E2 0D 00 29 71 80 0D 02 02 05 00 90 BC F0 5C 4A 00 00 00 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 29 71 00 90 00 0E [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 03 02 [17:37:01]Write to MH i2c: E2 08 00 2A 71 80 0D 03 02 00 00 00 00 16 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0B 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0B 00 2A 71 00 B5 65 C3 2F DD F2 AA 14 90 00 B0 [17:37:01]RAPDU: B5 65 C3 2F DD F2 AA 14 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_SignData done [17:37:01]FM_MakeSignedData done [17:37:01]CreateOFDProtocolMessage [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 11 00 00 [17:37:01]Write to MH i2c: E2 08 00 2B 71 80 11 00 00 00 00 00 00 16 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 2B 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [17:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:37:01]wFMCommunicate OK [17:37:01]CreateOFDProtocolMessage done [17:37:01]OFDSenderStorePacket 166135 [17:37:01]StoreOFDPacket docnum=166135 [17:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 97 C2 07 01 4B 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F6 00 00 00 F4 03 04 00 4F 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 88 02 00 35 04 06 00 F3 90 BC F0 5C 4A B5 65 C3 2F DD F2 AA 14 [17:37:01]CheckFolder [17:37:01]dirname=/storage/ofd_packets [17:37:01]CheckFolder done [17:37:01]ProducePacketName [17:37:01]name=ofd_packets/00166135 [17:37:01]NVStorageSaveData ofd_packets/00166135 [17:37:01]File name is /storage/ofd_packets/00166135 [17:37:01]Write 301 bytes [17:37:01]NVStorageSaveData done [17:37:01]OFDSenderStorePacket done [17:37:01]KKMCreateOFDPacket done [17:37:01]NVStorageSaveData kkm_last_timestamp [17:37:01]File name is /storage/kkm_last_timestamp [17:37:01]Write 4 bytes [17:37:01]NVStorageSaveData done [17:37:01]ExternCall_PrintAddStr [17:37:01]wPrintStart [17:37:01]Write to MH i2c: 01 00 00 2C 71 9D [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 07 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 07 00 2C 71 00 00 00 00 00 FF 0F B2 [17:37:01]RasterBufferAndPrint [17:37:01]line Счет N : (1)220706 [17:37:01]line ИНН: 02508201610067 [17:37:01]line Контрольно-Кассовый Чек [17:37:01]line ПРОДАЖА [17:37:01]line ТРК (МРК, ГНК) : 14 [17:37:01]line Товар: 2710124500 [17:37:01]line Аи-95-К-5 [17:37:01]line 13.480 * 74.20 [17:37:01]line = 1000.22 [17:37:01]line НДС 12% НСП 1% [17:37:01]line > о реализуемом товаре [17:37:01]line ОКРУГЛЕНИЕ: -0.22 [17:37:01]line ИТОГО: 1000.00 [17:37:01]line Внесено: 1000.00 [17:37:01]line СДАЧА: 0.00 [17:37:01]line НСП 1% : 8.85 [17:37:01]line НДС 12% : 106.22 [17:37:01]line Наличными: 1000.00 [17:37:01]line Безнал.: 0.00 [17:37:01]line Место: АЗС № 161 "Партнер Нефть" [17:37:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:37:01]line СНО: Общий режим [17:37:01]line Чек 246 21.10.2024 17:37 [17:37:01]line Смена: 535 ФФД: 1.0 [17:37:01]line ЗНМ: 0300000104 [17:37:01]line РНМ: 0000000000091764 [17:37:01]line Версия ККМ: 001 [17:37:01]line ФМ: 0000000000871759 [17:37:01]line ФД: 166135 [17:37:01]line ФПД: 267802970709066 [17:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173719&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166135&fm=267802970709066&tin=02508201610067®Number=0000000000091764&sum=100000 [17:37:02]OFD Sender: Processing packet 166135 [packets to send 48, broken 47] [17:37:02]ProducePacketName [17:37:02]name=ofd_packets/00166135 [17:37:02]OFD Sender: To server: pG, [17:37:02]CommunicateWithHost lk.salyk.kg:30040 [17:37:02]ConnectInit lk.salyk.kg [17:37:02]written 0, free lines is 4095 [17:37:02]Connected sock=7 [17:37:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 97 C2 07 01 4B 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F6 00 00 00 F4 03 04 00 4F 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 88 02 00 35 04 06 00 F3 90 BC F0 5C 4A B5 65 C3 2F DD F2 AA 14 [17:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C2 F1 47 00 01 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F7 88 02 00 F4 03 04 00 BD 37 16 67 B6 04 01 00 00 CB B9 11 88 91 19 99 98 [17:37:02]CommunicateWithHost err = 0 [17:37:02]CheckOFDResponse [17:37:02]1017 (14) - 77093643461234 [17:37:02]1041 (16) - 0000000000871759 [17:37:02]1040 (4) - 166135 [17:37:02]1012 (4) - 21.10.2024 11:15 [17:37:02]1206 (1) - 0 [17:37:02]OFD Sender: Remove packet 166135 [17:37:02]ProducePacketName [17:37:02]name=ofd_packets/00166135 [17:37:02]NVStorageDeleteData [17:37:02]Write to MH i2c: 01 00 00 57 71 C8 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 57 71 00 00 00 00 00 D9 0C B4 [17:37:02]RasterBufferAndPrint [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]written 0, free lines is 3296 [17:37:02]MH_Cut [17:37:02]Write to MH i2c: D1 01 00 5E 71 01 A1 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: D1 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: D1 01 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: D1 01 00 5E 71 00 A0 [17:37:02]Write to MH i2c: 01 00 00 5F 71 D0 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:03]OFD Sender: No OFD packet to send [17:37:03]*** Cut start [17:37:03]*** Partial cut [17:37:03]*** CUTSNS_PIN = 1 [17:37:03]*** CUTSNS_PIN = 0 [17:37:03]*** Brake cut motor [17:37:04]Read from MH i2c: 01 [17:37:04]MH_I2C_Read... [17:37:04]*** Stop cut motor [17:37:04]*** Cut end [17:37:04]Read from MH i2c: 01 07 00 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: 01 07 00 5F 71 00 00 00 00 00 FF 0F E5 [17:37:04]process_action close_receipt done [17:37:04]requested_data is exist [17:37:04]produce_requested_data [17:37:04]requested_item fm.sn is exist - process it [17:37:04]wFMCommunicate request_size=4 [17:37:04]MH_SAM_APDU [17:37:04]CAPDU: 80 11 00 00 [17:37:04]Write to MH i2c: E2 08 00 60 71 80 11 00 00 00 00 00 00 4B [17:37:04]Write i2c OK [17:37:04]MH_I2C_Read... [17:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:04]Read from MH i2c: E2 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 17 00 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 17 00 60 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [17:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:37:04]wFMCommunicate OK [17:37:04]requested_item fd.num is exist - process it [17:37:04]SAM_PROTO_GetFieldsCounters [17:37:04]wFMCommunicate request_size=4 [17:37:04]MH_SAM_APDU [17:37:04]CAPDU: 80 13 00 00 [17:37:04]Write to MH i2c: E2 08 00 61 71 80 13 00 00 00 00 00 00 4E [17:37:04]Write i2c OK [17:37:04]MH_I2C_Read... [17:37:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:04]Read from MH i2c: E2 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 62 00 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 62 00 61 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [17: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F7 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:04]wFMCommunicate OK [17:37:04]SAM_PROTO_GetFieldsCounters done [17:37:04]requested_item shift.num is exist - process it [17:37:04]requested_item shift.opened is exist - process it [17:37:04]req_shift_opened [17:37:04]FM_GetShiftState [17:37:04]SAM_PROTO_GetShiftState [17:37:04]wFMCommunicate request_size=4 [17:37:04]MH_SAM_APDU [17:37:04]CAPDU: 80 13 01 00 [17:37:04]Write to MH i2c: E2 08 00 62 71 80 13 01 00 00 00 00 00 50 [17:37:04]Write i2c OK [17:37:04]MH_I2C_Read... [17:37:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:04]Read from MH i2c: E2 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 0E 00 [17:37:04]MH_I2C_Read... [17:37:04]Read from MH i2c: E2 0E 00 62 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 59 [17:37:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:37:04]wFMCommunicate OK [17:37:04]SAM_PROTO_GetShiftState done [17:37:04]FM_GetShiftState done [17:37:04]req_shift_opened done [17:37:04]requested_item shift.open_date is exist - process it [17:37:04]req_shift_open_date [17:37:04]req_shift_open_date done [17:37:04]produce_requested_data done [17:37:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166135,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:37:04]process_action_free close_receipt [17:37:04]json_value_free [17:37:04]json_value_free done [17:37:04]process_json_proto returns [17:37:04]Send response to host [17:37:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166135,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:37:04]free response buf [17:37:04]execute_script done [17:37:04]execute_script returns [17:37:04]free content buf [17:37:04]Sock 6.Close socket [17:37:04]Sock 6.Thread stoped [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:40]accept exits with 5 [17:38:40]New connection [17:38:40]New thread 3066920292 created [17:38:40]Thread 3066776932 joined [17:38:40]Waiting for new connection... [17:38:40] Sock 5.Parse request [17:38:40]Sock 5.Check first char [17:38:40]Sock 5.First char is OK [17:38:40]request: POST /json_proto HTTP/1.0 [17:38:40]Method: POST [17:38:40]URL: /json_proto [17:38:40]Method is POST - this is cgi request [17:38:40]url: /json_proto [17:38:40]query_string will be loaded in cgi processing [17:38:40]execute_cgi json_proto POST (null) [17:38:40]execute_cgi path=json_proto method=POST [17:38:40]POST find Content-Length [17:38:40]Host: 172.17.53.195:8080 [17:38:40]Content-Length: 677 [17:38:40]Content-Type: application/json [17:38:40] [17:38:40]POST finish read [17:38:40]Found Content-Length = 677 [17:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:40]execute_script... [17:38: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)220707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:40]POST & json_proto [17:38:40]process_json_proto [17:38:40]json parsed OK: [17:38:40]protocol is kg_v1.0 [17:38:40]action value=close_receipt [17:38:40]process_action close_receipt [17:38:40]cmd_close_receipt [17:38:40]MH_GetDate [17:38:40]Write to MH i2c: F0 00 00 63 71 C3 [17:38:40]Write i2c OK [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: F0 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: F0 09 00 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: F0 09 00 63 71 00 B3 91 16 67 21 48 4A 65 A5 [17:38:40]GetLastDocTimeStamp 1729532239 [17:38:40]current date 1729532339 [17:38:40]FM_GetShiftState [17:38:40]SAM_PROTO_GetShiftState [17:38:40]wFMCommunicate request_size=4 [17:38:40]MH_SAM_APDU [17:38:40]CAPDU: 80 13 01 00 [17:38:40]Write to MH i2c: E2 08 00 64 71 80 13 01 00 00 00 00 00 52 [17:38:40]Write i2c OK [17:38:40]MH_I2C_Read... [17:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:40]Read from MH i2c: E2 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: E2 0E 00 [17:38:40]MH_I2C_Read... [17:38:40]Read from MH i2c: E2 0E 00 64 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5B [17:38:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:38:40]wFMCommunicate OK [17:38:40]SAM_PROTO_GetShiftState done [17:38:40]FM_GetShiftState done [17:38:40]opened in 1729470944 [17:38:40]opened+sec_in_day 1729557344 [17:38:40]quantity*price = 50041 [17:38:40]sum+1 = 50042 [17:38:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 247 21.10.2024 17:38 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166136 ФПД: 36268262814673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173859&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166136&fm=36268262814673&tin=02508201610067®Number=0000000000091764&sum=50000 [17:38:41]StoreToDocumentArchive [17:38:41]shift 535 fd 166136 [17:38:41]save to /storage/0535/doc_00166136 [17:38:41]save last doc name /storage/0535/doc_00166136 to /storage/kkm_last_doc_name [17:38:41]save OK [17:38:41]Clear old archive folders... [17:38:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:41]tlvbuf is 0163FA90 [17:38:41]SAM_PROTO_ClearQueue [17:38:41]wFMCommunicate request_size=4 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 09 00 00 [17:38:41]Write to MH i2c: E2 08 00 71 71 80 09 00 00 00 00 00 00 54 [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 71 71 00 90 00 56 [17:38:41]RAPDU: 90 00 [17:38:41]wFMCommunicate OK [17:38:41]SAM_PROTO_ClearQueue done [17:38:41]KKMCreateOFDPacket [17:38:41]OFDProtocolAddRootSTLVToBuf [17:38:41]FM_MakeSignedData [17:38:41]FM_MakeSignedData [17:38:41]SAM_PROTO_SignData [17:38:41]wFMCommunicate request_size=4 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 0D 01 02 [17:38:41]Write to MH i2c: E2 08 00 72 71 80 0D 01 02 00 00 00 00 5C [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 72 71 00 90 00 57 [17:38:41]RAPDU: 90 00 [17:38:41]wFMCommunicate OK [17:38:41]wFMCommunicate request_size=255 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 B3 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 88 02 00 35 04 06 00 20 [17:38:41]Write to MH i2c: E2 02 01 73 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 B3 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 88 02 00 35 04 06 00 20 00 00 65 [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 73 71 00 90 00 58 [17:38:41]RAPDU: 90 00 [17:38:41]wFMCommunicate OK [17:38:41]wFMCommunicate request_size=10 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 0D 02 02 05 FC 5C EB F3 D1 [17:38:41]Write to MH i2c: E2 0D 00 74 71 80 0D 02 02 05 00 FC 5C EB F3 D1 00 00 70 [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:41]Read from MH i2c: E2 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 [17:38:41]MH_I2C_Read... [17:38:41]Read from MH i2c: E2 03 00 74 71 00 90 00 59 [17:38:41]RAPDU: 90 00 [17:38:41]wFMCommunicate OK [17:38:41]wFMCommunicate request_size=4 [17:38:41]MH_SAM_APDU [17:38:41]CAPDU: 80 0D 03 02 [17:38:41]Write to MH i2c: E2 08 00 75 71 80 0D 03 02 00 00 00 00 61 [17:38:41]Write i2c OK [17:38:41]MH_I2C_Read... [17:38:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:42]Read from MH i2c: E2 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 0B 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 0B 00 75 71 00 BD 79 17 CE 24 3D EA 08 90 00 D0 [17:38:42]RAPDU: BD 79 17 CE 24 3D EA 08 90 00 [17:38:42]wFMCommunicate OK [17:38:42]SAM_PROTO_SignData done [17:38:42]FM_MakeSignedData done [17:38:42]CreateOFDProtocolMessage [17:38:42]wFMCommunicate request_size=4 [17:38:42]MH_SAM_APDU [17:38:42]CAPDU: 80 11 00 00 [17:38:42]Write to MH i2c: E2 08 00 76 71 80 11 00 00 00 00 00 00 61 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:42]Read from MH i2c: E2 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 17 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: E2 17 00 76 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [17:38:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:38:42]wFMCommunicate OK [17:38:42]CreateOFDProtocolMessage done [17:38:42]OFDSenderStorePacket 166136 [17:38:42]StoreOFDPacket docnum=166136 [17:38:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A 0E 07 01 DB 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 B3 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 88 02 00 35 04 06 00 20 FC 5C EB F3 D1 BD 79 17 CE 24 3D EA 08 [17:38:42]CheckFolder [17:38:42]dirname=/storage/ofd_packets [17:38:42]CheckFolder done [17:38:42]ProducePacketName [17:38:42]name=ofd_packets/00166136 [17:38:42]NVStorageSaveData ofd_packets/00166136 [17:38:42]File name is /storage/ofd_packets/00166136 [17:38:42]Write 301 bytes [17:38:42]NVStorageSaveData done [17:38:42]OFDSenderStorePacket done [17:38:42]KKMCreateOFDPacket done [17:38:42]NVStorageSaveData kkm_last_timestamp [17:38:42]File name is /storage/kkm_last_timestamp [17:38:42]Write 4 bytes [17:38:42]NVStorageSaveData done [17:38:42]ExternCall_PrintAddStr [17:38:42]wPrintStart [17:38:42]Write to MH i2c: 01 00 00 77 71 E8 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 07 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 07 00 77 71 00 00 00 00 00 FF 0F FD [17:38:42]RasterBufferAndPrint [17:38:42]line Счет N : (1)220707 [17:38:42]line ИНН: 02508201610067 [17:38:42]line Контрольно-Кассовый Чек [17:38:42]line ПРОДАЖА [17:38:42]line ТРК (МРК, ГНК) : 33 [17:38:42]line Товар: 2710124130 [17:38:42]line Аи-92-К-5 [17:38:42]line 7.480 * 66.90 [17:38:42]line = 500.41 [17:38:42]line НДС 12% НСП 1% [17:38:42]line > о реализуемом товаре [17:38:42]line ОКРУГЛЕНИЕ: -0.41 [17:38:42]line ИТОГО: 500.00 [17:38:42]line Внесено: 500.00 [17:38:42]line СДАЧА: 0.00 [17:38:42]line НСП 1% : 4.43 [17:38:42]line НДС 12% : 53.14 [17:38:42]line Наличными: 500.00 [17:38:42]line Безнал.: 0.00 [17:38:42]line Место: АЗС № 161 "Партнер Нефть" [17:38:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:38:42]line СНО: Общий режим [17:38:42]line Чек 247 21.10.2024 17:38 [17:38:42]line Смена: 535 ФФД: 1.0 [17:38:42]line ЗНМ: 0300000104 [17:38:42]line РНМ: 0000000000091764 [17:38:42]line Версия ККМ: 001 [17:38:42]line ФМ: 0000000000871759 [17:38:42]line ФД: 166136 [17:38:42]line ФПД: 36268262814673 [17:38:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T173859&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166136&fm=36268262814673&tin=02508201610067®Number=0000000000091764&sum=50000 [17:38:42]OFD Sender: Processing packet 166136 [packets to send 48, broken 47] [17:38:42]ProducePacketName [17:38:42]name=ofd_packets/00166136 [17:38:42]OFD Sender: To server: pG, [17:38:42]CommunicateWithHost lk.salyk.kg:30040 [17:38:42]ConnectInit lk.salyk.kg [17:38:42]written 0, free lines is 4095 [17:38:42]Connected sock=7 [17:38:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8A 0E 07 01 DB 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 B3 91 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 88 02 00 35 04 06 00 20 FC 5C EB F3 D1 BD 79 17 CE 24 3D EA 08 [17:38:42]Write to MH i2c: 01 00 00 A2 71 13 [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 07 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: 01 07 00 A2 71 00 00 00 00 00 CB 0C F1 [17:38:42]RasterBufferAndPrint [17:38:42]line [17:38:42]line [17:38:42]line [17:38:42]line [17:38:42]line [17:38:42]written 0, free lines is 3281 [17:38:42]MH_Cut [17:38:42]Write to MH i2c: D1 01 00 A9 71 01 EC [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: D1 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: D1 01 00 [17:38:42]MH_I2C_Read... [17:38:42]Read from MH i2c: D1 01 00 A9 71 00 EB [17:38:42]Write to MH i2c: 01 00 00 AA 71 1B [17:38:42]Write i2c OK [17:38:42]MH_I2C_Read... [17:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FF 4E 47 00 6B 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F8 88 02 00 F4 03 04 00 21 38 16 67 B6 04 01 00 00 47 60 20 E2 7F E5 78 FA [17:38:42]CommunicateWithHost err = 0 [17:38:42]CheckOFDResponse [17:38:42]1017 (14) - 77093643461234 [17:38:42]1041 (16) - 0000000000871759 [17:38:42]1040 (4) - 166136 [17:38:42]1012 (4) - 21.10.2024 11:16 [17:38:42]1206 (1) - 0 [17:38:42]OFD Sender: Remove packet 166136 [17:38:42]ProducePacketName [17:38:42]name=ofd_packets/00166136 [17:38:42]NVStorageDeleteData [17:38:43]OFD Sender: No OFD packet to send [17:38:43]*** Cut start [17:38:43]*** Partial cut [17:38:43]*** CUTSNS_PIN = 1 [17:38:43]*** CUTSNS_PIN = 0 [17:38:43]*** Brake cut motor [17:38:44]Read from MH i2c: 01 [17:38:44]MH_I2C_Read... [17:38:44]*** Stop cut motor [17:38:44]*** Cut end [17:38:44]Read from MH i2c: 01 07 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: 01 07 00 AA 71 00 00 00 00 00 FF 0F 30 [17:38:44]process_action close_receipt done [17:38:44]requested_data is exist [17:38:44]produce_requested_data [17:38:44]requested_item fm.sn is exist - process it [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 11 00 00 [17:38:44]Write to MH i2c: E2 08 00 AB 71 80 11 00 00 00 00 00 00 96 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 17 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 17 00 AB 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EE [17:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:38:44]wFMCommunicate OK [17:38:44]requested_item fd.num is exist - process it [17:38:44]SAM_PROTO_GetFieldsCounters [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 13 00 00 [17:38:44]Write to MH i2c: E2 08 00 AC 71 80 13 00 00 00 00 00 00 99 [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 62 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 62 00 AC 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [17:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F8 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:44]wFMCommunicate OK [17:38:44]SAM_PROTO_GetFieldsCounters done [17:38:44]requested_item shift.num is exist - process it [17:38:44]requested_item shift.opened is exist - process it [17:38:44]req_shift_opened [17:38:44]FM_GetShiftState [17:38:44]SAM_PROTO_GetShiftState [17:38:44]wFMCommunicate request_size=4 [17:38:44]MH_SAM_APDU [17:38:44]CAPDU: 80 13 01 00 [17:38:44]Write to MH i2c: E2 08 00 AD 71 80 13 01 00 00 00 00 00 9B [17:38:44]Write i2c OK [17:38:44]MH_I2C_Read... [17:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:44]Read from MH i2c: E2 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 0E 00 [17:38:44]MH_I2C_Read... [17:38:44]Read from MH i2c: E2 0E 00 AD 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A4 [17:38:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:38:44]wFMCommunicate OK [17:38:44]SAM_PROTO_GetShiftState done [17:38:44]FM_GetShiftState done [17:38:44]req_shift_opened done [17:38:44]requested_item shift.open_date is exist - process it [17:38:44]req_shift_open_date [17:38:44]req_shift_open_date done [17:38:44]produce_requested_data done [17:38:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166136,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:38:44]process_action_free close_receipt [17:38:44]json_value_free [17:38:44]json_value_free done [17:38:44]process_json_proto returns [17:38:44]Send response to host [17:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166136,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:38:44]free response buf [17:38:44]execute_script done [17:38:44]execute_script returns [17:38:44]free content buf [17:38:44]Sock 5.Close socket [17:38:44]Sock 5.Thread stoped [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:07]accept exits with 6 [17:41:07]New connection [17:41:07]New thread 3066776932 created [17:41:07]Thread 3066920292 joined [17:41:07]Waiting for new connection... [17:41:07] Sock 6.Parse request [17:41:07]Sock 6.Check first char [17:41:07]Sock 6.First char is OK [17:41:07]request: POST /json_proto HTTP/1.0 [17:41:07]Method: POST [17:41:07]URL: /json_proto [17:41:07]Method is POST - this is cgi request [17:41:07]url: /json_proto [17:41:07]query_string will be loaded in cgi processing [17:41:07]execute_cgi json_proto POST (null) [17:41:07]execute_cgi path=json_proto method=POST [17:41:07]POST find Content-Length [17:41:07]Host: 172.17.53.195:8080 [17:41:07]Content-Length: 677 [17:41:07]Content-Type: application/json [17:41:07] [17:41:07]POST finish read [17:41:07]Found Content-Length = 677 [17:41:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:07]execute_script... [17: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)220709", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:07]POST & json_proto [17:41:07]process_json_proto [17:41:07]json parsed OK: [17:41:07]protocol is kg_v1.0 [17:41:07]action value=close_receipt [17:41:07]process_action close_receipt [17:41:07]cmd_close_receipt [17:41:07]MH_GetDate [17:41:07]Write to MH i2c: F0 00 00 AE 71 0E [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: F0 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: F0 09 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: F0 09 00 AE 71 00 47 92 16 67 21 48 4A 65 85 [17:41:07]GetLastDocTimeStamp 1729532339 [17:41:07]current date 1729532487 [17:41:07]FM_GetShiftState [17:41:07]SAM_PROTO_GetShiftState [17:41:07]wFMCommunicate request_size=4 [17:41:07]MH_SAM_APDU [17:41:07]CAPDU: 80 13 01 00 [17:41:07]Write to MH i2c: E2 08 00 AF 71 80 13 01 00 00 00 00 00 9D [17:41:07]Write i2c OK [17:41:07]MH_I2C_Read... [17:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:07]Read from MH i2c: E2 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 0E 00 [17:41:07]MH_I2C_Read... [17:41:07]Read from MH i2c: E2 0E 00 AF 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A6 [17:41:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:41:07]wFMCommunicate OK [17:41:07]SAM_PROTO_GetShiftState done [17:41:07]FM_GetShiftState done [17:41:07]opened in 1729470944 [17:41:07]opened+sec_in_day 1729557344 [17:41:07]quantity*price = 50041 [17:41:07]sum+1 = 50042 [17:41:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 248 21.10.2024 17:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166137 ФПД: 140670420884280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166137&fm=140670420884280&tin=02508201610067®Number=0000000000091764&sum=50000 [17:41:08]StoreToDocumentArchive [17:41:08]shift 535 fd 166137 [17:41:08]save to /storage/0535/doc_00166137 [17:41:08]save last doc name /storage/0535/doc_00166137 to /storage/kkm_last_doc_name [17:41:08]save OK [17:41:08]Clear old archive folders... [17:41:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:08]tlvbuf is 0179A320 [17:41:08]SAM_PROTO_ClearQueue [17:41:08]wFMCommunicate request_size=4 [17:41:08]MH_SAM_APDU [17:41:08]CAPDU: 80 09 00 00 [17:41:08]Write to MH i2c: E2 08 00 BC 71 80 09 00 00 00 00 00 00 9F [17:41:08]Write i2c OK [17:41:08]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 BC 71 00 90 00 A1 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_ClearQueue done [17:41:09]KKMCreateOFDPacket [17:41:09]OFDProtocolAddRootSTLVToBuf [17:41:09]FM_MakeSignedData [17:41:09]FM_MakeSignedData [17:41:09]SAM_PROTO_SignData [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 01 02 [17:41:09]Write to MH i2c: E2 08 00 BD 71 80 0D 01 02 00 00 00 00 A7 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 BD 71 00 90 00 A2 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]wFMCommunicate request_size=255 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 47 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 88 02 00 35 04 06 00 7F [17:41:09]Write to MH i2c: E2 02 01 BE 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 47 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 88 02 00 35 04 06 00 7F 00 00 A6 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 BE 71 00 90 00 A3 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]wFMCommunicate request_size=10 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 02 02 05 F0 62 77 9B 38 [17:41:09]Write to MH i2c: E2 0D 00 BF 71 80 0D 02 02 05 00 F0 62 77 9B 38 00 00 50 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 03 00 BF 71 00 90 00 A4 [17:41:09]RAPDU: 90 00 [17:41:09]wFMCommunicate OK [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 0D 03 02 [17:41:09]Write to MH i2c: E2 08 00 C0 71 80 0D 03 02 00 00 00 00 AC [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0B 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 0B 00 C0 71 00 1C 58 C8 FE 06 35 21 B5 90 00 F8 [17:41:09]RAPDU: 1C 58 C8 FE 06 35 21 B5 90 00 [17:41:09]wFMCommunicate OK [17:41:09]SAM_PROTO_SignData done [17:41:09]FM_MakeSignedData done [17:41:09]CreateOFDProtocolMessage [17:41:09]wFMCommunicate request_size=4 [17:41:09]MH_SAM_APDU [17:41:09]CAPDU: 80 11 00 00 [17:41:09]Write to MH i2c: E2 08 00 C1 71 80 11 00 00 00 00 00 00 AC [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:09]Read from MH i2c: E2 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: E2 17 00 C1 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [17:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:41:09]wFMCommunicate OK [17:41:09]CreateOFDProtocolMessage done [17:41:09]OFDSenderStorePacket 166137 [17:41:09]StoreOFDPacket docnum=166137 [17:41:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DD 7E 07 01 E0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 47 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 88 02 00 35 04 06 00 7F F0 62 77 9B 38 1C 58 C8 FE 06 35 21 B5 [17:41:09]CheckFolder [17:41:09]dirname=/storage/ofd_packets [17:41:09]CheckFolder done [17:41:09]ProducePacketName [17:41:09]name=ofd_packets/00166137 [17:41:09]NVStorageSaveData ofd_packets/00166137 [17:41:09]File name is /storage/ofd_packets/00166137 [17:41:09]Write 301 bytes [17:41:09]NVStorageSaveData done [17:41:09]OFDSenderStorePacket done [17:41:09]KKMCreateOFDPacket done [17:41:09]NVStorageSaveData kkm_last_timestamp [17:41:09]File name is /storage/kkm_last_timestamp [17:41:09]Write 4 bytes [17:41:09]NVStorageSaveData done [17:41:09]ExternCall_PrintAddStr [17:41:09]wPrintStart [17:41:09]Write to MH i2c: 01 00 00 C2 71 33 [17:41:09]Write i2c OK [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 [17:41:09]MH_I2C_Read... [17:41:09]Read from MH i2c: 01 07 00 C2 71 00 00 00 00 00 FF 0F 48 [17:41:09]RasterBufferAndPrint [17:41:09]line Счет N : (1)220709 [17:41:09]line ИНН: 02508201610067 [17:41:09]line Контрольно-Кассовый Чек [17:41:09]line ПРОДАЖА [17:41:09]line ТРК (МРК, ГНК) : 33 [17:41:09]line Товар: 2710124130 [17:41:09]line Аи-92-К-5 [17:41:09]line 7.480 * 66.90 [17:41:09]line = 500.41 [17:41:09]line НДС 12% НСП 1% [17:41:09]line > о реализуемом товаре [17:41:09]line ОКРУГЛЕНИЕ: -0.41 [17:41:09]line ИТОГО: 500.00 [17:41:09]line Внесено: 500.00 [17:41:09]line СДАЧА: 0.00 [17:41:09]line НСП 1% : 4.43 [17:41:09]line НДС 12% : 53.14 [17:41:09]line Наличными: 500.00 [17:41:09]line Безнал.: 0.00 [17:41:09]line Место: АЗС № 161 "Партнер Нефть" [17:41:09]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:41:09]line СНО: Общий режим [17:41:09]line Чек 248 21.10.2024 17:41 [17:41:09]line Смена: 535 ФФД: 1.0 [17:41:09]line ЗНМ: 0300000104 [17:41:09]line РНМ: 0000000000091764 [17:41:09]line Версия ККМ: 001 [17:41:09]line ФМ: 0000000000871759 [17:41:09]line ФД: 166137 [17:41:09]line ФПД: 140670420884280 [17:41:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174127&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166137&fm=140670420884280&tin=02508201610067®Number=0000000000091764&sum=50000 [17:41:09]OFD Sender: Processing packet 166137 [packets to send 48, broken 47] [17:41:09]ProducePacketName [17:41:09]name=ofd_packets/00166137 [17:41:09]OFD Sender: To server: pG, [17:41:09]CommunicateWithHost lk.salyk.kg:30040 [17:41:09]ConnectInit lk.salyk.kg [17:41:09]written 0, free lines is 4095 [17:41:09]Connected sock=7 [17: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 35 39 0F 01 00 00 DD 7E 07 01 E0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 47 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 88 02 00 35 04 06 00 7F F0 62 77 9B 38 1C 58 C8 FE 06 35 21 B5 [17: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 35 39 4F 00 00 00 C6 A6 47 00 81 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 F9 88 02 00 F4 03 04 00 B5 38 16 67 B6 04 01 00 00 45 66 E3 7D 5A 58 44 16 [17:41:10]CommunicateWithHost err = 0 [17:41:10]CheckOFDResponse [17:41:10]1017 (14) - 77093643461234 [17:41:10]1041 (16) - 0000000000871759 [17:41:10]1040 (4) - 166137 [17:41:10]1012 (4) - 21.10.2024 11:19 [17:41:10]1206 (1) - 0 [17:41:10]OFD Sender: Remove packet 166137 [17:41:10]ProducePacketName [17:41:10]name=ofd_packets/00166137 [17:41:10]NVStorageDeleteData [17:41:10]Write to MH i2c: 01 00 00 ED 71 5E [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 07 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: 01 07 00 ED 71 00 00 00 00 00 D0 0C 41 [17:41:10]RasterBufferAndPrint [17:41:10]line [17:41:10]line [17:41:10]line [17:41:10]line [17:41:10]line [17:41:10]written 0, free lines is 3289 [17:41:10]MH_Cut [17:41:10]Write to MH i2c: D1 01 00 F4 71 01 37 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: D1 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: D1 01 00 [17:41:10]MH_I2C_Read... [17:41:10]Read from MH i2c: D1 01 00 F4 71 00 36 [17:41:10]Write to MH i2c: 01 00 00 F5 71 66 [17:41:10]Write i2c OK [17:41:10]MH_I2C_Read... [17:41:10]OFD Sender: No OFD packet to send [17:41:11]*** Cut start [17:41:11]*** Partial cut [17:41:11]*** CUTSNS_PIN = 1 [17:41:11]*** CUTSNS_PIN = 0 [17:41:11]*** Brake cut motor [17:41:11]Read from MH i2c: 01 [17:41:11]MH_I2C_Read... [17:41:11]*** Stop cut motor [17:41:11]*** Cut end [17:41:11]Read from MH i2c: 01 07 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: 01 07 00 F5 71 00 00 00 00 00 FF 0F 7B [17:41:11]process_action close_receipt done [17:41:11]requested_data is exist [17:41:11]produce_requested_data [17:41:11]requested_item fm.sn is exist - process it [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 11 00 00 [17:41:11]Write to MH i2c: E2 08 00 F6 71 80 11 00 00 00 00 00 00 E1 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 17 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 17 00 F6 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 39 [17:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:41:11]wFMCommunicate OK [17:41:11]requested_item fd.num is exist - process it [17:41:11]SAM_PROTO_GetFieldsCounters [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 13 00 00 [17:41:11]Write to MH i2c: E2 08 00 F7 71 80 13 00 00 00 00 00 00 E4 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 62 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 62 00 F7 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [17: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 F9 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:11]wFMCommunicate OK [17:41:11]SAM_PROTO_GetFieldsCounters done [17:41:11]requested_item shift.num is exist - process it [17:41:11]requested_item shift.opened is exist - process it [17:41:11]req_shift_opened [17:41:11]FM_GetShiftState [17:41:11]SAM_PROTO_GetShiftState [17:41:11]wFMCommunicate request_size=4 [17:41:11]MH_SAM_APDU [17:41:11]CAPDU: 80 13 01 00 [17:41:11]Write to MH i2c: E2 08 00 F8 71 80 13 01 00 00 00 00 00 E6 [17:41:11]Write i2c OK [17:41:11]MH_I2C_Read... [17:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:11]Read from MH i2c: E2 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 0E 00 [17:41:11]MH_I2C_Read... [17:41:11]Read from MH i2c: E2 0E 00 F8 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EF [17:41:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:41:11]wFMCommunicate OK [17:41:11]SAM_PROTO_GetShiftState done [17:41:11]FM_GetShiftState done [17:41:11]req_shift_opened done [17:41:11]requested_item shift.open_date is exist - process it [17:41:11]req_shift_open_date [17:41:11]req_shift_open_date done [17:41:11]produce_requested_data done [17:41:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166137,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:41:11]process_action_free close_receipt [17:41:11]json_value_free [17:41:11]json_value_free done [17:41:11]process_json_proto returns [17:41:11]Send response to host [17:41:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166137,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:41:11]free response buf [17:41:11]execute_script done [17:41:11]execute_script returns [17:41:11]free content buf [17:41:11]Sock 6.Close socket [17:41:11]Sock 6.Thread stoped [17:41:15]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:43]accept exits with 5 [17:42:43]New connection [17:42:43]New thread 3066920292 created [17:42:43]Thread 3066776932 joined [17:42:43]Waiting for new connection... [17:42:43] Sock 5.Parse request [17:42:43]Sock 5.Check first char [17:42:43]Sock 5.First char is OK [17:42:43]request: POST /json_proto HTTP/1.0 [17:42:43]Method: POST [17:42:43]URL: /json_proto [17:42:43]Method is POST - this is cgi request [17:42:43]url: /json_proto [17:42:43]query_string will be loaded in cgi processing [17:42:43]execute_cgi json_proto POST (null) [17:42:43]execute_cgi path=json_proto method=POST [17:42:43]POST find Content-Length [17:42:43]Host: 172.17.53.195:8080 [17:42:43]Content-Length: 790 [17:42:43]Content-Type: application/json [17:42:43] [17:42:43]POST finish read [17:42:43]Found Content-Length = 790 [17:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 118.120, "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\u000A95341", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:43]execute_script... [17: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)220708", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 118.120, "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\u000A95341", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:43]POST & json_proto [17:42:43]process_json_proto [17:42:43]json parsed OK: [17:42:43]protocol is kg_v1.0 [17:42:43]action value=close_receipt [17:42:43]process_action close_receipt [17:42:43]cmd_close_receipt [17:42:43]MH_GetDate [17:42:43]Write to MH i2c: F0 00 00 F9 71 59 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: F0 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: F0 09 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: F0 09 00 F9 71 00 A6 92 16 67 21 48 4A 65 2F [17:42:43]GetLastDocTimeStamp 1729532487 [17:42:43]current date 1729532582 [17:42:43]FM_GetShiftState [17:42:43]SAM_PROTO_GetShiftState [17:42:43]wFMCommunicate request_size=4 [17:42:43]MH_SAM_APDU [17:42:43]CAPDU: 80 13 01 00 [17:42:43]Write to MH i2c: E2 08 00 FA 71 80 13 01 00 00 00 00 00 E8 [17:42:43]Write i2c OK [17:42:43]MH_I2C_Read... [17:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:43]Read from MH i2c: E2 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 0E 00 [17:42:43]MH_I2C_Read... [17:42:43]Read from MH i2c: E2 0E 00 FA 71 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F1 [17:42:43]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:42:43]wFMCommunicate OK [17:42:43]SAM_PROTO_GetShiftState done [17:42:43]FM_GetShiftState done [17:42:43]opened in 1729470944 [17:42:43]opened+sec_in_day 1729557344 [17:42:43]quantity*price = 0 [17:42:43]sum+1 = 1 [17:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 249 21.10.2024 17:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 95341 ФМ: 0000000000871759 ФД: 166138 ФПД: 195818338446888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174302&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166138&fm=195818338446888&tin=02508201610067®Number=0000000000091764&sum=0 [17:42:44]StoreToDocumentArchive [17:42:44]shift 535 fd 166138 [17:42:44]save to /storage/0535/doc_00166138 [17:42:44]save last doc name /storage/0535/doc_00166138 to /storage/kkm_last_doc_name [17:42:44]save OK [17:42:44]Clear old archive folders... [17:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:44]tlvbuf is 0163FA00 [17:42:44]SAM_PROTO_ClearQueue [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 09 00 00 [17:42:44]Write to MH i2c: E2 08 00 07 72 80 09 00 00 00 00 00 00 EB [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 07 72 00 90 00 ED [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]SAM_PROTO_ClearQueue done [17:42:44]KKMCreateOFDPacket [17:42:44]OFDProtocolAddRootSTLVToBuf [17:42:44]FM_MakeSignedData [17:42:44]FM_MakeSignedData [17:42:44]SAM_PROTO_SignData [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 01 02 [17:42:44]Write to MH i2c: E2 08 00 08 72 80 0D 01 02 00 00 00 00 F3 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 08 72 00 90 00 EE [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]wFMCommunicate request_size=255 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 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 F9 00 00 00 F4 03 04 00 A6 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 88 02 00 35 04 06 00 B2 18 82 80 [17:42:44]Write to MH i2c: E2 02 01 09 72 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 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 F9 00 00 00 F4 03 04 00 A6 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 88 02 00 35 04 06 00 B2 18 82 80 00 00 A4 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 09 72 00 90 00 EF [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]wFMCommunicate request_size=7 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 02 02 02 EE 28 [17:42:44]Write to MH i2c: E2 0A 00 0A 72 80 0D 02 02 02 00 EE 28 00 00 10 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 03 00 0A 72 00 90 00 F0 [17:42:44]RAPDU: 90 00 [17:42:44]wFMCommunicate OK [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 0D 03 02 [17:42:44]Write to MH i2c: E2 08 00 0B 72 80 0D 03 02 00 00 00 00 F8 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:44]Read from MH i2c: E2 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 0B 00 [17:42:44]MH_I2C_Read... [17:42:44]Read from MH i2c: E2 0B 00 0B 72 00 FC E6 7B 31 54 10 45 3E 90 00 6E [17:42:44]RAPDU: FC E6 7B 31 54 10 45 3E 90 00 [17:42:44]wFMCommunicate OK [17:42:44]SAM_PROTO_SignData done [17:42:44]FM_MakeSignedData done [17:42:44]CreateOFDProtocolMessage [17:42:44]wFMCommunicate request_size=4 [17:42:44]MH_SAM_APDU [17:42:44]CAPDU: 80 11 00 00 [17:42:44]Write to MH i2c: E2 08 00 0C 72 80 11 00 00 00 00 00 00 F8 [17:42:44]Write i2c OK [17:42:44]MH_I2C_Read... [17:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:45]Read from MH i2c: E2 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: E2 17 00 0C 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [17:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:45]wFMCommunicate OK [17:42:45]CreateOFDProtocolMessage done [17:42:45]OFDSenderStorePacket 166138 [17:42:45]StoreOFDPacket docnum=166138 [17:42:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 4E C0 04 01 53 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 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 F9 00 00 00 F4 03 04 00 A6 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 88 02 00 35 04 06 00 B2 18 82 80 EE 28 FC E6 7B 31 54 10 45 3E [17:42:45]CheckFolder [17:42:45]dirname=/storage/ofd_packets [17:42:45]CheckFolder done [17:42:45]ProducePacketName [17:42:45]name=ofd_packets/00166138 [17:42:45]NVStorageSaveData ofd_packets/00166138 [17:42:45]File name is /storage/ofd_packets/00166138 [17:42:45]Write 298 bytes [17:42:45]NVStorageSaveData done [17:42:45]OFDSenderStorePacket done [17:42:45]KKMCreateOFDPacket done [17:42:45]NVStorageSaveData kkm_last_timestamp [17:42:45]File name is /storage/kkm_last_timestamp [17:42:45]Write 4 bytes [17:42:45]NVStorageSaveData done [17:42:45]ExternCall_PrintAddStr [17:42:45]wPrintStart [17:42:45]Write to MH i2c: 01 00 00 0D 72 7F [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 0D 72 00 00 00 00 00 FF 0F 94 [17:42:45]RasterBufferAndPrint [17:42:45]line Счет N : (1)220708 [17:42:45]line ИНН: 02508201610067 [17:42:45]line Контрольно-Кассовый Чек [17:42:45]line ПРОДАЖА [17:42:45]line ТРК (МРК, ГНК) : 11 [17:42:45]line Товар: 2710194210 [17:42:45]line ДТ-К-5 [17:42:45]line 118.120 * 0.00 [17:42:45]line = 0.00 [17:42:45]line НДС 12% НСП 1% [17:42:45]line > о реализуемом товаре [17:42:45]line ИТОГО: 0.00 [17:42:45]line НСП 1% : 0.00 [17:42:45]line НДС 12% : 0.00 [17:42:45]line Наличными: 0.00 [17:42:45]line Безнал.: 0.00 [17:42:45]line Место: АЗС № 161 "Партнер Нефть" [17:42:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:42:45]line СНО: Общий режим [17:42:45]line Чек 249 21.10.2024 17:43 [17:42:45]line Смена: 535 ФФД: 1.0 [17:42:45]line ЗНМ: 0300000104 [17:42:45]line РНМ: 0000000000091764 [17:42:45]line Версия ККМ: 001 [17:42:45]line Талоны: Топливная Карта [17:42:45]line 95341 [17:42:45]line ФМ: 0000000000871759 [17:42:45]line ФД: 166138 [17:42:45]line ФПД: 195818338446888 [17:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174302&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166138&fm=195818338446888&tin=02508201610067®Number=0000000000091764&sum=0 [17:42:45]OFD Sender: Processing packet 166138 [packets to send 48, broken 47] [17:42:45]ProducePacketName [17:42:45]name=ofd_packets/00166138 [17:42:45]OFD Sender: To server: pG, [17:42:45]CommunicateWithHost lk.salyk.kg:30040 [17:42:45]ConnectInit lk.salyk.kg [17:42:45]written 0, free lines is 4095 [17:42:45]Connected sock=7 [17: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 35 39 0C 01 00 00 4E C0 04 01 53 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 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 F9 00 00 00 F4 03 04 00 A6 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 88 02 00 35 04 06 00 B2 18 82 80 EE 28 FC E6 7B 31 54 10 45 3E [17:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 8F 47 00 0C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FA 88 02 00 F4 03 04 00 14 39 16 67 B6 04 01 00 00 B9 7A D3 93 46 7C 80 0B [17:42:45]CommunicateWithHost err = 0 [17:42:45]CheckOFDResponse [17:42:45]1017 (14) - 77093643461234 [17:42:45]1041 (16) - 0000000000871759 [17:42:45]1040 (4) - 166138 [17:42:45]1012 (4) - 21.10.2024 11:20 [17:42:45]1206 (1) - 0 [17:42:45]OFD Sender: Remove packet 166138 [17:42:45]ProducePacketName [17:42:45]name=ofd_packets/00166138 [17:42:45]NVStorageDeleteData [17:42:45]Write to MH i2c: 01 00 00 37 72 A9 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: 01 07 00 37 72 00 00 00 00 00 E6 0C A2 [17:42:45]RasterBufferAndPrint [17:42:45]line [17:42:45]line [17:42:45]line [17:42:45]line [17:42:45]line [17:42:45]written 0, free lines is 3309 [17:42:45]MH_Cut [17:42:45]Write to MH i2c: D1 01 00 3E 72 01 82 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: D1 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: D1 01 00 [17:42:45]MH_I2C_Read... [17:42:45]Read from MH i2c: D1 01 00 3E 72 00 81 [17:42:45]Write to MH i2c: 01 00 00 3F 72 B1 [17:42:45]Write i2c OK [17:42:45]MH_I2C_Read... [17:42:46]OFD Sender: No OFD packet to send [17:42:46]*** Cut start [17:42:46]*** Partial cut [17:42:46]*** CUTSNS_PIN = 1 [17:42:46]*** CUTSNS_PIN = 0 [17:42:46]*** Brake cut motor [17:42:47]Read from MH i2c: 01 [17:42:47]MH_I2C_Read... [17:42:47]*** Stop cut motor [17:42:47]*** Cut end [17:42:47]Read from MH i2c: 01 07 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: 01 07 00 3F 72 00 00 00 00 00 FF 0F C6 [17:42:47]process_action close_receipt done [17:42:47]requested_data is exist [17:42:47]produce_requested_data [17:42:47]requested_item fm.sn is exist - process it [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 11 00 00 [17:42:47]Write to MH i2c: E2 08 00 40 72 80 11 00 00 00 00 00 00 2C [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 17 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 17 00 40 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [17:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:47]wFMCommunicate OK [17:42:47]requested_item fd.num is exist - process it [17:42:47]SAM_PROTO_GetFieldsCounters [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 13 00 00 [17:42:47]Write to MH i2c: E2 08 00 41 72 80 13 00 00 00 00 00 00 2F [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 62 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 62 00 41 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [17: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FA 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:47]wFMCommunicate OK [17:42:47]SAM_PROTO_GetFieldsCounters done [17:42:47]requested_item shift.num is exist - process it [17:42:47]requested_item shift.opened is exist - process it [17:42:47]req_shift_opened [17:42:47]FM_GetShiftState [17:42:47]SAM_PROTO_GetShiftState [17:42:47]wFMCommunicate request_size=4 [17:42:47]MH_SAM_APDU [17:42:47]CAPDU: 80 13 01 00 [17:42:47]Write to MH i2c: E2 08 00 42 72 80 13 01 00 00 00 00 00 31 [17:42:47]Write i2c OK [17:42:47]MH_I2C_Read... [17:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:47]Read from MH i2c: E2 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 0E 00 [17:42:47]MH_I2C_Read... [17:42:47]Read from MH i2c: E2 0E 00 42 72 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3A [17:42:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:42:47]wFMCommunicate OK [17:42:47]SAM_PROTO_GetShiftState done [17:42:47]FM_GetShiftState done [17:42:47]req_shift_opened done [17:42:47]requested_item shift.open_date is exist - process it [17:42:47]req_shift_open_date [17:42:47]req_shift_open_date done [17:42:47]produce_requested_data done [17:42:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166138,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:42:47]process_action_free close_receipt [17:42:47]json_value_free [17:42:47]json_value_free done [17:42:47]process_json_proto returns [17:42:47]Send response to host [17:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166138,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:42:47]free response buf [17:42:47]execute_script done [17:42:47]execute_script returns [17:42:47]free content buf [17:42:47]Sock 5.Close socket [17:42:47]Sock 5.Thread stoped [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:42:58]accept exits with 6 [17:42:58]New connection [17:42:58]New thread 3066776932 created [17:42:58]Thread 3066920292 joined [17:42:58]Waiting for new connection... [17:42:58] Sock 6.Parse request [17:42:58]Sock 6.Check first char [17:42:58]Sock 6.First char is OK [17:42:58]request: POST /json_proto HTTP/1.0 [17:42:58]Method: POST [17:42:58]URL: /json_proto [17:42:58]Method is POST - this is cgi request [17:42:58]url: /json_proto [17:42:58]query_string will be loaded in cgi processing [17:42:58]execute_cgi json_proto POST (null) [17:42:58]execute_cgi path=json_proto method=POST [17:42:58]POST find Content-Length [17:42:58]Host: 172.17.53.195:8080 [17:42:58]Content-Length: 674 [17:42:58]Content-Type: application/json [17:42:58] [17:42:58]POST finish read [17:42:58]Found Content-Length = 674 [17:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:58]execute_script... [17:42: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)220710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:58]POST & json_proto [17:42:58]process_json_proto [17:42:58]json parsed OK: [17:42:58]protocol is kg_v1.0 [17:42:58]action value=close_receipt [17:42:58]process_action close_receipt [17:42:58]cmd_close_receipt [17:42:58]MH_GetDate [17:42:58]Write to MH i2c: F0 00 00 43 72 A4 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: F0 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: F0 09 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: F0 09 00 43 72 00 B5 92 16 67 21 48 4A 65 89 [17:42:58]GetLastDocTimeStamp 1729532582 [17:42:58]current date 1729532597 [17:42:58]FM_GetShiftState [17:42:58]SAM_PROTO_GetShiftState [17:42:58]wFMCommunicate request_size=4 [17:42:58]MH_SAM_APDU [17:42:58]CAPDU: 80 13 01 00 [17:42:58]Write to MH i2c: E2 08 00 44 72 80 13 01 00 00 00 00 00 33 [17:42:58]Write i2c OK [17:42:58]MH_I2C_Read... [17:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:58]Read from MH i2c: E2 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 0E 00 [17:42:58]MH_I2C_Read... [17:42:58]Read from MH i2c: E2 0E 00 44 72 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3C [17:42:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:42:58]wFMCommunicate OK [17:42:58]SAM_PROTO_GetShiftState done [17:42:58]FM_GetShiftState done [17:42:58]opened in 1729470944 [17:42:58]opened+sec_in_day 1729557344 [17:42:58]quantity*price = 50063 [17:42:58]sum+1 = 50064 [17:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 250 21.10.2024 17:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166139 ФПД: 83681497832907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166139&fm=83681497832907&tin=02508201610067®Number=0000000000091764&sum=50000 [17:42:59]StoreToDocumentArchive [17:42:59]shift 535 fd 166139 [17:42:59]save to /storage/0535/doc_00166139 [17:42:59]save last doc name /storage/0535/doc_00166139 to /storage/kkm_last_doc_name [17:42:59]save OK [17:42:59]Clear old archive folders... [17:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:59]tlvbuf is 0186AEE0 [17:42:59]SAM_PROTO_ClearQueue [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 09 00 00 [17:42:59]Write to MH i2c: E2 08 00 51 72 80 09 00 00 00 00 00 00 35 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 51 72 00 90 00 37 [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]SAM_PROTO_ClearQueue done [17:42:59]KKMCreateOFDPacket [17:42:59]OFDProtocolAddRootSTLVToBuf [17:42:59]FM_MakeSignedData [17:42:59]FM_MakeSignedData [17:42:59]SAM_PROTO_SignData [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 01 02 [17:42:59]Write to MH i2c: E2 08 00 52 72 80 0D 01 02 00 00 00 00 3D [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 52 72 00 90 00 38 [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=255 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 B5 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 88 02 00 35 04 06 00 4C 1B 9D F3 [17:42:59]Write to MH i2c: E2 02 01 53 72 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FA 00 00 00 F4 03 04 00 B5 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 88 02 00 35 04 06 00 4C 1B 9D F3 00 00 A4 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 53 72 00 90 00 39 [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=7 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 02 02 02 DD CB [17:42:59]Write to MH i2c: E2 0A 00 54 72 80 0D 02 02 02 00 DD CB 00 00 EC [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 03 00 54 72 00 90 00 3A [17:42:59]RAPDU: 90 00 [17:42:59]wFMCommunicate OK [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 0D 03 02 [17:42:59]Write to MH i2c: E2 08 00 55 72 80 0D 03 02 00 00 00 00 42 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 0B 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 0B 00 55 72 00 86 B1 F0 04 80 C5 29 33 90 00 0F [17:42:59]RAPDU: 86 B1 F0 04 80 C5 29 33 90 00 [17:42:59]wFMCommunicate OK [17:42:59]SAM_PROTO_SignData done [17:42:59]FM_MakeSignedData done [17:42:59]CreateOFDProtocolMessage [17:42:59]wFMCommunicate request_size=4 [17:42:59]MH_SAM_APDU [17:42:59]CAPDU: 80 11 00 00 [17:42:59]Write to MH i2c: E2 08 00 56 72 80 11 00 00 00 00 00 00 42 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:59]Read from MH i2c: E2 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: E2 17 00 56 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9A [17:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:42:59]wFMCommunicate OK [17:42:59]CreateOFDProtocolMessage done [17:42:59]OFDSenderStorePacket 166139 [17:42:59]StoreOFDPacket docnum=166139 [17:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C2 13 04 01 40 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 B5 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 88 02 00 35 04 06 00 4C 1B 9D F3 DD CB 86 B1 F0 04 80 C5 29 33 [17:42:59]CheckFolder [17:42:59]dirname=/storage/ofd_packets [17:42:59]CheckFolder done [17:42:59]ProducePacketName [17:42:59]name=ofd_packets/00166139 [17:42:59]NVStorageSaveData ofd_packets/00166139 [17:42:59]File name is /storage/ofd_packets/00166139 [17:42:59]Write 298 bytes [17:42:59]NVStorageSaveData done [17:42:59]OFDSenderStorePacket done [17:42:59]KKMCreateOFDPacket done [17:42:59]NVStorageSaveData kkm_last_timestamp [17:42:59]File name is /storage/kkm_last_timestamp [17:42:59]Write 4 bytes [17:42:59]NVStorageSaveData done [17:42:59]ExternCall_PrintAddStr [17:42:59]wPrintStart [17:42:59]Write to MH i2c: 01 00 00 57 72 C9 [17:42:59]Write i2c OK [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 [17:42:59]MH_I2C_Read... [17:42:59]Read from MH i2c: 01 07 00 57 72 00 00 00 00 00 FF 0F DE [17:42:59]RasterBufferAndPrint [17:42:59]line Счет N : (1)220710 [17:42:59]line ИНН: 02508201610067 [17:42:59]line Контрольно-Кассовый Чек [17:42:59]line ПРОДАЖА [17:42:59]line ТРК (МРК, ГНК) : 41 [17:42:59]line Товар: 2710194210 [17:42:59]line ДТ-К-5 [17:42:59]line 6.570 * 76.20 [17:42:59]line = 500.63 [17:42:59]line НДС 12% НСП 1% [17:42:59]line > о реализуемом товаре [17:42:59]line ОКРУГЛЕНИЕ: -0.63 [17:42:59]line ИТОГО: 500.00 [17:42:59]line Внесено: 500.00 [17:42:59]line СДАЧА: 0.00 [17:42:59]line НСП 1% : 4.43 [17:42:59]line НДС 12% : 53.16 [17:42:59]line Наличными: 500.00 [17:42:59]line Безнал.: 0.00 [17:42:59]line Место: АЗС № 161 "Партнер Нефть" [17:42:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:42:59]line СНО: Общий режим [17:42:59]line Чек 250 21.10.2024 17:43 [17:42:59]line Смена: 535 ФФД: 1.0 [17:42:59]line ЗНМ: 0300000104 [17:42:59]line РНМ: 0000000000091764 [17:42:59]line Версия ККМ: 001 [17:42:59]line ФМ: 0000000000871759 [17:42:59]line ФД: 166139 [17:42:59]line ФПД: 83681497832907 [17:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166139&fm=83681497832907&tin=02508201610067®Number=0000000000091764&sum=50000 [17:43:00]OFD Sender: Processing packet 166139 [packets to send 48, broken 47] [17:43:00]ProducePacketName [17:43:00]name=ofd_packets/00166139 [17:43:00]OFD Sender: To server: pG, [17:43:00]CommunicateWithHost lk.salyk.kg:30040 [17:43:00]ConnectInit lk.salyk.kg [17:43:00]written 0, free lines is 4095 [17:43:00]Connected sock=5 [17:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 C2 13 04 01 40 C7 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 B5 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 88 02 00 35 04 06 00 4C 1B 9D F3 DD CB 86 B1 F0 04 80 C5 29 33 [17:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 52 D5 47 00 BD 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FB 88 02 00 F4 03 04 00 23 39 16 67 B6 04 01 00 00 05 B5 70 D6 28 E7 26 F5 [17:43:00]CommunicateWithHost err = 0 [17:43:00]CheckOFDResponse [17:43:00]1017 (14) - 77093643461234 [17:43:00]1041 (16) - 0000000000871759 [17:43:00]1040 (4) - 166139 [17:43:00]1012 (4) - 21.10.2024 11:21 [17:43:00]1206 (1) - 0 [17:43:00]OFD Sender: Remove packet 166139 [17:43:00]ProducePacketName [17:43:00]name=ofd_packets/00166139 [17:43:00]NVStorageDeleteData [17:43:00]Write to MH i2c: 01 00 00 82 72 F4 [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 07 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: 01 07 00 82 72 00 00 00 00 00 D5 0C DC [17:43:00]RasterBufferAndPrint [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]line [17:43:00]written 0, free lines is 3293 [17:43:00]MH_Cut [17:43:00]Write to MH i2c: D1 01 00 89 72 01 CD [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 01 00 [17:43:00]MH_I2C_Read... [17:43:00]Read from MH i2c: D1 01 00 89 72 00 CC [17:43:00]Write to MH i2c: 01 00 00 8A 72 FC [17:43:00]Write i2c OK [17:43:00]MH_I2C_Read... [17:43:00]OFD Sender: No OFD packet to send [17:43:01]*** Cut start [17:43:01]*** Partial cut [17:43:01]*** CUTSNS_PIN = 1 [17:43:01]*** CUTSNS_PIN = 0 [17:43:01]*** Brake cut motor [17:43:01]Read from MH i2c: 01 [17:43:01]MH_I2C_Read... [17:43:01]*** Stop cut motor [17:43:01]*** Cut end [17:43:01]Read from MH i2c: 01 07 00 [17:43:01]MH_I2C_Read... [17:43:01]Read from MH i2c: 01 07 00 8A 72 00 00 00 00 00 FF 0F 11 [17:43:01]process_action close_receipt done [17:43:01]requested_data is exist [17:43:01]produce_requested_data [17:43:01]requested_item fm.sn is exist - process it [17:43:01]wFMCommunicate request_size=4 [17:43:01]MH_SAM_APDU [17:43:01]CAPDU: 80 11 00 00 [17:43:01]Write to MH i2c: E2 08 00 8B 72 80 11 00 00 00 00 00 00 77 [17:43:01]Write i2c OK [17:43:01]MH_I2C_Read... [17:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 17 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 17 00 8B 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [17:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:43:02]wFMCommunicate OK [17:43:02]requested_item fd.num is exist - process it [17:43:02]SAM_PROTO_GetFieldsCounters [17:43:02]wFMCommunicate request_size=4 [17:43:02]MH_SAM_APDU [17:43:02]CAPDU: 80 13 00 00 [17:43:02]Write to MH i2c: E2 08 00 8C 72 80 13 00 00 00 00 00 00 7A [17:43:02]Write i2c OK [17:43:02]MH_I2C_Read... [17:43:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 62 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 62 00 8C 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [17:43:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FB 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:02]wFMCommunicate OK [17:43:02]SAM_PROTO_GetFieldsCounters done [17:43:02]requested_item shift.num is exist - process it [17:43:02]requested_item shift.opened is exist - process it [17:43:02]req_shift_opened [17:43:02]FM_GetShiftState [17:43:02]SAM_PROTO_GetShiftState [17:43:02]wFMCommunicate request_size=4 [17:43:02]MH_SAM_APDU [17:43:02]CAPDU: 80 13 01 00 [17:43:02]Write to MH i2c: E2 08 00 8D 72 80 13 01 00 00 00 00 00 7C [17:43:02]Write i2c OK [17:43:02]MH_I2C_Read... [17:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:02]Read from MH i2c: E2 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 0E 00 [17:43:02]MH_I2C_Read... [17:43:02]Read from MH i2c: E2 0E 00 8D 72 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 85 [17:43:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:43:02]wFMCommunicate OK [17:43:02]SAM_PROTO_GetShiftState done [17:43:02]FM_GetShiftState done [17:43:02]req_shift_opened done [17:43:02]requested_item shift.open_date is exist - process it [17:43:02]req_shift_open_date [17:43:02]req_shift_open_date done [17:43:02]produce_requested_data done [17:43:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166139,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:43:02]process_action_free close_receipt [17:43:02]json_value_free [17:43:02]json_value_free done [17:43:02]process_json_proto returns [17:43:02]Send response to host [17:43:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166139,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:43:02]free response buf [17:43:02]execute_script done [17:43:02]execute_script returns [17:43:02]free content buf [17:43:02]Sock 6.Close socket [17:43:02]Sock 6.Thread stoped [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:24]accept exits with 7 [17:43:24]New connection [17:43:24]New thread 3066920292 created [17:43:24]Thread 3066776932 joined [17:43:24]Waiting for new connection... [17:43:24] Sock 7.Parse request [17:43:24]Sock 7.Check first char [17:43:24]Sock 7.First char is OK [17:43:24]request: POST /json_proto HTTP/1.0 [17:43:24]Method: POST [17:43:24]URL: /json_proto [17:43:24]Method is POST - this is cgi request [17:43:24]url: /json_proto [17:43:24]query_string will be loaded in cgi processing [17:43:24]execute_cgi json_proto POST (null) [17:43:24]execute_cgi path=json_proto method=POST [17:43:24]POST find Content-Length [17:43:24]Host: 172.17.53.195:8080 [17:43:24]Content-Length: 677 [17:43:24]Content-Type: application/json [17:43:24] [17:43:24]POST finish read [17:43:24]Found Content-Length = 677 [17:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:24]execute_script... [17:43: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)220711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:24]POST & json_proto [17:43:24]process_json_proto [17:43:24]json parsed OK: [17:43:24]protocol is kg_v1.0 [17:43:24]action value=close_receipt [17:43:24]process_action close_receipt [17:43:24]cmd_close_receipt [17:43:24]MH_GetDate [17:43:24]Write to MH i2c: F0 00 00 8E 72 EF [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: F0 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: F0 09 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: F0 09 00 8E 72 00 CF 92 16 67 21 48 4A 65 EE [17:43:24]GetLastDocTimeStamp 1729532597 [17:43:24]current date 1729532623 [17:43:24]FM_GetShiftState [17:43:24]SAM_PROTO_GetShiftState [17:43:24]wFMCommunicate request_size=4 [17:43:24]MH_SAM_APDU [17:43:24]CAPDU: 80 13 01 00 [17:43:24]Write to MH i2c: E2 08 00 8F 72 80 13 01 00 00 00 00 00 7E [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:24]Read from MH i2c: E2 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 0E 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: E2 0E 00 8F 72 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 87 [17:43:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:43:24]wFMCommunicate OK [17:43:24]SAM_PROTO_GetShiftState done [17:43:24]FM_GetShiftState done [17:43:24]opened in 1729470944 [17:43:24]opened+sec_in_day 1729557344 [17:43:24]quantity*price = 30038 [17:43:24]sum+1 = 30039 [17:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 251 21.10.2024 17:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166140 ФПД: 162973241963612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174343&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166140&fm=162973241963612&tin=02508201610067®Number=0000000000091764&sum=30000 [17:43:25]StoreToDocumentArchive [17:43:25]shift 535 fd 166140 [17:43:25]save to /storage/0535/doc_00166140 [17:43:25]save last doc name /storage/0535/doc_00166140 to /storage/kkm_last_doc_name [17:43:25]save OK [17:43:25]Clear old archive folders... [17:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:25]tlvbuf is 015128D0 [17:43:25]SAM_PROTO_ClearQueue [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 09 00 00 [17:43:25]Write to MH i2c: E2 08 00 9C 72 80 09 00 00 00 00 00 00 80 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 9C 72 00 90 00 82 [17:43:25]RAPDU: 90 00 [17:43:25]wFMCommunicate OK [17:43:25]SAM_PROTO_ClearQueue done [17:43:25]KKMCreateOFDPacket [17:43:25]OFDProtocolAddRootSTLVToBuf [17:43:25]FM_MakeSignedData [17:43:25]FM_MakeSignedData [17:43:25]SAM_PROTO_SignData [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 0D 01 02 [17:43:25]Write to MH i2c: E2 08 00 9D 72 80 0D 01 02 00 00 00 00 88 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 03 00 9D 72 00 90 00 83 [17:43:25]RAPDU: 90 00 [17:43:25]wFMCommunicate OK [17:43:25]wFMCommunicate request_size=255 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CF 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 88 02 00 35 04 06 00 94 [17:43:25]Write to MH i2c: E2 02 01 9E 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CF 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 88 02 00 35 04 06 00 94 00 00 1E [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]OFD Sender: No OFD packet to send [17:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:26]Read from MH i2c: E2 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 03 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 03 00 9E 72 00 90 00 84 [17:43:26]RAPDU: 90 00 [17:43:26]wFMCommunicate OK [17:43:26]wFMCommunicate request_size=10 [17:43:26]MH_SAM_APDU [17:43:26]CAPDU: 80 0D 02 02 05 39 2A 31 F4 5C [17:43:26]Write to MH i2c: E2 0D 00 9F 72 80 0D 02 02 05 00 39 2A 31 F4 5C 00 00 79 [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:26]Read from MH i2c: E2 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 03 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 03 00 9F 72 00 90 00 85 [17:43:26]RAPDU: 90 00 [17:43:26]wFMCommunicate OK [17:43:26]wFMCommunicate request_size=4 [17:43:26]MH_SAM_APDU [17:43:26]CAPDU: 80 0D 03 02 [17:43:26]Write to MH i2c: E2 08 00 A0 72 80 0D 03 02 00 00 00 00 8D [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:26]Read from MH i2c: E2 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 0B 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 0B 00 A0 72 00 FD 07 E2 F4 FF CD 70 EA 90 00 8E [17:43:26]RAPDU: FD 07 E2 F4 FF CD 70 EA 90 00 [17:43:26]wFMCommunicate OK [17:43:26]SAM_PROTO_SignData done [17:43:26]FM_MakeSignedData done [17:43:26]CreateOFDProtocolMessage [17:43:26]wFMCommunicate request_size=4 [17:43:26]MH_SAM_APDU [17:43:26]CAPDU: 80 11 00 00 [17:43:26]Write to MH i2c: E2 08 00 A1 72 80 11 00 00 00 00 00 00 8D [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:26]Read from MH i2c: E2 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 17 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: E2 17 00 A1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E5 [17:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:43:26]wFMCommunicate OK [17:43:26]CreateOFDProtocolMessage done [17:43:26]OFDSenderStorePacket 166140 [17:43:26]StoreOFDPacket docnum=166140 [17:43:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 F3 07 01 90 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CF 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 88 02 00 35 04 06 00 94 39 2A 31 F4 5C FD 07 E2 F4 FF CD 70 EA [17:43:26]CheckFolder [17:43:26]dirname=/storage/ofd_packets [17:43:26]CheckFolder done [17:43:26]ProducePacketName [17:43:26]name=ofd_packets/00166140 [17:43:26]NVStorageSaveData ofd_packets/00166140 [17:43:26]File name is /storage/ofd_packets/00166140 [17:43:26]Write 301 bytes [17:43:26]NVStorageSaveData done [17:43:26]OFDSenderStorePacket done [17:43:26]KKMCreateOFDPacket done [17:43:26]NVStorageSaveData kkm_last_timestamp [17:43:26]File name is /storage/kkm_last_timestamp [17:43:26]Write 4 bytes [17:43:26]NVStorageSaveData done [17:43:26]ExternCall_PrintAddStr [17:43:26]wPrintStart [17:43:26]Write to MH i2c: 01 00 00 A2 72 14 [17:43:26]Write i2c OK [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: 01 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: 01 07 00 [17:43:26]MH_I2C_Read... [17:43:26]Read from MH i2c: 01 07 00 A2 72 00 00 00 00 00 FF 0F 29 [17:43:26]RasterBufferAndPrint [17:43:26]line Счет N : (1)220711 [17:43:26]line ИНН: 02508201610067 [17:43:26]line Контрольно-Кассовый Чек [17:43:26]line ПРОДАЖА [17:43:26]line ТРК (МРК, ГНК) : 33 [17:43:26]line Товар: 2710124130 [17:43:26]line Аи-92-К-5 [17:43:26]line 4.490 * 66.90 [17:43:26]line = 300.38 [17:43:26]line НДС 12% НСП 1% [17:43:26]line > о реализуемом товаре [17:43:26]line ОКРУГЛЕНИЕ: -0.38 [17:43:26]line ИТОГО: 300.00 [17:43:26]line Внесено: 300.00 [17:43:26]line СДАЧА: 0.00 [17:43:26]line НСП 1% : 2.66 [17:43:26]line НДС 12% : 31.90 [17:43:26]line Наличными: 300.00 [17:43:26]line Безнал.: 0.00 [17:43:26]line Место: АЗС № 161 "Партнер Нефть" [17:43:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:43:26]line СНО: Общий режим [17:43:26]line Чек 251 21.10.2024 17:43 [17:43:26]line Смена: 535 ФФД: 1.0 [17:43:26]line ЗНМ: 0300000104 [17:43:26]line РНМ: 0000000000091764 [17:43:26]line Версия ККМ: 001 [17:43:26]line ФМ: 0000000000871759 [17:43:26]line ФД: 166140 [17:43:26]line ФПД: 162973241963612 [17:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174343&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166140&fm=162973241963612&tin=02508201610067®Number=0000000000091764&sum=30000 [17:43:26]OFD Sender: Processing packet 166140 [packets to send 48, broken 47] [17:43:26]ProducePacketName [17:43:26]name=ofd_packets/00166140 [17:43:26]OFD Sender: To server: pG, [17:43:26]CommunicateWithHost lk.salyk.kg:30040 [17:43:26]ConnectInit lk.salyk.kg [17:43:26]written 0, free lines is 4095 [17:43:26]Connected sock=5 [17:43:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C5 F3 07 01 90 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 CF 92 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 88 02 00 35 04 06 00 94 39 2A 31 F4 5C FD 07 E2 F4 FF CD 70 EA [17:43:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 13 FE 47 00 01 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FC 88 02 00 F4 03 04 00 3D 39 16 67 B6 04 01 00 00 DF 07 17 3A 8B 90 BD 8D [17:43:26]CommunicateWithHost err = 0 [17:43:26]CheckOFDResponse [17:43:26]1017 (14) - 77093643461234 [17:43:26]1041 (16) - 0000000000871759 [17:43:26]1040 (4) - 166140 [17:43:26]1012 (4) - 21.10.2024 11:21 [17:43:26]1206 (1) - 0 [17:43:26]OFD Sender: Remove packet 166140 [17:43:26]ProducePacketName [17:43:26]name=ofd_packets/00166140 [17:43:26]NVStorageDeleteData [17:43:27]Write to MH i2c: 01 00 00 CD 72 3F [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: 01 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: 01 07 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: 01 07 00 CD 72 00 00 00 00 00 D4 0C 26 [17:43:27]RasterBufferAndPrint [17:43:27]line [17:43:27]line [17:43:27]line [17:43:27]line [17:43:27]line [17:43:27]written 0, free lines is 3294 [17:43:27]MH_Cut [17:43:27]Write to MH i2c: D1 01 00 D4 72 01 18 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: D1 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: D1 01 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: D1 01 00 D4 72 00 17 [17:43:27]Write to MH i2c: 01 00 00 D5 72 47 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]OFD Sender: No OFD packet to send [17:43:27]*** Cut start [17:43:27]*** Partial cut [17:43:27]*** CUTSNS_PIN = 1 [17:43:27]*** CUTSNS_PIN = 0 [17:43:28]*** Brake cut motor [17:43:28]Read from MH i2c: 01 [17:43:28]MH_I2C_Read... [17:43:28]*** Stop cut motor [17:43:28]*** Cut end [17:43:28]Read from MH i2c: 01 07 00 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: 01 07 00 D5 72 00 00 00 00 00 FF 0F 5C [17:43:28]process_action close_receipt done [17:43:28]requested_data is exist [17:43:28]produce_requested_data [17:43:28]requested_item fm.sn is exist - process it [17:43:28]wFMCommunicate request_size=4 [17:43:28]MH_SAM_APDU [17:43:28]CAPDU: 80 11 00 00 [17:43:28]Write to MH i2c: E2 08 00 D6 72 80 11 00 00 00 00 00 00 C2 [17:43:28]Write i2c OK [17:43:28]MH_I2C_Read... [17:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:28]Read from MH i2c: E2 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: E2 17 00 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: E2 17 00 D6 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [17:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:43:28]wFMCommunicate OK [17:43:28]requested_item fd.num is exist - process it [17:43:28]SAM_PROTO_GetFieldsCounters [17:43:28]wFMCommunicate request_size=4 [17:43:28]MH_SAM_APDU [17:43:28]CAPDU: 80 13 00 00 [17:43:28]Write to MH i2c: E2 08 00 D7 72 80 13 00 00 00 00 00 00 C5 [17:43:28]Write i2c OK [17:43:28]MH_I2C_Read... [17:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:28]Read from MH i2c: E2 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: E2 62 00 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: E2 62 00 D7 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [17:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FC 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:28]wFMCommunicate OK [17:43:28]SAM_PROTO_GetFieldsCounters done [17:43:28]requested_item shift.num is exist - process it [17:43:28]requested_item shift.opened is exist - process it [17:43:28]req_shift_opened [17:43:28]FM_GetShiftState [17:43:28]SAM_PROTO_GetShiftState [17:43:28]wFMCommunicate request_size=4 [17:43:28]MH_SAM_APDU [17:43:28]CAPDU: 80 13 01 00 [17:43:28]Write to MH i2c: E2 08 00 D8 72 80 13 01 00 00 00 00 00 C7 [17:43:28]Write i2c OK [17:43:28]MH_I2C_Read... [17:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:28]Read from MH i2c: E2 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: E2 0E 00 [17:43:28]MH_I2C_Read... [17:43:28]Read from MH i2c: E2 0E 00 D8 72 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D0 [17:43:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:43:28]wFMCommunicate OK [17:43:28]SAM_PROTO_GetShiftState done [17:43:28]FM_GetShiftState done [17:43:28]req_shift_opened done [17:43:28]requested_item shift.open_date is exist - process it [17:43:28]req_shift_open_date [17:43:28]req_shift_open_date done [17:43:28]produce_requested_data done [17:43:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166140,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:43:28]process_action_free close_receipt [17:43:28]json_value_free [17:43:28]json_value_free done [17:43:28]process_json_proto returns [17:43:28]Send response to host [17:43:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166140,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:43:28]free response buf [17:43:28]execute_script done [17:43:28]execute_script returns [17:43:28]free content buf [17:43:28]Sock 7.Close socket [17:43:28]Sock 7.Thread stoped [17:43:32]OFD Sender: No OFD packet to send [17:43:37]OFD Sender: No OFD packet to send [17:43:42]OFD Sender: No OFD packet to send [17:43:47]OFD Sender: No OFD packet to send [17:43:52]OFD Sender: No OFD packet to send [17:43:57]OFD Sender: No OFD packet to send [17:44:02]OFD Sender: No OFD packet to send [17:44:07]OFD Sender: No OFD packet to send [17:44:12]OFD Sender: No OFD packet to send [17:44:17]OFD Sender: No OFD packet to send [17:44:22]OFD Sender: No OFD packet to send [17:44:27]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:53]accept exits with 6 [17:44:53]New connection [17:44:53]New thread 3066776932 created [17:44:53]Thread 3066920292 joined [17:44:53]Waiting for new connection... [17:44:53] Sock 6.Parse request [17:44:53]Sock 6.Check first char [17:44:53]Sock 6.First char is OK [17:44:53]request: POST /json_proto HTTP/1.0 [17:44:53]Method: POST [17:44:53]URL: /json_proto [17:44:53]Method is POST - this is cgi request [17:44:53]url: /json_proto [17:44:53]query_string will be loaded in cgi processing [17:44:53]execute_cgi json_proto POST (null) [17:44:53]execute_cgi path=json_proto method=POST [17:44:53]POST find Content-Length [17:44:53]Host: 172.17.53.195:8080 [17:44:53]Content-Length: 677 [17:44:53]Content-Type: application/json [17:44:53] [17:44:53]POST finish read [17:44:53]Found Content-Length = 677 [17:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [17:44:53]execute_script... [17:44: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)220713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [17:44:53]POST & json_proto [17:44:53]process_json_proto [17:44:53]json parsed OK: [17:44:53]protocol is kg_v1.0 [17:44:53]action value=close_receipt [17:44:53]process_action close_receipt [17:44:53]cmd_close_receipt [17:44:53]MH_GetDate [17:44:53]Write to MH i2c: F0 00 00 D9 72 3A [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: F0 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: F0 09 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: F0 09 00 D9 72 00 28 93 16 67 21 48 4A 65 93 [17:44:53]GetLastDocTimeStamp 1729532623 [17:44:53]current date 1729532712 [17:44:53]FM_GetShiftState [17:44:53]SAM_PROTO_GetShiftState [17:44:53]wFMCommunicate request_size=4 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 13 01 00 [17:44:53]Write to MH i2c: E2 08 00 DA 72 80 13 01 00 00 00 00 00 C9 [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 0E 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 0E 00 DA 72 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D2 [17:44:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:44:53]wFMCommunicate OK [17:44:53]SAM_PROTO_GetShiftState done [17:44:53]FM_GetShiftState done [17:44:53]opened in 1729470944 [17:44:53]opened+sec_in_day 1729557344 [17:44:53]quantity*price = 50010 [17:44:53]sum+1 = 50012 [17:44: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 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 252 21.10.2024 17:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166141 ФПД: 7311421241144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166141&fm=7311421241144&tin=02508201610067®Number=0000000000091764&sum=50000 [17:44:54]StoreToDocumentArchive [17:44:54]shift 535 fd 166141 [17:44:54]save to /storage/0535/doc_00166141 [17:44:54]save last doc name /storage/0535/doc_00166141 to /storage/kkm_last_doc_name [17:44:54]save OK [17:44:54]Clear old archive folders... [17:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:54]tlvbuf is 018A2BB0 [17:44:54]SAM_PROTO_ClearQueue [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 09 00 00 [17:44:54]Write to MH i2c: E2 08 00 E7 72 80 09 00 00 00 00 00 00 CB [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 E7 72 00 90 00 CD [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]SAM_PROTO_ClearQueue done [17:44:54]KKMCreateOFDPacket [17:44:54]OFDProtocolAddRootSTLVToBuf [17:44:54]FM_MakeSignedData [17:44:54]FM_MakeSignedData [17:44:54]SAM_PROTO_SignData [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 0D 01 02 [17:44:54]Write to MH i2c: E2 08 00 E8 72 80 0D 01 02 00 00 00 00 D3 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 E8 72 00 90 00 CE [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]wFMCommunicate request_size=255 [17:44:54]MH_SAM_APDU [17:44: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 FC 00 00 00 F4 03 04 00 28 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 88 02 00 35 04 06 00 06 [17:44:54]Write to MH i2c: E2 02 01 E9 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FC 00 00 00 F4 03 04 00 28 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 88 02 00 35 04 06 00 06 00 00 1B [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 E9 72 00 90 00 CF [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]wFMCommunicate request_size=10 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 0D 02 02 05 A6 52 AA 77 38 [17:44:54]Write to MH i2c: E2 0D 00 EA 72 80 0D 02 02 05 00 A6 52 AA 77 38 00 00 31 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 EA 72 00 90 00 D0 [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 0D 03 02 [17:44:54]Write to MH i2c: E2 08 00 EB 72 80 0D 03 02 00 00 00 00 D8 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 0B 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 0B 00 EB 72 00 AF 07 DE B6 16 41 A3 1A 90 00 37 [17:44:54]RAPDU: AF 07 DE B6 16 41 A3 1A 90 00 [17:44:54]wFMCommunicate OK [17:44:54]SAM_PROTO_SignData done [17:44:54]FM_MakeSignedData done [17:44:54]CreateOFDProtocolMessage [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 11 00 00 [17:44:54]Write to MH i2c: E2 08 00 EC 72 80 11 00 00 00 00 00 00 D8 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 17 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 17 00 EC 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [17:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:44:54]wFMCommunicate OK [17:44:54]CreateOFDProtocolMessage done [17:44:54]OFDSenderStorePacket 166141 [17:44:54]StoreOFDPacket docnum=166141 [17:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 15 07 01 E8 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 FC 00 00 00 F4 03 04 00 28 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 88 02 00 35 04 06 00 06 A6 52 AA 77 38 AF 07 DE B6 16 41 A3 1A [17:44:54]CheckFolder [17:44:54]dirname=/storage/ofd_packets [17:44:54]CheckFolder done [17:44:54]ProducePacketName [17:44:54]name=ofd_packets/00166141 [17:44:54]NVStorageSaveData ofd_packets/00166141 [17:44:54]File name is /storage/ofd_packets/00166141 [17:44:54]Write 301 bytes [17:44:54]NVStorageSaveData done [17:44:54]OFDSenderStorePacket done [17:44:54]KKMCreateOFDPacket done [17:44:54]NVStorageSaveData kkm_last_timestamp [17:44:54]File name is /storage/kkm_last_timestamp [17:44:54]Write 4 bytes [17:44:54]NVStorageSaveData done [17:44:54]ExternCall_PrintAddStr [17:44:54]wPrintStart [17:44:54]Write to MH i2c: 01 00 00 ED 72 5F [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 07 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 07 00 ED 72 00 00 00 00 00 FF 0F 74 [17:44:54]RasterBufferAndPrint [17:44:54]line Счет N : (1)220713 [17:44:54]line ИНН: 02508201610067 [17:44:54]line Контрольно-Кассовый Чек [17:44:54]line ПРОДАЖА [17:44:54]line ТРК (МРК, ГНК) : 34 [17:44:54]line Товар: 2710124500 [17:44:54]line Аи-95-К-5 [17:44:54]line 6.740 * 74.20 [17:44:54]line = 500.11 [17:44:54]line НДС 12% НСП 1% [17:44:54]line > о реализуемом товаре [17:44:54]line ОКРУГЛЕНИЕ: -0.11 [17:44:54]line ИТОГО: 500.00 [17:44:54]line Внесено: 500.00 [17:44:54]line СДАЧА: 0.00 [17:44:54]line НСП 1% : 4.43 [17:44:54]line НДС 12% : 53.11 [17:44:54]line Наличными: 500.00 [17:44:54]line Безнал.: 0.00 [17:44:54]line Место: АЗС № 161 "Партнер Нефть" [17:44:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:44:55]line СНО: Общий режим [17:44:55]line Чек 252 21.10.2024 17:45 [17:44:55]line Смена: 535 ФФД: 1.0 [17:44:55]line ЗНМ: 0300000104 [17:44:55]line РНМ: 0000000000091764 [17:44:55]line Версия ККМ: 001 [17:44:55]line ФМ: 0000000000871759 [17:44:55]line ФД: 166141 [17:44:55]line ФПД: 7311421241144 [17:44:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174512&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166141&fm=7311421241144&tin=02508201610067®Number=0000000000091764&sum=50000 [17:44:55]OFD Sender: Processing packet 166141 [packets to send 48, broken 47] [17:44:55]ProducePacketName [17:44:55]name=ofd_packets/00166141 [17:44:55]OFD Sender: To server: pG, [17:44:55]CommunicateWithHost lk.salyk.kg:30040 [17:44:55]ConnectInit lk.salyk.kg [17:44:55]written 0, free lines is 4095 [17:44:55]Connected sock=7 [17:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 26 15 07 01 E8 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 FC 00 00 00 F4 03 04 00 28 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 88 02 00 35 04 06 00 06 A6 52 AA 77 38 AF 07 DE B6 16 41 A3 1A [17:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6A 1B 47 00 D2 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FD 88 02 00 F4 03 04 00 96 39 16 67 B6 04 01 00 00 39 8A 2E 99 92 78 B0 D6 [17:44:55]CommunicateWithHost err = 0 [17:44:55]CheckOFDResponse [17:44:55]1017 (14) - 77093643461234 [17:44:55]1041 (16) - 0000000000871759 [17:44:55]1040 (4) - 166141 [17:44:55]1012 (4) - 21.10.2024 11:23 [17:44:55]1206 (1) - 0 [17:44:55]OFD Sender: Remove packet 166141 [17:44:55]ProducePacketName [17:44:55]name=ofd_packets/00166141 [17:44:55]NVStorageDeleteData [17:44:55]Write to MH i2c: 01 00 00 18 73 8B [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 07 00 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 07 00 18 73 00 00 00 00 00 CE 0C 6C [17:44:55]RasterBufferAndPrint [17:44:55]line [17:44:55]line [17:44:55]line [17:44:55]line [17:44:55]line [17:44:55]written 0, free lines is 3285 [17:44:55]MH_Cut [17:44:55]Write to MH i2c: D1 01 00 1F 73 01 64 [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: D1 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: D1 01 00 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: D1 01 00 1F 73 00 63 [17:44:55]Write to MH i2c: 01 00 00 20 73 93 [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:56]OFD Sender: No OFD packet to send [17:44:56]*** Cut start [17:44:56]*** Partial cut [17:44:56]*** CUTSNS_PIN = 1 [17:44:56]*** CUTSNS_PIN = 0 [17:44:56]*** Brake cut motor [17:44:57]Read from MH i2c: 01 [17:44:57]MH_I2C_Read... [17:44:57]*** Stop cut motor [17:44:57]*** Cut end [17:44:57]Read from MH i2c: 01 07 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: 01 07 00 20 73 00 00 00 00 00 FF 0F A8 [17:44:57]process_action close_receipt done [17:44:57]requested_data is exist [17:44:57]produce_requested_data [17:44:57]requested_item fm.sn is exist - process it [17:44:57]wFMCommunicate request_size=4 [17:44:57]MH_SAM_APDU [17:44:57]CAPDU: 80 11 00 00 [17:44:57]Write to MH i2c: E2 08 00 21 73 80 11 00 00 00 00 00 00 0E [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 17 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 17 00 21 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [17:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:44:57]wFMCommunicate OK [17:44:57]requested_item fd.num is exist - process it [17:44:57]SAM_PROTO_GetFieldsCounters [17:44:57]wFMCommunicate request_size=4 [17:44:57]MH_SAM_APDU [17:44:57]CAPDU: 80 13 00 00 [17:44:57]Write to MH i2c: E2 08 00 22 73 80 13 00 00 00 00 00 00 11 [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 62 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 62 00 22 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:44:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FD 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:57]wFMCommunicate OK [17:44:57]SAM_PROTO_GetFieldsCounters done [17:44:57]requested_item shift.num is exist - process it [17:44:57]requested_item shift.opened is exist - process it [17:44:57]req_shift_opened [17:44:57]FM_GetShiftState [17:44:57]SAM_PROTO_GetShiftState [17:44:57]wFMCommunicate request_size=4 [17:44:57]MH_SAM_APDU [17:44:57]CAPDU: 80 13 01 00 [17:44:57]Write to MH i2c: E2 08 00 23 73 80 13 01 00 00 00 00 00 13 [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 0E 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 0E 00 23 73 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1C [17:44:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:44:57]wFMCommunicate OK [17:44:57]SAM_PROTO_GetShiftState done [17:44:57]FM_GetShiftState done [17:44:57]req_shift_opened done [17:44:57]requested_item shift.open_date is exist - process it [17:44:57]req_shift_open_date [17:44:57]req_shift_open_date done [17:44:57]produce_requested_data done [17:44:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166141,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:44:57]process_action_free close_receipt [17:44:57]json_value_free [17:44:57]json_value_free done [17:44:57]process_json_proto returns [17:44:57]Send response to host [17:44:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166141,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:44:57]free response buf [17:44:57]execute_script done [17:44:57]execute_script returns [17:44:57]free content buf [17:44:57]Sock 6.Close socket [17:44:57]Sock 6.Thread stoped [17:44:57]accept exits with 5 [17:44:57]New connection [17:44:57]New thread 3066920292 created [17:44:57]Thread 3066776932 joined [17:44:57]Waiting for new connection... [17:44:57] Sock 5.Parse request [17:44:57]Sock 5.Check first char [17:44:57]Sock 5.First char is OK [17:44:57]request: POST /json_proto HTTP/1.0 [17:44:57]Method: POST [17:44:57]URL: /json_proto [17:44:57]Method is POST - this is cgi request [17:44:57]url: /json_proto [17:44:57]query_string will be loaded in cgi processing [17:44:57]execute_cgi json_proto POST (null) [17:44:57]execute_cgi path=json_proto method=POST [17:44:57]POST find Content-Length [17:44:57]Host: 172.17.53.195:8080 [17:44:57]Content-Length: 676 [17:44:57]Content-Type: application/json [17:44:57] [17:44:57]POST finish read [17:44:57]Found Content-Length = 676 [17:44:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:57]execute_script... [17:44: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)220712", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:57]POST & json_proto [17:44:57]process_json_proto [17:44:57]json parsed OK: [17:44:57]protocol is kg_v1.0 [17:44:57]action value=close_receipt [17:44:57]process_action close_receipt [17:44:57]cmd_close_receipt [17:44:57]MH_GetDate [17:44:57]Write to MH i2c: F0 00 00 24 73 86 [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: F0 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: F0 09 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: F0 09 00 24 73 00 2D 93 16 67 21 48 4A 65 E4 [17:44:57]GetLastDocTimeStamp 1729532712 [17:44:57]current date 1729532717 [17:44:57]FM_GetShiftState [17:44:57]SAM_PROTO_GetShiftState [17:44:57]wFMCommunicate request_size=4 [17:44:57]MH_SAM_APDU [17:44:57]CAPDU: 80 13 01 00 [17:44:57]Write to MH i2c: E2 08 00 25 73 80 13 01 00 00 00 00 00 15 [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 0E 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 0E 00 25 73 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1E [17:44:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:44:57]wFMCommunicate OK [17:44:57]SAM_PROTO_GetShiftState done [17:44:57]FM_GetShiftState done [17:44:57]opened in 1729470944 [17:44:57]opened+sec_in_day 1729557344 [17:44:57]quantity*price = 99974 [17:44:57]sum+1 = 99975 [17:44:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 253 21.10.2024 17:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166142 ФПД: 11738309294251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166142&fm=11738309294251&tin=02508201610067®Number=0000000000091764&sum=99900 [17:44:58]StoreToDocumentArchive [17:44:58]shift 535 fd 166142 [17:44:58]save to /storage/0535/doc_00166142 [17:44:58]save last doc name /storage/0535/doc_00166142 to /storage/kkm_last_doc_name [17:44:58]save OK [17:44:58]Clear old archive folders... [17:44:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:44:58]tlvbuf is 0164B470 [17:44:58]SAM_PROTO_ClearQueue [17:44:58]wFMCommunicate request_size=4 [17:44:58]MH_SAM_APDU [17:44:58]CAPDU: 80 09 00 00 [17:44:58]Write to MH i2c: E2 08 00 32 73 80 09 00 00 00 00 00 00 17 [17:44:58]Write i2c OK [17:44:58]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 32 73 00 90 00 19 [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 33 73 80 0D 01 02 00 00 00 00 1F [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 0D 01 02... 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 33 73 00 90 00 1A [17:44:59]RAPDU: 90 00 [17:44:59]wFMCommunicate OK [17:44:59]wFMCommunicate request_size=255 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2D 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 88 02 00 35 04 06 00 0A AD 09 C1 [17:44:59]Write to MH i2c: E2 02 01 34 73 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2D 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 88 02 00 35 04 06 00 0A AD 09 C1 00 00 E0 [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 0D 02 02... 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 34 73 00 90 00 1B [17:44:59]RAPDU: 90 00 [17:44:59]wFMCommunicate OK [17:44:59]wFMCommunicate request_size=7 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 0D 02 02 02 78 AB [17:44:59]Write to MH i2c: E2 0A 00 35 73 80 0D 02 02 02 00 78 AB 00 00 49 [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 0D 02 02... 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 35 73 00 90 00 1C [17:44:59]RAPDU: 90 00 [17:44:59]wFMCommunicate OK [17:44:59]wFMCommunicate request_size=4 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 0D 03 02 [17:44:59]Write to MH i2c: E2 08 00 36 73 80 0D 03 02 00 00 00 00 24 [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:59]Read from MH i2c: E2 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 0B 00 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 0B 00 36 73 00 9C DA 50 98 79 C8 CC 45 90 00 D5 [17:44:59]RAPDU: 9C DA 50 98 79 C8 CC 45 90 00 [17:44:59]wFMCommunicate OK [17:44:59]SAM_PROTO_SignData done [17:44:59]FM_MakeSignedData done [17:44:59]CreateOFDProtocolMessage [17:44:59]wFMCommunicate request_size=4 [17:44:59]MH_SAM_APDU [17:44:59]CAPDU: 80 11 00 00 [17:44:59]Write to MH i2c: E2 08 00 37 73 80 11 00 00 00 00 00 00 24 [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:59]Read from MH i2c: E2 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 17 00 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: E2 17 00 37 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7C [17:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:44:59]wFMCommunicate OK [17:44:59]CreateOFDProtocolMessage done [17:44:59]OFDSenderStorePacket 166142 [17:44:59]StoreOFDPacket docnum=166142 [17:44:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 82 87 04 01 83 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2D 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 88 02 00 35 04 06 00 0A AD 09 C1 78 AB 9C DA 50 98 79 C8 CC 45 [17:44:59]CheckFolder [17:44:59]dirname=/storage/ofd_packets [17:44:59]CheckFolder done [17:44:59]ProducePacketName [17:44:59]name=ofd_packets/00166142 [17:44:59]NVStorageSaveData ofd_packets/00166142 [17:44:59]File name is /storage/ofd_packets/00166142 [17:44:59]Write 298 bytes [17:44:59]NVStorageSaveData done [17:44:59]OFDSenderStorePacket done [17:44:59]KKMCreateOFDPacket done [17:44:59]NVStorageSaveData kkm_last_timestamp [17:44:59]File name is /storage/kkm_last_timestamp [17:44:59]Write 4 bytes [17:44:59]NVStorageSaveData done [17:44:59]ExternCall_PrintAddStr [17:44:59]wPrintStart [17:44:59]Write to MH i2c: 01 00 00 38 73 AB [17:44:59]Write i2c OK [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: 01 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: 01 07 00 [17:44:59]MH_I2C_Read... [17:44:59]Read from MH i2c: 01 07 00 38 73 00 00 00 00 00 FF 0F C0 [17:45:00]RasterBufferAndPrint [17:45:00]line Счет N : (1)220712 [17:45:00]line ИНН: 02508201610067 [17:45:00]line Контрольно-Кассовый Чек [17:45:00]line ПРОДАЖА [17:45:00]line ТРК (МРК, ГНК) : 41 [17:45:00]line Товар: 2710194210 [17:45:00]line ДТ-К-5 [17:45:00]line 13.120 * 76.20 [17:45:00]line = 999.74 [17:45:00]line НДС 12% НСП 1% [17:45:00]line > о реализуемом товаре [17:45:00]line ОКРУГЛЕНИЕ: -0.74 [17:45:00]line ИТОГО: 999.00 [17:45:00]line Внесено: 1000.00 [17:45:00]line СДАЧА: 1.00 [17:45:00]line НСП 1% : 8.85 [17:45:00]line НДС 12% : 106.17 [17:45:00]line Наличными: 999.00 [17:45:00]line Безнал.: 0.00 [17:45:00]line Место: АЗС № 161 "Партнер Нефть" [17:45:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:45:00]line СНО: Общий режим [17:45:00]line Чек 253 21.10.2024 17:45 [17:45:00]line Смена: 535 ФФД: 1.0 [17:45:00]line ЗНМ: 0300000104 [17:45:00]line РНМ: 0000000000091764 [17:45:00]line Версия ККМ: 001 [17:45:00]line ФМ: 0000000000871759 [17:45:00]line ФД: 166142 [17:45:00]line ФПД: 11738309294251 [17:45:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166142&fm=11738309294251&tin=02508201610067®Number=0000000000091764&sum=99900 [17:45:00]OFD Sender: Processing packet 166142 [packets to send 48, broken 47] [17:45:00]ProducePacketName [17:45:00]name=ofd_packets/00166142 [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=7 [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 35 39 0C 01 00 00 82 87 04 01 83 FC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 2D 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 88 02 00 35 04 06 00 0A AD 09 C1 78 AB 9C DA 50 98 79 C8 CC 45 [17:45:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4B FF 47 00 AF 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FE 88 02 00 F4 03 04 00 9B 39 16 67 B6 04 01 00 00 7F 89 13 CB 9E 2B 5D 63 [17:45:00]CommunicateWithHost err = 0 [17:45:00]CheckOFDResponse [17:45:00]1017 (14) - 77093643461234 [17:45:00]1041 (16) - 0000000000871759 [17:45:00]1040 (4) - 166142 [17:45:00]1012 (4) - 21.10.2024 11:23 [17:45:00]1206 (1) - 0 [17:45:00]OFD Sender: Remove packet 166142 [17:45:00]ProducePacketName [17:45:00]name=ofd_packets/00166142 [17:45:00]NVStorageDeleteData [17:45:00]Write to MH i2c: 01 00 00 63 73 D6 [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 63 73 00 00 00 00 00 E2 0C CB [17:45:00]RasterBufferAndPrint [17:45:00]line [17:45:00]line [17:45:00]line [17:45:00]line [17:45:00]line [17:45:00]written 0, free lines is 3310 [17:45:00]MH_Cut [17:45:00]Write to MH i2c: D1 01 00 6A 73 01 AF [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: D1 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: D1 01 00 [17:45:00]MH_I2C_Read... [17:45:00]Read from MH i2c: D1 01 00 6A 73 00 AE [17:45:00]Write to MH i2c: 01 00 00 6B 73 DE [17:45:00]Write i2c OK [17:45:00]MH_I2C_Read... [17:45:00]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:01]*** Brake cut motor [17:45:01]Read from MH i2c: 01 [17:45:01]MH_I2C_Read... [17:45:01]*** Stop cut motor [17:45:01]*** Cut end [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 6B 73 00 00 00 00 00 FF 0F F3 [17:45:01]process_action close_receipt done [17:45:01]requested_data is exist [17:45:01]produce_requested_data [17:45:01]requested_item fm.sn is exist - process it [17:45:01]wFMCommunicate request_size=4 [17:45:01]MH_SAM_APDU [17:45:01]CAPDU: 80 11 00 00 [17:45:01]Write to MH i2c: E2 08 00 6C 73 80 11 00 00 00 00 00 00 59 [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 6C 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [17:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 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 6D 73 80 13 00 00 00 00 00 00 5C [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 6D 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FE 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 6E 73 80 13 01 00 00 00 00 00 5E [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 6E 73 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 67 [17:45:02]RAPDU: 09 00 01 E0 A1 15 67 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":"0000000000871759","fd.num":166142,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [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":"0000000000871759","fd.num":166142,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [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 5.Close socket [17:45:02]Sock 5.Thread stoped [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:46]OFD Sender: No OFD packet to send [17:47:51]OFD Sender: No OFD packet to send [17:47:56]OFD Sender: No OFD packet to send [17:48:01]OFD Sender: No OFD packet to send [17:48:06]OFD Sender: No OFD packet to send [17:48:11]OFD Sender: No OFD packet to send [17:48:16]OFD Sender: No OFD packet to send [17:48:16]accept exits with 6 [17:48:16]New connection [17:48:16]New thread 3066776932 created [17:48:16]Thread 3066920292 joined [17:48:16]Waiting for new connection... [17:48:16] Sock 6.Parse request [17:48:16]Sock 6.Check first char [17:48:16]Sock 6.First char is OK [17:48:16]request: POST /json_proto HTTP/1.0 [17:48:16]Method: POST [17:48:16]URL: /json_proto [17:48:16]Method is POST - this is cgi request [17:48:16]url: /json_proto [17:48:16]query_string will be loaded in cgi processing [17:48:16]execute_cgi json_proto POST (null) [17:48:16]execute_cgi path=json_proto method=POST [17:48:16]POST find Content-Length [17:48:16]Host: 172.17.53.195:8080 [17:48:16]Content-Length: 769 [17:48:16]Content-Type: application/json [17:48:16] [17:48:16]POST finish read [17:48:16]Found Content-Length = 769 [17:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:16]execute_script... [17:48:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:16]POST & json_proto [17:48:16]process_json_proto [17:48:16]json parsed OK: [17:48:16]protocol is kg_v1.0 [17:48:16]action value=close_receipt [17:48:16]process_action close_receipt [17:48:16]cmd_close_receipt [17:48:16]MH_GetDate [17:48:16]Write to MH i2c: F0 00 00 6F 73 D1 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: F0 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: F0 09 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: F0 09 00 6F 73 00 F3 93 16 67 21 48 4A 65 F5 [17:48:16]GetLastDocTimeStamp 1729532717 [17:48:16]current date 1729532915 [17:48:16]FM_GetShiftState [17:48:16]SAM_PROTO_GetShiftState [17:48:16]wFMCommunicate request_size=4 [17:48:16]MH_SAM_APDU [17:48:16]CAPDU: 80 13 01 00 [17:48:16]Write to MH i2c: E2 08 00 70 73 80 13 01 00 00 00 00 00 60 [17:48:16]Write i2c OK [17:48:16]MH_I2C_Read... [17:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:16]Read from MH i2c: E2 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0E 00 [17:48:16]MH_I2C_Read... [17:48:16]Read from MH i2c: E2 0E 00 70 73 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 69 [17:48:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:48:16]wFMCommunicate OK [17:48:16]SAM_PROTO_GetShiftState done [17:48:16]FM_GetShiftState done [17:48:16]opened in 1729470944 [17:48:16]opened+sec_in_day 1729557344 [17:48:16]quantity*price = 200043 [17:48:16]sum+1 = 200044 [17:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 254 21.10.2024 17:48 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166143 ФПД: 234546188082759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174836&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166143&fm=234546188082759&tin=02508201610067®Number=0000000000091764&sum=200043 [17:48:17]StoreToDocumentArchive [17:48:17]shift 535 fd 166143 [17:48:17]save to /storage/0535/doc_00166143 [17:48:17]save last doc name /storage/0535/doc_00166143 to /storage/kkm_last_doc_name [17:48:17]save OK [17:48:17]Clear old archive folders... [17:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:17]tlvbuf is 0163FAE0 [17:48:17]SAM_PROTO_ClearQueue [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 09 00 00 [17:48:17]Write to MH i2c: E2 08 00 7D 73 80 09 00 00 00 00 00 00 62 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 7D 73 00 90 00 64 [17:48:17]RAPDU: 90 00 [17:48:17]wFMCommunicate OK [17:48:17]SAM_PROTO_ClearQueue done [17:48:17]KKMCreateOFDPacket [17:48:17]OFDProtocolAddRootSTLVToBuf [17:48:17]FM_MakeSignedData [17:48:17]FM_MakeSignedData [17:48:17]SAM_PROTO_SignData [17:48:17]wFMCommunicate request_size=4 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 0D 01 02 [17:48:17]Write to MH i2c: E2 08 00 7E 73 80 0D 01 02 00 00 00 00 6A [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:17]Read from MH i2c: E2 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 [17:48:17]MH_I2C_Read... [17:48:17]Read from MH i2c: E2 03 00 7E 73 00 90 00 65 [17:48:17]RAPDU: 90 00 [17:48:17]wFMCommunicate OK [17:48:17]wFMCommunicate request_size=255 [17:48:17]MH_SAM_APDU [17:48:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 F4 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 88 02 00 35 04 06 00 D5 [17:48:17]Write to MH i2c: E2 02 01 7F 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 F4 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 88 02 00 35 04 06 00 D5 00 00 77 [17:48:17]Write i2c OK [17:48:17]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 03 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 03 00 7F 73 00 90 00 66 [17:48:18]RAPDU: 90 00 [17:48:18]wFMCommunicate OK [17:48:18]wFMCommunicate request_size=10 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 0D 02 02 05 51 8A 39 5E 47 [17:48:18]Write to MH i2c: E2 0D 00 80 73 80 0D 02 02 05 00 51 8A 39 5E 47 00 00 30 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 03 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 03 00 80 73 00 90 00 67 [17:48:18]RAPDU: 90 00 [17:48:18]wFMCommunicate OK [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 0D 03 02 [17:48:18]Write to MH i2c: E2 08 00 81 73 80 0D 03 02 00 00 00 00 6F [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 0B 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 0B 00 81 73 00 28 FD 10 54 35 E3 E6 80 90 00 77 [17:48:18]RAPDU: 28 FD 10 54 35 E3 E6 80 90 00 [17:48:18]wFMCommunicate OK [17:48:18]SAM_PROTO_SignData done [17:48:18]FM_MakeSignedData done [17:48:18]CreateOFDProtocolMessage [17:48:18]wFMCommunicate request_size=4 [17:48:18]MH_SAM_APDU [17:48:18]CAPDU: 80 11 00 00 [17:48:18]Write to MH i2c: E2 08 00 82 73 80 11 00 00 00 00 00 00 6F [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:18]Read from MH i2c: E2 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: E2 17 00 82 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C7 [17:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:18]wFMCommunicate OK [17:48:18]CreateOFDProtocolMessage done [17:48:18]OFDSenderStorePacket 166143 [17:48:18]StoreOFDPacket docnum=166143 [17:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE 08 07 01 45 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 F4 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 88 02 00 35 04 06 00 D5 51 8A 39 5E 47 28 FD 10 54 35 E3 E6 80 [17:48:18]CheckFolder [17:48:18]dirname=/storage/ofd_packets [17:48:18]CheckFolder done [17:48:18]ProducePacketName [17:48:18]name=ofd_packets/00166143 [17:48:18]NVStorageSaveData ofd_packets/00166143 [17:48:18]File name is /storage/ofd_packets/00166143 [17:48:18]Write 301 bytes [17:48:18]NVStorageSaveData done [17:48:18]OFDSenderStorePacket done [17:48:18]KKMCreateOFDPacket done [17:48:18]NVStorageSaveData kkm_last_timestamp [17:48:18]File name is /storage/kkm_last_timestamp [17:48:18]Write 4 bytes [17:48:18]NVStorageSaveData done [17:48:18]ExternCall_PrintAddStr [17:48:18]wPrintStart [17:48:18]Write to MH i2c: 01 00 00 83 73 F6 [17:48:18]Write i2c OK [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 07 00 [17:48:18]MH_I2C_Read... [17:48:18]Read from MH i2c: 01 07 00 83 73 00 00 00 00 00 FF 0F 0B [17:48:18]RasterBufferAndPrint [17:48:18]line Счет N : (1)220714 [17:48:18]line ИНН: 02508201610067 [17:48:18]line Контрольно-Кассовый Чек [17:48:18]line ПРОДАЖА [17:48:18]line ТРК (МРК, ГНК) : 14 [17:48:18]line Товар: 2710124500 [17:48:18]line Аи-95-К-5 [17:48:18]line 26.960 * 74.20 [17:48:18]line = 2000.43 [17:48:18]line НДС 12% НСП 1% [17:48:18]line > о реализуемом товаре [17:48:18]line ИТОГО: 2000.43 [17:48:18]line НСП 1% : 17.70 [17:48:18]line НДС 12% : 212.43 [17:48:18]line Наличными: 0.00 [17:48:18]line Безнал.: 2000.43 [17:48:18]line Место: АЗС № 161 "Партнер Нефть" [17:48:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:48:18]line СНО: Общий режим [17:48:18]line Чек 254 21.10.2024 17:48 [17:48:18]line Смена: 535 ФФД: 1.0 [17:48:18]line ЗНМ: 0300000104 [17:48:18]line РНМ: 0000000000091764 [17:48:18]line Версия ККМ: 001 [17:48:18]line Платежная система: Mbank [17:48:18]line ФМ: 0000000000871759 [17:48:18]line ФД: 166143 [17:48:18]line ФПД: 234546188082759 [17:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174836&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166143&fm=234546188082759&tin=02508201610067®Number=0000000000091764&sum=200043 [17:48:18]OFD Sender: Processing packet 166143 [packets to send 48, broken 47] [17:48:18]ProducePacketName [17:48:18]name=ofd_packets/00166143 [17:48:18]OFD Sender: To server: pG, [17:48:18]CommunicateWithHost lk.salyk.kg:30040 [17:48:18]ConnectInit lk.salyk.kg [17:48:18]written 0, free lines is 4095 [17:48:18]Connected sock=7 [17:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FE 08 07 01 45 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 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 F4 93 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 88 02 00 35 04 06 00 D5 51 8A 39 5E 47 28 FD 10 54 35 E3 E6 80 [17:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 21 EE 47 00 9F E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 FF 88 02 00 F4 03 04 00 61 3A 16 67 B6 04 01 00 00 A2 D3 1C 90 D1 89 A3 23 [17:48:18]CommunicateWithHost err = 0 [17:48:18]CheckOFDResponse [17:48:18]1017 (14) - 77093643461234 [17:48:18]1041 (16) - 0000000000871759 [17:48:18]1040 (4) - 166143 [17:48:18]1012 (4) - 21.10.2024 11:26 [17:48:18]1206 (1) - 0 [17:48:18]OFD Sender: Remove packet 166143 [17:48:18]ProducePacketName [17:48:18]name=ofd_packets/00166143 [17:48:18]NVStorageDeleteData [17:48:19]Write to MH i2c: 01 00 00 AC 73 1F [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: 01 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: 01 07 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: 01 07 00 AC 73 00 00 00 00 00 01 0D 34 [17:48:19]RasterBufferAndPrint [17:48:19]line [17:48:19]line [17:48:19]line [17:48:19]line [17:48:19]line [17:48:19]written 0, free lines is 3336 [17:48:19]MH_Cut [17:48:19]Write to MH i2c: D1 01 00 B3 73 01 F8 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: D1 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: D1 01 00 [17:48:19]MH_I2C_Read... [17:48:19]Read from MH i2c: D1 01 00 B3 73 00 F7 [17:48:19]Write to MH i2c: 01 00 00 B4 73 27 [17:48:19]Write i2c OK [17:48:19]MH_I2C_Read... [17:48:19]OFD Sender: No OFD packet to send [17:48:19]*** Cut start [17:48:19]*** Partial cut [17:48:19]*** CUTSNS_PIN = 1 [17:48:19]*** CUTSNS_PIN = 0 [17:48:20]*** Brake cut motor [17:48:20]Read from MH i2c: 01 [17:48:20]MH_I2C_Read... [17:48:20]*** Stop cut motor [17:48:20]*** Cut end [17:48:20]Read from MH i2c: 01 07 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: 01 07 00 B4 73 00 00 00 00 00 FF 0F 3C [17:48:20]process_action close_receipt done [17:48:20]requested_data is exist [17:48:20]produce_requested_data [17:48:20]requested_item fm.sn is exist - process it [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 11 00 00 [17:48:20]Write to MH i2c: E2 08 00 B5 73 80 11 00 00 00 00 00 00 A2 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 17 00 B5 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [17:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:20]wFMCommunicate OK [17:48:20]requested_item fd.num is exist - process it [17:48:20]SAM_PROTO_GetFieldsCounters [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 13 00 00 [17:48:20]Write to MH i2c: E2 08 00 B6 73 80 13 00 00 00 00 00 00 A5 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 62 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 62 00 B6 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [17:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 FF 88 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:20]wFMCommunicate OK [17:48:20]SAM_PROTO_GetFieldsCounters done [17:48:20]requested_item shift.num is exist - process it [17:48:20]requested_item shift.opened is exist - process it [17:48:20]req_shift_opened [17:48:20]FM_GetShiftState [17:48:20]SAM_PROTO_GetShiftState [17:48:20]wFMCommunicate request_size=4 [17:48:20]MH_SAM_APDU [17:48:20]CAPDU: 80 13 01 00 [17:48:20]Write to MH i2c: E2 08 00 B7 73 80 13 01 00 00 00 00 00 A7 [17:48:20]Write i2c OK [17:48:20]MH_I2C_Read... [17:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:20]Read from MH i2c: E2 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 0E 00 [17:48:20]MH_I2C_Read... [17:48:20]Read from MH i2c: E2 0E 00 B7 73 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B0 [17:48:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:48:20]wFMCommunicate OK [17:48:20]SAM_PROTO_GetShiftState done [17:48:20]FM_GetShiftState done [17:48:20]req_shift_opened done [17:48:20]requested_item shift.open_date is exist - process it [17:48:20]req_shift_open_date [17:48:20]req_shift_open_date done [17:48:20]produce_requested_data done [17:48:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166143,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:48:20]process_action_free close_receipt [17:48:20]json_value_free [17:48:20]json_value_free done [17:48:20]process_json_proto returns [17:48:20]Send response to host [17:48:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166143,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:48:20]free response buf [17:48:20]execute_script done [17:48:20]execute_script returns [17:48:20]free content buf [17:48:20]Sock 6.Close socket [17:48:20]Sock 6.Thread stoped [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:52]accept exits with 5 [17:48:52]New connection [17:48:52]New thread 3066920292 created [17:48:52]Thread 3066776932 joined [17:48:52]Waiting for new connection... [17:48:52] Sock 5.Parse request [17:48:52]Sock 5.Check first char [17:48:52]Sock 5.First char is OK [17:48:52]request: POST /json_proto HTTP/1.0 [17:48:52]Method: POST [17:48:52]URL: /json_proto [17:48:52]Method is POST - this is cgi request [17:48:52]url: /json_proto [17:48:52]query_string will be loaded in cgi processing [17:48:52]execute_cgi json_proto POST (null) [17:48:52]execute_cgi path=json_proto method=POST [17:48:52]POST find Content-Length [17:48:52]Host: 172.17.53.195:8080 [17:48:52]Content-Length: 674 [17:48:52]Content-Type: application/json [17:48:52] [17:48:52]POST finish read [17:48:52]Found Content-Length = 674 [17:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:52]execute_script... [17:48: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)220715", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:52]POST & json_proto [17:48:52]process_json_proto [17:48:52]json parsed OK: [17:48:52]protocol is kg_v1.0 [17:48:52]action value=close_receipt [17:48:52]process_action close_receipt [17:48:52]cmd_close_receipt [17:48:52]MH_GetDate [17:48:52]Write to MH i2c: F0 00 00 B8 73 1A [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: F0 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: F0 09 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: F0 09 00 B8 73 00 18 94 16 67 21 48 4A 65 64 [17:48:52]GetLastDocTimeStamp 1729532916 [17:48:52]current date 1729532952 [17:48:52]FM_GetShiftState [17:48:52]SAM_PROTO_GetShiftState [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 13 01 00 [17:48:52]Write to MH i2c: E2 08 00 B9 73 80 13 01 00 00 00 00 00 A9 [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 0E 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 0E 00 B9 73 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B2 [17:48:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:48:52]wFMCommunicate OK [17:48:52]SAM_PROTO_GetShiftState done [17:48:52]FM_GetShiftState done [17:48:52]opened in 1729470944 [17:48:52]opened+sec_in_day 1729557344 [17:48:52]quantity*price = 70027 [17:48:52]sum+1 = 70029 [17:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 255 21.10.2024 17:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166144 ФПД: 102667149842093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166144&fm=102667149842093&tin=02508201610067®Number=0000000000091764&sum=70000 [17:48:54]StoreToDocumentArchive [17:48:54]shift 535 fd 166144 [17:48:54]save to /storage/0535/doc_00166144 [17:48:54]save last doc name /storage/0535/doc_00166144 to /storage/kkm_last_doc_name [17:48:54]save OK [17:48:54]Clear old archive folders... [17:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:48:54]tlvbuf is 018919C0 [17:48:54]SAM_PROTO_ClearQueue [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 09 00 00 [17:48:54]Write to MH i2c: E2 08 00 C6 73 80 09 00 00 00 00 00 00 AB [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 C6 73 00 90 00 AD [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]SAM_PROTO_ClearQueue done [17:48:54]KKMCreateOFDPacket [17:48:54]OFDProtocolAddRootSTLVToBuf [17:48:54]FM_MakeSignedData [17:48:54]FM_MakeSignedData [17:48:54]SAM_PROTO_SignData [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 01 02 [17:48:54]Write to MH i2c: E2 08 00 C7 73 80 0D 01 02 00 00 00 00 B3 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 C7 73 00 90 00 AE [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=255 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 18 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 89 02 00 35 04 06 00 5D 60 0E FF [17:48:54]Write to MH i2c: E2 02 01 C8 73 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 18 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 89 02 00 35 04 06 00 5D 60 0E FF 00 00 D1 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 C8 73 00 90 00 AF [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=7 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 02 02 02 16 AD [17:48:54]Write to MH i2c: E2 0A 00 C9 73 80 0D 02 02 02 00 16 AD 00 00 7D [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 03 00 C9 73 00 90 00 B0 [17:48:54]RAPDU: 90 00 [17:48:54]wFMCommunicate OK [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 0D 03 02 [17:48:54]Write to MH i2c: E2 08 00 CA 73 80 0D 03 02 00 00 00 00 B8 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:54]OFD Sender: No OFD packet to send [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 0B 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 0B 00 CA 73 00 24 BB 07 59 82 B6 A6 A9 90 00 7F [17:48:54]RAPDU: 24 BB 07 59 82 B6 A6 A9 90 00 [17:48:54]wFMCommunicate OK [17:48:54]SAM_PROTO_SignData done [17:48:54]FM_MakeSignedData done [17:48:54]CreateOFDProtocolMessage [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 11 00 00 [17:48:54]Write to MH i2c: E2 08 00 CB 73 80 11 00 00 00 00 00 00 B8 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 17 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 17 00 CB 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [17:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:54]wFMCommunicate OK [17:48:54]CreateOFDProtocolMessage done [17:48:54]OFDSenderStorePacket 166144 [17:48:54]StoreOFDPacket docnum=166144 [17:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BB 2D 04 01 B3 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 18 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 89 02 00 35 04 06 00 5D 60 0E FF 16 AD 24 BB 07 59 82 B6 A6 A9 [17:48:54]CheckFolder [17:48:54]dirname=/storage/ofd_packets [17:48:54]CheckFolder done [17:48:54]ProducePacketName [17:48:54]name=ofd_packets/00166144 [17:48:54]NVStorageSaveData ofd_packets/00166144 [17:48:54]File name is /storage/ofd_packets/00166144 [17:48:54]Write 298 bytes [17:48:54]NVStorageSaveData done [17:48:54]OFDSenderStorePacket done [17:48:54]KKMCreateOFDPacket done [17:48:54]NVStorageSaveData kkm_last_timestamp [17:48:54]File name is /storage/kkm_last_timestamp [17:48:54]Write 4 bytes [17:48:54]NVStorageSaveData done [17:48:54]ExternCall_PrintAddStr [17:48:54]wPrintStart [17:48:54]Write to MH i2c: 01 00 00 CC 73 3F [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 CC 73 00 00 00 00 00 FF 0F 54 [17:48:54]RasterBufferAndPrint [17:48:54]line Счет N : (1)220715 [17:48:54]line ИНН: 02508201610067 [17:48:54]line Контрольно-Кассовый Чек [17:48:54]line ПРОДАЖА [17:48:54]line ТРК (МРК, ГНК) : 41 [17:48:54]line Товар: 2710194210 [17:48:54]line ДТ-К-5 [17:48:54]line 9.190 * 76.20 [17:48:54]line = 700.28 [17:48:54]line НДС 12% НСП 1% [17:48:54]line > о реализуемом товаре [17:48:54]line ОКРУГЛЕНИЕ: -0.28 [17:48:54]line ИТОГО: 700.00 [17:48:54]line Внесено: 700.00 [17:48:54]line СДАЧА: 0.00 [17:48:54]line НСП 1% : 6.20 [17:48:54]line НДС 12% : 74.37 [17:48:54]line Наличными: 700.00 [17:48:54]line Безнал.: 0.00 [17:48:54]line Место: АЗС № 161 "Партнер Нефть" [17:48:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:48:54]line СНО: Общий режим [17:48:54]line Чек 255 21.10.2024 17:49 [17:48:54]line Смена: 535 ФФД: 1.0 [17:48:54]line ЗНМ: 0300000104 [17:48:54]line РНМ: 0000000000091764 [17:48:54]line Версия ККМ: 001 [17:48:54]line ФМ: 0000000000871759 [17:48:54]line ФД: 166144 [17:48:54]line ФПД: 102667149842093 [17:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T174912&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166144&fm=102667149842093&tin=02508201610067®Number=0000000000091764&sum=70000 [17:48:54]OFD Sender: Processing packet 166144 [packets to send 48, broken 47] [17:48:54]ProducePacketName [17:48:54]name=ofd_packets/00166144 [17:48:54]OFD Sender: To server: pG, [17:48:54]CommunicateWithHost lk.salyk.kg:30040 [17:48:54]ConnectInit lk.salyk.kg [17:48:54]written 0, free lines is 4095 [17:48:55]Connected sock=7 [17:48:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BB 2D 04 01 B3 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 FF 00 00 00 F4 03 04 00 18 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 89 02 00 35 04 06 00 5D 60 0E FF 16 AD 24 BB 07 59 82 B6 A6 A9 [17:48:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 D0 47 00 10 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 00 89 02 00 F4 03 04 00 86 3A 16 67 B6 04 01 00 00 30 ED F3 73 24 D9 C9 82 [17:48:55]CommunicateWithHost err = 0 [17:48:55]CheckOFDResponse [17:48:55]1017 (14) - 77093643461234 [17:48:55]1041 (16) - 0000000000871759 [17:48:55]1040 (4) - 166144 [17:48:55]1012 (4) - 21.10.2024 11:27 [17:48:55]1206 (1) - 0 [17:48:55]OFD Sender: Remove packet 166144 [17:48:55]ProducePacketName [17:48:55]name=ofd_packets/00166144 [17:48:55]NVStorageDeleteData [17:48:55]Write to MH i2c: 01 00 00 F7 73 6A [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 F7 73 00 00 00 00 00 DA 0C 57 [17:48:55]RasterBufferAndPrint [17:48:55]line [17:48:55]line [17:48:55]line [17:48:55]line [17:48:55]line [17:48:55]written 0, free lines is 3300 [17:48:55]MH_Cut [17:48:55]Write to MH i2c: D1 01 00 FE 73 01 43 [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: D1 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: D1 01 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: D1 01 00 FE 73 00 42 [17:48:55]Write to MH i2c: 01 00 00 FF 73 72 [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]OFD Sender: No OFD packet to send [17:48:56]*** Cut start [17:48:56]*** Partial cut [17:48:56]*** CUTSNS_PIN = 1 [17:48:56]*** CUTSNS_PIN = 0 [17:48:56]*** Brake cut motor [17:48:56]Read from MH i2c: 01 [17:48:56]MH_I2C_Read... [17:48:56]*** Stop cut motor [17:48:56]*** Cut end [17:48:56]Read from MH i2c: 01 07 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 07 00 FF 73 00 00 00 00 00 FF 0F 87 [17:48:56]process_action close_receipt done [17:48:56]requested_data is exist [17:48:56]produce_requested_data [17:48:56]requested_item fm.sn is exist - process it [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 11 00 00 [17:48:56]Write to MH i2c: E2 08 00 00 74 80 11 00 00 00 00 00 00 EE [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 00 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 46 [17:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:48:56]wFMCommunicate OK [17:48:56]requested_item fd.num is exist - process it [17:48:56]SAM_PROTO_GetFieldsCounters [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 00 00 [17:48:56]Write to MH i2c: E2 08 00 01 74 80 13 00 00 00 00 00 00 F1 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 62 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 62 00 01 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [17:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 00 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_GetFieldsCounters done [17:48:56]requested_item shift.num is exist - process it [17:48:56]requested_item shift.opened is exist - process it [17:48:56]req_shift_opened [17:48:56]FM_GetShiftState [17:48:56]SAM_PROTO_GetShiftState [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 01 00 [17:48:56]Write to MH i2c: E2 08 00 02 74 80 13 01 00 00 00 00 00 F3 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 02 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FC [17:48:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetShiftState done [17:48:57]FM_GetShiftState done [17:48:57]req_shift_opened done [17:48:57]requested_item shift.open_date is exist - process it [17:48:57]req_shift_open_date [17:48:57]req_shift_open_date done [17:48:57]produce_requested_data done [17:48:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166144,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:48:57]process_action_free close_receipt [17:48:57]json_value_free [17:48:57]json_value_free done [17:48:57]process_json_proto returns [17:48:57]Send response to host [17:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166144,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:48:57]free response buf [17:48:57]execute_script done [17:48:57]execute_script returns [17:48:57]free content buf [17:48:57]Sock 5.Close socket [17:48:57]Sock 5.Thread stoped [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:52]accept exits with 6 [17:50:52]New connection [17:50:52]New thread 3066776932 created [17:50:52]Thread 3066920292 joined [17:50:52]Waiting for new connection... [17:50:52] Sock 6.Parse request [17:50:52]Sock 6.Check first char [17:50:52]Sock 6.First char is OK [17:50:52]request: POST /json_proto HTTP/1.0 [17:50:52]Method: POST [17:50:52]URL: /json_proto [17:50:52]Method is POST - this is cgi request [17:50:52]url: /json_proto [17:50:52]query_string will be loaded in cgi processing [17:50:52]execute_cgi json_proto POST (null) [17:50:52]execute_cgi path=json_proto method=POST [17:50:52]POST find Content-Length [17:50:52]Host: 172.17.53.195:8080 [17:50:52]Content-Length: 676 [17:50:52]Content-Type: application/json [17:50:52] [17:50:52]POST finish read [17:50:52]Found Content-Length = 676 [17:50:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:52]execute_script... [17:50:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:52]POST & json_proto [17:50:52]process_json_proto [17:50:52]json parsed OK: [17:50:52]protocol is kg_v1.0 [17:50:52]action value=close_receipt [17:50:52]process_action close_receipt [17:50:52]cmd_close_receipt [17:50:52]MH_GetDate [17:50:52]Write to MH i2c: F0 00 00 03 74 66 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: F0 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: F0 09 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: F0 09 00 03 74 00 8F 94 16 67 21 48 4A 65 27 [17:50:52]GetLastDocTimeStamp 1729532952 [17:50:52]current date 1729533071 [17:50:52]FM_GetShiftState [17:50:52]SAM_PROTO_GetShiftState [17:50:52]wFMCommunicate request_size=4 [17:50:52]MH_SAM_APDU [17:50:52]CAPDU: 80 13 01 00 [17:50:52]Write to MH i2c: E2 08 00 04 74 80 13 01 00 00 00 00 00 F5 [17:50:52]Write i2c OK [17:50:52]MH_I2C_Read... [17:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:52]Read from MH i2c: E2 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 0E 00 [17:50:52]MH_I2C_Read... [17:50:52]Read from MH i2c: E2 0E 00 04 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FE [17:50:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:50:52]wFMCommunicate OK [17:50:52]SAM_PROTO_GetShiftState done [17:50:52]FM_GetShiftState done [17:50:52]opened in 1729470944 [17:50:52]opened+sec_in_day 1729557344 [17:50:52]quantity*price = 99974 [17:50:52]sum+1 = 99975 [17:50:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 256 21.10.2024 17:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166145 ФПД: 71827944386354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175111&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166145&fm=71827944386354&tin=02508201610067®Number=0000000000091764&sum=99900 [17:50:53]StoreToDocumentArchive [17:50:53]shift 535 fd 166145 [17:50:53]save to /storage/0535/doc_00166145 [17:50:53]save last doc name /storage/0535/doc_00166145 to /storage/kkm_last_doc_name [17:50:53]save OK [17:50:53]Clear old archive folders... [17:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:50:53]tlvbuf is 015ADF80 [17:50:53]SAM_PROTO_ClearQueue [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 09 00 00 [17:50:53]Write to MH i2c: E2 08 00 11 74 80 09 00 00 00 00 00 00 F7 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 11 74 00 90 00 F9 [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_ClearQueue done [17:50:53]KKMCreateOFDPacket [17:50:53]OFDProtocolAddRootSTLVToBuf [17:50:53]FM_MakeSignedData [17:50:53]FM_MakeSignedData [17:50:53]SAM_PROTO_SignData [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 01 02 [17:50:53]Write to MH i2c: E2 08 00 12 74 80 0D 01 02 00 00 00 00 FF [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 12 74 00 90 00 FA [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]wFMCommunicate request_size=255 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8F 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 89 02 00 35 04 06 00 41 53 BF 1C [17:50:53]Write to MH i2c: E2 02 01 13 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8F 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 89 02 00 35 04 06 00 41 53 BF 1C 00 00 19 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 13 74 00 90 00 FB [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]wFMCommunicate request_size=7 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 02 02 02 2F 32 [17:50:53]Write to MH i2c: E2 0A 00 14 74 80 0D 02 02 02 00 2F 32 00 00 67 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 03 00 14 74 00 90 00 FC [17:50:53]RAPDU: 90 00 [17:50:53]wFMCommunicate OK [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 0D 03 02 [17:50:53]Write to MH i2c: E2 08 00 15 74 80 0D 03 02 00 00 00 00 04 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:53]Read from MH i2c: E2 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0B 00 [17:50:53]MH_I2C_Read... [17:50:53]Read from MH i2c: E2 0B 00 15 74 00 A4 11 62 86 CB 7E CC 2A 90 00 E1 [17:50:53]RAPDU: A4 11 62 86 CB 7E CC 2A 90 00 [17:50:53]wFMCommunicate OK [17:50:53]SAM_PROTO_SignData done [17:50:53]FM_MakeSignedData done [17:50:53]CreateOFDProtocolMessage [17:50:53]wFMCommunicate request_size=4 [17:50:53]MH_SAM_APDU [17:50:53]CAPDU: 80 11 00 00 [17:50:53]Write to MH i2c: E2 08 00 16 74 80 11 00 00 00 00 00 00 04 [17:50:53]Write i2c OK [17:50:53]MH_I2C_Read... [17:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:54]Read from MH i2c: E2 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: E2 17 00 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: E2 17 00 16 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [17:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:50:54]wFMCommunicate OK [17:50:54]CreateOFDProtocolMessage done [17:50:54]OFDSenderStorePacket 166145 [17:50:54]StoreOFDPacket docnum=166145 [17:50:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 62 E3 04 01 04 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8F 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 89 02 00 35 04 06 00 41 53 BF 1C 2F 32 A4 11 62 86 CB 7E CC 2A [17:50:54]CheckFolder [17:50:54]dirname=/storage/ofd_packets [17:50:54]CheckFolder done [17:50:54]ProducePacketName [17:50:54]name=ofd_packets/00166145 [17:50:54]NVStorageSaveData ofd_packets/00166145 [17:50:54]File name is /storage/ofd_packets/00166145 [17:50:54]Write 298 bytes [17:50:54]NVStorageSaveData done [17:50:54]OFDSenderStorePacket done [17:50:54]KKMCreateOFDPacket done [17:50:54]NVStorageSaveData kkm_last_timestamp [17:50:54]File name is /storage/kkm_last_timestamp [17:50:54]Write 4 bytes [17:50:54]NVStorageSaveData done [17:50:54]ExternCall_PrintAddStr [17:50:54]wPrintStart [17:50:54]Write to MH i2c: 01 00 00 17 74 8B [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 07 00 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 07 00 17 74 00 00 00 00 00 FF 0F A0 [17:50:54]RasterBufferAndPrint [17:50:54]line Счет N : (1)220717 [17:50:54]line ИНН: 02508201610067 [17:50:54]line Контрольно-Кассовый Чек [17:50:54]line ПРОДАЖА [17:50:54]line ТРК (МРК, ГНК) : 11 [17:50:54]line Товар: 2710194210 [17:50:54]line ДТ-К-5 [17:50:54]line 13.120 * 76.20 [17:50:54]line = 999.74 [17:50:54]line НДС 12% НСП 1% [17:50:54]line > о реализуемом товаре [17:50:54]line ОКРУГЛЕНИЕ: -0.74 [17:50:54]line ИТОГО: 999.00 [17:50:54]line Внесено: 1000.00 [17:50:54]line СДАЧА: 1.00 [17:50:54]line НСП 1% : 8.85 [17:50:54]line НДС 12% : 106.17 [17:50:54]line Наличными: 999.00 [17:50:54]line Безнал.: 0.00 [17:50:54]line Место: АЗС № 161 "Партнер Нефть" [17:50:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:50:54]line СНО: Общий режим [17:50:54]line Чек 256 21.10.2024 17:51 [17:50:54]line Смена: 535 ФФД: 1.0 [17:50:54]line ЗНМ: 0300000104 [17:50:54]line РНМ: 0000000000091764 [17:50:54]line Версия ККМ: 001 [17:50:54]line ФМ: 0000000000871759 [17:50:54]line ФД: 166145 [17:50:54]line ФПД: 71827944386354 [17:50:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175111&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166145&fm=71827944386354&tin=02508201610067®Number=0000000000091764&sum=99900 [17:50:54]OFD Sender: Processing packet 166145 [packets to send 48, broken 47] [17:50:54]ProducePacketName [17:50:54]name=ofd_packets/00166145 [17:50:54]OFD Sender: To server: pG, [17:50:54]CommunicateWithHost lk.salyk.kg:30040 [17:50:54]ConnectInit lk.salyk.kg [17:50:54]written 0, free lines is 4095 [17:50:54]Connected sock=7 [17:50:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 62 E3 04 01 04 F3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 8F 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 89 02 00 35 04 06 00 41 53 BF 1C 2F 32 A4 11 62 86 CB 7E CC 2A [17:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 44 50 47 00 78 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 01 89 02 00 F4 03 04 00 FD 3A 16 67 B6 04 01 00 00 7D E1 BA EE E4 01 63 1F [17:50:54]CommunicateWithHost err = 0 [17:50:54]CheckOFDResponse [17:50:54]1017 (14) - 77093643461234 [17:50:54]1041 (16) - 0000000000871759 [17:50:54]1040 (4) - 166145 [17:50:54]1012 (4) - 21.10.2024 11:29 [17:50:54]1206 (1) - 0 [17:50:54]OFD Sender: Remove packet 166145 [17:50:54]ProducePacketName [17:50:54]name=ofd_packets/00166145 [17:50:54]NVStorageDeleteData [17:50:54]Write to MH i2c: 01 00 00 42 74 B6 [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 07 00 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: 01 07 00 42 74 00 00 00 00 00 C5 0C 8E [17:50:54]RasterBufferAndPrint [17:50:54]line [17:50:54]line [17:50:54]line [17:50:54]line [17:50:54]line [17:50:54]written 0, free lines is 3275 [17:50:54]MH_Cut [17:50:54]Write to MH i2c: D1 01 00 49 74 01 8F [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: D1 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: D1 01 00 [17:50:54]MH_I2C_Read... [17:50:54]Read from MH i2c: D1 01 00 49 74 00 8E [17:50:54]Write to MH i2c: 01 00 00 4A 74 BE [17:50:54]Write i2c OK [17:50:54]MH_I2C_Read... [17:50:55]OFD Sender: No OFD packet to send [17:50:55]*** Cut start [17:50:55]*** Partial cut [17:50:55]*** CUTSNS_PIN = 1 [17:50:55]*** CUTSNS_PIN = 0 [17:50:55]*** Brake cut motor [17:50:56]Read from MH i2c: 01 [17:50:56]MH_I2C_Read... [17:50:56]*** Stop cut motor [17:50:56]*** Cut end [17:50:56]Read from MH i2c: 01 07 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: 01 07 00 4A 74 00 00 00 00 00 FF 0F D3 [17:50:56]process_action close_receipt done [17:50:56]requested_data is exist [17:50:56]produce_requested_data [17:50:56]requested_item fm.sn is exist - process it [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 11 00 00 [17:50:56]Write to MH i2c: E2 08 00 4B 74 80 11 00 00 00 00 00 00 39 [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 17 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 17 00 4B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [17:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:50:56]wFMCommunicate OK [17:50:56]requested_item fd.num is exist - process it [17:50:56]SAM_PROTO_GetFieldsCounters [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 13 00 00 [17:50:56]Write to MH i2c: E2 08 00 4C 74 80 13 00 00 00 00 00 00 3C [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 62 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 62 00 4C 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:50:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 01 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:56]wFMCommunicate OK [17:50:56]SAM_PROTO_GetFieldsCounters done [17:50:56]requested_item shift.num is exist - process it [17:50:56]requested_item shift.opened is exist - process it [17:50:56]req_shift_opened [17:50:56]FM_GetShiftState [17:50:56]SAM_PROTO_GetShiftState [17:50:56]wFMCommunicate request_size=4 [17:50:56]MH_SAM_APDU [17:50:56]CAPDU: 80 13 01 00 [17:50:56]Write to MH i2c: E2 08 00 4D 74 80 13 01 00 00 00 00 00 3E [17:50:56]Write i2c OK [17:50:56]MH_I2C_Read... [17:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:56]Read from MH i2c: E2 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 0E 00 [17:50:56]MH_I2C_Read... [17:50:56]Read from MH i2c: E2 0E 00 4D 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 47 [17:50:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:50:56]wFMCommunicate OK [17:50:56]SAM_PROTO_GetShiftState done [17:50:56]FM_GetShiftState done [17:50:56]req_shift_opened done [17:50:56]requested_item shift.open_date is exist - process it [17:50:56]req_shift_open_date [17:50:56]req_shift_open_date done [17:50:56]produce_requested_data done [17:50:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166145,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:50:56]process_action_free close_receipt [17:50:56]json_value_free [17:50:56]json_value_free done [17:50:56]process_json_proto returns [17:50:56]Send response to host [17:50:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166145,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:50:56]free response buf [17:50:56]execute_script done [17:50:56]execute_script returns [17:50:56]free content buf [17:50:56]Sock 6.Close socket [17:50:56]Sock 6.Thread stoped [17:50:59]accept exits with 5 [17:50:59]New connection [17:50:59]New thread 3066920292 created [17:50:59]Thread 3066776932 joined [17:50:59]Waiting for new connection... [17:50:59] Sock 5.Parse request [17:50:59]Sock 5.Check first char [17:50:59]Sock 5.First char is OK [17:50:59]request: POST /json_proto HTTP/1.0 [17:50:59]Method: POST [17:50:59]URL: /json_proto [17:50:59]Method is POST - this is cgi request [17:50:59]url: /json_proto [17:50:59]query_string will be loaded in cgi processing [17:50:59]execute_cgi json_proto POST (null) [17:50:59]execute_cgi path=json_proto method=POST [17:50:59]POST find Content-Length [17:50:59]Host: 172.17.53.195:8080 [17:50:59]Content-Length: 674 [17:50:59]Content-Type: application/json [17:50:59] [17:50:59]POST finish read [17:50:59]Found Content-Length = 674 [17:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:59]execute_script... [17:50: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)220716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:59]POST & json_proto [17:50:59]process_json_proto [17:50:59]json parsed OK: [17:50:59]protocol is kg_v1.0 [17:50:59]action value=close_receipt [17:50:59]process_action close_receipt [17:50:59]cmd_close_receipt [17:50:59]MH_GetDate [17:50:59]Write to MH i2c: F0 00 00 4E 74 B1 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: F0 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: F0 09 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: F0 09 00 4E 74 00 96 94 16 67 21 48 4A 65 79 [17:50:59]GetLastDocTimeStamp 1729533071 [17:50:59]current date 1729533078 [17:50:59]FM_GetShiftState [17:50:59]SAM_PROTO_GetShiftState [17:50:59]wFMCommunicate request_size=4 [17:50:59]MH_SAM_APDU [17:50:59]CAPDU: 80 13 01 00 [17:50:59]Write to MH i2c: E2 08 00 4F 74 80 13 01 00 00 00 00 00 40 [17:50:59]Write i2c OK [17:50:59]MH_I2C_Read... [17:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:59]Read from MH i2c: E2 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 0E 00 [17:50:59]MH_I2C_Read... [17:50:59]Read from MH i2c: E2 0E 00 4F 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 49 [17:50:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:50:59]wFMCommunicate OK [17:50:59]SAM_PROTO_GetShiftState done [17:50:59]FM_GetShiftState done [17:50:59]opened in 1729470944 [17:50:59]opened+sec_in_day 1729557344 [17:50:59]quantity*price = 50063 [17:50:59]sum+1 = 50064 [17:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 257 21.10.2024 17:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166146 ФПД: 135504011298110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175118&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166146&fm=135504011298110&tin=02508201610067®Number=0000000000091764&sum=50000 [17:51:00]StoreToDocumentArchive [17:51:00]shift 535 fd 166146 [17:51:00]save to /storage/0535/doc_00166146 [17:51:00]save last doc name /storage/0535/doc_00166146 to /storage/kkm_last_doc_name [17:51:00]save OK [17:51:00]Clear old archive folders... [17:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:51:00]tlvbuf is 0184BAC0 [17:51:00]SAM_PROTO_ClearQueue [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 09 00 00 [17:51:00]Write to MH i2c: E2 08 00 5C 74 80 09 00 00 00 00 00 00 42 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 5C 74 00 90 00 44 [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]SAM_PROTO_ClearQueue done [17:51:00]KKMCreateOFDPacket [17:51:00]OFDProtocolAddRootSTLVToBuf [17:51:00]FM_MakeSignedData [17:51:00]FM_MakeSignedData [17:51:00]SAM_PROTO_SignData [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 01 02 [17:51:00]Write to MH i2c: E2 08 00 5D 74 80 0D 01 02 00 00 00 00 4A [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 5D 74 00 90 00 45 [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]wFMCommunicate request_size=255 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 96 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 89 02 00 35 04 06 00 7B 3D 7C 75 [17:51:00]Write to MH i2c: E2 02 01 5E 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 96 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 89 02 00 35 04 06 00 7B 3D 7C 75 00 00 56 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 5E 74 00 90 00 46 [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]wFMCommunicate request_size=7 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 02 02 02 85 3E [17:51:00]Write to MH i2c: E2 0A 00 5F 74 80 0D 02 02 02 00 85 3E 00 00 14 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 03 00 5F 74 00 90 00 47 [17:51:00]RAPDU: 90 00 [17:51:00]wFMCommunicate OK [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 0D 03 02 [17:51:00]Write to MH i2c: E2 08 00 60 74 80 0D 03 02 00 00 00 00 4F [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 0B 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 0B 00 60 74 00 23 AA 97 00 84 46 DC C0 90 00 1A [17:51:00]RAPDU: 23 AA 97 00 84 46 DC C0 90 00 [17:51:00]wFMCommunicate OK [17:51:00]SAM_PROTO_SignData done [17:51:00]FM_MakeSignedData done [17:51:00]CreateOFDProtocolMessage [17:51:00]wFMCommunicate request_size=4 [17:51:00]MH_SAM_APDU [17:51:00]CAPDU: 80 11 00 00 [17:51:00]Write to MH i2c: E2 08 00 61 74 80 11 00 00 00 00 00 00 4F [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:00]Read from MH i2c: E2 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 17 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: E2 17 00 61 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [17:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:51:00]wFMCommunicate OK [17:51:00]CreateOFDProtocolMessage done [17:51:00]OFDSenderStorePacket 166146 [17:51:00]StoreOFDPacket docnum=166146 [17:51:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 10 4C 04 01 44 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 96 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 89 02 00 35 04 06 00 7B 3D 7C 75 85 3E 23 AA 97 00 84 46 DC C0 [17:51:00]CheckFolder [17:51:00]dirname=/storage/ofd_packets [17:51:00]CheckFolder done [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00166146 [17:51:00]NVStorageSaveData ofd_packets/00166146 [17:51:00]File name is /storage/ofd_packets/00166146 [17:51:00]Write 298 bytes [17:51:00]NVStorageSaveData done [17:51:00]OFDSenderStorePacket done [17:51:00]KKMCreateOFDPacket done [17:51:00]NVStorageSaveData kkm_last_timestamp [17:51:00]File name is /storage/kkm_last_timestamp [17:51:00]Write 4 bytes [17:51:00]NVStorageSaveData done [17:51:00]ExternCall_PrintAddStr [17:51:00]wPrintStart [17:51:00]Write to MH i2c: 01 00 00 62 74 D6 [17:51:00]Write i2c OK [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 07 00 [17:51:00]MH_I2C_Read... [17:51:00]Read from MH i2c: 01 07 00 62 74 00 00 00 00 00 FF 0F EB [17:51:00]RasterBufferAndPrint [17:51:00]line Счет N : (1)220716 [17:51:00]line ИНН: 02508201610067 [17:51:00]line Контрольно-Кассовый Чек [17:51:00]line ПРОДАЖА [17:51:00]line ТРК (МРК, ГНК) : 21 [17:51:00]line Товар: 2710194210 [17:51:00]line ДТ-К-5 [17:51:00]line 6.570 * 76.20 [17:51:00]line = 500.63 [17:51:00]line НДС 12% НСП 1% [17:51:00]line > о реализуемом товаре [17:51:00]line ОКРУГЛЕНИЕ: -0.63 [17:51:00]line ИТОГО: 500.00 [17:51:00]line Внесено: 500.00 [17:51:00]line СДАЧА: 0.00 [17:51:00]line НСП 1% : 4.43 [17:51:00]line НДС 12% : 53.16 [17:51:00]line Наличными: 500.00 [17:51:00]line Безнал.: 0.00 [17:51:00]line Место: АЗС № 161 "Партнер Нефть" [17:51:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:51:00]line СНО: Общий режим [17:51:00]line Чек 257 21.10.2024 17:51 [17:51:00]line Смена: 535 ФФД: 1.0 [17:51:00]line ЗНМ: 0300000104 [17:51:00]line РНМ: 0000000000091764 [17:51:00]line Версия ККМ: 001 [17:51:00]line ФМ: 0000000000871759 [17:51:00]line ФД: 166146 [17:51:00]line ФПД: 135504011298110 [17:51:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175118&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166146&fm=135504011298110&tin=02508201610067®Number=0000000000091764&sum=50000 [17:51:00]OFD Sender: Processing packet 166146 [packets to send 48, broken 47] [17:51:00]ProducePacketName [17:51:00]name=ofd_packets/00166146 [17:51:00]OFD Sender: To server: pG, [17:51:00]CommunicateWithHost lk.salyk.kg:30040 [17:51:00]ConnectInit lk.salyk.kg [17:51:00]written 0, free lines is 4095 [17:51:00]Connected sock=7 [17:51:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 10 4C 04 01 44 DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 01 01 00 00 F4 03 04 00 96 94 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 89 02 00 35 04 06 00 7B 3D 7C 75 85 3E 23 AA 97 00 84 46 DC C0 [17: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 35 39 4F 00 00 00 A7 7F 47 00 EF FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 02 89 02 00 F4 03 04 00 04 3B 16 67 B6 04 01 00 00 9D 68 95 14 8F 4C DE B8 [17:51:01]CommunicateWithHost err = 0 [17:51:01]CheckOFDResponse [17:51:01]1017 (14) - 77093643461234 [17:51:01]1041 (16) - 0000000000871759 [17:51:01]1040 (4) - 166146 [17:51:01]1012 (4) - 21.10.2024 11:29 [17:51:01]1206 (1) - 0 [17:51:01]OFD Sender: Remove packet 166146 [17:51:01]ProducePacketName [17:51:01]name=ofd_packets/00166146 [17:51:01]NVStorageDeleteData [17:51:01]Write to MH i2c: 01 00 00 8D 74 01 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: 01 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: 01 07 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: 01 07 00 8D 74 00 00 00 00 00 C6 0C DA [17:51:01]RasterBufferAndPrint [17:51:01]line [17:51:01]line [17:51:01]line [17:51:01]line [17:51:01]line [17:51:01]written 0, free lines is 3282 [17:51:01]MH_Cut [17:51:01]Write to MH i2c: D1 01 00 94 74 01 DA [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: D1 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: D1 01 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: D1 01 00 94 74 00 D9 [17:51:01]Write to MH i2c: 01 00 00 95 74 09 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]OFD Sender: No OFD packet to send [17:51:02]*** Cut start [17:51:02]*** Partial cut [17:51:02]*** CUTSNS_PIN = 1 [17:51:02]*** CUTSNS_PIN = 0 [17:51:02]*** Brake cut motor [17:51:02]Read from MH i2c: 01 [17:51:02]MH_I2C_Read... [17:51:02]*** Stop cut motor [17:51:02]*** Cut end [17:51:02]Read from MH i2c: 01 07 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: 01 07 00 95 74 00 00 00 00 00 FF 0F 1E [17:51:02]process_action close_receipt done [17:51:02]requested_data is exist [17:51:02]produce_requested_data [17:51:02]requested_item fm.sn is exist - process it [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 11 00 00 [17:51:02]Write to MH i2c: E2 08 00 96 74 80 11 00 00 00 00 00 00 84 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 17 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 17 00 96 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [17:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:51:02]wFMCommunicate OK [17:51:02]requested_item fd.num is exist - process it [17:51:02]SAM_PROTO_GetFieldsCounters [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 13 00 00 [17:51:02]Write to MH i2c: E2 08 00 97 74 80 13 00 00 00 00 00 00 87 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 62 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 62 00 97 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:51:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 02 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:02]wFMCommunicate OK [17:51:02]SAM_PROTO_GetFieldsCounters done [17:51:02]requested_item shift.num is exist - process it [17:51:02]requested_item shift.opened is exist - process it [17:51:02]req_shift_opened [17:51:02]FM_GetShiftState [17:51:02]SAM_PROTO_GetShiftState [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 13 01 00 [17:51:02]Write to MH i2c: E2 08 00 98 74 80 13 01 00 00 00 00 00 89 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 0E 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 0E 00 98 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 92 [17:51:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:51:03]wFMCommunicate OK [17:51:03]SAM_PROTO_GetShiftState done [17:51:03]FM_GetShiftState done [17:51:03]req_shift_opened done [17:51:03]requested_item shift.open_date is exist - process it [17:51:03]req_shift_open_date [17:51:03]req_shift_open_date done [17:51:03]produce_requested_data done [17:51:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166146,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:51:03]process_action_free close_receipt [17:51:03]json_value_free [17:51:03]json_value_free done [17:51:03]process_json_proto returns [17:51:03]Send response to host [17:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166146,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:51:03]free response buf [17:51:03]execute_script done [17:51:03]execute_script returns [17:51:03]free content buf [17:51:03]Sock 5.Close socket [17:51:03]Sock 5.Thread stoped [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:18]accept exits with 6 [17:56:18]New connection [17:56:18]New thread 3066776932 created [17:56:18]Thread 3066920292 joined [17:56:18]Waiting for new connection... [17:56:18] Sock 6.Parse request [17:56:18]Sock 6.Check first char [17:56:18]Sock 6.First char is OK [17:56:18]request: POST /json_proto HTTP/1.0 [17:56:18]Method: POST [17:56:18]URL: /json_proto [17:56:18]Method is POST - this is cgi request [17:56:18]url: /json_proto [17:56:18]query_string will be loaded in cgi processing [17:56:18]execute_cgi json_proto POST (null) [17:56:18]execute_cgi path=json_proto method=POST [17:56:18]POST find Content-Length [17:56:18]Host: 172.17.53.195:8080 [17:56:18]Content-Length: 677 [17:56:18]Content-Type: application/json [17:56:18] [17:56:18]POST finish read [17:56:18]Found Content-Length = 677 [17:56:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:18]execute_script... [17:56: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)220718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:18]POST & json_proto [17:56:18]process_json_proto [17:56:18]json parsed OK: [17:56:18]protocol is kg_v1.0 [17:56:18]action value=close_receipt [17:56:18]process_action close_receipt [17:56:18]cmd_close_receipt [17:56:18]MH_GetDate [17:56:18]Write to MH i2c: F0 00 00 99 74 FC [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: F0 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: F0 09 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: F0 09 00 99 74 00 D6 95 16 67 21 48 4A 65 05 [17:56:18]GetLastDocTimeStamp 1729533078 [17:56:18]current date 1729533398 [17:56:18]FM_GetShiftState [17:56:18]SAM_PROTO_GetShiftState [17:56:18]wFMCommunicate request_size=4 [17:56:18]MH_SAM_APDU [17:56:18]CAPDU: 80 13 01 00 [17:56:18]Write to MH i2c: E2 08 00 9A 74 80 13 01 00 00 00 00 00 8B [17:56:18]Write i2c OK [17:56:18]MH_I2C_Read... [17:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:18]Read from MH i2c: E2 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 [17:56:18]MH_I2C_Read... [17:56:18]Read from MH i2c: E2 0E 00 9A 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 94 [17:56:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:56:18]wFMCommunicate OK [17:56:18]SAM_PROTO_GetShiftState done [17:56:18]FM_GetShiftState done [17:56:18]opened in 1729470944 [17:56:18]opened+sec_in_day 1729557344 [17:56:18]quantity*price = 50041 [17:56:18]sum+1 = 50042 [17:56:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 258 21.10.2024 17:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166147 ФПД: 107893264140148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175638&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166147&fm=107893264140148&tin=02508201610067®Number=0000000000091764&sum=50000 [17:56:19]StoreToDocumentArchive [17:56:19]shift 535 fd 166147 [17:56:19]save to /storage/0535/doc_00166147 [17:56:19]save last doc name /storage/0535/doc_00166147 to /storage/kkm_last_doc_name [17:56:19]save OK [17:56:19]Clear old archive folders... [17:56:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:19]tlvbuf is 0179A0D0 [17:56:19]SAM_PROTO_ClearQueue [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 09 00 00 [17:56:19]Write to MH i2c: E2 08 00 A7 74 80 09 00 00 00 00 00 00 8D [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 09 00 00... 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 A7 74 00 90 00 8F [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]SAM_PROTO_ClearQueue done [17:56:19]KKMCreateOFDPacket [17:56:19]OFDProtocolAddRootSTLVToBuf [17:56:19]FM_MakeSignedData [17:56:19]FM_MakeSignedData [17:56:19]SAM_PROTO_SignData [17:56:19]wFMCommunicate request_size=4 [17:56:19]MH_SAM_APDU [17:56:19]CAPDU: 80 0D 01 02 [17:56:19]Write to MH i2c: E2 08 00 A8 74 80 0D 01 02 00 00 00 00 95 [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:19]*** iso7816_exchange 80 0D 01 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 A8 74 00 90 00 90 [17:56:19]RAPDU: 90 00 [17:56:19]wFMCommunicate OK [17:56:19]wFMCommunicate request_size=255 [17:56:19]MH_SAM_APDU [17:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 95 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 89 02 00 35 04 06 00 62 [17:56:19]Write to MH i2c: E2 02 01 A9 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 D6 95 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 89 02 00 35 04 06 00 62 00 00 1F [17:56:19]Write i2c OK [17:56:19]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 A9 74 00 90 00 91 [17:56:20]RAPDU: 90 00 [17:56:20]wFMCommunicate OK [17:56:20]wFMCommunicate request_size=10 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 0D 02 02 05 20 DB AE C7 74 [17:56:20]Write to MH i2c: E2 0D 00 AA 74 80 0D 02 02 05 00 20 DB AE C7 74 00 00 86 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 03 00 AA 74 00 90 00 92 [17:56:20]RAPDU: 90 00 [17:56:20]wFMCommunicate OK [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 0D 03 02 [17:56:20]Write to MH i2c: E2 08 00 AB 74 80 0D 03 02 00 00 00 00 9A [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0B 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 0B 00 AB 74 00 D4 3E 81 A5 E9 88 41 AF 90 00 34 [17:56:20]RAPDU: D4 3E 81 A5 E9 88 41 AF 90 00 [17:56:20]wFMCommunicate OK [17:56:20]SAM_PROTO_SignData done [17:56:20]FM_MakeSignedData done [17:56:20]CreateOFDProtocolMessage [17:56:20]wFMCommunicate request_size=4 [17:56:20]MH_SAM_APDU [17:56:20]CAPDU: 80 11 00 00 [17:56:20]Write to MH i2c: E2 08 00 AC 74 80 11 00 00 00 00 00 00 9A [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:20]Read from MH i2c: E2 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 17 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: E2 17 00 AC 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [17:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:56:20]wFMCommunicate OK [17:56:20]CreateOFDProtocolMessage done [17:56:20]OFDSenderStorePacket 166147 [17:56:20]StoreOFDPacket docnum=166147 [17:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D DE 07 01 0E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 95 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 89 02 00 35 04 06 00 62 20 DB AE C7 74 D4 3E 81 A5 E9 88 41 AF [17:56:20]CheckFolder [17:56:20]dirname=/storage/ofd_packets [17:56:20]CheckFolder done [17:56:20]ProducePacketName [17:56:20]name=ofd_packets/00166147 [17:56:20]NVStorageSaveData ofd_packets/00166147 [17:56:20]File name is /storage/ofd_packets/00166147 [17:56:20]Write 301 bytes [17:56:20]NVStorageSaveData done [17:56:20]OFDSenderStorePacket done [17:56:20]KKMCreateOFDPacket done [17:56:20]NVStorageSaveData kkm_last_timestamp [17:56:20]File name is /storage/kkm_last_timestamp [17:56:20]Write 4 bytes [17:56:20]NVStorageSaveData done [17:56:20]ExternCall_PrintAddStr [17:56:20]wPrintStart [17:56:20]Write to MH i2c: 01 00 00 AD 74 21 [17:56:20]Write i2c OK [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 [17:56:20]MH_I2C_Read... [17:56:20]Read from MH i2c: 01 07 00 AD 74 00 00 00 00 00 FF 0F 36 [17:56:20]RasterBufferAndPrint [17:56:20]line Счет N : (1)220718 [17:56:20]line ИНН: 02508201610067 [17:56:20]line Контрольно-Кассовый Чек [17:56:20]line ПРОДАЖА [17:56:20]line ТРК (МРК, ГНК) : 33 [17:56:20]line Товар: 2710124130 [17:56:20]line Аи-92-К-5 [17:56:20]line 7.480 * 66.90 [17:56:20]line = 500.41 [17:56:20]line НДС 12% НСП 1% [17:56:20]line > о реализуемом товаре [17:56:20]line ОКРУГЛЕНИЕ: -0.41 [17:56:20]line ИТОГО: 500.00 [17:56:20]line Внесено: 500.00 [17:56:20]line СДАЧА: 0.00 [17:56:20]line НСП 1% : 4.43 [17:56:20]line НДС 12% : 53.14 [17:56:20]line Наличными: 500.00 [17:56:20]line Безнал.: 0.00 [17:56:20]line Место: АЗС № 161 "Партнер Нефть" [17:56:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:56:20]line СНО: Общий режим [17:56:20]line Чек 258 21.10.2024 17:56 [17:56:20]line Смена: 535 ФФД: 1.0 [17:56:20]line ЗНМ: 0300000104 [17:56:20]line РНМ: 0000000000091764 [17:56:20]line Версия ККМ: 001 [17:56:20]line ФМ: 0000000000871759 [17:56:20]line ФД: 166147 [17:56:20]line ФПД: 107893264140148 [17:56:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175638&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166147&fm=107893264140148&tin=02508201610067®Number=0000000000091764&sum=50000 [17:56:20]OFD Sender: Processing packet 166147 [packets to send 48, broken 47] [17:56:20]ProducePacketName [17:56:20]name=ofd_packets/00166147 [17:56:20]OFD Sender: To server: pG, [17:56:20]CommunicateWithHost lk.salyk.kg:30040 [17:56:20]ConnectInit lk.salyk.kg [17:56:20]written 0, free lines is 4095 [17:56:20]Connected sock=7 [17:56:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 2D DE 07 01 0E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D6 95 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 89 02 00 35 04 06 00 62 20 DB AE C7 74 D4 3E 81 A5 E9 88 41 AF [17:56:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 15 D0 47 00 BD B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 03 89 02 00 F4 03 04 00 43 3C 16 67 B6 04 01 00 00 86 C2 51 8D 65 65 F2 AA [17:56:21]CommunicateWithHost err = 0 [17:56:21]CheckOFDResponse [17:56:21]1017 (14) - 77093643461234 [17:56:21]1041 (16) - 0000000000871759 [17:56:21]1040 (4) - 166147 [17:56:21]1012 (4) - 21.10.2024 11:34 [17:56:21]1206 (1) - 0 [17:56:21]OFD Sender: Remove packet 166147 [17:56:21]ProducePacketName [17:56:21]name=ofd_packets/00166147 [17:56:21]NVStorageDeleteData [17:56:21]Write to MH i2c: 01 00 00 D8 74 4C [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: 01 [17:56:21]MH_I2C_Read... [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 D8 74 00 00 00 00 00 CB 0C 2A [17:56:21]RasterBufferAndPrint [17:56:21]line [17:56:21]line [17:56:21]line [17:56:21]line [17:56:21]line [17:56:21]written 0, free lines is 3281 [17:56:21]MH_Cut [17:56:21]Write to MH i2c: D1 01 00 DF 74 01 25 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: D1 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: D1 01 00 [17:56:21]MH_I2C_Read... [17:56:21]Read from MH i2c: D1 01 00 DF 74 00 24 [17:56:21]Write to MH i2c: 01 00 00 E0 74 54 [17:56:21]Write i2c OK [17:56:21]MH_I2C_Read... [17:56:21]OFD Sender: No OFD packet to send [17:56:21]*** Cut start [17:56:21]*** Partial cut [17:56:21]*** CUTSNS_PIN = 1 [17:56:22]*** CUTSNS_PIN = 0 [17:56:22]*** Brake cut motor [17:56:22]Read from MH i2c: 01 [17:56:22]MH_I2C_Read... [17:56:22]*** Stop cut motor [17:56:22]*** Cut end [17:56:22]Read from MH i2c: 01 07 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: 01 07 00 E0 74 00 00 00 00 00 FF 0F 69 [17:56:22]process_action close_receipt done [17:56:22]requested_data is exist [17:56:22]produce_requested_data [17:56:22]requested_item fm.sn is exist - process it [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 11 00 00 [17:56:22]Write to MH i2c: E2 08 00 E1 74 80 11 00 00 00 00 00 00 CF [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 17 00 E1 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [17:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:56:22]wFMCommunicate OK [17:56:22]requested_item fd.num is exist - process it [17:56:22]SAM_PROTO_GetFieldsCounters [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 13 00 00 [17:56:22]Write to MH i2c: E2 08 00 E2 74 80 13 00 00 00 00 00 00 D2 [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 62 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 62 00 E2 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [17:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 03 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:22]wFMCommunicate OK [17:56:22]SAM_PROTO_GetFieldsCounters done [17:56:22]requested_item shift.num is exist - process it [17:56:22]requested_item shift.opened is exist - process it [17:56:22]req_shift_opened [17:56:22]FM_GetShiftState [17:56:22]SAM_PROTO_GetShiftState [17:56:22]wFMCommunicate request_size=4 [17:56:22]MH_SAM_APDU [17:56:22]CAPDU: 80 13 01 00 [17:56:22]Write to MH i2c: E2 08 00 E3 74 80 13 01 00 00 00 00 00 D4 [17:56:22]Write i2c OK [17:56:22]MH_I2C_Read... [17:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:22]Read from MH i2c: E2 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 0E 00 [17:56:22]MH_I2C_Read... [17:56:22]Read from MH i2c: E2 0E 00 E3 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DD [17:56:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:56:22]wFMCommunicate OK [17:56:22]SAM_PROTO_GetShiftState done [17:56:22]FM_GetShiftState done [17:56:22]req_shift_opened done [17:56:22]requested_item shift.open_date is exist - process it [17:56:22]req_shift_open_date [17:56:22]req_shift_open_date done [17:56:22]produce_requested_data done [17:56:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166147,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:56:22]process_action_free close_receipt [17:56:22]json_value_free [17:56:22]json_value_free done [17:56:22]process_json_proto returns [17:56:22]Send response to host [17:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166147,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:56:22]free response buf [17:56:22]execute_script done [17:56:22]execute_script returns [17:56:22]free content buf [17:56:22]Sock 6.Close socket [17:56:22]Sock 6.Thread stoped [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]accept exits with 5 [17:58:21]New connection [17:58:21]New thread 3066920292 created [17:58:21]Thread 3066776932 joined [17:58:21]Waiting for new connection... [17:58:21] Sock 5.Parse request [17:58:21]Sock 5.Check first char [17:58:21]Sock 5.First char is OK [17:58:21]request: POST /json_proto HTTP/1.0 [17:58:21]Method: POST [17:58:21]URL: /json_proto [17:58:21]Method is POST - this is cgi request [17:58:21]url: /json_proto [17:58:21]query_string will be loaded in cgi processing [17:58:21]execute_cgi json_proto POST (null) [17:58:21]execute_cgi path=json_proto method=POST [17:58:21]POST find Content-Length [17:58:21]Host: 172.17.53.195:8080 [17:58:21]Content-Length: 677 [17:58:21]Content-Type: application/json [17:58:21] [17:58:21]POST finish read [17:58:21]Found Content-Length = 677 [17:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:21]execute_script... [17:58: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)220720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:58:21]POST & json_proto [17:58:21]process_json_proto [17:58:21]json parsed OK: [17:58:21]protocol is kg_v1.0 [17:58:21]action value=close_receipt [17:58:21]process_action close_receipt [17:58:21]cmd_close_receipt [17:58:21]MH_GetDate [17:58:21]Write to MH i2c: F0 00 00 E4 74 47 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: F0 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: F0 09 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: F0 09 00 E4 74 00 50 96 16 67 21 48 4A 65 CB [17:58:21]GetLastDocTimeStamp 1729533398 [17:58:21]current date 1729533520 [17:58:21]FM_GetShiftState [17:58:21]SAM_PROTO_GetShiftState [17:58:21]wFMCommunicate request_size=4 [17:58:21]MH_SAM_APDU [17:58:21]CAPDU: 80 13 01 00 [17:58:21]Write to MH i2c: E2 08 00 E5 74 80 13 01 00 00 00 00 00 D6 [17:58:21]Write i2c OK [17:58:21]MH_I2C_Read... [17:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:21]Read from MH i2c: E2 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0E 00 [17:58:21]MH_I2C_Read... [17:58:21]Read from MH i2c: E2 0E 00 E5 74 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DF [17:58:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:58:21]wFMCommunicate OK [17:58:21]SAM_PROTO_GetShiftState done [17:58:21]FM_GetShiftState done [17:58:21]opened in 1729470944 [17:58:21]opened+sec_in_day 1729557344 [17:58:21]quantity*price = 20003 [17:58:21]sum+1 = 20004 [17:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 259 21.10.2024 17:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166148 ФПД: 125442201960877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166148&fm=125442201960877&tin=02508201610067®Number=0000000000091764&sum=20000 [17:58:22]StoreToDocumentArchive [17:58:22]shift 535 fd 166148 [17:58:22]save to /storage/0535/doc_00166148 [17:58:22]save last doc name /storage/0535/doc_00166148 to /storage/kkm_last_doc_name [17:58:22]save OK [17:58:22]Clear old archive folders... [17:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:22]tlvbuf is 016580C0 [17:58:22]SAM_PROTO_ClearQueue [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 09 00 00 [17:58:22]Write to MH i2c: E2 08 00 F2 74 80 09 00 00 00 00 00 00 D8 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 F2 74 00 90 00 DA [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]SAM_PROTO_ClearQueue done [17:58:22]KKMCreateOFDPacket [17:58:22]OFDProtocolAddRootSTLVToBuf [17:58:22]FM_MakeSignedData [17:58:22]FM_MakeSignedData [17:58:22]SAM_PROTO_SignData [17:58:22]wFMCommunicate request_size=4 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 01 02 [17:58:22]Write to MH i2c: E2 08 00 F3 74 80 0D 01 02 00 00 00 00 E0 [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:22]Read from MH i2c: E2 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 [17:58:22]MH_I2C_Read... [17:58:22]Read from MH i2c: E2 03 00 F3 74 00 90 00 DB [17:58:22]RAPDU: 90 00 [17:58:22]wFMCommunicate OK [17:58:22]wFMCommunicate request_size=255 [17:58:22]MH_SAM_APDU [17:58:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 51 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 89 02 00 35 04 06 00 72 [17:58:22]Write to MH i2c: E2 02 01 F4 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 51 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 89 02 00 35 04 06 00 72 00 00 BA [17:58:22]Write i2c OK [17:58:22]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 F4 74 00 90 00 DC [17:58:23]RAPDU: 90 00 [17:58:23]wFMCommunicate OK [17:58:23]wFMCommunicate request_size=10 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 0D 02 02 05 16 C9 E3 41 AD [17:58:23]Write to MH i2c: E2 0D 00 F5 74 80 0D 02 02 05 00 16 C9 E3 41 AD 00 00 9D [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 03 00 F5 74 00 90 00 DD [17:58:23]RAPDU: 90 00 [17:58:23]wFMCommunicate OK [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 0D 03 02 [17:58:23]Write to MH i2c: E2 08 00 F6 74 80 0D 03 02 00 00 00 00 E5 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 0B 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 0B 00 F6 74 00 7D 3E B6 7F 41 57 C5 CB 90 00 FE [17:58:23]RAPDU: 7D 3E B6 7F 41 57 C5 CB 90 00 [17:58:23]wFMCommunicate OK [17:58:23]SAM_PROTO_SignData done [17:58:23]FM_MakeSignedData done [17:58:23]CreateOFDProtocolMessage [17:58:23]wFMCommunicate request_size=4 [17:58:23]MH_SAM_APDU [17:58:23]CAPDU: 80 11 00 00 [17:58:23]Write to MH i2c: E2 08 00 F7 74 80 11 00 00 00 00 00 00 E5 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:23]Read from MH i2c: E2 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 17 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: E2 17 00 F7 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [17:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:23]wFMCommunicate OK [17:58:23]CreateOFDProtocolMessage done [17:58:23]OFDSenderStorePacket 166148 [17:58:23]StoreOFDPacket docnum=166148 [17:58:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AF 24 07 01 EF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 51 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 89 02 00 35 04 06 00 72 16 C9 E3 41 AD 7D 3E B6 7F 41 57 C5 CB [17:58:23]CheckFolder [17:58:23]dirname=/storage/ofd_packets [17:58:23]CheckFolder done [17:58:23]ProducePacketName [17:58:23]name=ofd_packets/00166148 [17:58:23]NVStorageSaveData ofd_packets/00166148 [17:58:23]File name is /storage/ofd_packets/00166148 [17:58:23]Write 301 bytes [17:58:23]NVStorageSaveData done [17:58:23]OFDSenderStorePacket done [17:58:23]KKMCreateOFDPacket done [17:58:23]NVStorageSaveData kkm_last_timestamp [17:58:23]File name is /storage/kkm_last_timestamp [17:58:23]Write 4 bytes [17:58:23]NVStorageSaveData done [17:58:23]ExternCall_PrintAddStr [17:58:23]wPrintStart [17:58:23]Write to MH i2c: 01 00 00 F8 74 6C [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 F8 74 00 00 00 00 00 FF 0F 81 [17:58:23]RasterBufferAndPrint [17:58:23]line Счет N : (1)220720 [17:58:23]line ИНН: 02508201610067 [17:58:23]line Контрольно-Кассовый Чек [17:58:23]line ПРОДАЖА [17:58:23]line ТРК (МРК, ГНК) : 23 [17:58:23]line Товар: 2710124130 [17:58:23]line Аи-92-К-5 [17:58:23]line 2.990 * 66.90 [17:58:23]line = 200.03 [17:58:23]line НДС 12% НСП 1% [17:58:23]line > о реализуемом товаре [17:58:23]line ОКРУГЛЕНИЕ: -0.03 [17:58:23]line ИТОГО: 200.00 [17:58:23]line Внесено: 200.00 [17:58:23]line СДАЧА: 0.00 [17:58:23]line НСП 1% : 1.77 [17:58:23]line НДС 12% : 21.24 [17:58:23]line Наличными: 200.00 [17:58:23]line Безнал.: 0.00 [17:58:23]line Место: АЗС № 161 "Партнер Нефть" [17:58:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:58:23]line СНО: Общий режим [17:58:23]line Чек 259 21.10.2024 17:58 [17:58:23]line Смена: 535 ФФД: 1.0 [17:58:23]line ЗНМ: 0300000104 [17:58:23]line РНМ: 0000000000091764 [17:58:23]line Версия ККМ: 001 [17:58:23]line ФМ: 0000000000871759 [17:58:23]line ФД: 166148 [17:58:23]line ФПД: 125442201960877 [17:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175841&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166148&fm=125442201960877&tin=02508201610067®Number=0000000000091764&sum=20000 [17:58:23]OFD Sender: Processing packet 166148 [packets to send 48, broken 47] [17:58:23]ProducePacketName [17:58:23]name=ofd_packets/00166148 [17:58:23]OFD Sender: To server: pG, [17:58:23]CommunicateWithHost lk.salyk.kg:30040 [17:58:23]ConnectInit lk.salyk.kg [17:58:23]written 0, free lines is 4095 [17:58:23]Connected sock=7 [17:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AF 24 07 01 EF 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 51 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 89 02 00 35 04 06 00 72 16 C9 E3 41 AD 7D 3E B6 7F 41 57 C5 CB [17:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A2 E3 47 00 3F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 04 89 02 00 F4 03 04 00 BE 3C 16 67 B6 04 01 00 00 9F 3B A8 9B 92 E8 C6 2A [17:58:23]CommunicateWithHost err = 0 [17:58:23]CheckOFDResponse [17:58:23]1017 (14) - 77093643461234 [17:58:23]1041 (16) - 0000000000871759 [17:58:23]1040 (4) - 166148 [17:58:23]1012 (4) - 21.10.2024 11:36 [17:58:23]1206 (1) - 0 [17:58:23]OFD Sender: Remove packet 166148 [17:58:23]ProducePacketName [17:58:23]name=ofd_packets/00166148 [17:58:23]NVStorageDeleteData [17:58:23]Write to MH i2c: 01 00 00 23 75 98 [17:58:23]Write i2c OK [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 [17:58:23]MH_I2C_Read... [17:58:23]Read from MH i2c: 01 07 00 23 75 00 00 00 00 00 C8 0C 73 [17:58:23]RasterBufferAndPrint [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]line [17:58:23]written 0, free lines is 3278 [17:58:24]MH_Cut [17:58:24]Write to MH i2c: D1 01 00 2A 75 01 71 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: D1 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: D1 01 00 [17:58:24]MH_I2C_Read... [17:58:24]Read from MH i2c: D1 01 00 2A 75 00 70 [17:58:24]Write to MH i2c: 01 00 00 2B 75 A0 [17:58:24]Write i2c OK [17:58:24]MH_I2C_Read... [17:58:24]OFD Sender: No OFD packet to send [17:58:24]*** Cut start [17:58:24]*** Partial cut [17:58:24]*** CUTSNS_PIN = 1 [17:58:24]*** CUTSNS_PIN = 0 [17:58:25]*** Brake cut motor [17:58:25]Read from MH i2c: 01 [17:58:25]MH_I2C_Read... [17:58:25]*** Stop cut motor [17:58:25]*** Cut end [17:58:25]Read from MH i2c: 01 07 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: 01 07 00 2B 75 00 00 00 00 00 FF 0F B5 [17:58:25]process_action close_receipt done [17:58:25]requested_data is exist [17:58:25]produce_requested_data [17:58:25]requested_item fm.sn is exist - process it [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 11 00 00 [17:58:25]Write to MH i2c: E2 08 00 2C 75 80 11 00 00 00 00 00 00 1B [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:25]Read from MH i2c: E2 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 17 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 17 00 2C 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [17:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:58:25]wFMCommunicate OK [17:58:25]requested_item fd.num is exist - process it [17:58:25]SAM_PROTO_GetFieldsCounters [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 13 00 00 [17:58:25]Write to MH i2c: E2 08 00 2D 75 80 13 00 00 00 00 00 00 1E [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:25]Read from MH i2c: E2 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 62 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 62 00 2D 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [17:58:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 04 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:25]wFMCommunicate OK [17:58:25]SAM_PROTO_GetFieldsCounters done [17:58:25]requested_item shift.num is exist - process it [17:58:25]requested_item shift.opened is exist - process it [17:58:25]req_shift_opened [17:58:25]FM_GetShiftState [17:58:25]SAM_PROTO_GetShiftState [17:58:25]wFMCommunicate request_size=4 [17:58:25]MH_SAM_APDU [17:58:25]CAPDU: 80 13 01 00 [17:58:25]Write to MH i2c: E2 08 00 2E 75 80 13 01 00 00 00 00 00 20 [17:58:25]Write i2c OK [17:58:25]MH_I2C_Read... [17:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:25]Read from MH i2c: E2 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 0E 00 [17:58:25]MH_I2C_Read... [17:58:25]Read from MH i2c: E2 0E 00 2E 75 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 29 [17:58:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:58:25]wFMCommunicate OK [17:58:25]SAM_PROTO_GetShiftState done [17:58:25]FM_GetShiftState done [17:58:25]req_shift_opened done [17:58:25]requested_item shift.open_date is exist - process it [17:58:25]req_shift_open_date [17:58:25]req_shift_open_date done [17:58:25]produce_requested_data done [17:58:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166148,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:58:25]process_action_free close_receipt [17:58:25]json_value_free [17:58:25]json_value_free done [17:58:25]process_json_proto returns [17:58:25]Send response to host [17:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166148,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:58:25]free response buf [17:58:25]execute_script done [17:58:25]execute_script returns [17:58:25]free content buf [17:58:25]Sock 5.Close socket [17:58:25]Sock 5.Thread stoped [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [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:08]accept exits with 6 [17:59:08]New connection [17:59:08]New thread 3066776932 created [17:59:08]Thread 3066920292 joined [17:59:08]Waiting for new connection... [17:59:08] Sock 6.Parse request [17:59:08]Sock 6.Check first char [17:59:08]Sock 6.First char is OK [17:59:08]request: POST /json_proto HTTP/1.0 [17:59:08]Method: POST [17:59:08]URL: /json_proto [17:59:08]Method is POST - this is cgi request [17:59:08]url: /json_proto [17:59:08]query_string will be loaded in cgi processing [17:59:08]execute_cgi json_proto POST (null) [17:59:08]execute_cgi path=json_proto method=POST [17:59:08]POST find Content-Length [17:59:08]Host: 172.17.53.195:8080 [17:59:08]Content-Length: 679 [17:59:08]Content-Type: application/json [17:59:08] [17:59:08]POST finish read [17:59:08]Found Content-Length = 679 [17:59:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:08]execute_script... [17:59: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)220719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.680, "sum" : 1499.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1499.00, "payments": [ { "type": 0, "sum" : 1499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:08]POST & json_proto [17:59:08]process_json_proto [17:59:08]json parsed OK: [17:59:08]protocol is kg_v1.0 [17:59:08]action value=close_receipt [17:59:08]process_action close_receipt [17:59:08]cmd_close_receipt [17:59:08]MH_GetDate [17:59:08]Write to MH i2c: F0 00 00 2F 75 93 [17:59:08]Write i2c OK [17:59:08]MH_I2C_Read... [17:59:08]Read from MH i2c: F0 [17:59:08]MH_I2C_Read... [17:59:08]Read from MH i2c: F0 09 00 [17:59:08]MH_I2C_Read... [17:59:08]Read from MH i2c: F0 09 00 2F 75 00 80 96 16 67 21 48 4A 65 47 [17:59:08]GetLastDocTimeStamp 1729533521 [17:59:08]current date 1729533568 [17:59:08]FM_GetShiftState [17:59:08]SAM_PROTO_GetShiftState [17:59:08]wFMCommunicate request_size=4 [17:59:08]MH_SAM_APDU [17:59:08]CAPDU: 80 13 01 00 [17:59:08]Write to MH i2c: E2 08 00 30 75 80 13 01 00 00 00 00 00 22 [17:59:08]Write i2c OK [17:59:08]MH_I2C_Read... [17:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:08]Read from MH i2c: E2 [17:59:08]MH_I2C_Read... [17:59:08]Read from MH i2c: E2 0E 00 [17:59:08]MH_I2C_Read... [17:59:08]Read from MH i2c: E2 0E 00 30 75 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2B [17:59:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:59:08]wFMCommunicate OK [17:59:08]SAM_PROTO_GetShiftState done [17:59:08]FM_GetShiftState done [17:59:08]opened in 1729470944 [17:59:08]opened+sec_in_day 1729557344 [17:59:08]quantity*price = 149961 [17:59:08]sum+1 = 149963 [17:59:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 1499.00 Внесено: 1500.00 СДАЧА: 1.00 НСП 1% : 13.27 НДС 12% : 159.25 Наличными: 1499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 260 21.10.2024 17:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166149 ФПД: 202256495553831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175928&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166149&fm=202256495553831&tin=02508201610067®Number=0000000000091764&sum=149900 [17:59:09]StoreToDocumentArchive [17:59:09]shift 535 fd 166149 [17:59:09]save to /storage/0535/doc_00166149 [17:59:09]save last doc name /storage/0535/doc_00166149 to /storage/kkm_last_doc_name [17:59:09]save OK [17:59:09]Clear old archive folders... [17:59:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:59:09]tlvbuf is 0157E7A0 [17:59:09]SAM_PROTO_ClearQueue [17:59:09]wFMCommunicate request_size=4 [17:59:09]MH_SAM_APDU [17:59:09]CAPDU: 80 09 00 00 [17:59:09]Write to MH i2c: E2 08 00 3D 75 80 09 00 00 00 00 00 00 24 [17:59:09]Write i2c OK [17:59:09]MH_I2C_Read... [17:59:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:10]Read from MH i2c: E2 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 3D 75 00 90 00 26 [17:59:10]RAPDU: 90 00 [17:59:10]wFMCommunicate OK [17:59:10]SAM_PROTO_ClearQueue done [17:59:10]KKMCreateOFDPacket [17:59:10]OFDProtocolAddRootSTLVToBuf [17:59:10]FM_MakeSignedData [17:59:10]FM_MakeSignedData [17:59:10]SAM_PROTO_SignData [17:59:10]wFMCommunicate request_size=4 [17:59:10]MH_SAM_APDU [17:59:10]CAPDU: 80 0D 01 02 [17:59:10]Write to MH i2c: E2 08 00 3E 75 80 0D 01 02 00 00 00 00 2C [17:59:10]Write i2c OK [17:59:10]MH_I2C_Read... [17:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:10]Read from MH i2c: E2 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 3E 75 00 90 00 27 [17:59:10]RAPDU: 90 00 [17:59:10]wFMCommunicate OK [17:59:10]wFMCommunicate request_size=255 [17:59:10]MH_SAM_APDU [17:59:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 80 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 89 02 00 35 04 06 00 B7 F3 82 92 [17:59:10]Write to MH i2c: E2 02 01 3F 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 80 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 89 02 00 35 04 06 00 B7 F3 82 92 00 00 06 [17:59:10]Write i2c OK [17:59:10]MH_I2C_Read... [17:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:10]Read from MH i2c: E2 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 3F 75 00 90 00 28 [17:59:10]RAPDU: 90 00 [17:59:10]wFMCommunicate OK [17:59:10]wFMCommunicate request_size=7 [17:59:10]MH_SAM_APDU [17:59:10]CAPDU: 80 0D 02 02 02 2D 27 [17:59:10]Write to MH i2c: E2 0A 00 40 75 80 0D 02 02 02 00 2D 27 00 00 87 [17:59:10]Write i2c OK [17:59:10]MH_I2C_Read... [17:59:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:10]Read from MH i2c: E2 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 03 00 40 75 00 90 00 29 [17:59:10]RAPDU: 90 00 [17:59:10]wFMCommunicate OK [17:59:10]wFMCommunicate request_size=4 [17:59:10]MH_SAM_APDU [17:59:10]CAPDU: 80 0D 03 02 [17:59:10]Write to MH i2c: E2 08 00 41 75 80 0D 03 02 00 00 00 00 31 [17:59:10]Write i2c OK [17:59:10]MH_I2C_Read... [17:59:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:10]Read from MH i2c: E2 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 0B 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 0B 00 41 75 00 D0 FF 21 C5 62 AC BE 2F 90 00 E2 [17:59:10]RAPDU: D0 FF 21 C5 62 AC BE 2F 90 00 [17:59:10]wFMCommunicate OK [17:59:10]SAM_PROTO_SignData done [17:59:10]FM_MakeSignedData done [17:59:10]CreateOFDProtocolMessage [17:59:10]wFMCommunicate request_size=4 [17:59:10]MH_SAM_APDU [17:59:10]CAPDU: 80 11 00 00 [17:59:10]Write to MH i2c: E2 08 00 42 75 80 11 00 00 00 00 00 00 31 [17:59:10]Write i2c OK [17:59:10]MH_I2C_Read... [17:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:10]Read from MH i2c: E2 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 17 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: E2 17 00 42 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [17:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:59:10]wFMCommunicate OK [17:59:10]CreateOFDProtocolMessage done [17:59:10]OFDSenderStorePacket 166149 [17:59:10]StoreOFDPacket docnum=166149 [17:59:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 98 45 04 01 1C A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 80 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 89 02 00 35 04 06 00 B7 F3 82 92 2D 27 D0 FF 21 C5 62 AC BE 2F [17:59:10]CheckFolder [17:59:10]dirname=/storage/ofd_packets [17:59:10]CheckFolder done [17:59:10]ProducePacketName [17:59:10]name=ofd_packets/00166149 [17:59:10]NVStorageSaveData ofd_packets/00166149 [17:59:10]File name is /storage/ofd_packets/00166149 [17:59:10]Write 298 bytes [17:59:10]NVStorageSaveData done [17:59:10]OFDSenderStorePacket done [17:59:10]KKMCreateOFDPacket done [17:59:10]NVStorageSaveData kkm_last_timestamp [17:59:10]File name is /storage/kkm_last_timestamp [17:59:10]Write 4 bytes [17:59:10]NVStorageSaveData done [17:59:10]ExternCall_PrintAddStr [17:59:10]wPrintStart [17:59:10]Write to MH i2c: 01 00 00 43 75 B8 [17:59:10]Write i2c OK [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: 01 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: 01 07 00 [17:59:10]MH_I2C_Read... [17:59:10]Read from MH i2c: 01 07 00 43 75 00 00 00 00 00 FF 0F CD [17:59:10]RasterBufferAndPrint [17:59:10]line Счет N : (1)220719 [17:59:10]line ИНН: 02508201610067 [17:59:10]line Контрольно-Кассовый Чек [17:59:10]line ПРОДАЖА [17:59:10]line ТРК (МРК, ГНК) : 41 [17:59:10]line Товар: 2710194210 [17:59:10]line ДТ-К-5 [17:59:10]line 19.680 * 76.20 [17:59:10]line = 1499.62 [17:59:10]line НДС 12% НСП 1% [17:59:10]line > о реализуемом товаре [17:59:10]line ОКРУГЛЕНИЕ: -0.62 [17:59:10]line ИТОГО: 1499.00 [17:59:10]line Внесено: 1500.00 [17:59:10]line СДАЧА: 1.00 [17:59:10]line НСП 1% : 13.27 [17:59:10]line НДС 12% : 159.25 [17:59:10]line Наличными: 1499.00 [17:59:10]line Безнал.: 0.00 [17:59:10]line Место: АЗС № 161 "Партнер Нефть" [17:59:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [17:59:10]line СНО: Общий режим [17:59:10]line Чек 260 21.10.2024 17:59 [17:59:10]line Смена: 535 ФФД: 1.0 [17:59:10]line ЗНМ: 0300000104 [17:59:10]line РНМ: 0000000000091764 [17:59:10]line Версия ККМ: 001 [17:59:10]line ФМ: 0000000000871759 [17:59:10]line ФД: 166149 [17:59:10]line ФПД: 202256495553831 [17:59:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T175928&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166149&fm=202256495553831&tin=02508201610067®Number=0000000000091764&sum=149900 [17:59:10]OFD Sender: Processing packet 166149 [packets to send 48, broken 47] [17:59:10]ProducePacketName [17:59:10]name=ofd_packets/00166149 [17:59:10]OFD Sender: To server: pG, [17:59:10]CommunicateWithHost lk.salyk.kg:30040 [17:59:10]ConnectInit lk.salyk.kg [17:59:10]written 0, free lines is 4095 [17:59:10]Connected sock=7 [17:59:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 98 45 04 01 1C A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E0 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CA 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 3E 00 00 00 00 07 04 06 00 8C 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 80 96 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 89 02 00 35 04 06 00 B7 F3 82 92 2D 27 D0 FF 21 C5 62 AC BE 2F [17:59:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1D 14 47 00 1A 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 05 89 02 00 F4 03 04 00 ED 3C 16 67 B6 04 01 00 00 37 02 80 82 9F 5D E1 F3 [17:59:11]CommunicateWithHost err = 0 [17:59:11]CheckOFDResponse [17:59:11]1017 (14) - 77093643461234 [17:59:11]1041 (16) - 0000000000871759 [17:59:11]1040 (4) - 166149 [17:59:11]1012 (4) - 21.10.2024 11:37 [17:59:11]1206 (1) - 0 [17:59:11]OFD Sender: Remove packet 166149 [17:59:11]ProducePacketName [17:59:11]name=ofd_packets/00166149 [17:59:11]NVStorageDeleteData [17:59:11]Write to MH i2c: 01 00 00 6E 75 E3 [17:59:11]Write i2c OK [17:59:11]MH_I2C_Read... [17:59:11]Read from MH i2c: 01 [17:59:11]MH_I2C_Read... [17:59:11]Read from MH i2c: 01 07 00 [17:59:11]MH_I2C_Read... [17:59:11]Read from MH i2c: 01 07 00 6E 75 00 00 00 00 00 D8 0C CE [17:59:11]RasterBufferAndPrint [17:59:11]line [17:59:11]line [17:59:11]line [17:59:11]line [17:59:11]line [17:59:11]written 0, free lines is 3294 [17:59:11]MH_Cut [17:59:11]Write to MH i2c: D1 01 00 75 75 01 BC [17:59:11]Write i2c OK [17:59:11]MH_I2C_Read... [17:59:11]Read from MH i2c: D1 [17:59:11]MH_I2C_Read... [17:59:11]Read from MH i2c: D1 01 00 [17:59:11]MH_I2C_Read... [17:59:11]Read from MH i2c: D1 01 00 75 75 00 BB [17:59:11]Write to MH i2c: 01 00 00 76 75 EB [17:59:11]Write i2c OK [17:59:11]MH_I2C_Read... [17:59:11]OFD Sender: No OFD packet to send [17:59:12]*** Cut start [17:59:12]*** Partial cut [17:59:12]*** CUTSNS_PIN = 1 [17:59:12]*** CUTSNS_PIN = 0 [17:59:12]*** Brake cut motor [17:59:12]Read from MH i2c: 01 [17:59:12]MH_I2C_Read... [17:59:12]*** Stop cut motor [17:59:12]*** Cut end [17:59:12]Read from MH i2c: 01 07 00 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: 01 07 00 76 75 00 00 00 00 00 FF 0F 00 [17:59:12]process_action close_receipt done [17:59:12]requested_data is exist [17:59:12]produce_requested_data [17:59:12]requested_item fm.sn is exist - process it [17:59:12]wFMCommunicate request_size=4 [17:59:12]MH_SAM_APDU [17:59:12]CAPDU: 80 11 00 00 [17:59:12]Write to MH i2c: E2 08 00 77 75 80 11 00 00 00 00 00 00 66 [17:59:12]Write i2c OK [17:59:12]MH_I2C_Read... [17:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:12]Read from MH i2c: E2 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 17 00 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 17 00 77 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [17:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [17:59:12]wFMCommunicate OK [17:59:12]requested_item fd.num is exist - process it [17:59:12]SAM_PROTO_GetFieldsCounters [17:59:12]wFMCommunicate request_size=4 [17:59:12]MH_SAM_APDU [17:59:12]CAPDU: 80 13 00 00 [17:59:12]Write to MH i2c: E2 08 00 78 75 80 13 00 00 00 00 00 00 69 [17:59:12]Write i2c OK [17:59:12]MH_I2C_Read... [17:59:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:12]Read from MH i2c: E2 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 62 00 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 62 00 78 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [17:59:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 05 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:59:12]wFMCommunicate OK [17:59:12]SAM_PROTO_GetFieldsCounters done [17:59:12]requested_item shift.num is exist - process it [17:59:12]requested_item shift.opened is exist - process it [17:59:12]req_shift_opened [17:59:12]FM_GetShiftState [17:59:12]SAM_PROTO_GetShiftState [17:59:12]wFMCommunicate request_size=4 [17:59:12]MH_SAM_APDU [17:59:12]CAPDU: 80 13 01 00 [17:59:12]Write to MH i2c: E2 08 00 79 75 80 13 01 00 00 00 00 00 6B [17:59:12]Write i2c OK [17:59:12]MH_I2C_Read... [17:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:12]Read from MH i2c: E2 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 0E 00 [17:59:12]MH_I2C_Read... [17:59:12]Read from MH i2c: E2 0E 00 79 75 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 74 [17:59:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [17:59:12]wFMCommunicate OK [17:59:12]SAM_PROTO_GetShiftState done [17:59:12]FM_GetShiftState done [17:59:12]req_shift_opened done [17:59:12]requested_item shift.open_date is exist - process it [17:59:12]req_shift_open_date [17:59:12]req_shift_open_date done [17:59:12]produce_requested_data done [17:59:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166149,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [17:59:12]process_action_free close_receipt [17:59:12]json_value_free [17:59:12]json_value_free done [17:59:12]process_json_proto returns [17:59:12]Send response to host [17:59:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166149,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [17:59:12]free response buf [17:59:12]execute_script done [17:59:12]execute_script returns [17:59:12]free content buf [17:59:12]Sock 6.Close socket [17:59:12]Sock 6.Thread stoped [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:20]accept exits with 5 [18:02:20]New connection [18:02:20]New thread 3066920292 created [18:02:20]Thread 3066776932 joined [18:02:20]Waiting for new connection... [18:02:20] Sock 5.Parse request [18:02:20]Sock 5.Check first char [18:02:20]Sock 5.First char is OK [18:02:20]request: POST /json_proto HTTP/1.0 [18:02:20]Method: POST [18:02:20]URL: /json_proto [18:02:20]Method is POST - this is cgi request [18:02:20]url: /json_proto [18:02:20]query_string will be loaded in cgi processing [18:02:20]execute_cgi json_proto POST (null) [18:02:20]execute_cgi path=json_proto method=POST [18:02:20]POST find Content-Length [18:02:20]Host: 172.17.53.195:8080 [18:02:20]Content-Length: 677 [18:02:20]Content-Type: application/json [18:02:20] [18:02:20]POST finish read [18:02:20]Found Content-Length = 677 [18:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:20]execute_script... [18:02: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)220721", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:20]POST & json_proto [18:02:20]process_json_proto [18:02:20]json parsed OK: [18:02:20]protocol is kg_v1.0 [18:02:20]action value=close_receipt [18:02:20]process_action close_receipt [18:02:20]cmd_close_receipt [18:02:20]MH_GetDate [18:02:20]Write to MH i2c: F0 00 00 7A 75 DE [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: F0 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: F0 09 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: F0 09 00 7A 75 00 3F 97 16 67 21 48 4A 65 52 [18:02:20]GetLastDocTimeStamp 1729533568 [18:02:20]current date 1729533759 [18:02:20]FM_GetShiftState [18:02:20]SAM_PROTO_GetShiftState [18:02:20]wFMCommunicate request_size=4 [18:02:20]MH_SAM_APDU [18:02:20]CAPDU: 80 13 01 00 [18:02:20]Write to MH i2c: E2 08 00 7B 75 80 13 01 00 00 00 00 00 6D [18:02:20]Write i2c OK [18:02:20]MH_I2C_Read... [18:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:20]Read from MH i2c: E2 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0E 00 [18:02:20]MH_I2C_Read... [18:02:20]Read from MH i2c: E2 0E 00 7B 75 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 76 [18:02:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:02:20]wFMCommunicate OK [18:02:20]SAM_PROTO_GetShiftState done [18:02:20]FM_GetShiftState done [18:02:20]opened in 1729470944 [18:02:20]opened+sec_in_day 1729557344 [18:02:20]quantity*price = 49974 [18:02:20]sum+1 = 49975 [18:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 261 21.10.2024 18:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166150 ФПД: 265846334022121 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180239&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166150&fm=265846334022121&tin=02508201610067®Number=0000000000091764&sum=49900 [18:02:21]StoreToDocumentArchive [18:02:21]shift 535 fd 166150 [18:02:21]save to /storage/0535/doc_00166150 [18:02:21]save last doc name /storage/0535/doc_00166150 to /storage/kkm_last_doc_name [18:02:21]save OK [18:02:21]Clear old archive folders... [18:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:21]tlvbuf is 01891900 [18:02:21]SAM_PROTO_ClearQueue [18:02:21]wFMCommunicate request_size=4 [18:02:21]MH_SAM_APDU [18:02:21]CAPDU: 80 09 00 00 [18:02:21]Write to MH i2c: E2 08 00 88 75 80 09 00 00 00 00 00 00 6F [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:21]Read from MH i2c: E2 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: E2 03 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: E2 03 00 88 75 00 90 00 71 [18:02:21]RAPDU: 90 00 [18:02:21]wFMCommunicate OK [18:02:21]SAM_PROTO_ClearQueue done [18:02:21]KKMCreateOFDPacket [18:02:21]OFDProtocolAddRootSTLVToBuf [18:02:21]FM_MakeSignedData [18:02:21]FM_MakeSignedData [18:02:21]SAM_PROTO_SignData [18:02:21]wFMCommunicate request_size=4 [18:02:21]MH_SAM_APDU [18:02:21]CAPDU: 80 0D 01 02 [18:02:21]Write to MH i2c: E2 08 00 89 75 80 0D 01 02 00 00 00 00 77 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:21]Read from MH i2c: E2 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: E2 03 00 [18:02:21]MH_I2C_Read... [18:02:21]Read from MH i2c: E2 03 00 89 75 00 90 00 72 [18:02:21]RAPDU: 90 00 [18:02:21]wFMCommunicate OK [18:02:21]wFMCommunicate request_size=255 [18:02:21]MH_SAM_APDU [18:02: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3F 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 89 02 00 35 04 06 00 F1 [18:02:21]Write to MH i2c: E2 02 01 8A 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3F 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 89 02 00 35 04 06 00 F1 00 00 E2 [18:02:21]Write i2c OK [18:02:21]MH_I2C_Read... [18:02:21]OFD Sender: No OFD packet to send [18:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 03 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 03 00 8A 75 00 90 00 73 [18:02:22]RAPDU: 90 00 [18:02:22]wFMCommunicate OK [18:02:22]wFMCommunicate request_size=10 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 0D 02 02 05 C9 2C 4D E1 E9 [18:02:22]Write to MH i2c: E2 0D 00 8B 75 80 0D 02 02 05 00 C9 2C 4D E1 E9 00 00 90 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 03 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 03 00 8B 75 00 90 00 74 [18:02:22]RAPDU: 90 00 [18:02:22]wFMCommunicate OK [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 0D 03 02 [18:02:22]Write to MH i2c: E2 08 00 8C 75 80 0D 03 02 00 00 00 00 7C [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 0B 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 0B 00 8C 75 00 D6 19 07 61 C9 EA 97 10 90 00 2E [18:02:22]RAPDU: D6 19 07 61 C9 EA 97 10 90 00 [18:02:22]wFMCommunicate OK [18:02:22]SAM_PROTO_SignData done [18:02:22]FM_MakeSignedData done [18:02:22]CreateOFDProtocolMessage [18:02:22]wFMCommunicate request_size=4 [18:02:22]MH_SAM_APDU [18:02:22]CAPDU: 80 11 00 00 [18:02:22]Write to MH i2c: E2 08 00 8D 75 80 11 00 00 00 00 00 00 7C [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:22]Read from MH i2c: E2 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: E2 17 00 8D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [18:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:02:22]wFMCommunicate OK [18:02:22]CreateOFDProtocolMessage done [18:02:22]OFDSenderStorePacket 166150 [18:02:22]StoreOFDPacket docnum=166150 [18:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 70 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3F 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 89 02 00 35 04 06 00 F1 C9 2C 4D E1 E9 D6 19 07 61 C9 EA 97 10 [18:02:22]CheckFolder [18:02:22]dirname=/storage/ofd_packets [18:02:22]CheckFolder done [18:02:22]ProducePacketName [18:02:22]name=ofd_packets/00166150 [18:02:22]NVStorageSaveData ofd_packets/00166150 [18:02:22]File name is /storage/ofd_packets/00166150 [18:02:22]Write 301 bytes [18:02:22]NVStorageSaveData done [18:02:22]OFDSenderStorePacket done [18:02:22]KKMCreateOFDPacket done [18:02:22]NVStorageSaveData kkm_last_timestamp [18:02:22]File name is /storage/kkm_last_timestamp [18:02:22]Write 4 bytes [18:02:22]NVStorageSaveData done [18:02:22]ExternCall_PrintAddStr [18:02:22]wPrintStart [18:02:22]Write to MH i2c: 01 00 00 8E 75 03 [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 07 00 [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 07 00 8E 75 00 00 00 00 00 FF 0F 18 [18:02:22]RasterBufferAndPrint [18:02:22]line Счет N : (1)220721 [18:02:22]line ИНН: 02508201610067 [18:02:22]line Контрольно-Кассовый Чек [18:02:22]line ПРОДАЖА [18:02:22]line ТРК (МРК, ГНК) : 13 [18:02:22]line Товар: 2710124130 [18:02:22]line Аи-92-К-5 [18:02:22]line 7.470 * 66.90 [18:02:22]line = 499.74 [18:02:22]line НДС 12% НСП 1% [18:02:22]line > о реализуемом товаре [18:02:22]line ОКРУГЛЕНИЕ: -0.74 [18:02:22]line ИТОГО: 499.00 [18:02:22]line Внесено: 500.00 [18:02:22]line СДАЧА: 1.00 [18:02:22]line НСП 1% : 4.42 [18:02:22]line НДС 12% : 53.07 [18:02:22]line Наличными: 499.00 [18:02:22]line Безнал.: 0.00 [18:02:22]line Место: АЗС № 161 "Партнер Нефть" [18:02:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:02:22]line СНО: Общий режим [18:02:22]line Чек 261 21.10.2024 18:02 [18:02:22]line Смена: 535 ФФД: 1.0 [18:02:22]line ЗНМ: 0300000104 [18:02:22]line РНМ: 0000000000091764 [18:02:22]line Версия ККМ: 001 [18:02:22]line ФМ: 0000000000871759 [18:02:22]line ФД: 166150 [18:02:22]line ФПД: 265846334022121 [18:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180239&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166150&fm=265846334022121&tin=02508201610067®Number=0000000000091764&sum=49900 [18:02:22]OFD Sender: Processing packet 166150 [packets to send 48, broken 47] [18:02:22]ProducePacketName [18:02:22]name=ofd_packets/00166150 [18:02:22]OFD Sender: To server: pG, [18:02:22]CommunicateWithHost lk.salyk.kg:30040 [18:02:22]ConnectInit lk.salyk.kg [18:02:22]written 0, free lines is 4095 [18:02:22]Connected sock=7 [18:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 01 70 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3F 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 89 02 00 35 04 06 00 F1 C9 2C 4D E1 E9 D6 19 07 61 C9 EA 97 10 [18:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 19 92 47 00 5D 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 06 89 02 00 F4 03 04 00 AD 3D 16 67 B6 04 01 00 00 6C 4E A2 CF CF 1E 8B 35 [18:02:22]CommunicateWithHost err = 0 [18:02:22]CheckOFDResponse [18:02:22]1017 (14) - 77093643461234 [18:02:22]1041 (16) - 0000000000871759 [18:02:22]1040 (4) - 166150 [18:02:22]1012 (4) - 21.10.2024 11:40 [18:02:22]1206 (1) - 0 [18:02:22]OFD Sender: Remove packet 166150 [18:02:22]ProducePacketName [18:02:22]name=ofd_packets/00166150 [18:02:22]NVStorageDeleteData [18:02:22]Write to MH i2c: 01 00 00 B9 75 2E [18:02:22]Write i2c OK [18:02:22]MH_I2C_Read... [18:02:22]Read from MH i2c: 01 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: 01 07 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: 01 07 00 B9 75 00 00 00 00 00 CD 0C 0E [18:02:23]RasterBufferAndPrint [18:02:23]line [18:02:23]line [18:02:23]line [18:02:23]line [18:02:23]line [18:02:23]written 0, free lines is 3286 [18:02:23]MH_Cut [18:02:23]Write to MH i2c: D1 01 00 C0 75 01 07 [18:02:23]Write i2c OK [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: D1 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: D1 01 00 [18:02:23]MH_I2C_Read... [18:02:23]Read from MH i2c: D1 01 00 C0 75 00 06 [18:02:23]Write to MH i2c: 01 00 00 C1 75 36 [18:02:23]Write i2c OK [18:02:23]MH_I2C_Read... [18:02:23]OFD Sender: No OFD packet to send [18:02:23]*** Cut start [18:02:23]*** Partial cut [18:02:23]*** CUTSNS_PIN = 1 [18:02:23]*** CUTSNS_PIN = 0 [18:02:24]*** Brake cut motor [18:02:24]Read from MH i2c: 01 [18:02:24]MH_I2C_Read... [18:02:24]*** Stop cut motor [18:02:24]*** Cut end [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 C1 75 00 00 00 00 00 FF 0F 4B [18:02:24]process_action close_receipt done [18:02:24]requested_data is exist [18:02:24]produce_requested_data [18:02:24]requested_item fm.sn is exist - process it [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 C2 75 80 11 00 00 00 00 00 00 B1 [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 C2 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 09 [18:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:02:24]wFMCommunicate OK [18:02:24]requested_item fd.num is exist - process it [18:02:24]SAM_PROTO_GetFieldsCounters [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 13 00 00 [18:02:24]Write to MH i2c: E2 08 00 C3 75 80 13 00 00 00 00 00 00 B4 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 62 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 62 00 C3 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [18:02:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 06 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:24]wFMCommunicate OK [18:02:24]SAM_PROTO_GetFieldsCounters done [18:02:24]requested_item shift.num is exist - process it [18:02:24]requested_item shift.opened is exist - process it [18:02:24]req_shift_opened [18:02:24]FM_GetShiftState [18:02:24]SAM_PROTO_GetShiftState [18:02:24]wFMCommunicate request_size=4 [18:02:24]MH_SAM_APDU [18:02:24]CAPDU: 80 13 01 00 [18:02:24]Write to MH i2c: E2 08 00 C4 75 80 13 01 00 00 00 00 00 B6 [18:02:24]Write i2c OK [18:02:24]MH_I2C_Read... [18:02:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:24]Read from MH i2c: E2 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 0E 00 [18:02:24]MH_I2C_Read... [18:02:24]Read from MH i2c: E2 0E 00 C4 75 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BF [18:02:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:02:24]wFMCommunicate OK [18:02:24]SAM_PROTO_GetShiftState done [18:02:24]FM_GetShiftState done [18:02:24]req_shift_opened done [18:02:24]requested_item shift.open_date is exist - process it [18:02:24]req_shift_open_date [18:02:24]req_shift_open_date done [18:02:24]produce_requested_data done [18:02:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166150,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:02:24]process_action_free close_receipt [18:02:24]json_value_free [18:02:24]json_value_free done [18:02:24]process_json_proto returns [18:02:24]Send response to host [18:02:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166150,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:02:24]free response buf [18:02:24]execute_script done [18:02:24]execute_script returns [18:02:24]free content buf [18:02:24]Sock 5.Close socket [18:02:24]Sock 5.Thread stoped [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:53]OFD Sender: No OFD packet to send [18:04:57]accept exits with 6 [18:04:57]New connection [18:04:57]New thread 3066776932 created [18:04:57]Thread 3066920292 joined [18:04:57]Waiting for new connection... [18:04:57] Sock 6.Parse request [18:04:57]Sock 6.Check first char [18:04:57]Sock 6.First char is OK [18:04:57]request: POST /json_proto HTTP/1.0 [18:04:57]Method: POST [18:04:57]URL: /json_proto [18:04:57]Method is POST - this is cgi request [18:04:57]url: /json_proto [18:04:57]query_string will be loaded in cgi processing [18:04:57]execute_cgi json_proto POST (null) [18:04:57]execute_cgi path=json_proto method=POST [18:04:57]POST find Content-Length [18:04:57]Host: 172.17.53.195:8080 [18:04:57]Content-Length: 682 [18:04:57]Content-Type: application/json [18:04:57] [18:04:57]POST finish read [18:04:57]Found Content-Length = 682 [18:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:57]execute_script... [18:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:57]POST & json_proto [18:04:57]process_json_proto [18:04:57]json parsed OK: [18:04:57]protocol is kg_v1.0 [18:04:57]action value=close_receipt [18:04:57]process_action close_receipt [18:04:57]cmd_close_receipt [18:04:57]MH_GetDate [18:04:57]Write to MH i2c: F0 00 00 C5 75 29 [18:04:57]Write i2c OK [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: F0 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: F0 09 00 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: F0 09 00 C5 75 00 DD 97 16 67 21 48 4A 65 3B [18:04:57]GetLastDocTimeStamp 1729533759 [18:04:57]current date 1729533917 [18:04:57]FM_GetShiftState [18:04:57]SAM_PROTO_GetShiftState [18:04:57]wFMCommunicate request_size=4 [18:04:57]MH_SAM_APDU [18:04:57]CAPDU: 80 13 01 00 [18:04:57]Write to MH i2c: E2 08 00 C6 75 80 13 01 00 00 00 00 00 B8 [18:04:57]Write i2c OK [18:04:57]MH_I2C_Read... [18:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:57]Read from MH i2c: E2 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: E2 0E 00 [18:04:57]MH_I2C_Read... [18:04:57]Read from MH i2c: E2 0E 00 C6 75 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C1 [18:04:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:04:57]wFMCommunicate OK [18:04:57]SAM_PROTO_GetShiftState done [18:04:57]FM_GetShiftState done [18:04:57]opened in 1729470944 [18:04:57]opened+sec_in_day 1729557344 [18:04:57]quantity*price = 100015 [18:04:57]sum+1 = 100017 [18:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 262 21.10.2024 18:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166151 ФПД: 137161744344587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166151&fm=137161744344587&tin=02508201610067®Number=0000000000091764&sum=100000 [18:04:59]StoreToDocumentArchive [18:04:59]shift 535 fd 166151 [18:04:59]save to /storage/0535/doc_00166151 [18:04:59]save last doc name /storage/0535/doc_00166151 to /storage/kkm_last_doc_name [18:04:59]save OK [18:04:59]Clear old archive folders... [18:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:59]tlvbuf is 01C45AF0 [18:04:59]SAM_PROTO_ClearQueue [18:04:59]wFMCommunicate request_size=4 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 09 00 00 [18:04:59]Write to MH i2c: E2 08 00 D3 75 80 09 00 00 00 00 00 00 BA [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:59]Read from MH i2c: E2 03 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 D3 75 00 90 00 BC [18:04:59]RAPDU: 90 00 [18:04:59]wFMCommunicate OK [18:04:59]SAM_PROTO_ClearQueue done [18:04:59]KKMCreateOFDPacket [18:04:59]OFDProtocolAddRootSTLVToBuf [18:04:59]FM_MakeSignedData [18:04:59]FM_MakeSignedData [18:04:59]SAM_PROTO_SignData [18:04:59]wFMCommunicate request_size=4 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 0D 01 02 [18:04:59]Write to MH i2c: E2 08 00 D4 75 80 0D 01 02 00 00 00 00 C2 [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 D4 75 00 90 00 BD [18:04:59]RAPDU: 90 00 [18:04:59]wFMCommunicate OK [18:04:59]wFMCommunicate request_size=255 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 89 02 00 35 04 06 00 7C [18:04:59]Write to MH i2c: E2 02 01 D5 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 89 02 00 35 04 06 00 7C 00 00 71 [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 D5 75 00 90 00 BE [18:04:59]RAPDU: 90 00 [18:04:59]wFMCommunicate OK [18:04:59]wFMCommunicate request_size=10 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 0D 02 02 05 BF 75 0C 66 0B [18:04:59]Write to MH i2c: E2 0D 00 D6 75 80 0D 02 02 05 00 BF 75 0C 66 0B 00 00 80 [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 03 00 D6 75 00 90 00 BF [18:04:59]RAPDU: 90 00 [18:04:59]wFMCommunicate OK [18:04:59]wFMCommunicate request_size=4 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 0D 03 02 [18:04:59]Write to MH i2c: E2 08 00 D7 75 80 0D 03 02 00 00 00 00 C7 [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 0B 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 0B 00 D7 75 00 09 42 95 E0 6D 7D 69 10 90 00 EB [18:04:59]RAPDU: 09 42 95 E0 6D 7D 69 10 90 00 [18:04:59]wFMCommunicate OK [18:04:59]SAM_PROTO_SignData done [18:04:59]FM_MakeSignedData done [18:04:59]CreateOFDProtocolMessage [18:04:59]wFMCommunicate request_size=4 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 11 00 00 [18:04:59]Write to MH i2c: E2 08 00 D8 75 80 11 00 00 00 00 00 00 C7 [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 17 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 17 00 D8 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [18:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:04:59]wFMCommunicate OK [18:04:59]CreateOFDProtocolMessage done [18:04:59]OFDSenderStorePacket 166151 [18:04:59]StoreOFDPacket docnum=166151 [18:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 1A 07 01 60 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 89 02 00 35 04 06 00 7C BF 75 0C 66 0B 09 42 95 E0 6D 7D 69 10 [18:04:59]CheckFolder [18:04:59]dirname=/storage/ofd_packets [18:04:59]CheckFolder done [18:04:59]ProducePacketName [18:04:59]name=ofd_packets/00166151 [18:04:59]NVStorageSaveData ofd_packets/00166151 [18:04:59]File name is /storage/ofd_packets/00166151 [18:04:59]Write 301 bytes [18:04:59]NVStorageSaveData done [18:04:59]OFDSenderStorePacket done [18:04:59]KKMCreateOFDPacket done [18:04:59]NVStorageSaveData kkm_last_timestamp [18:04:59]File name is /storage/kkm_last_timestamp [18:04:59]Write 4 bytes [18:04:59]NVStorageSaveData done [18:04:59]ExternCall_PrintAddStr [18:04:59]wPrintStart [18:04:59]Write to MH i2c: 01 00 00 D9 75 4E [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: 01 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: 01 07 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: 01 07 00 D9 75 00 00 00 00 00 FF 0F 63 [18:04:59]RasterBufferAndPrint [18:04:59]line Счет N : (1)220722 [18:04:59]line ИНН: 02508201610067 [18:04:59]line Контрольно-Кассовый Чек [18:04:59]line ПРОДАЖА [18:04:59]line ТРК (МРК, ГНК) : 13 [18:04:59]line Товар: 2710124130 [18:04:59]line Аи-92-К-5 [18:04:59]line 14.950 * 66.90 [18:04:59]line = 1000.16 [18:04:59]line НДС 12% НСП 1% [18:04:59]line > о реализуемом товаре [18:04:59]line ОКРУГЛЕНИЕ: -0.16 [18:04:59]line ИТОГО: 1000.00 [18:04:59]line Внесено: 1000.00 [18:04:59]line СДАЧА: 0.00 [18:04:59]line НСП 1% : 8.85 [18:04:59]line НДС 12% : 106.21 [18:04:59]line Наличными: 1000.00 [18:04:59]line Безнал.: 0.00 [18:04:59]line Место: АЗС № 161 "Партнер Нефть" [18:04:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:04:59]line СНО: Общий режим [18:04:59]line Чек 262 21.10.2024 18:05 [18:04:59]line Смена: 535 ФФД: 1.0 [18:04:59]line ЗНМ: 0300000104 [18:04:59]line РНМ: 0000000000091764 [18:04:59]line Версия ККМ: 001 [18:04:59]line ФМ: 0000000000871759 [18:04:59]line ФД: 166151 [18:04:59]line ФПД: 137161744344587 [18:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180517&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166151&fm=137161744344587&tin=02508201610067®Number=0000000000091764&sum=100000 [18:04:59]OFD Sender: Processing packet 166151 [packets to send 48, broken 47] [18:04:59]ProducePacketName [18:04:59]name=ofd_packets/00166151 [18:04:59]OFD Sender: To server: pG, [18:04:59]CommunicateWithHost lk.salyk.kg:30040 [18:04:59]ConnectInit lk.salyk.kg [18:04:59]written 0, free lines is 4095 [18:05:00]Connected sock=7 [18:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B0 1A 07 01 60 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 DD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 89 02 00 35 04 06 00 7C BF 75 0C 66 0B 09 42 95 E0 6D 7D 69 10 [18:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 82 42 47 00 8E BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 07 89 02 00 F4 03 04 00 4B 3E 16 67 B6 04 01 00 00 58 60 2D 76 58 60 E3 08 [18:05:00]CommunicateWithHost err = 0 [18:05:00]CheckOFDResponse [18:05:00]1017 (14) - 77093643461234 [18:05:00]1041 (16) - 0000000000871759 [18:05:00]1040 (4) - 166151 [18:05:00]1012 (4) - 21.10.2024 11:43 [18:05:00]1206 (1) - 0 [18:05:00]OFD Sender: Remove packet 166151 [18:05:00]ProducePacketName [18:05:00]name=ofd_packets/00166151 [18:05:00]NVStorageDeleteData [18:05:00]Write to MH i2c: 01 00 00 04 76 7A [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 07 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 07 00 04 76 00 00 00 00 00 CB 0C 58 [18:05:00]RasterBufferAndPrint [18:05:00]line [18:05:00]line [18:05:00]line [18:05:00]line [18:05:00]line [18:05:00]written 0, free lines is 3280 [18:05:00]MH_Cut [18:05:00]Write to MH i2c: D1 01 00 0B 76 01 53 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: D1 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: D1 01 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: D1 01 00 0B 76 00 52 [18:05:00]Write to MH i2c: 01 00 00 0C 76 82 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]OFD Sender: No OFD packet to send [18:05:01]*** Cut start [18:05:01]*** Partial cut [18:05:01]*** CUTSNS_PIN = 1 [18:05:01]*** CUTSNS_PIN = 0 [18:05:01]*** Brake cut motor [18:05:01]Read from MH i2c: 01 [18:05:01]MH_I2C_Read... [18:05:01]*** Stop cut motor [18:05:01]*** Cut end [18:05:01]Read from MH i2c: 01 07 00 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 07 00 0C 76 00 00 00 00 00 FF 0F 97 [18:05:01]process_action close_receipt done [18:05:01]requested_data is exist [18:05:01]produce_requested_data [18:05:01]requested_item fm.sn is exist - process it [18:05:01]wFMCommunicate request_size=4 [18:05:01]MH_SAM_APDU [18:05:01]CAPDU: 80 11 00 00 [18:05:01]Write to MH i2c: E2 08 00 0D 76 80 11 00 00 00 00 00 00 FD [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:01]Read from MH i2c: E2 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: E2 17 00 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: E2 17 00 0D 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [18:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:05:01]wFMCommunicate OK [18:05:01]requested_item fd.num is exist - process it [18:05:01]SAM_PROTO_GetFieldsCounters [18:05:01]wFMCommunicate request_size=4 [18:05:01]MH_SAM_APDU [18:05:01]CAPDU: 80 13 00 00 [18:05:01]Write to MH i2c: E2 08 00 0E 76 80 13 00 00 00 00 00 00 00 [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:02]Read from MH i2c: E2 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 62 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 62 00 0E 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [18:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 07 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:02]wFMCommunicate OK [18:05:02]SAM_PROTO_GetFieldsCounters done [18:05:02]requested_item shift.num is exist - process it [18:05:02]requested_item shift.opened is exist - process it [18:05:02]req_shift_opened [18:05:02]FM_GetShiftState [18:05:02]SAM_PROTO_GetShiftState [18:05:02]wFMCommunicate request_size=4 [18:05:02]MH_SAM_APDU [18:05:02]CAPDU: 80 13 01 00 [18:05:02]Write to MH i2c: E2 08 00 0F 76 80 13 01 00 00 00 00 00 02 [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:02]Read from MH i2c: E2 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 0E 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 0E 00 0F 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0B [18:05:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:05:02]wFMCommunicate OK [18:05:02]SAM_PROTO_GetShiftState done [18:05:02]FM_GetShiftState done [18:05:02]req_shift_opened done [18:05:02]requested_item shift.open_date is exist - process it [18:05:02]req_shift_open_date [18:05:02]req_shift_open_date done [18:05:02]produce_requested_data done [18:05:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166151,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:05:02]process_action_free close_receipt [18:05:02]json_value_free [18:05:02]json_value_free done [18:05:02]process_json_proto returns [18:05:02]Send response to host [18:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166151,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:05:02]free response buf [18:05:02]execute_script done [18:05:02]execute_script returns [18:05:02]free content buf [18:05:02]Sock 6.Close socket [18:05:02]Sock 6.Thread stoped [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:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]accept exits with 5 [18:05:30]New connection [18:05:30]New thread 3066920292 created [18:05:30]Thread 3066776932 joined [18:05:30]Waiting for new connection... [18:05:30] Sock 5.Parse request [18:05:30]Sock 5.Check first char [18:05:30]Sock 5.First char is OK [18:05:30]request: POST /json_proto HTTP/1.0 [18:05:30]Method: POST [18:05:30]URL: /json_proto [18:05:30]Method is POST - this is cgi request [18:05:30]url: /json_proto [18:05:30]query_string will be loaded in cgi processing [18:05:30]execute_cgi json_proto POST (null) [18:05:30]execute_cgi path=json_proto method=POST [18:05:30]POST find Content-Length [18:05:30]Host: 172.17.53.195:8080 [18:05:30]Content-Length: 677 [18:05:30]Content-Type: application/json [18:05:30] [18:05:30]POST finish read [18:05:30]Found Content-Length = 677 [18:05:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:30]execute_script... [18:05: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)220723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:30]POST & json_proto [18:05:30]process_json_proto [18:05:30]json parsed OK: [18:05:30]protocol is kg_v1.0 [18:05:30]action value=close_receipt [18:05:30]process_action close_receipt [18:05:30]cmd_close_receipt [18:05:30]MH_GetDate [18:05:30]Write to MH i2c: F0 00 00 10 76 75 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: F0 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: F0 09 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: F0 09 00 10 76 00 FD 97 16 67 21 48 4A 65 A7 [18:05:30]GetLastDocTimeStamp 1729533917 [18:05:30]current date 1729533949 [18:05:30]FM_GetShiftState [18:05:30]SAM_PROTO_GetShiftState [18:05:30]wFMCommunicate request_size=4 [18:05:30]MH_SAM_APDU [18:05:30]CAPDU: 80 13 01 00 [18:05:30]Write to MH i2c: E2 08 00 11 76 80 13 01 00 00 00 00 00 04 [18:05:30]Write i2c OK [18:05:30]MH_I2C_Read... [18:05:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:30]Read from MH i2c: E2 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 0E 00 [18:05:30]MH_I2C_Read... [18:05:30]Read from MH i2c: E2 0E 00 11 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0D [18:05:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:05:30]wFMCommunicate OK [18:05:30]SAM_PROTO_GetShiftState done [18:05:30]FM_GetShiftState done [18:05:30]opened in 1729470944 [18:05:30]opened+sec_in_day 1729557344 [18:05:30]quantity*price = 20003 [18:05:30]sum+1 = 20004 [18:05:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 263 21.10.2024 18:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166152 ФПД: 125135309557661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166152&fm=125135309557661&tin=02508201610067®Number=0000000000091764&sum=20000 [18:05:31]StoreToDocumentArchive [18:05:31]shift 535 fd 166152 [18:05:31]save to /storage/0535/doc_00166152 [18:05:31]save last doc name /storage/0535/doc_00166152 to /storage/kkm_last_doc_name [18:05:31]save OK [18:05:31]Clear old archive folders... [18:05:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:31]tlvbuf is 01C362B0 [18:05:31]SAM_PROTO_ClearQueue [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 09 00 00 [18:05:31]Write to MH i2c: E2 08 00 1E 76 80 09 00 00 00 00 00 00 06 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 1E 76 00 90 00 08 [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_ClearQueue done [18:05:31]KKMCreateOFDPacket [18:05:31]OFDProtocolAddRootSTLVToBuf [18:05:31]FM_MakeSignedData [18:05:31]FM_MakeSignedData [18:05:31]SAM_PROTO_SignData [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 01 02 [18:05:31]Write to MH i2c: E2 08 00 1F 76 80 0D 01 02 00 00 00 00 0E [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 1F 76 00 90 00 09 [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=255 [18:05:31]MH_SAM_APDU [18:05: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 89 02 00 35 04 06 00 71 [18:05:31]Write to MH i2c: E2 02 01 20 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 89 02 00 35 04 06 00 71 00 00 9C [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 20 76 00 90 00 0A [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=10 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 02 02 05 CF 55 AC CF 9D [18:05:31]Write to MH i2c: E2 0D 00 21 76 80 0D 02 02 05 00 CF 55 AC CF 9D 00 00 57 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 03 00 21 76 00 90 00 0B [18:05:31]RAPDU: 90 00 [18:05:31]wFMCommunicate OK [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 0D 03 02 [18:05:31]Write to MH i2c: E2 08 00 22 76 80 0D 03 02 00 00 00 00 13 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 0B 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 0B 00 22 76 00 15 05 DE F9 9B 49 70 DF 90 00 38 [18:05:31]RAPDU: 15 05 DE F9 9B 49 70 DF 90 00 [18:05:31]wFMCommunicate OK [18:05:31]SAM_PROTO_SignData done [18:05:31]FM_MakeSignedData done [18:05:31]CreateOFDProtocolMessage [18:05:31]wFMCommunicate request_size=4 [18:05:31]MH_SAM_APDU [18:05:31]CAPDU: 80 11 00 00 [18:05:31]Write to MH i2c: E2 08 00 23 76 80 11 00 00 00 00 00 00 13 [18:05:31]Write i2c OK [18:05:31]MH_I2C_Read... [18:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:31]Read from MH i2c: E2 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 17 00 [18:05:31]MH_I2C_Read... [18:05:31]Read from MH i2c: E2 17 00 23 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [18:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:05:32]wFMCommunicate OK [18:05:32]CreateOFDProtocolMessage done [18:05:32]OFDSenderStorePacket 166152 [18:05:32]StoreOFDPacket docnum=166152 [18:05:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C C0 07 01 3B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 89 02 00 35 04 06 00 71 CF 55 AC CF 9D 15 05 DE F9 9B 49 70 DF [18:05:32]CheckFolder [18:05:32]dirname=/storage/ofd_packets [18:05:32]CheckFolder done [18:05:32]ProducePacketName [18:05:32]name=ofd_packets/00166152 [18:05:32]NVStorageSaveData ofd_packets/00166152 [18:05:32]File name is /storage/ofd_packets/00166152 [18:05:32]Write 301 bytes [18:05:32]NVStorageSaveData done [18:05:32]OFDSenderStorePacket done [18:05:32]KKMCreateOFDPacket done [18:05:32]NVStorageSaveData kkm_last_timestamp [18:05:32]File name is /storage/kkm_last_timestamp [18:05:32]Write 4 bytes [18:05:32]NVStorageSaveData done [18:05:32]ExternCall_PrintAddStr [18:05:32]wPrintStart [18:05:32]Write to MH i2c: 01 00 00 24 76 9A [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 24 76 00 00 00 00 00 FF 0F AF [18:05:32]RasterBufferAndPrint [18:05:32]line Счет N : (1)220723 [18:05:32]line ИНН: 02508201610067 [18:05:32]line Контрольно-Кассовый Чек [18:05:32]line ПРОДАЖА [18:05:32]line ТРК (МРК, ГНК) : 33 [18:05:32]line Товар: 2710124130 [18:05:32]line Аи-92-К-5 [18:05:32]line 2.990 * 66.90 [18:05:32]line = 200.03 [18:05:32]line НДС 12% НСП 1% [18:05:32]line > о реализуемом товаре [18:05:32]line ОКРУГЛЕНИЕ: -0.03 [18:05:32]line ИТОГО: 200.00 [18:05:32]line Внесено: 200.00 [18:05:32]line СДАЧА: 0.00 [18:05:32]line НСП 1% : 1.77 [18:05:32]line НДС 12% : 21.24 [18:05:32]line Наличными: 200.00 [18:05:32]line Безнал.: 0.00 [18:05:32]line Место: АЗС № 161 "Партнер Нефть" [18:05:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:05:32]line СНО: Общий режим [18:05:32]line Чек 263 21.10.2024 18:05 [18:05:32]line Смена: 535 ФФД: 1.0 [18:05:32]line ЗНМ: 0300000104 [18:05:32]line РНМ: 0000000000091764 [18:05:32]line Версия ККМ: 001 [18:05:32]line ФМ: 0000000000871759 [18:05:32]line ФД: 166152 [18:05:32]line ФПД: 125135309557661 [18:05:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T180549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166152&fm=125135309557661&tin=02508201610067®Number=0000000000091764&sum=20000 [18:05:32]OFD Sender: Processing packet 166152 [packets to send 48, broken 47] [18:05:32]ProducePacketName [18:05:32]name=ofd_packets/00166152 [18:05:32]OFD Sender: To server: pG, [18:05:32]CommunicateWithHost lk.salyk.kg:30040 [18:05:32]written 0, free lines is 4095 [18:05:32]ConnectInit lk.salyk.kg [18:05:32]Connected sock=7 [18:05:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 5C C0 07 01 3B 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 FD 97 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 08 89 02 00 35 04 06 00 71 CF 55 AC CF 9D 15 05 DE F9 9B 49 70 DF [18:05:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E1 28 47 00 FA 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 35 39 10 04 04 00 08 89 02 00 F4 03 04 00 6B 3E 16 67 B6 04 01 00 00 56 2A 50 C3 E3 87 F6 F2 [18:05:32]CommunicateWithHost err = 0 [18:05:32]CheckOFDResponse [18:05:32]1017 (14) - 77093643461234 [18:05:32]1041 (16) - 0000000000871759 [18:05:32]1040 (4) - 166152 [18:05:32]1012 (4) - 21.10.2024 11:43 [18:05:32]1206 (1) - 0 [18:05:32]OFD Sender: Remove packet 166152 [18:05:32]ProducePacketName [18:05:32]name=ofd_packets/00166152 [18:05:32]NVStorageDeleteData [18:05:32]Write to MH i2c: 01 00 00 4F 76 C5 [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: 01 07 00 4F 76 00 00 00 00 00 D9 0C B1 [18:05:32]RasterBufferAndPrint [18:05:32]line [18:05:32]line [18:05:32]line [18:05:32]line [18:05:32]line [18:05:32]written 0, free lines is 3296 [18:05:32]MH_Cut [18:05:32]Write to MH i2c: D1 01 00 56 76 01 9E [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: D1 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: D1 01 00 [18:05:32]MH_I2C_Read... [18:05:32]Read from MH i2c: D1 01 00 56 76 00 9D [18:05:32]Write to MH i2c: 01 00 00 57 76 CD [18:05:32]Write i2c OK [18:05:32]MH_I2C_Read... [18:05:33]OFD Sender: No OFD packet to send [18:05:33]*** Cut start [18:05:33]*** Partial cut [18:05:33]*** CUTSNS_PIN = 1 [18:05:33]*** CUTSNS_PIN = 0 [18:05:33]*** Brake cut motor [18:05:34]Read from MH i2c: 01 [18:05:34]MH_I2C_Read... [18:05:34]*** Stop cut motor [18:05:34]*** Cut end [18:05:34]Read from MH i2c: 01 07 00 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: 01 07 00 57 76 00 00 00 00 00 FF 0F E2 [18:05:34]process_action close_receipt done [18:05:34]requested_data is exist [18:05:34]produce_requested_data [18:05:34]requested_item fm.sn is exist - process it [18:05:34]wFMCommunicate request_size=4 [18:05:34]MH_SAM_APDU [18:05:34]CAPDU: 80 11 00 00 [18:05:34]Write to MH i2c: E2 08 00 58 76 80 11 00 00 00 00 00 00 48 [18:05:34]Write i2c OK [18:05:34]MH_I2C_Read... [18:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:34]Read from MH i2c: E2 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: E2 17 00 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: E2 17 00 58 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A0 [18:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:05:34]wFMCommunicate OK [18:05:34]requested_item fd.num is exist - process it [18:05:34]SAM_PROTO_GetFieldsCounters [18:05:34]wFMCommunicate request_size=4 [18:05:34]MH_SAM_APDU [18:05:34]CAPDU: 80 13 00 00 [18:05:34]Write to MH i2c: E2 08 00 59 76 80 13 00 00 00 00 00 00 4B [18:05:34]Write i2c OK [18:05:34]MH_I2C_Read... [18:05:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:34]Read from MH i2c: E2 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: E2 62 00 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: E2 62 00 59 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [18:05:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 08 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:34]wFMCommunicate OK [18:05:34]SAM_PROTO_GetFieldsCounters done [18:05:34]requested_item shift.num is exist - process it [18:05:34]requested_item shift.opened is exist - process it [18:05:34]req_shift_opened [18:05:34]FM_GetShiftState [18:05:34]SAM_PROTO_GetShiftState [18:05:34]wFMCommunicate request_size=4 [18:05:34]MH_SAM_APDU [18:05:34]CAPDU: 80 13 01 00 [18:05:34]Write to MH i2c: E2 08 00 5A 76 80 13 01 00 00 00 00 00 4D [18:05:34]Write i2c OK [18:05:34]MH_I2C_Read... [18:05:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:34]Read from MH i2c: E2 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: E2 0E 00 [18:05:34]MH_I2C_Read... [18:05:34]Read from MH i2c: E2 0E 00 5A 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 56 [18:05:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:05:34]wFMCommunicate OK [18:05:34]SAM_PROTO_GetShiftState done [18:05:34]FM_GetShiftState done [18:05:34]req_shift_opened done [18:05:34]requested_item shift.open_date is exist - process it [18:05:34]req_shift_open_date [18:05:34]req_shift_open_date done [18:05:34]produce_requested_data done [18:05:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166152,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:05:34]process_action_free close_receipt [18:05:34]json_value_free [18:05:34]json_value_free done [18:05:34]process_json_proto returns [18:05:34]Send response to host [18:05:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166152,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:05:34]free response buf [18:05:34]execute_script done [18:05:34]execute_script returns [18:05:34]free content buf [18:05:34]Sock 5.Close socket [18:05:34]Sock 5.Thread stoped [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:29]*** FLAG_PRN_PAP1 set [18:08:29]*** FLAG_PRN_PAP2 set [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:46]*** FLAG_PRN_PAP2 reset [18:08:46]*** FLAG_PRN_PAP1 reset [18:08:47]*** FLAG_PRN_KEY set [18:08:47]*** FLAG_PRN_KEY reset [18:08:48]*** FLAG_PRN_KEY set [18:08:48]OFD Sender: No OFD packet to send [18:08:48]*** FLAG_PRN_KEY reset [18:08:48]*** FLAG_PRN_KEY set [18:08:48]*** FLAG_PRN_KEY reset [18:08:48]*** FLAG_PRN_KEY set [18:08:48]*** FLAG_PRN_KEY reset [18:08:53]OFD Sender: No OFD packet to send [18:08:55]*** FLAG_PRN_KEY set [18:08:56]*** FLAG_PRN_KEY reset [18:08:56]*** FLAG_PRN_KEY set [18:08:56]*** FLAG_PRN_KEY reset [18:08:58]*** FLAG_PRN_PAP1 set [18:08:58]*** FLAG_PRN_PAP2 set [18:08:58]OFD Sender: No OFD packet to send [18:09:02]*** FLAG_PRN_PAP2 reset [18:09:02]*** FLAG_PRN_PAP1 reset [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:00]accept exits with 6 [18:10:00]New connection [18:10:00]New thread 3066776932 created [18:10:00]Thread 3066920292 joined [18:10:00]Waiting for new connection... [18:10:00] Sock 6.Parse request [18:10:00]Sock 6.Check first char [18:10:00]Sock 6.First char is OK [18:10:00]request: POST /json_proto HTTP/1.0 [18:10:00]Method: POST [18:10:00]URL: /json_proto [18:10:00]Method is POST - this is cgi request [18:10:00]url: /json_proto [18:10:00]query_string will be loaded in cgi processing [18:10:00]execute_cgi json_proto POST (null) [18:10:00]execute_cgi path=json_proto method=POST [18:10:00]POST find Content-Length [18:10:00]Host: 172.17.53.195:8080 [18:10:00]Content-Length: 674 [18:10:00]Content-Type: application/json [18:10:00] [18:10:00]POST finish read [18:10:00]Found Content-Length = 674 [18:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:00]execute_script... [18:10: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)220724", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:00]POST & json_proto [18:10:00]process_json_proto [18:10:00]json parsed OK: [18:10:00]protocol is kg_v1.0 [18:10:00]action value=close_receipt [18:10:00]process_action close_receipt [18:10:00]cmd_close_receipt [18:10:00]MH_GetDate [18:10:00]Write to MH i2c: F0 00 00 5B 76 C0 [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: F0 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: F0 09 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: F0 09 00 5B 76 00 0C 99 16 67 21 48 4A 65 03 [18:10:00]GetLastDocTimeStamp 1729533949 [18:10:00]current date 1729534220 [18:10:00]FM_GetShiftState [18:10:00]SAM_PROTO_GetShiftState [18:10:00]wFMCommunicate request_size=4 [18:10:00]MH_SAM_APDU [18:10:00]CAPDU: 80 13 01 00 [18:10:00]Write to MH i2c: E2 08 00 5C 76 80 13 01 00 00 00 00 00 4F [18:10:00]Write i2c OK [18:10:00]MH_I2C_Read... [18:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:00]Read from MH i2c: E2 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 0E 00 [18:10:00]MH_I2C_Read... [18:10:00]Read from MH i2c: E2 0E 00 5C 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 58 [18:10:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:10:00]wFMCommunicate OK [18:10:00]SAM_PROTO_GetShiftState done [18:10:00]FM_GetShiftState done [18:10:00]opened in 1729470944 [18:10:00]opened+sec_in_day 1729557344 [18:10:00]quantity*price = 70027 [18:10:00]sum+1 = 70029 [18:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 264 21.10.2024 18:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166153 ФПД: 87444326811277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181020&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166153&fm=87444326811277&tin=02508201610067®Number=0000000000091764&sum=70000 [18:10:01]StoreToDocumentArchive [18:10:01]shift 535 fd 166153 [18:10:01]save to /storage/0535/doc_00166153 [18:10:01]save last doc name /storage/0535/doc_00166153 to /storage/kkm_last_doc_name [18:10:01]save OK [18:10:01]Clear old archive folders... [18:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:10:01]tlvbuf is 015129D0 [18:10:01]SAM_PROTO_ClearQueue [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 09 00 00 [18:10:01]Write to MH i2c: E2 08 00 69 76 80 09 00 00 00 00 00 00 51 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 69 76 00 90 00 53 [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]SAM_PROTO_ClearQueue done [18:10:01]KKMCreateOFDPacket [18:10:01]OFDProtocolAddRootSTLVToBuf [18:10:01]FM_MakeSignedData [18:10:01]FM_MakeSignedData [18:10:01]SAM_PROTO_SignData [18:10:01]wFMCommunicate request_size=4 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 01 02 [18:10:01]Write to MH i2c: E2 08 00 6A 76 80 0D 01 02 00 00 00 00 59 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:01]Read from MH i2c: E2 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 [18:10:01]MH_I2C_Read... [18:10:01]Read from MH i2c: E2 03 00 6A 76 00 90 00 54 [18:10:01]RAPDU: 90 00 [18:10:01]wFMCommunicate OK [18:10:01]wFMCommunicate request_size=255 [18:10:01]MH_SAM_APDU [18:10:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 01 00 00 F4 03 04 00 0C 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 89 02 00 35 04 06 00 4F 87 B8 09 [18:10:01]Write to MH i2c: E2 02 01 6B 76 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0C 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 89 02 00 35 04 06 00 4F 87 B8 09 00 00 50 [18:10:01]Write i2c OK [18:10:01]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 6B 76 00 90 00 55 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=7 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 02 02 02 86 8D [18:10:02]Write to MH i2c: E2 0A 00 6C 76 80 0D 02 02 02 00 86 8D 00 00 73 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 03 00 6C 76 00 90 00 56 [18:10:02]RAPDU: 90 00 [18:10:02]wFMCommunicate OK [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 0D 03 02 [18:10:02]Write to MH i2c: E2 08 00 6D 76 80 0D 03 02 00 00 00 00 5E [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 0B 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 0B 00 6D 76 00 82 7A 54 7A BC 03 E0 08 90 00 D0 [18:10:02]RAPDU: 82 7A 54 7A BC 03 E0 08 90 00 [18:10:02]wFMCommunicate OK [18:10:02]SAM_PROTO_SignData done [18:10:02]FM_MakeSignedData done [18:10:02]CreateOFDProtocolMessage [18:10:02]wFMCommunicate request_size=4 [18:10:02]MH_SAM_APDU [18:10:02]CAPDU: 80 11 00 00 [18:10:02]Write to MH i2c: E2 08 00 6E 76 80 11 00 00 00 00 00 00 5E [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:02]Read from MH i2c: E2 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 17 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: E2 17 00 6E 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B6 [18:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:10:02]wFMCommunicate OK [18:10:02]CreateOFDProtocolMessage done [18:10:02]OFDSenderStorePacket 166153 [18:10:02]StoreOFDPacket docnum=166153 [18:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2C FD 04 01 01 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0C 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 89 02 00 35 04 06 00 4F 87 B8 09 86 8D 82 7A 54 7A BC 03 E0 08 [18:10:02]CheckFolder [18:10:02]dirname=/storage/ofd_packets [18:10:02]CheckFolder done [18:10:02]ProducePacketName [18:10:02]name=ofd_packets/00166153 [18:10:02]NVStorageSaveData ofd_packets/00166153 [18:10:02]File name is /storage/ofd_packets/00166153 [18:10:02]Write 298 bytes [18:10:02]NVStorageSaveData done [18:10:02]OFDSenderStorePacket done [18:10:02]KKMCreateOFDPacket done [18:10:02]NVStorageSaveData kkm_last_timestamp [18:10:02]File name is /storage/kkm_last_timestamp [18:10:02]Write 4 bytes [18:10:02]NVStorageSaveData done [18:10:02]ExternCall_PrintAddStr [18:10:02]wPrintStart [18:10:02]Write to MH i2c: 01 00 00 6F 76 E5 [18:10:02]Write i2c OK [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 [18:10:02]MH_I2C_Read... [18:10:02]Read from MH i2c: 01 07 00 6F 76 00 00 00 00 00 FF 0F FA [18:10:02]RasterBufferAndPrint [18:10:02]line Счет N : (1)220724 [18:10:02]line ИНН: 02508201610067 [18:10:02]line Контрольно-Кассовый Чек [18:10:02]line ПРОДАЖА [18:10:02]line ТРК (МРК, ГНК) : 11 [18:10:02]line Товар: 2710194210 [18:10:02]line ДТ-К-5 [18:10:02]line 9.190 * 76.20 [18:10:02]line = 700.28 [18:10:02]line НДС 12% НСП 1% [18:10:02]line > о реализуемом товаре [18:10:02]line ОКРУГЛЕНИЕ: -0.28 [18:10:02]line ИТОГО: 700.00 [18:10:02]line Внесено: 700.00 [18:10:02]line СДАЧА: 0.00 [18:10:02]line НСП 1% : 6.20 [18:10:02]line НДС 12% : 74.37 [18:10:02]line Наличными: 700.00 [18:10:02]line Безнал.: 0.00 [18:10:02]line Место: АЗС № 161 "Партнер Нефть" [18:10:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:10:02]line СНО: Общий режим [18:10:02]line Чек 264 21.10.2024 18:10 [18:10:02]line Смена: 535 ФФД: 1.0 [18:10:02]line ЗНМ: 0300000104 [18:10:02]line РНМ: 0000000000091764 [18:10:02]line Версия ККМ: 001 [18:10:02]line ФМ: 0000000000871759 [18:10:02]line ФД: 166153 [18:10:02]line ФПД: 87444326811277 [18:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181020&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166153&fm=87444326811277&tin=02508201610067®Number=0000000000091764&sum=70000 [18:10:02]OFD Sender: Processing packet 166153 [packets to send 48, broken 47] [18:10:02]ProducePacketName [18:10:02]name=ofd_packets/00166153 [18:10:02]OFD Sender: To server: pG, [18:10:02]CommunicateWithHost lk.salyk.kg:30040 [18:10:02]ConnectInit lk.salyk.kg [18:10:02]written 0, free lines is 4095 [18:10:02]Connected sock=7 [18:10:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 2C FD 04 01 01 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 0C 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 89 02 00 35 04 06 00 4F 87 B8 09 86 8D 82 7A 54 7A BC 03 E0 08 [18:10:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0A 88 47 00 D9 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 09 89 02 00 F4 03 04 00 79 3F 16 67 B6 04 01 00 00 DB 35 20 40 82 E7 24 C6 [18:10:02]CommunicateWithHost err = 0 [18:10:02]CheckOFDResponse [18:10:02]1017 (14) - 77093643461234 [18:10:02]1041 (16) - 0000000000871759 [18:10:02]1040 (4) - 166153 [18:10:02]1012 (4) - 21.10.2024 11:48 [18:10:02]1206 (1) - 0 [18:10:02]OFD Sender: Remove packet 166153 [18:10:02]ProducePacketName [18:10:02]name=ofd_packets/00166153 [18:10:02]NVStorageDeleteData [18:10:03]Write to MH i2c: 01 00 00 9A 76 10 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: 01 07 00 9A 76 00 00 00 00 00 C2 0C E5 [18:10:03]RasterBufferAndPrint [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]line [18:10:03]written 0, free lines is 3275 [18:10:03]MH_Cut [18:10:03]Write to MH i2c: D1 01 00 A1 76 01 E9 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 01 00 [18:10:03]MH_I2C_Read... [18:10:03]Read from MH i2c: D1 01 00 A1 76 00 E8 [18:10:03]Write to MH i2c: 01 00 00 A2 76 18 [18:10:03]Write i2c OK [18:10:03]MH_I2C_Read... [18:10:03]OFD Sender: No OFD packet to send [18:10:03]*** Cut start [18:10:03]*** Partial cut [18:10:03]*** CUTSNS_PIN = 1 [18:10:03]*** CUTSNS_PIN = 0 [18:10:04]*** Brake cut motor [18:10:04]Read from MH i2c: 01 [18:10:04]MH_I2C_Read... [18:10:04]*** Stop cut motor [18:10:04]*** Cut end [18:10:04]Read from MH i2c: 01 07 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: 01 07 00 A2 76 00 00 00 00 00 FF 0F 2D [18:10:04]process_action close_receipt done [18:10:04]requested_data is exist [18:10:04]produce_requested_data [18:10:04]requested_item fm.sn is exist - process it [18:10:04]wFMCommunicate request_size=4 [18:10:04]MH_SAM_APDU [18:10:04]CAPDU: 80 11 00 00 [18:10:04]Write to MH i2c: E2 08 00 A3 76 80 11 00 00 00 00 00 00 93 [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:04]Read from MH i2c: E2 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 17 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 17 00 A3 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EB [18:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:10:04]wFMCommunicate OK [18:10:04]requested_item fd.num is exist - process it [18:10:04]SAM_PROTO_GetFieldsCounters [18:10:04]wFMCommunicate request_size=4 [18:10:04]MH_SAM_APDU [18:10:04]CAPDU: 80 13 00 00 [18:10:04]Write to MH i2c: E2 08 00 A4 76 80 13 00 00 00 00 00 00 96 [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:04]Read from MH i2c: E2 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 62 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 62 00 A4 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [18:10:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 09 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:04]wFMCommunicate OK [18:10:04]SAM_PROTO_GetFieldsCounters done [18:10:04]requested_item shift.num is exist - process it [18:10:04]requested_item shift.opened is exist - process it [18:10:04]req_shift_opened [18:10:04]FM_GetShiftState [18:10:04]SAM_PROTO_GetShiftState [18:10:04]wFMCommunicate request_size=4 [18:10:04]MH_SAM_APDU [18:10:04]CAPDU: 80 13 01 00 [18:10:04]Write to MH i2c: E2 08 00 A5 76 80 13 01 00 00 00 00 00 98 [18:10:04]Write i2c OK [18:10:04]MH_I2C_Read... [18:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:04]Read from MH i2c: E2 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 0E 00 [18:10:04]MH_I2C_Read... [18:10:04]Read from MH i2c: E2 0E 00 A5 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A1 [18:10:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:10:04]wFMCommunicate OK [18:10:04]SAM_PROTO_GetShiftState done [18:10:04]FM_GetShiftState done [18:10:04]req_shift_opened done [18:10:04]requested_item shift.open_date is exist - process it [18:10:04]req_shift_open_date [18:10:04]req_shift_open_date done [18:10:04]produce_requested_data done [18:10:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166153,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:10:04]process_action_free close_receipt [18:10:04]json_value_free [18:10:04]json_value_free done [18:10:04]process_json_proto returns [18:10:04]Send response to host [18:10:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166153,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:10:04]free response buf [18:10:04]execute_script done [18:10:04]execute_script returns [18:10:04]free content buf [18:10:04]Sock 6.Close socket [18:10:04]Sock 6.Thread stoped [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:25]accept exits with 5 [18:11:25]New connection [18:11:25]New thread 3066920292 created [18:11:25]Thread 3066776932 joined [18:11:25]Waiting for new connection... [18:11:25] Sock 5.Parse request [18:11:25]Sock 5.Check first char [18:11:25]Sock 5.First char is OK [18:11:25]request: POST /json_proto HTTP/1.0 [18:11:25]Method: POST [18:11:25]URL: /json_proto [18:11:25]Method is POST - this is cgi request [18:11:25]url: /json_proto [18:11:25]query_string will be loaded in cgi processing [18:11:25]execute_cgi json_proto POST (null) [18:11:25]execute_cgi path=json_proto method=POST [18:11:25]POST find Content-Length [18:11:25]Host: 172.17.53.195:8080 [18:11:25]Content-Length: 677 [18:11:25]Content-Type: application/json [18:11:25] [18:11:25]POST finish read [18:11:25]Found Content-Length = 677 [18:11:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:25]execute_script... [18:11: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)220725", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:25]POST & json_proto [18:11:25]process_json_proto [18:11:25]json parsed OK: [18:11:25]protocol is kg_v1.0 [18:11:25]action value=close_receipt [18:11:25]process_action close_receipt [18:11:25]cmd_close_receipt [18:11:25]MH_GetDate [18:11:25]Write to MH i2c: F0 00 00 A6 76 0B [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: F0 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: F0 09 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: F0 09 00 A6 76 00 61 99 16 67 21 48 4A 65 A3 [18:11:25]GetLastDocTimeStamp 1729534220 [18:11:25]current date 1729534305 [18:11:25]FM_GetShiftState [18:11:25]SAM_PROTO_GetShiftState [18:11:25]wFMCommunicate request_size=4 [18:11:25]MH_SAM_APDU [18:11:25]CAPDU: 80 13 01 00 [18:11:25]Write to MH i2c: E2 08 00 A7 76 80 13 01 00 00 00 00 00 9A [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:25]Read from MH i2c: E2 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: E2 0E 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: E2 0E 00 A7 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A3 [18:11:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:11:25]wFMCommunicate OK [18:11:25]SAM_PROTO_GetShiftState done [18:11:25]FM_GetShiftState done [18:11:25]opened in 1729470944 [18:11:25]opened+sec_in_day 1729557344 [18:11:25]quantity*price = 50041 [18:11:25]sum+1 = 50042 [18:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 265 21.10.2024 18:11 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166154 ФПД: 124231931723375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181145&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166154&fm=124231931723375&tin=02508201610067®Number=0000000000091764&sum=50000 [18:11:26]StoreToDocumentArchive [18:11:26]shift 535 fd 166154 [18:11:26]save to /storage/0535/doc_00166154 [18:11:26]save last doc name /storage/0535/doc_00166154 to /storage/kkm_last_doc_name [18:11:26]save OK [18:11:26]Clear old archive folders... [18:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:26]tlvbuf is 01512BB0 [18:11:26]SAM_PROTO_ClearQueue [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 09 00 00 [18:11:26]Write to MH i2c: E2 08 00 B4 76 80 09 00 00 00 00 00 00 9C [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 B4 76 00 90 00 9E [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_ClearQueue done [18:11:26]KKMCreateOFDPacket [18:11:26]OFDProtocolAddRootSTLVToBuf [18:11:26]FM_MakeSignedData [18:11:26]FM_MakeSignedData [18:11:26]SAM_PROTO_SignData [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 01 02 [18:11:26]Write to MH i2c: E2 08 00 B5 76 80 0D 01 02 00 00 00 00 A4 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 B5 76 00 90 00 9F [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]wFMCommunicate request_size=255 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 61 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 89 02 00 35 04 06 00 70 [18:11:26]Write to MH i2c: E2 02 01 B6 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 61 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 89 02 00 35 04 06 00 70 00 00 D9 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 B6 76 00 90 00 A0 [18:11:27]RAPDU: 90 00 [18:11:27]wFMCommunicate OK [18:11:27]wFMCommunicate request_size=10 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 0D 02 02 05 FD 00 28 FE 6F [18:11:27]Write to MH i2c: E2 0D 00 B7 76 80 0D 02 02 05 00 FD 00 28 FE 6F 00 00 43 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 03 00 B7 76 00 90 00 A1 [18:11:27]RAPDU: 90 00 [18:11:27]wFMCommunicate OK [18:11:27]wFMCommunicate request_size=4 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 0D 03 02 [18:11:27]Write to MH i2c: E2 08 00 B8 76 80 0D 03 02 00 00 00 00 A9 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 0B 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 0B 00 B8 76 00 69 C6 C7 D8 50 82 9B 4D 90 00 32 [18:11:27]RAPDU: 69 C6 C7 D8 50 82 9B 4D 90 00 [18:11:27]wFMCommunicate OK [18:11:27]SAM_PROTO_SignData done [18:11:27]FM_MakeSignedData done [18:11:27]CreateOFDProtocolMessage [18:11:27]wFMCommunicate request_size=4 [18:11:27]MH_SAM_APDU [18:11:27]CAPDU: 80 11 00 00 [18:11:27]Write to MH i2c: E2 08 00 B9 76 80 11 00 00 00 00 00 00 A9 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:27]Read from MH i2c: E2 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 17 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: E2 17 00 B9 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 01 [18:11:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:27]wFMCommunicate OK [18:11:27]CreateOFDProtocolMessage done [18:11:27]OFDSenderStorePacket 166154 [18:11:27]StoreOFDPacket docnum=166154 [18:11:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 24 E8 07 01 BD 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 61 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 89 02 00 35 04 06 00 70 FD 00 28 FE 6F 69 C6 C7 D8 50 82 9B 4D [18:11:27]CheckFolder [18:11:27]dirname=/storage/ofd_packets [18:11:27]CheckFolder done [18:11:27]ProducePacketName [18:11:27]name=ofd_packets/00166154 [18:11:27]NVStorageSaveData ofd_packets/00166154 [18:11:27]File name is /storage/ofd_packets/00166154 [18:11:27]Write 301 bytes [18:11:27]NVStorageSaveData done [18:11:27]OFDSenderStorePacket done [18:11:27]KKMCreateOFDPacket done [18:11:27]NVStorageSaveData kkm_last_timestamp [18:11:27]File name is /storage/kkm_last_timestamp [18:11:27]Write 4 bytes [18:11:27]NVStorageSaveData done [18:11:27]ExternCall_PrintAddStr [18:11:27]wPrintStart [18:11:27]Write to MH i2c: 01 00 00 BA 76 30 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 BA 76 00 00 00 00 00 FF 0F 45 [18:11:27]RasterBufferAndPrint [18:11:27]line Счет N : (1)220725 [18:11:27]line ИНН: 02508201610067 [18:11:27]line Контрольно-Кассовый Чек [18:11:27]line ПРОДАЖА [18:11:27]line ТРК (МРК, ГНК) : 33 [18:11:27]line Товар: 2710124130 [18:11:27]line Аи-92-К-5 [18:11:27]line 7.480 * 66.90 [18:11:27]line = 500.41 [18:11:27]line НДС 12% НСП 1% [18:11:27]line > о реализуемом товаре [18:11:27]line ОКРУГЛЕНИЕ: -0.41 [18:11:27]line ИТОГО: 500.00 [18:11:27]line Внесено: 500.00 [18:11:27]line СДАЧА: 0.00 [18:11:27]line НСП 1% : 4.43 [18:11:27]line НДС 12% : 53.14 [18:11:27]line Наличными: 500.00 [18:11:27]line Безнал.: 0.00 [18:11:27]line Место: АЗС № 161 "Партнер Нефть" [18:11:27]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:11:27]line СНО: Общий режим [18:11:27]line Чек 265 21.10.2024 18:11 [18:11:27]line Смена: 535 ФФД: 1.0 [18:11:27]line ЗНМ: 0300000104 [18:11:27]line РНМ: 0000000000091764 [18:11:27]line Версия ККМ: 001 [18:11:27]line ФМ: 0000000000871759 [18:11:27]line ФД: 166154 [18:11:27]line ФПД: 124231931723375 [18:11:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181145&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166154&fm=124231931723375&tin=02508201610067®Number=0000000000091764&sum=50000 [18:11:27]OFD Sender: Processing packet 166154 [packets to send 48, broken 47] [18:11:27]ProducePacketName [18:11:27]name=ofd_packets/00166154 [18:11:27]OFD Sender: To server: pG, [18:11:27]CommunicateWithHost lk.salyk.kg:30040 [18:11:27]ConnectInit lk.salyk.kg [18:11:27]written 0, free lines is 4095 [18:11:27]Connected sock=7 [18:11:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 24 E8 07 01 BD 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 01 00 00 F4 03 04 00 61 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 89 02 00 35 04 06 00 70 FD 00 28 FE 6F 69 C6 C7 D8 50 82 9B 4D [18:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 92 E6 47 00 7D 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0A 89 02 00 F4 03 04 00 CE 3F 16 67 B6 04 01 00 00 89 DC 29 27 0A 4C 32 74 [18:11:27]CommunicateWithHost err = 0 [18:11:27]CheckOFDResponse [18:11:27]1017 (14) - 77093643461234 [18:11:27]1041 (16) - 0000000000871759 [18:11:27]1040 (4) - 166154 [18:11:27]1012 (4) - 21.10.2024 11:49 [18:11:27]1206 (1) - 0 [18:11:27]OFD Sender: Remove packet 166154 [18:11:27]ProducePacketName [18:11:27]name=ofd_packets/00166154 [18:11:27]NVStorageDeleteData [18:11:28]Write to MH i2c: 01 00 00 E5 76 5B [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 E5 76 00 00 00 00 00 D4 0C 42 [18:11:28]RasterBufferAndPrint [18:11:28]line [18:11:28]line [18:11:28]line [18:11:28]line [18:11:28]line [18:11:28]written 0, free lines is 3291 [18:11:28]MH_Cut [18:11:28]Write to MH i2c: D1 01 00 EC 76 01 34 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: D1 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: D1 01 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: D1 01 00 EC 76 00 33 [18:11:28]Write to MH i2c: 01 00 00 ED 76 63 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]OFD Sender: No OFD packet to send [18:11:28]*** Cut start [18:11:28]*** Partial cut [18:11:28]*** CUTSNS_PIN = 1 [18:11:28]*** CUTSNS_PIN = 0 [18:11:29]*** Brake cut motor [18:11:29]Read from MH i2c: 01 [18:11:29]MH_I2C_Read... [18:11:29]*** Stop cut motor [18:11:29]*** Cut end [18:11:29]Read from MH i2c: 01 07 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: 01 07 00 ED 76 00 00 00 00 00 FF 0F 78 [18:11:29]process_action close_receipt done [18:11:29]requested_data is exist [18:11:29]produce_requested_data [18:11:29]requested_item fm.sn is exist - process it [18:11:29]wFMCommunicate request_size=4 [18:11:29]MH_SAM_APDU [18:11:29]CAPDU: 80 11 00 00 [18:11:29]Write to MH i2c: E2 08 00 EE 76 80 11 00 00 00 00 00 00 DE [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:29]Read from MH i2c: E2 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 17 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 17 00 EE 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 36 [18:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:11:29]wFMCommunicate OK [18:11:29]requested_item fd.num is exist - process it [18:11:29]SAM_PROTO_GetFieldsCounters [18:11:29]wFMCommunicate request_size=4 [18:11:29]MH_SAM_APDU [18:11:29]CAPDU: 80 13 00 00 [18:11:29]Write to MH i2c: E2 08 00 EF 76 80 13 00 00 00 00 00 00 E1 [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:29]Read from MH i2c: E2 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 62 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 62 00 EF 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [18:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:29]wFMCommunicate OK [18:11:29]SAM_PROTO_GetFieldsCounters done [18:11:29]requested_item shift.num is exist - process it [18:11:29]requested_item shift.opened is exist - process it [18:11:29]req_shift_opened [18:11:29]FM_GetShiftState [18:11:29]SAM_PROTO_GetShiftState [18:11:29]wFMCommunicate request_size=4 [18:11:29]MH_SAM_APDU [18:11:29]CAPDU: 80 13 01 00 [18:11:29]Write to MH i2c: E2 08 00 F0 76 80 13 01 00 00 00 00 00 E3 [18:11:29]Write i2c OK [18:11:29]MH_I2C_Read... [18:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:29]Read from MH i2c: E2 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 0E 00 [18:11:29]MH_I2C_Read... [18:11:29]Read from MH i2c: E2 0E 00 F0 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EC [18:11:29]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:11:29]wFMCommunicate OK [18:11:29]SAM_PROTO_GetShiftState done [18:11:29]FM_GetShiftState done [18:11:29]req_shift_opened done [18:11:29]requested_item shift.open_date is exist - process it [18:11:29]req_shift_open_date [18:11:29]req_shift_open_date done [18:11:29]produce_requested_data done [18:11:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166154,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:11:29]process_action_free close_receipt [18:11:29]json_value_free [18:11:29]json_value_free done [18:11:29]process_json_proto returns [18:11:29]Send response to host [18:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166154,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:11:29]free response buf [18:11:29]execute_script done [18:11:29]execute_script returns [18:11:29]free content buf [18:11:29]Sock 5.Close socket [18:11:29]Sock 5.Thread stoped [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:46]accept exits with 6 [18:12:46]New connection [18:12:46]New thread 3066776932 created [18:12:46]Thread 3066920292 joined [18:12:46]Waiting for new connection... [18:12:46] Sock 6.Parse request [18:12:46]Sock 6.Check first char [18:12:46]Sock 6.First char is OK [18:12:46]request: POST /json_proto HTTP/1.0 [18:12:46]Method: POST [18:12:46]URL: /json_proto [18:12:46]Method is POST - this is cgi request [18:12:46]url: /json_proto [18:12:46]query_string will be loaded in cgi processing [18:12:46]execute_cgi json_proto POST (null) [18:12:46]execute_cgi path=json_proto method=POST [18:12:46]POST find Content-Length [18:12:46]Host: 172.17.53.195:8080 [18:12:46]Content-Length: 766 [18:12:46]Content-Type: application/json [18:12:46] [18:12:46]POST finish read [18:12:46]Found Content-Length = 766 [18:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:46]execute_script... [18: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)220726", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:46]POST & json_proto [18:12:46]process_json_proto [18:12:46]json parsed OK: [18:12:46]protocol is kg_v1.0 [18:12:46]action value=close_receipt [18:12:46]process_action close_receipt [18:12:46]cmd_close_receipt [18:12:46]MH_GetDate [18:12:46]Write to MH i2c: F0 00 00 F1 76 56 [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: F0 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: F0 09 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: F0 09 00 F1 76 00 B2 99 16 67 21 48 4A 65 3F [18:12:46]GetLastDocTimeStamp 1729534305 [18:12:46]current date 1729534386 [18:12:46]FM_GetShiftState [18:12:46]SAM_PROTO_GetShiftState [18:12:46]wFMCommunicate request_size=4 [18:12:46]MH_SAM_APDU [18:12:46]CAPDU: 80 13 01 00 [18:12:46]Write to MH i2c: E2 08 00 F2 76 80 13 01 00 00 00 00 00 E5 [18:12:46]Write i2c OK [18:12:46]MH_I2C_Read... [18:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:46]Read from MH i2c: E2 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 [18:12:46]MH_I2C_Read... [18:12:46]Read from MH i2c: E2 0E 00 F2 76 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EE [18:12:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:12:46]wFMCommunicate OK [18:12:46]SAM_PROTO_GetShiftState done [18:12:46]FM_GetShiftState done [18:12:46]opened in 1729470944 [18:12:46]opened+sec_in_day 1729557344 [18:12:46]quantity*price = 100050 [18:12:46]sum+1 = 100052 [18:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 266 21.10.2024 18:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166155 ФПД: 83274981318355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166155&fm=83274981318355&tin=02508201610067®Number=0000000000091764&sum=100051 [18:12:47]StoreToDocumentArchive [18:12:47]shift 535 fd 166155 [18:12:47]save to /storage/0535/doc_00166155 [18:12:47]save last doc name /storage/0535/doc_00166155 to /storage/kkm_last_doc_name [18:12:47]save OK [18:12:47]Clear old archive folders... [18:12:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:12:47]tlvbuf is 015FC7B0 [18:12:47]SAM_PROTO_ClearQueue [18:12:47]wFMCommunicate request_size=4 [18:12:47]MH_SAM_APDU [18:12:47]CAPDU: 80 09 00 00 [18:12:47]Write to MH i2c: E2 08 00 FF 76 80 09 00 00 00 00 00 00 E7 [18:12:47]Write i2c OK [18:12:47]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 FF 76 00 90 00 E9 [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]SAM_PROTO_ClearQueue done [18:12:48]KKMCreateOFDPacket [18:12:48]OFDProtocolAddRootSTLVToBuf [18:12:48]FM_MakeSignedData [18:12:48]FM_MakeSignedData [18:12:48]SAM_PROTO_SignData [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 01 02 [18:12:48]Write to MH i2c: E2 08 00 00 77 80 0D 01 02 00 00 00 00 F0 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 00 77 00 90 00 EB [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]wFMCommunicate request_size=255 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B2 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 89 02 00 35 04 06 00 4B BC F7 AE [18:12:48]Write to MH i2c: E2 02 01 01 77 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B2 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 89 02 00 35 04 06 00 4B BC F7 AE 00 00 10 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 01 77 00 90 00 EC [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]wFMCommunicate request_size=7 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 02 02 02 1E D3 [18:12:48]Write to MH i2c: E2 0A 00 02 77 80 0D 02 02 02 00 1E D3 00 00 E8 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 03 00 02 77 00 90 00 ED [18:12:48]RAPDU: 90 00 [18:12:48]wFMCommunicate OK [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 0D 03 02 [18:12:48]Write to MH i2c: E2 08 00 03 77 80 0D 03 02 00 00 00 00 F5 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 0B 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 0B 00 03 77 00 7C 4A 50 E5 CF ED 48 BC 90 00 B1 [18:12:48]RAPDU: 7C 4A 50 E5 CF ED 48 BC 90 00 [18:12:48]wFMCommunicate OK [18:12:48]SAM_PROTO_SignData done [18:12:48]FM_MakeSignedData done [18:12:48]CreateOFDProtocolMessage [18:12:48]wFMCommunicate request_size=4 [18:12:48]MH_SAM_APDU [18:12:48]CAPDU: 80 11 00 00 [18:12:48]Write to MH i2c: E2 08 00 04 77 80 11 00 00 00 00 00 00 F5 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:48]Read from MH i2c: E2 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 17 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: E2 17 00 04 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [18:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:12:48]wFMCommunicate OK [18:12:48]CreateOFDProtocolMessage done [18:12:48]OFDSenderStorePacket 166155 [18:12:48]StoreOFDPacket docnum=166155 [18:12:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 17 30 04 01 05 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B2 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 89 02 00 35 04 06 00 4B BC F7 AE 1E D3 7C 4A 50 E5 CF ED 48 BC [18:12:48]CheckFolder [18:12:48]dirname=/storage/ofd_packets [18:12:48]CheckFolder done [18:12:48]ProducePacketName [18:12:48]name=ofd_packets/00166155 [18:12:48]NVStorageSaveData ofd_packets/00166155 [18:12:48]File name is /storage/ofd_packets/00166155 [18:12:48]Write 298 bytes [18:12:48]NVStorageSaveData done [18:12:48]OFDSenderStorePacket done [18:12:48]KKMCreateOFDPacket done [18:12:48]NVStorageSaveData kkm_last_timestamp [18:12:48]File name is /storage/kkm_last_timestamp [18:12:48]Write 4 bytes [18:12:48]NVStorageSaveData done [18:12:48]ExternCall_PrintAddStr [18:12:48]wPrintStart [18:12:48]Write to MH i2c: 01 00 00 05 77 7C [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 07 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 07 00 05 77 00 00 00 00 00 FF 0F 91 [18:12:48]RasterBufferAndPrint [18:12:48]line Счет N : (1)220726 [18:12:48]line ИНН: 02508201610067 [18:12:48]line Контрольно-Кассовый Чек [18:12:48]line ПРОДАЖА [18:12:48]line ТРК (МРК, ГНК) : 41 [18:12:48]line Товар: 2710194210 [18:12:48]line ДТ-К-5 [18:12:48]line 13.130 * 76.20 [18:12:48]line = 1000.51 [18:12:48]line НДС 12% НСП 1% [18:12:48]line > о реализуемом товаре [18:12:48]line ИТОГО: 1000.51 [18:12:48]line НСП 1% : 8.85 [18:12:48]line НДС 12% : 106.25 [18:12:48]line Наличными: 0.00 [18:12:48]line Безнал.: 1000.51 [18:12:48]line Место: АЗС № 161 "Партнер Нефть" [18:12:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:12:48]line СНО: Общий режим [18:12:48]line Чек 266 21.10.2024 18:13 [18:12:48]line Смена: 535 ФФД: 1.0 [18:12:48]line ЗНМ: 0300000104 [18:12:48]line РНМ: 0000000000091764 [18:12:48]line Версия ККМ: 001 [18:12:48]line Платежная система: Mbank [18:12:48]line ФМ: 0000000000871759 [18:12:48]line ФД: 166155 [18:12:48]line ФПД: 83274981318355 [18:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166155&fm=83274981318355&tin=02508201610067®Number=0000000000091764&sum=100051 [18:12:48]written 0, free lines is 4095 [18:12:48]OFD Sender: Processing packet 166155 [packets to send 48, broken 47] [18:12:48]ProducePacketName [18:12:48]name=ofd_packets/00166155 [18:12:48]OFD Sender: To server: pG, [18:12:48]CommunicateWithHost lk.salyk.kg:30040 [18:12:48]ConnectInit lk.salyk.kg [18:12:48]Connected sock=7 [18: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 35 39 0C 01 00 00 17 30 04 01 05 70 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 B2 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 89 02 00 35 04 06 00 4B BC F7 AE 1E D3 7C 4A 50 E5 CF ED 48 BC [18:12:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 E4 47 00 EC 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0B 89 02 00 F4 03 04 00 1F 40 16 67 B6 04 01 00 00 2B 05 F9 40 70 7A 8D C0 [18:12:48]CommunicateWithHost err = 0 [18:12:48]CheckOFDResponse [18:12:48]1017 (14) - 77093643461234 [18:12:48]1041 (16) - 0000000000871759 [18:12:48]1040 (4) - 166155 [18:12:48]1012 (4) - 21.10.2024 11:50 [18:12:48]1206 (1) - 0 [18:12:48]OFD Sender: Remove packet 166155 [18:12:48]ProducePacketName [18:12:48]name=ofd_packets/00166155 [18:12:48]NVStorageDeleteData [18:12:48]Write to MH i2c: 01 00 00 2E 77 A5 [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 07 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: 01 07 00 2E 77 00 00 00 00 00 FD 0C B5 [18:12:48]RasterBufferAndPrint [18:12:48]line [18:12:48]line [18:12:48]line [18:12:48]line [18:12:48]line [18:12:48]written 0, free lines is 3332 [18:12:48]MH_Cut [18:12:48]Write to MH i2c: D1 01 00 35 77 01 7E [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: D1 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: D1 01 00 [18:12:48]MH_I2C_Read... [18:12:48]Read from MH i2c: D1 01 00 35 77 00 7D [18:12:48]Write to MH i2c: 01 00 00 36 77 AD [18:12:48]Write i2c OK [18:12:48]MH_I2C_Read... [18:12:49]OFD Sender: No OFD packet to send [18:12:49]*** Cut start [18:12:49]*** Partial cut [18:12:49]*** CUTSNS_PIN = 1 [18:12:49]*** CUTSNS_PIN = 0 [18:12:50]*** Brake cut motor [18:12:50]Read from MH i2c: 01 [18:12:50]MH_I2C_Read... [18:12:50]*** Stop cut motor [18:12:50]*** Cut end [18:12:50]Read from MH i2c: 01 07 00 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: 01 07 00 36 77 00 00 00 00 00 FF 0F C2 [18:12:50]process_action close_receipt done [18:12:50]requested_data is exist [18:12:50]produce_requested_data [18:12:50]requested_item fm.sn is exist - process it [18:12:50]wFMCommunicate request_size=4 [18:12:50]MH_SAM_APDU [18:12:50]CAPDU: 80 11 00 00 [18:12:50]Write to MH i2c: E2 08 00 37 77 80 11 00 00 00 00 00 00 28 [18:12:50]Write i2c OK [18:12:50]MH_I2C_Read... [18:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:50]Read from MH i2c: E2 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 17 00 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 17 00 37 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 80 [18:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:12:50]wFMCommunicate OK [18:12:50]requested_item fd.num is exist - process it [18:12:50]SAM_PROTO_GetFieldsCounters [18:12:50]wFMCommunicate request_size=4 [18:12:50]MH_SAM_APDU [18:12:50]CAPDU: 80 13 00 00 [18:12:50]Write to MH i2c: E2 08 00 38 77 80 13 00 00 00 00 00 00 2B [18:12:50]Write i2c OK [18:12:50]MH_I2C_Read... [18:12:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:50]Read from MH i2c: E2 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 62 00 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 62 00 38 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [18: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:50]wFMCommunicate OK [18:12:50]SAM_PROTO_GetFieldsCounters done [18:12:50]requested_item shift.num is exist - process it [18:12:50]requested_item shift.opened is exist - process it [18:12:50]req_shift_opened [18:12:50]FM_GetShiftState [18:12:50]SAM_PROTO_GetShiftState [18:12:50]wFMCommunicate request_size=4 [18:12:50]MH_SAM_APDU [18:12:50]CAPDU: 80 13 01 00 [18:12:50]Write to MH i2c: E2 08 00 39 77 80 13 01 00 00 00 00 00 2D [18:12:50]Write i2c OK [18:12:50]MH_I2C_Read... [18:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:50]Read from MH i2c: E2 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 0E 00 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 0E 00 39 77 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 36 [18:12:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:12:50]wFMCommunicate OK [18:12:50]SAM_PROTO_GetShiftState done [18:12:50]FM_GetShiftState done [18:12:50]req_shift_opened done [18:12:50]requested_item shift.open_date is exist - process it [18:12:50]req_shift_open_date [18:12:50]req_shift_open_date done [18:12:50]produce_requested_data done [18:12:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166155,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:12:50]process_action_free close_receipt [18:12:50]json_value_free [18:12:50]json_value_free done [18:12:50]process_json_proto returns [18:12:50]Send response to host [18:12:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166155,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:12:50]free response buf [18:12:50]execute_script done [18:12:50]execute_script returns [18:12:50]free content buf [18:12:50]Sock 6.Close socket [18:12:50]Sock 6.Thread stoped [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:42]accept exits with 5 [18:13:42]New connection [18:13:42]New thread 3066920292 created [18:13:42]Thread 3066776932 joined [18:13:42]Waiting for new connection... [18:13:42] Sock 5.Parse request [18:13:42]Sock 5.Check first char [18:13:42]Sock 5.First char is OK [18:13:42]request: POST /json_proto HTTP/1.0 [18:13:42]Method: POST [18:13:42]URL: /json_proto [18:13:42]Method is POST - this is cgi request [18:13:42]url: /json_proto [18:13:42]query_string will be loaded in cgi processing [18:13:42]execute_cgi json_proto POST (null) [18:13:42]execute_cgi path=json_proto method=POST [18:13:42]POST find Content-Length [18:13:42]Host: 172.17.53.195:8080 [18:13:42]Content-Length: 677 [18:13:42]Content-Type: application/json [18:13:42] [18:13:42]POST finish read [18:13:42]Found Content-Length = 677 [18:13:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:42]execute_script... [18:13: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)220727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:42]POST & json_proto [18:13:42]process_json_proto [18:13:42]json parsed OK: [18:13:42]protocol is kg_v1.0 [18:13:42]action value=close_receipt [18:13:42]process_action close_receipt [18:13:42]cmd_close_receipt [18:13:42]MH_GetDate [18:13:42]Write to MH i2c: F0 00 00 3A 77 A0 [18:13:42]Write i2c OK [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: F0 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: F0 09 00 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: F0 09 00 3A 77 00 E9 99 16 67 21 48 4A 65 C0 [18:13:42]GetLastDocTimeStamp 1729534386 [18:13:42]current date 1729534441 [18:13:42]FM_GetShiftState [18:13:42]SAM_PROTO_GetShiftState [18:13:42]wFMCommunicate request_size=4 [18:13:42]MH_SAM_APDU [18:13:42]CAPDU: 80 13 01 00 [18:13:42]Write to MH i2c: E2 08 00 3B 77 80 13 01 00 00 00 00 00 2F [18:13:42]Write i2c OK [18:13:42]MH_I2C_Read... [18:13:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:42]Read from MH i2c: E2 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 0E 00 [18:13:42]MH_I2C_Read... [18:13:42]Read from MH i2c: E2 0E 00 3B 77 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 38 [18:13:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:13:42]wFMCommunicate OK [18:13:42]SAM_PROTO_GetShiftState done [18:13:42]FM_GetShiftState done [18:13:42]opened in 1729470944 [18:13:42]opened+sec_in_day 1729557344 [18:13:42]quantity*price = 35055 [18:13:42]sum+1 = 35057 [18:13:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 267 21.10.2024 18:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166156 ФПД: 54809848274934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181401&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166156&fm=54809848274934&tin=02508201610067®Number=0000000000091764&sum=35000 [18:13:43]StoreToDocumentArchive [18:13:43]shift 535 fd 166156 [18:13:43]save to /storage/0535/doc_00166156 [18:13:43]save last doc name /storage/0535/doc_00166156 to /storage/kkm_last_doc_name [18:13:43]save OK [18:13:43]Clear old archive folders... [18:13:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:43]tlvbuf is 0177A430 [18:13:43]SAM_PROTO_ClearQueue [18:13:43]wFMCommunicate request_size=4 [18:13:43]MH_SAM_APDU [18:13:43]CAPDU: 80 09 00 00 [18:13:43]Write to MH i2c: E2 08 00 48 77 80 09 00 00 00 00 00 00 31 [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:43]Read from MH i2c: E2 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 48 77 00 90 00 33 [18:13:43]RAPDU: 90 00 [18:13:43]wFMCommunicate OK [18:13:43]SAM_PROTO_ClearQueue done [18:13:43]KKMCreateOFDPacket [18:13:43]OFDProtocolAddRootSTLVToBuf [18:13:43]FM_MakeSignedData [18:13:43]FM_MakeSignedData [18:13:43]SAM_PROTO_SignData [18:13:43]wFMCommunicate request_size=4 [18:13:43]MH_SAM_APDU [18:13:43]CAPDU: 80 0D 01 02 [18:13:43]Write to MH i2c: E2 08 00 49 77 80 0D 01 02 00 00 00 00 39 [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:43]Read from MH i2c: E2 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 49 77 00 90 00 34 [18:13:43]RAPDU: 90 00 [18:13:43]wFMCommunicate OK [18:13:43]wFMCommunicate request_size=255 [18:13:43]MH_SAM_APDU [18:13: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E9 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 89 02 00 35 04 06 00 31 [18:13:43]Write to MH i2c: E2 02 01 4A 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E9 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 89 02 00 35 04 06 00 31 00 00 C6 [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:43]Read from MH i2c: E2 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 4A 77 00 90 00 35 [18:13:43]RAPDU: 90 00 [18:13:43]wFMCommunicate OK [18:13:43]wFMCommunicate request_size=10 [18:13:43]MH_SAM_APDU [18:13:43]CAPDU: 80 0D 02 02 05 D9 69 89 5F F6 [18:13:43]Write to MH i2c: E2 0D 00 4B 77 80 0D 02 02 05 00 D9 69 89 5F F6 00 00 66 [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:43]Read from MH i2c: E2 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 03 00 4B 77 00 90 00 36 [18:13:43]RAPDU: 90 00 [18:13:43]wFMCommunicate OK [18:13:43]wFMCommunicate request_size=4 [18:13:43]MH_SAM_APDU [18:13:43]CAPDU: 80 0D 03 02 [18:13:43]Write to MH i2c: E2 08 00 4C 77 80 0D 03 02 00 00 00 00 3E [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:43]Read from MH i2c: E2 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 0B 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 0B 00 4C 77 00 41 D7 0C DF 1F 84 51 97 90 00 CD [18:13:43]RAPDU: 41 D7 0C DF 1F 84 51 97 90 00 [18:13:43]wFMCommunicate OK [18:13:43]SAM_PROTO_SignData done [18:13:43]FM_MakeSignedData done [18:13:43]CreateOFDProtocolMessage [18:13:43]wFMCommunicate request_size=4 [18:13:43]MH_SAM_APDU [18:13:43]CAPDU: 80 11 00 00 [18:13:43]Write to MH i2c: E2 08 00 4D 77 80 11 00 00 00 00 00 00 3E [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:43]Read from MH i2c: E2 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 17 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: E2 17 00 4D 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [18:13:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:13:43]wFMCommunicate OK [18:13:43]CreateOFDProtocolMessage done [18:13:43]OFDSenderStorePacket 166156 [18:13:43]StoreOFDPacket docnum=166156 [18:13:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 DB 07 01 21 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E9 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 89 02 00 35 04 06 00 31 D9 69 89 5F F6 41 D7 0C DF 1F 84 51 97 [18:13:43]CheckFolder [18:13:43]dirname=/storage/ofd_packets [18:13:43]CheckFolder done [18:13:43]ProducePacketName [18:13:43]name=ofd_packets/00166156 [18:13:43]NVStorageSaveData ofd_packets/00166156 [18:13:43]File name is /storage/ofd_packets/00166156 [18:13:43]Write 301 bytes [18:13:43]NVStorageSaveData done [18:13:43]OFDSenderStorePacket done [18:13:43]KKMCreateOFDPacket done [18:13:43]NVStorageSaveData kkm_last_timestamp [18:13:43]File name is /storage/kkm_last_timestamp [18:13:43]Write 4 bytes [18:13:43]NVStorageSaveData done [18:13:43]ExternCall_PrintAddStr [18:13:43]wPrintStart [18:13:43]Write to MH i2c: 01 00 00 4E 77 C5 [18:13:43]Write i2c OK [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: 01 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: 01 07 00 [18:13:43]MH_I2C_Read... [18:13:43]Read from MH i2c: 01 07 00 4E 77 00 00 00 00 00 FF 0F DA [18:13:43]RasterBufferAndPrint [18:13:43]line Счет N : (1)220727 [18:13:43]line ИНН: 02508201610067 [18:13:43]line Контрольно-Кассовый Чек [18:13:43]line ПРОДАЖА [18:13:43]line ТРК (МРК, ГНК) : 23 [18:13:43]line Товар: 2710124130 [18:13:43]line Аи-92-К-5 [18:13:43]line 5.240 * 66.90 [18:13:43]line = 350.56 [18:13:43]line НДС 12% НСП 1% [18:13:43]line > о реализуемом товаре [18:13:43]line ОКРУГЛЕНИЕ: -0.56 [18:13:43]line ИТОГО: 350.00 [18:13:43]line Внесено: 350.00 [18:13:43]line СДАЧА: 0.00 [18:13:43]line НСП 1% : 3.10 [18:13:43]line НДС 12% : 37.23 [18:13:43]line Наличными: 350.00 [18:13:43]line Безнал.: 0.00 [18:13:43]line Место: АЗС № 161 "Партнер Нефть" [18:13:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:13:43]line СНО: Общий режим [18:13:43]line Чек 267 21.10.2024 18:14 [18:13:43]line Смена: 535 ФФД: 1.0 [18:13:43]line ЗНМ: 0300000104 [18:13:43]line РНМ: 0000000000091764 [18:13:43]line Версия ККМ: 001 [18:13:43]line ФМ: 0000000000871759 [18:13:43]line ФД: 166156 [18:13:43]line ФПД: 54809848274934 [18:13:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181401&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166156&fm=54809848274934&tin=02508201610067®Number=0000000000091764&sum=35000 [18:13:44]OFD Sender: Processing packet 166156 [packets to send 48, broken 47] [18:13:44]ProducePacketName [18:13:44]name=ofd_packets/00166156 [18:13:44]OFD Sender: To server: pG, [18:13:44]CommunicateWithHost lk.salyk.kg:30040 [18:13:44]ConnectInit lk.salyk.kg [18:13:44]written 0, free lines is 4095 [18:13:44]Connected sock=7 [18:13:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 90 DB 07 01 21 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 E9 99 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 89 02 00 35 04 06 00 31 D9 69 89 5F F6 41 D7 0C DF 1F 84 51 97 [18:13:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C2 54 47 00 56 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0C 89 02 00 F4 03 04 00 57 40 16 67 B6 04 01 00 00 0A B3 5B 16 F0 E7 3C 53 [18:13:44]CommunicateWithHost err = 0 [18:13:44]CheckOFDResponse [18:13:44]1017 (14) - 77093643461234 [18:13:44]1041 (16) - 0000000000871759 [18:13:44]1040 (4) - 166156 [18:13:44]1012 (4) - 21.10.2024 11:51 [18:13:44]1206 (1) - 0 [18:13:44]OFD Sender: Remove packet 166156 [18:13:44]ProducePacketName [18:13:44]name=ofd_packets/00166156 [18:13:44]NVStorageDeleteData [18:13:44]Write to MH i2c: 01 00 00 79 77 F0 [18:13:44]Write i2c OK [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: 01 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: 01 07 00 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: 01 07 00 79 77 00 00 00 00 00 D5 0C D8 [18:13:44]RasterBufferAndPrint [18:13:44]line [18:13:44]line [18:13:44]line [18:13:44]line [18:13:44]line [18:13:44]written 0, free lines is 3293 [18:13:44]MH_Cut [18:13:44]Write to MH i2c: D1 01 00 80 77 01 C9 [18:13:44]Write i2c OK [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: D1 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: D1 01 00 [18:13:44]MH_I2C_Read... [18:13:44]Read from MH i2c: D1 01 00 80 77 00 C8 [18:13:44]Write to MH i2c: 01 00 00 81 77 F8 [18:13:44]Write i2c OK [18:13:44]MH_I2C_Read... [18:13:45]OFD Sender: No OFD packet to send [18:13:45]*** Cut start [18:13:45]*** Partial cut [18:13:45]*** CUTSNS_PIN = 1 [18:13:45]*** CUTSNS_PIN = 0 [18:13:45]*** Brake cut motor [18:13:46]Read from MH i2c: 01 [18:13:46]MH_I2C_Read... [18:13:46]*** Stop cut motor [18:13:46]*** Cut end [18:13:46]Read from MH i2c: 01 07 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: 01 07 00 81 77 00 00 00 00 00 FF 0F 0D [18:13:46]process_action close_receipt done [18:13:46]requested_data is exist [18:13:46]produce_requested_data [18:13:46]requested_item fm.sn is exist - process it [18:13:46]wFMCommunicate request_size=4 [18:13:46]MH_SAM_APDU [18:13:46]CAPDU: 80 11 00 00 [18:13:46]Write to MH i2c: E2 08 00 82 77 80 11 00 00 00 00 00 00 73 [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 17 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 17 00 82 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CB [18:13:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:13:46]wFMCommunicate OK [18:13:46]requested_item fd.num is exist - process it [18:13:46]SAM_PROTO_GetFieldsCounters [18:13:46]wFMCommunicate request_size=4 [18:13:46]MH_SAM_APDU [18:13:46]CAPDU: 80 13 00 00 [18:13:46]Write to MH i2c: E2 08 00 83 77 80 13 00 00 00 00 00 00 76 [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 62 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 62 00 83 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [18:13:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:46]wFMCommunicate OK [18:13:46]SAM_PROTO_GetFieldsCounters done [18:13:46]requested_item shift.num is exist - process it [18:13:46]requested_item shift.opened is exist - process it [18:13:46]req_shift_opened [18:13:46]FM_GetShiftState [18:13:46]SAM_PROTO_GetShiftState [18:13:46]wFMCommunicate request_size=4 [18:13:46]MH_SAM_APDU [18:13:46]CAPDU: 80 13 01 00 [18:13:46]Write to MH i2c: E2 08 00 84 77 80 13 01 00 00 00 00 00 78 [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:46]Read from MH i2c: E2 0E 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 0E 00 84 77 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 81 [18:13:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:13:46]wFMCommunicate OK [18:13:46]SAM_PROTO_GetShiftState done [18:13:46]FM_GetShiftState done [18:13:46]req_shift_opened done [18:13:46]requested_item shift.open_date is exist - process it [18:13:46]req_shift_open_date [18:13:46]req_shift_open_date done [18:13:46]produce_requested_data done [18:13:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166156,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:13:46]process_action_free close_receipt [18:13:46]json_value_free [18:13:46]json_value_free done [18:13:46]process_json_proto returns [18:13:46]Send response to host [18:13:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166156,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:13:46]free response buf [18:13:46]execute_script done [18:13:46]execute_script returns [18:13:46]free content buf [18:13:46]Sock 5.Close socket [18:13:46]Sock 5.Thread stoped [18:13:50]OFD Sender: No OFD packet to send [18:13:55]OFD Sender: No OFD packet to send [18:14:00]OFD Sender: No OFD packet to send [18:14:05]OFD Sender: No OFD packet to send [18:14:10]OFD Sender: No OFD packet to send [18:14:15]OFD Sender: No OFD packet to send [18:14:20]OFD Sender: No OFD packet to send [18:14:25]OFD Sender: No OFD packet to send [18:14:30]OFD Sender: No OFD packet to send [18:14:35]OFD Sender: No OFD packet to send [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:50]accept exits with 6 [18:14:50]New connection [18:14:50]New thread 3066776932 created [18:14:50]Thread 3066920292 joined [18:14:50]Waiting for new connection... [18:14:50] Sock 6.Parse request [18:14:50]Sock 6.Check first char [18:14:50]Sock 6.First char is OK [18:14:50]request: POST /json_proto HTTP/1.0 [18:14:50]Method: POST [18:14:50]URL: /json_proto [18:14:50]Method is POST - this is cgi request [18:14:50]url: /json_proto [18:14:50]query_string will be loaded in cgi processing [18:14:50]execute_cgi json_proto POST (null) [18:14:50]execute_cgi path=json_proto method=POST [18:14:50]POST find Content-Length [18:14:50]Host: 172.17.53.195:8080 [18:14:50]Content-Length: 677 [18:14:50]Content-Type: application/json [18:14:50] [18:14:50]POST finish read [18:14:50]Found Content-Length = 677 [18:14:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.730, "sum" : 499.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:50]execute_script... [18:14: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)220728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 6.730, "sum" : 499.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:50]POST & json_proto [18:14:50]process_json_proto [18:14:50]json parsed OK: [18:14:50]protocol is kg_v1.0 [18:14:50]action value=close_receipt [18:14:50]process_action close_receipt [18:14:50]cmd_close_receipt [18:14:50]MH_GetDate [18:14:50]Write to MH i2c: F0 00 00 85 77 EB [18:14:50]Write i2c OK [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: F0 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: F0 09 00 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: F0 09 00 85 77 00 2E 9A 16 67 21 48 4A 65 51 [18:14:50]GetLastDocTimeStamp 1729534441 [18:14:50]current date 1729534510 [18:14:50]FM_GetShiftState [18:14:50]SAM_PROTO_GetShiftState [18:14:50]wFMCommunicate request_size=4 [18:14:50]MH_SAM_APDU [18:14:50]CAPDU: 80 13 01 00 [18:14:50]Write to MH i2c: E2 08 00 86 77 80 13 01 00 00 00 00 00 7A [18:14:50]Write i2c OK [18:14:50]MH_I2C_Read... [18:14:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:50]Read from MH i2c: E2 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: E2 0E 00 [18:14:50]MH_I2C_Read... [18:14:50]Read from MH i2c: E2 0E 00 86 77 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 83 [18:14:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:14:50]wFMCommunicate OK [18:14:50]SAM_PROTO_GetShiftState done [18:14:50]FM_GetShiftState done [18:14:50]opened in 1729470944 [18:14:50]opened+sec_in_day 1729557344 [18:14:50]quantity*price = 49936 [18:14:50]sum+1 = 49938 [18:14:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.03 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 268 21.10.2024 18:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166157 ФПД: 230904525254280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166157&fm=230904525254280&tin=02508201610067®Number=0000000000091764&sum=49900 [18:14:51]StoreToDocumentArchive [18:14:51]shift 535 fd 166157 [18:14:51]save to /storage/0535/doc_00166157 [18:14:51]save last doc name /storage/0535/doc_00166157 to /storage/kkm_last_doc_name [18:14:51]save OK [18:14:51]Clear old archive folders... [18:14:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:51]tlvbuf is 017B0620 [18:14:51]SAM_PROTO_ClearQueue [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 09 00 00 [18:14:51]Write to MH i2c: E2 08 00 93 77 80 09 00 00 00 00 00 00 7C [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 93 77 00 90 00 7E [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]SAM_PROTO_ClearQueue done [18:14:51]KKMCreateOFDPacket [18:14:51]OFDProtocolAddRootSTLVToBuf [18:14:51]FM_MakeSignedData [18:14:51]FM_MakeSignedData [18:14:51]SAM_PROTO_SignData [18:14:51]wFMCommunicate request_size=4 [18:14:51]MH_SAM_APDU [18:14:51]CAPDU: 80 0D 01 02 [18:14:51]Write to MH i2c: E2 08 00 94 77 80 0D 01 02 00 00 00 00 84 [18:14:51]Write i2c OK [18:14:51]MH_I2C_Read... [18:14:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:51]Read from MH i2c: E2 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 [18:14:51]MH_I2C_Read... [18:14:51]Read from MH i2c: E2 03 00 94 77 00 90 00 7F [18:14:51]RAPDU: 90 00 [18:14:51]wFMCommunicate OK [18:14:51]wFMCommunicate request_size=255 [18:14:51]MH_SAM_APDU [18:14: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 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 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 2E 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 89 02 00 35 04 06 00 D2 [18:14:51]Write to MH i2c: E2 02 01 95 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 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 2E 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 89 02 00 35 04 06 00 D2 00 00 A0 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:52]Read from MH i2c: E2 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 03 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 03 00 95 77 00 90 00 80 [18:14:52]RAPDU: 90 00 [18:14:52]wFMCommunicate OK [18:14:52]wFMCommunicate request_size=10 [18:14:52]MH_SAM_APDU [18:14:52]CAPDU: 80 0D 02 02 05 01 A6 34 6E 88 [18:14:52]Write to MH i2c: E2 0D 00 96 77 80 0D 02 02 05 00 01 A6 34 6E 88 00 00 62 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:52]Read from MH i2c: E2 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 03 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 03 00 96 77 00 90 00 81 [18:14:52]RAPDU: 90 00 [18:14:52]wFMCommunicate OK [18:14:52]wFMCommunicate request_size=4 [18:14:52]MH_SAM_APDU [18:14:52]CAPDU: 80 0D 03 02 [18:14:52]Write to MH i2c: E2 08 00 97 77 80 0D 03 02 00 00 00 00 89 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:52]Read from MH i2c: E2 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 0B 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 0B 00 97 77 00 A5 42 E5 D2 1B 31 EF 58 90 00 BB [18:14:52]RAPDU: A5 42 E5 D2 1B 31 EF 58 90 00 [18:14:52]wFMCommunicate OK [18:14:52]SAM_PROTO_SignData done [18:14:52]FM_MakeSignedData done [18:14:52]CreateOFDProtocolMessage [18:14:52]wFMCommunicate request_size=4 [18:14:52]MH_SAM_APDU [18:14:52]CAPDU: 80 11 00 00 [18:14:52]Write to MH i2c: E2 08 00 98 77 80 11 00 00 00 00 00 00 89 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:52]Read from MH i2c: E2 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 17 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: E2 17 00 98 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [18:14:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:52]wFMCommunicate OK [18:14:52]CreateOFDProtocolMessage done [18:14:52]OFDSenderStorePacket 166157 [18:14:52]StoreOFDPacket docnum=166157 [18:14:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E 6F 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 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 2E 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 89 02 00 35 04 06 00 D2 01 A6 34 6E 88 A5 42 E5 D2 1B 31 EF 58 [18:14:52]CheckFolder [18:14:52]dirname=/storage/ofd_packets [18:14:52]CheckFolder done [18:14:52]ProducePacketName [18:14:52]name=ofd_packets/00166157 [18:14:52]NVStorageSaveData ofd_packets/00166157 [18:14:52]File name is /storage/ofd_packets/00166157 [18:14:52]Write 301 bytes [18:14:52]NVStorageSaveData done [18:14:52]OFDSenderStorePacket done [18:14:52]KKMCreateOFDPacket done [18:14:52]NVStorageSaveData kkm_last_timestamp [18:14:52]File name is /storage/kkm_last_timestamp [18:14:52]Write 4 bytes [18:14:52]NVStorageSaveData done [18:14:52]ExternCall_PrintAddStr [18:14:52]wPrintStart [18:14:52]Write to MH i2c: 01 00 00 99 77 10 [18:14:52]Write i2c OK [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 07 00 [18:14:52]MH_I2C_Read... [18:14:52]Read from MH i2c: 01 07 00 99 77 00 00 00 00 00 FF 0F 25 [18:14:52]RasterBufferAndPrint [18:14:52]line Счет N : (1)220728 [18:14:52]line ИНН: 02508201610067 [18:14:52]line Контрольно-Кассовый Чек [18:14:52]line ПРОДАЖА [18:14:52]line ТРК (МРК, ГНК) : 14 [18:14:52]line Товар: 2710124500 [18:14:52]line Аи-95-К-5 [18:14:52]line 6.730 * 74.20 [18:14:52]line = 499.37 [18:14:52]line НДС 12% НСП 1% [18:14:52]line > о реализуемом товаре [18:14:52]line ОКРУГЛЕНИЕ: -0.37 [18:14:52]line ИТОГО: 499.00 [18:14:52]line Внесено: 500.00 [18:14:52]line СДАЧА: 1.00 [18:14:52]line НСП 1% : 4.42 [18:14:52]line НДС 12% : 53.03 [18:14:52]line Наличными: 499.00 [18:14:52]line Безнал.: 0.00 [18:14:52]line Место: АЗС № 161 "Партнер Нефть" [18:14:52]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:14:52]line СНО: Общий режим [18:14:52]line Чек 268 21.10.2024 18:15 [18:14:52]line Смена: 535 ФФД: 1.0 [18:14:52]line ЗНМ: 0300000104 [18:14:52]line РНМ: 0000000000091764 [18:14:52]line Версия ККМ: 001 [18:14:52]line ФМ: 0000000000871759 [18:14:52]line ФД: 166157 [18:14:52]line ФПД: 230904525254280 [18:14:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181510&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166157&fm=230904525254280&tin=02508201610067®Number=0000000000091764&sum=49900 [18:14:52]OFD Sender: Processing packet 166157 [packets to send 48, broken 47] [18:14:52]ProducePacketName [18:14:52]name=ofd_packets/00166157 [18:14:52]OFD Sender: To server: pG, [18:14:52]CommunicateWithHost lk.salyk.kg:30040 [18:14:52]ConnectInit lk.salyk.kg [18:14:52]written 0, free lines is 4095 [18:14:52]Connected sock=7 [18:14:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8E 6F 07 01 AD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 EC C2 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 2E 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0D 89 02 00 35 04 06 00 D2 01 A6 34 6E 88 A5 42 E5 D2 1B 31 EF 58 [18:14:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 80 FE 47 00 7B 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 35 39 10 04 04 00 0D 89 02 00 F4 03 04 00 9B 40 16 67 B6 04 01 00 00 46 53 29 58 25 69 23 30 [18:14:53]CommunicateWithHost err = 0 [18:14:53]CheckOFDResponse [18:14:53]1017 (14) - 77093643461234 [18:14:53]1041 (16) - 0000000000871759 [18:14:53]1040 (4) - 166157 [18:14:53]1012 (4) - 21.10.2024 11:52 [18:14:53]1206 (1) - 0 [18:14:53]OFD Sender: Remove packet 166157 [18:14:53]ProducePacketName [18:14:53]name=ofd_packets/00166157 [18:14:53]NVStorageDeleteData [18:14:53]Write to MH i2c: 01 00 00 C4 77 3B [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: 01 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: 01 07 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: 01 07 00 C4 77 00 00 00 00 00 DA 0C 28 [18:14:53]RasterBufferAndPrint [18:14:53]line [18:14:53]line [18:14:53]line [18:14:53]line [18:14:53]line [18:14:53]written 0, free lines is 3297 [18:14:53]MH_Cut [18:14:53]Write to MH i2c: D1 01 00 CB 77 01 14 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: D1 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: D1 01 00 [18:14:53]MH_I2C_Read... [18:14:53]Read from MH i2c: D1 01 00 CB 77 00 13 [18:14:53]Write to MH i2c: 01 00 00 CC 77 43 [18:14:53]Write i2c OK [18:14:53]MH_I2C_Read... [18:14:53]OFD Sender: No OFD packet to send [18:14:53]*** Cut start [18:14:53]*** Partial cut [18:14:53]*** CUTSNS_PIN = 1 [18:14:54]*** CUTSNS_PIN = 0 [18:14:54]*** Brake cut motor [18:14:54]Read from MH i2c: 01 [18:14:54]MH_I2C_Read... [18:14:54]*** Stop cut motor [18:14:54]*** Cut end [18:14:54]Read from MH i2c: 01 07 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: 01 07 00 CC 77 00 00 00 00 00 FF 0F 58 [18:14:54]process_action close_receipt done [18:14:54]requested_data is exist [18:14:54]produce_requested_data [18:14:54]requested_item fm.sn is exist - process it [18:14:54]wFMCommunicate request_size=4 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 11 00 00 [18:14:54]Write to MH i2c: E2 08 00 CD 77 80 11 00 00 00 00 00 00 BE [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 17 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 17 00 CD 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 16 [18:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:14:54]wFMCommunicate OK [18:14:54]requested_item fd.num is exist - process it [18:14:54]SAM_PROTO_GetFieldsCounters [18:14:54]wFMCommunicate request_size=4 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 13 00 00 [18:14:54]Write to MH i2c: E2 08 00 CE 77 80 13 00 00 00 00 00 00 C1 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 62 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 62 00 CE 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [18:14:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:54]wFMCommunicate OK [18:14:54]SAM_PROTO_GetFieldsCounters done [18:14:54]requested_item shift.num is exist - process it [18:14:54]requested_item shift.opened is exist - process it [18:14:54]req_shift_opened [18:14:54]FM_GetShiftState [18:14:54]SAM_PROTO_GetShiftState [18:14:54]wFMCommunicate request_size=4 [18:14:54]MH_SAM_APDU [18:14:54]CAPDU: 80 13 01 00 [18:14:54]Write to MH i2c: E2 08 00 CF 77 80 13 01 00 00 00 00 00 C3 [18:14:54]Write i2c OK [18:14:54]MH_I2C_Read... [18:14:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:54]Read from MH i2c: E2 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0E 00 [18:14:54]MH_I2C_Read... [18:14:54]Read from MH i2c: E2 0E 00 CF 77 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CC [18:14:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:14:54]wFMCommunicate OK [18:14:54]SAM_PROTO_GetShiftState done [18:14:54]FM_GetShiftState done [18:14:54]req_shift_opened done [18:14:54]requested_item shift.open_date is exist - process it [18:14:54]req_shift_open_date [18:14:54]req_shift_open_date done [18:14:54]produce_requested_data done [18:14:54]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166157,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:14:54]process_action_free close_receipt [18:14:54]json_value_free [18:14:54]json_value_free done [18:14:54]process_json_proto returns [18:14:54]Send response to host [18:14:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166157,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:14:54]free response buf [18:14:54]execute_script done [18:14:54]execute_script returns [18:14:54]free content buf [18:14:54]Sock 6.Close socket [18:14:54]Sock 6.Thread stoped [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:16]accept exits with 5 [18:17:16]New connection [18:17:16]New thread 3066920292 created [18:17:16]Thread 3066776932 joined [18:17:16]Waiting for new connection... [18:17:16] Sock 5.Parse request [18:17:16]Sock 5.Check first char [18:17:16]Sock 5.First char is OK [18:17:16]request: POST /json_proto HTTP/1.0 [18:17:16]Method: POST [18:17:16]URL: /json_proto [18:17:16]Method is POST - this is cgi request [18:17:16]url: /json_proto [18:17:16]query_string will be loaded in cgi processing [18:17:16]execute_cgi json_proto POST (null) [18:17:16]execute_cgi path=json_proto method=POST [18:17:16]POST find Content-Length [18:17:16]Host: 172.17.53.195:8080 [18:17:16]Content-Length: 676 [18:17:16]Content-Type: application/json [18:17:16] [18:17:16]POST finish read [18:17:16]Found Content-Length = 676 [18:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:16]execute_script... [18:17:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220729", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:16]POST & json_proto [18:17:16]process_json_proto [18:17:16]json parsed OK: [18:17:16]protocol is kg_v1.0 [18:17:16]action value=close_receipt [18:17:16]process_action close_receipt [18:17:16]cmd_close_receipt [18:17:16]MH_GetDate [18:17:16]Write to MH i2c: F0 00 00 D0 77 36 [18:17:16]Write i2c OK [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: F0 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: F0 09 00 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: F0 09 00 D0 77 00 BF 9A 16 67 21 48 4A 65 2D [18:17:16]GetLastDocTimeStamp 1729534510 [18:17:16]current date 1729534655 [18:17:16]FM_GetShiftState [18:17:16]SAM_PROTO_GetShiftState [18:17:16]wFMCommunicate request_size=4 [18:17:16]MH_SAM_APDU [18:17:16]CAPDU: 80 13 01 00 [18:17:16]Write to MH i2c: E2 08 00 D1 77 80 13 01 00 00 00 00 00 C5 [18:17:16]Write i2c OK [18:17:16]MH_I2C_Read... [18:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:16]Read from MH i2c: E2 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: E2 0E 00 [18:17:16]MH_I2C_Read... [18:17:16]Read from MH i2c: E2 0E 00 D1 77 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CE [18:17:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:17:16]wFMCommunicate OK [18:17:16]SAM_PROTO_GetShiftState done [18:17:16]FM_GetShiftState done [18:17:16]opened in 1729470944 [18:17:16]opened+sec_in_day 1729557344 [18:17:16]quantity*price = 99974 [18:17:16]sum+1 = 99975 [18:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 269 21.10.2024 18:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166158 ФПД: 58762988026222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181735&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166158&fm=58762988026222&tin=02508201610067®Number=0000000000091764&sum=99900 [18:17:17]StoreToDocumentArchive [18:17:17]shift 535 fd 166158 [18:17:17]save to /storage/0535/doc_00166158 [18:17:17]save last doc name /storage/0535/doc_00166158 to /storage/kkm_last_doc_name [18:17:17]save OK [18:17:17]Clear old archive folders... [18:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:17:17]tlvbuf is 015999F0 [18:17:17]SAM_PROTO_ClearQueue [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 09 00 00 [18:17:17]Write to MH i2c: E2 08 00 DE 77 80 09 00 00 00 00 00 00 C7 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 DE 77 00 90 00 C9 [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]SAM_PROTO_ClearQueue done [18:17:17]KKMCreateOFDPacket [18:17:17]OFDProtocolAddRootSTLVToBuf [18:17:17]FM_MakeSignedData [18:17:17]FM_MakeSignedData [18:17:17]SAM_PROTO_SignData [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 01 02 [18:17:17]Write to MH i2c: E2 08 00 DF 77 80 0D 01 02 00 00 00 00 CF [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 DF 77 00 90 00 CA [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]wFMCommunicate request_size=255 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 89 02 00 35 04 06 00 35 71 D3 06 [18:17:17]Write to MH i2c: E2 02 01 E0 77 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 89 02 00 35 04 06 00 35 71 D3 06 00 00 49 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 E0 77 00 90 00 CB [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]wFMCommunicate request_size=7 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 02 02 02 F9 6E [18:17:17]Write to MH i2c: E2 0A 00 E1 77 80 0D 02 02 02 00 F9 6E 00 00 3D [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 03 00 E1 77 00 90 00 CC [18:17:17]RAPDU: 90 00 [18:17:17]wFMCommunicate OK [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 0D 03 02 [18:17:17]Write to MH i2c: E2 08 00 E2 77 80 0D 03 02 00 00 00 00 D4 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 0B 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 0B 00 E2 77 00 56 E3 F2 1A E4 A4 BB 47 90 00 A4 [18:17:17]RAPDU: 56 E3 F2 1A E4 A4 BB 47 90 00 [18:17:17]wFMCommunicate OK [18:17:17]SAM_PROTO_SignData done [18:17:17]FM_MakeSignedData done [18:17:17]CreateOFDProtocolMessage [18:17:17]wFMCommunicate request_size=4 [18:17:17]MH_SAM_APDU [18:17:17]CAPDU: 80 11 00 00 [18:17:17]Write to MH i2c: E2 08 00 E3 77 80 11 00 00 00 00 00 00 D4 [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:17]Read from MH i2c: E2 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 17 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: E2 17 00 E3 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [18:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:17:17]wFMCommunicate OK [18:17:17]CreateOFDProtocolMessage done [18:17:17]OFDSenderStorePacket 166158 [18:17:17]StoreOFDPacket docnum=166158 [18:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 58 C2 04 01 3F D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 89 02 00 35 04 06 00 35 71 D3 06 F9 6E 56 E3 F2 1A E4 A4 BB 47 [18:17:17]CheckFolder [18:17:17]dirname=/storage/ofd_packets [18:17:17]CheckFolder done [18:17:17]ProducePacketName [18:17:17]name=ofd_packets/00166158 [18:17:17]NVStorageSaveData ofd_packets/00166158 [18:17:17]File name is /storage/ofd_packets/00166158 [18:17:17]Write 298 bytes [18:17:17]NVStorageSaveData done [18:17:17]OFDSenderStorePacket done [18:17:17]KKMCreateOFDPacket done [18:17:17]NVStorageSaveData kkm_last_timestamp [18:17:17]File name is /storage/kkm_last_timestamp [18:17:17]Write 4 bytes [18:17:17]NVStorageSaveData done [18:17:17]ExternCall_PrintAddStr [18:17:17]wPrintStart [18:17:17]Write to MH i2c: 01 00 00 E4 77 5B [18:17:17]Write i2c OK [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: 01 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: 01 07 00 [18:17:17]MH_I2C_Read... [18:17:17]Read from MH i2c: 01 07 00 E4 77 00 00 00 00 00 FF 0F 70 [18:17:17]RasterBufferAndPrint [18:17:17]line Счет N : (1)220729 [18:17:17]line ИНН: 02508201610067 [18:17:17]line Контрольно-Кассовый Чек [18:17:17]line ПРОДАЖА [18:17:17]line ТРК (МРК, ГНК) : 11 [18:17:17]line Товар: 2710194210 [18:17:17]line ДТ-К-5 [18:17:17]line 13.120 * 76.20 [18:17:17]line = 999.74 [18:17:17]line НДС 12% НСП 1% [18:17:17]line > о реализуемом товаре [18:17:17]line ОКРУГЛЕНИЕ: -0.74 [18:17:17]line ИТОГО: 999.00 [18:17:17]line Внесено: 1000.00 [18:17:17]line СДАЧА: 1.00 [18:17:17]line НСП 1% : 8.85 [18:17:17]line НДС 12% : 106.17 [18:17:17]line Наличными: 999.00 [18:17:17]line Безнал.: 0.00 [18:17:17]line Место: АЗС № 161 "Партнер Нефть" [18:17:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:17:17]line СНО: Общий режим [18:17:17]line Чек 269 21.10.2024 18:17 [18:17:17]line Смена: 535 ФФД: 1.0 [18:17:17]line ЗНМ: 0300000104 [18:17:17]line РНМ: 0000000000091764 [18:17:17]line Версия ККМ: 001 [18:17:17]line ФМ: 0000000000871759 [18:17:17]line ФД: 166158 [18:17:17]line ФПД: 58762988026222 [18:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181735&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166158&fm=58762988026222&tin=02508201610067®Number=0000000000091764&sum=99900 [18:17:18]OFD Sender: Processing packet 166158 [packets to send 48, broken 47] [18:17:18]ProducePacketName [18:17:18]name=ofd_packets/00166158 [18:17:18]OFD Sender: To server: pG, [18:17:18]CommunicateWithHost lk.salyk.kg:30040 [18:17:18]ConnectInit lk.salyk.kg [18:17:18]written 0, free lines is 4095 [18:17:18]Connected sock=7 [18:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 58 C2 04 01 3F D4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 BF 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 89 02 00 35 04 06 00 35 71 D3 06 F9 6E 56 E3 F2 1A E4 A4 BB 47 [18:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 84 24 47 00 B0 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0E 89 02 00 F4 03 04 00 2D 41 16 67 B6 04 01 00 00 8C A6 5E 82 A0 05 D6 07 [18:17:18]CommunicateWithHost err = 0 [18:17:18]CheckOFDResponse [18:17:18]1017 (14) - 77093643461234 [18:17:18]1041 (16) - 0000000000871759 [18:17:18]1040 (4) - 166158 [18:17:18]1012 (4) - 21.10.2024 11:55 [18:17:18]1206 (1) - 0 [18:17:18]OFD Sender: Remove packet 166158 [18:17:18]ProducePacketName [18:17:18]name=ofd_packets/00166158 [18:17:18]NVStorageDeleteData [18:17:18]Write to MH i2c: 01 00 00 0F 78 87 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 07 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: 01 07 00 0F 78 00 00 00 00 00 CF 0C 69 [18:17:18]RasterBufferAndPrint [18:17:18]line [18:17:18]line [18:17:18]line [18:17:18]line [18:17:18]line [18:17:18]written 0, free lines is 3285 [18:17:18]MH_Cut [18:17:18]Write to MH i2c: D1 01 00 16 78 01 60 [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: D1 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: D1 01 00 [18:17:18]MH_I2C_Read... [18:17:18]Read from MH i2c: D1 01 00 16 78 00 5F [18:17:18]Write to MH i2c: 01 00 00 17 78 8F [18:17:18]Write i2c OK [18:17:18]MH_I2C_Read... [18:17:19]OFD Sender: No OFD packet to send [18:17:19]*** Cut start [18:17:19]*** Partial cut [18:17:19]*** CUTSNS_PIN = 1 [18:17:19]*** CUTSNS_PIN = 0 [18:17:19]*** Brake cut motor [18:17:20]Read from MH i2c: 01 [18:17:20]MH_I2C_Read... [18:17:20]*** Stop cut motor [18:17:20]*** Cut end [18:17:20]Read from MH i2c: 01 07 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: 01 07 00 17 78 00 00 00 00 00 FF 0F A4 [18:17:20]process_action close_receipt done [18:17:20]requested_data is exist [18:17:20]produce_requested_data [18:17:20]requested_item fm.sn is exist - process it [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 11 00 00 [18:17:20]Write to MH i2c: E2 08 00 18 78 80 11 00 00 00 00 00 00 0A [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 17 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 17 00 18 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 62 [18:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:17:20]wFMCommunicate OK [18:17:20]requested_item fd.num is exist - process it [18:17:20]SAM_PROTO_GetFieldsCounters [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 13 00 00 [18:17:20]Write to MH i2c: E2 08 00 19 78 80 13 00 00 00 00 00 00 0D [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 62 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 62 00 19 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:20]wFMCommunicate OK [18:17:20]SAM_PROTO_GetFieldsCounters done [18:17:20]requested_item shift.num is exist - process it [18:17:20]requested_item shift.opened is exist - process it [18:17:20]req_shift_opened [18:17:20]FM_GetShiftState [18:17:20]SAM_PROTO_GetShiftState [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 13 01 00 [18:17:20]Write to MH i2c: E2 08 00 1A 78 80 13 01 00 00 00 00 00 0F [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 0E 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 0E 00 1A 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 18 [18:17:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:17:20]wFMCommunicate OK [18:17:20]SAM_PROTO_GetShiftState done [18:17:20]FM_GetShiftState done [18:17:20]req_shift_opened done [18:17:20]requested_item shift.open_date is exist - process it [18:17:20]req_shift_open_date [18:17:20]req_shift_open_date done [18:17:20]produce_requested_data done [18:17:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166158,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:17:20]process_action_free close_receipt [18:17:20]json_value_free [18:17:20]json_value_free done [18:17:20]process_json_proto returns [18:17:20]Send response to host [18:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166158,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:17:20]free response buf [18:17:20]execute_script done [18:17:20]execute_script returns [18:17:20]free content buf [18:17:20]Sock 5.Close socket [18:17:20]Sock 5.Thread stoped [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:57]accept exits with 6 [18:17:57]New connection [18:17:57]New thread 3066776932 created [18:17:57]Thread 3066920292 joined [18:17:57]Waiting for new connection... [18:17:57] Sock 6.Parse request [18:17:57]Sock 6.Check first char [18:17:57]Sock 6.First char is OK [18:17:57]request: POST /json_proto HTTP/1.0 [18:17:57]Method: POST [18:17:57]URL: /json_proto [18:17:57]Method is POST - this is cgi request [18:17:57]url: /json_proto [18:17:57]query_string will be loaded in cgi processing [18:17:57]execute_cgi json_proto POST (null) [18:17:57]execute_cgi path=json_proto method=POST [18:17:57]POST find Content-Length [18:17:57]Host: 172.17.53.195:8080 [18:17:57]Content-Length: 674 [18:17:57]Content-Type: application/json [18:17:57] [18:17:57]POST finish read [18:17:57]Found Content-Length = 674 [18:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:57]execute_script... [18:17: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)220730", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:57]POST & json_proto [18:17:57]process_json_proto [18:17:57]json parsed OK: [18:17:57]protocol is kg_v1.0 [18:17:57]action value=close_receipt [18:17:57]process_action close_receipt [18:17:57]cmd_close_receipt [18:17:57]MH_GetDate [18:17:57]Write to MH i2c: F0 00 00 1B 78 82 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: F0 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: F0 09 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: F0 09 00 1B 78 00 E9 9A 16 67 21 48 4A 65 A3 [18:17:57]GetLastDocTimeStamp 1729534655 [18:17:57]current date 1729534697 [18:17:57]FM_GetShiftState [18:17:57]SAM_PROTO_GetShiftState [18:17:57]wFMCommunicate request_size=4 [18:17:57]MH_SAM_APDU [18:17:57]CAPDU: 80 13 01 00 [18:17:57]Write to MH i2c: E2 08 00 1C 78 80 13 01 00 00 00 00 00 11 [18:17:57]Write i2c OK [18:17:57]MH_I2C_Read... [18:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:57]Read from MH i2c: E2 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: E2 0E 00 [18:17:57]MH_I2C_Read... [18:17:57]Read from MH i2c: E2 0E 00 1C 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1A [18:17:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:17:57]wFMCommunicate OK [18:17:57]SAM_PROTO_GetShiftState done [18:17:57]FM_GetShiftState done [18:17:57]opened in 1729470944 [18:17:57]opened+sec_in_day 1729557344 [18:17:57]quantity*price = 50063 [18:17:57]sum+1 = 50064 [18:17:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 270 21.10.2024 18:18 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166159 ФПД: 208342964075341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181817&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166159&fm=208342964075341&tin=02508201610067®Number=0000000000091764&sum=50000 [18:17:58]StoreToDocumentArchive [18:17:58]shift 535 fd 166159 [18:17:58]save to /storage/0535/doc_00166159 [18:17:58]save last doc name /storage/0535/doc_00166159 to /storage/kkm_last_doc_name [18:17:58]save OK [18:17:58]Clear old archive folders... [18:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:17:58]tlvbuf is 018AFC80 [18:17:58]SAM_PROTO_ClearQueue [18:17:58]wFMCommunicate request_size=4 [18:17:58]MH_SAM_APDU [18:17:58]CAPDU: 80 09 00 00 [18:17:58]Write to MH i2c: E2 08 00 29 78 80 09 00 00 00 00 00 00 13 [18:17:58]Write i2c OK [18:17:58]MH_I2C_Read... [18:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:58]Read from MH i2c: E2 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: E2 03 00 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: E2 03 00 29 78 00 90 00 15 [18:17:58]RAPDU: 90 00 [18:17:58]wFMCommunicate OK [18:17:58]SAM_PROTO_ClearQueue done [18:17:58]KKMCreateOFDPacket [18:17:58]OFDProtocolAddRootSTLVToBuf [18:17:58]FM_MakeSignedData [18:17:58]FM_MakeSignedData [18:17:58]SAM_PROTO_SignData [18:17:58]wFMCommunicate request_size=4 [18:17:58]MH_SAM_APDU [18:17:58]CAPDU: 80 0D 01 02 [18:17:58]Write to MH i2c: E2 08 00 2A 78 80 0D 01 02 00 00 00 00 1B [18:17:58]Write i2c OK [18:17:58]MH_I2C_Read... [18:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:58]Read from MH i2c: E2 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: E2 03 00 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: E2 03 00 2A 78 00 90 00 16 [18:17:58]RAPDU: 90 00 [18:17:58]wFMCommunicate OK [18:17:58]wFMCommunicate request_size=255 [18:17:58]MH_SAM_APDU [18:17:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0E 01 00 00 F4 03 04 00 E9 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 89 02 00 35 04 06 00 BD 7C A0 5D [18:17:58]Write to MH i2c: E2 02 01 2B 78 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 E9 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 89 02 00 35 04 06 00 BD 7C A0 5D 00 00 27 [18:17:58]Write i2c OK [18:17:58]MH_I2C_Read... [18:17:59]OFD Sender: No OFD packet to send [18:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 03 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 03 00 2B 78 00 90 00 17 [18:17:59]RAPDU: 90 00 [18:17:59]wFMCommunicate OK [18:17:59]wFMCommunicate request_size=7 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 0D 02 02 02 7B 4D [18:17:59]Write to MH i2c: E2 0A 00 2C 78 80 0D 02 02 02 00 7B 4D 00 00 EA [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 03 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 03 00 2C 78 00 90 00 18 [18:17:59]RAPDU: 90 00 [18:17:59]wFMCommunicate OK [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 0D 03 02 [18:17:59]Write to MH i2c: E2 08 00 2D 78 80 0D 03 02 00 00 00 00 20 [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 0B 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 0B 00 2D 78 00 79 6B 1A 82 C8 98 2F 5E 90 00 8E [18:17:59]RAPDU: 79 6B 1A 82 C8 98 2F 5E 90 00 [18:17:59]wFMCommunicate OK [18:17:59]SAM_PROTO_SignData done [18:17:59]FM_MakeSignedData done [18:17:59]CreateOFDProtocolMessage [18:17:59]wFMCommunicate request_size=4 [18:17:59]MH_SAM_APDU [18:17:59]CAPDU: 80 11 00 00 [18:17:59]Write to MH i2c: E2 08 00 2E 78 80 11 00 00 00 00 00 00 20 [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:59]Read from MH i2c: E2 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 17 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: E2 17 00 2E 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 78 [18:17:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:17:59]wFMCommunicate OK [18:17:59]CreateOFDProtocolMessage done [18:17:59]OFDSenderStorePacket 166159 [18:17:59]StoreOFDPacket docnum=166159 [18:17:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 90 1B 04 01 48 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 0E 01 00 00 F4 03 04 00 E9 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 89 02 00 35 04 06 00 BD 7C A0 5D 7B 4D 79 6B 1A 82 C8 98 2F 5E [18:17:59]CheckFolder [18:17:59]dirname=/storage/ofd_packets [18:17:59]CheckFolder done [18:17:59]ProducePacketName [18:17:59]name=ofd_packets/00166159 [18:17:59]NVStorageSaveData ofd_packets/00166159 [18:17:59]File name is /storage/ofd_packets/00166159 [18:17:59]Write 298 bytes [18:17:59]NVStorageSaveData done [18:17:59]OFDSenderStorePacket done [18:17:59]KKMCreateOFDPacket done [18:17:59]NVStorageSaveData kkm_last_timestamp [18:17:59]File name is /storage/kkm_last_timestamp [18:17:59]Write 4 bytes [18:17:59]NVStorageSaveData done [18:17:59]ExternCall_PrintAddStr [18:17:59]wPrintStart [18:17:59]Write to MH i2c: 01 00 00 2F 78 A7 [18:17:59]Write i2c OK [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 07 00 [18:17:59]MH_I2C_Read... [18:17:59]Read from MH i2c: 01 07 00 2F 78 00 00 00 00 00 FF 0F BC [18:17:59]RasterBufferAndPrint [18:17:59]line Счет N : (1)220730 [18:17:59]line ИНН: 02508201610067 [18:17:59]line Контрольно-Кассовый Чек [18:17:59]line ПРОДАЖА [18:17:59]line ТРК (МРК, ГНК) : 31 [18:17:59]line Товар: 2710194210 [18:17:59]line ДТ-К-5 [18:17:59]line 6.570 * 76.20 [18:17:59]line = 500.63 [18:17:59]line НДС 12% НСП 1% [18:17:59]line > о реализуемом товаре [18:17:59]line ОКРУГЛЕНИЕ: -0.63 [18:17:59]line ИТОГО: 500.00 [18:17:59]line Внесено: 500.00 [18:17:59]line СДАЧА: 0.00 [18:17:59]line НСП 1% : 4.43 [18:17:59]line НДС 12% : 53.16 [18:17:59]line Наличными: 500.00 [18:17:59]line Безнал.: 0.00 [18:17:59]line Место: АЗС № 161 "Партнер Нефть" [18:17:59]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:17:59]line СНО: Общий режим [18:17:59]line Чек 270 21.10.2024 18:18 [18:17:59]line Смена: 535 ФФД: 1.0 [18:17:59]line ЗНМ: 0300000104 [18:17:59]line РНМ: 0000000000091764 [18:17:59]line Версия ККМ: 001 [18:17:59]line ФМ: 0000000000871759 [18:17:59]line ФД: 166159 [18:17:59]line ФПД: 208342964075341 [18:17:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T181817&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166159&fm=208342964075341&tin=02508201610067®Number=0000000000091764&sum=50000 [18:17:59]OFD Sender: Processing packet 166159 [packets to send 48, broken 47] [18:17:59]ProducePacketName [18:17:59]name=ofd_packets/00166159 [18:17:59]OFD Sender: To server: pG, [18:17:59]CommunicateWithHost lk.salyk.kg:30040 [18:17:59]ConnectInit lk.salyk.kg [18:17:59]written 0, free lines is 4095 [18:17:59]Connected sock=7 [18:17:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 90 1B 04 01 48 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 0E 01 00 00 F4 03 04 00 E9 9A 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 89 02 00 35 04 06 00 BD 7C A0 5D 7B 4D 79 6B 1A 82 C8 98 2F 5E [18:18:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7B ED 47 00 72 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 0F 89 02 00 F4 03 04 00 56 41 16 67 B6 04 01 00 00 97 DE 2C 40 3E DF BA AD [18:18:00]CommunicateWithHost err = 0 [18:18:00]CheckOFDResponse [18:18:00]1017 (14) - 77093643461234 [18:18:00]1041 (16) - 0000000000871759 [18:18:00]1040 (4) - 166159 [18:18:00]1012 (4) - 21.10.2024 11:56 [18:18:00]1206 (1) - 0 [18:18:00]OFD Sender: Remove packet 166159 [18:18:00]ProducePacketName [18:18:00]name=ofd_packets/00166159 [18:18:00]NVStorageDeleteData [18:18:00]Write to MH i2c: 01 00 00 5A 78 D2 [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: 01 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: 01 07 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: 01 07 00 5A 78 00 00 00 00 00 BE 0C A3 [18:18:00]RasterBufferAndPrint [18:18:00]line [18:18:00]line [18:18:00]line [18:18:00]line [18:18:00]line [18:18:00]written 0, free lines is 3272 [18:18:00]MH_Cut [18:18:00]Write to MH i2c: D1 01 00 61 78 01 AB [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: D1 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: D1 01 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: D1 01 00 61 78 00 AA [18:18:00]Write to MH i2c: 01 00 00 62 78 DA [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]OFD Sender: No OFD packet to send [18:18:00]*** Cut start [18:18:00]*** Partial cut [18:18:00]*** CUTSNS_PIN = 1 [18:18:00]*** CUTSNS_PIN = 0 [18:18:01]*** Brake cut motor [18:18:01]Read from MH i2c: 01 [18:18:01]MH_I2C_Read... [18:18:01]*** Stop cut motor [18:18:01]*** Cut end [18:18:01]Read from MH i2c: 01 07 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: 01 07 00 62 78 00 00 00 00 00 FF 0F EF [18:18:01]process_action close_receipt done [18:18:01]requested_data is exist [18:18:01]produce_requested_data [18:18:01]requested_item fm.sn is exist - process it [18:18:01]wFMCommunicate request_size=4 [18:18:01]MH_SAM_APDU [18:18:01]CAPDU: 80 11 00 00 [18:18:01]Write to MH i2c: E2 08 00 63 78 80 11 00 00 00 00 00 00 55 [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:01]Read from MH i2c: E2 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 17 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 17 00 63 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AD [18:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:18:01]wFMCommunicate OK [18:18:01]requested_item fd.num is exist - process it [18:18:01]SAM_PROTO_GetFieldsCounters [18:18:01]wFMCommunicate request_size=4 [18:18:01]MH_SAM_APDU [18:18:01]CAPDU: 80 13 00 00 [18:18:01]Write to MH i2c: E2 08 00 64 78 80 13 00 00 00 00 00 00 58 [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:01]Read from MH i2c: E2 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 62 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 62 00 64 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 60 [18:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 0F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:01]wFMCommunicate OK [18:18:01]SAM_PROTO_GetFieldsCounters done [18:18:01]requested_item shift.num is exist - process it [18:18:01]requested_item shift.opened is exist - process it [18:18:01]req_shift_opened [18:18:01]FM_GetShiftState [18:18:01]SAM_PROTO_GetShiftState [18:18:01]wFMCommunicate request_size=4 [18:18:01]MH_SAM_APDU [18:18:01]CAPDU: 80 13 01 00 [18:18:01]Write to MH i2c: E2 08 00 65 78 80 13 01 00 00 00 00 00 5A [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:01]Read from MH i2c: E2 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 0E 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 0E 00 65 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 63 [18:18:01]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:18:01]wFMCommunicate OK [18:18:01]SAM_PROTO_GetShiftState done [18:18:01]FM_GetShiftState done [18:18:01]req_shift_opened done [18:18:01]requested_item shift.open_date is exist - process it [18:18:01]req_shift_open_date [18:18:01]req_shift_open_date done [18:18:01]produce_requested_data done [18:18:01]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166159,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:18:01]process_action_free close_receipt [18:18:01]json_value_free [18:18:01]json_value_free done [18:18:01]process_json_proto returns [18:18:01]Send response to host [18:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166159,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:18:01]free response buf [18:18:01]execute_script done [18:18:01]execute_script returns [18:18:01]free content buf [18:18:01]Sock 6.Close socket [18:18:01]Sock 6.Thread stoped [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:11]accept exits with 5 [18:20:11]New connection [18:20:11]New thread 3066920292 created [18:20:11]Thread 3066776932 joined [18:20:11]Waiting for new connection... [18:20:11] Sock 5.Parse request [18:20:11]Sock 5.Check first char [18:20:11]Sock 5.First char is OK [18:20:11]request: POST /json_proto HTTP/1.0 [18:20:11]Method: POST [18:20:11]URL: /json_proto [18:20:11]Method is POST - this is cgi request [18:20:11]url: /json_proto [18:20:11]query_string will be loaded in cgi processing [18:20:11]execute_cgi json_proto POST (null) [18:20:11]execute_cgi path=json_proto method=POST [18:20:11]POST find Content-Length [18:20:11]Host: 172.17.53.195:8080 [18:20:11]Content-Length: 682 [18:20:11]Content-Type: application/json [18:20:11] [18:20:11]POST finish read [18:20:11]Found Content-Length = 682 [18:20:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:11]execute_script... [18:20: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)220731", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:11]POST & json_proto [18:20:11]process_json_proto [18:20:11]json parsed OK: [18:20:11]protocol is kg_v1.0 [18:20:11]action value=close_receipt [18:20:11]process_action close_receipt [18:20:11]cmd_close_receipt [18:20:11]MH_GetDate [18:20:11]Write to MH i2c: F0 00 00 66 78 CD [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: F0 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: F0 09 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: F0 09 00 66 78 00 6E 9B 16 67 21 48 4A 65 74 [18:20:11]GetLastDocTimeStamp 1729534697 [18:20:11]current date 1729534830 [18:20:11]FM_GetShiftState [18:20:11]SAM_PROTO_GetShiftState [18:20:11]wFMCommunicate request_size=4 [18:20:11]MH_SAM_APDU [18:20:11]CAPDU: 80 13 01 00 [18:20:11]Write to MH i2c: E2 08 00 67 78 80 13 01 00 00 00 00 00 5C [18:20:11]Write i2c OK [18:20:11]MH_I2C_Read... [18:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:11]Read from MH i2c: E2 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 0E 00 [18:20:11]MH_I2C_Read... [18:20:11]Read from MH i2c: E2 0E 00 67 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 65 [18:20:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:20:11]wFMCommunicate OK [18:20:11]SAM_PROTO_GetShiftState done [18:20:11]FM_GetShiftState done [18:20:11]opened in 1729470944 [18:20:11]opened+sec_in_day 1729557344 [18:20:11]quantity*price = 130053 [18:20:11]sum+1 = 130055 [18:20:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 271 21.10.2024 18:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166160 ФПД: 99095768712034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166160&fm=99095768712034&tin=02508201610067®Number=0000000000091764&sum=130000 [18:20:12]StoreToDocumentArchive [18:20:12]shift 535 fd 166160 [18:20:12]save to /storage/0535/doc_00166160 [18:20:12]save last doc name /storage/0535/doc_00166160 to /storage/kkm_last_doc_name [18:20:12]save OK [18:20:12]Clear old archive folders... [18:20:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:12]tlvbuf is 0186B2A0 [18:20:12]SAM_PROTO_ClearQueue [18:20:12]wFMCommunicate request_size=4 [18:20:12]MH_SAM_APDU [18:20:12]CAPDU: 80 09 00 00 [18:20:12]Write to MH i2c: E2 08 00 74 78 80 09 00 00 00 00 00 00 5E [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:12]Read from MH i2c: E2 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 03 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 03 00 74 78 00 90 00 60 [18:20:12]RAPDU: 90 00 [18:20:12]wFMCommunicate OK [18:20:12]SAM_PROTO_ClearQueue done [18:20:12]KKMCreateOFDPacket [18:20:12]OFDProtocolAddRootSTLVToBuf [18:20:12]FM_MakeSignedData [18:20:12]FM_MakeSignedData [18:20:12]SAM_PROTO_SignData [18:20:12]wFMCommunicate request_size=4 [18:20:12]MH_SAM_APDU [18:20:12]CAPDU: 80 0D 01 02 [18:20:12]Write to MH i2c: E2 08 00 75 78 80 0D 01 02 00 00 00 00 66 [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:12]Read from MH i2c: E2 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 03 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 03 00 75 78 00 90 00 61 [18:20:12]RAPDU: 90 00 [18:20:12]wFMCommunicate OK [18:20:12]wFMCommunicate request_size=255 [18:20:12]MH_SAM_APDU [18:20: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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6E 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 89 02 00 35 04 06 00 5A [18:20:12]Write to MH i2c: E2 02 01 76 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6E 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 89 02 00 35 04 06 00 5A 00 00 D8 [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:12]Read from MH i2c: E2 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 03 00 [18:20:12]MH_I2C_Read... [18:20:12]Read from MH i2c: E2 03 00 76 78 00 90 00 62 [18:20:12]RAPDU: 90 00 [18:20:12]wFMCommunicate OK [18:20:12]wFMCommunicate request_size=10 [18:20:12]MH_SAM_APDU [18:20:12]CAPDU: 80 0D 02 02 05 20 88 17 C3 62 [18:20:12]Write to MH i2c: E2 0D 00 77 78 80 0D 02 02 05 00 20 88 17 C3 62 00 00 57 [18:20:12]Write i2c OK [18:20:12]MH_I2C_Read... [18:20:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:13]Read from MH i2c: E2 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 03 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 03 00 77 78 00 90 00 63 [18:20:13]RAPDU: 90 00 [18:20:13]wFMCommunicate OK [18:20:13]wFMCommunicate request_size=4 [18:20:13]MH_SAM_APDU [18:20:13]CAPDU: 80 0D 03 02 [18:20:13]Write to MH i2c: E2 08 00 78 78 80 0D 03 02 00 00 00 00 6B [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:13]Read from MH i2c: E2 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 0B 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 0B 00 78 78 00 BE EB C0 8B EC FC 77 B5 90 00 74 [18:20:13]RAPDU: BE EB C0 8B EC FC 77 B5 90 00 [18:20:13]wFMCommunicate OK [18:20:13]SAM_PROTO_SignData done [18:20:13]FM_MakeSignedData done [18:20:13]CreateOFDProtocolMessage [18:20:13]wFMCommunicate request_size=4 [18:20:13]MH_SAM_APDU [18:20:13]CAPDU: 80 11 00 00 [18:20:13]Write to MH i2c: E2 08 00 79 78 80 11 00 00 00 00 00 00 6B [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:13]Read from MH i2c: E2 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 17 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 17 00 79 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C3 [18:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:20:13]wFMCommunicate OK [18:20:13]CreateOFDProtocolMessage done [18:20:13]OFDSenderStorePacket 166160 [18:20:13]StoreOFDPacket docnum=166160 [18:20:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 3C 07 01 B9 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6E 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 89 02 00 35 04 06 00 5A 20 88 17 C3 62 BE EB C0 8B EC FC 77 B5 [18:20:13]CheckFolder [18:20:13]dirname=/storage/ofd_packets [18:20:13]CheckFolder done [18:20:13]ProducePacketName [18:20:13]name=ofd_packets/00166160 [18:20:13]NVStorageSaveData ofd_packets/00166160 [18:20:13]File name is /storage/ofd_packets/00166160 [18:20:13]Write 301 bytes [18:20:13]NVStorageSaveData done [18:20:13]OFDSenderStorePacket done [18:20:13]KKMCreateOFDPacket done [18:20:13]NVStorageSaveData kkm_last_timestamp [18:20:13]File name is /storage/kkm_last_timestamp [18:20:13]Write 4 bytes [18:20:13]NVStorageSaveData done [18:20:13]ExternCall_PrintAddStr [18:20:13]wPrintStart [18:20:13]Write to MH i2c: 01 00 00 7A 78 F2 [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: 01 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: 01 07 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: 01 07 00 7A 78 00 00 00 00 00 FF 0F 07 [18:20:13]RasterBufferAndPrint [18:20:13]line Счет N : (1)220731 [18:20:13]line ИНН: 02508201610067 [18:20:13]line Контрольно-Кассовый Чек [18:20:13]line ПРОДАЖА [18:20:13]line ТРК (МРК, ГНК) : 23 [18:20:13]line Товар: 2710124130 [18:20:13]line Аи-92-К-5 [18:20:13]line 19.440 * 66.90 [18:20:13]line = 1300.54 [18:20:13]line НДС 12% НСП 1% [18:20:13]line > о реализуемом товаре [18:20:13]line ОКРУГЛЕНИЕ: -0.54 [18:20:13]line ИТОГО: 1300.00 [18:20:13]line Внесено: 1300.00 [18:20:13]line СДАЧА: 0.00 [18:20:13]line НСП 1% : 11.51 [18:20:13]line НДС 12% : 138.11 [18:20:13]line Наличными: 1300.00 [18:20:13]line Безнал.: 0.00 [18:20:13]line Место: АЗС № 161 "Партнер Нефть" [18:20:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:20:13]line СНО: Общий режим [18:20:13]line Чек 271 21.10.2024 18:20 [18:20:13]line Смена: 535 ФФД: 1.0 [18:20:13]line ЗНМ: 0300000104 [18:20:13]line РНМ: 0000000000091764 [18:20:13]line Версия ККМ: 001 [18:20:13]line ФМ: 0000000000871759 [18:20:13]line ФД: 166160 [18:20:13]line ФПД: 99095768712034 [18:20:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182030&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166160&fm=99095768712034&tin=02508201610067®Number=0000000000091764&sum=130000 [18:20:13]OFD Sender: Processing packet 166160 [packets to send 48, broken 47] [18:20:13]ProducePacketName [18:20:13]name=ofd_packets/00166160 [18:20:13]OFD Sender: To server: pG, [18:20:13]CommunicateWithHost lk.salyk.kg:30040 [18:20:13]ConnectInit lk.salyk.kg [18:20:13]written 0, free lines is 4095 [18:20:13]Connected sock=7 [18:20:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A3 3C 07 01 B9 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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6E 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 10 89 02 00 35 04 06 00 5A 20 88 17 C3 62 BE EB C0 8B EC FC 77 B5 [18:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 A6 47 00 57 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 35 39 10 04 04 00 10 89 02 00 F4 03 04 00 DC 41 16 67 B6 04 01 00 00 FD 7F D4 DB E3 75 EC FA [18:20:13]CommunicateWithHost err = 0 [18:20:13]CheckOFDResponse [18:20:13]1017 (14) - 77093643461234 [18:20:13]1041 (16) - 0000000000871759 [18:20:13]1040 (4) - 166160 [18:20:13]1012 (4) - 21.10.2024 11:58 [18:20:13]1206 (1) - 0 [18:20:13]OFD Sender: Remove packet 166160 [18:20:13]ProducePacketName [18:20:13]name=ofd_packets/00166160 [18:20:13]NVStorageDeleteData [18:20:13]Write to MH i2c: 01 00 00 A5 78 1D [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: 01 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: 01 07 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: 01 07 00 A5 78 00 00 00 00 00 C4 0C F4 [18:20:13]RasterBufferAndPrint [18:20:13]line [18:20:13]line [18:20:13]line [18:20:13]line [18:20:13]line [18:20:13]written 0, free lines is 3275 [18:20:13]MH_Cut [18:20:13]Write to MH i2c: D1 01 00 AC 78 01 F6 [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: D1 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: D1 01 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: D1 01 00 AC 78 00 F5 [18:20:13]Write to MH i2c: 01 00 00 AD 78 25 [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:14]OFD Sender: No OFD packet to send [18:20:14]*** Cut start [18:20:14]*** Partial cut [18:20:14]*** CUTSNS_PIN = 1 [18:20:14]*** CUTSNS_PIN = 0 [18:20:14]*** Brake cut motor [18:20:15]Read from MH i2c: 01 [18:20:15]MH_I2C_Read... [18:20:15]*** Stop cut motor [18:20:15]*** Cut end [18:20:15]Read from MH i2c: 01 07 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: 01 07 00 AD 78 00 00 00 00 00 FF 0F 3A [18:20:15]process_action close_receipt done [18:20:15]requested_data is exist [18:20:15]produce_requested_data [18:20:15]requested_item fm.sn is exist - process it [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 11 00 00 [18:20:15]Write to MH i2c: E2 08 00 AE 78 80 11 00 00 00 00 00 00 A0 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 17 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 17 00 AE 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F8 [18:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:20:15]wFMCommunicate OK [18:20:15]requested_item fd.num is exist - process it [18:20:15]SAM_PROTO_GetFieldsCounters [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 13 00 00 [18:20:15]Write to MH i2c: E2 08 00 AF 78 80 13 00 00 00 00 00 00 A3 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 62 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 62 00 AF 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 AF [18:20:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 10 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:15]wFMCommunicate OK [18:20:15]SAM_PROTO_GetFieldsCounters done [18:20:15]requested_item shift.num is exist - process it [18:20:15]requested_item shift.opened is exist - process it [18:20:15]req_shift_opened [18:20:15]FM_GetShiftState [18:20:15]SAM_PROTO_GetShiftState [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 13 01 00 [18:20:15]Write to MH i2c: E2 08 00 B0 78 80 13 01 00 00 00 00 00 A5 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 0E 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 0E 00 B0 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AE [18:20:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:20:15]wFMCommunicate OK [18:20:15]SAM_PROTO_GetShiftState done [18:20:15]FM_GetShiftState done [18:20:15]req_shift_opened done [18:20:15]requested_item shift.open_date is exist - process it [18:20:15]req_shift_open_date [18:20:15]req_shift_open_date done [18:20:15]produce_requested_data done [18:20:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166160,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:20:15]process_action_free close_receipt [18:20:15]json_value_free [18:20:15]json_value_free done [18:20:15]process_json_proto returns [18:20:15]Send response to host [18:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166160,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:20:15]free response buf [18:20:15]execute_script done [18:20:15]execute_script returns [18:20:15]free content buf [18:20:15]Sock 5.Close socket [18:20:15]Sock 5.Thread stoped [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:44]accept exits with 6 [18:21:44]New connection [18:21:44]New thread 3066776932 created [18:21:44]Thread 3066920292 joined [18:21:44]Waiting for new connection... [18:21:44] Sock 6.Parse request [18:21:44]Sock 6.Check first char [18:21:44]Sock 6.First char is OK [18:21:44]request: POST /json_proto HTTP/1.0 [18:21:44]Method: POST [18:21:44]URL: /json_proto [18:21:44]Method is POST - this is cgi request [18:21:44]url: /json_proto [18:21:44]query_string will be loaded in cgi processing [18:21:44]execute_cgi json_proto POST (null) [18:21:44]execute_cgi path=json_proto method=POST [18:21:44]POST find Content-Length [18:21:44]Host: 172.17.53.195:8080 [18:21:44]Content-Length: 682 [18:21:44]Content-Type: application/json [18:21:44] [18:21:44]POST finish read [18:21:44]Found Content-Length = 682 [18:21:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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:21:44]execute_script... [18:21: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)220732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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:21:44]POST & json_proto [18:21:44]process_json_proto [18:21:44]json parsed OK: [18:21:44]protocol is kg_v1.0 [18:21:44]action value=close_receipt [18:21:44]process_action close_receipt [18:21:44]cmd_close_receipt [18:21:44]MH_GetDate [18:21:44]Write to MH i2c: F0 00 00 B1 78 18 [18:21:44]Write i2c OK [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: F0 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: F0 09 00 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: F0 09 00 B1 78 00 CC 9B 16 67 21 48 4A 65 1D [18:21:44]GetLastDocTimeStamp 1729534830 [18:21:44]current date 1729534924 [18:21:44]FM_GetShiftState [18:21:44]SAM_PROTO_GetShiftState [18:21:44]wFMCommunicate request_size=4 [18:21:44]MH_SAM_APDU [18:21:44]CAPDU: 80 13 01 00 [18:21:44]Write to MH i2c: E2 08 00 B2 78 80 13 01 00 00 00 00 00 A7 [18:21:44]Write i2c OK [18:21:44]MH_I2C_Read... [18:21:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:44]Read from MH i2c: E2 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 0E 00 [18:21:44]MH_I2C_Read... [18:21:44]Read from MH i2c: E2 0E 00 B2 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B0 [18:21:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:21:44]wFMCommunicate OK [18:21:44]SAM_PROTO_GetShiftState done [18:21:44]FM_GetShiftState done [18:21:44]opened in 1729470944 [18:21:44]opened+sec_in_day 1729557344 [18:21:44]quantity*price = 100021 [18:21:44]sum+1 = 100023 [18:21:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 272 21.10.2024 18:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166161 ФПД: 70291705952888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182204&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166161&fm=70291705952888&tin=02508201610067®Number=0000000000091764&sum=100000 [18:21:46]StoreToDocumentArchive [18:21:46]shift 535 fd 166161 [18:21:46]save to /storage/0535/doc_00166161 [18:21:46]save last doc name /storage/0535/doc_00166161 to /storage/kkm_last_doc_name [18:21:46]save OK [18:21:46]Clear old archive folders... [18:21:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:46]tlvbuf is 01B4D960 [18:21:46]SAM_PROTO_ClearQueue [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 09 00 00 [18:21:46]Write to MH i2c: E2 08 00 BF 78 80 09 00 00 00 00 00 00 A9 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 BF 78 00 90 00 AB [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]SAM_PROTO_ClearQueue done [18:21:46]KKMCreateOFDPacket [18:21:46]OFDProtocolAddRootSTLVToBuf [18:21:46]FM_MakeSignedData [18:21:46]FM_MakeSignedData [18:21:46]SAM_PROTO_SignData [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 0D 01 02 [18:21:46]Write to MH i2c: E2 08 00 C0 78 80 0D 01 02 00 00 00 00 B1 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 C0 78 00 90 00 AC [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]wFMCommunicate request_size=255 [18:21:46]MH_SAM_APDU [18:21: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 10 01 00 00 F4 03 04 00 CC 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 89 02 00 35 04 06 00 3F [18:21:46]Write to MH i2c: E2 02 01 C1 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 01 00 00 F4 03 04 00 CC 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 89 02 00 35 04 06 00 3F 00 00 4D [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 C1 78 00 90 00 AD [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]wFMCommunicate request_size=10 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 0D 02 02 05 EE 10 29 FA 78 [18:21:46]Write to MH i2c: E2 0D 00 C2 78 80 0D 02 02 05 00 EE 10 29 FA 78 00 00 57 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 03 00 C2 78 00 90 00 AE [18:21:46]RAPDU: 90 00 [18:21:46]wFMCommunicate OK [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 0D 03 02 [18:21:46]Write to MH i2c: E2 08 00 C3 78 80 0D 03 02 00 00 00 00 B6 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 0B 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 0B 00 C3 78 00 1D E2 C3 92 A2 8B E0 5A 90 00 72 [18:21:46]RAPDU: 1D E2 C3 92 A2 8B E0 5A 90 00 [18:21:46]wFMCommunicate OK [18:21:46]SAM_PROTO_SignData done [18:21:46]FM_MakeSignedData done [18:21:46]CreateOFDProtocolMessage [18:21:46]wFMCommunicate request_size=4 [18:21:46]MH_SAM_APDU [18:21:46]CAPDU: 80 11 00 00 [18:21:46]Write to MH i2c: E2 08 00 C4 78 80 11 00 00 00 00 00 00 B6 [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:46]Read from MH i2c: E2 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 17 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: E2 17 00 C4 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0E [18:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:46]wFMCommunicate OK [18:21:46]CreateOFDProtocolMessage done [18:21:46]OFDSenderStorePacket 166161 [18:21:46]StoreOFDPacket docnum=166161 [18:21:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 6A 07 01 27 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 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 01 00 00 F4 03 04 00 CC 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 89 02 00 35 04 06 00 3F EE 10 29 FA 78 1D E2 C3 92 A2 8B E0 5A [18:21:46]CheckFolder [18:21:46]dirname=/storage/ofd_packets [18:21:46]CheckFolder done [18:21:46]ProducePacketName [18:21:46]name=ofd_packets/00166161 [18:21:46]NVStorageSaveData ofd_packets/00166161 [18:21:46]File name is /storage/ofd_packets/00166161 [18:21:46]Write 301 bytes [18:21:46]NVStorageSaveData done [18:21:46]OFDSenderStorePacket done [18:21:46]KKMCreateOFDPacket done [18:21:46]NVStorageSaveData kkm_last_timestamp [18:21:46]File name is /storage/kkm_last_timestamp [18:21:46]Write 4 bytes [18:21:46]NVStorageSaveData done [18:21:46]ExternCall_PrintAddStr [18:21:46]wPrintStart [18:21:46]Write to MH i2c: 01 00 00 C5 78 3D [18:21:46]Write i2c OK [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 [18:21:46]MH_I2C_Read... [18:21:46]Read from MH i2c: 01 07 00 C5 78 00 00 00 00 00 FF 0F 52 [18:21:46]RasterBufferAndPrint [18:21:46]line Счет N : (1)220732 [18:21:46]line ИНН: 02508201610067 [18:21:46]line Контрольно-Кассовый Чек [18:21:46]line ПРОДАЖА [18:21:46]line ТРК (МРК, ГНК) : 34 [18:21:46]line Товар: 2710124500 [18:21:46]line Аи-95-К-5 [18:21:46]line 13.480 * 74.20 [18:21:46]line = 1000.22 [18:21:46]line НДС 12% НСП 1% [18:21:46]line > о реализуемом товаре [18:21:46]line ОКРУГЛЕНИЕ: -0.22 [18:21:46]line ИТОГО: 1000.00 [18:21:46]line Внесено: 1000.00 [18:21:46]line СДАЧА: 0.00 [18:21:46]line НСП 1% : 8.85 [18:21:46]line НДС 12% : 106.22 [18:21:46]line Наличными: 1000.00 [18:21:46]line Безнал.: 0.00 [18:21:46]line Место: АЗС № 161 "Партнер Нефть" [18:21:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:21:46]line СНО: Общий режим [18:21:46]line Чек 272 21.10.2024 18:22 [18:21:46]line Смена: 535 ФФД: 1.0 [18:21:46]line ЗНМ: 0300000104 [18:21:46]line РНМ: 0000000000091764 [18:21:46]line Версия ККМ: 001 [18:21:46]line ФМ: 0000000000871759 [18:21:46]line ФД: 166161 [18:21:46]line ФПД: 70291705952888 [18:21:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182204&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166161&fm=70291705952888&tin=02508201610067®Number=0000000000091764&sum=100000 [18:21:46]OFD Sender: Processing packet 166161 [packets to send 48, broken 47] [18:21:46]ProducePacketName [18:21:46]name=ofd_packets/00166161 [18:21:46]OFD Sender: To server: pG, [18:21:46]CommunicateWithHost lk.salyk.kg:30040 [18:21:46]ConnectInit lk.salyk.kg [18:21:46]written 0, free lines is 4095 [18:21:46]Connected sock=7 [18:21:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 6A 07 01 27 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 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 01 00 00 F4 03 04 00 CC 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 89 02 00 35 04 06 00 3F EE 10 29 FA 78 1D E2 C3 92 A2 8B E0 5A [18:21:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 87 81 47 00 43 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 11 89 02 00 F4 03 04 00 3A 42 16 67 B6 04 01 00 00 E1 B1 5C 2B 23 1B 6B BA [18:21:47]CommunicateWithHost err = 0 [18:21:47]CheckOFDResponse [18:21:47]1017 (14) - 77093643461234 [18:21:47]1041 (16) - 0000000000871759 [18:21:47]1040 (4) - 166161 [18:21:47]1012 (4) - 21.10.2024 11:59 [18:21:47]1206 (1) - 0 [18:21:47]OFD Sender: Remove packet 166161 [18:21:47]ProducePacketName [18:21:47]name=ofd_packets/00166161 [18:21:47]NVStorageDeleteData [18:21:47]Write to MH i2c: 01 00 00 F0 78 68 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: 01 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: 01 07 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: 01 07 00 F0 78 00 00 00 00 00 C3 0C 3E [18:21:47]RasterBufferAndPrint [18:21:47]line [18:21:47]line [18:21:47]line [18:21:47]line [18:21:47]line [18:21:47]written 0, free lines is 3273 [18:21:47]MH_Cut [18:21:47]Write to MH i2c: D1 01 00 F7 78 01 41 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: D1 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: D1 01 00 [18:21:47]MH_I2C_Read... [18:21:47]Read from MH i2c: D1 01 00 F7 78 00 40 [18:21:47]Write to MH i2c: 01 00 00 F8 78 70 [18:21:47]Write i2c OK [18:21:47]MH_I2C_Read... [18:21:47]OFD Sender: No OFD packet to send [18:21:48]*** Cut start [18:21:48]*** Partial cut [18:21:48]*** CUTSNS_PIN = 1 [18:21:48]*** CUTSNS_PIN = 0 [18:21:48]*** Brake cut motor [18:21:48]Read from MH i2c: 01 [18:21:48]MH_I2C_Read... [18:21:48]*** Stop cut motor [18:21:48]*** Cut end [18:21:48]Read from MH i2c: 01 07 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: 01 07 00 F8 78 00 00 00 00 00 FF 0F 85 [18:21:48]process_action close_receipt done [18:21:48]requested_data is exist [18:21:48]produce_requested_data [18:21:48]requested_item fm.sn is exist - process it [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 11 00 00 [18:21:48]Write to MH i2c: E2 08 00 F9 78 80 11 00 00 00 00 00 00 EB [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 17 00 F9 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 43 [18:21:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:48]wFMCommunicate OK [18:21:48]requested_item fd.num is exist - process it [18:21:48]SAM_PROTO_GetFieldsCounters [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 00 00 [18:21:48]Write to MH i2c: E2 08 00 FA 78 80 13 00 00 00 00 00 00 EE [18:21:48]Write i2c OK [18:21:48]MH_I2C_Read... [18:21:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:48]Read from MH i2c: E2 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 62 00 [18:21:48]MH_I2C_Read... [18:21:48]Read from MH i2c: E2 62 00 FA 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 FE [18:21:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 11 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:48]wFMCommunicate OK [18:21:48]SAM_PROTO_GetFieldsCounters done [18:21:48]requested_item shift.num is exist - process it [18:21:48]requested_item shift.opened is exist - process it [18:21:48]req_shift_opened [18:21:48]FM_GetShiftState [18:21:48]SAM_PROTO_GetShiftState [18:21:48]wFMCommunicate request_size=4 [18:21:48]MH_SAM_APDU [18:21:48]CAPDU: 80 13 01 00 [18:21:48]Write to MH i2c: E2 08 00 FB 78 80 13 01 00 00 00 00 00 F0 [18:21:48]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 0E 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 0E 00 FB 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F9 [18:21:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:21:49]wFMCommunicate OK [18:21:49]SAM_PROTO_GetShiftState done [18:21:49]FM_GetShiftState done [18:21:49]req_shift_opened done [18:21:49]requested_item shift.open_date is exist - process it [18:21:49]req_shift_open_date [18:21:49]req_shift_open_date done [18:21:49]produce_requested_data done [18:21:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166161,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:21:49]process_action_free close_receipt [18:21:49]json_value_free [18:21:49]json_value_free done [18:21:49]process_json_proto returns [18:21:49]Send response to host [18:21:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166161,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:21:49]free response buf [18:21:49]execute_script done [18:21:49]execute_script returns [18:21:49]free content buf [18:21:49]Sock 6.Close socket [18:21:49]Sock 6.Thread stoped [18:21:49]accept exits with 5 [18:21:49]New connection [18:21:49]New thread 3066920292 created [18:21:49]Thread 3066776932 joined [18:21:49]Waiting for new connection... [18:21:49] Sock 5.Parse request [18:21:49]Sock 5.Check first char [18:21:49]Sock 5.First char is OK [18:21:49]request: POST /json_proto HTTP/1.0 [18:21:49]Method: POST [18:21:49]URL: /json_proto [18:21:49]Method is POST - this is cgi request [18:21:49]url: /json_proto [18:21:49]query_string will be loaded in cgi processing [18:21:49]execute_cgi json_proto POST (null) [18:21:49]execute_cgi path=json_proto method=POST [18:21:49]POST find Content-Length [18:21:49]Host: 172.17.53.195:8080 [18:21:49]Content-Length: 766 [18:21:49]Content-Type: application/json [18:21:49] [18:21:49]POST finish read [18:21:49]Found Content-Length = 766 [18:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:49]execute_script... [18: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)220733", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:49]POST & json_proto [18:21:49]process_json_proto [18:21:49]json parsed OK: [18:21:49]protocol is kg_v1.0 [18:21:49]action value=close_receipt [18:21:49]process_action close_receipt [18:21:49]cmd_close_receipt [18:21:49]MH_GetDate [18:21:49]Write to MH i2c: F0 00 00 FC 78 63 [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: F0 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: F0 09 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: F0 09 00 FC 78 00 D1 9B 16 67 21 48 4A 65 6D [18:21:49]GetLastDocTimeStamp 1729534924 [18:21:49]current date 1729534929 [18:21:49]FM_GetShiftState [18:21:49]SAM_PROTO_GetShiftState [18:21:49]wFMCommunicate request_size=4 [18:21:49]MH_SAM_APDU [18:21:49]CAPDU: 80 13 01 00 [18:21:49]Write to MH i2c: E2 08 00 FD 78 80 13 01 00 00 00 00 00 F2 [18:21:49]Write i2c OK [18:21:49]MH_I2C_Read... [18:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:49]Read from MH i2c: E2 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 0E 00 [18:21:49]MH_I2C_Read... [18:21:49]Read from MH i2c: E2 0E 00 FD 78 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FB [18:21:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:21:49]wFMCommunicate OK [18:21:49]SAM_PROTO_GetShiftState done [18:21:49]FM_GetShiftState done [18:21:49]opened in 1729470944 [18:21:49]opened+sec_in_day 1729557344 [18:21:49]quantity*price = 50041 [18:21:49]sum+1 = 50042 [18:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 273 21.10.2024 18:22 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166162 ФПД: 77450369503220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166162&fm=77450369503220&tin=02508201610067®Number=0000000000091764&sum=50041 [18:21:50]StoreToDocumentArchive [18:21:50]shift 535 fd 166162 [18:21:50]save to /storage/0535/doc_00166162 [18:21:50]save last doc name /storage/0535/doc_00166162 to /storage/kkm_last_doc_name [18:21:50]save OK [18:21:50]Clear old archive folders... [18:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:21:50]tlvbuf is 01512D30 [18:21:50]SAM_PROTO_ClearQueue [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 09 00 00 [18:21:50]Write to MH i2c: E2 08 00 0A 79 80 09 00 00 00 00 00 00 F5 [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 0A 79 00 90 00 F7 [18:21:50]RAPDU: 90 00 [18:21:50]wFMCommunicate OK [18:21:50]SAM_PROTO_ClearQueue done [18:21:50]KKMCreateOFDPacket [18:21:50]OFDProtocolAddRootSTLVToBuf [18:21:50]FM_MakeSignedData [18:21:50]FM_MakeSignedData [18:21:50]SAM_PROTO_SignData [18:21:50]wFMCommunicate request_size=4 [18:21:50]MH_SAM_APDU [18:21:50]CAPDU: 80 0D 01 02 [18:21:50]Write to MH i2c: E2 08 00 0B 79 80 0D 01 02 00 00 00 00 FD [18:21:50]Write i2c OK [18:21:50]MH_I2C_Read... [18:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:50]Read from MH i2c: E2 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 [18:21:50]MH_I2C_Read... [18:21:50]Read from MH i2c: E2 03 00 0B 79 00 90 00 F8 [18:21:50]RAPDU: 90 00 [18:21:50]wFMCommunicate OK [18:21:50]wFMCommunicate request_size=255 [18:21:50]MH_SAM_APDU [18:21: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D1 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 89 02 00 35 04 06 00 46 [18:21:50]Write to MH i2c: E2 02 01 0C 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D1 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 89 02 00 35 04 06 00 46 00 00 DC [18:21:51]Write i2c OK [18:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 03 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 03 00 0C 79 00 90 00 F9 [18:21:51]RAPDU: 90 00 [18:21:51]wFMCommunicate OK [18:21:51]wFMCommunicate request_size=10 [18:21:51]MH_SAM_APDU [18:21:51]CAPDU: 80 0D 02 02 05 70 D1 C3 0F F4 [18:21:51]Write to MH i2c: E2 0D 00 0D 79 80 0D 02 02 05 00 70 D1 C3 0F F4 00 00 11 [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:51]Read from MH i2c: E2 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 03 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 03 00 0D 79 00 90 00 FA [18:21:51]RAPDU: 90 00 [18:21:51]wFMCommunicate OK [18:21:51]wFMCommunicate request_size=4 [18:21:51]MH_SAM_APDU [18:21:51]CAPDU: 80 0D 03 02 [18:21:51]Write to MH i2c: E2 08 00 0E 79 80 0D 03 02 00 00 00 00 02 [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:51]Read from MH i2c: E2 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 0B 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 0B 00 0E 79 00 A4 6A 9B 34 AE 9A EE 3E 90 00 54 [18:21:51]RAPDU: A4 6A 9B 34 AE 9A EE 3E 90 00 [18:21:51]wFMCommunicate OK [18:21:51]SAM_PROTO_SignData done [18:21:51]FM_MakeSignedData done [18:21:51]CreateOFDProtocolMessage [18:21:51]wFMCommunicate request_size=4 [18:21:51]MH_SAM_APDU [18:21:51]CAPDU: 80 11 00 00 [18:21:51]Write to MH i2c: E2 08 00 0F 79 80 11 00 00 00 00 00 00 02 [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:51]Read from MH i2c: E2 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 17 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: E2 17 00 0F 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5A [18:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:51]wFMCommunicate OK [18:21:51]CreateOFDProtocolMessage done [18:21:51]OFDSenderStorePacket 166162 [18:21:51]StoreOFDPacket docnum=166162 [18:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E 58 07 01 6B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D1 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 89 02 00 35 04 06 00 46 70 D1 C3 0F F4 A4 6A 9B 34 AE 9A EE 3E [18:21:51]CheckFolder [18:21:51]dirname=/storage/ofd_packets [18:21:51]CheckFolder done [18:21:51]ProducePacketName [18:21:51]name=ofd_packets/00166162 [18:21:51]NVStorageSaveData ofd_packets/00166162 [18:21:51]File name is /storage/ofd_packets/00166162 [18:21:51]Write 301 bytes [18:21:51]NVStorageSaveData done [18:21:51]OFDSenderStorePacket done [18:21:51]KKMCreateOFDPacket done [18:21:51]NVStorageSaveData kkm_last_timestamp [18:21:51]File name is /storage/kkm_last_timestamp [18:21:51]Write 4 bytes [18:21:51]NVStorageSaveData done [18:21:51]ExternCall_PrintAddStr [18:21:51]wPrintStart [18:21:51]Write to MH i2c: 01 00 00 10 79 89 [18:21:51]Write i2c OK [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: 01 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: 01 07 00 [18:21:51]MH_I2C_Read... [18:21:51]Read from MH i2c: 01 07 00 10 79 00 00 00 00 00 FF 0F 9E [18:21:51]RasterBufferAndPrint [18:21:51]line Счет N : (1)220733 [18:21:51]line ИНН: 02508201610067 [18:21:51]line Контрольно-Кассовый Чек [18:21:51]line ПРОДАЖА [18:21:51]line ТРК (МРК, ГНК) : 43 [18:21:51]line Товар: 2710124130 [18:21:51]line Аи-92-К-5 [18:21:51]line 7.480 * 66.90 [18:21:51]line = 500.41 [18:21:51]line НДС 12% НСП 1% [18:21:51]line > о реализуемом товаре [18:21:51]line ИТОГО: 500.41 [18:21:51]line НСП 1% : 4.43 [18:21:51]line НДС 12% : 53.14 [18:21:51]line Наличными: 0.00 [18:21:51]line Безнал.: 500.41 [18:21:51]line Место: АЗС № 161 "Партнер Нефть" [18:21:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:21:51]line СНО: Общий режим [18:21:51]line Чек 273 21.10.2024 18:22 [18:21:51]line Смена: 535 ФФД: 1.0 [18:21:51]line ЗНМ: 0300000104 [18:21:51]line РНМ: 0000000000091764 [18:21:51]line Версия ККМ: 001 [18:21:51]line Платежная система: Mbank [18:21:51]line ФМ: 0000000000871759 [18:21:51]line ФД: 166162 [18:21:51]line ФПД: 77450369503220 [18:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182209&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166162&fm=77450369503220&tin=02508201610067®Number=0000000000091764&sum=50041 [18:21:51]OFD Sender: Processing packet 166162 [packets to send 48, broken 47] [18:21:51]ProducePacketName [18:21:51]name=ofd_packets/00166162 [18:21:51]OFD Sender: To server: pG, [18:21:51]CommunicateWithHost lk.salyk.kg:30040 [18:21:51]ConnectInit lk.salyk.kg [18:21:51]written 0, free lines is 4095 [18:21:51]Connected sock=7 [18:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0E 58 07 01 6B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 D1 9B 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 12 89 02 00 35 04 06 00 46 70 D1 C3 0F F4 A4 6A 9B 34 AE 9A EE 3E [18: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 35 39 4F 00 00 00 6A 78 47 00 FE 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 35 39 10 04 04 00 12 89 02 00 F4 03 04 00 3F 42 16 67 B6 04 01 00 00 26 8B 0C 13 15 DF CE E5 [18:21:52]CommunicateWithHost err = 0 [18:21:52]CheckOFDResponse [18:21:52]1017 (14) - 77093643461234 [18:21:52]1041 (16) - 0000000000871759 [18:21:52]1040 (4) - 166162 [18:21:52]1012 (4) - 21.10.2024 11:59 [18:21:52]1206 (1) - 0 [18:21:52]OFD Sender: Remove packet 166162 [18:21:52]ProducePacketName [18:21:52]name=ofd_packets/00166162 [18:21:52]NVStorageDeleteData [18:21:52]Write to MH i2c: 01 00 00 39 79 B2 [18:21:52]Write i2c OK [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: 01 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: 01 07 00 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: 01 07 00 39 79 00 00 00 00 00 0C 0D D2 [18:21:52]RasterBufferAndPrint [18:21:52]line [18:21:52]line [18:21:52]line [18:21:52]line [18:21:52]line [18:21:52]written 0, free lines is 3357 [18:21:52]MH_Cut [18:21:52]Write to MH i2c: D1 01 00 40 79 01 8B [18:21:52]Write i2c OK [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: D1 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: D1 01 00 [18:21:52]MH_I2C_Read... [18:21:52]Read from MH i2c: D1 01 00 40 79 00 8A [18:21:52]Write to MH i2c: 01 00 00 41 79 BA [18:21:52]Write i2c OK [18:21:52]MH_I2C_Read... [18:21:52]OFD Sender: No OFD packet to send [18:21:52]*** Cut start [18:21:52]*** Partial cut [18:21:52]*** CUTSNS_PIN = 1 [18:21:53]*** CUTSNS_PIN = 0 [18:21:53]*** Brake cut motor [18:21:53]Read from MH i2c: 01 [18:21:53]MH_I2C_Read... [18:21:53]*** Stop cut motor [18:21:53]*** Cut end [18:21:53]Read from MH i2c: 01 07 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: 01 07 00 41 79 00 00 00 00 00 FF 0F CF [18:21:53]process_action close_receipt done [18:21:53]requested_data is exist [18:21:53]produce_requested_data [18:21:53]requested_item fm.sn is exist - process it [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 11 00 00 [18:21:53]Write to MH i2c: E2 08 00 42 79 80 11 00 00 00 00 00 00 35 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 17 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 17 00 42 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [18:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:21:53]wFMCommunicate OK [18:21:53]requested_item fd.num is exist - process it [18:21:53]SAM_PROTO_GetFieldsCounters [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 13 00 00 [18:21:53]Write to MH i2c: E2 08 00 43 79 80 13 00 00 00 00 00 00 38 [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 62 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 62 00 43 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 12 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:53]wFMCommunicate OK [18:21:53]SAM_PROTO_GetFieldsCounters done [18:21:53]requested_item shift.num is exist - process it [18:21:53]requested_item shift.opened is exist - process it [18:21:53]req_shift_opened [18:21:53]FM_GetShiftState [18:21:53]SAM_PROTO_GetShiftState [18:21:53]wFMCommunicate request_size=4 [18:21:53]MH_SAM_APDU [18:21:53]CAPDU: 80 13 01 00 [18:21:53]Write to MH i2c: E2 08 00 44 79 80 13 01 00 00 00 00 00 3A [18:21:53]Write i2c OK [18:21:53]MH_I2C_Read... [18:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:53]Read from MH i2c: E2 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 0E 00 [18:21:53]MH_I2C_Read... [18:21:53]Read from MH i2c: E2 0E 00 44 79 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 43 [18:21:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:21:53]wFMCommunicate OK [18:21:53]SAM_PROTO_GetShiftState done [18:21:53]FM_GetShiftState done [18:21:53]req_shift_opened done [18:21:53]requested_item shift.open_date is exist - process it [18:21:53]req_shift_open_date [18:21:53]req_shift_open_date done [18:21:53]produce_requested_data done [18:21:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166162,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:21:53]process_action_free close_receipt [18:21:53]json_value_free [18:21:53]json_value_free done [18:21:53]process_json_proto returns [18:21:53]Send response to host [18:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166162,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:21:53]free response buf [18:21:53]execute_script done [18:21:53]execute_script returns [18:21:53]free content buf [18:21:53]Sock 5.Close socket [18:21:53]Sock 5.Thread stoped [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22:12]OFD Sender: No OFD packet to send [18:22:17]OFD Sender: No OFD packet to send [18:22:22]OFD Sender: No OFD packet to send [18:22:27]OFD Sender: No OFD packet to send [18:22:32]OFD Sender: No OFD packet to send [18:22:37]OFD Sender: No OFD packet to send [18:22:42]OFD Sender: No OFD packet to send [18:22:47]OFD Sender: No OFD packet to send [18:22:52]OFD Sender: No OFD packet to send [18:22:57]OFD Sender: No OFD packet to send [18:23:02]OFD Sender: No OFD packet to send [18:23:07]OFD Sender: No OFD packet to send [18:23:12]OFD Sender: No OFD packet to send [18:23:17]OFD Sender: No OFD packet to send [18:23:22]OFD Sender: No OFD packet to send [18:23:27]OFD Sender: No OFD packet to send [18:23:32]OFD Sender: No OFD packet to send [18:23:37]OFD Sender: No OFD packet to send [18:23:42]OFD Sender: No OFD packet to send [18:23:47]OFD Sender: No OFD packet to send [18:23:52]OFD Sender: No OFD packet to send [18:23:57]OFD Sender: No OFD packet to send [18:24:02]OFD Sender: No OFD packet to send [18:24:07]OFD Sender: No OFD packet to send [18:24:12]OFD Sender: No OFD packet to send [18:24:17]OFD Sender: No OFD packet to send [18:24:22]OFD Sender: No OFD packet to send [18:24:27]OFD Sender: No OFD packet to send [18:24:32]OFD Sender: No OFD packet to send [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:17]OFD Sender: No OFD packet to send [18:25:22]OFD Sender: No OFD packet to send [18:25:27]OFD Sender: No OFD packet to send [18:25:30]accept exits with 6 [18:25:30]New connection [18:25:30]New thread 3066776932 created [18:25:30]Thread 3066920292 joined [18:25:30]Waiting for new connection... [18:25:30] Sock 6.Parse request [18:25:30]Sock 6.Check first char [18:25:30]Sock 6.First char is OK [18:25:30]request: POST /json_proto HTTP/1.0 [18:25:30]Method: POST [18:25:30]URL: /json_proto [18:25:30]Method is POST - this is cgi request [18:25:30]url: /json_proto [18:25:30]query_string will be loaded in cgi processing [18:25:30]execute_cgi json_proto POST (null) [18:25:30]execute_cgi path=json_proto method=POST [18:25:30]POST find Content-Length [18:25:30]Host: 172.17.53.195:8080 [18:25:30]Content-Length: 769 [18:25:30]Content-Type: application/json [18:25:30] [18:25:30]POST finish read [18:25:30]Found Content-Length = 769 [18:25:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:30]execute_script... [18:25: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)220734", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:30]POST & json_proto [18:25:30]process_json_proto [18:25:30]json parsed OK: [18:25:30]protocol is kg_v1.0 [18:25:30]action value=close_receipt [18:25:30]process_action close_receipt [18:25:30]cmd_close_receipt [18:25:30]MH_GetDate [18:25:30]Write to MH i2c: F0 00 00 45 79 AD [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: F0 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: F0 09 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: F0 09 00 45 79 00 AD 9C 16 67 21 48 4A 65 94 [18:25:30]GetLastDocTimeStamp 1729534929 [18:25:30]current date 1729535149 [18:25:30]FM_GetShiftState [18:25:30]SAM_PROTO_GetShiftState [18:25:30]wFMCommunicate request_size=4 [18:25:30]MH_SAM_APDU [18:25:30]CAPDU: 80 13 01 00 [18:25:30]Write to MH i2c: E2 08 00 46 79 80 13 01 00 00 00 00 00 3C [18:25:30]Write i2c OK [18:25:30]MH_I2C_Read... [18:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:30]Read from MH i2c: E2 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0E 00 [18:25:30]MH_I2C_Read... [18:25:30]Read from MH i2c: E2 0E 00 46 79 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 45 [18:25:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:25:30]wFMCommunicate OK [18:25:30]SAM_PROTO_GetShiftState done [18:25:30]FM_GetShiftState done [18:25:30]opened in 1729470944 [18:25:30]opened+sec_in_day 1729557344 [18:25:30]quantity*price = 100021 [18:25:30]sum+1 = 100023 [18:25:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 274 21.10.2024 18:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166163 ФПД: 186389734683414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166163&fm=186389734683414&tin=02508201610067®Number=0000000000091764&sum=100022 [18:25:31]StoreToDocumentArchive [18:25:31]shift 535 fd 166163 [18:25:31]save to /storage/0535/doc_00166163 [18:25:31]save last doc name /storage/0535/doc_00166163 to /storage/kkm_last_doc_name [18:25:31]save OK [18:25:31]Clear old archive folders... [18:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:31]tlvbuf is 015129F0 [18:25:31]SAM_PROTO_ClearQueue [18:25:31]wFMCommunicate request_size=4 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 09 00 00 [18:25:31]Write to MH i2c: E2 08 00 53 79 80 09 00 00 00 00 00 00 3E [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 53 79 00 90 00 40 [18:25:31]RAPDU: 90 00 [18:25:31]wFMCommunicate OK [18:25:31]SAM_PROTO_ClearQueue done [18:25:31]KKMCreateOFDPacket [18:25:31]OFDProtocolAddRootSTLVToBuf [18:25:31]FM_MakeSignedData [18:25:31]FM_MakeSignedData [18:25:31]SAM_PROTO_SignData [18:25:31]wFMCommunicate request_size=4 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 0D 01 02 [18:25:31]Write to MH i2c: E2 08 00 54 79 80 0D 01 02 00 00 00 00 46 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 54 79 00 90 00 41 [18:25:31]RAPDU: 90 00 [18:25:31]wFMCommunicate OK [18:25:31]wFMCommunicate request_size=255 [18:25:31]MH_SAM_APDU [18:25: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 AD 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 89 02 00 35 04 06 00 A9 [18:25:31]Write to MH i2c: E2 02 01 55 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 AD 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 89 02 00 35 04 06 00 A9 00 00 5E [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 55 79 00 90 00 42 [18:25:31]RAPDU: 90 00 [18:25:31]wFMCommunicate OK [18:25:31]wFMCommunicate request_size=10 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 0D 02 02 05 85 3D EC F3 16 [18:25:31]Write to MH i2c: E2 0D 00 56 79 80 0D 02 02 05 00 85 3D EC F3 16 00 00 0A [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 03 00 56 79 00 90 00 43 [18:25:31]RAPDU: 90 00 [18:25:31]wFMCommunicate OK [18:25:31]wFMCommunicate request_size=4 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 0D 03 02 [18:25:31]Write to MH i2c: E2 08 00 57 79 80 0D 03 02 00 00 00 00 4B [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 0B 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 0B 00 57 79 00 E0 5D 58 BA 99 0F DF 88 90 00 AA [18:25:31]RAPDU: E0 5D 58 BA 99 0F DF 88 90 00 [18:25:31]wFMCommunicate OK [18:25:31]SAM_PROTO_SignData done [18:25:31]FM_MakeSignedData done [18:25:31]CreateOFDProtocolMessage [18:25:31]wFMCommunicate request_size=4 [18:25:31]MH_SAM_APDU [18:25:31]CAPDU: 80 11 00 00 [18:25:31]Write to MH i2c: E2 08 00 58 79 80 11 00 00 00 00 00 00 4B [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:31]Read from MH i2c: E2 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 17 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: E2 17 00 58 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [18:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:25:31]wFMCommunicate OK [18:25:31]CreateOFDProtocolMessage done [18:25:31]OFDSenderStorePacket 166163 [18:25:31]StoreOFDPacket docnum=166163 [18:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 78 71 07 01 D2 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 AD 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 89 02 00 35 04 06 00 A9 85 3D EC F3 16 E0 5D 58 BA 99 0F DF 88 [18:25:31]CheckFolder [18:25:31]dirname=/storage/ofd_packets [18:25:31]CheckFolder done [18:25:31]ProducePacketName [18:25:31]name=ofd_packets/00166163 [18:25:31]NVStorageSaveData ofd_packets/00166163 [18:25:31]File name is /storage/ofd_packets/00166163 [18:25:31]Write 301 bytes [18:25:31]NVStorageSaveData done [18:25:31]OFDSenderStorePacket done [18:25:31]KKMCreateOFDPacket done [18:25:31]NVStorageSaveData kkm_last_timestamp [18:25:31]File name is /storage/kkm_last_timestamp [18:25:31]Write 4 bytes [18:25:31]NVStorageSaveData done [18:25:31]ExternCall_PrintAddStr [18:25:31]wPrintStart [18:25:31]Write to MH i2c: 01 00 00 59 79 D2 [18:25:31]Write i2c OK [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 [18:25:31]MH_I2C_Read... [18:25:31]Read from MH i2c: 01 07 00 59 79 00 00 00 00 00 FF 0F E7 [18:25:31]RasterBufferAndPrint [18:25:31]line Счет N : (1)220734 [18:25:31]line ИНН: 02508201610067 [18:25:31]line Контрольно-Кассовый Чек [18:25:31]line ПРОДАЖА [18:25:31]line ТРК (МРК, ГНК) : 34 [18:25:31]line Товар: 2710124500 [18:25:31]line Аи-95-К-5 [18:25:31]line 13.480 * 74.20 [18:25:31]line = 1000.22 [18:25:31]line НДС 12% НСП 1% [18:25:31]line > о реализуемом товаре [18:25:31]line ИТОГО: 1000.22 [18:25:31]line НСП 1% : 8.85 [18:25:31]line НДС 12% : 106.22 [18:25:31]line Наличными: 0.00 [18:25:31]line Безнал.: 1000.22 [18:25:31]line Место: АЗС № 161 "Партнер Нефть" [18:25:31]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:25:31]line СНО: Общий режим [18:25:31]line Чек 274 21.10.2024 18:25 [18:25:31]line Смена: 535 ФФД: 1.0 [18:25:31]line ЗНМ: 0300000104 [18:25:31]line РНМ: 0000000000091764 [18:25:31]line Версия ККМ: 001 [18:25:31]line Платежная система: Mbank [18:25:31]line ФМ: 0000000000871759 [18:25:31]line ФД: 166163 [18:25:31]line ФПД: 186389734683414 [18:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182549&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166163&fm=186389734683414&tin=02508201610067®Number=0000000000091764&sum=100022 [18:25:32]OFD Sender: Processing packet 166163 [packets to send 48, broken 47] [18:25:32]ProducePacketName [18:25:32]name=ofd_packets/00166163 [18:25:32]OFD Sender: To server: pG, [18:25:32]CommunicateWithHost lk.salyk.kg:30040 [18:25:32]ConnectInit lk.salyk.kg [18:25:32]written 0, free lines is 4095 [18:25:32]Connected sock=7 [18:25:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 78 71 07 01 D2 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 AD 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 89 02 00 35 04 06 00 A9 85 3D EC F3 16 E0 5D 58 BA 99 0F DF 88 [18:25:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 77 EB 47 00 28 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 13 89 02 00 F4 03 04 00 1B 43 16 67 B6 04 01 00 00 25 30 77 5C FA 1B 28 CD [18:25:32]CommunicateWithHost err = 0 [18:25:32]CheckOFDResponse [18:25:32]1017 (14) - 77093643461234 [18:25:32]1041 (16) - 0000000000871759 [18:25:32]1040 (4) - 166163 [18:25:32]1012 (4) - 21.10.2024 12:03 [18:25:32]1206 (1) - 0 [18:25:32]OFD Sender: Remove packet 166163 [18:25:32]ProducePacketName [18:25:32]name=ofd_packets/00166163 [18:25:32]NVStorageDeleteData [18:25:32]Write to MH i2c: 01 00 00 82 79 FB [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: 01 07 00 82 79 00 00 00 00 00 FA 0C 08 [18:25:32]RasterBufferAndPrint [18:25:32]line [18:25:32]line [18:25:32]line [18:25:32]line [18:25:32]line [18:25:32]written 0, free lines is 3327 [18:25:32]MH_Cut [18:25:32]Write to MH i2c: D1 01 00 89 79 01 D4 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: D1 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: D1 01 00 [18:25:32]MH_I2C_Read... [18:25:32]Read from MH i2c: D1 01 00 89 79 00 D3 [18:25:32]Write to MH i2c: 01 00 00 8A 79 03 [18:25:32]Write i2c OK [18:25:32]MH_I2C_Read... [18:25:33]OFD Sender: No OFD packet to send [18:25:33]*** Cut start [18:25:33]*** Partial cut [18:25:33]*** CUTSNS_PIN = 1 [18:25:33]*** CUTSNS_PIN = 0 [18:25:33]*** Brake cut motor [18:25:34]Read from MH i2c: 01 [18:25:34]MH_I2C_Read... [18:25:34]*** Stop cut motor [18:25:34]*** Cut end [18:25:34]Read from MH i2c: 01 07 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: 01 07 00 8A 79 00 00 00 00 00 FF 0F 18 [18:25:34]process_action close_receipt done [18:25:34]requested_data is exist [18:25:34]produce_requested_data [18:25:34]requested_item fm.sn is exist - process it [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 11 00 00 [18:25:34]Write to MH i2c: E2 08 00 8B 79 80 11 00 00 00 00 00 00 7E [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 17 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 17 00 8B 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D6 [18:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:25:34]wFMCommunicate OK [18:25:34]requested_item fd.num is exist - process it [18:25:34]SAM_PROTO_GetFieldsCounters [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 13 00 00 [18:25:34]Write to MH i2c: E2 08 00 8C 79 80 13 00 00 00 00 00 00 81 [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 62 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 62 00 8C 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:25:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 13 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:34]wFMCommunicate OK [18:25:34]SAM_PROTO_GetFieldsCounters done [18:25:34]requested_item shift.num is exist - process it [18:25:34]requested_item shift.opened is exist - process it [18:25:34]req_shift_opened [18:25:34]FM_GetShiftState [18:25:34]SAM_PROTO_GetShiftState [18:25:34]wFMCommunicate request_size=4 [18:25:34]MH_SAM_APDU [18:25:34]CAPDU: 80 13 01 00 [18:25:34]Write to MH i2c: E2 08 00 8D 79 80 13 01 00 00 00 00 00 83 [18:25:34]Write i2c OK [18:25:34]MH_I2C_Read... [18:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:34]Read from MH i2c: E2 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 0E 00 [18:25:34]MH_I2C_Read... [18:25:34]Read from MH i2c: E2 0E 00 8D 79 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8C [18:25:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:25:34]wFMCommunicate OK [18:25:34]SAM_PROTO_GetShiftState done [18:25:34]FM_GetShiftState done [18:25:34]req_shift_opened done [18:25:34]requested_item shift.open_date is exist - process it [18:25:34]req_shift_open_date [18:25:34]req_shift_open_date done [18:25:34]produce_requested_data done [18:25:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166163,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:25:34]process_action_free close_receipt [18:25:34]json_value_free [18:25:34]json_value_free done [18:25:34]process_json_proto returns [18:25:34]Send response to host [18:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166163,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:25:34]free response buf [18:25:34]execute_script done [18:25:34]execute_script returns [18:25:34]free content buf [18:25:34]Sock 6.Close socket [18:25:34]Sock 6.Thread stoped [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:25:58]accept exits with 5 [18:25:58]New connection [18:25:58]New thread 3066920292 created [18:25:58]Thread 3066776932 joined [18:25:58]Waiting for new connection... [18:25:58] Sock 5.Parse request [18:25:58]Sock 5.Check first char [18:25:58]Sock 5.First char is OK [18:25:58]request: POST /json_proto HTTP/1.0 [18:25:58]Method: POST [18:25:58]URL: /json_proto [18:25:58]Method is POST - this is cgi request [18:25:58]url: /json_proto [18:25:58]query_string will be loaded in cgi processing [18:25:58]execute_cgi json_proto POST (null) [18:25:58]execute_cgi path=json_proto method=POST [18:25:58]POST find Content-Length [18:25:58]Host: 172.17.53.195:8080 [18:25:58]Content-Length: 677 [18:25:58]Content-Type: application/json [18:25:58] [18:25:58]POST finish read [18:25:58]Found Content-Length = 677 [18:25:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:58]execute_script... [18:25: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)220735", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:58]POST & json_proto [18:25:58]process_json_proto [18:25:58]json parsed OK: [18:25:58]protocol is kg_v1.0 [18:25:58]action value=close_receipt [18:25:58]process_action close_receipt [18:25:58]cmd_close_receipt [18:25:58]MH_GetDate [18:25:58]Write to MH i2c: F0 00 00 8E 79 F6 [18:25:58]Write i2c OK [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 09 00 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: F0 09 00 8E 79 00 CA 9C 16 67 21 48 4A 65 FA [18:25:58]GetLastDocTimeStamp 1729535149 [18:25:58]current date 1729535178 [18:25:58]FM_GetShiftState [18:25:58]SAM_PROTO_GetShiftState [18:25:58]wFMCommunicate request_size=4 [18:25:58]MH_SAM_APDU [18:25:58]CAPDU: 80 13 01 00 [18:25:58]Write to MH i2c: E2 08 00 8F 79 80 13 01 00 00 00 00 00 85 [18:25:58]Write i2c OK [18:25:58]MH_I2C_Read... [18:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:58]Read from MH i2c: E2 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: E2 0E 00 [18:25:58]MH_I2C_Read... [18:25:58]Read from MH i2c: E2 0E 00 8F 79 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8E [18:25:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:25:58]wFMCommunicate OK [18:25:58]SAM_PROTO_GetShiftState done [18:25:58]FM_GetShiftState done [18:25:58]opened in 1729470944 [18:25:58]opened+sec_in_day 1729557344 [18:25:58]quantity*price = 60009 [18:25:58]sum+1 = 60010 [18:25:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 275 21.10.2024 18:26 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166164 ФПД: 114222470583245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182618&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166164&fm=114222470583245&tin=02508201610067®Number=0000000000091764&sum=60000 [18:25:59]StoreToDocumentArchive [18:25:59]shift 535 fd 166164 [18:25:59]save to /storage/0535/doc_00166164 [18:25:59]save last doc name /storage/0535/doc_00166164 to /storage/kkm_last_doc_name [18:25:59]save OK [18:25:59]Clear old archive folders... [18:25:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:59]tlvbuf is 0157EA10 [18:25:59]SAM_PROTO_ClearQueue [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 09 00 00 [18:25:59]Write to MH i2c: E2 08 00 9C 79 80 09 00 00 00 00 00 00 87 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 9C 79 00 90 00 89 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]SAM_PROTO_ClearQueue done [18:25:59]KKMCreateOFDPacket [18:25:59]OFDProtocolAddRootSTLVToBuf [18:25:59]FM_MakeSignedData [18:25:59]FM_MakeSignedData [18:25:59]SAM_PROTO_SignData [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 01 02 [18:25:59]Write to MH i2c: E2 08 00 9D 79 80 0D 01 02 00 00 00 00 8F [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 9D 79 00 90 00 8A [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=255 [18:26:00]MH_SAM_APDU [18:26: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CA 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 89 02 00 35 04 06 00 67 [18:26:00]Write to MH i2c: E2 02 01 9E 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CA 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 89 02 00 35 04 06 00 67 00 00 18 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 9E 79 00 90 00 8B [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=10 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 02 02 05 E2 7D C8 D3 CD [18:26:00]Write to MH i2c: E2 0D 00 9F 79 80 0D 02 02 05 00 E2 7D C8 D3 CD 00 00 63 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 03 00 9F 79 00 90 00 8C [18:26:00]RAPDU: 90 00 [18:26:00]wFMCommunicate OK [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 0D 03 02 [18:26:00]Write to MH i2c: E2 08 00 A0 79 80 0D 03 02 00 00 00 00 94 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 0B 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 0B 00 A0 79 00 CD 07 35 20 10 E0 43 5D 90 00 4E [18:26:00]RAPDU: CD 07 35 20 10 E0 43 5D 90 00 [18:26:00]wFMCommunicate OK [18:26:00]SAM_PROTO_SignData done [18:26:00]FM_MakeSignedData done [18:26:00]CreateOFDProtocolMessage [18:26:00]wFMCommunicate request_size=4 [18:26:00]MH_SAM_APDU [18:26:00]CAPDU: 80 11 00 00 [18:26:00]Write to MH i2c: E2 08 00 A1 79 80 11 00 00 00 00 00 00 94 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:00]Read from MH i2c: E2 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 17 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: E2 17 00 A1 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [18:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:26:00]wFMCommunicate OK [18:26:00]CreateOFDProtocolMessage done [18:26:00]OFDSenderStorePacket 166164 [18:26:00]StoreOFDPacket docnum=166164 [18:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 99 07 01 8F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CA 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 89 02 00 35 04 06 00 67 E2 7D C8 D3 CD CD 07 35 20 10 E0 43 5D [18:26:00]CheckFolder [18:26:00]dirname=/storage/ofd_packets [18:26:00]CheckFolder done [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00166164 [18:26:00]NVStorageSaveData ofd_packets/00166164 [18:26:00]File name is /storage/ofd_packets/00166164 [18:26:00]Write 301 bytes [18:26:00]NVStorageSaveData done [18:26:00]OFDSenderStorePacket done [18:26:00]KKMCreateOFDPacket done [18:26:00]NVStorageSaveData kkm_last_timestamp [18:26:00]File name is /storage/kkm_last_timestamp [18:26:00]Write 4 bytes [18:26:00]NVStorageSaveData done [18:26:00]ExternCall_PrintAddStr [18:26:00]wPrintStart [18:26:00]Write to MH i2c: 01 00 00 A2 79 1B [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 A2 79 00 00 00 00 00 FF 0F 30 [18:26:00]RasterBufferAndPrint [18:26:00]line Счет N : (1)220735 [18:26:00]line ИНН: 02508201610067 [18:26:00]line Контрольно-Кассовый Чек [18:26:00]line ПРОДАЖА [18:26:00]line ТРК (МРК, ГНК) : 13 [18:26:00]line Товар: 2710124130 [18:26:00]line Аи-92-К-5 [18:26:00]line 8.970 * 66.90 [18:26:00]line = 600.09 [18:26:00]line НДС 12% НСП 1% [18:26:00]line > о реализуемом товаре [18:26:00]line ОКРУГЛЕНИЕ: -0.09 [18:26:00]line ИТОГО: 600.00 [18:26:00]line Внесено: 600.00 [18:26:00]line СДАЧА: 0.00 [18:26:00]line НСП 1% : 5.31 [18:26:00]line НДС 12% : 63.73 [18:26:00]line Наличными: 600.00 [18:26:00]line Безнал.: 0.00 [18:26:00]line Место: АЗС № 161 "Партнер Нефть" [18:26:00]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:26:00]line СНО: Общий режим [18:26:00]line Чек 275 21.10.2024 18:26 [18:26:00]line Смена: 535 ФФД: 1.0 [18:26:00]line ЗНМ: 0300000104 [18:26:00]line РНМ: 0000000000091764 [18:26:00]line Версия ККМ: 001 [18:26:00]line ФМ: 0000000000871759 [18:26:00]line ФД: 166164 [18:26:00]line ФПД: 114222470583245 [18:26:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T182618&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166164&fm=114222470583245&tin=02508201610067®Number=0000000000091764&sum=60000 [18:26:00]OFD Sender: Processing packet 166164 [packets to send 48, broken 47] [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00166164 [18:26:00]OFD Sender: To server: pG, [18:26:00]CommunicateWithHost lk.salyk.kg:30040 [18:26:00]ConnectInit lk.salyk.kg [18:26:00]written 0, free lines is 4095 [18:26:00]Connected sock=7 [18:26:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F9 99 07 01 8F 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 01 00 00 F4 03 04 00 CA 9C 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 89 02 00 35 04 06 00 67 E2 7D C8 D3 CD CD 07 35 20 10 E0 43 5D [18:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 E2 47 00 75 BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 14 89 02 00 F4 03 04 00 38 43 16 67 B6 04 01 00 00 8E AF C0 C3 82 3A 07 5B [18:26:01]CommunicateWithHost err = 0 [18:26:01]CheckOFDResponse [18:26:01]1017 (14) - 77093643461234 [18:26:01]1041 (16) - 0000000000871759 [18:26:01]1040 (4) - 166164 [18:26:01]1012 (4) - 21.10.2024 12:04 [18:26:01]1206 (1) - 0 [18:26:01]OFD Sender: Remove packet 166164 [18:26:01]ProducePacketName [18:26:01]name=ofd_packets/00166164 [18:26:01]NVStorageDeleteData [18:26:01]Write to MH i2c: 01 00 00 CD 79 46 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 CD 79 00 00 00 00 00 D4 0C 2D [18:26:01]RasterBufferAndPrint [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]line [18:26:01]written 0, free lines is 3292 [18:26:01]MH_Cut [18:26:01]Write to MH i2c: D1 01 00 D4 79 01 1F [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: D1 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: D1 01 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: D1 01 00 D4 79 00 1E [18:26:01]Write to MH i2c: 01 00 00 D5 79 4E [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]OFD Sender: No OFD packet to send [18:26:02]*** Cut start [18:26:02]*** Partial cut [18:26:02]*** CUTSNS_PIN = 1 [18:26:02]*** CUTSNS_PIN = 0 [18:26:02]*** Brake cut motor [18:26:02]Read from MH i2c: 01 [18:26:02]MH_I2C_Read... [18:26:02]*** Stop cut motor [18:26:02]*** Cut end [18:26:02]Read from MH i2c: 01 07 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: 01 07 00 D5 79 00 00 00 00 00 FF 0F 63 [18:26:02]process_action close_receipt done [18:26:02]requested_data is exist [18:26:02]produce_requested_data [18:26:02]requested_item fm.sn is exist - process it [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 11 00 00 [18:26:02]Write to MH i2c: E2 08 00 D6 79 80 11 00 00 00 00 00 00 C9 [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 17 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 17 00 D6 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 21 [18:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:26:02]wFMCommunicate OK [18:26:02]requested_item fd.num is exist - process it [18:26:02]SAM_PROTO_GetFieldsCounters [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 13 00 00 [18:26:02]Write to MH i2c: E2 08 00 D7 79 80 13 00 00 00 00 00 00 CC [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 62 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 62 00 D7 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [18:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 14 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:02]wFMCommunicate OK [18:26:02]SAM_PROTO_GetFieldsCounters done [18:26:02]requested_item shift.num is exist - process it [18:26:02]requested_item shift.opened is exist - process it [18:26:02]req_shift_opened [18:26:02]FM_GetShiftState [18:26:02]SAM_PROTO_GetShiftState [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 13 01 00 [18:26:02]Write to MH i2c: E2 08 00 D8 79 80 13 01 00 00 00 00 00 CE [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 0E 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 0E 00 D8 79 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D7 [18:26:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:26:02]wFMCommunicate OK [18:26:02]SAM_PROTO_GetShiftState done [18:26:02]FM_GetShiftState done [18:26:02]req_shift_opened done [18:26:02]requested_item shift.open_date is exist - process it [18:26:02]req_shift_open_date [18:26:02]req_shift_open_date done [18:26:02]produce_requested_data done [18:26:02]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166164,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:26:02]process_action_free close_receipt [18:26:02]json_value_free [18:26:02]json_value_free done [18:26:02]process_json_proto returns [18:26:02]Send response to host [18:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166164,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:26:02]free response buf [18:26:02]execute_script done [18:26:02]execute_script returns [18:26:02]free content buf [18:26:02]Sock 5.Close socket [18:26:02]Sock 5.Thread stoped [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:28]accept exits with 6 [18:31:28]New connection [18:31:28]New thread 3066776932 created [18:31:28]Thread 3066920292 joined [18:31:28]Waiting for new connection... [18:31:28] Sock 6.Parse request [18:31:28]Sock 6.Check first char [18:31:28]Sock 6.First char is OK [18:31:28]request: POST /json_proto HTTP/1.0 [18:31:28]Method: POST [18:31:28]URL: /json_proto [18:31:28]Method is POST - this is cgi request [18:31:28]url: /json_proto [18:31:28]query_string will be loaded in cgi processing [18:31:28]execute_cgi json_proto POST (null) [18:31:28]execute_cgi path=json_proto method=POST [18:31:28]POST find Content-Length [18:31:28]Host: 172.17.53.195:8080 [18:31:28]Content-Length: 789 [18:31:28]Content-Type: application/json [18:31:28] [18:31:28]POST finish read [18:31:28]Found Content-Length = 789 [18:31:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:28]execute_script... [18:31:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220736", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 39.380, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:31:28]POST & json_proto [18:31:28]process_json_proto [18:31:28]json parsed OK: [18:31:28]protocol is kg_v1.0 [18:31:28]action value=close_receipt [18:31:28]process_action close_receipt [18:31:28]cmd_close_receipt [18:31:28]MH_GetDate [18:31:28]Write to MH i2c: F0 00 00 D9 79 41 [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: F0 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: F0 09 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: F0 09 00 D9 79 00 14 9E 16 67 21 48 4A 65 91 [18:31:28]GetLastDocTimeStamp 1729535178 [18:31:28]current date 1729535508 [18:31:28]FM_GetShiftState [18:31:28]SAM_PROTO_GetShiftState [18:31:28]wFMCommunicate request_size=4 [18:31:28]MH_SAM_APDU [18:31:28]CAPDU: 80 13 01 00 [18:31:28]Write to MH i2c: E2 08 00 DA 79 80 13 01 00 00 00 00 00 D0 [18:31:28]Write i2c OK [18:31:28]MH_I2C_Read... [18:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:28]Read from MH i2c: E2 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 0E 00 [18:31:28]MH_I2C_Read... [18:31:28]Read from MH i2c: E2 0E 00 DA 79 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D9 [18:31:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:31:28]wFMCommunicate OK [18:31:28]SAM_PROTO_GetShiftState done [18:31:28]FM_GetShiftState done [18:31:28]opened in 1729470944 [18:31:28]opened+sec_in_day 1729557344 [18:31:28]quantity*price = 0 [18:31:28]sum+1 = 1 [18:31:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 276 21.10.2024 18:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166165 ФПД: 95765295056474 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183148&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166165&fm=95765295056474&tin=02508201610067®Number=0000000000091764&sum=0 [18:31:29]StoreToDocumentArchive [18:31:29]shift 535 fd 166165 [18:31:29]save to /storage/0535/doc_00166165 [18:31:29]save last doc name /storage/0535/doc_00166165 to /storage/kkm_last_doc_name [18:31:29]save OK [18:31:29]Clear old archive folders... [18:31:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:31:29]tlvbuf is 014CB4C0 [18:31:29]SAM_PROTO_ClearQueue [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 09 00 00 [18:31:29]Write to MH i2c: E2 08 00 E7 79 80 09 00 00 00 00 00 00 D2 [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 03 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 03 00 E7 79 00 90 00 D4 [18:31:29]RAPDU: 90 00 [18:31:29]wFMCommunicate OK [18:31:29]SAM_PROTO_ClearQueue done [18:31:29]KKMCreateOFDPacket [18:31:29]OFDProtocolAddRootSTLVToBuf [18:31:29]FM_MakeSignedData [18:31:29]FM_MakeSignedData [18:31:29]SAM_PROTO_SignData [18:31:29]wFMCommunicate request_size=4 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 0D 01 02 [18:31:29]Write to MH i2c: E2 08 00 E8 79 80 0D 01 02 00 00 00 00 DA [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:31:29]Read from MH i2c: E2 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 03 00 [18:31:29]MH_I2C_Read... [18:31:29]Read from MH i2c: E2 03 00 E8 79 00 90 00 D5 [18:31:29]RAPDU: 90 00 [18:31:29]wFMCommunicate OK [18:31:29]wFMCommunicate request_size=255 [18:31:29]MH_SAM_APDU [18:31:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 89 02 00 35 04 06 00 57 19 18 64 [18:31:29]Write to MH i2c: E2 02 01 E9 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 89 02 00 35 04 06 00 57 19 18 64 00 00 94 [18:31:29]Write i2c OK [18:31:29]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 E9 79 00 90 00 D6 [18:31:30]RAPDU: 90 00 [18:31:30]wFMCommunicate OK [18:31:30]wFMCommunicate request_size=7 [18:31:30]MH_SAM_APDU [18:31:30]CAPDU: 80 0D 02 02 02 C6 5A [18:31:30]Write to MH i2c: E2 0A 00 EA 79 80 0D 02 02 02 00 C6 5A 00 00 01 [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 03 00 EA 79 00 90 00 D7 [18:31:30]RAPDU: 90 00 [18:31:30]wFMCommunicate OK [18:31:30]wFMCommunicate request_size=4 [18:31:30]MH_SAM_APDU [18:31:30]CAPDU: 80 0D 03 02 [18:31:30]Write to MH i2c: E2 08 00 EB 79 80 0D 03 02 00 00 00 00 DF [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 0B 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 0B 00 EB 79 00 C8 58 21 14 08 D3 5A C4 90 00 2E [18:31:30]RAPDU: C8 58 21 14 08 D3 5A C4 90 00 [18:31:30]wFMCommunicate OK [18:31:30]SAM_PROTO_SignData done [18:31:30]FM_MakeSignedData done [18:31:30]CreateOFDProtocolMessage [18:31:30]wFMCommunicate request_size=4 [18:31:30]MH_SAM_APDU [18:31:30]CAPDU: 80 11 00 00 [18:31:30]Write to MH i2c: E2 08 00 EC 79 80 11 00 00 00 00 00 00 DF [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:30]Read from MH i2c: E2 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 17 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: E2 17 00 EC 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 37 [18:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:31:30]wFMCommunicate OK [18:31:30]CreateOFDProtocolMessage done [18:31:30]OFDSenderStorePacket 166165 [18:31:30]StoreOFDPacket docnum=166165 [18:31:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B4 E2 04 01 AE DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 89 02 00 35 04 06 00 57 19 18 64 C6 5A C8 58 21 14 08 D3 5A C4 [18:31:30]CheckFolder [18:31:30]dirname=/storage/ofd_packets [18:31:30]CheckFolder done [18:31:30]ProducePacketName [18:31:30]name=ofd_packets/00166165 [18:31:30]NVStorageSaveData ofd_packets/00166165 [18:31:30]File name is /storage/ofd_packets/00166165 [18:31:30]Write 298 bytes [18:31:30]NVStorageSaveData done [18:31:30]OFDSenderStorePacket done [18:31:30]KKMCreateOFDPacket done [18:31:30]NVStorageSaveData kkm_last_timestamp [18:31:30]File name is /storage/kkm_last_timestamp [18:31:30]Write 4 bytes [18:31:30]NVStorageSaveData done [18:31:30]ExternCall_PrintAddStr [18:31:30]wPrintStart [18:31:30]Write to MH i2c: 01 00 00 ED 79 66 [18:31:30]Write i2c OK [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: 01 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: 01 07 00 [18:31:30]MH_I2C_Read... [18:31:30]Read from MH i2c: 01 07 00 ED 79 00 00 00 00 00 FF 0F 7B [18:31:30]RasterBufferAndPrint [18:31:30]line Счет N : (1)220736 [18:31:30]line ИНН: 02508201610067 [18:31:30]line Контрольно-Кассовый Чек [18:31:30]line ПРОДАЖА [18:31:30]line ТРК (МРК, ГНК) : 11 [18:31:30]line Товар: 2710194210 [18:31:30]line ДТ-К-5 [18:31:30]line 39.380 * 0.00 [18:31:30]line = 0.00 [18:31:30]line НДС 12% НСП 1% [18:31:30]line > о реализуемом товаре [18:31:30]line ИТОГО: 0.00 [18:31:30]line НСП 1% : 0.00 [18:31:30]line НДС 12% : 0.00 [18:31:30]line Наличными: 0.00 [18:31:30]line Безнал.: 0.00 [18:31:30]line Место: АЗС № 161 "Партнер Нефть" [18:31:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:31:30]line СНО: Общий режим [18:31:30]line Чек 276 21.10.2024 18:31 [18:31:30]line Смена: 535 ФФД: 1.0 [18:31:30]line ЗНМ: 0300000104 [18:31:30]line РНМ: 0000000000091764 [18:31:30]line Версия ККМ: 001 [18:31:30]line Талоны: Топливная Карта [18:31:30]line 38286 [18:31:30]line ФМ: 0000000000871759 [18:31:30]line ФД: 166165 [18:31:30]line ФПД: 95765295056474 [18:31:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183148&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166165&fm=95765295056474&tin=02508201610067®Number=0000000000091764&sum=0 [18:31:30]OFD Sender: Processing packet 166165 [packets to send 48, broken 47] [18:31:30]ProducePacketName [18:31:30]name=ofd_packets/00166165 [18:31:30]OFD Sender: To server: pG, [18:31:30]CommunicateWithHost lk.salyk.kg:30040 [18:31:30]ConnectInit lk.salyk.kg [18:31:30]written 0, free lines is 4095 [18:31:30]Connected sock=7 [18:31:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B4 E2 04 01 AE DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 14 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 89 02 00 35 04 06 00 57 19 18 64 C6 5A C8 58 21 14 08 D3 5A C4 [18:31:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 52 F1 47 00 99 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 15 89 02 00 F4 03 04 00 81 44 16 67 B6 04 01 00 00 1A E9 A2 F5 DA 7A 85 0D [18:31:30]CommunicateWithHost err = 0 [18:31:30]CheckOFDResponse [18:31:30]1017 (14) - 77093643461234 [18:31:30]1041 (16) - 0000000000871759 [18:31:30]1040 (4) - 166165 [18:31:30]1012 (4) - 21.10.2024 12:09 [18:31:30]1206 (1) - 0 [18:31:30]OFD Sender: Remove packet 166165 [18:31:30]ProducePacketName [18:31:30]name=ofd_packets/00166165 [18:31:30]NVStorageDeleteData [18:31:31]Write to MH i2c: 01 00 00 17 7A 91 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 07 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: 01 07 00 17 7A 00 00 00 00 00 E4 0C 88 [18:31:31]RasterBufferAndPrint [18:31:31]line [18:31:31]line [18:31:31]line [18:31:31]line [18:31:31]line [18:31:31]written 0, free lines is 3306 [18:31:31]MH_Cut [18:31:31]Write to MH i2c: D1 01 00 1E 7A 01 6A [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: D1 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: D1 01 00 [18:31:31]MH_I2C_Read... [18:31:31]Read from MH i2c: D1 01 00 1E 7A 00 69 [18:31:31]Write to MH i2c: 01 00 00 1F 7A 99 [18:31:31]Write i2c OK [18:31:31]MH_I2C_Read... [18:31:31]OFD Sender: No OFD packet to send [18:31:31]*** Cut start [18:31:31]*** Partial cut [18:31:31]*** CUTSNS_PIN = 1 [18:31:31]*** CUTSNS_PIN = 0 [18:31:32]*** Brake cut motor [18:31:32]Read from MH i2c: 01 [18:31:32]MH_I2C_Read... [18:31:32]*** Stop cut motor [18:31:32]*** Cut end [18:31:32]Read from MH i2c: 01 07 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: 01 07 00 1F 7A 00 00 00 00 00 FF 0F AE [18:31:32]process_action close_receipt done [18:31:32]requested_data is exist [18:31:32]produce_requested_data [18:31:32]requested_item fm.sn is exist - process it [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 11 00 00 [18:31:32]Write to MH i2c: E2 08 00 20 7A 80 11 00 00 00 00 00 00 14 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 17 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 17 00 20 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6C [18:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:31:32]wFMCommunicate OK [18:31:32]requested_item fd.num is exist - process it [18:31:32]SAM_PROTO_GetFieldsCounters [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 13 00 00 [18:31:32]Write to MH i2c: E2 08 00 21 7A 80 13 00 00 00 00 00 00 17 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 62 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 62 00 21 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [18:31:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 15 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:31:32]wFMCommunicate OK [18:31:32]SAM_PROTO_GetFieldsCounters done [18:31:32]requested_item shift.num is exist - process it [18:31:32]requested_item shift.opened is exist - process it [18:31:32]req_shift_opened [18:31:32]FM_GetShiftState [18:31:32]SAM_PROTO_GetShiftState [18:31:32]wFMCommunicate request_size=4 [18:31:32]MH_SAM_APDU [18:31:32]CAPDU: 80 13 01 00 [18:31:32]Write to MH i2c: E2 08 00 22 7A 80 13 01 00 00 00 00 00 19 [18:31:32]Write i2c OK [18:31:32]MH_I2C_Read... [18:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:32]Read from MH i2c: E2 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 0E 00 [18:31:32]MH_I2C_Read... [18:31:32]Read from MH i2c: E2 0E 00 22 7A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 22 [18:31:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:31:32]wFMCommunicate OK [18:31:32]SAM_PROTO_GetShiftState done [18:31:32]FM_GetShiftState done [18:31:32]req_shift_opened done [18:31:32]requested_item shift.open_date is exist - process it [18:31:32]req_shift_open_date [18:31:32]req_shift_open_date done [18:31:32]produce_requested_data done [18:31:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166165,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:31:32]process_action_free close_receipt [18:31:32]json_value_free [18:31:32]json_value_free done [18:31:32]process_json_proto returns [18:31:32]Send response to host [18:31:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166165,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:31:32]free response buf [18:31:32]execute_script done [18:31:32]execute_script returns [18:31:32]free content buf [18:31:32]Sock 6.Close socket [18:31:32]Sock 6.Thread stoped [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]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:32]accept exits with 5 [18:33:32]New connection [18:33:32]New thread 3066920292 created [18:33:32]Thread 3066776932 joined [18:33:32]Waiting for new connection... [18:33:32] Sock 5.Parse request [18:33:32]Sock 5.Check first char [18:33:32]Sock 5.First char is OK [18:33:32]request: POST /json_proto HTTP/1.0 [18:33:32]Method: POST [18:33:32]URL: /json_proto [18:33:32]Method is POST - this is cgi request [18:33:32]url: /json_proto [18:33:32]query_string will be loaded in cgi processing [18:33:32]execute_cgi json_proto POST (null) [18:33:32]execute_cgi path=json_proto method=POST [18:33:32]POST find Content-Length [18:33:32]Host: 172.17.53.195:8080 [18:33:32]Content-Length: 677 [18:33:32]Content-Type: application/json [18:33:32] [18:33:32]POST finish read [18:33:32]Found Content-Length = 677 [18:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:32]execute_script... [18:33: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)220737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:32]POST & json_proto [18:33:32]process_json_proto [18:33:32]json parsed OK: [18:33:32]protocol is kg_v1.0 [18:33:32]action value=close_receipt [18:33:32]process_action close_receipt [18:33:32]cmd_close_receipt [18:33:32]MH_GetDate [18:33:32]Write to MH i2c: F0 00 00 23 7A 8C [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: F0 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: F0 09 00 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: F0 09 00 23 7A 00 8F 9E 16 67 21 48 4A 65 57 [18:33:32]GetLastDocTimeStamp 1729535508 [18:33:32]current date 1729535631 [18:33:32]FM_GetShiftState [18:33:32]SAM_PROTO_GetShiftState [18:33:32]wFMCommunicate request_size=4 [18:33:32]MH_SAM_APDU [18:33:32]CAPDU: 80 13 01 00 [18:33:32]Write to MH i2c: E2 08 00 24 7A 80 13 01 00 00 00 00 00 1B [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:32]Read from MH i2c: E2 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: E2 0E 00 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: E2 0E 00 24 7A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 24 [18:33:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:33:32]wFMCommunicate OK [18:33:32]SAM_PROTO_GetShiftState done [18:33:32]FM_GetShiftState done [18:33:32]opened in 1729470944 [18:33:32]opened+sec_in_day 1729557344 [18:33:32]quantity*price = 20003 [18:33:32]sum+1 = 20004 [18:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 277 21.10.2024 18:33 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166166 ФПД: 29037053924277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166166&fm=29037053924277&tin=02508201610067®Number=0000000000091764&sum=20000 [18:33:33]StoreToDocumentArchive [18:33:33]shift 535 fd 166166 [18:33:33]save to /storage/0535/doc_00166166 [18:33:33]save last doc name /storage/0535/doc_00166166 to /storage/kkm_last_doc_name [18:33:33]save OK [18:33:33]Clear old archive folders... [18:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:33]tlvbuf is 0169F540 [18:33:33]SAM_PROTO_ClearQueue [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 09 00 00 [18:33:33]Write to MH i2c: E2 08 00 31 7A 80 09 00 00 00 00 00 00 1D [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 31 7A 00 90 00 1F [18:33:33]RAPDU: 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_ClearQueue done [18:33:33]KKMCreateOFDPacket [18:33:33]OFDProtocolAddRootSTLVToBuf [18:33:33]FM_MakeSignedData [18:33:33]FM_MakeSignedData [18:33:33]SAM_PROTO_SignData [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 0D 01 02 [18:33:33]Write to MH i2c: E2 08 00 32 7A 80 0D 01 02 00 00 00 00 25 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 32 7A 00 90 00 20 [18:33:33]RAPDU: 90 00 [18:33:33]wFMCommunicate OK [18:33:33]wFMCommunicate request_size=255 [18:33:33]MH_SAM_APDU [18:33: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 8F 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 89 02 00 35 04 06 00 1A [18:33:33]Write to MH i2c: E2 02 01 33 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 8F 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 89 02 00 35 04 06 00 1A 00 00 11 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 33 7A 00 90 00 21 [18:33:33]RAPDU: 90 00 [18:33:33]wFMCommunicate OK [18:33:33]wFMCommunicate request_size=10 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 0D 02 02 05 68 B7 48 D3 B5 [18:33:33]Write to MH i2c: E2 0D 00 34 7A 80 0D 02 02 05 00 68 B7 48 D3 B5 00 00 21 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 34 7A 00 90 00 22 [18:33:33]RAPDU: 90 00 [18:33:33]wFMCommunicate OK [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 0D 03 02 [18:33:33]Write to MH i2c: E2 08 00 35 7A 80 0D 03 02 00 00 00 00 2A [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0B 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 0B 00 35 7A 00 22 12 1A 77 C0 BA 3E 93 90 00 3B [18:33:33]RAPDU: 22 12 1A 77 C0 BA 3E 93 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_SignData done [18:33:33]FM_MakeSignedData done [18:33:33]CreateOFDProtocolMessage [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 11 00 00 [18:33:33]Write to MH i2c: E2 08 00 36 7A 80 11 00 00 00 00 00 00 2A [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 17 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 17 00 36 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 82 [18:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:33:33]wFMCommunicate OK [18:33:33]CreateOFDProtocolMessage done [18:33:33]OFDSenderStorePacket 166166 [18:33:33]StoreOFDPacket docnum=166166 [18:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC B0 07 01 22 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 8F 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 89 02 00 35 04 06 00 1A 68 B7 48 D3 B5 22 12 1A 77 C0 BA 3E 93 [18:33:33]CheckFolder [18:33:33]dirname=/storage/ofd_packets [18:33:33]CheckFolder done [18:33:33]ProducePacketName [18:33:33]name=ofd_packets/00166166 [18:33:33]NVStorageSaveData ofd_packets/00166166 [18:33:33]File name is /storage/ofd_packets/00166166 [18:33:33]Write 301 bytes [18:33:33]NVStorageSaveData done [18:33:33]OFDSenderStorePacket done [18:33:33]KKMCreateOFDPacket done [18:33:33]NVStorageSaveData kkm_last_timestamp [18:33:33]File name is /storage/kkm_last_timestamp [18:33:33]Write 4 bytes [18:33:33]NVStorageSaveData done [18:33:33]ExternCall_PrintAddStr [18:33:33]wPrintStart [18:33:33]Write to MH i2c: 01 00 00 37 7A B1 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: 01 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: 01 07 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: 01 07 00 37 7A 00 00 00 00 00 FF 0F C6 [18:33:33]RasterBufferAndPrint [18:33:33]line Счет N : (1)220737 [18:33:33]line ИНН: 02508201610067 [18:33:33]line Контрольно-Кассовый Чек [18:33:33]line ПРОДАЖА [18:33:33]line ТРК (МРК, ГНК) : 23 [18:33:33]line Товар: 2710124130 [18:33:33]line Аи-92-К-5 [18:33:33]line 2.990 * 66.90 [18:33:33]line = 200.03 [18:33:33]line НДС 12% НСП 1% [18:33:33]line > о реализуемом товаре [18:33:33]line ОКРУГЛЕНИЕ: -0.03 [18:33:33]line ИТОГО: 200.00 [18:33:33]line Внесено: 200.00 [18:33:33]line СДАЧА: 0.00 [18:33:33]line НСП 1% : 1.77 [18:33:33]line НДС 12% : 21.24 [18:33:33]line Наличными: 200.00 [18:33:33]line Безнал.: 0.00 [18:33:33]line Место: АЗС № 161 "Партнер Нефть" [18:33:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:33:33]line СНО: Общий режим [18:33:33]line Чек 277 21.10.2024 18:33 [18:33:33]line Смена: 535 ФФД: 1.0 [18:33:33]line ЗНМ: 0300000104 [18:33:33]line РНМ: 0000000000091764 [18:33:33]line Версия ККМ: 001 [18:33:33]line ФМ: 0000000000871759 [18:33:33]line ФД: 166166 [18:33:33]line ФПД: 29037053924277 [18:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183351&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166166&fm=29037053924277&tin=02508201610067®Number=0000000000091764&sum=20000 [18:33:34]OFD Sender: Processing packet 166166 [packets to send 48, broken 47] [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00166166 [18:33:34]OFD Sender: To server: pG, [18:33:34]CommunicateWithHost lk.salyk.kg:30040 [18:33:34]ConnectInit lk.salyk.kg [18:33:34]written 0, free lines is 4095 [18:33:34]Connected sock=7 [18:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DC B0 07 01 22 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 8F 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 89 02 00 35 04 06 00 1A 68 B7 48 D3 B5 22 12 1A 77 C0 BA 3E 93 [18:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5C 74 47 00 B5 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 16 89 02 00 F4 03 04 00 FD 44 16 67 B6 04 01 00 00 B6 AF E9 CE 60 22 77 44 [18:33:34]CommunicateWithHost err = 0 [18:33:34]CheckOFDResponse [18:33:34]1017 (14) - 77093643461234 [18:33:34]1041 (16) - 0000000000871759 [18:33:34]1040 (4) - 166166 [18:33:34]1012 (4) - 21.10.2024 12:11 [18:33:34]1206 (1) - 0 [18:33:34]OFD Sender: Remove packet 166166 [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00166166 [18:33:34]NVStorageDeleteData [18:33:34]Write to MH i2c: 01 00 00 62 7A DC [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 62 7A 00 00 00 00 00 CA 0C B9 [18:33:34]RasterBufferAndPrint [18:33:34]line [18:33:34]line [18:33:34]line [18:33:34]line [18:33:34]line [18:33:34]written 0, free lines is 3281 [18:33:34]MH_Cut [18:33:34]Write to MH i2c: D1 01 00 69 7A 01 B5 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: D1 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: D1 01 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: D1 01 00 69 7A 00 B4 [18:33:34]Write to MH i2c: 01 00 00 6A 7A E4 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]OFD Sender: No OFD packet to send [18:33:35]*** Cut start [18:33:35]*** Partial cut [18:33:35]*** CUTSNS_PIN = 1 [18:33:35]*** CUTSNS_PIN = 0 [18:33:35]*** Brake cut motor [18:33:36]Read from MH i2c: 01 [18:33:36]MH_I2C_Read... [18:33:36]*** Stop cut motor [18:33:36]*** Cut end [18:33:36]Read from MH i2c: 01 07 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: 01 07 00 6A 7A 00 00 00 00 00 FF 0F F9 [18:33:36]process_action close_receipt done [18:33:36]requested_data is exist [18:33:36]produce_requested_data [18:33:36]requested_item fm.sn is exist - process it [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 11 00 00 [18:33:36]Write to MH i2c: E2 08 00 6B 7A 80 11 00 00 00 00 00 00 5F [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 17 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 17 00 6B 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B7 [18:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:33:36]wFMCommunicate OK [18:33:36]requested_item fd.num is exist - process it [18:33:36]SAM_PROTO_GetFieldsCounters [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 13 00 00 [18:33:36]Write to MH i2c: E2 08 00 6C 7A 80 13 00 00 00 00 00 00 62 [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 62 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 62 00 6C 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [18:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 16 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:36]wFMCommunicate OK [18:33:36]SAM_PROTO_GetFieldsCounters done [18:33:36]requested_item shift.num is exist - process it [18:33:36]requested_item shift.opened is exist - process it [18:33:36]req_shift_opened [18:33:36]FM_GetShiftState [18:33:36]SAM_PROTO_GetShiftState [18:33:36]wFMCommunicate request_size=4 [18:33:36]MH_SAM_APDU [18:33:36]CAPDU: 80 13 01 00 [18:33:36]Write to MH i2c: E2 08 00 6D 7A 80 13 01 00 00 00 00 00 64 [18:33:36]Write i2c OK [18:33:36]MH_I2C_Read... [18:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:36]Read from MH i2c: E2 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 0E 00 [18:33:36]MH_I2C_Read... [18:33:36]Read from MH i2c: E2 0E 00 6D 7A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6D [18:33:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:33:36]wFMCommunicate OK [18:33:36]SAM_PROTO_GetShiftState done [18:33:36]FM_GetShiftState done [18:33:36]req_shift_opened done [18:33:36]requested_item shift.open_date is exist - process it [18:33:36]req_shift_open_date [18:33:36]req_shift_open_date done [18:33:36]produce_requested_data done [18:33:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166166,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:33:36]process_action_free close_receipt [18:33:36]json_value_free [18:33:36]json_value_free done [18:33:36]process_json_proto returns [18:33:36]Send response to host [18:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166166,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:33:36]free response buf [18:33:36]execute_script done [18:33:36]execute_script returns [18:33:36]free content buf [18:33:36]Sock 5.Close socket [18:33:36]Sock 5.Thread stoped [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:33]accept exits with 6 [18:34:33]New connection [18:34:33]New thread 3066776932 created [18:34:33]Thread 3066920292 joined [18:34:33]Waiting for new connection... [18:34:33] Sock 6.Parse request [18:34:33]Sock 6.Check first char [18:34:33]Sock 6.First char is OK [18:34:33]request: POST /json_proto HTTP/1.0 [18:34:33]Method: POST [18:34:33]URL: /json_proto [18:34:33]Method is POST - this is cgi request [18:34:33]url: /json_proto [18:34:33]query_string will be loaded in cgi processing [18:34:33]execute_cgi json_proto POST (null) [18:34:33]execute_cgi path=json_proto method=POST [18:34:33]POST find Content-Length [18:34:33]Host: 172.17.53.195:8080 [18:34:33]Content-Length: 682 [18:34:33]Content-Type: application/json [18:34:33] [18:34:33]POST finish read [18:34:33]Found Content-Length = 682 [18:34:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:33]execute_script... [18:34: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)220738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:33]POST & json_proto [18:34:33]process_json_proto [18:34:33]json parsed OK: [18:34:33]protocol is kg_v1.0 [18:34:33]action value=close_receipt [18:34:33]process_action close_receipt [18:34:33]cmd_close_receipt [18:34:33]MH_GetDate [18:34:33]Write to MH i2c: F0 00 00 6E 7A D7 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: F0 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: F0 09 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: F0 09 00 6E 7A 00 CC 9E 16 67 21 48 4A 65 DF [18:34:33]GetLastDocTimeStamp 1729535631 [18:34:33]current date 1729535692 [18:34:33]FM_GetShiftState [18:34:33]SAM_PROTO_GetShiftState [18:34:33]wFMCommunicate request_size=4 [18:34:33]MH_SAM_APDU [18:34:33]CAPDU: 80 13 01 00 [18:34:33]Write to MH i2c: E2 08 00 6F 7A 80 13 01 00 00 00 00 00 66 [18:34:33]Write i2c OK [18:34:33]MH_I2C_Read... [18:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:33]Read from MH i2c: E2 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 0E 00 [18:34:33]MH_I2C_Read... [18:34:33]Read from MH i2c: E2 0E 00 6F 7A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [18:34:33]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:34:33]wFMCommunicate OK [18:34:33]SAM_PROTO_GetShiftState done [18:34:33]FM_GetShiftState done [18:34:33]opened in 1729470944 [18:34:33]opened+sec_in_day 1729557344 [18:34:33]quantity*price = 100015 [18:34:33]sum+1 = 100017 [18:34:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 278 21.10.2024 18:34 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166167 ФПД: 192358547311488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166167&fm=192358547311488&tin=02508201610067®Number=0000000000091764&sum=100000 [18:34:34]StoreToDocumentArchive [18:34:34]shift 535 fd 166167 [18:34:34]save to /storage/0535/doc_00166167 [18:34:34]save last doc name /storage/0535/doc_00166167 to /storage/kkm_last_doc_name [18:34:34]save OK [18:34:34]Clear old archive folders... [18:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:34:34]tlvbuf is 01891900 [18:34:34]SAM_PROTO_ClearQueue [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 09 00 00 [18:34:34]Write to MH i2c: E2 08 00 7C 7A 80 09 00 00 00 00 00 00 68 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 7C 7A 00 90 00 6A [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_ClearQueue done [18:34:34]KKMCreateOFDPacket [18:34:34]OFDProtocolAddRootSTLVToBuf [18:34:34]FM_MakeSignedData [18:34:34]FM_MakeSignedData [18:34:34]SAM_PROTO_SignData [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 01 02 [18:34:34]Write to MH i2c: E2 08 00 7D 7A 80 0D 01 02 00 00 00 00 70 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 7D 7A 00 90 00 6B [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=255 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CC 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 89 02 00 35 04 06 00 AE [18:34:34]Write to MH i2c: E2 02 01 7E 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CC 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 89 02 00 35 04 06 00 AE 00 00 67 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 7E 7A 00 90 00 6C [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=10 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 02 02 05 F2 F6 E1 CB 80 [18:34:34]Write to MH i2c: E2 0D 00 7F 7A 80 0D 02 02 05 00 F2 F6 E1 CB 80 00 00 91 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 03 00 7F 7A 00 90 00 6D [18:34:34]RAPDU: 90 00 [18:34:34]wFMCommunicate OK [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 0D 03 02 [18:34:34]Write to MH i2c: E2 08 00 80 7A 80 0D 03 02 00 00 00 00 75 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0B 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0B 00 80 7A 00 F8 51 34 E9 F2 55 F5 57 90 00 6F [18:34:34]RAPDU: F8 51 34 E9 F2 55 F5 57 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_SignData done [18:34:34]FM_MakeSignedData done [18:34:34]CreateOFDProtocolMessage [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 11 00 00 [18:34:34]Write to MH i2c: E2 08 00 81 7A 80 11 00 00 00 00 00 00 75 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 81 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [18:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:34:34]wFMCommunicate OK [18:34:34]CreateOFDProtocolMessage done [18:34:34]OFDSenderStorePacket 166167 [18:34:34]StoreOFDPacket docnum=166167 [18:34:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 1A 07 01 18 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CC 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 89 02 00 35 04 06 00 AE F2 F6 E1 CB 80 F8 51 34 E9 F2 55 F5 57 [18:34:34]CheckFolder [18:34:34]dirname=/storage/ofd_packets [18:34:34]CheckFolder done [18:34:34]ProducePacketName [18:34:34]name=ofd_packets/00166167 [18:34:34]NVStorageSaveData ofd_packets/00166167 [18:34:34]File name is /storage/ofd_packets/00166167 [18:34:34]Write 301 bytes [18:34:34]NVStorageSaveData done [18:34:34]OFDSenderStorePacket done [18:34:34]KKMCreateOFDPacket done [18:34:34]NVStorageSaveData kkm_last_timestamp [18:34:34]File name is /storage/kkm_last_timestamp [18:34:34]Write 4 bytes [18:34:34]NVStorageSaveData done [18:34:34]ExternCall_PrintAddStr [18:34:34]wPrintStart [18:34:34]Write to MH i2c: 01 00 00 82 7A FC [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 82 7A 00 00 00 00 00 FF 0F 11 [18:34:34]RasterBufferAndPrint [18:34:34]line Счет N : (1)220738 [18:34:34]line ИНН: 02508201610067 [18:34:34]line Контрольно-Кассовый Чек [18:34:34]line ПРОДАЖА [18:34:34]line ТРК (МРК, ГНК) : 43 [18:34:34]line Товар: 2710124130 [18:34:34]line Аи-92-К-5 [18:34:34]line 14.950 * 66.90 [18:34:34]line = 1000.16 [18:34:34]line НДС 12% НСП 1% [18:34:34]line > о реализуемом товаре [18:34:34]line ОКРУГЛЕНИЕ: -0.16 [18:34:34]line ИТОГО: 1000.00 [18:34:34]line Внесено: 1000.00 [18:34:34]line СДАЧА: 0.00 [18:34:34]line НСП 1% : 8.85 [18:34:34]line НДС 12% : 106.21 [18:34:34]line Наличными: 1000.00 [18:34:34]line Безнал.: 0.00 [18:34:34]line Место: АЗС № 161 "Партнер Нефть" [18:34:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:34:34]line СНО: Общий режим [18:34:34]line Чек 278 21.10.2024 18:34 [18:34:34]line Смена: 535 ФФД: 1.0 [18:34:34]line ЗНМ: 0300000104 [18:34:34]line РНМ: 0000000000091764 [18:34:34]line Версия ККМ: 001 [18:34:34]line ФМ: 0000000000871759 [18:34:34]line ФД: 166167 [18:34:34]line ФПД: 192358547311488 [18:34:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166167&fm=192358547311488&tin=02508201610067®Number=0000000000091764&sum=100000 [18:34:35]OFD Sender: Processing packet 166167 [packets to send 48, broken 47] [18:34:35]ProducePacketName [18:34:35]name=ofd_packets/00166167 [18:34:35]OFD Sender: To server: pG, [18:34:35]CommunicateWithHost lk.salyk.kg:30040 [18:34:35]ConnectInit lk.salyk.kg [18:34:35]written 0, free lines is 4095 [18:34:35]Connected sock=7 [18:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 15 1A 07 01 18 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CC 9E 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 89 02 00 35 04 06 00 AE F2 F6 E1 CB 80 F8 51 34 E9 F2 55 F5 57 [18:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C7 76 47 00 76 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 17 89 02 00 F4 03 04 00 3A 45 16 67 B6 04 01 00 00 C0 38 83 75 5A 42 23 18 [18:34:35]CommunicateWithHost err = 0 [18:34:35]CheckOFDResponse [18:34:35]1017 (14) - 77093643461234 [18:34:35]1041 (16) - 0000000000871759 [18:34:35]1040 (4) - 166167 [18:34:35]1012 (4) - 21.10.2024 12:12 [18:34:35]1206 (1) - 0 [18:34:35]OFD Sender: Remove packet 166167 [18:34:35]ProducePacketName [18:34:35]name=ofd_packets/00166167 [18:34:35]NVStorageDeleteData [18:34:35]Write to MH i2c: 01 00 00 AD 7A 27 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 07 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: 01 07 00 AD 7A 00 00 00 00 00 D9 0C 13 [18:34:35]RasterBufferAndPrint [18:34:35]line [18:34:35]line [18:34:35]line [18:34:35]line [18:34:35]line [18:34:35]written 0, free lines is 3296 [18:34:35]MH_Cut [18:34:35]Write to MH i2c: D1 01 00 B4 7A 01 00 [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: D1 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: D1 01 00 [18:34:35]MH_I2C_Read... [18:34:35]Read from MH i2c: D1 01 00 B4 7A 00 FF [18:34:35]Write to MH i2c: 01 00 00 B5 7A 2F [18:34:35]Write i2c OK [18:34:35]MH_I2C_Read... [18:34:35]OFD Sender: No OFD packet to send [18:34:36]*** Cut start [18:34:36]*** Partial cut [18:34:36]*** CUTSNS_PIN = 1 [18:34:36]*** CUTSNS_PIN = 0 [18:34:36]*** Brake cut motor [18:34:36]Read from MH i2c: 01 [18:34:36]MH_I2C_Read... [18:34:36]*** Stop cut motor [18:34:36]*** Cut end [18:34:36]Read from MH i2c: 01 07 00 [18:34:36]MH_I2C_Read... [18:34:36]Read from MH i2c: 01 07 00 B5 7A 00 00 00 00 00 FF 0F 44 [18:34:36]process_action close_receipt done [18:34:36]requested_data is exist [18:34:36]produce_requested_data [18:34:36]requested_item fm.sn is exist - process it [18:34:36]wFMCommunicate request_size=4 [18:34:36]MH_SAM_APDU [18:34:36]CAPDU: 80 11 00 00 [18:34:36]Write to MH i2c: E2 08 00 B6 7A 80 11 00 00 00 00 00 00 AA [18:34:36]Write i2c OK [18:34:36]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 17 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 17 00 B6 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [18:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:34:37]wFMCommunicate OK [18:34:37]requested_item fd.num is exist - process it [18:34:37]SAM_PROTO_GetFieldsCounters [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 13 00 00 [18:34:37]Write to MH i2c: E2 08 00 B7 7A 80 13 00 00 00 00 00 00 AD [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 62 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 62 00 B7 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [18:34:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 17 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:37]wFMCommunicate OK [18:34:37]SAM_PROTO_GetFieldsCounters done [18:34:37]requested_item shift.num is exist - process it [18:34:37]requested_item shift.opened is exist - process it [18:34:37]req_shift_opened [18:34:37]FM_GetShiftState [18:34:37]SAM_PROTO_GetShiftState [18:34:37]wFMCommunicate request_size=4 [18:34:37]MH_SAM_APDU [18:34:37]CAPDU: 80 13 01 00 [18:34:37]Write to MH i2c: E2 08 00 B8 7A 80 13 01 00 00 00 00 00 AF [18:34:37]Write i2c OK [18:34:37]MH_I2C_Read... [18:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:37]Read from MH i2c: E2 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 0E 00 [18:34:37]MH_I2C_Read... [18:34:37]Read from MH i2c: E2 0E 00 B8 7A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B8 [18:34:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:34:37]wFMCommunicate OK [18:34:37]SAM_PROTO_GetShiftState done [18:34:37]FM_GetShiftState done [18:34:37]req_shift_opened done [18:34:37]requested_item shift.open_date is exist - process it [18:34:37]req_shift_open_date [18:34:37]req_shift_open_date done [18:34:37]produce_requested_data done [18:34:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166167,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:34:37]process_action_free close_receipt [18:34:37]json_value_free [18:34:37]json_value_free done [18:34:37]process_json_proto returns [18:34:37]Send response to host [18:34:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166167,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:34:37]free response buf [18:34:37]execute_script done [18:34:37]execute_script returns [18:34:37]free content buf [18:34:37]Sock 6.Close socket [18:34:37]Sock 6.Thread stoped [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:38:59]accept exits with 5 [18:38:59]New connection [18:38:59]New thread 3066920292 created [18:38:59]Thread 3066776932 joined [18:38:59]Waiting for new connection... [18:38:59] Sock 5.Parse request [18:38:59]Sock 5.Check first char [18:38:59]Sock 5.First char is OK [18:38:59]request: POST /json_proto HTTP/1.0 [18:38:59]Method: POST [18:38:59]URL: /json_proto [18:38:59]Method is POST - this is cgi request [18:38:59]url: /json_proto [18:38:59]query_string will be loaded in cgi processing [18:38:59]execute_cgi json_proto POST (null) [18:38:59]execute_cgi path=json_proto method=POST [18:38:59]POST find Content-Length [18:38:59]Host: 172.17.53.195:8080 [18:38:59]Content-Length: 789 [18:38:59]Content-Type: application/json [18:38:59] [18:38:59]POST finish read [18:38:59]Found Content-Length = 789 [18:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:59]execute_script... [18:38: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)220739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "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\u000A38286", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:59]POST & json_proto [18:38:59]process_json_proto [18:38:59]json parsed OK: [18:38:59]protocol is kg_v1.0 [18:38:59]action value=close_receipt [18:38:59]process_action close_receipt [18:38:59]cmd_close_receipt [18:38:59]MH_GetDate [18:38:59]Write to MH i2c: F0 00 00 B9 7A 22 [18:38:59]Write i2c OK [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: F0 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: F0 09 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: F0 09 00 B9 7A 00 D7 9F 16 67 21 48 4A 65 36 [18:38:59]GetLastDocTimeStamp 1729535692 [18:38:59]current date 1729535959 [18:38:59]FM_GetShiftState [18:38:59]SAM_PROTO_GetShiftState [18:38:59]wFMCommunicate request_size=4 [18:38:59]MH_SAM_APDU [18:38:59]CAPDU: 80 13 01 00 [18:38:59]Write to MH i2c: E2 08 00 BA 7A 80 13 01 00 00 00 00 00 B1 [18:38:59]Write i2c OK [18:38:59]MH_I2C_Read... [18:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:59]Read from MH i2c: E2 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 0E 00 [18:38:59]MH_I2C_Read... [18:38:59]Read from MH i2c: E2 0E 00 BA 7A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BA [18:38:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:38:59]wFMCommunicate OK [18:38:59]SAM_PROTO_GetShiftState done [18:38:59]FM_GetShiftState done [18:38:59]opened in 1729470944 [18:38:59]opened+sec_in_day 1729557344 [18:38:59]quantity*price = 0 [18:38:59]sum+1 = 1 [18:38:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 279 21.10.2024 18:39 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливная Карта 38286 ФМ: 0000000000871759 ФД: 166168 ФПД: 84079166967542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166168&fm=84079166967542&tin=02508201610067®Number=0000000000091764&sum=0 [18:39:01]StoreToDocumentArchive [18:39:01]shift 535 fd 166168 [18:39:01]save to /storage/0535/doc_00166168 [18:39:01]save last doc name /storage/0535/doc_00166168 to /storage/kkm_last_doc_name [18:39:01]save OK [18:39:01]Clear old archive folders... [18:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:39:01]tlvbuf is 0186B340 [18:39:01]SAM_PROTO_ClearQueue [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 09 00 00 [18:39:01]Write to MH i2c: E2 08 00 C7 7A 80 09 00 00 00 00 00 00 B3 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 C7 7A 00 90 00 B5 [18:39:01]RAPDU: 90 00 [18:39:01]wFMCommunicate OK [18:39:01]SAM_PROTO_ClearQueue done [18:39:01]KKMCreateOFDPacket [18:39:01]OFDProtocolAddRootSTLVToBuf [18:39:01]FM_MakeSignedData [18:39:01]FM_MakeSignedData [18:39:01]SAM_PROTO_SignData [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 0D 01 02 [18:39:01]Write to MH i2c: E2 08 00 C8 7A 80 0D 01 02 00 00 00 00 BB [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 C8 7A 00 90 00 B6 [18:39:01]RAPDU: 90 00 [18:39:01]wFMCommunicate OK [18:39:01]wFMCommunicate request_size=255 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 89 02 00 35 04 06 00 4C 78 34 E1 [18:39:01]Write to MH i2c: E2 02 01 C9 7A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 89 02 00 35 04 06 00 4C 78 34 E1 00 00 AF [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]OFD Sender: No OFD packet to send [18:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 C9 7A 00 90 00 B7 [18:39:01]RAPDU: 90 00 [18:39:01]wFMCommunicate OK [18:39:01]wFMCommunicate request_size=7 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 0D 02 02 02 4E F6 [18:39:01]Write to MH i2c: E2 0A 00 CA 7A 80 0D 02 02 02 00 4E F6 00 00 06 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 03 00 CA 7A 00 90 00 B8 [18:39:01]RAPDU: 90 00 [18:39:01]wFMCommunicate OK [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 0D 03 02 [18:39:01]Write to MH i2c: E2 08 00 CB 7A 80 0D 03 02 00 00 00 00 C0 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 0B 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 0B 00 CB 7A 00 B7 62 94 C2 B2 8A D1 2F 90 00 6C [18:39:01]RAPDU: B7 62 94 C2 B2 8A D1 2F 90 00 [18:39:01]wFMCommunicate OK [18:39:01]SAM_PROTO_SignData done [18:39:01]FM_MakeSignedData done [18:39:01]CreateOFDProtocolMessage [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 11 00 00 [18:39:01]Write to MH i2c: E2 08 00 CC 7A 80 11 00 00 00 00 00 00 C0 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 17 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 17 00 CC 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [18:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:39:01]wFMCommunicate OK [18:39:01]CreateOFDProtocolMessage done [18:39:01]OFDSenderStorePacket 166168 [18:39:01]StoreOFDPacket docnum=166168 [18:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 82 82 04 01 42 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 89 02 00 35 04 06 00 4C 78 34 E1 4E F6 B7 62 94 C2 B2 8A D1 2F [18:39:01]CheckFolder [18:39:01]dirname=/storage/ofd_packets [18:39:01]CheckFolder done [18:39:01]ProducePacketName [18:39:01]name=ofd_packets/00166168 [18:39:01]NVStorageSaveData ofd_packets/00166168 [18:39:01]File name is /storage/ofd_packets/00166168 [18:39:01]Write 298 bytes [18:39:01]NVStorageSaveData done [18:39:01]OFDSenderStorePacket done [18:39:01]KKMCreateOFDPacket done [18:39:01]NVStorageSaveData kkm_last_timestamp [18:39:01]File name is /storage/kkm_last_timestamp [18:39:01]Write 4 bytes [18:39:01]NVStorageSaveData done [18:39:01]ExternCall_PrintAddStr [18:39:01]wPrintStart [18:39:01]Write to MH i2c: 01 00 00 CD 7A 47 [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: 01 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: 01 07 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: 01 07 00 CD 7A 00 00 00 00 00 FF 0F 5C [18:39:01]RasterBufferAndPrint [18:39:01]line Счет N : (1)220739 [18:39:01]line ИНН: 02508201610067 [18:39:01]line Контрольно-Кассовый Чек [18:39:01]line ПРОДАЖА [18:39:01]line ТРК (МРК, ГНК) : 21 [18:39:01]line Товар: 2710194210 [18:39:01]line ДТ-К-5 [18:39:01]line 26.250 * 0.00 [18:39:01]line = 0.00 [18:39:01]line НДС 12% НСП 1% [18:39:01]line > о реализуемом товаре [18:39:01]line ИТОГО: 0.00 [18:39:01]line НСП 1% : 0.00 [18:39:01]line НДС 12% : 0.00 [18:39:01]line Наличными: 0.00 [18:39:01]line Безнал.: 0.00 [18:39:01]line Место: АЗС № 161 "Партнер Нефть" [18:39:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:39:01]line СНО: Общий режим [18:39:01]line Чек 279 21.10.2024 18:39 [18:39:01]line Смена: 535 ФФД: 1.0 [18:39:01]line ЗНМ: 0300000104 [18:39:01]line РНМ: 0000000000091764 [18:39:01]line Версия ККМ: 001 [18:39:01]line Талоны: Топливная Карта [18:39:01]line 38286 [18:39:01]line ФМ: 0000000000871759 [18:39:01]line ФД: 166168 [18:39:01]line ФПД: 84079166967542 [18:39:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T183919&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166168&fm=84079166967542&tin=02508201610067®Number=0000000000091764&sum=0 [18:39:01]OFD Sender: Processing packet 166168 [packets to send 48, broken 47] [18:39:01]ProducePacketName [18:39:01]name=ofd_packets/00166168 [18:39:01]OFD Sender: To server: pG, [18:39:01]CommunicateWithHost lk.salyk.kg:30040 [18:39:01]ConnectInit lk.salyk.kg [18:39:01]written 0, free lines is 4095 [18:39:02]Connected sock=6 [18:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 82 82 04 01 42 CB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 9F 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 89 02 00 35 04 06 00 4C 78 34 E1 4E F6 B7 62 94 C2 B2 8A D1 2F [18:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 51 37 47 00 65 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 18 89 02 00 F4 03 04 00 45 46 16 67 B6 04 01 00 00 0B 02 A7 1A 9C 03 20 30 [18:39:02]CommunicateWithHost err = 0 [18:39:02]CheckOFDResponse [18:39:02]1017 (14) - 77093643461234 [18:39:02]1041 (16) - 0000000000871759 [18:39:02]1040 (4) - 166168 [18:39:02]1012 (4) - 21.10.2024 12:17 [18:39:02]1206 (1) - 0 [18:39:02]OFD Sender: Remove packet 166168 [18:39:02]ProducePacketName [18:39:02]name=ofd_packets/00166168 [18:39:02]NVStorageDeleteData [18:39:02]Write to MH i2c: 01 00 00 F7 7A 71 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 07 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: 01 07 00 F7 7A 00 00 00 00 00 DD 0C 61 [18:39:02]RasterBufferAndPrint [18:39:02]line [18:39:02]line [18:39:02]line [18:39:02]line [18:39:02]line [18:39:02]written 0, free lines is 3299 [18:39:02]MH_Cut [18:39:02]Write to MH i2c: D1 01 00 FE 7A 01 4A [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: D1 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: D1 01 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: D1 01 00 FE 7A 00 49 [18:39:02]Write to MH i2c: 01 00 00 FF 7A 79 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]OFD Sender: No OFD packet to send [18:39:03]*** Cut start [18:39:03]*** Partial cut [18:39:03]*** CUTSNS_PIN = 1 [18:39:03]*** CUTSNS_PIN = 0 [18:39:03]*** Brake cut motor [18:39:03]Read from MH i2c: 01 [18:39:03]MH_I2C_Read... [18:39:03]*** Stop cut motor [18:39:03]*** Cut end [18:39:03]Read from MH i2c: 01 07 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 07 00 FF 7A 00 00 00 00 00 FF 0F 8E [18:39:03]process_action close_receipt done [18:39:03]requested_data is exist [18:39:03]produce_requested_data [18:39:03]requested_item fm.sn is exist - process it [18:39:03]wFMCommunicate request_size=4 [18:39:03]MH_SAM_APDU [18:39:03]CAPDU: 80 11 00 00 [18:39:03]Write to MH i2c: E2 08 00 00 7B 80 11 00 00 00 00 00 00 F5 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:03]Read from MH i2c: E2 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 17 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 17 00 00 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4D [18:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:39:03]wFMCommunicate OK [18:39:03]requested_item fd.num is exist - process it [18:39:03]SAM_PROTO_GetFieldsCounters [18:39:03]wFMCommunicate request_size=4 [18:39:03]MH_SAM_APDU [18:39:03]CAPDU: 80 13 00 00 [18:39:03]Write to MH i2c: E2 08 00 01 7B 80 13 00 00 00 00 00 00 F8 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:03]Read from MH i2c: E2 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 62 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 62 00 01 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [18:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 18 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:03]wFMCommunicate OK [18:39:03]SAM_PROTO_GetFieldsCounters done [18:39:03]requested_item shift.num is exist - process it [18:39:03]requested_item shift.opened is exist - process it [18:39:03]req_shift_opened [18:39:03]FM_GetShiftState [18:39:03]SAM_PROTO_GetShiftState [18:39:03]wFMCommunicate request_size=4 [18:39:03]MH_SAM_APDU [18:39:03]CAPDU: 80 13 01 00 [18:39:03]Write to MH i2c: E2 08 00 02 7B 80 13 01 00 00 00 00 00 FA [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:04]Read from MH i2c: E2 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: E2 0E 00 [18:39:04]MH_I2C_Read... [18:39:04]Read from MH i2c: E2 0E 00 02 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 03 [18:39:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:39:04]wFMCommunicate OK [18:39:04]SAM_PROTO_GetShiftState done [18:39:04]FM_GetShiftState done [18:39:04]req_shift_opened done [18:39:04]requested_item shift.open_date is exist - process it [18:39:04]req_shift_open_date [18:39:04]req_shift_open_date done [18:39:04]produce_requested_data done [18:39:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166168,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:39:04]process_action_free close_receipt [18:39:04]json_value_free [18:39:04]json_value_free done [18:39:04]process_json_proto returns [18:39:04]Send response to host [18:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166168,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:39:04]free response buf [18:39:04]execute_script done [18:39:04]execute_script returns [18:39:04]free content buf [18:39:04]Sock 5.Close socket [18:39:04]Sock 5.Thread stoped [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:53]accept exits with 7 [18:41:53]New connection [18:41:53]New thread 3066776932 created [18:41:53]Thread 3066920292 joined [18:41:53]Waiting for new connection... [18:41:53] Sock 7.Parse request [18:41:53]Sock 7.Check first char [18:41:53]Sock 7.First char is OK [18:41:53]request: POST /json_proto HTTP/1.0 [18:41:53]Method: POST [18:41:53]URL: /json_proto [18:41:53]Method is POST - this is cgi request [18:41:53]url: /json_proto [18:41:53]query_string will be loaded in cgi processing [18:41:53]execute_cgi json_proto POST (null) [18:41:53]execute_cgi path=json_proto method=POST [18:41:53]POST find Content-Length [18:41:53]Host: 172.17.53.195:8080 [18:41:53]Content-Length: 769 [18:41:53]Content-Type: application/json [18:41:53] [18:41:53]POST finish read [18:41:53]Found Content-Length = 769 [18:41:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:53]execute_script... [18:41: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)220741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:53]POST & json_proto [18:41:53]process_json_proto [18:41:53]json parsed OK: [18:41:53]protocol is kg_v1.0 [18:41:53]action value=close_receipt [18:41:53]process_action close_receipt [18:41:53]cmd_close_receipt [18:41:53]MH_GetDate [18:41:53]Write to MH i2c: F0 00 00 03 7B 6D [18:41:53]Write i2c OK [18:41:53]MH_I2C_Read... [18:41:53]Read from MH i2c: F0 [18:41:53]MH_I2C_Read... [18:41:53]Read from MH i2c: F0 09 00 [18:41:53]MH_I2C_Read... [18:41:53]Read from MH i2c: F0 09 00 03 7B 00 85 A0 16 67 21 48 4A 65 30 [18:41:53]GetLastDocTimeStamp 1729535959 [18:41:53]current date 1729536133 [18:41:53]FM_GetShiftState [18:41:53]SAM_PROTO_GetShiftState [18:41:53]wFMCommunicate request_size=4 [18:41:53]MH_SAM_APDU [18:41:53]CAPDU: 80 13 01 00 [18:41:53]Write to MH i2c: E2 08 00 04 7B 80 13 01 00 00 00 00 00 FC [18:41:53]Write i2c OK [18:41:53]MH_I2C_Read... [18:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:53]Read from MH i2c: E2 [18:41:53]MH_I2C_Read... [18:41:53]Read from MH i2c: E2 0E 00 [18:41:53]MH_I2C_Read... [18:41:53]Read from MH i2c: E2 0E 00 04 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 05 [18:41:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:41:53]wFMCommunicate OK [18:41:53]SAM_PROTO_GetShiftState done [18:41:53]FM_GetShiftState done [18:41:53]opened in 1729470944 [18:41:53]opened+sec_in_day 1729557344 [18:41:53]quantity*price = 100021 [18:41:53]sum+1 = 100023 [18:41:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 280 21.10.2024 18:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166169 ФПД: 167416157731111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166169&fm=167416157731111&tin=02508201610067®Number=0000000000091764&sum=100022 [18:41:55]StoreToDocumentArchive [18:41:55]shift 535 fd 166169 [18:41:55]save to /storage/0535/doc_00166169 [18:41:55]save last doc name /storage/0535/doc_00166169 to /storage/kkm_last_doc_name [18:41:55]save OK [18:41:55]Clear old archive folders... [18:41:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:55]tlvbuf is 0163FC70 [18:41:55]SAM_PROTO_ClearQueue [18:41:55]wFMCommunicate request_size=4 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 09 00 00 [18:41:55]Write to MH i2c: E2 08 00 11 7B 80 09 00 00 00 00 00 00 FE [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 11 7B 00 90 00 00 [18:41:55]RAPDU: 90 00 [18:41:55]wFMCommunicate OK [18:41:55]SAM_PROTO_ClearQueue done [18:41:55]KKMCreateOFDPacket [18:41:55]OFDProtocolAddRootSTLVToBuf [18:41:55]FM_MakeSignedData [18:41:55]FM_MakeSignedData [18:41:55]SAM_PROTO_SignData [18:41:55]wFMCommunicate request_size=4 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 0D 01 02 [18:41:55]Write to MH i2c: E2 08 00 12 7B 80 0D 01 02 00 00 00 00 06 [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 12 7B 00 90 00 01 [18:41:55]RAPDU: 90 00 [18:41:55]wFMCommunicate OK [18:41:55]wFMCommunicate request_size=255 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 85 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 89 02 00 35 04 06 00 98 [18:41:55]Write to MH i2c: E2 02 01 13 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 85 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 89 02 00 35 04 06 00 98 00 00 F5 [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 13 7B 00 90 00 02 [18:41:55]RAPDU: 90 00 [18:41:55]wFMCommunicate OK [18:41:55]wFMCommunicate request_size=10 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 0D 02 02 05 43 9C 9C 79 27 [18:41:55]Write to MH i2c: E2 0D 00 14 7B 80 0D 02 02 05 00 43 9C 9C 79 27 00 00 2E [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 03 00 14 7B 00 90 00 03 [18:41:55]RAPDU: 90 00 [18:41:55]wFMCommunicate OK [18:41:55]wFMCommunicate request_size=4 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 0D 03 02 [18:41:55]Write to MH i2c: E2 08 00 15 7B 80 0D 03 02 00 00 00 00 0B [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 0B 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 0B 00 15 7B 00 F2 59 22 B6 2B B5 5E 1D 90 00 8A [18:41:55]RAPDU: F2 59 22 B6 2B B5 5E 1D 90 00 [18:41:55]wFMCommunicate OK [18:41:55]SAM_PROTO_SignData done [18:41:55]FM_MakeSignedData done [18:41:55]CreateOFDProtocolMessage [18:41:55]wFMCommunicate request_size=4 [18:41:55]MH_SAM_APDU [18:41:55]CAPDU: 80 11 00 00 [18:41:55]Write to MH i2c: E2 08 00 16 7B 80 11 00 00 00 00 00 00 0B [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:55]Read from MH i2c: E2 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 17 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: E2 17 00 16 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [18:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:41:55]wFMCommunicate OK [18:41:55]CreateOFDProtocolMessage done [18:41:55]OFDSenderStorePacket 166169 [18:41:55]StoreOFDPacket docnum=166169 [18:41:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 9A 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 85 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 89 02 00 35 04 06 00 98 43 9C 9C 79 27 F2 59 22 B6 2B B5 5E 1D [18:41:55]CheckFolder [18:41:55]dirname=/storage/ofd_packets [18:41:55]CheckFolder done [18:41:55]ProducePacketName [18:41:55]name=ofd_packets/00166169 [18:41:55]NVStorageSaveData ofd_packets/00166169 [18:41:55]File name is /storage/ofd_packets/00166169 [18:41:55]Write 301 bytes [18:41:55]NVStorageSaveData done [18:41:55]OFDSenderStorePacket done [18:41:55]KKMCreateOFDPacket done [18:41:55]NVStorageSaveData kkm_last_timestamp [18:41:55]File name is /storage/kkm_last_timestamp [18:41:55]Write 4 bytes [18:41:55]NVStorageSaveData done [18:41:55]ExternCall_PrintAddStr [18:41:55]wPrintStart [18:41:55]Write to MH i2c: 01 00 00 17 7B 92 [18:41:55]Write i2c OK [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: 01 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: 01 07 00 [18:41:55]MH_I2C_Read... [18:41:55]Read from MH i2c: 01 07 00 17 7B 00 00 00 00 00 FF 0F A7 [18:41:55]RasterBufferAndPrint [18:41:55]line Счет N : (1)220741 [18:41:55]line ИНН: 02508201610067 [18:41:55]line Контрольно-Кассовый Чек [18:41:55]line ПРОДАЖА [18:41:55]line ТРК (МРК, ГНК) : 14 [18:41:55]line Товар: 2710124500 [18:41:55]line Аи-95-К-5 [18:41:55]line 13.480 * 74.20 [18:41:55]line = 1000.22 [18:41:55]line НДС 12% НСП 1% [18:41:55]line > о реализуемом товаре [18:41:55]line ИТОГО: 1000.22 [18:41:55]line НСП 1% : 8.85 [18:41:55]line НДС 12% : 106.22 [18:41:55]line Наличными: 0.00 [18:41:55]line Безнал.: 1000.22 [18:41:55]line Место: АЗС № 161 "Партнер Нефть" [18:41:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:41:55]line СНО: Общий режим [18:41:55]line Чек 280 21.10.2024 18:42 [18:41:55]line Смена: 535 ФФД: 1.0 [18:41:55]line ЗНМ: 0300000104 [18:41:55]line РНМ: 0000000000091764 [18:41:55]line Версия ККМ: 001 [18:41:55]line Платежная система: Mbank [18:41:55]line ФМ: 0000000000871759 [18:41:55]line ФД: 166169 [18:41:55]line ФПД: 167416157731111 [18:41:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184213&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166169&fm=167416157731111&tin=02508201610067®Number=0000000000091764&sum=100022 [18:41:55]written 0, free lines is 4095 [18:41:55]OFD Sender: Processing packet 166169 [packets to send 48, broken 47] [18:41:55]ProducePacketName [18:41:55]name=ofd_packets/00166169 [18:41:55]OFD Sender: To server: pG, [18:41:55]CommunicateWithHost lk.salyk.kg:30040 [18:41:55]ConnectInit lk.salyk.kg [18:41:56]Connected sock=6 [18:41:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 1E 9A 07 01 75 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 85 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 19 89 02 00 35 04 06 00 98 43 9C 9C 79 27 F2 59 22 B6 2B B5 5E 1D [18:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7A A7 47 00 72 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 35 39 10 04 04 00 19 89 02 00 F4 03 04 00 F3 46 16 67 B6 04 01 00 00 65 51 A2 6B 66 C8 27 E4 [18:41:56]CommunicateWithHost err = 0 [18:41:56]CheckOFDResponse [18:41:56]1017 (14) - 77093643461234 [18:41:56]1041 (16) - 0000000000871759 [18:41:56]1040 (4) - 166169 [18:41:56]1012 (4) - 21.10.2024 12:20 [18:41:56]1206 (1) - 0 [18:41:56]OFD Sender: Remove packet 166169 [18:41:56]ProducePacketName [18:41:56]name=ofd_packets/00166169 [18:41:56]NVStorageDeleteData [18:41:56]Write to MH i2c: 01 00 00 40 7B BB [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: 01 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: 01 07 00 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: 01 07 00 40 7B 00 00 00 00 00 F4 0C C2 [18:41:56]RasterBufferAndPrint [18:41:56]line [18:41:56]line [18:41:56]line [18:41:56]line [18:41:56]line [18:41:56]written 0, free lines is 3323 [18:41:56]MH_Cut [18:41:56]Write to MH i2c: D1 01 00 47 7B 01 94 [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: D1 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: D1 01 00 [18:41:56]MH_I2C_Read... [18:41:56]Read from MH i2c: D1 01 00 47 7B 00 93 [18:41:56]Write to MH i2c: 01 00 00 48 7B C3 [18:41:56]Write i2c OK [18:41:56]MH_I2C_Read... [18:41:56]OFD Sender: No OFD packet to send [18:41:57]*** Cut start [18:41:57]*** Partial cut [18:41:57]*** CUTSNS_PIN = 1 [18:41:57]*** CUTSNS_PIN = 0 [18:41:57]*** Brake cut motor [18:41:57]Read from MH i2c: 01 [18:41:57]MH_I2C_Read... [18:41:57]*** Stop cut motor [18:41:57]*** Cut end [18:41:57]Read from MH i2c: 01 07 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: 01 07 00 48 7B 00 00 00 00 00 FF 0F D8 [18:41:57]process_action close_receipt done [18:41:57]requested_data is exist [18:41:57]produce_requested_data [18:41:57]requested_item fm.sn is exist - process it [18:41:57]wFMCommunicate request_size=4 [18:41:57]MH_SAM_APDU [18:41:57]CAPDU: 80 11 00 00 [18:41:57]Write to MH i2c: E2 08 00 49 7B 80 11 00 00 00 00 00 00 3E [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:57]Read from MH i2c: E2 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 17 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 17 00 49 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 96 [18:41:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:41:57]wFMCommunicate OK [18:41:57]requested_item fd.num is exist - process it [18:41:57]SAM_PROTO_GetFieldsCounters [18:41:57]wFMCommunicate request_size=4 [18:41:57]MH_SAM_APDU [18:41:57]CAPDU: 80 13 00 00 [18:41:57]Write to MH i2c: E2 08 00 4A 7B 80 13 00 00 00 00 00 00 41 [18:41:57]Write i2c OK [18:41:57]MH_I2C_Read... [18:41:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:57]Read from MH i2c: E2 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 62 00 [18:41:57]MH_I2C_Read... [18:41:57]Read from MH i2c: E2 62 00 4A 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [18:41:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 19 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:57]wFMCommunicate OK [18:41:57]SAM_PROTO_GetFieldsCounters done [18:41:57]requested_item shift.num is exist - process it [18:41:57]requested_item shift.opened is exist - process it [18:41:57]req_shift_opened [18:41:57]FM_GetShiftState [18:41:57]SAM_PROTO_GetShiftState [18:41:57]wFMCommunicate request_size=4 [18:41:57]MH_SAM_APDU [18:41:57]CAPDU: 80 13 01 00 [18:41:57]Write to MH i2c: E2 08 00 4B 7B 80 13 01 00 00 00 00 00 43 [18:41:58]Write i2c OK [18:41:58]MH_I2C_Read... [18:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:58]Read from MH i2c: E2 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 0E 00 [18:41:58]MH_I2C_Read... [18:41:58]Read from MH i2c: E2 0E 00 4B 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4C [18:41:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:41:58]wFMCommunicate OK [18:41:58]SAM_PROTO_GetShiftState done [18:41:58]FM_GetShiftState done [18:41:58]req_shift_opened done [18:41:58]requested_item shift.open_date is exist - process it [18:41:58]req_shift_open_date [18:41:58]req_shift_open_date done [18:41:58]produce_requested_data done [18:41:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166169,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:41:58]process_action_free close_receipt [18:41:58]json_value_free [18:41:58]json_value_free done [18:41:58]process_json_proto returns [18:41:58]Send response to host [18:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166169,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:41:58]free response buf [18:41:58]execute_script done [18:41:58]execute_script returns [18:41:58]free content buf [18:41:58]Sock 7.Close socket [18:41:58]Sock 7.Thread stoped [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:26]OFD Sender: No OFD packet to send [18:42:31]OFD Sender: No OFD packet to send [18:42:32]accept exits with 5 [18:42:32]New connection [18:42:32]New thread 3066920292 created [18:42:32]Thread 3066776932 joined [18:42:32]Waiting for new connection... [18:42:32] Sock 5.Parse request [18:42:32]Sock 5.Check first char [18:42:32]Sock 5.First char is OK [18:42:32]request: POST /json_proto HTTP/1.0 [18:42:32]Method: POST [18:42:32]URL: /json_proto [18:42:32]Method is POST - this is cgi request [18:42:32]url: /json_proto [18:42:32]query_string will be loaded in cgi processing [18:42:32]execute_cgi json_proto POST (null) [18:42:32]execute_cgi path=json_proto method=POST [18:42:32]POST find Content-Length [18:42:32]Host: 172.17.53.195:8080 [18:42:32]Content-Length: 682 [18:42:32]Content-Type: application/json [18:42:32] [18:42:32]POST finish read [18:42:32]Found Content-Length = 682 [18:42:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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:42:32]execute_script... [18: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)220740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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:42:32]POST & json_proto [18:42:32]process_json_proto [18:42:32]json parsed OK: [18:42:32]protocol is kg_v1.0 [18:42:32]action value=close_receipt [18:42:32]process_action close_receipt [18:42:32]cmd_close_receipt [18:42:32]MH_GetDate [18:42:32]Write to MH i2c: F0 00 00 4C 7B B6 [18:42:32]Write i2c OK [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: F0 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: F0 09 00 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: F0 09 00 4C 7B 00 AB A0 16 67 21 48 4A 65 9F [18:42:32]GetLastDocTimeStamp 1729536133 [18:42:32]current date 1729536171 [18:42:32]FM_GetShiftState [18:42:32]SAM_PROTO_GetShiftState [18:42:32]wFMCommunicate request_size=4 [18:42:32]MH_SAM_APDU [18:42:32]CAPDU: 80 13 01 00 [18:42:32]Write to MH i2c: E2 08 00 4D 7B 80 13 01 00 00 00 00 00 45 [18:42:32]Write i2c OK [18:42:32]MH_I2C_Read... [18:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:32]Read from MH i2c: E2 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: E2 0E 00 [18:42:32]MH_I2C_Read... [18:42:32]Read from MH i2c: E2 0E 00 4D 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 4E [18:42:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:42:32]wFMCommunicate OK [18:42:32]SAM_PROTO_GetShiftState done [18:42:32]FM_GetShiftState done [18:42:32]opened in 1729470944 [18:42:32]opened+sec_in_day 1729557344 [18:42:32]quantity*price = 200043 [18:42:32]sum+1 = 200044 [18:42:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 281 21.10.2024 18:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166170 ФПД: 92142789787802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184251&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166170&fm=92142789787802&tin=02508201610067®Number=0000000000091764&sum=200000 [18:42:33]StoreToDocumentArchive [18:42:33]shift 535 fd 166170 [18:42:33]save to /storage/0535/doc_00166170 [18:42:33]save last doc name /storage/0535/doc_00166170 to /storage/kkm_last_doc_name [18:42:33]save OK [18:42:33]Clear old archive folders... [18:42:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:33]tlvbuf is 0163FAC0 [18:42:33]SAM_PROTO_ClearQueue [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 09 00 00 [18:42:33]Write to MH i2c: E2 08 00 5A 7B 80 09 00 00 00 00 00 00 47 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 5A 7B 00 90 00 49 [18:42:33]RAPDU: 90 00 [18:42:33]wFMCommunicate OK [18:42:33]SAM_PROTO_ClearQueue done [18:42:33]KKMCreateOFDPacket [18:42:33]OFDProtocolAddRootSTLVToBuf [18:42:33]FM_MakeSignedData [18:42:33]FM_MakeSignedData [18:42:33]SAM_PROTO_SignData [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 0D 01 02 [18:42:33]Write to MH i2c: E2 08 00 5B 7B 80 0D 01 02 00 00 00 00 4F [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 5B 7B 00 90 00 4A [18:42:33]RAPDU: 90 00 [18:42:33]wFMCommunicate OK [18:42:33]wFMCommunicate request_size=255 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 AB A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 89 02 00 35 04 06 00 53 [18:42:33]Write to MH i2c: E2 02 01 5C 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 19 01 00 00 F4 03 04 00 AB A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 89 02 00 35 04 06 00 53 00 00 80 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 5C 7B 00 90 00 4B [18:42:33]RAPDU: 90 00 [18:42:33]wFMCommunicate OK [18:42:33]wFMCommunicate request_size=10 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 0D 02 02 05 CD AA 41 00 9A [18:42:33]Write to MH i2c: E2 0D 00 5D 7B 80 0D 02 02 05 00 CD AA 41 00 9A 00 00 AE [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 03 00 5D 7B 00 90 00 4C [18:42:33]RAPDU: 90 00 [18:42:33]wFMCommunicate OK [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 0D 03 02 [18:42:33]Write to MH i2c: E2 08 00 5E 7B 80 0D 03 02 00 00 00 00 54 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:33]Read from MH i2c: E2 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 0B 00 [18:42:33]MH_I2C_Read... [18:42:33]Read from MH i2c: E2 0B 00 5E 7B 00 68 54 19 C8 7B 9A A6 09 90 00 B6 [18:42:33]RAPDU: 68 54 19 C8 7B 9A A6 09 90 00 [18:42:33]wFMCommunicate OK [18:42:33]SAM_PROTO_SignData done [18:42:33]FM_MakeSignedData done [18:42:33]CreateOFDProtocolMessage [18:42:33]wFMCommunicate request_size=4 [18:42:33]MH_SAM_APDU [18:42:33]CAPDU: 80 11 00 00 [18:42:33]Write to MH i2c: E2 08 00 5F 7B 80 11 00 00 00 00 00 00 54 [18:42:33]Write i2c OK [18:42:33]MH_I2C_Read... [18:42:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:34]Read from MH i2c: E2 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 17 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: E2 17 00 5F 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [18:42:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:42:34]wFMCommunicate OK [18:42:34]CreateOFDProtocolMessage done [18:42:34]OFDSenderStorePacket 166170 [18:42:34]StoreOFDPacket docnum=166170 [18:42:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF B7 07 01 D0 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 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 19 01 00 00 F4 03 04 00 AB A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 89 02 00 35 04 06 00 53 CD AA 41 00 9A 68 54 19 C8 7B 9A A6 09 [18:42:34]CheckFolder [18:42:34]dirname=/storage/ofd_packets [18:42:34]CheckFolder done [18:42:34]ProducePacketName [18:42:34]name=ofd_packets/00166170 [18:42:34]NVStorageSaveData ofd_packets/00166170 [18:42:34]File name is /storage/ofd_packets/00166170 [18:42:34]Write 301 bytes [18:42:34]NVStorageSaveData done [18:42:34]OFDSenderStorePacket done [18:42:34]KKMCreateOFDPacket done [18:42:34]NVStorageSaveData kkm_last_timestamp [18:42:34]File name is /storage/kkm_last_timestamp [18:42:34]Write 4 bytes [18:42:34]NVStorageSaveData done [18:42:34]ExternCall_PrintAddStr [18:42:34]wPrintStart [18:42:34]Write to MH i2c: 01 00 00 60 7B DB [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 07 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 07 00 60 7B 00 00 00 00 00 FF 0F F0 [18:42:34]RasterBufferAndPrint [18:42:34]line Счет N : (1)220740 [18:42:34]line ИНН: 02508201610067 [18:42:34]line Контрольно-Кассовый Чек [18:42:34]line ПРОДАЖА [18:42:34]line ТРК (МРК, ГНК) : 34 [18:42:34]line Товар: 2710124500 [18:42:34]line Аи-95-К-5 [18:42:34]line 26.960 * 74.20 [18:42:34]line = 2000.43 [18:42:34]line НДС 12% НСП 1% [18:42:34]line > о реализуемом товаре [18:42:34]line ОКРУГЛЕНИЕ: -0.43 [18:42:34]line ИТОГО: 2000.00 [18:42:34]line Внесено: 2000.00 [18:42:34]line СДАЧА: 0.00 [18:42:34]line НСП 1% : 17.70 [18:42:34]line НДС 12% : 212.43 [18:42:34]line Наличными: 2000.00 [18:42:34]line Безнал.: 0.00 [18:42:34]line Место: АЗС № 161 "Партнер Нефть" [18:42:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:42:34]line СНО: Общий режим [18:42:34]line Чек 281 21.10.2024 18:42 [18:42:34]line Смена: 535 ФФД: 1.0 [18:42:34]line ЗНМ: 0300000104 [18:42:34]line РНМ: 0000000000091764 [18:42:34]line Версия ККМ: 001 [18:42:34]line ФМ: 0000000000871759 [18:42:34]line ФД: 166170 [18:42:34]line ФПД: 92142789787802 [18:42:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184251&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166170&fm=92142789787802&tin=02508201610067®Number=0000000000091764&sum=200000 [18:42:34]OFD Sender: Processing packet 166170 [packets to send 48, broken 47] [18:42:34]ProducePacketName [18:42:34]name=ofd_packets/00166170 [18:42:34]OFD Sender: To server: pG, [18:42:34]CommunicateWithHost lk.salyk.kg:30040 [18:42:34]ConnectInit lk.salyk.kg [18:42:34]written 0, free lines is 4095 [18:42:34]Connected sock=7 [18:42:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CF B7 07 01 D0 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 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 19 01 00 00 F4 03 04 00 AB A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 89 02 00 35 04 06 00 53 CD AA 41 00 9A 68 54 19 C8 7B 9A A6 09 [18:42:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B8 E1 47 00 95 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1A 89 02 00 F4 03 04 00 19 47 16 67 B6 04 01 00 00 2C 90 C1 54 D9 04 D9 0A [18:42:34]CommunicateWithHost err = 0 [18:42:34]CheckOFDResponse [18:42:34]1017 (14) - 77093643461234 [18:42:34]1041 (16) - 0000000000871759 [18:42:34]1040 (4) - 166170 [18:42:34]1012 (4) - 21.10.2024 12:20 [18:42:34]1206 (1) - 0 [18:42:34]OFD Sender: Remove packet 166170 [18:42:34]ProducePacketName [18:42:34]name=ofd_packets/00166170 [18:42:34]NVStorageDeleteData [18:42:34]Write to MH i2c: 01 00 00 8B 7B 06 [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 07 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: 01 07 00 8B 7B 00 00 00 00 00 DC 0C F5 [18:42:34]RasterBufferAndPrint [18:42:34]line [18:42:34]line [18:42:34]line [18:42:34]line [18:42:34]line [18:42:34]written 0, free lines is 3299 [18:42:34]MH_Cut [18:42:34]Write to MH i2c: D1 01 00 92 7B 01 DF [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: D1 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: D1 01 00 [18:42:34]MH_I2C_Read... [18:42:34]Read from MH i2c: D1 01 00 92 7B 00 DE [18:42:34]Write to MH i2c: 01 00 00 93 7B 0E [18:42:34]Write i2c OK [18:42:34]MH_I2C_Read... [18:42:35]OFD Sender: No OFD packet to send [18:42:35]*** Cut start [18:42:35]*** Partial cut [18:42:35]*** CUTSNS_PIN = 1 [18:42:35]*** CUTSNS_PIN = 0 [18:42:35]*** Brake cut motor [18:42:36]Read from MH i2c: 01 [18:42:36]MH_I2C_Read... [18:42:36]*** Stop cut motor [18:42:36]*** Cut end [18:42:36]Read from MH i2c: 01 07 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: 01 07 00 93 7B 00 00 00 00 00 FF 0F 23 [18:42:36]process_action close_receipt done [18:42:36]requested_data is exist [18:42:36]produce_requested_data [18:42:36]requested_item fm.sn is exist - process it [18:42:36]wFMCommunicate request_size=4 [18:42:36]MH_SAM_APDU [18:42:36]CAPDU: 80 11 00 00 [18:42:36]Write to MH i2c: E2 08 00 94 7B 80 11 00 00 00 00 00 00 89 [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:36]Read from MH i2c: E2 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 17 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 17 00 94 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E1 [18:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:42:36]wFMCommunicate OK [18:42:36]requested_item fd.num is exist - process it [18:42:36]SAM_PROTO_GetFieldsCounters [18:42:36]wFMCommunicate request_size=4 [18:42:36]MH_SAM_APDU [18:42:36]CAPDU: 80 13 00 00 [18:42:36]Write to MH i2c: E2 08 00 95 7B 80 13 00 00 00 00 00 00 8C [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:36]Read from MH i2c: E2 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 62 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 62 00 95 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [18: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:36]wFMCommunicate OK [18:42:36]SAM_PROTO_GetFieldsCounters done [18:42:36]requested_item shift.num is exist - process it [18:42:36]requested_item shift.opened is exist - process it [18:42:36]req_shift_opened [18:42:36]FM_GetShiftState [18:42:36]SAM_PROTO_GetShiftState [18:42:36]wFMCommunicate request_size=4 [18:42:36]MH_SAM_APDU [18:42:36]CAPDU: 80 13 01 00 [18:42:36]Write to MH i2c: E2 08 00 96 7B 80 13 01 00 00 00 00 00 8E [18:42:36]Write i2c OK [18:42:36]MH_I2C_Read... [18:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:36]Read from MH i2c: E2 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 0E 00 [18:42:36]MH_I2C_Read... [18:42:36]Read from MH i2c: E2 0E 00 96 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 97 [18:42:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:42:36]wFMCommunicate OK [18:42:36]SAM_PROTO_GetShiftState done [18:42:36]FM_GetShiftState done [18:42:36]req_shift_opened done [18:42:36]requested_item shift.open_date is exist - process it [18:42:36]req_shift_open_date [18:42:36]req_shift_open_date done [18:42:36]produce_requested_data done [18:42:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166170,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:42:36]process_action_free close_receipt [18:42:36]json_value_free [18:42:36]json_value_free done [18:42:36]process_json_proto returns [18:42:36]Send response to host [18:42:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166170,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:42:36]free response buf [18:42:36]execute_script done [18:42:36]execute_script returns [18:42:36]free content buf [18:42:36]Sock 5.Close socket [18:42:36]Sock 5.Thread stoped [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:42:55]accept exits with 6 [18:42:55]New connection [18:42:55]New thread 3066776932 created [18:42:55]Thread 3066920292 joined [18:42:55]Waiting for new connection... [18:42:55] Sock 6.Parse request [18:42:55]Sock 6.Check first char [18:42:55]Sock 6.First char is OK [18:42:55]request: POST /json_proto HTTP/1.0 [18:42:55]Method: POST [18:42:55]URL: /json_proto [18:42:55]Method is POST - this is cgi request [18:42:55]url: /json_proto [18:42:55]query_string will be loaded in cgi processing [18:42:55]execute_cgi json_proto POST (null) [18:42:55]execute_cgi path=json_proto method=POST [18:42:55]POST find Content-Length [18:42:55]Host: 172.17.53.195:8080 [18:42:55]Content-Length: 682 [18:42:55]Content-Type: application/json [18:42:55] [18:42:55]POST finish read [18:42:55]Found Content-Length = 682 [18:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:55]execute_script... [18:42: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)220742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:55]POST & json_proto [18:42:55]process_json_proto [18:42:55]json parsed OK: [18:42:55]protocol is kg_v1.0 [18:42:55]action value=close_receipt [18:42:55]process_action close_receipt [18:42:55]cmd_close_receipt [18:42:55]MH_GetDate [18:42:55]Write to MH i2c: F0 00 00 97 7B 01 [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: F0 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: F0 09 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: F0 09 00 97 7B 00 C3 A0 16 67 21 48 4A 65 02 [18:42:55]GetLastDocTimeStamp 1729536171 [18:42:55]current date 1729536195 [18:42:55]FM_GetShiftState [18:42:55]SAM_PROTO_GetShiftState [18:42:55]wFMCommunicate request_size=4 [18:42:55]MH_SAM_APDU [18:42:55]CAPDU: 80 13 01 00 [18:42:55]Write to MH i2c: E2 08 00 98 7B 80 13 01 00 00 00 00 00 90 [18:42:55]Write i2c OK [18:42:55]MH_I2C_Read... [18:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:55]Read from MH i2c: E2 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 0E 00 [18:42:55]MH_I2C_Read... [18:42:55]Read from MH i2c: E2 0E 00 98 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 99 [18:42:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:42:55]wFMCommunicate OK [18:42:55]SAM_PROTO_GetShiftState done [18:42:55]FM_GetShiftState done [18:42:55]opened in 1729470944 [18:42:55]opened+sec_in_day 1729557344 [18:42:55]quantity*price = 100015 [18:42:55]sum+1 = 100017 [18:42:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 282 21.10.2024 18:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166171 ФПД: 201767845117984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166171&fm=201767845117984&tin=02508201610067®Number=0000000000091764&sum=100000 [18:42:56]StoreToDocumentArchive [18:42:56]shift 535 fd 166171 [18:42:56]save to /storage/0535/doc_00166171 [18:42:56]save last doc name /storage/0535/doc_00166171 to /storage/kkm_last_doc_name [18:42:56]save OK [18:42:56]Clear old archive folders... [18:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:56]tlvbuf is 014D9F30 [18:42:56]SAM_PROTO_ClearQueue [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 09 00 00 [18:42:56]Write to MH i2c: E2 08 00 A5 7B 80 09 00 00 00 00 00 00 92 [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 A5 7B 00 90 00 94 [18:42:56]RAPDU: 90 00 [18:42:56]wFMCommunicate OK [18:42:56]SAM_PROTO_ClearQueue done [18:42:56]KKMCreateOFDPacket [18:42:56]OFDProtocolAddRootSTLVToBuf [18:42:56]FM_MakeSignedData [18:42:56]FM_MakeSignedData [18:42:56]SAM_PROTO_SignData [18:42:56]wFMCommunicate request_size=4 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 0D 01 02 [18:42:56]Write to MH i2c: E2 08 00 A6 7B 80 0D 01 02 00 00 00 00 9A [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:56]Read from MH i2c: E2 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 [18:42:56]MH_I2C_Read... [18:42:56]Read from MH i2c: E2 03 00 A6 7B 00 90 00 95 [18:42:56]RAPDU: 90 00 [18:42:56]wFMCommunicate OK [18:42:56]wFMCommunicate request_size=255 [18:42:56]MH_SAM_APDU [18:42:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 C3 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 89 02 00 35 04 06 00 B7 [18:42:56]Write to MH i2c: E2 02 01 A7 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 C3 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 89 02 00 35 04 06 00 B7 00 00 9B [18:42:56]Write i2c OK [18:42:56]MH_I2C_Read... [18:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:57]Read from MH i2c: E2 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 03 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 03 00 A7 7B 00 90 00 96 [18:42:57]RAPDU: 90 00 [18:42:57]wFMCommunicate OK [18:42:57]wFMCommunicate request_size=10 [18:42:57]MH_SAM_APDU [18:42:57]CAPDU: 80 0D 02 02 05 81 BC BC 40 20 [18:42:57]Write to MH i2c: E2 0D 00 A8 7B 80 0D 02 02 05 00 81 BC BC 40 20 00 00 00 [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:57]Read from MH i2c: E2 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 03 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 03 00 A8 7B 00 90 00 97 [18:42:57]RAPDU: 90 00 [18:42:57]wFMCommunicate OK [18:42:57]wFMCommunicate request_size=4 [18:42:57]MH_SAM_APDU [18:42:57]CAPDU: 80 0D 03 02 [18:42:57]Write to MH i2c: E2 08 00 A9 7B 80 0D 03 02 00 00 00 00 9F [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:57]Read from MH i2c: E2 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 0B 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 0B 00 A9 7B 00 BF 4B 32 1E C8 44 2B 96 90 00 C7 [18:42:57]RAPDU: BF 4B 32 1E C8 44 2B 96 90 00 [18:42:57]wFMCommunicate OK [18:42:57]SAM_PROTO_SignData done [18:42:57]FM_MakeSignedData done [18:42:57]CreateOFDProtocolMessage [18:42:57]wFMCommunicate request_size=4 [18:42:57]MH_SAM_APDU [18:42:57]CAPDU: 80 11 00 00 [18:42:57]Write to MH i2c: E2 08 00 AA 7B 80 11 00 00 00 00 00 00 9F [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:57]Read from MH i2c: E2 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 17 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: E2 17 00 AA 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F7 [18:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:42:57]wFMCommunicate OK [18:42:57]CreateOFDProtocolMessage done [18:42:57]OFDSenderStorePacket 166171 [18:42:57]StoreOFDPacket docnum=166171 [18:42:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD 49 07 01 1C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 C3 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 89 02 00 35 04 06 00 B7 81 BC BC 40 20 BF 4B 32 1E C8 44 2B 96 [18:42:57]CheckFolder [18:42:57]dirname=/storage/ofd_packets [18:42:57]CheckFolder done [18:42:57]ProducePacketName [18:42:57]name=ofd_packets/00166171 [18:42:57]NVStorageSaveData ofd_packets/00166171 [18:42:57]File name is /storage/ofd_packets/00166171 [18:42:57]Write 301 bytes [18:42:57]NVStorageSaveData done [18:42:57]OFDSenderStorePacket done [18:42:57]KKMCreateOFDPacket done [18:42:57]NVStorageSaveData kkm_last_timestamp [18:42:57]File name is /storage/kkm_last_timestamp [18:42:57]Write 4 bytes [18:42:57]NVStorageSaveData done [18:42:57]ExternCall_PrintAddStr [18:42:57]wPrintStart [18:42:57]Write to MH i2c: 01 00 00 AB 7B 26 [18:42:57]Write i2c OK [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: 01 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: 01 07 00 [18:42:57]MH_I2C_Read... [18:42:57]Read from MH i2c: 01 07 00 AB 7B 00 00 00 00 00 FF 0F 3B [18:42:57]RasterBufferAndPrint [18:42:57]line Счет N : (1)220742 [18:42:57]line ИНН: 02508201610067 [18:42:57]line Контрольно-Кассовый Чек [18:42:57]line ПРОДАЖА [18:42:57]line ТРК (МРК, ГНК) : 43 [18:42:57]line Товар: 2710124130 [18:42:57]line Аи-92-К-5 [18:42:57]line 14.950 * 66.90 [18:42:57]line = 1000.16 [18:42:57]line НДС 12% НСП 1% [18:42:57]line > о реализуемом товаре [18:42:57]line ОКРУГЛЕНИЕ: -0.16 [18:42:57]line ИТОГО: 1000.00 [18:42:57]line Внесено: 1000.00 [18:42:57]line СДАЧА: 0.00 [18:42:57]line НСП 1% : 8.85 [18:42:57]line НДС 12% : 106.21 [18:42:57]line Наличными: 1000.00 [18:42:57]line Безнал.: 0.00 [18:42:57]line Место: АЗС № 161 "Партнер Нефть" [18:42:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:42:57]line СНО: Общий режим [18:42:57]line Чек 282 21.10.2024 18:43 [18:42:57]line Смена: 535 ФФД: 1.0 [18:42:57]line ЗНМ: 0300000104 [18:42:57]line РНМ: 0000000000091764 [18:42:57]line Версия ККМ: 001 [18:42:57]line ФМ: 0000000000871759 [18:42:57]line ФД: 166171 [18:42:57]line ФПД: 201767845117984 [18:42:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184315&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166171&fm=201767845117984&tin=02508201610067®Number=0000000000091764&sum=100000 [18:42:57]OFD Sender: Processing packet 166171 [packets to send 48, broken 47] [18:42:57]ProducePacketName [18:42:57]name=ofd_packets/00166171 [18:42:57]OFD Sender: To server: pG, [18:42:57]CommunicateWithHost lk.salyk.kg:30040 [18:42:57]ConnectInit lk.salyk.kg [18:42:57]written 0, free lines is 4095 [18:42:57]Connected sock=9 [18: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 35 39 0F 01 00 00 CD 49 07 01 1C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 C3 A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 89 02 00 35 04 06 00 B7 81 BC BC 40 20 BF 4B 32 1E C8 44 2B 96 [18:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CF 6F 47 00 0D 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1B 89 02 00 F4 03 04 00 31 47 16 67 B6 04 01 00 00 DB 1B 08 85 D5 AF 38 C6 [18:42:58]CommunicateWithHost err = 0 [18:42:58]CheckOFDResponse [18:42:58]1017 (14) - 77093643461234 [18:42:58]1041 (16) - 0000000000871759 [18:42:58]1040 (4) - 166171 [18:42:58]1012 (4) - 21.10.2024 12:21 [18:42:58]1206 (1) - 0 [18:42:58]OFD Sender: Remove packet 166171 [18:42:58]ProducePacketName [18:42:58]name=ofd_packets/00166171 [18:42:58]NVStorageDeleteData [18:42:58]Write to MH i2c: 01 00 00 D6 7B 51 [18:42:58]Write i2c OK [18:42:58]MH_I2C_Read... [18:42:58]Read from MH i2c: 01 [18:42:58]MH_I2C_Read... [18:42:58]Read from MH i2c: 01 07 00 [18:42:58]MH_I2C_Read... [18:42:58]Read from MH i2c: 01 07 00 D6 7B 00 00 00 00 00 CB 0C 2F [18:42:58]RasterBufferAndPrint [18:42:58]line [18:42:58]line [18:42:58]line [18:42:58]line [18:42:58]line [18:42:58]written 0, free lines is 3280 [18:42:58]MH_Cut [18:42:58]Write to MH i2c: D1 01 00 DD 7B 01 2A [18:42:58]Write i2c OK [18:42:58]MH_I2C_Read... [18:42:58]Read from MH i2c: D1 [18:42:58]MH_I2C_Read... [18:42:58]Read from MH i2c: D1 01 00 [18:42:58]MH_I2C_Read... [18:42:58]Read from MH i2c: D1 01 00 DD 7B 00 29 [18:42:58]Write to MH i2c: 01 00 00 DE 7B 59 [18:42:58]Write i2c OK [18:42:58]MH_I2C_Read... [18:42:58]OFD Sender: No OFD packet to send [18:42:58]*** Cut start [18:42:58]*** Partial cut [18:42:58]*** CUTSNS_PIN = 1 [18:42:58]*** CUTSNS_PIN = 0 [18:42:59]*** Brake cut motor [18:42:59]Read from MH i2c: 01 [18:42:59]MH_I2C_Read... [18:42:59]*** Stop cut motor [18:42:59]*** Cut end [18:42:59]Read from MH i2c: 01 07 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: 01 07 00 DE 7B 00 00 00 00 00 FF 0F 6E [18:42:59]process_action close_receipt done [18:42:59]requested_data is exist [18:42:59]produce_requested_data [18:42:59]requested_item fm.sn is exist - process it [18:42:59]wFMCommunicate request_size=4 [18:42:59]MH_SAM_APDU [18:42:59]CAPDU: 80 11 00 00 [18:42:59]Write to MH i2c: E2 08 00 DF 7B 80 11 00 00 00 00 00 00 D4 [18:42:59]Write i2c OK [18:42:59]MH_I2C_Read... [18:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:59]Read from MH i2c: E2 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 17 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 17 00 DF 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2C [18:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:42:59]wFMCommunicate OK [18:42:59]requested_item fd.num is exist - process it [18:42:59]SAM_PROTO_GetFieldsCounters [18:42:59]wFMCommunicate request_size=4 [18:42:59]MH_SAM_APDU [18:42:59]CAPDU: 80 13 00 00 [18:42:59]Write to MH i2c: E2 08 00 E0 7B 80 13 00 00 00 00 00 00 D7 [18:42:59]Write i2c OK [18:42:59]MH_I2C_Read... [18:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:59]Read from MH i2c: E2 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 62 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 62 00 E0 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [18:42:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:59]wFMCommunicate OK [18:42:59]SAM_PROTO_GetFieldsCounters done [18:42:59]requested_item shift.num is exist - process it [18:42:59]requested_item shift.opened is exist - process it [18:42:59]req_shift_opened [18:42:59]FM_GetShiftState [18:42:59]SAM_PROTO_GetShiftState [18:42:59]wFMCommunicate request_size=4 [18:42:59]MH_SAM_APDU [18:42:59]CAPDU: 80 13 01 00 [18:42:59]Write to MH i2c: E2 08 00 E1 7B 80 13 01 00 00 00 00 00 D9 [18:42:59]Write i2c OK [18:42:59]MH_I2C_Read... [18:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:59]Read from MH i2c: E2 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 0E 00 [18:42:59]MH_I2C_Read... [18:42:59]Read from MH i2c: E2 0E 00 E1 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E2 [18:42:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:42:59]wFMCommunicate OK [18:42:59]SAM_PROTO_GetShiftState done [18:42:59]FM_GetShiftState done [18:42:59]req_shift_opened done [18:42:59]requested_item shift.open_date is exist - process it [18:42:59]req_shift_open_date [18:42:59]req_shift_open_date done [18:42:59]produce_requested_data done [18:42:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166171,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:42:59]process_action_free close_receipt [18:42:59]json_value_free [18:42:59]json_value_free done [18:42:59]process_json_proto returns [18:42:59]Send response to host [18:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166171,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:42:59]free response buf [18:42:59]execute_script done [18:42:59]execute_script returns [18:42:59]free content buf [18:42:59]Sock 6.Close socket [18:42:59]Sock 6.Thread stoped [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:55]accept exits with 5 [18:43:55]New connection [18:43:55]New thread 3066920292 created [18:43:55]Thread 3066776932 joined [18:43:55]Waiting for new connection... [18:43:55] Sock 5.Parse request [18:43:55]Sock 5.Check first char [18:43:55]Sock 5.First char is OK [18:43:55]request: POST /json_proto HTTP/1.0 [18:43:55]Method: POST [18:43:55]URL: /json_proto [18:43:55]Method is POST - this is cgi request [18:43:55]url: /json_proto [18:43:55]query_string will be loaded in cgi processing [18:43:55]execute_cgi json_proto POST (null) [18:43:55]execute_cgi path=json_proto method=POST [18:43:55]POST find Content-Length [18:43:55]Host: 172.17.53.195:8080 [18:43:55]Content-Length: 769 [18:43:55]Content-Type: application/json [18:43:55] [18:43:55]POST finish read [18:43:55]Found Content-Length = 769 [18:43:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:55]execute_script... [18:43:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220743", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:43:55]POST & json_proto [18:43:55]process_json_proto [18:43:55]json parsed OK: [18:43:55]protocol is kg_v1.0 [18:43:55]action value=close_receipt [18:43:55]process_action close_receipt [18:43:55]cmd_close_receipt [18:43:55]MH_GetDate [18:43:55]Write to MH i2c: F0 00 00 E2 7B 4C [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: F0 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: F0 09 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: F0 09 00 E2 7B 00 FE A0 16 67 21 48 4A 65 88 [18:43:55]GetLastDocTimeStamp 1729536195 [18:43:55]current date 1729536254 [18:43:55]FM_GetShiftState [18:43:55]SAM_PROTO_GetShiftState [18:43:55]wFMCommunicate request_size=4 [18:43:55]MH_SAM_APDU [18:43:55]CAPDU: 80 13 01 00 [18:43:55]Write to MH i2c: E2 08 00 E3 7B 80 13 01 00 00 00 00 00 DB [18:43:55]Write i2c OK [18:43:55]MH_I2C_Read... [18:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:55]Read from MH i2c: E2 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 0E 00 [18:43:55]MH_I2C_Read... [18:43:55]Read from MH i2c: E2 0E 00 E3 7B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E4 [18:43:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:43:55]wFMCommunicate OK [18:43:55]SAM_PROTO_GetShiftState done [18:43:55]FM_GetShiftState done [18:43:55]opened in 1729470944 [18:43:55]opened+sec_in_day 1729557344 [18:43:55]quantity*price = 100021 [18:43:55]sum+1 = 100023 [18:43:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 283 21.10.2024 18:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166172 ФПД: 54416421667532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166172&fm=54416421667532&tin=02508201610067®Number=0000000000091764&sum=100022 [18:43:56]StoreToDocumentArchive [18:43:56]shift 535 fd 166172 [18:43:56]save to /storage/0535/doc_00166172 [18:43:56]save last doc name /storage/0535/doc_00166172 to /storage/kkm_last_doc_name [18:43:56]save OK [18:43:56]Clear old archive folders... [18:43:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:43:56]tlvbuf is 01891EE0 [18:43:56]SAM_PROTO_ClearQueue [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 09 00 00 [18:43:56]Write to MH i2c: E2 08 00 F0 7B 80 09 00 00 00 00 00 00 DD [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 F0 7B 00 90 00 DF [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]SAM_PROTO_ClearQueue done [18:43:56]KKMCreateOFDPacket [18:43:56]OFDProtocolAddRootSTLVToBuf [18:43:56]FM_MakeSignedData [18:43:56]FM_MakeSignedData [18:43:56]SAM_PROTO_SignData [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 01 02 [18:43:56]Write to MH i2c: E2 08 00 F1 7B 80 0D 01 02 00 00 00 00 E5 [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 F1 7B 00 90 00 E0 [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]wFMCommunicate request_size=255 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FE A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 89 02 00 35 04 06 00 31 [18:43:56]Write to MH i2c: E2 02 01 F2 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FE A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 89 02 00 35 04 06 00 31 00 00 EC [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 F2 7B 00 90 00 E1 [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]wFMCommunicate request_size=10 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 02 02 05 7D CF 7B C2 CC [18:43:56]Write to MH i2c: E2 0D 00 F3 7B 80 0D 02 02 05 00 7D CF 7B C2 CC 00 00 47 [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 03 00 F3 7B 00 90 00 E2 [18:43:56]RAPDU: 90 00 [18:43:56]wFMCommunicate OK [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 0D 03 02 [18:43:56]Write to MH i2c: E2 08 00 F4 7B 80 0D 03 02 00 00 00 00 EA [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 0B 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 0B 00 F4 7B 00 1E ED 40 D2 E8 31 BA 0E 90 00 E9 [18:43:56]RAPDU: 1E ED 40 D2 E8 31 BA 0E 90 00 [18:43:56]wFMCommunicate OK [18:43:56]SAM_PROTO_SignData done [18:43:56]FM_MakeSignedData done [18:43:56]CreateOFDProtocolMessage [18:43:56]wFMCommunicate request_size=4 [18:43:56]MH_SAM_APDU [18:43:56]CAPDU: 80 11 00 00 [18:43:56]Write to MH i2c: E2 08 00 F5 7B 80 11 00 00 00 00 00 00 EA [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:56]Read from MH i2c: E2 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 17 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: E2 17 00 F5 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 42 [18:43:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:43:56]wFMCommunicate OK [18:43:56]CreateOFDProtocolMessage done [18:43:56]OFDSenderStorePacket 166172 [18:43:56]StoreOFDPacket docnum=166172 [18:43:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 1F 07 01 4F 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FE A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 89 02 00 35 04 06 00 31 7D CF 7B C2 CC 1E ED 40 D2 E8 31 BA 0E [18:43:56]CheckFolder [18:43:56]dirname=/storage/ofd_packets [18:43:56]CheckFolder done [18:43:56]ProducePacketName [18:43:56]name=ofd_packets/00166172 [18:43:56]NVStorageSaveData ofd_packets/00166172 [18:43:56]File name is /storage/ofd_packets/00166172 [18:43:56]Write 301 bytes [18:43:56]NVStorageSaveData done [18:43:56]OFDSenderStorePacket done [18:43:56]KKMCreateOFDPacket done [18:43:56]NVStorageSaveData kkm_last_timestamp [18:43:56]File name is /storage/kkm_last_timestamp [18:43:56]Write 4 bytes [18:43:56]NVStorageSaveData done [18:43:56]ExternCall_PrintAddStr [18:43:56]wPrintStart [18:43:56]Write to MH i2c: 01 00 00 F6 7B 71 [18:43:56]Write i2c OK [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: 01 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: 01 07 00 [18:43:56]MH_I2C_Read... [18:43:56]Read from MH i2c: 01 07 00 F6 7B 00 00 00 00 00 FF 0F 86 [18:43:56]RasterBufferAndPrint [18:43:56]line Счет N : (1)220743 [18:43:56]line ИНН: 02508201610067 [18:43:56]line Контрольно-Кассовый Чек [18:43:56]line ПРОДАЖА [18:43:56]line ТРК (МРК, ГНК) : 24 [18:43:56]line Товар: 2710124500 [18:43:56]line Аи-95-К-5 [18:43:56]line 13.480 * 74.20 [18:43:56]line = 1000.22 [18:43:56]line НДС 12% НСП 1% [18:43:56]line > о реализуемом товаре [18:43:56]line ИТОГО: 1000.22 [18:43:56]line НСП 1% : 8.85 [18:43:56]line НДС 12% : 106.22 [18:43:56]line Наличными: 0.00 [18:43:56]line Безнал.: 1000.22 [18:43:56]line Место: АЗС № 161 "Партнер Нефть" [18:43:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:43:56]line СНО: Общий режим [18:43:56]line Чек 283 21.10.2024 18:44 [18:43:56]line Смена: 535 ФФД: 1.0 [18:43:56]line ЗНМ: 0300000104 [18:43:56]line РНМ: 0000000000091764 [18:43:56]line Версия ККМ: 001 [18:43:56]line Платежная система: Mbank [18:43:56]line ФМ: 0000000000871759 [18:43:56]line ФД: 166172 [18:43:56]line ФПД: 54416421667532 [18:43:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184414&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166172&fm=54416421667532&tin=02508201610067®Number=0000000000091764&sum=100022 [18:43:57]OFD Sender: Processing packet 166172 [packets to send 48, broken 47] [18:43:57]ProducePacketName [18:43:57]name=ofd_packets/00166172 [18:43:57]OFD Sender: To server: pG, [18:43:57]CommunicateWithHost lk.salyk.kg:30040 [18:43:57]ConnectInit lk.salyk.kg [18:43:57]written 0, free lines is 4095 [18:43:57]Connected sock=7 [18:43:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0D 1F 07 01 4F 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FE A0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1C 89 02 00 35 04 06 00 31 7D CF 7B C2 CC 1E ED 40 D2 E8 31 BA 0E [18:43:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 14 48 47 00 AD 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 35 39 10 04 04 00 1C 89 02 00 F4 03 04 00 6C 47 16 67 B6 04 01 00 00 5D DB A7 82 ED 99 48 68 [18:43:57]CommunicateWithHost err = 0 [18:43:57]CheckOFDResponse [18:43:57]1017 (14) - 77093643461234 [18:43:57]1041 (16) - 0000000000871759 [18:43:57]1040 (4) - 166172 [18:43:57]1012 (4) - 21.10.2024 12:22 [18:43:57]1206 (1) - 0 [18:43:57]OFD Sender: Remove packet 166172 [18:43:57]ProducePacketName [18:43:57]name=ofd_packets/00166172 [18:43:57]NVStorageDeleteData [18:43:57]Write to MH i2c: 01 00 00 1F 7C 9B [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: 01 07 00 1F 7C 00 00 00 00 00 FE 0C AC [18:43:57]RasterBufferAndPrint [18:43:57]line [18:43:57]line [18:43:57]line [18:43:57]line [18:43:57]line [18:43:57]written 0, free lines is 3332 [18:43:57]MH_Cut [18:43:57]Write to MH i2c: D1 01 00 26 7C 01 74 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: D1 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: D1 01 00 [18:43:57]MH_I2C_Read... [18:43:57]Read from MH i2c: D1 01 00 26 7C 00 73 [18:43:57]Write to MH i2c: 01 00 00 27 7C A3 [18:43:57]Write i2c OK [18:43:57]MH_I2C_Read... [18:43:57]OFD Sender: No OFD packet to send [18:43:58]*** Cut start [18:43:58]*** Partial cut [18:43:58]*** CUTSNS_PIN = 1 [18:43:58]*** CUTSNS_PIN = 0 [18:43:58]*** Brake cut motor [18:43:58]Read from MH i2c: 01 [18:43:58]MH_I2C_Read... [18:43:58]*** Stop cut motor [18:43:58]*** Cut end [18:43:58]Read from MH i2c: 01 07 00 [18:43:58]MH_I2C_Read... [18:43:58]Read from MH i2c: 01 07 00 27 7C 00 00 00 00 00 FF 0F B8 [18:43:58]process_action close_receipt done [18:43:58]requested_data is exist [18:43:58]produce_requested_data [18:43:58]requested_item fm.sn is exist - process it [18:43:58]wFMCommunicate request_size=4 [18:43:58]MH_SAM_APDU [18:43:58]CAPDU: 80 11 00 00 [18:43:58]Write to MH i2c: E2 08 00 28 7C 80 11 00 00 00 00 00 00 1E [18:43:58]Write i2c OK [18:43:58]MH_I2C_Read... [18:43:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 17 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 17 00 28 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 76 [18:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:43:59]wFMCommunicate OK [18:43:59]requested_item fd.num is exist - process it [18:43:59]SAM_PROTO_GetFieldsCounters [18:43:59]wFMCommunicate request_size=4 [18:43:59]MH_SAM_APDU [18:43:59]CAPDU: 80 13 00 00 [18:43:59]Write to MH i2c: E2 08 00 29 7C 80 13 00 00 00 00 00 00 21 [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 62 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 62 00 29 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [18:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:43:59]wFMCommunicate OK [18:43:59]SAM_PROTO_GetFieldsCounters done [18:43:59]requested_item shift.num is exist - process it [18:43:59]requested_item shift.opened is exist - process it [18:43:59]req_shift_opened [18:43:59]FM_GetShiftState [18:43:59]SAM_PROTO_GetShiftState [18:43:59]wFMCommunicate request_size=4 [18:43:59]MH_SAM_APDU [18:43:59]CAPDU: 80 13 01 00 [18:43:59]Write to MH i2c: E2 08 00 2A 7C 80 13 01 00 00 00 00 00 23 [18:43:59]Write i2c OK [18:43:59]MH_I2C_Read... [18:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:43:59]Read from MH i2c: E2 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 0E 00 [18:43:59]MH_I2C_Read... [18:43:59]Read from MH i2c: E2 0E 00 2A 7C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2C [18:43:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:43:59]wFMCommunicate OK [18:43:59]SAM_PROTO_GetShiftState done [18:43:59]FM_GetShiftState done [18:43:59]req_shift_opened done [18:43:59]requested_item shift.open_date is exist - process it [18:43:59]req_shift_open_date [18:43:59]req_shift_open_date done [18:43:59]produce_requested_data done [18:43:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166172,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:43:59]process_action_free close_receipt [18:43:59]json_value_free [18:43:59]json_value_free done [18:43:59]process_json_proto returns [18:43:59]Send response to host [18:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166172,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:43:59]free response buf [18:43:59]execute_script done [18:43:59]execute_script returns [18:43:59]free content buf [18:43:59]Sock 5.Close socket [18:43:59]Sock 5.Thread stoped [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:14]accept exits with 6 [18:44:14]New connection [18:44:14]New thread 3066776932 created [18:44:14]Thread 3066920292 joined [18:44:14]Waiting for new connection... [18:44:14] Sock 6.Parse request [18:44:14]Sock 6.Check first char [18:44:14]Sock 6.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.53.195: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)220744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18: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)220744", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18: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 2B 7C 96 [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 2B 7C 00 12 A1 16 67 21 48 4A 65 E7 [18:44:14]GetLastDocTimeStamp 1729536254 [18:44:14]current date 1729536274 [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 2C 7C 80 13 01 00 00 00 00 00 25 [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 2C 7C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2E [18:44:14]RAPDU: 09 00 01 E0 A1 15 67 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 1729470944 [18:44:14]opened+sec_in_day 1729557344 [18:44:14]quantity*price = 50041 [18:44:14]sum+1 = 50042 [18:44:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 284 21.10.2024 18:44 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166173 ФПД: 78414930471612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184434&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166173&fm=78414930471612&tin=02508201610067®Number=0000000000091764&sum=50000 [18:44:15]StoreToDocumentArchive [18:44:15]shift 535 fd 166173 [18:44:15]save to /storage/0535/doc_00166173 [18:44:15]save last doc name /storage/0535/doc_00166173 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 01891A90 [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 39 7C 80 09 00 00 00 00 00 00 27 [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 39 7C 00 90 00 29 [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 3A 7C 80 0D 01 02 00 00 00 00 2F [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 3A 7C 00 90 00 2A [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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 12 A1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 89 02 00 35 04 06 00 47 [18:44:15]Write to MH i2c: E2 02 01 3B 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 12 A1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 89 02 00 35 04 06 00 47 00 00 1A [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 3B 7C 00 90 00 2B [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 51 66 13 6A BC [18:44:16]Write to MH i2c: E2 0D 00 3C 7C 80 0D 02 02 05 00 51 66 13 6A BC 00 00 2C [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 3C 7C 00 90 00 2C [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 3D 7C 80 0D 03 02 00 00 00 00 34 [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 3D 7C 00 37 34 9A EC 0C 66 0C 15 90 00 B9 [18:44:16]RAPDU: 37 34 9A EC 0C 66 0C 15 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 3E 7C 80 11 00 00 00 00 00 00 34 [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 3E 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [18:44:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:44:16]wFMCommunicate OK [18:44:16]CreateOFDProtocolMessage done [18:44:16]OFDSenderStorePacket 166173 [18:44:16]StoreOFDPacket docnum=166173 [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 35 39 0F 01 00 00 43 92 07 01 28 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 12 A1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 89 02 00 35 04 06 00 47 51 66 13 6A BC 37 34 9A EC 0C 66 0C 15 [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/00166173 [18:44:16]NVStorageSaveData ofd_packets/00166173 [18:44:16]File name is /storage/ofd_packets/00166173 [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 3F 7C BB [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 3F 7C 00 00 00 00 00 FF 0F D0 [18:44:16]RasterBufferAndPrint [18:44:16]line Счет N : (1)220744 [18:44:16]line ИНН: 02508201610067 [18:44:16]line Контрольно-Кассовый Чек [18:44:16]line ПРОДАЖА [18:44:16]line ТРК (МРК, ГНК) : 33 [18:44:16]line Товар: 2710124130 [18:44:16]line Аи-92-К-5 [18:44:16]line 7.480 * 66.90 [18:44:16]line = 500.41 [18:44:16]line НДС 12% НСП 1% [18:44:16]line > о реализуемом товаре [18:44:16]line ОКРУГЛЕНИЕ: -0.41 [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.14 [18:44:16]line Наличными: 500.00 [18:44:16]line Безнал.: 0.00 [18:44:16]line Место: АЗС № 161 "Партнер Нефть" [18:44:16]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:44:16]line СНО: Общий режим [18:44:16]line Чек 284 21.10.2024 18:44 [18:44:16]line Смена: 535 ФФД: 1.0 [18:44:16]line ЗНМ: 0300000104 [18:44:16]line РНМ: 0000000000091764 [18:44:16]line Версия ККМ: 001 [18:44:16]line ФМ: 0000000000871759 [18:44:16]line ФД: 166173 [18:44:16]line ФПД: 78414930471612 [18:44:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184434&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166173&fm=78414930471612&tin=02508201610067®Number=0000000000091764&sum=50000 [18:44:16]OFD Sender: Processing packet 166173 [packets to send 48, broken 47] [18:44:16]ProducePacketName [18:44:16]name=ofd_packets/00166173 [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]written 0, free lines is 4095 [18:44:16]Connected sock=7 [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 35 39 0F 01 00 00 43 92 07 01 28 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 12 A1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1D 89 02 00 35 04 06 00 47 51 66 13 6A BC 37 34 9A EC 0C 66 0C 15 [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 35 39 4F 00 00 00 07 26 47 00 B9 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 35 39 10 04 04 00 1D 89 02 00 F4 03 04 00 7F 47 16 67 B6 04 01 00 00 77 E3 A2 1E 33 86 F5 07 [18:44:16]CommunicateWithHost err = 0 [18:44:16]CheckOFDResponse [18:44:16]1017 (14) - 77093643461234 [18:44:16]1041 (16) - 0000000000871759 [18:44:16]1040 (4) - 166173 [18:44:16]1012 (4) - 21.10.2024 12:22 [18:44:16]1206 (1) - 0 [18:44:16]OFD Sender: Remove packet 166173 [18:44:16]ProducePacketName [18:44:16]name=ofd_packets/00166173 [18:44:16]NVStorageDeleteData [18:44:17]Write to MH i2c: 01 00 00 6A 7C E6 [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: 01 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: 01 07 00 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: 01 07 00 6A 7C 00 00 00 00 00 ED 0C E6 [18:44:17]RasterBufferAndPrint [18:44:17]line [18:44:17]line [18:44:17]line [18:44:17]line [18:44:17]line [18:44:17]written 0, free lines is 3315 [18:44:17]MH_Cut [18:44:17]Write to MH i2c: D1 01 00 71 7C 01 BF [18:44:17]Write i2c OK [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: D1 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: D1 01 00 [18:44:17]MH_I2C_Read... [18:44:17]Read from MH i2c: D1 01 00 71 7C 00 BE [18:44:17]Write to MH i2c: 01 00 00 72 7C EE [18:44:17]Write i2c OK [18:44:17]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:18]*** 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 72 7C 00 00 00 00 00 FF 0F 03 [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 73 7C 80 11 00 00 00 00 00 00 69 [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 73 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C1 [18:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 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 74 7C 80 13 00 00 00 00 00 00 6C [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 74 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [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 75 7C 80 13 01 00 00 00 00 00 6E [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 75 7C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 77 [18:44:18]RAPDU: 09 00 01 E0 A1 15 67 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":"0000000000871759","fd.num":166173,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [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":"0000000000871759","fd.num":166173,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [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 6.Close socket [18:44:18]Sock 6.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:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:31]accept exits with 5 [18:49:31]New connection [18:49:31]New thread 3066920292 created [18:49:31]Thread 3066776932 joined [18:49:31]Waiting for new connection... [18:49:31] Sock 5.Parse request [18:49:31]Sock 5.Check first char [18:49:31]Sock 5.First char is OK [18:49:31]request: POST /json_proto HTTP/1.0 [18:49:31]Method: POST [18:49:31]URL: /json_proto [18:49:31]Method is POST - this is cgi request [18:49:31]url: /json_proto [18:49:31]query_string will be loaded in cgi processing [18:49:31]execute_cgi json_proto POST (null) [18:49:31]execute_cgi path=json_proto method=POST [18:49:31]POST find Content-Length [18:49:31]Host: 172.17.53.195:8080 [18:49:31]Content-Length: 682 [18:49:31]Content-Type: application/json [18:49:31] [18:49:31]POST finish read [18:49:31]Found Content-Length = 682 [18:49:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.790, "sum" : 3999.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3999.00, "payments": [ { "type": 0, "sum" : 3999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:31]execute_script... [18:49: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)220745", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 59.790, "sum" : 3999.95, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3999.00, "payments": [ { "type": 0, "sum" : 3999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:31]POST & json_proto [18:49:31]process_json_proto [18:49:31]json parsed OK: [18:49:31]protocol is kg_v1.0 [18:49:31]action value=close_receipt [18:49:31]process_action close_receipt [18:49:31]cmd_close_receipt [18:49:31]MH_GetDate [18:49:31]Write to MH i2c: F0 00 00 76 7C E1 [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: F0 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: F0 09 00 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: F0 09 00 76 7C 00 4F A2 16 67 21 48 4A 65 70 [18:49:31]GetLastDocTimeStamp 1729536274 [18:49:31]current date 1729536591 [18:49:31]FM_GetShiftState [18:49:31]SAM_PROTO_GetShiftState [18:49:31]wFMCommunicate request_size=4 [18:49:31]MH_SAM_APDU [18:49:31]CAPDU: 80 13 01 00 [18:49:31]Write to MH i2c: E2 08 00 77 7C 80 13 01 00 00 00 00 00 70 [18:49:31]Write i2c OK [18:49:31]MH_I2C_Read... [18:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:31]Read from MH i2c: E2 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 0E 00 [18:49:31]MH_I2C_Read... [18:49:31]Read from MH i2c: E2 0E 00 77 7C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 79 [18:49:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:49:31]wFMCommunicate OK [18:49:31]SAM_PROTO_GetShiftState done [18:49:31]FM_GetShiftState done [18:49:31]opened in 1729470944 [18:49:31]opened+sec_in_day 1729557344 [18:49:31]quantity*price = 399995 [18:49:31]sum+1 = 399996 [18:49:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.95 ИТОГО: 3999.00 Внесено: 4000.00 СДАЧА: 1.00 НСП 1% : 35.40 НДС 12% : 424.77 Наличными: 3999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 285 21.10.2024 18:49 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166174 ФПД: 199345484848688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184951&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166174&fm=199345484848688&tin=02508201610067®Number=0000000000091764&sum=399900 [18:49:32]StoreToDocumentArchive [18:49:32]shift 535 fd 166174 [18:49:32]save to /storage/0535/doc_00166174 [18:49:32]save last doc name /storage/0535/doc_00166174 to /storage/kkm_last_doc_name [18:49:32]save OK [18:49:32]Clear old archive folders... [18:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:32]tlvbuf is 01891FB0 [18:49:32]SAM_PROTO_ClearQueue [18:49:32]wFMCommunicate request_size=4 [18:49:32]MH_SAM_APDU [18:49:32]CAPDU: 80 09 00 00 [18:49:32]Write to MH i2c: E2 08 00 84 7C 80 09 00 00 00 00 00 00 72 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:32]Read from MH i2c: E2 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 03 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 03 00 84 7C 00 90 00 74 [18:49:32]RAPDU: 90 00 [18:49:32]wFMCommunicate OK [18:49:32]SAM_PROTO_ClearQueue done [18:49:32]KKMCreateOFDPacket [18:49:32]OFDProtocolAddRootSTLVToBuf [18:49:32]FM_MakeSignedData [18:49:32]FM_MakeSignedData [18:49:32]SAM_PROTO_SignData [18:49:32]wFMCommunicate request_size=4 [18:49:32]MH_SAM_APDU [18:49:32]CAPDU: 80 0D 01 02 [18:49:32]Write to MH i2c: E2 08 00 85 7C 80 0D 01 02 00 00 00 00 7A [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:32]Read from MH i2c: E2 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 03 00 [18:49:32]MH_I2C_Read... [18:49:32]Read from MH i2c: E2 03 00 85 7C 00 90 00 75 [18:49:32]RAPDU: 90 00 [18:49:32]wFMCommunicate OK [18:49:32]wFMCommunicate request_size=255 [18:49:32]MH_SAM_APDU [18:49: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 8E E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4F A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 89 02 00 35 04 06 00 B5 [18:49:32]Write to MH i2c: E2 02 01 86 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4F A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 89 02 00 35 04 06 00 B5 00 00 C7 [18:49:32]Write i2c OK [18:49:32]MH_I2C_Read... [18:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:33]Read from MH i2c: E2 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 03 00 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 03 00 86 7C 00 90 00 76 [18:49:33]RAPDU: 90 00 [18:49:33]wFMCommunicate OK [18:49:33]wFMCommunicate request_size=10 [18:49:33]MH_SAM_APDU [18:49:33]CAPDU: 80 0D 02 02 05 4D BC CF DE 30 [18:49:33]Write to MH i2c: E2 0D 00 87 7C 80 0D 02 02 05 00 4D BC CF DE 30 00 00 6D [18:49:33]Write i2c OK [18:49:33]MH_I2C_Read... [18:49:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:33]Read from MH i2c: E2 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 03 00 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 03 00 87 7C 00 90 00 77 [18:49:33]RAPDU: 90 00 [18:49:33]wFMCommunicate OK [18:49:33]wFMCommunicate request_size=4 [18:49:33]MH_SAM_APDU [18:49:33]CAPDU: 80 0D 03 02 [18:49:33]Write to MH i2c: E2 08 00 88 7C 80 0D 03 02 00 00 00 00 7F [18:49:33]Write i2c OK [18:49:33]MH_I2C_Read... [18:49:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:33]Read from MH i2c: E2 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 0B 00 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 0B 00 88 7C 00 70 10 3A 30 08 33 98 AC 90 00 E9 [18:49:33]RAPDU: 70 10 3A 30 08 33 98 AC 90 00 [18:49:33]wFMCommunicate OK [18:49:33]SAM_PROTO_SignData done [18:49:33]FM_MakeSignedData done [18:49:33]CreateOFDProtocolMessage [18:49:33]wFMCommunicate request_size=4 [18:49:33]MH_SAM_APDU [18:49:33]CAPDU: 80 11 00 00 [18:49:33]Write to MH i2c: E2 08 00 89 7C 80 11 00 00 00 00 00 00 7F [18:49:33]Write i2c OK [18:49:33]MH_I2C_Read... [18:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:33]Read from MH i2c: E2 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 17 00 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: E2 17 00 89 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [18:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:49:33]wFMCommunicate OK [18:49:33]CreateOFDProtocolMessage done [18:49:33]OFDSenderStorePacket 166174 [18:49:33]StoreOFDPacket docnum=166174 [18:49:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 C6 07 01 2D 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 8E E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4F A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 89 02 00 35 04 06 00 B5 4D BC CF DE 30 70 10 3A 30 08 33 98 AC [18:49:33]CheckFolder [18:49:33]dirname=/storage/ofd_packets [18:49:33]CheckFolder done [18:49:33]ProducePacketName [18:49:33]name=ofd_packets/00166174 [18:49:33]NVStorageSaveData ofd_packets/00166174 [18:49:33]File name is /storage/ofd_packets/00166174 [18:49:33]Write 301 bytes [18:49:33]NVStorageSaveData done [18:49:33]OFDSenderStorePacket done [18:49:33]KKMCreateOFDPacket done [18:49:33]NVStorageSaveData kkm_last_timestamp [18:49:33]File name is /storage/kkm_last_timestamp [18:49:33]Write 4 bytes [18:49:33]NVStorageSaveData done [18:49:33]ExternCall_PrintAddStr [18:49:33]wPrintStart [18:49:33]Write to MH i2c: 01 00 00 8A 7C 06 [18:49:33]Write i2c OK [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: 01 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: 01 07 00 [18:49:33]MH_I2C_Read... [18:49:33]Read from MH i2c: 01 07 00 8A 7C 00 00 00 00 00 FF 0F 1B [18:49:33]RasterBufferAndPrint [18:49:33]line Счет N : (1)220745 [18:49:33]line ИНН: 02508201610067 [18:49:33]line Контрольно-Кассовый Чек [18:49:33]line ПРОДАЖА [18:49:33]line ТРК (МРК, ГНК) : 13 [18:49:33]line Товар: 2710124130 [18:49:33]line Аи-92-К-5 [18:49:33]line 59.790 * 66.90 [18:49:33]line = 3999.95 [18:49:33]line НДС 12% НСП 1% [18:49:33]line > о реализуемом товаре [18:49:33]line ОКРУГЛЕНИЕ: -0.95 [18:49:33]line ИТОГО: 3999.00 [18:49:33]line Внесено: 4000.00 [18:49:33]line СДАЧА: 1.00 [18:49:33]line НСП 1% : 35.40 [18:49:33]line НДС 12% : 424.77 [18:49:33]line Наличными: 3999.00 [18:49:33]line Безнал.: 0.00 [18:49:33]line Место: АЗС № 161 "Партнер Нефть" [18:49:33]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:49:33]line СНО: Общий режим [18:49:33]line Чек 285 21.10.2024 18:49 [18:49:33]line Смена: 535 ФФД: 1.0 [18:49:33]line ЗНМ: 0300000104 [18:49:33]line РНМ: 0000000000091764 [18:49:33]line Версия ККМ: 001 [18:49:33]line ФМ: 0000000000871759 [18:49:33]line ФД: 166174 [18:49:33]line ФПД: 199345484848688 [18:49:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T184951&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166174&fm=199345484848688&tin=02508201610067®Number=0000000000091764&sum=399900 [18:49:33]OFD Sender: Processing packet 166174 [packets to send 48, broken 47] [18:49:33]ProducePacketName [18:49:33]name=ofd_packets/00166174 [18:49:33]OFD Sender: To server: pG, [18:49:33]CommunicateWithHost lk.salyk.kg:30040 [18:49:33]ConnectInit lk.salyk.kg [18:49:33]written 0, free lines is 4095 [18:49:33]Connected sock=7 [18:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 39 C6 07 01 2D 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 8E E9 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7B 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED A5 00 00 00 00 07 04 06 00 1C 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 4F A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 89 02 00 35 04 06 00 B5 4D BC CF DE 30 70 10 3A 30 08 33 98 AC [18:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 A8 47 00 9B ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1E 89 02 00 F4 03 04 00 BC 48 16 67 B6 04 01 00 00 B2 EF CE 47 05 58 F5 58 [18:49:33]CommunicateWithHost err = 0 [18:49:33]CheckOFDResponse [18:49:33]1017 (14) - 77093643461234 [18:49:33]1041 (16) - 0000000000871759 [18:49:33]1040 (4) - 166174 [18:49:33]1012 (4) - 21.10.2024 12:27 [18:49:33]1206 (1) - 0 [18:49:33]OFD Sender: Remove packet 166174 [18:49:33]ProducePacketName [18:49:33]name=ofd_packets/00166174 [18:49:33]NVStorageDeleteData [18:49:34]Write to MH i2c: 01 00 00 B5 7C 31 [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: 01 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: 01 07 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: 01 07 00 B5 7C 00 00 00 00 00 DD 0C 21 [18:49:34]RasterBufferAndPrint [18:49:34]line [18:49:34]line [18:49:34]line [18:49:34]line [18:49:34]line [18:49:34]written 0, free lines is 3298 [18:49:34]MH_Cut [18:49:34]Write to MH i2c: D1 01 00 BC 7C 01 0A [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: D1 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: D1 01 00 [18:49:34]MH_I2C_Read... [18:49:34]Read from MH i2c: D1 01 00 BC 7C 00 09 [18:49:34]Write to MH i2c: 01 00 00 BD 7C 39 [18:49:34]Write i2c OK [18:49:34]MH_I2C_Read... [18:49:34]OFD Sender: No OFD packet to send [18:49:34]*** Cut start [18:49:34]*** Partial cut [18:49:34]*** CUTSNS_PIN = 1 [18:49:34]*** CUTSNS_PIN = 0 [18:49:35]*** Brake cut motor [18:49:35]Read from MH i2c: 01 [18:49:35]MH_I2C_Read... [18:49:35]*** Stop cut motor [18:49:35]*** Cut end [18:49:35]Read from MH i2c: 01 07 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: 01 07 00 BD 7C 00 00 00 00 00 FF 0F 4E [18:49:35]process_action close_receipt done [18:49:35]requested_data is exist [18:49:35]produce_requested_data [18:49:35]requested_item fm.sn is exist - process it [18:49:35]wFMCommunicate request_size=4 [18:49:35]MH_SAM_APDU [18:49:35]CAPDU: 80 11 00 00 [18:49:35]Write to MH i2c: E2 08 00 BE 7C 80 11 00 00 00 00 00 00 B4 [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:35]Read from MH i2c: E2 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 17 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 17 00 BE 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0C [18:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:49:35]wFMCommunicate OK [18:49:35]requested_item fd.num is exist - process it [18:49:35]SAM_PROTO_GetFieldsCounters [18:49:35]wFMCommunicate request_size=4 [18:49:35]MH_SAM_APDU [18:49:35]CAPDU: 80 13 00 00 [18:49:35]Write to MH i2c: E2 08 00 BF 7C 80 13 00 00 00 00 00 00 B7 [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:35]Read from MH i2c: E2 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 62 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 62 00 BF 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [18:49:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:35]wFMCommunicate OK [18:49:35]SAM_PROTO_GetFieldsCounters done [18:49:35]requested_item shift.num is exist - process it [18:49:35]requested_item shift.opened is exist - process it [18:49:35]req_shift_opened [18:49:35]FM_GetShiftState [18:49:35]SAM_PROTO_GetShiftState [18:49:35]wFMCommunicate request_size=4 [18:49:35]MH_SAM_APDU [18:49:35]CAPDU: 80 13 01 00 [18:49:35]Write to MH i2c: E2 08 00 C0 7C 80 13 01 00 00 00 00 00 B9 [18:49:35]Write i2c OK [18:49:35]MH_I2C_Read... [18:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:35]Read from MH i2c: E2 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 0E 00 [18:49:35]MH_I2C_Read... [18:49:35]Read from MH i2c: E2 0E 00 C0 7C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C2 [18:49:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:49:35]wFMCommunicate OK [18:49:35]SAM_PROTO_GetShiftState done [18:49:35]FM_GetShiftState done [18:49:35]req_shift_opened done [18:49:35]requested_item shift.open_date is exist - process it [18:49:35]req_shift_open_date [18:49:35]req_shift_open_date done [18:49:35]produce_requested_data done [18:49:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166174,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:49:35]process_action_free close_receipt [18:49:35]json_value_free [18:49:35]json_value_free done [18:49:35]process_json_proto returns [18:49:35]Send response to host [18:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166174,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:49:35]free response buf [18:49:35]execute_script done [18:49:35]execute_script returns [18:49:35]free content buf [18:49:35]Sock 5.Close socket [18:49:35]Sock 5.Thread stoped [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:48]accept exits with 6 [18:49:48]New connection [18:49:48]New thread 3066776932 created [18:49:48]Thread 3066920292 joined [18:49:48]Waiting for new connection... [18:49:48] Sock 6.Parse request [18:49:48]Sock 6.Check first char [18:49:48]Sock 6.First char is OK [18:49:48]request: POST /json_proto HTTP/1.0 [18:49:48]Method: POST [18:49:48]URL: /json_proto [18:49:48]Method is POST - this is cgi request [18:49:48]url: /json_proto [18:49:48]query_string will be loaded in cgi processing [18:49:48]execute_cgi json_proto POST (null) [18:49:48]execute_cgi path=json_proto method=POST [18:49:48]POST find Content-Length [18:49:48]Host: 172.17.53.195:8080 [18:49:48]Content-Length: 674 [18:49:48]Content-Type: application/json [18:49:48] [18:49:48]POST finish read [18:49:48]Found Content-Length = 674 [18:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:48]execute_script... [18: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)220746", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:48]POST & json_proto [18:49:48]process_json_proto [18:49:48]json parsed OK: [18:49:48]protocol is kg_v1.0 [18:49:48]action value=close_receipt [18:49:48]process_action close_receipt [18:49:48]cmd_close_receipt [18:49:48]MH_GetDate [18:49:48]Write to MH i2c: F0 00 00 C1 7C 2C [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: F0 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: F0 09 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: F0 09 00 C1 7C 00 60 A2 16 67 21 48 4A 65 CC [18:49:48]GetLastDocTimeStamp 1729536591 [18:49:48]current date 1729536608 [18:49:48]FM_GetShiftState [18:49:48]SAM_PROTO_GetShiftState [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 13 01 00 [18:49:48]Write to MH i2c: E2 08 00 C2 7C 80 13 01 00 00 00 00 00 BB [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0E 00 C2 7C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C4 [18:49:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_GetShiftState done [18:49:48]FM_GetShiftState done [18:49:48]opened in 1729470944 [18:49:48]opened+sec_in_day 1729557344 [18:49:48]quantity*price = 50063 [18:49:48]sum+1 = 50064 [18:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 286 21.10.2024 18:50 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166175 ФПД: 34665183070202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185008&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166175&fm=34665183070202&tin=02508201610067®Number=0000000000091764&sum=50000 [18:49:49]StoreToDocumentArchive [18:49:49]shift 535 fd 166175 [18:49:49]save to /storage/0535/doc_00166175 [18:49:49]save last doc name /storage/0535/doc_00166175 to /storage/kkm_last_doc_name [18:49:49]save OK [18:49:49]Clear old archive folders... [18:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:49:49]tlvbuf is 014BCF10 [18:49:49]SAM_PROTO_ClearQueue [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 09 00 00 [18:49:49]Write to MH i2c: E2 08 00 CF 7C 80 09 00 00 00 00 00 00 BD [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 CF 7C 00 90 00 BF [18:49:49]RAPDU: 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_ClearQueue done [18:49:49]KKMCreateOFDPacket [18:49:49]OFDProtocolAddRootSTLVToBuf [18:49:49]FM_MakeSignedData [18:49:49]FM_MakeSignedData [18:49:49]SAM_PROTO_SignData [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 0D 01 02 [18:49:49]Write to MH i2c: E2 08 00 D0 7C 80 0D 01 02 00 00 00 00 C5 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 03 00 D0 7C 00 90 00 C0 [18:49:49]RAPDU: 90 00 [18:49:49]wFMCommunicate OK [18:49:49]wFMCommunicate request_size=255 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 01 00 00 F4 03 04 00 60 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 89 02 00 35 04 06 00 1F 87 1D EC [18:49:49]Write to MH i2c: E2 02 01 D1 7C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1E 01 00 00 F4 03 04 00 60 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 89 02 00 35 04 06 00 1F 87 1D EC 00 00 E9 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:50]Read from MH i2c: E2 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 D1 7C 00 90 00 C1 [18:49:50]RAPDU: 90 00 [18:49:50]wFMCommunicate OK [18:49:50]wFMCommunicate request_size=7 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 0D 02 02 02 47 FA [18:49:50]Write to MH i2c: E2 0A 00 D2 7C 80 0D 02 02 02 00 47 FA 00 00 0D [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:50]Read from MH i2c: E2 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 03 00 D2 7C 00 90 00 C2 [18:49:50]RAPDU: 90 00 [18:49:50]wFMCommunicate OK [18:49:50]wFMCommunicate request_size=4 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 0D 03 02 [18:49:50]Write to MH i2c: E2 08 00 D3 7C 80 0D 03 02 00 00 00 00 CA [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:50]Read from MH i2c: E2 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 0B 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 0B 00 D3 7C 00 51 E9 03 7C A4 DD EA A7 90 00 96 [18:49:50]RAPDU: 51 E9 03 7C A4 DD EA A7 90 00 [18:49:50]wFMCommunicate OK [18:49:50]SAM_PROTO_SignData done [18:49:50]FM_MakeSignedData done [18:49:50]CreateOFDProtocolMessage [18:49:50]wFMCommunicate request_size=4 [18:49:50]MH_SAM_APDU [18:49:50]CAPDU: 80 11 00 00 [18:49:50]Write to MH i2c: E2 08 00 D4 7C 80 11 00 00 00 00 00 00 CA [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:50]Read from MH i2c: E2 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 17 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: E2 17 00 D4 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [18:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:49:50]wFMCommunicate OK [18:49:50]CreateOFDProtocolMessage done [18:49:50]OFDSenderStorePacket 166175 [18:49:50]StoreOFDPacket docnum=166175 [18:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 46 B6 04 01 02 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 60 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 89 02 00 35 04 06 00 1F 87 1D EC 47 FA 51 E9 03 7C A4 DD EA A7 [18:49:50]CheckFolder [18:49:50]dirname=/storage/ofd_packets [18:49:50]CheckFolder done [18:49:50]ProducePacketName [18:49:50]name=ofd_packets/00166175 [18:49:50]NVStorageSaveData ofd_packets/00166175 [18:49:50]File name is /storage/ofd_packets/00166175 [18:49:50]Write 298 bytes [18:49:50]NVStorageSaveData done [18:49:50]OFDSenderStorePacket done [18:49:50]KKMCreateOFDPacket done [18:49:50]NVStorageSaveData kkm_last_timestamp [18:49:50]File name is /storage/kkm_last_timestamp [18:49:50]Write 4 bytes [18:49:50]NVStorageSaveData done [18:49:50]ExternCall_PrintAddStr [18:49:50]wPrintStart [18:49:50]Write to MH i2c: 01 00 00 D5 7C 51 [18:49:50]Write i2c OK [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: 01 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: 01 07 00 [18:49:50]MH_I2C_Read... [18:49:50]Read from MH i2c: 01 07 00 D5 7C 00 00 00 00 00 FF 0F 66 [18:49:50]RasterBufferAndPrint [18:49:50]line Счет N : (1)220746 [18:49:50]line ИНН: 02508201610067 [18:49:50]line Контрольно-Кассовый Чек [18:49:50]line ПРОДАЖА [18:49:50]line ТРК (МРК, ГНК) : 41 [18:49:50]line Товар: 2710194210 [18:49:50]line ДТ-К-5 [18:49:50]line 6.570 * 76.20 [18:49:50]line = 500.63 [18:49:50]line НДС 12% НСП 1% [18:49:50]line > о реализуемом товаре [18:49:50]line ОКРУГЛЕНИЕ: -0.63 [18:49:50]line ИТОГО: 500.00 [18:49:50]line Внесено: 500.00 [18:49:50]line СДАЧА: 0.00 [18:49:50]line НСП 1% : 4.43 [18:49:50]line НДС 12% : 53.16 [18:49:50]line Наличными: 500.00 [18:49:50]line Безнал.: 0.00 [18:49:50]line Место: АЗС № 161 "Партнер Нефть" [18:49:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:49:50]line СНО: Общий режим [18:49:50]line Чек 286 21.10.2024 18:50 [18:49:50]line Смена: 535 ФФД: 1.0 [18:49:50]line ЗНМ: 0300000104 [18:49:50]line РНМ: 0000000000091764 [18:49:50]line Версия ККМ: 001 [18:49:50]line ФМ: 0000000000871759 [18:49:50]line ФД: 166175 [18:49:50]line ФПД: 34665183070202 [18:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185008&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166175&fm=34665183070202&tin=02508201610067®Number=0000000000091764&sum=50000 [18:49:50]OFD Sender: Processing packet 166175 [packets to send 48, broken 47] [18:49:50]ProducePacketName [18:49:50]name=ofd_packets/00166175 [18:49:50]OFD Sender: To server: pG, [18:49:50]CommunicateWithHost lk.salyk.kg:30040 [18:49:50]ConnectInit lk.salyk.kg [18:49:50]written 0, free lines is 4095 [18:49:50]Connected sock=7 [18: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 35 39 0C 01 00 00 46 B6 04 01 02 46 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 60 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 89 02 00 35 04 06 00 1F 87 1D EC 47 FA 51 E9 03 7C A4 DD EA A7 [18: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 35 39 4F 00 00 00 E6 04 47 00 82 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 1F 89 02 00 F4 03 04 00 CD 48 16 67 B6 04 01 00 00 4C 85 BE CB 01 2A 01 42 [18:49:50]CommunicateWithHost err = 0 [18:49:50]CheckOFDResponse [18:49:50]1017 (14) - 77093643461234 [18:49:50]1041 (16) - 0000000000871759 [18:49:50]1040 (4) - 166175 [18:49:50]1012 (4) - 21.10.2024 12:27 [18:49:50]1206 (1) - 0 [18:49:50]OFD Sender: Remove packet 166175 [18:49:50]ProducePacketName [18:49:50]name=ofd_packets/00166175 [18:49:50]NVStorageDeleteData [18:49:51]Write to MH i2c: 01 00 00 00 7D 7D [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: 01 07 00 00 7D 00 00 00 00 00 CB 0C 5B [18:49:51]RasterBufferAndPrint [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]line [18:49:51]written 0, free lines is 3281 [18:49:51]MH_Cut [18:49:51]Write to MH i2c: D1 01 00 07 7D 01 56 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 01 00 [18:49:51]MH_I2C_Read... [18:49:51]Read from MH i2c: D1 01 00 07 7D 00 55 [18:49:51]Write to MH i2c: 01 00 00 08 7D 85 [18:49:51]Write i2c OK [18:49:51]MH_I2C_Read... [18:49:51]OFD Sender: No OFD packet to send [18:49:51]*** Cut start [18:49:51]*** Partial cut [18:49:51]*** CUTSNS_PIN = 1 [18:49:51]*** CUTSNS_PIN = 0 [18:49:52]*** Brake cut motor [18:49:52]Read from MH i2c: 01 [18:49:52]MH_I2C_Read... [18:49:52]*** Stop cut motor [18:49:52]*** Cut end [18:49:52]Read from MH i2c: 01 07 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: 01 07 00 08 7D 00 00 00 00 00 FF 0F 9A [18:49:52]process_action close_receipt done [18:49:52]requested_data is exist [18:49:52]produce_requested_data [18:49:52]requested_item fm.sn is exist - process it [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 11 00 00 [18:49:52]Write to MH i2c: E2 08 00 09 7D 80 11 00 00 00 00 00 00 00 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 17 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 17 00 09 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [18:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:49:52]wFMCommunicate OK [18:49:52]requested_item fd.num is exist - process it [18:49:52]SAM_PROTO_GetFieldsCounters [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 13 00 00 [18:49:52]Write to MH i2c: E2 08 00 0A 7D 80 13 00 00 00 00 00 00 03 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 62 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 62 00 0A 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 4B [18: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 1F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:52]wFMCommunicate OK [18:49:52]SAM_PROTO_GetFieldsCounters done [18:49:52]requested_item shift.num is exist - process it [18:49:52]requested_item shift.opened is exist - process it [18:49:52]req_shift_opened [18:49:52]FM_GetShiftState [18:49:52]SAM_PROTO_GetShiftState [18:49:52]wFMCommunicate request_size=4 [18:49:52]MH_SAM_APDU [18:49:52]CAPDU: 80 13 01 00 [18:49:52]Write to MH i2c: E2 08 00 0B 7D 80 13 01 00 00 00 00 00 05 [18:49:52]Write i2c OK [18:49:52]MH_I2C_Read... [18:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:52]Read from MH i2c: E2 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 0E 00 [18:49:52]MH_I2C_Read... [18:49:52]Read from MH i2c: E2 0E 00 0B 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0E [18:49:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:49:52]wFMCommunicate OK [18:49:52]SAM_PROTO_GetShiftState done [18:49:52]FM_GetShiftState done [18:49:52]req_shift_opened done [18:49:52]requested_item shift.open_date is exist - process it [18:49:52]req_shift_open_date [18:49:52]req_shift_open_date done [18:49:52]produce_requested_data done [18:49:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166175,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:49:52]process_action_free close_receipt [18:49:52]json_value_free [18:49:52]json_value_free done [18:49:52]process_json_proto returns [18:49:52]Send response to host [18:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166175,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:49:52]free response buf [18:49:52]execute_script done [18:49:52]execute_script returns [18:49:52]free content buf [18:49:52]Sock 6.Close socket [18:49:52]Sock 6.Thread stoped [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:10]accept exits with 5 [18:51:10]New connection [18:51:10]New thread 3066920292 created [18:51:10]Thread 3066776932 joined [18:51:10]Waiting for new connection... [18:51:10] Sock 5.Parse request [18:51:10]Sock 5.Check first char [18:51:10]Sock 5.First char is OK [18:51:10]request: POST /json_proto HTTP/1.0 [18:51:10]Method: POST [18:51:10]URL: /json_proto [18:51:10]Method is POST - this is cgi request [18:51:10]url: /json_proto [18:51:10]query_string will be loaded in cgi processing [18:51:10]execute_cgi json_proto POST (null) [18:51:10]execute_cgi path=json_proto method=POST [18:51:10]POST find Content-Length [18:51:10]Host: 172.17.53.195:8080 [18:51:10]Content-Length: 677 [18:51:10]Content-Type: application/json [18:51:10] [18:51:10]POST finish read [18:51:10]Found Content-Length = 677 [18:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:10]execute_script... [18:51: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)220747", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:51:10]POST & json_proto [18:51:10]process_json_proto [18:51:10]json parsed OK: [18:51:10]protocol is kg_v1.0 [18:51:10]action value=close_receipt [18:51:10]process_action close_receipt [18:51:10]cmd_close_receipt [18:51:10]MH_GetDate [18:51:10]Write to MH i2c: F0 00 00 0C 7D 78 [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: F0 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: F0 09 00 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: F0 09 00 0C 7D 00 B1 A2 16 67 21 48 4A 65 69 [18:51:10]GetLastDocTimeStamp 1729536608 [18:51:10]current date 1729536689 [18:51:10]FM_GetShiftState [18:51:10]SAM_PROTO_GetShiftState [18:51:10]wFMCommunicate request_size=4 [18:51:10]MH_SAM_APDU [18:51:10]CAPDU: 80 13 01 00 [18:51:10]Write to MH i2c: E2 08 00 0D 7D 80 13 01 00 00 00 00 00 07 [18:51:10]Write i2c OK [18:51:10]MH_I2C_Read... [18:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:10]Read from MH i2c: E2 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: E2 0E 00 [18:51:10]MH_I2C_Read... [18:51:10]Read from MH i2c: E2 0E 00 0D 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 10 [18:51:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:51:10]wFMCommunicate OK [18:51:10]SAM_PROTO_GetShiftState done [18:51:10]FM_GetShiftState done [18:51:10]opened in 1729470944 [18:51:10]opened+sec_in_day 1729557344 [18:51:10]quantity*price = 50041 [18:51:10]sum+1 = 50042 [18:51:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 287 21.10.2024 18:51 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166176 ФПД: 220536219668253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166176&fm=220536219668253&tin=02508201610067®Number=0000000000091764&sum=50000 [18:51:11]StoreToDocumentArchive [18:51:11]shift 535 fd 166176 [18:51:11]save to /storage/0535/doc_00166176 [18:51:11]save last doc name /storage/0535/doc_00166176 to /storage/kkm_last_doc_name [18:51:11]save OK [18:51:11]Clear old archive folders... [18:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:11]tlvbuf is 018919B0 [18:51:11]SAM_PROTO_ClearQueue [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 09 00 00 [18:51:11]Write to MH i2c: E2 08 00 1A 7D 80 09 00 00 00 00 00 00 09 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 1A 7D 00 90 00 0B [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]SAM_PROTO_ClearQueue done [18:51:11]KKMCreateOFDPacket [18:51:11]OFDProtocolAddRootSTLVToBuf [18:51:11]FM_MakeSignedData [18:51:11]FM_MakeSignedData [18:51:11]SAM_PROTO_SignData [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 01 02 [18:51:11]Write to MH i2c: E2 08 00 1B 7D 80 0D 01 02 00 00 00 00 11 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]OFD Sender: No OFD packet to send [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 1B 7D 00 90 00 0C [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=255 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B2 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 89 02 00 35 04 06 00 C8 [18:51:11]Write to MH i2c: E2 02 01 1C 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B2 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 89 02 00 35 04 06 00 C8 00 00 24 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 1C 7D 00 90 00 0D [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=10 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 02 02 05 93 97 08 8F 1D [18:51:11]Write to MH i2c: E2 0D 00 1D 7D 80 0D 02 02 05 00 93 97 08 8F 1D 00 00 FC [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 03 00 1D 7D 00 90 00 0E [18:51:11]RAPDU: 90 00 [18:51:11]wFMCommunicate OK [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 0D 03 02 [18:51:11]Write to MH i2c: E2 08 00 1E 7D 80 0D 03 02 00 00 00 00 16 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:11]Read from MH i2c: E2 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 0B 00 [18:51:11]MH_I2C_Read... [18:51:11]Read from MH i2c: E2 0B 00 1E 7D 00 96 90 29 EA A3 AA 45 BF 90 00 A1 [18:51:11]RAPDU: 96 90 29 EA A3 AA 45 BF 90 00 [18:51:11]wFMCommunicate OK [18:51:11]SAM_PROTO_SignData done [18:51:11]FM_MakeSignedData done [18:51:11]CreateOFDProtocolMessage [18:51:11]wFMCommunicate request_size=4 [18:51:11]MH_SAM_APDU [18:51:11]CAPDU: 80 11 00 00 [18:51:11]Write to MH i2c: E2 08 00 1F 7D 80 11 00 00 00 00 00 00 16 [18:51:11]Write i2c OK [18:51:11]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 17 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 17 00 1F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [18:51:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:51:12]wFMCommunicate OK [18:51:12]CreateOFDProtocolMessage done [18:51:12]OFDSenderStorePacket 166176 [18:51:12]StoreOFDPacket docnum=166176 [18:51:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 87 E2 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B2 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 89 02 00 35 04 06 00 C8 93 97 08 8F 1D 96 90 29 EA A3 AA 45 BF [18:51:12]CheckFolder [18:51:12]dirname=/storage/ofd_packets [18:51:12]CheckFolder done [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00166176 [18:51:12]NVStorageSaveData ofd_packets/00166176 [18:51:12]File name is /storage/ofd_packets/00166176 [18:51:12]Write 301 bytes [18:51:12]NVStorageSaveData done [18:51:12]OFDSenderStorePacket done [18:51:12]KKMCreateOFDPacket done [18:51:12]NVStorageSaveData kkm_last_timestamp [18:51:12]File name is /storage/kkm_last_timestamp [18:51:12]Write 4 bytes [18:51:12]NVStorageSaveData done [18:51:12]ExternCall_PrintAddStr [18:51:12]wPrintStart [18:51:12]Write to MH i2c: 01 00 00 20 7D 9D [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 20 7D 00 00 00 00 00 FF 0F B2 [18:51:12]RasterBufferAndPrint [18:51:12]line Счет N : (1)220747 [18:51:12]line ИНН: 02508201610067 [18:51:12]line Контрольно-Кассовый Чек [18:51:12]line ПРОДАЖА [18:51:12]line ТРК (МРК, ГНК) : 13 [18:51:12]line Товар: 2710124130 [18:51:12]line Аи-92-К-5 [18:51:12]line 7.480 * 66.90 [18:51:12]line = 500.41 [18:51:12]line НДС 12% НСП 1% [18:51:12]line > о реализуемом товаре [18:51:12]line ОКРУГЛЕНИЕ: -0.41 [18:51:12]line ИТОГО: 500.00 [18:51:12]line Внесено: 500.00 [18:51:12]line СДАЧА: 0.00 [18:51:12]line НСП 1% : 4.43 [18:51:12]line НДС 12% : 53.14 [18:51:12]line Наличными: 500.00 [18:51:12]line Безнал.: 0.00 [18:51:12]line Место: АЗС № 161 "Партнер Нефть" [18:51:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:51:12]line СНО: Общий режим [18:51:12]line Чек 287 21.10.2024 18:51 [18:51:12]line Смена: 535 ФФД: 1.0 [18:51:12]line ЗНМ: 0300000104 [18:51:12]line РНМ: 0000000000091764 [18:51:12]line Версия ККМ: 001 [18:51:12]line ФМ: 0000000000871759 [18:51:12]line ФД: 166176 [18:51:12]line ФПД: 220536219668253 [18:51:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185130&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166176&fm=220536219668253&tin=02508201610067®Number=0000000000091764&sum=50000 [18:51:12]OFD Sender: Processing packet 166176 [packets to send 48, broken 47] [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00166176 [18:51:12]OFD Sender: To server: pG, [18:51:12]CommunicateWithHost lk.salyk.kg:30040 [18:51:12]ConnectInit lk.salyk.kg [18:51:12]written 0, free lines is 4095 [18:51:12]Connected sock=7 [18:51:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 87 E2 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 B2 A2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 89 02 00 35 04 06 00 C8 93 97 08 8F 1D 96 90 29 EA A3 AA 45 BF [18:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 25 70 47 00 CD D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 20 89 02 00 F4 03 04 00 1F 49 16 67 B6 04 01 00 00 34 99 E8 0D 50 F3 D4 54 [18:51:12]CommunicateWithHost err = 0 [18:51:12]CheckOFDResponse [18:51:12]1017 (14) - 77093643461234 [18:51:12]1041 (16) - 0000000000871759 [18:51:12]1040 (4) - 166176 [18:51:12]1012 (4) - 21.10.2024 12:29 [18:51:12]1206 (1) - 0 [18:51:12]OFD Sender: Remove packet 166176 [18:51:12]ProducePacketName [18:51:12]name=ofd_packets/00166176 [18:51:12]NVStorageDeleteData [18:51:12]Write to MH i2c: 01 00 00 4B 7D C8 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: 01 07 00 4B 7D 00 00 00 00 00 D9 0C B4 [18:51:12]RasterBufferAndPrint [18:51:12]line [18:51:12]line [18:51:12]line [18:51:12]line [18:51:12]line [18:51:12]written 0, free lines is 3299 [18:51:12]MH_Cut [18:51:12]Write to MH i2c: D1 01 00 52 7D 01 A1 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: D1 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: D1 01 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: D1 01 00 52 7D 00 A0 [18:51:12]Write to MH i2c: 01 00 00 53 7D D0 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:13]OFD Sender: No OFD packet to send [18:51:13]*** Cut start [18:51:13]*** Partial cut [18:51:13]*** CUTSNS_PIN = 1 [18:51:13]*** CUTSNS_PIN = 0 [18:51:13]*** Brake cut motor [18:51:14]Read from MH i2c: 01 [18:51:14]MH_I2C_Read... [18:51:14]*** Stop cut motor [18:51:14]*** Cut end [18:51:14]Read from MH i2c: 01 07 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 53 7D 00 00 00 00 00 FF 0F E5 [18:51:14]process_action close_receipt done [18:51:14]requested_data is exist [18:51:14]produce_requested_data [18:51:14]requested_item fm.sn is exist - process it [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 11 00 00 [18:51:14]Write to MH i2c: E2 08 00 54 7D 80 11 00 00 00 00 00 00 4B [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 54 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A3 [18:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:51:14]wFMCommunicate OK [18:51:14]requested_item fd.num is exist - process it [18:51:14]SAM_PROTO_GetFieldsCounters [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 13 00 00 [18:51:14]Write to MH i2c: E2 08 00 55 7D 80 13 00 00 00 00 00 00 4E [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 62 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 62 00 55 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [18:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 20 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_GetFieldsCounters done [18:51:14]requested_item shift.num is exist - process it [18:51:14]requested_item shift.opened is exist - process it [18:51:14]req_shift_opened [18:51:14]FM_GetShiftState [18:51:14]SAM_PROTO_GetShiftState [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 13 01 00 [18:51:14]Write to MH i2c: E2 08 00 56 7D 80 13 01 00 00 00 00 00 50 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0E 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0E 00 56 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 59 [18:51:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_GetShiftState done [18:51:14]FM_GetShiftState done [18:51:14]req_shift_opened done [18:51:14]requested_item shift.open_date is exist - process it [18:51:14]req_shift_open_date [18:51:14]req_shift_open_date done [18:51:14]produce_requested_data done [18:51:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166176,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:51:14]process_action_free close_receipt [18:51:14]json_value_free [18:51:14]json_value_free done [18:51:14]process_json_proto returns [18:51:14]Send response to host [18:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166176,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:51:14]free response buf [18:51:14]execute_script done [18:51:14]execute_script returns [18:51:14]free content buf [18:51:14]Sock 5.Close socket [18:51:14]Sock 5.Thread stoped [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:00]accept exits with 6 [18:54:00]New connection [18:54:00]New thread 3066776932 created [18:54:00]Thread 3066920292 joined [18:54:00]Waiting for new connection... [18:54:00] Sock 6.Parse request [18:54:00]Sock 6.Check first char [18:54:00]Sock 6.First char is OK [18:54:00]request: POST /json_proto HTTP/1.0 [18:54:00]Method: POST [18:54:00]URL: /json_proto [18:54:00]Method is POST - this is cgi request [18:54:00]url: /json_proto [18:54:00]query_string will be loaded in cgi processing [18:54:00]execute_cgi json_proto POST (null) [18:54:00]execute_cgi path=json_proto method=POST [18:54:00]POST find Content-Length [18:54:00]Host: 172.17.53.195:8080 [18:54:00]Content-Length: 769 [18:54:00]Content-Type: application/json [18:54:00] [18:54:00]POST finish read [18:54:00]Found Content-Length = 769 [18:54:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 58.110, "sum" : 3887.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: Mbank", "payments": [ { "type": 1, "sum" : 3887.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:00]execute_script... [18:54: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)220748", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 58.110, "sum" : 3887.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: Mbank", "payments": [ { "type": 1, "sum" : 3887.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:00]POST & json_proto [18:54:00]process_json_proto [18:54:00]json parsed OK: [18:54:00]protocol is kg_v1.0 [18:54:00]action value=close_receipt [18:54:00]process_action close_receipt [18:54:00]cmd_close_receipt [18:54:00]MH_GetDate [18:54:00]Write to MH i2c: F0 00 00 57 7D C3 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: F0 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: F0 09 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: F0 09 00 57 7D 00 5C A3 16 67 21 48 4A 65 60 [18:54:00]GetLastDocTimeStamp 1729536690 [18:54:00]current date 1729536860 [18:54:00]FM_GetShiftState [18:54:00]SAM_PROTO_GetShiftState [18:54:00]wFMCommunicate request_size=4 [18:54:00]MH_SAM_APDU [18:54:00]CAPDU: 80 13 01 00 [18:54:00]Write to MH i2c: E2 08 00 58 7D 80 13 01 00 00 00 00 00 52 [18:54:00]Write i2c OK [18:54:00]MH_I2C_Read... [18:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:00]Read from MH i2c: E2 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 0E 00 [18:54:00]MH_I2C_Read... [18:54:00]Read from MH i2c: E2 0E 00 58 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5B [18:54:00]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:54:00]wFMCommunicate OK [18:54:00]SAM_PROTO_GetShiftState done [18:54:00]FM_GetShiftState done [18:54:00]opened in 1729470944 [18:54:00]opened+sec_in_day 1729557344 [18:54:00]quantity*price = 388755 [18:54:00]sum+1 = 388757 [18:54:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3887.56 НСП 1% : 34.40 НДС 12% : 412.84 Наличными: 0.00 Безнал.: 3887.56 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 288 21.10.2024 18:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166177 ФПД: 214912174214298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166177&fm=214912174214298&tin=02508201610067®Number=0000000000091764&sum=388756 [18:54:01]StoreToDocumentArchive [18:54:01]shift 535 fd 166177 [18:54:01]save to /storage/0535/doc_00166177 [18:54:01]save last doc name /storage/0535/doc_00166177 to /storage/kkm_last_doc_name [18:54:01]save OK [18:54:01]Clear old archive folders... [18:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:01]tlvbuf is 01891FA0 [18:54:01]SAM_PROTO_ClearQueue [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 09 00 00 [18:54:01]Write to MH i2c: E2 08 00 65 7D 80 09 00 00 00 00 00 00 54 [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 03 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 03 00 65 7D 00 90 00 56 [18:54:01]RAPDU: 90 00 [18:54:01]wFMCommunicate OK [18:54:01]SAM_PROTO_ClearQueue done [18:54:01]KKMCreateOFDPacket [18:54:01]OFDProtocolAddRootSTLVToBuf [18:54:01]FM_MakeSignedData [18:54:01]FM_MakeSignedData [18:54:01]SAM_PROTO_SignData [18:54:01]wFMCommunicate request_size=4 [18:54:01]MH_SAM_APDU [18:54:01]CAPDU: 80 0D 01 02 [18:54:01]Write to MH i2c: E2 08 00 66 7D 80 0D 01 02 00 00 00 00 5C [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:01]Read from MH i2c: E2 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 03 00 [18:54:01]MH_I2C_Read... [18:54:01]Read from MH i2c: E2 03 00 66 7D 00 90 00 57 [18:54:01]RAPDU: 90 00 [18:54:01]wFMCommunicate OK [18:54:01]wFMCommunicate request_size=255 [18:54:01]MH_SAM_APDU [18:54: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 FE E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5C A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 89 02 00 35 04 06 00 C3 [18:54:01]Write to MH i2c: E2 02 01 67 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5C A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 89 02 00 35 04 06 00 C3 00 00 A5 [18:54:01]Write i2c OK [18:54:01]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 67 7D 00 90 00 58 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=10 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 02 02 05 76 23 CD 4C 9A [18:54:02]Write to MH i2c: E2 0D 00 68 7D 80 0D 02 02 05 00 76 23 CD 4C 9A 00 00 B5 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 03 00 68 7D 00 90 00 59 [18:54:02]RAPDU: 90 00 [18:54:02]wFMCommunicate OK [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 0D 03 02 [18:54:02]Write to MH i2c: E2 08 00 69 7D 80 0D 03 02 00 00 00 00 61 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 0B 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 0B 00 69 7D 00 00 16 CE 06 D1 9D 2E 2A 90 00 12 [18:54:02]RAPDU: 00 16 CE 06 D1 9D 2E 2A 90 00 [18:54:02]wFMCommunicate OK [18:54:02]SAM_PROTO_SignData done [18:54:02]FM_MakeSignedData done [18:54:02]CreateOFDProtocolMessage [18:54:02]wFMCommunicate request_size=4 [18:54:02]MH_SAM_APDU [18:54:02]CAPDU: 80 11 00 00 [18:54:02]Write to MH i2c: E2 08 00 6A 7D 80 11 00 00 00 00 00 00 61 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:02]Read from MH i2c: E2 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 17 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: E2 17 00 6A 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [18:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:02]wFMCommunicate OK [18:54:02]CreateOFDProtocolMessage done [18:54:02]OFDSenderStorePacket 166177 [18:54:02]StoreOFDPacket docnum=166177 [18:54:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 8D 07 01 0F 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 FE E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5C A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 89 02 00 35 04 06 00 C3 76 23 CD 4C 9A 00 16 CE 06 D1 9D 2E 2A [18:54:02]CheckFolder [18:54:02]dirname=/storage/ofd_packets [18:54:02]CheckFolder done [18:54:02]ProducePacketName [18:54:02]name=ofd_packets/00166177 [18:54:02]NVStorageSaveData ofd_packets/00166177 [18:54:02]File name is /storage/ofd_packets/00166177 [18:54:02]Write 301 bytes [18:54:02]NVStorageSaveData done [18:54:02]OFDSenderStorePacket done [18:54:02]KKMCreateOFDPacket done [18:54:02]NVStorageSaveData kkm_last_timestamp [18:54:02]File name is /storage/kkm_last_timestamp [18:54:02]Write 4 bytes [18:54:02]NVStorageSaveData done [18:54:02]ExternCall_PrintAddStr [18:54:02]wPrintStart [18:54:02]Write to MH i2c: 01 00 00 6B 7D E8 [18:54:02]Write i2c OK [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: 01 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: 01 07 00 [18:54:02]MH_I2C_Read... [18:54:02]Read from MH i2c: 01 07 00 6B 7D 00 00 00 00 00 FF 0F FD [18:54:02]RasterBufferAndPrint [18:54:02]line Счет N : (1)220748 [18:54:02]line ИНН: 02508201610067 [18:54:02]line Контрольно-Кассовый Чек [18:54:02]line ПРОДАЖА [18:54:02]line ТРК (МРК, ГНК) : 33 [18:54:02]line Товар: 2710124130 [18:54:02]line Аи-92-К-5 [18:54:02]line 58.110 * 66.90 [18:54:02]line = 3887.56 [18:54:02]line НДС 12% НСП 1% [18:54:02]line > о реализуемом товаре [18:54:02]line ИТОГО: 3887.56 [18:54:02]line НСП 1% : 34.40 [18:54:02]line НДС 12% : 412.84 [18:54:02]line Наличными: 0.00 [18:54:02]line Безнал.: 3887.56 [18:54:02]line Место: АЗС № 161 "Партнер Нефть" [18:54:02]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:54:02]line СНО: Общий режим [18:54:02]line Чек 288 21.10.2024 18:54 [18:54:02]line Смена: 535 ФФД: 1.0 [18:54:02]line ЗНМ: 0300000104 [18:54:02]line РНМ: 0000000000091764 [18:54:02]line Версия ККМ: 001 [18:54:02]line Платежная система: Mbank [18:54:02]line ФМ: 0000000000871759 [18:54:02]line ФД: 166177 [18:54:02]line ФПД: 214912174214298 [18:54:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185420&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166177&fm=214912174214298&tin=02508201610067®Number=0000000000091764&sum=388756 [18:54:02]OFD Sender: Processing packet 166177 [packets to send 48, broken 47] [18:54:02]ProducePacketName [18:54:02]name=ofd_packets/00166177 [18:54:02]OFD Sender: To server: pG, [18:54:02]CommunicateWithHost lk.salyk.kg:30040 [18:54:02]ConnectInit lk.salyk.kg [18:54:02]written 0, free lines is 4095 [18:54:02]Connected sock=7 [18:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FA 8D 07 01 0F 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 FE E2 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 EE 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 EE 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 A1 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 EE 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 5C A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 89 02 00 35 04 06 00 C3 76 23 CD 4C 9A 00 16 CE 06 D1 9D 2E 2A [18:54:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 51 CD 47 00 69 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 21 89 02 00 F4 03 04 00 CA 49 16 67 B6 04 01 00 00 79 8B EB 04 65 24 62 14 [18:54:03]CommunicateWithHost err = 0 [18:54:03]CheckOFDResponse [18:54:03]1017 (14) - 77093643461234 [18:54:03]1041 (16) - 0000000000871759 [18:54:03]1040 (4) - 166177 [18:54:03]1012 (4) - 21.10.2024 12:32 [18:54:03]1206 (1) - 0 [18:54:03]OFD Sender: Remove packet 166177 [18:54:03]ProducePacketName [18:54:03]name=ofd_packets/00166177 [18:54:03]NVStorageDeleteData [18:54:03]Write to MH i2c: 01 00 00 94 7D 11 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: 01 07 00 94 7D 00 00 00 00 00 06 0D 2B [18:54:03]RasterBufferAndPrint [18:54:03]line [18:54:03]line [18:54:03]line [18:54:03]line [18:54:03]line [18:54:03]written 0, free lines is 3341 [18:54:03]MH_Cut [18:54:03]Write to MH i2c: D1 01 00 9B 7D 01 EA [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: D1 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: D1 01 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: D1 01 00 9B 7D 00 E9 [18:54:03]Write to MH i2c: 01 00 00 9C 7D 19 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]OFD Sender: No OFD packet to send [18:54:03]*** Cut start [18:54:03]*** Partial cut [18:54:03]*** CUTSNS_PIN = 1 [18:54:03]*** CUTSNS_PIN = 0 [18:54:04]*** Brake cut motor [18:54:04]Read from MH i2c: 01 [18:54:04]MH_I2C_Read... [18:54:04]*** Stop cut motor [18:54:04]*** Cut end [18:54:04]Read from MH i2c: 01 07 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: 01 07 00 9C 7D 00 00 00 00 00 FF 0F 2E [18:54:04]process_action close_receipt done [18:54:04]requested_data is exist [18:54:04]produce_requested_data [18:54:04]requested_item fm.sn is exist - process it [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 11 00 00 [18:54:04]Write to MH i2c: E2 08 00 9D 7D 80 11 00 00 00 00 00 00 94 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 17 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 17 00 9D 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EC [18:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:04]wFMCommunicate OK [18:54:04]requested_item fd.num is exist - process it [18:54:04]SAM_PROTO_GetFieldsCounters [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 13 00 00 [18:54:04]Write to MH i2c: E2 08 00 9E 7D 80 13 00 00 00 00 00 00 97 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 62 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 62 00 9E 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:54:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 21 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:04]wFMCommunicate OK [18:54:04]SAM_PROTO_GetFieldsCounters done [18:54:04]requested_item shift.num is exist - process it [18:54:04]requested_item shift.opened is exist - process it [18:54:04]req_shift_opened [18:54:04]FM_GetShiftState [18:54:04]SAM_PROTO_GetShiftState [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 13 01 00 [18:54:04]Write to MH i2c: E2 08 00 9F 7D 80 13 01 00 00 00 00 00 99 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 0E 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 0E 00 9F 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A2 [18:54:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:54:04]wFMCommunicate OK [18:54:04]SAM_PROTO_GetShiftState done [18:54:04]FM_GetShiftState done [18:54:04]req_shift_opened done [18:54:04]requested_item shift.open_date is exist - process it [18:54:04]req_shift_open_date [18:54:04]req_shift_open_date done [18:54:04]produce_requested_data done [18:54:04]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166177,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:54:04]process_action_free close_receipt [18:54:04]json_value_free [18:54:04]json_value_free done [18:54:04]process_json_proto returns [18:54:04]Send response to host [18:54:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166177,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:54:04]free response buf [18:54:04]execute_script done [18:54:04]execute_script returns [18:54:04]free content buf [18:54:04]Sock 6.Close socket [18:54:04]Sock 6.Thread stoped [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:16]accept exits with 5 [18:54:16]New connection [18:54:16]New thread 3066920292 created [18:54:16]Thread 3066776932 joined [18:54:16]Waiting for new connection... [18:54:16] Sock 5.Parse request [18:54:16]Sock 5.Check first char [18:54:16]Sock 5.First char is OK [18:54:16]request: POST /json_proto HTTP/1.0 [18:54:16]Method: POST [18:54:16]URL: /json_proto [18:54:16]Method is POST - this is cgi request [18:54:16]url: /json_proto [18:54:16]query_string will be loaded in cgi processing [18:54:16]execute_cgi json_proto POST (null) [18:54:16]execute_cgi path=json_proto method=POST [18:54:16]POST find Content-Length [18:54:16]Host: 172.17.53.195:8080 [18:54:16]Content-Length: 766 [18:54:16]Content-Type: application/json [18:54:16] [18:54:16]POST finish read [18:54:16]Found Content-Length = 766 [18:54:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:16]execute_script... [18:54: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)220749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:16]POST & json_proto [18:54:16]process_json_proto [18:54:16]json parsed OK: [18:54:16]protocol is kg_v1.0 [18:54:16]action value=close_receipt [18:54:16]process_action close_receipt [18:54:16]cmd_close_receipt [18:54:16]MH_GetDate [18:54:16]Write to MH i2c: F0 00 00 A0 7D 0C [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: F0 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: F0 09 00 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: F0 09 00 A0 7D 00 6B A3 16 67 21 48 4A 65 B8 [18:54:16]GetLastDocTimeStamp 1729536860 [18:54:16]current date 1729536875 [18:54:16]FM_GetShiftState [18:54:16]SAM_PROTO_GetShiftState [18:54:16]wFMCommunicate request_size=4 [18:54:16]MH_SAM_APDU [18:54:16]CAPDU: 80 13 01 00 [18:54:16]Write to MH i2c: E2 08 00 A1 7D 80 13 01 00 00 00 00 00 9B [18:54:16]Write i2c OK [18:54:16]MH_I2C_Read... [18:54:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:16]Read from MH i2c: E2 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: E2 0E 00 [18:54:16]MH_I2C_Read... [18:54:16]Read from MH i2c: E2 0E 00 A1 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A4 [18:54:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:54:16]wFMCommunicate OK [18:54:16]SAM_PROTO_GetShiftState done [18:54:16]FM_GetShiftState done [18:54:16]opened in 1729470944 [18:54:16]opened+sec_in_day 1729557344 [18:54:16]quantity*price = 30038 [18:54:16]sum+1 = 30039 [18:54:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 289 21.10.2024 18:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166178 ФПД: 125556576911423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166178&fm=125556576911423&tin=02508201610067®Number=0000000000091764&sum=30038 [18:54:17]StoreToDocumentArchive [18:54:17]shift 535 fd 166178 [18:54:17]save to /storage/0535/doc_00166178 [18:54:17]save last doc name /storage/0535/doc_00166178 to /storage/kkm_last_doc_name [18:54:17]save OK [18:54:17]Clear old archive folders... [18:54:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:17]tlvbuf is 01839710 [18:54:17]SAM_PROTO_ClearQueue [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 09 00 00 [18:54:17]Write to MH i2c: E2 08 00 AE 7D 80 09 00 00 00 00 00 00 9D [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 AE 7D 00 90 00 9F [18:54:17]RAPDU: 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_ClearQueue done [18:54:17]KKMCreateOFDPacket [18:54:17]OFDProtocolAddRootSTLVToBuf [18:54:17]FM_MakeSignedData [18:54:17]FM_MakeSignedData [18:54:17]SAM_PROTO_SignData [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 0D 01 02 [18:54:17]Write to MH i2c: E2 08 00 AF 7D 80 0D 01 02 00 00 00 00 A5 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 AF 7D 00 90 00 A0 [18:54:17]RAPDU: 90 00 [18:54:17]wFMCommunicate OK [18:54:17]wFMCommunicate request_size=255 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 6B A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 89 02 00 35 04 06 00 72 [18:54:17]Write to MH i2c: E2 02 01 B0 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 6B A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 89 02 00 35 04 06 00 72 00 00 60 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 B0 7D 00 90 00 A1 [18:54:17]RAPDU: 90 00 [18:54:17]wFMCommunicate OK [18:54:17]wFMCommunicate request_size=10 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 0D 02 02 05 31 6B 2A 80 3F [18:54:17]Write to MH i2c: E2 0D 00 B1 7D 80 0D 02 02 05 00 31 6B 2A 80 3F 00 00 37 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 03 00 B1 7D 00 90 00 A2 [18:54:17]RAPDU: 90 00 [18:54:17]wFMCommunicate OK [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 0D 03 02 [18:54:17]Write to MH i2c: E2 08 00 B2 7D 80 0D 03 02 00 00 00 00 AA [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0B 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 0B 00 B2 7D 00 D3 60 CD C4 F1 5D 68 77 90 00 9C [18:54:17]RAPDU: D3 60 CD C4 F1 5D 68 77 90 00 [18:54:17]wFMCommunicate OK [18:54:17]SAM_PROTO_SignData done [18:54:17]FM_MakeSignedData done [18:54:17]CreateOFDProtocolMessage [18:54:17]wFMCommunicate request_size=4 [18:54:17]MH_SAM_APDU [18:54:17]CAPDU: 80 11 00 00 [18:54:17]Write to MH i2c: E2 08 00 B3 7D 80 11 00 00 00 00 00 00 AA [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:17]Read from MH i2c: E2 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: E2 17 00 B3 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 02 [18:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:17]wFMCommunicate OK [18:54:17]CreateOFDProtocolMessage done [18:54:17]OFDSenderStorePacket 166178 [18:54:17]StoreOFDPacket docnum=166178 [18:54:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 60 07 01 9E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 6B A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 89 02 00 35 04 06 00 72 31 6B 2A 80 3F D3 60 CD C4 F1 5D 68 77 [18:54:17]CheckFolder [18:54:17]dirname=/storage/ofd_packets [18:54:17]CheckFolder done [18:54:17]ProducePacketName [18:54:17]name=ofd_packets/00166178 [18:54:17]NVStorageSaveData ofd_packets/00166178 [18:54:17]File name is /storage/ofd_packets/00166178 [18:54:17]Write 301 bytes [18:54:17]NVStorageSaveData done [18:54:17]OFDSenderStorePacket done [18:54:17]KKMCreateOFDPacket done [18:54:17]NVStorageSaveData kkm_last_timestamp [18:54:17]File name is /storage/kkm_last_timestamp [18:54:17]Write 4 bytes [18:54:17]NVStorageSaveData done [18:54:17]ExternCall_PrintAddStr [18:54:17]wPrintStart [18:54:17]Write to MH i2c: 01 00 00 B4 7D 31 [18:54:17]Write i2c OK [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: 01 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: 01 07 00 [18:54:17]MH_I2C_Read... [18:54:17]Read from MH i2c: 01 07 00 B4 7D 00 00 00 00 00 FF 0F 46 [18:54:17]RasterBufferAndPrint [18:54:17]line Счет N : (1)220749 [18:54:17]line ИНН: 02508201610067 [18:54:17]line Контрольно-Кассовый Чек [18:54:17]line ПРОДАЖА [18:54:17]line ТРК (МРК, ГНК) : 23 [18:54:17]line Товар: 2710124130 [18:54:17]line Аи-92-К-5 [18:54:17]line 4.490 * 66.90 [18:54:17]line = 300.38 [18:54:17]line НДС 12% НСП 1% [18:54:17]line > о реализуемом товаре [18:54:17]line ИТОГО: 300.38 [18:54:17]line НСП 1% : 2.66 [18:54:17]line НДС 12% : 31.90 [18:54:17]line Наличными: 0.00 [18:54:17]line Безнал.: 300.38 [18:54:17]line Место: АЗС № 161 "Партнер Нефть" [18:54:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:54:17]line СНО: Общий режим [18:54:17]line Чек 289 21.10.2024 18:54 [18:54:17]line Смена: 535 ФФД: 1.0 [18:54:17]line ЗНМ: 0300000104 [18:54:17]line РНМ: 0000000000091764 [18:54:17]line Версия ККМ: 001 [18:54:17]line Платежная система: Mbank [18:54:17]line ФМ: 0000000000871759 [18:54:17]line ФД: 166178 [18:54:17]line ФПД: 125556576911423 [18:54:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185435&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166178&fm=125556576911423&tin=02508201610067®Number=0000000000091764&sum=30038 [18:54:17]written 0, free lines is 4095 [18:54:17]OFD Sender: Processing packet 166178 [packets to send 48, broken 47] [18:54:17]ProducePacketName [18:54:17]name=ofd_packets/00166178 [18:54:18]OFD Sender: To server: pG, [18:54:18]CommunicateWithHost lk.salyk.kg:30040 [18:54:18]ConnectInit lk.salyk.kg [18:54:18]Connected sock=7 [18:54:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 82 60 07 01 9E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 6B A3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 22 89 02 00 35 04 06 00 72 31 6B 2A 80 3F D3 60 CD C4 F1 5D 68 77 [18:54:18]Write to MH i2c: 01 00 00 DD 7D 5A [18:54:18]Write i2c OK [18:54:18]MH_I2C_Read... [18:54:18]Read from MH i2c: 01 [18:54:18]MH_I2C_Read... [18:54:18]Read from MH i2c: 01 07 00 [18:54:18]MH_I2C_Read... [18:54:18]Read from MH i2c: 01 07 00 DD 7D 00 00 00 00 00 FA 0C 67 [18:54:18]RasterBufferAndPrint [18:54:18]line [18:54:18]line [18:54:18]line [18:54:18]line [18:54:18]line [18:54:18]written 0, free lines is 3328 [18:54:18]MH_Cut [18:54:18]Write to MH i2c: D1 01 00 E4 7D 01 33 [18:54:18]Write i2c OK [18:54:18]MH_I2C_Read... [18:54:18]Read from MH i2c: D1 [18:54:18]MH_I2C_Read... [18:54:18]Read from MH i2c: D1 01 00 [18:54:18]MH_I2C_Read... [18:54:18]Read from MH i2c: D1 01 00 E4 7D 00 32 [18:54:18]Write to MH i2c: 01 00 00 E5 7D 62 [18:54:18]Write i2c OK [18:54:18]MH_I2C_Read... [18:54:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 44 8E 47 00 73 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 35 39 10 04 04 00 22 89 02 00 F4 03 04 00 D9 49 16 67 B6 04 01 00 00 20 7B 1B 3E 62 B1 FD E2 [18:54:18]CommunicateWithHost err = 0 [18:54:18]CheckOFDResponse [18:54:18]1017 (14) - 77093643461234 [18:54:18]1041 (16) - 0000000000871759 [18:54:18]1040 (4) - 166178 [18:54:18]1012 (4) - 21.10.2024 12:32 [18:54:18]1206 (1) - 0 [18:54:18]OFD Sender: Remove packet 166178 [18:54:18]ProducePacketName [18:54:18]name=ofd_packets/00166178 [18:54:18]NVStorageDeleteData [18:54:19]OFD Sender: No OFD packet to send [18:54:19]*** Cut start [18:54:19]*** Partial cut [18:54:19]*** CUTSNS_PIN = 1 [18:54:19]*** CUTSNS_PIN = 0 [18:54:19]*** Brake cut motor [18:54:19]Read from MH i2c: 01 [18:54:19]MH_I2C_Read... [18:54:19]*** Stop cut motor [18:54:19]*** Cut end [18:54:19]Read from MH i2c: 01 07 00 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: 01 07 00 E5 7D 00 00 00 00 00 FF 0F 77 [18:54:19]process_action close_receipt done [18:54:19]requested_data is exist [18:54:19]produce_requested_data [18:54:19]requested_item fm.sn is exist - process it [18:54:19]wFMCommunicate request_size=4 [18:54:19]MH_SAM_APDU [18:54:19]CAPDU: 80 11 00 00 [18:54:19]Write to MH i2c: E2 08 00 E6 7D 80 11 00 00 00 00 00 00 DD [18:54:19]Write i2c OK [18:54:19]MH_I2C_Read... [18:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:19]Read from MH i2c: E2 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: E2 17 00 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: E2 17 00 E6 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 35 [18:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:54:19]wFMCommunicate OK [18:54:19]requested_item fd.num is exist - process it [18:54:19]SAM_PROTO_GetFieldsCounters [18:54:19]wFMCommunicate request_size=4 [18:54:19]MH_SAM_APDU [18:54:19]CAPDU: 80 13 00 00 [18:54:19]Write to MH i2c: E2 08 00 E7 7D 80 13 00 00 00 00 00 00 E0 [18:54:19]Write i2c OK [18:54:19]MH_I2C_Read... [18:54:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:19]Read from MH i2c: E2 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: E2 62 00 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: E2 62 00 E7 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [18:54:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 22 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:19]wFMCommunicate OK [18:54:19]SAM_PROTO_GetFieldsCounters done [18:54:19]requested_item shift.num is exist - process it [18:54:19]requested_item shift.opened is exist - process it [18:54:19]req_shift_opened [18:54:19]FM_GetShiftState [18:54:19]SAM_PROTO_GetShiftState [18:54:19]wFMCommunicate request_size=4 [18:54:19]MH_SAM_APDU [18:54:19]CAPDU: 80 13 01 00 [18:54:19]Write to MH i2c: E2 08 00 E8 7D 80 13 01 00 00 00 00 00 E2 [18:54:19]Write i2c OK [18:54:19]MH_I2C_Read... [18:54:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:19]Read from MH i2c: E2 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: E2 0E 00 [18:54:19]MH_I2C_Read... [18:54:19]Read from MH i2c: E2 0E 00 E8 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 EB [18:54:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:54:19]wFMCommunicate OK [18:54:19]SAM_PROTO_GetShiftState done [18:54:19]FM_GetShiftState done [18:54:19]req_shift_opened done [18:54:19]requested_item shift.open_date is exist - process it [18:54:19]req_shift_open_date [18:54:19]req_shift_open_date done [18:54:19]produce_requested_data done [18:54:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166178,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:54:19]process_action_free close_receipt [18:54:19]json_value_free [18:54:19]json_value_free done [18:54:19]process_json_proto returns [18:54:19]Send response to host [18:54:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166178,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:54:19]free response buf [18:54:19]execute_script done [18:54:19]execute_script returns [18:54:19]free content buf [18:54:19]Sock 5.Close socket [18:54:19]Sock 5.Thread stoped [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:20]accept exits with 6 [18:57:20]New connection [18:57:20]New thread 3066776932 created [18:57:20]Thread 3066920292 joined [18:57:20]Waiting for new connection... [18:57:20] Sock 6.Parse request [18:57:20]Sock 6.Check first char [18:57:20]Sock 6.First char is OK [18:57:20]request: POST /json_proto HTTP/1.0 [18:57:20]Method: POST [18:57:20]URL: /json_proto [18:57:20]Method is POST - this is cgi request [18:57:20]url: /json_proto [18:57:20]query_string will be loaded in cgi processing [18:57:20]execute_cgi json_proto POST (null) [18:57:20]execute_cgi path=json_proto method=POST [18:57:20]POST find Content-Length [18:57:20]Host: 172.17.53.195:8080 [18:57:20]Content-Length: 677 [18:57:20]Content-Type: application/json [18:57:20] [18:57:20]POST finish read [18:57:20]Found Content-Length = 677 [18:57:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:20]execute_script... [18:57: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)220750", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:20]POST & json_proto [18:57:20]process_json_proto [18:57:20]json parsed OK: [18:57:20]protocol is kg_v1.0 [18:57:20]action value=close_receipt [18:57:20]process_action close_receipt [18:57:20]cmd_close_receipt [18:57:20]MH_GetDate [18:57:20]Write to MH i2c: F0 00 00 E9 7D 55 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: F0 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: F0 09 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: F0 09 00 E9 7D 00 24 A4 16 67 21 48 4A 65 BB [18:57:20]GetLastDocTimeStamp 1729536875 [18:57:20]current date 1729537060 [18:57:20]FM_GetShiftState [18:57:20]SAM_PROTO_GetShiftState [18:57:20]wFMCommunicate request_size=4 [18:57:20]MH_SAM_APDU [18:57:20]CAPDU: 80 13 01 00 [18:57:20]Write to MH i2c: E2 08 00 EA 7D 80 13 01 00 00 00 00 00 E4 [18:57:20]Write i2c OK [18:57:20]MH_I2C_Read... [18:57:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:20]Read from MH i2c: E2 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 [18:57:20]MH_I2C_Read... [18:57:20]Read from MH i2c: E2 0E 00 EA 7D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 ED [18:57:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:57:20]wFMCommunicate OK [18:57:20]SAM_PROTO_GetShiftState done [18:57:20]FM_GetShiftState done [18:57:20]opened in 1729470944 [18:57:20]opened+sec_in_day 1729557344 [18:57:20]quantity*price = 29971 [18:57:20]sum+1 = 29972 [18:57:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 290 21.10.2024 18:57 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166179 ФПД: 24851803099923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166179&fm=24851803099923&tin=02508201610067®Number=0000000000091764&sum=29900 [18:57:22]StoreToDocumentArchive [18:57:22]shift 535 fd 166179 [18:57:22]save to /storage/0535/doc_00166179 [18:57:22]save last doc name /storage/0535/doc_00166179 to /storage/kkm_last_doc_name [18:57:22]save OK [18:57:22]Clear old archive folders... [18:57:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:22]tlvbuf is 018919D0 [18:57:22]SAM_PROTO_ClearQueue [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 09 00 00 [18:57:22]Write to MH i2c: E2 08 00 F7 7D 80 09 00 00 00 00 00 00 E6 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 F7 7D 00 90 00 E8 [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]SAM_PROTO_ClearQueue done [18:57:22]KKMCreateOFDPacket [18:57:22]OFDProtocolAddRootSTLVToBuf [18:57:22]FM_MakeSignedData [18:57:22]FM_MakeSignedData [18:57:22]SAM_PROTO_SignData [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 0D 01 02 [18:57:22]Write to MH i2c: E2 08 00 F8 7D 80 0D 01 02 00 00 00 00 EE [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 F8 7D 00 90 00 E9 [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]wFMCommunicate request_size=255 [18:57:22]MH_SAM_APDU [18:57: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 24 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 89 02 00 35 04 06 00 16 [18:57:22]Write to MH i2c: E2 02 01 F9 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 24 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 89 02 00 35 04 06 00 16 00 00 9E [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 F9 7D 00 90 00 EA [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]wFMCommunicate request_size=10 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 0D 02 02 05 9A 42 E5 53 13 [18:57:22]Write to MH i2c: E2 0D 00 FA 7D 80 0D 02 02 05 00 9A 42 E5 53 13 00 00 22 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 03 00 FA 7D 00 90 00 EB [18:57:22]RAPDU: 90 00 [18:57:22]wFMCommunicate OK [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 0D 03 02 [18:57:22]Write to MH i2c: E2 08 00 FB 7D 80 0D 03 02 00 00 00 00 F3 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 0B 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 0B 00 FB 7D 00 EE CF 87 55 6E AB 04 08 90 00 B2 [18:57:22]RAPDU: EE CF 87 55 6E AB 04 08 90 00 [18:57:22]wFMCommunicate OK [18:57:22]SAM_PROTO_SignData done [18:57:22]FM_MakeSignedData done [18:57:22]CreateOFDProtocolMessage [18:57:22]wFMCommunicate request_size=4 [18:57:22]MH_SAM_APDU [18:57:22]CAPDU: 80 11 00 00 [18:57:22]Write to MH i2c: E2 08 00 FC 7D 80 11 00 00 00 00 00 00 F3 [18:57:22]Write i2c OK [18:57:22]MH_I2C_Read... [18:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:22]Read from MH i2c: E2 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 17 00 [18:57:22]MH_I2C_Read... [18:57:22]Read from MH i2c: E2 17 00 FC 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4B [18:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:57:22]wFMCommunicate OK [18:57:22]CreateOFDProtocolMessage done [18:57:22]OFDSenderStorePacket 166179 [18:57:22]StoreOFDPacket docnum=166179 [18:57:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 6C 07 01 F4 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 24 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 89 02 00 35 04 06 00 16 9A 42 E5 53 13 EE CF 87 55 6E AB 04 08 [18:57:22]CheckFolder [18:57:22]dirname=/storage/ofd_packets [18:57:22]CheckFolder done [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00166179 [18:57:22]NVStorageSaveData ofd_packets/00166179 [18:57:22]File name is /storage/ofd_packets/00166179 [18:57:22]Write 301 bytes [18:57:22]NVStorageSaveData done [18:57:22]OFDSenderStorePacket done [18:57:22]KKMCreateOFDPacket done [18:57:22]NVStorageSaveData kkm_last_timestamp [18:57:22]File name is /storage/kkm_last_timestamp [18:57:22]Write 4 bytes [18:57:22]NVStorageSaveData done [18:57:22]ExternCall_PrintAddStr [18:57:22]wPrintStart [18:57:22]Write to MH i2c: 01 00 00 FD 7D 7A [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 FD 7D 00 00 00 00 00 FF 0F 8F [18:57:22]RasterBufferAndPrint [18:57:22]line Счет N : (1)220750 [18:57:22]line ИНН: 02508201610067 [18:57:22]line Контрольно-Кассовый Чек [18:57:22]line ПРОДАЖА [18:57:22]line ТРК (МРК, ГНК) : 43 [18:57:22]line Товар: 2710124130 [18:57:22]line Аи-92-К-5 [18:57:22]line 4.480 * 66.90 [18:57:22]line = 299.71 [18:57:22]line НДС 12% НСП 1% [18:57:22]line > о реализуемом товаре [18:57:22]line ОКРУГЛЕНИЕ: -0.71 [18:57:22]line ИТОГО: 299.00 [18:57:22]line Внесено: 300.00 [18:57:22]line СДАЧА: 1.00 [18:57:22]line НСП 1% : 2.65 [18:57:22]line НДС 12% : 31.83 [18:57:22]line Наличными: 299.00 [18:57:22]line Безнал.: 0.00 [18:57:22]line Место: АЗС № 161 "Партнер Нефть" [18:57:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:57:22]line СНО: Общий режим [18:57:22]line Чек 290 21.10.2024 18:57 [18:57:22]line Смена: 535 ФФД: 1.0 [18:57:22]line ЗНМ: 0300000104 [18:57:22]line РНМ: 0000000000091764 [18:57:22]line Версия ККМ: 001 [18:57:22]line ФМ: 0000000000871759 [18:57:22]line ФД: 166179 [18:57:22]line ФПД: 24851803099923 [18:57:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185740&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166179&fm=24851803099923&tin=02508201610067®Number=0000000000091764&sum=29900 [18:57:22]OFD Sender: Processing packet 166179 [packets to send 48, broken 47] [18:57:22]ProducePacketName [18:57:22]name=ofd_packets/00166179 [18:57:22]OFD Sender: To server: pG, [18:57:22]CommunicateWithHost lk.salyk.kg:30040 [18:57:22]ConnectInit lk.salyk.kg [18:57:22]written 0, free lines is 4095 [18:57:23]Connected sock=7 [18:57:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 6C 07 01 F4 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 24 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 89 02 00 35 04 06 00 16 9A 42 E5 53 13 EE CF 87 55 6E AB 04 08 [18:57:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 51 38 47 00 8A 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 23 89 02 00 F4 03 04 00 92 4A 16 67 B6 04 01 00 00 37 8E 0C 66 25 AD DA 72 [18:57:23]CommunicateWithHost err = 0 [18:57:23]CheckOFDResponse [18:57:23]1017 (14) - 77093643461234 [18:57:23]1041 (16) - 0000000000871759 [18:57:23]1040 (4) - 166179 [18:57:23]1012 (4) - 21.10.2024 12:35 [18:57:23]1206 (1) - 0 [18:57:23]OFD Sender: Remove packet 166179 [18:57:23]ProducePacketName [18:57:23]name=ofd_packets/00166179 [18:57:23]NVStorageDeleteData [18:57:23]Write to MH i2c: 01 00 00 28 7E A6 [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: 01 [18:57:23]MH_I2C_Read... [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 28 7E 00 00 00 00 00 DA 0C 93 [18:57:23]RasterBufferAndPrint [18:57:23]line [18:57:23]line [18:57:23]line [18:57:23]line [18:57:23]line [18:57:23]written 0, free lines is 3301 [18:57:23]MH_Cut [18:57:23]Write to MH i2c: D1 01 00 2F 7E 01 7F [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: D1 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: D1 01 00 [18:57:23]MH_I2C_Read... [18:57:23]Read from MH i2c: D1 01 00 2F 7E 00 7E [18:57:23]Write to MH i2c: 01 00 00 30 7E AE [18:57:23]Write i2c OK [18:57:23]MH_I2C_Read... [18:57:23]OFD Sender: No OFD packet to send [18:57:24]*** Cut start [18:57:24]*** Partial cut [18:57:24]*** CUTSNS_PIN = 1 [18:57:24]*** CUTSNS_PIN = 0 [18:57:24]*** Brake cut motor [18:57:24]Read from MH i2c: 01 [18:57:24]MH_I2C_Read... [18:57:24]*** Stop cut motor [18:57:24]*** Cut end [18:57:24]Read from MH i2c: 01 07 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: 01 07 00 30 7E 00 00 00 00 00 FF 0F C3 [18:57:24]process_action close_receipt done [18:57:24]requested_data is exist [18:57:24]produce_requested_data [18:57:24]requested_item fm.sn is exist - process it [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 11 00 00 [18:57:24]Write to MH i2c: E2 08 00 31 7E 80 11 00 00 00 00 00 00 29 [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:24]Read from MH i2c: E2 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 [18:57:24]MH_I2C_Read... [18:57:24]Read from MH i2c: E2 17 00 31 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 81 [18:57:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:57:24]wFMCommunicate OK [18:57:24]requested_item fd.num is exist - process it [18:57:24]SAM_PROTO_GetFieldsCounters [18:57:24]wFMCommunicate request_size=4 [18:57:24]MH_SAM_APDU [18:57:24]CAPDU: 80 13 00 00 [18:57:24]Write to MH i2c: E2 08 00 32 7E 80 13 00 00 00 00 00 00 2C [18:57:24]Write i2c OK [18:57:24]MH_I2C_Read... [18:57:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:25]Read from MH i2c: E2 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 62 00 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 62 00 32 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [18:57:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 23 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:25]wFMCommunicate OK [18:57:25]SAM_PROTO_GetFieldsCounters done [18:57:25]requested_item shift.num is exist - process it [18:57:25]requested_item shift.opened is exist - process it [18:57:25]req_shift_opened [18:57:25]FM_GetShiftState [18:57:25]SAM_PROTO_GetShiftState [18:57:25]wFMCommunicate request_size=4 [18:57:25]MH_SAM_APDU [18:57:25]CAPDU: 80 13 01 00 [18:57:25]Write to MH i2c: E2 08 00 33 7E 80 13 01 00 00 00 00 00 2E [18:57:25]Write i2c OK [18:57:25]MH_I2C_Read... [18:57:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:25]Read from MH i2c: E2 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 0E 00 [18:57:25]MH_I2C_Read... [18:57:25]Read from MH i2c: E2 0E 00 33 7E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 37 [18:57:25]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:57:25]wFMCommunicate OK [18:57:25]SAM_PROTO_GetShiftState done [18:57:25]FM_GetShiftState done [18:57:25]req_shift_opened done [18:57:25]requested_item shift.open_date is exist - process it [18:57:25]req_shift_open_date [18:57:25]req_shift_open_date done [18:57:25]produce_requested_data done [18:57:25]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166179,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:57:25]process_action_free close_receipt [18:57:25]json_value_free [18:57:25]json_value_free done [18:57:25]process_json_proto returns [18:57:25]Send response to host [18:57:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166179,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:57:25]free response buf [18:57:25]execute_script done [18:57:25]execute_script returns [18:57:25]free content buf [18:57:25]Sock 6.Close socket [18:57:25]Sock 6.Thread stoped [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:57:59]accept exits with 5 [18:57:59]New connection [18:57:59]New thread 3066920292 created [18:57:59]Thread 3066776932 joined [18:57:59]Waiting for new connection... [18:57:59] Sock 5.Parse request [18:57:59]Sock 5.Check first char [18:57:59]Sock 5.First char is OK [18:57:59]request: POST /json_proto HTTP/1.0 [18:57:59]Method: POST [18:57:59]URL: /json_proto [18:57:59]Method is POST - this is cgi request [18:57:59]url: /json_proto [18:57:59]query_string will be loaded in cgi processing [18:57:59]execute_cgi json_proto POST (null) [18:57:59]execute_cgi path=json_proto method=POST [18:57:59]POST find Content-Length [18:57:59]Host: 172.17.53.195:8080 [18:57:59]Content-Length: 682 [18:57:59]Content-Type: application/json [18:57:59] [18:57:59]POST finish read [18:57:59]Found Content-Length = 682 [18:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.890, "sum" : 1999.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:59]execute_script... [18:57: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)220751", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.890, "sum" : 1999.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:59]POST & json_proto [18:57:59]process_json_proto [18:57:59]json parsed OK: [18:57:59]protocol is kg_v1.0 [18:57:59]action value=close_receipt [18:57:59]process_action close_receipt [18:57:59]cmd_close_receipt [18:57:59]MH_GetDate [18:57:59]Write to MH i2c: F0 00 00 34 7E A1 [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: F0 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: F0 09 00 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: F0 09 00 34 7E 00 4B A4 16 67 21 48 4A 65 2E [18:57:59]GetLastDocTimeStamp 1729537060 [18:57:59]current date 1729537099 [18:57:59]FM_GetShiftState [18:57:59]SAM_PROTO_GetShiftState [18:57:59]wFMCommunicate request_size=4 [18:57:59]MH_SAM_APDU [18:57:59]CAPDU: 80 13 01 00 [18:57:59]Write to MH i2c: E2 08 00 35 7E 80 13 01 00 00 00 00 00 30 [18:57:59]Write i2c OK [18:57:59]MH_I2C_Read... [18:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:59]Read from MH i2c: E2 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: E2 0E 00 [18:57:59]MH_I2C_Read... [18:57:59]Read from MH i2c: E2 0E 00 35 7E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 39 [18:57:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:57:59]wFMCommunicate OK [18:57:59]SAM_PROTO_GetShiftState done [18:57:59]FM_GetShiftState done [18:57:59]opened in 1729470944 [18:57:59]opened+sec_in_day 1729557344 [18:57:59]quantity*price = 199964 [18:57:59]sum+1 = 199965 [18:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.35 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 291 21.10.2024 18:58 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166180 ФПД: 70450873673006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185819&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166180&fm=70450873673006&tin=02508201610067®Number=0000000000091764&sum=199900 [18:58:00]StoreToDocumentArchive [18:58:00]shift 535 fd 166180 [18:58:00]save to /storage/0535/doc_00166180 [18:58:00]save last doc name /storage/0535/doc_00166180 to /storage/kkm_last_doc_name [18:58:00]save OK [18:58:00]Clear old archive folders... [18:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:00]tlvbuf is 0190BF70 [18:58:00]SAM_PROTO_ClearQueue [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 09 00 00 [18:58:00]Write to MH i2c: E2 08 00 42 7E 80 09 00 00 00 00 00 00 32 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 42 7E 00 90 00 34 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]SAM_PROTO_ClearQueue done [18:58:00]KKMCreateOFDPacket [18:58:00]OFDProtocolAddRootSTLVToBuf [18:58:00]FM_MakeSignedData [18:58:00]FM_MakeSignedData [18:58:00]SAM_PROTO_SignData [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 0D 01 02 [18:58:00]Write to MH i2c: E2 08 00 43 7E 80 0D 01 02 00 00 00 00 3A [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 43 7E 00 90 00 35 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]wFMCommunicate request_size=255 [18:58:00]MH_SAM_APDU [18:58: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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 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 4B A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 89 02 00 35 04 06 00 40 [18:58:00]Write to MH i2c: E2 02 01 44 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 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 4B A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 89 02 00 35 04 06 00 40 00 00 8C [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 44 7E 00 90 00 36 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]wFMCommunicate request_size=10 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 0D 02 02 05 13 1F 4C A5 2E [18:58:00]Write to MH i2c: E2 0D 00 45 7E 80 0D 02 02 05 00 13 1F 4C A5 2E 00 00 98 [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:00]Read from MH i2c: E2 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 [18:58:00]MH_I2C_Read... [18:58:00]Read from MH i2c: E2 03 00 45 7E 00 90 00 37 [18:58:00]RAPDU: 90 00 [18:58:00]wFMCommunicate OK [18:58:00]wFMCommunicate request_size=4 [18:58:00]MH_SAM_APDU [18:58:00]CAPDU: 80 0D 03 02 [18:58:00]Write to MH i2c: E2 08 00 46 7E 80 0D 03 02 00 00 00 00 3F [18:58:00]Write i2c OK [18:58:00]MH_I2C_Read... [18:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:01]Read from MH i2c: E2 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 0B 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 0B 00 46 7E 00 FE 11 2C 7C 35 75 99 74 90 00 AE [18:58:01]RAPDU: FE 11 2C 7C 35 75 99 74 90 00 [18:58:01]wFMCommunicate OK [18:58:01]SAM_PROTO_SignData done [18:58:01]FM_MakeSignedData done [18:58:01]CreateOFDProtocolMessage [18:58:01]wFMCommunicate request_size=4 [18:58:01]MH_SAM_APDU [18:58:01]CAPDU: 80 11 00 00 [18:58:01]Write to MH i2c: E2 08 00 47 7E 80 11 00 00 00 00 00 00 3F [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:01]Read from MH i2c: E2 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 17 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: E2 17 00 47 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 97 [18:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:58:01]wFMCommunicate OK [18:58:01]CreateOFDProtocolMessage done [18:58:01]OFDSenderStorePacket 166180 [18:58:01]StoreOFDPacket docnum=166180 [18:58:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD E0 07 01 10 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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 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 4B A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 89 02 00 35 04 06 00 40 13 1F 4C A5 2E FE 11 2C 7C 35 75 99 74 [18:58:01]CheckFolder [18:58:01]dirname=/storage/ofd_packets [18:58:01]CheckFolder done [18:58:01]ProducePacketName [18:58:01]name=ofd_packets/00166180 [18:58:01]NVStorageSaveData ofd_packets/00166180 [18:58:01]File name is /storage/ofd_packets/00166180 [18:58:01]Write 301 bytes [18:58:01]NVStorageSaveData done [18:58:01]OFDSenderStorePacket done [18:58:01]KKMCreateOFDPacket done [18:58:01]NVStorageSaveData kkm_last_timestamp [18:58:01]File name is /storage/kkm_last_timestamp [18:58:01]Write 4 bytes [18:58:01]NVStorageSaveData done [18:58:01]ExternCall_PrintAddStr [18:58:01]wPrintStart [18:58:01]Write to MH i2c: 01 00 00 48 7E C6 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 48 7E 00 00 00 00 00 FF 0F DB [18:58:01]RasterBufferAndPrint [18:58:01]line Счет N : (1)220751 [18:58:01]line ИНН: 02508201610067 [18:58:01]line Контрольно-Кассовый Чек [18:58:01]line ПРОДАЖА [18:58:01]line ТРК (МРК, ГНК) : 13 [18:58:01]line Товар: 2710124130 [18:58:01]line Аи-92-К-5 [18:58:01]line 29.890 * 66.90 [18:58:01]line = 1999.64 [18:58:01]line НДС 12% НСП 1% [18:58:01]line > о реализуемом товаре [18:58:01]line ОКРУГЛЕНИЕ: -0.64 [18:58:01]line ИТОГО: 1999.00 [18:58:01]line Внесено: 2000.00 [18:58:01]line СДАЧА: 1.00 [18:58:01]line НСП 1% : 17.70 [18:58:01]line НДС 12% : 212.35 [18:58:01]line Наличными: 1999.00 [18:58:01]line Безнал.: 0.00 [18:58:01]line Место: АЗС № 161 "Партнер Нефть" [18:58:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [18:58:01]line СНО: Общий режим [18:58:01]line Чек 291 21.10.2024 18:58 [18:58:01]line Смена: 535 ФФД: 1.0 [18:58:01]line ЗНМ: 0300000104 [18:58:01]line РНМ: 0000000000091764 [18:58:01]line Версия ККМ: 001 [18:58:01]line ФМ: 0000000000871759 [18:58:01]line ФД: 166180 [18:58:01]line ФПД: 70450873673006 [18:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T185819&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166180&fm=70450873673006&tin=02508201610067®Number=0000000000091764&sum=199900 [18:58:01]OFD Sender: Processing packet 166180 [packets to send 48, broken 47] [18:58:01]ProducePacketName [18:58:01]name=ofd_packets/00166180 [18:58:01]OFD Sender: To server: pG, [18:58:01]CommunicateWithHost lk.salyk.kg:30040 [18:58:01]ConnectInit lk.salyk.kg [18:58:01]written 0, free lines is 4095 [18:58:01]Connected sock=9 [18:58:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 CD E0 07 01 10 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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 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 4B A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 89 02 00 35 04 06 00 40 13 1F 4C A5 2E FE 11 2C 7C 35 75 99 74 [18:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 98 91 47 00 A5 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 24 89 02 00 F4 03 04 00 B8 4A 16 67 B6 04 01 00 00 75 6A 70 33 2B 2E AD 17 [18:58:01]CommunicateWithHost err = 0 [18:58:01]CheckOFDResponse [18:58:01]1017 (14) - 77093643461234 [18:58:01]1041 (16) - 0000000000871759 [18:58:01]1040 (4) - 166180 [18:58:01]1012 (4) - 21.10.2024 12:36 [18:58:01]1206 (1) - 0 [18:58:01]OFD Sender: Remove packet 166180 [18:58:01]ProducePacketName [18:58:01]name=ofd_packets/00166180 [18:58:01]NVStorageDeleteData [18:58:01]Write to MH i2c: 01 00 00 73 7E F1 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: 01 07 00 73 7E 00 00 00 00 00 D4 0C D8 [18:58:01]RasterBufferAndPrint [18:58:01]line [18:58:01]line [18:58:01]line [18:58:01]line [18:58:01]line [18:58:01]written 0, free lines is 3289 [18:58:01]MH_Cut [18:58:01]Write to MH i2c: D1 01 00 7A 7E 01 CA [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: D1 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: D1 01 00 [18:58:01]MH_I2C_Read... [18:58:01]Read from MH i2c: D1 01 00 7A 7E 00 C9 [18:58:01]Write to MH i2c: 01 00 00 7B 7E F9 [18:58:01]Write i2c OK [18:58:01]MH_I2C_Read... [18:58:01]OFD Sender: No OFD packet to send [18:58:02]*** Cut start [18:58:02]*** Partial cut [18:58:02]*** CUTSNS_PIN = 1 [18:58:02]*** CUTSNS_PIN = 0 [18:58:02]*** Brake cut motor [18:58:02]Read from MH i2c: 01 [18:58:02]MH_I2C_Read... [18:58:02]*** Stop cut motor [18:58:02]*** Cut end [18:58:02]Read from MH i2c: 01 07 00 [18:58:02]MH_I2C_Read... [18:58:02]Read from MH i2c: 01 07 00 7B 7E 00 00 00 00 00 FF 0F 0E [18:58:02]process_action close_receipt done [18:58:02]requested_data is exist [18:58:02]produce_requested_data [18:58:02]requested_item fm.sn is exist - process it [18:58:02]wFMCommunicate request_size=4 [18:58:02]MH_SAM_APDU [18:58:02]CAPDU: 80 11 00 00 [18:58:02]Write to MH i2c: E2 08 00 7C 7E 80 11 00 00 00 00 00 00 74 [18:58:02]Write i2c OK [18:58:02]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 17 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 17 00 7C 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CC [18:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [18:58:03]wFMCommunicate OK [18:58:03]requested_item fd.num is exist - process it [18:58:03]SAM_PROTO_GetFieldsCounters [18:58:03]wFMCommunicate request_size=4 [18:58:03]MH_SAM_APDU [18:58:03]CAPDU: 80 13 00 00 [18:58:03]Write to MH i2c: E2 08 00 7D 7E 80 13 00 00 00 00 00 00 77 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 62 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 62 00 7D 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [18:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 24 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:03]wFMCommunicate OK [18:58:03]SAM_PROTO_GetFieldsCounters done [18:58:03]requested_item shift.num is exist - process it [18:58:03]requested_item shift.opened is exist - process it [18:58:03]req_shift_opened [18:58:03]FM_GetShiftState [18:58:03]SAM_PROTO_GetShiftState [18:58:03]wFMCommunicate request_size=4 [18:58:03]MH_SAM_APDU [18:58:03]CAPDU: 80 13 01 00 [18:58:03]Write to MH i2c: E2 08 00 7E 7E 80 13 01 00 00 00 00 00 79 [18:58:03]Write i2c OK [18:58:03]MH_I2C_Read... [18:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:03]Read from MH i2c: E2 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 0E 00 [18:58:03]MH_I2C_Read... [18:58:03]Read from MH i2c: E2 0E 00 7E 7E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 82 [18:58:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [18:58:03]wFMCommunicate OK [18:58:03]SAM_PROTO_GetShiftState done [18:58:03]FM_GetShiftState done [18:58:03]req_shift_opened done [18:58:03]requested_item shift.open_date is exist - process it [18:58:03]req_shift_open_date [18:58:03]req_shift_open_date done [18:58:03]produce_requested_data done [18:58:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166180,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [18:58:03]process_action_free close_receipt [18:58:03]json_value_free [18:58:03]json_value_free done [18:58:03]process_json_proto returns [18:58:03]Send response to host [18:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166180,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [18:58:03]free response buf [18:58:03]execute_script done [18:58:03]execute_script returns [18:58:03]free content buf [18:58:03]Sock 5.Close socket [18:58:03]Sock 5.Thread stoped [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59: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: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:52]accept exits with 6 [19:00:52]New connection [19:00:52]New thread 3066776932 created [19:00:52]Thread 3066920292 joined [19:00:52]Waiting for new connection... [19:00:52] Sock 6.Parse request [19:00:52]Sock 6.Check first char [19:00:52]Sock 6.First char is OK [19:00:52]request: POST /json_proto HTTP/1.0 [19:00:52]Method: POST [19:00:52]URL: /json_proto [19:00:52]Method is POST - this is cgi request [19:00:52]url: /json_proto [19:00:52]query_string will be loaded in cgi processing [19:00:52]execute_cgi json_proto POST (null) [19:00:52]execute_cgi path=json_proto method=POST [19:00:52]POST find Content-Length [19:00:52]Host: 172.17.53.195:8080 [19:00:52]Content-Length: 679 [19:00:52]Content-Type: application/json [19:00:52] [19:00:52]POST finish read [19:00:52]Found Content-Length = 679 [19:00:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:52]execute_script... [19: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)220752", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:52]POST & json_proto [19:00:52]process_json_proto [19:00:52]json parsed OK: [19:00:52]protocol is kg_v1.0 [19:00:52]action value=close_receipt [19:00:52]process_action close_receipt [19:00:52]cmd_close_receipt [19:00:52]MH_GetDate [19:00:52]Write to MH i2c: F0 00 00 7F 7E EC [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: F0 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: F0 09 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: F0 09 00 7F 7E 00 F8 A4 16 67 21 48 4A 65 26 [19:00:52]GetLastDocTimeStamp 1729537099 [19:00:52]current date 1729537272 [19:00:52]FM_GetShiftState [19:00:52]SAM_PROTO_GetShiftState [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 13 01 00 [19:00:52]Write to MH i2c: E2 08 00 80 7E 80 13 01 00 00 00 00 00 7B [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 0E 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 0E 00 80 7E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 84 [19:00:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:00:52]wFMCommunicate OK [19:00:52]SAM_PROTO_GetShiftState done [19:00:52]FM_GetShiftState done [19:00:52]opened in 1729470944 [19:00:52]opened+sec_in_day 1729557344 [19:00:52]quantity*price = 100050 [19:00:52]sum+1 = 100052 [19:00:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 292 21.10.2024 19:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166181 ФПД: 165419645491630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190112&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166181&fm=165419645491630&tin=02508201610067®Number=0000000000091764&sum=100000 [19:00:53]StoreToDocumentArchive [19:00:53]shift 535 fd 166181 [19:00:53]save to /storage/0535/doc_00166181 [19:00:53]save last doc name /storage/0535/doc_00166181 to /storage/kkm_last_doc_name [19:00:53]save OK [19:00:53]Clear old archive folders... [19:00:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:00:53]tlvbuf is 0165D430 [19:00:53]SAM_PROTO_ClearQueue [19:00:53]wFMCommunicate request_size=4 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 09 00 00 [19:00:53]Write to MH i2c: E2 08 00 8D 7E 80 09 00 00 00 00 00 00 7D [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:53]Read from MH i2c: E2 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 03 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 03 00 8D 7E 00 90 00 7F [19:00:53]RAPDU: 90 00 [19:00:53]wFMCommunicate OK [19:00:53]SAM_PROTO_ClearQueue done [19:00:53]KKMCreateOFDPacket [19:00:53]OFDProtocolAddRootSTLVToBuf [19:00:53]FM_MakeSignedData [19:00:53]FM_MakeSignedData [19:00:53]SAM_PROTO_SignData [19:00:53]wFMCommunicate request_size=4 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 0D 01 02 [19:00:53]Write to MH i2c: E2 08 00 8E 7E 80 0D 01 02 00 00 00 00 85 [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:53]Read from MH i2c: E2 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 03 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 03 00 8E 7E 00 90 00 80 [19:00:53]RAPDU: 90 00 [19:00:53]wFMCommunicate OK [19:00:53]wFMCommunicate request_size=255 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 01 00 00 F4 03 04 00 F8 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 89 02 00 35 04 06 00 96 72 C3 35 [19:00:53]Write to MH i2c: E2 02 01 8F 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 F8 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 89 02 00 35 04 06 00 96 72 C3 35 00 00 18 [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 8F 7E 00 90 00 81 [19:00:54]RAPDU: 90 00 [19:00:54]wFMCommunicate OK [19:00:54]wFMCommunicate request_size=7 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 0D 02 02 02 59 AE [19:00:54]Write to MH i2c: E2 0A 00 90 7E 80 0D 02 02 02 00 59 AE 00 00 93 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 03 00 90 7E 00 90 00 82 [19:00:54]RAPDU: 90 00 [19:00:54]wFMCommunicate OK [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 0D 03 02 [19:00:54]Write to MH i2c: E2 08 00 91 7E 80 0D 03 02 00 00 00 00 8A [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 0B 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 0B 00 91 7E 00 76 D7 77 07 7B A0 11 A8 90 00 2A [19:00:54]RAPDU: 76 D7 77 07 7B A0 11 A8 90 00 [19:00:54]wFMCommunicate OK [19:00:54]SAM_PROTO_SignData done [19:00:54]FM_MakeSignedData done [19:00:54]CreateOFDProtocolMessage [19:00:54]wFMCommunicate request_size=4 [19:00:54]MH_SAM_APDU [19:00:54]CAPDU: 80 11 00 00 [19:00:54]Write to MH i2c: E2 08 00 92 7E 80 11 00 00 00 00 00 00 8A [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:54]Read from MH i2c: E2 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 17 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: E2 17 00 92 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E2 [19:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:00:54]wFMCommunicate OK [19:00:54]CreateOFDProtocolMessage done [19:00:54]OFDSenderStorePacket 166181 [19:00:54]StoreOFDPacket docnum=166181 [19:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 04 2C 04 01 DD 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 01 00 00 F4 03 04 00 F8 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 89 02 00 35 04 06 00 96 72 C3 35 59 AE 76 D7 77 07 7B A0 11 A8 [19:00:54]CheckFolder [19:00:54]dirname=/storage/ofd_packets [19:00:54]CheckFolder done [19:00:54]ProducePacketName [19:00:54]name=ofd_packets/00166181 [19:00:54]NVStorageSaveData ofd_packets/00166181 [19:00:54]File name is /storage/ofd_packets/00166181 [19:00:54]Write 298 bytes [19:00:54]NVStorageSaveData done [19:00:54]OFDSenderStorePacket done [19:00:54]KKMCreateOFDPacket done [19:00:54]NVStorageSaveData kkm_last_timestamp [19:00:54]File name is /storage/kkm_last_timestamp [19:00:54]Write 4 bytes [19:00:54]NVStorageSaveData done [19:00:54]ExternCall_PrintAddStr [19:00:54]wPrintStart [19:00:54]Write to MH i2c: 01 00 00 93 7E 11 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 07 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 07 00 93 7E 00 00 00 00 00 FF 0F 26 [19:00:54]RasterBufferAndPrint [19:00:54]line Счет N : (1)220752 [19:00:54]line ИНН: 02508201610067 [19:00:54]line Контрольно-Кассовый Чек [19:00:54]line ПРОДАЖА [19:00:54]line ТРК (МРК, ГНК) : 11 [19:00:54]line Товар: 2710194210 [19:00:54]line ДТ-К-5 [19:00:54]line 13.130 * 76.20 [19:00:54]line = 1000.51 [19:00:54]line НДС 12% НСП 1% [19:00:54]line > о реализуемом товаре [19:00:54]line ОКРУГЛЕНИЕ: -0.51 [19:00:54]line ИТОГО: 1000.00 [19:00:54]line Внесено: 1000.00 [19:00:54]line СДАЧА: 0.00 [19:00:54]line НСП 1% : 8.85 [19:00:54]line НДС 12% : 106.25 [19:00:54]line Наличными: 1000.00 [19:00:54]line Безнал.: 0.00 [19:00:54]line Место: АЗС № 161 "Партнер Нефть" [19:00:54]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:00:54]line СНО: Общий режим [19:00:54]line Чек 292 21.10.2024 19:01 [19:00:54]line Смена: 535 ФФД: 1.0 [19:00:54]line ЗНМ: 0300000104 [19:00:54]line РНМ: 0000000000091764 [19:00:54]line Версия ККМ: 001 [19:00:54]line ФМ: 0000000000871759 [19:00:54]line ФД: 166181 [19:00:54]line ФПД: 165419645491630 [19:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T190112&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166181&fm=165419645491630&tin=02508201610067®Number=0000000000091764&sum=100000 [19:00:54]OFD Sender: Processing packet 166181 [packets to send 48, broken 47] [19:00:54]ProducePacketName [19:00:54]name=ofd_packets/00166181 [19:00:54]OFD Sender: To server: pG, [19:00:54]CommunicateWithHost lk.salyk.kg:30040 [19:00:54]ConnectInit lk.salyk.kg [19:00:54]written 0, free lines is 4095 [19:00:54]Connected sock=7 [19: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 35 39 0C 01 00 00 04 2C 04 01 DD 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 24 01 00 00 F4 03 04 00 F8 A4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 25 89 02 00 35 04 06 00 96 72 C3 35 59 AE 76 D7 77 07 7B A0 11 A8 [19: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 35 39 4F 00 00 00 08 4C 47 00 A7 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 35 39 10 04 04 00 25 89 02 00 F4 03 04 00 65 4B 16 67 B6 04 01 00 00 B0 34 07 EB 53 22 A1 0B [19:00:54]CommunicateWithHost err = 0 [19:00:54]CheckOFDResponse [19:00:54]1017 (14) - 77093643461234 [19:00:54]1041 (16) - 0000000000871759 [19:00:54]1040 (4) - 166181 [19:00:54]1012 (4) - 21.10.2024 12:39 [19:00:54]1206 (1) - 0 [19:00:54]OFD Sender: Remove packet 166181 [19:00:54]ProducePacketName [19:00:54]name=ofd_packets/00166181 [19:00:54]NVStorageDeleteData [19:00:54]Write to MH i2c: 01 00 00 BE 7E 3C [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 07 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: 01 07 00 BE 7E 00 00 00 00 00 CC 0C 1B [19:00:54]RasterBufferAndPrint [19:00:54]line [19:00:54]line [19:00:54]line [19:00:54]line [19:00:54]line [19:00:54]written 0, free lines is 3283 [19:00:54]MH_Cut [19:00:54]Write to MH i2c: D1 01 00 C5 7E 01 15 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: D1 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: D1 01 00 [19:00:54]MH_I2C_Read... [19:00:54]Read from MH i2c: D1 01 00 C5 7E 00 14 [19:00:54]Write to MH i2c: 01 00 00 C6 7E 44 [19:00:54]Write i2c OK [19:00:54]MH_I2C_Read... [19:00:55]OFD Sender: No OFD packet to send [19:00:55]*** Cut start [19:00:55]*** Partial cut [19:00:55]*** CUTSNS_PIN = 1 [19:00:55]*** CUTSNS_PIN = 0 [19:00:56]*** Brake cut motor [19:00:56]Read from MH i2c: 01 [19:00:56]MH_I2C_Read... [19:00:56]*** Stop cut motor [19:00:56]*** Cut end [19:00:56]Read from MH i2c: 01 07 00 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: 01 07 00 C6 7E 00 00 00 00 00 FF 0F 59 [19:00:56]process_action close_receipt done [19:00:56]requested_data is exist [19:00:56]produce_requested_data [19:00:56]requested_item fm.sn is exist - process it [19:00:56]wFMCommunicate request_size=4 [19:00:56]MH_SAM_APDU [19:00:56]CAPDU: 80 11 00 00 [19:00:56]Write to MH i2c: E2 08 00 C7 7E 80 11 00 00 00 00 00 00 BF [19:00:56]Write i2c OK [19:00:56]MH_I2C_Read... [19:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:56]Read from MH i2c: E2 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: E2 17 00 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: E2 17 00 C7 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 17 [19:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:00:56]wFMCommunicate OK [19:00:56]requested_item fd.num is exist - process it [19:00:56]SAM_PROTO_GetFieldsCounters [19:00:56]wFMCommunicate request_size=4 [19:00:56]MH_SAM_APDU [19:00:56]CAPDU: 80 13 00 00 [19:00:56]Write to MH i2c: E2 08 00 C8 7E 80 13 00 00 00 00 00 00 C2 [19:00:56]Write i2c OK [19:00:56]MH_I2C_Read... [19:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:56]Read from MH i2c: E2 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: E2 62 00 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: E2 62 00 C8 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [19: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 25 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:56]wFMCommunicate OK [19:00:56]SAM_PROTO_GetFieldsCounters done [19:00:56]requested_item shift.num is exist - process it [19:00:56]requested_item shift.opened is exist - process it [19:00:56]req_shift_opened [19:00:56]FM_GetShiftState [19:00:56]SAM_PROTO_GetShiftState [19:00:56]wFMCommunicate request_size=4 [19:00:56]MH_SAM_APDU [19:00:56]CAPDU: 80 13 01 00 [19:00:56]Write to MH i2c: E2 08 00 C9 7E 80 13 01 00 00 00 00 00 C4 [19:00:56]Write i2c OK [19:00:56]MH_I2C_Read... [19:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:56]Read from MH i2c: E2 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: E2 0E 00 [19:00:56]MH_I2C_Read... [19:00:56]Read from MH i2c: E2 0E 00 C9 7E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CD [19:00:56]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:00:56]wFMCommunicate OK [19:00:56]SAM_PROTO_GetShiftState done [19:00:56]FM_GetShiftState done [19:00:56]req_shift_opened done [19:00:56]requested_item shift.open_date is exist - process it [19:00:56]req_shift_open_date [19:00:56]req_shift_open_date done [19:00:56]produce_requested_data done [19:00:56]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166181,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:00:56]process_action_free close_receipt [19:00:56]json_value_free [19:00:56]json_value_free done [19:00:56]process_json_proto returns [19:00:56]Send response to host [19:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166181,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:00:56]free response buf [19:00:56]execute_script done [19:00:56]execute_script returns [19:00:56]free content buf [19:00:56]Sock 6.Close socket [19:00:56]Sock 6.Thread stoped [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05: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:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:37]accept exits with 5 [19:12:37]New connection [19:12:37]New thread 3066920292 created [19:12:37]Thread 3066776932 joined [19:12:37]Waiting for new connection... [19:12:37] Sock 5.Parse request [19:12:37]Sock 5.Check first char [19:12:37]Sock 5.First char is OK [19:12:37]request: POST /json_proto HTTP/1.0 [19:12:37]Method: POST [19:12:37]URL: /json_proto [19:12:37]Method is POST - this is cgi request [19:12:37]url: /json_proto [19:12:37]query_string will be loaded in cgi processing [19:12:37]execute_cgi json_proto POST (null) [19:12:37]execute_cgi path=json_proto method=POST [19:12:37]POST find Content-Length [19:12:37]Host: 172.17.53.195:8080 [19:12:37]Content-Length: 677 [19:12:37]Content-Type: application/json [19:12:37] [19:12:37]POST finish read [19:12:37]Found Content-Length = 677 [19:12:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:37]execute_script... [19:12:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220753", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:37]POST & json_proto [19:12:37]process_json_proto [19:12:37]json parsed OK: [19:12:37]protocol is kg_v1.0 [19:12:37]action value=close_receipt [19:12:37]process_action close_receipt [19:12:37]cmd_close_receipt [19:12:37]MH_GetDate [19:12:37]Write to MH i2c: F0 00 00 CA 7E 37 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: F0 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: F0 09 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: F0 09 00 CA 7E 00 B9 A7 16 67 21 48 4A 65 35 [19:12:37]GetLastDocTimeStamp 1729537272 [19:12:37]current date 1729537977 [19:12:37]FM_GetShiftState [19:12:37]SAM_PROTO_GetShiftState [19:12:37]wFMCommunicate request_size=4 [19:12:37]MH_SAM_APDU [19:12:37]CAPDU: 80 13 01 00 [19:12:37]Write to MH i2c: E2 08 00 CB 7E 80 13 01 00 00 00 00 00 C6 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:37]Read from MH i2c: E2 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 0E 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: E2 0E 00 CB 7E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CF [19:12:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:12:37]wFMCommunicate OK [19:12:37]SAM_PROTO_GetShiftState done [19:12:37]FM_GetShiftState done [19:12:37]opened in 1729470944 [19:12:37]opened+sec_in_day 1729557344 [19:12:37]quantity*price = 30038 [19:12:37]sum+1 = 30039 [19:12:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 293 21.10.2024 19:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166182 ФПД: 109969666191132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166182&fm=109969666191132&tin=02508201610067®Number=0000000000091764&sum=30000 [19:12:39]StoreToDocumentArchive [19:12:39]shift 535 fd 166182 [19:12:39]save to /storage/0535/doc_00166182 [19:12:39]save last doc name /storage/0535/doc_00166182 to /storage/kkm_last_doc_name [19:12:39]save OK [19:12:39]Clear old archive folders... [19:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:39]tlvbuf is 0162ECF0 [19:12:39]SAM_PROTO_ClearQueue [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 09 00 00 [19:12:39]Write to MH i2c: E2 08 00 D8 7E 80 09 00 00 00 00 00 00 C8 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 D8 7E 00 90 00 CA [19:12:39]RAPDU: 90 00 [19:12:39]wFMCommunicate OK [19:12:39]SAM_PROTO_ClearQueue done [19:12:39]KKMCreateOFDPacket [19:12:39]OFDProtocolAddRootSTLVToBuf [19:12:39]FM_MakeSignedData [19:12:39]FM_MakeSignedData [19:12:39]SAM_PROTO_SignData [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 0D 01 02 [19:12:39]Write to MH i2c: E2 08 00 D9 7E 80 0D 01 02 00 00 00 00 D0 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 D9 7E 00 90 00 CB [19:12:39]RAPDU: 90 00 [19:12:39]wFMCommunicate OK [19:12:39]wFMCommunicate request_size=255 [19:12:39]MH_SAM_APDU [19:12: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 B9 A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 89 02 00 35 04 06 00 64 [19:12:39]Write to MH i2c: E2 02 01 DA 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 B9 A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 89 02 00 35 04 06 00 64 00 00 8B [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:39]Read from MH i2c: E2 03 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 DA 7E 00 90 00 CC [19:12:39]RAPDU: 90 00 [19:12:39]wFMCommunicate OK [19:12:39]wFMCommunicate request_size=10 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 0D 02 02 05 04 4E E3 AF 1C [19:12:39]Write to MH i2c: E2 0D 00 DB 7E 80 0D 02 02 05 00 04 4E E3 AF 1C 00 00 DD [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 03 00 DB 7E 00 90 00 CD [19:12:39]RAPDU: 90 00 [19:12:39]wFMCommunicate OK [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 0D 03 02 [19:12:39]Write to MH i2c: E2 08 00 DC 7E 80 0D 03 02 00 00 00 00 D5 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 0B 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 0B 00 DC 7E 00 15 BA 8A 98 E3 8A 97 8A 90 00 55 [19:12:39]RAPDU: 15 BA 8A 98 E3 8A 97 8A 90 00 [19:12:39]wFMCommunicate OK [19:12:39]SAM_PROTO_SignData done [19:12:39]FM_MakeSignedData done [19:12:39]CreateOFDProtocolMessage [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 11 00 00 [19:12:39]Write to MH i2c: E2 08 00 DD 7E 80 11 00 00 00 00 00 00 D5 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 17 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 17 00 DD 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2D [19:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:12:39]wFMCommunicate OK [19:12:39]CreateOFDProtocolMessage done [19:12:39]OFDSenderStorePacket 166182 [19:12:39]StoreOFDPacket docnum=166182 [19:12:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 CE 07 01 EF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 B9 A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 89 02 00 35 04 06 00 64 04 4E E3 AF 1C 15 BA 8A 98 E3 8A 97 8A [19:12:39]CheckFolder [19:12:39]dirname=/storage/ofd_packets [19:12:39]CheckFolder done [19:12:39]ProducePacketName [19:12:39]name=ofd_packets/00166182 [19:12:39]NVStorageSaveData ofd_packets/00166182 [19:12:39]File name is /storage/ofd_packets/00166182 [19:12:39]Write 301 bytes [19:12:39]NVStorageSaveData done [19:12:39]OFDSenderStorePacket done [19:12:39]KKMCreateOFDPacket done [19:12:39]NVStorageSaveData kkm_last_timestamp [19:12:39]File name is /storage/kkm_last_timestamp [19:12:39]Write 4 bytes [19:12:39]NVStorageSaveData done [19:12:39]ExternCall_PrintAddStr [19:12:39]wPrintStart [19:12:39]Write to MH i2c: 01 00 00 DE 7E 5C [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: 01 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: 01 07 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: 01 07 00 DE 7E 00 00 00 00 00 FF 0F 71 [19:12:39]RasterBufferAndPrint [19:12:39]line Счет N : (1)220753 [19:12:39]line ИНН: 02508201610067 [19:12:39]line Контрольно-Кассовый Чек [19:12:39]line ПРОДАЖА [19:12:39]line ТРК (МРК, ГНК) : 33 [19:12:39]line Товар: 2710124130 [19:12:39]line Аи-92-К-5 [19:12:39]line 4.490 * 66.90 [19:12:39]line = 300.38 [19:12:39]line НДС 12% НСП 1% [19:12:39]line > о реализуемом товаре [19:12:39]line ОКРУГЛЕНИЕ: -0.38 [19:12:39]line ИТОГО: 300.00 [19:12:39]line Внесено: 300.00 [19:12:39]line СДАЧА: 0.00 [19:12:39]line НСП 1% : 2.66 [19:12:39]line НДС 12% : 31.90 [19:12:39]line Наличными: 300.00 [19:12:39]line Безнал.: 0.00 [19:12:39]line Место: АЗС № 161 "Партнер Нефть" [19:12:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:12:39]line СНО: Общий режим [19:12:39]line Чек 293 21.10.2024 19:12 [19:12:39]line Смена: 535 ФФД: 1.0 [19:12:39]line ЗНМ: 0300000104 [19:12:39]line РНМ: 0000000000091764 [19:12:39]line Версия ККМ: 001 [19:12:39]line ФМ: 0000000000871759 [19:12:39]line ФД: 166182 [19:12:39]line ФПД: 109969666191132 [19:12:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191257&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166182&fm=109969666191132&tin=02508201610067®Number=0000000000091764&sum=30000 [19:12:39]OFD Sender: Processing packet 166182 [packets to send 48, broken 47] [19:12:39]ProducePacketName [19:12:39]name=ofd_packets/00166182 [19:12:39]OFD Sender: To server: pG, [19:12:39]CommunicateWithHost lk.salyk.kg:30040 [19:12:39]ConnectInit lk.salyk.kg [19:12:39]written 0, free lines is 4095 [19:12:40]Connected sock=7 [19:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 23 CE 07 01 EF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 B9 A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 89 02 00 35 04 06 00 64 04 4E E3 AF 1C 15 BA 8A 98 E3 8A 97 8A [19:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 61 46 47 00 B7 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 26 89 02 00 F4 03 04 00 27 4E 16 67 B6 04 01 00 00 B4 27 EF 73 16 D3 27 F2 [19:12:40]CommunicateWithHost err = 0 [19:12:40]CheckOFDResponse [19:12:40]1017 (14) - 77093643461234 [19:12:40]1041 (16) - 0000000000871759 [19:12:40]1040 (4) - 166182 [19:12:40]1012 (4) - 21.10.2024 12:50 [19:12:40]1206 (1) - 0 [19:12:40]OFD Sender: Remove packet 166182 [19:12:40]ProducePacketName [19:12:40]name=ofd_packets/00166182 [19:12:40]NVStorageDeleteData [19:12:40]Write to MH i2c: 01 00 00 09 7F 88 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: 01 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: 01 07 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: 01 07 00 09 7F 00 00 00 00 00 D3 0C 6E [19:12:40]RasterBufferAndPrint [19:12:40]line [19:12:40]line [19:12:40]line [19:12:40]line [19:12:40]line [19:12:40]written 0, free lines is 3290 [19:12:40]MH_Cut [19:12:40]Write to MH i2c: D1 01 00 10 7F 01 61 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: D1 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: D1 01 00 [19:12:40]MH_I2C_Read... [19:12:40]Read from MH i2c: D1 01 00 10 7F 00 60 [19:12:40]Write to MH i2c: 01 00 00 11 7F 90 [19:12:40]Write i2c OK [19:12:40]MH_I2C_Read... [19:12:40]OFD Sender: No OFD packet to send [19:12:41]*** Cut start [19:12:41]*** Partial cut [19:12:41]*** CUTSNS_PIN = 1 [19:12:41]*** CUTSNS_PIN = 0 [19:12:41]*** Brake cut motor [19:12:41]Read from MH i2c: 01 [19:12:41]MH_I2C_Read... [19:12:41]*** Stop cut motor [19:12:41]*** Cut end [19:12:41]Read from MH i2c: 01 07 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: 01 07 00 11 7F 00 00 00 00 00 FF 0F A5 [19:12:41]process_action close_receipt done [19:12:41]requested_data is exist [19:12:41]produce_requested_data [19:12:41]requested_item fm.sn is exist - process it [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 11 00 00 [19:12:41]Write to MH i2c: E2 08 00 12 7F 80 11 00 00 00 00 00 00 0B [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:41]Read from MH i2c: E2 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 17 00 [19:12:41]MH_I2C_Read... [19:12:41]Read from MH i2c: E2 17 00 12 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 63 [19:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:12:41]wFMCommunicate OK [19:12:41]requested_item fd.num is exist - process it [19:12:41]SAM_PROTO_GetFieldsCounters [19:12:41]wFMCommunicate request_size=4 [19:12:41]MH_SAM_APDU [19:12:41]CAPDU: 80 13 00 00 [19:12:41]Write to MH i2c: E2 08 00 13 7F 80 13 00 00 00 00 00 00 0E [19:12:41]Write i2c OK [19:12:41]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 62 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 62 00 13 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [19:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 26 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_GetFieldsCounters done [19:12:42]requested_item shift.num is exist - process it [19:12:42]requested_item shift.opened is exist - process it [19:12:42]req_shift_opened [19:12:42]FM_GetShiftState [19:12:42]SAM_PROTO_GetShiftState [19:12:42]wFMCommunicate request_size=4 [19:12:42]MH_SAM_APDU [19:12:42]CAPDU: 80 13 01 00 [19:12:42]Write to MH i2c: E2 08 00 14 7F 80 13 01 00 00 00 00 00 10 [19:12:42]Write i2c OK [19:12:42]MH_I2C_Read... [19:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:42]Read from MH i2c: E2 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0E 00 [19:12:42]MH_I2C_Read... [19:12:42]Read from MH i2c: E2 0E 00 14 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 19 [19:12:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:12:42]wFMCommunicate OK [19:12:42]SAM_PROTO_GetShiftState done [19:12:42]FM_GetShiftState done [19:12:42]req_shift_opened done [19:12:42]requested_item shift.open_date is exist - process it [19:12:42]req_shift_open_date [19:12:42]req_shift_open_date done [19:12:42]produce_requested_data done [19:12:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166182,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:12:42]process_action_free close_receipt [19:12:42]json_value_free [19:12:42]json_value_free done [19:12:42]process_json_proto returns [19:12:42]Send response to host [19:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166182,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:12:42]free response buf [19:12:42]execute_script done [19:12:42]execute_script returns [19:12:42]free content buf [19:12:42]Sock 5.Close socket [19:12:42]Sock 5.Thread stoped [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:12:59]accept exits with 6 [19:12:59]New connection [19:12:59]New thread 3066776932 created [19:12:59]Thread 3066920292 joined [19:12:59]Waiting for new connection... [19:12:59] Sock 6.Parse request [19:12:59]Sock 6.Check first char [19:12:59]Sock 6.First char is OK [19:12:59]request: POST /json_proto HTTP/1.0 [19:12:59]Method: POST [19:12:59]URL: /json_proto [19:12:59]Method is POST - this is cgi request [19:12:59]url: /json_proto [19:12:59]query_string will be loaded in cgi processing [19:12:59]execute_cgi json_proto POST (null) [19:12:59]execute_cgi path=json_proto method=POST [19:12:59]POST find Content-Length [19:12:59]Host: 172.17.53.195:8080 [19:12:59]Content-Length: 769 [19:12:59]Content-Type: application/json [19:12:59] [19:12:59]POST finish read [19:12:59]Found Content-Length = 769 [19:12:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]execute_script... [19:12:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:59]POST & json_proto [19:12:59]process_json_proto [19:12:59]json parsed OK: [19:12:59]protocol is kg_v1.0 [19:12:59]action value=close_receipt [19:12:59]process_action close_receipt [19:12:59]cmd_close_receipt [19:12:59]MH_GetDate [19:12:59]Write to MH i2c: F0 00 00 15 7F 83 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: F0 09 00 15 7F 00 CF A7 16 67 21 48 4A 65 97 [19:12:59]GetLastDocTimeStamp 1729537977 [19:12:59]current date 1729537999 [19:12:59]FM_GetShiftState [19:12:59]SAM_PROTO_GetShiftState [19:12:59]wFMCommunicate request_size=4 [19:12:59]MH_SAM_APDU [19:12:59]CAPDU: 80 13 01 00 [19:12:59]Write to MH i2c: E2 08 00 16 7F 80 13 01 00 00 00 00 00 12 [19:12:59]Write i2c OK [19:12:59]MH_I2C_Read... [19:12:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:59]Read from MH i2c: E2 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 [19:12:59]MH_I2C_Read... [19:12:59]Read from MH i2c: E2 0E 00 16 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1B [19:12:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:12:59]wFMCommunicate OK [19:12:59]SAM_PROTO_GetShiftState done [19:12:59]FM_GetShiftState done [19:12:59]opened in 1729470944 [19:12:59]opened+sec_in_day 1729557344 [19:12:59]quantity*price = 100015 [19:12:59]sum+1 = 100017 [19:12:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 294 21.10.2024 19:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166183 ФПД: 215736626005414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166183&fm=215736626005414&tin=02508201610067®Number=0000000000091764&sum=100016 [19:13:00]StoreToDocumentArchive [19:13:00]shift 535 fd 166183 [19:13:00]save to /storage/0535/doc_00166183 [19:13:00]save last doc name /storage/0535/doc_00166183 to /storage/kkm_last_doc_name [19:13:00]save OK [19:13:00]Clear old archive folders... [19:13:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:00]tlvbuf is 014FEA50 [19:13:00]SAM_PROTO_ClearQueue [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 09 00 00 [19:13:00]Write to MH i2c: E2 08 00 23 7F 80 09 00 00 00 00 00 00 14 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 23 7F 00 90 00 16 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_ClearQueue done [19:13:00]KKMCreateOFDPacket [19:13:00]OFDProtocolAddRootSTLVToBuf [19:13:00]FM_MakeSignedData [19:13:00]FM_MakeSignedData [19:13:00]SAM_PROTO_SignData [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 01 02 [19:13:00]Write to MH i2c: E2 08 00 24 7F 80 0D 01 02 00 00 00 00 1C [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 24 7F 00 90 00 17 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=255 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 89 02 00 35 04 06 00 C4 [19:13:00]Write to MH i2c: E2 02 01 25 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 89 02 00 35 04 06 00 C4 00 00 75 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]OFD Sender: No OFD packet to send [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 25 7F 00 90 00 18 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=10 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 02 02 05 36 18 F5 45 A6 [19:13:00]Write to MH i2c: E2 0D 00 26 7F 80 0D 02 02 05 00 36 18 F5 45 A6 00 00 57 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 03 00 26 7F 00 90 00 19 [19:13:00]RAPDU: 90 00 [19:13:00]wFMCommunicate OK [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 0D 03 02 [19:13:00]Write to MH i2c: E2 08 00 27 7F 80 0D 03 02 00 00 00 00 21 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:00]Read from MH i2c: E2 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 [19:13:00]MH_I2C_Read... [19:13:00]Read from MH i2c: E2 0B 00 27 7F 00 E1 3A 09 1D A3 51 2F FA 90 00 80 [19:13:00]RAPDU: E1 3A 09 1D A3 51 2F FA 90 00 [19:13:00]wFMCommunicate OK [19:13:00]SAM_PROTO_SignData done [19:13:00]FM_MakeSignedData done [19:13:00]CreateOFDProtocolMessage [19:13:00]wFMCommunicate request_size=4 [19:13:00]MH_SAM_APDU [19:13:00]CAPDU: 80 11 00 00 [19:13:00]Write to MH i2c: E2 08 00 28 7F 80 11 00 00 00 00 00 00 21 [19:13:00]Write i2c OK [19:13:00]MH_I2C_Read... [19:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:01]Read from MH i2c: E2 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 17 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: E2 17 00 28 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 79 [19:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:01]wFMCommunicate OK [19:13:01]CreateOFDProtocolMessage done [19:13:01]OFDSenderStorePacket 166183 [19:13:01]StoreOFDPacket docnum=166183 [19:13:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F 2B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 89 02 00 35 04 06 00 C4 36 18 F5 45 A6 E1 3A 09 1D A3 51 2F FA [19:13:01]CheckFolder [19:13:01]dirname=/storage/ofd_packets [19:13:01]CheckFolder done [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00166183 [19:13:01]NVStorageSaveData ofd_packets/00166183 [19:13:01]File name is /storage/ofd_packets/00166183 [19:13:01]Write 301 bytes [19:13:01]NVStorageSaveData done [19:13:01]OFDSenderStorePacket done [19:13:01]KKMCreateOFDPacket done [19:13:01]NVStorageSaveData kkm_last_timestamp [19:13:01]File name is /storage/kkm_last_timestamp [19:13:01]Write 4 bytes [19:13:01]NVStorageSaveData done [19:13:01]ExternCall_PrintAddStr [19:13:01]wPrintStart [19:13:01]Write to MH i2c: 01 00 00 29 7F A8 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 29 7F 00 00 00 00 00 FF 0F BD [19:13:01]RasterBufferAndPrint [19:13:01]line Счет N : (1)220754 [19:13:01]line ИНН: 02508201610067 [19:13:01]line Контрольно-Кассовый Чек [19:13:01]line ПРОДАЖА [19:13:01]line ТРК (МРК, ГНК) : 13 [19:13:01]line Товар: 2710124130 [19:13:01]line Аи-92-К-5 [19:13:01]line 14.950 * 66.90 [19:13:01]line = 1000.16 [19:13:01]line НДС 12% НСП 1% [19:13:01]line > о реализуемом товаре [19:13:01]line ИТОГО: 1000.16 [19:13:01]line НСП 1% : 8.85 [19:13:01]line НДС 12% : 106.21 [19:13:01]line Наличными: 0.00 [19:13:01]line Безнал.: 1000.16 [19:13:01]line Место: АЗС № 161 "Партнер Нефть" [19:13:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:13:01]line СНО: Общий режим [19:13:01]line Чек 294 21.10.2024 19:13 [19:13:01]line Смена: 535 ФФД: 1.0 [19:13:01]line ЗНМ: 0300000104 [19:13:01]line РНМ: 0000000000091764 [19:13:01]line Версия ККМ: 001 [19:13:01]line Платежная система: Mbank [19:13:01]line ФМ: 0000000000871759 [19:13:01]line ФД: 166183 [19:13:01]line ФПД: 215736626005414 [19:13:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T191319&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166183&fm=215736626005414&tin=02508201610067®Number=0000000000091764&sum=100016 [19:13:01]OFD Sender: Processing packet 166183 [packets to send 48, broken 47] [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00166183 [19:13:01]OFD Sender: To server: pG, [19:13:01]CommunicateWithHost lk.salyk.kg:30040 [19:13:01]ConnectInit lk.salyk.kg [19:13:01]written 0, free lines is 4095 [19:13:01]Connected sock=7 [19:13:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F 2B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CF A7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 89 02 00 35 04 06 00 C4 36 18 F5 45 A6 E1 3A 09 1D A3 51 2F FA [19: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 35 39 4F 00 00 00 0C A5 47 00 91 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 27 89 02 00 F4 03 04 00 3C 4E 16 67 B6 04 01 00 00 8F 29 61 A0 AA 48 AB A4 [19:13:01]CommunicateWithHost err = 0 [19:13:01]CheckOFDResponse [19:13:01]1017 (14) - 77093643461234 [19:13:01]1041 (16) - 0000000000871759 [19:13:01]1040 (4) - 166183 [19:13:01]1012 (4) - 21.10.2024 12:51 [19:13:01]1206 (1) - 0 [19:13:01]OFD Sender: Remove packet 166183 [19:13:01]ProducePacketName [19:13:01]name=ofd_packets/00166183 [19:13:01]NVStorageDeleteData [19:13:01]Write to MH i2c: 01 00 00 52 7F D1 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: 01 07 00 52 7F 00 00 00 00 00 E4 0C C8 [19:13:01]RasterBufferAndPrint [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]line [19:13:01]written 0, free lines is 3307 [19:13:01]MH_Cut [19:13:01]Write to MH i2c: D1 01 00 59 7F 01 AA [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 [19:13:01]MH_I2C_Read... [19:13:01]Read from MH i2c: D1 01 00 59 7F 00 A9 [19:13:01]Write to MH i2c: 01 00 00 5A 7F D9 [19:13:01]Write i2c OK [19:13:01]MH_I2C_Read... [19:13:02]OFD Sender: No OFD packet to send [19:13:02]*** Cut start [19:13:02]*** Partial cut [19:13:02]*** CUTSNS_PIN = 1 [19:13:02]*** CUTSNS_PIN = 0 [19:13:02]*** Brake cut motor [19:13:03]Read from MH i2c: 01 [19:13:03]MH_I2C_Read... [19:13:03]*** Stop cut motor [19:13:03]*** Cut end [19:13:03]Read from MH i2c: 01 07 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: 01 07 00 5A 7F 00 00 00 00 00 FF 0F EE [19:13:03]process_action close_receipt done [19:13:03]requested_data is exist [19:13:03]produce_requested_data [19:13:03]requested_item fm.sn is exist - process it [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 11 00 00 [19:13:03]Write to MH i2c: E2 08 00 5B 7F 80 11 00 00 00 00 00 00 54 [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 17 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 17 00 5B 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AC [19:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:13:03]wFMCommunicate OK [19:13:03]requested_item fd.num is exist - process it [19:13:03]SAM_PROTO_GetFieldsCounters [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 13 00 00 [19:13:03]Write to MH i2c: E2 08 00 5C 7F 80 13 00 00 00 00 00 00 57 [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 62 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 62 00 5C 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [19:13:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 27 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetFieldsCounters done [19:13:03]requested_item shift.num is exist - process it [19:13:03]requested_item shift.opened is exist - process it [19:13:03]req_shift_opened [19:13:03]FM_GetShiftState [19:13:03]SAM_PROTO_GetShiftState [19:13:03]wFMCommunicate request_size=4 [19:13:03]MH_SAM_APDU [19:13:03]CAPDU: 80 13 01 00 [19:13:03]Write to MH i2c: E2 08 00 5D 7F 80 13 01 00 00 00 00 00 59 [19:13:03]Write i2c OK [19:13:03]MH_I2C_Read... [19:13:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:03]Read from MH i2c: E2 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 [19:13:03]MH_I2C_Read... [19:13:03]Read from MH i2c: E2 0E 00 5D 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 62 [19:13:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:13:03]wFMCommunicate OK [19:13:03]SAM_PROTO_GetShiftState done [19:13:03]FM_GetShiftState done [19:13:03]req_shift_opened done [19:13:03]requested_item shift.open_date is exist - process it [19:13:03]req_shift_open_date [19:13:03]req_shift_open_date done [19:13:03]produce_requested_data done [19:13:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166183,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:13:03]process_action_free close_receipt [19:13:03]json_value_free [19:13:03]json_value_free done [19:13:03]process_json_proto returns [19:13:03]Send response to host [19:13:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166183,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:13:03]free response buf [19:13:03]execute_script done [19:13:03]execute_script returns [19:13:03]free content buf [19:13:03]Sock 6.Close socket [19:13:03]Sock 6.Thread stoped [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:32]OFD Sender: No OFD packet to send [19:17:37]OFD Sender: No OFD packet to send [19:17:42]OFD Sender: No OFD packet to send [19:17:47]OFD Sender: No OFD packet to send [19:17:52]OFD Sender: No OFD packet to send [19:17:57]OFD Sender: No OFD packet to send [19:18:02]OFD Sender: No OFD packet to send [19:18:07]OFD Sender: No OFD packet to send [19:18:12]OFD Sender: No OFD packet to send [19:18:17]OFD Sender: No OFD packet to send [19:18:22]OFD Sender: No OFD packet to send [19:18:27]OFD Sender: No OFD packet to send [19:18:32]OFD Sender: No OFD packet to send [19:18:37]OFD Sender: No OFD packet to send [19:18:42]OFD Sender: No OFD packet to send [19:18:47]OFD Sender: No OFD packet to send [19:18:52]OFD Sender: No OFD packet to send [19:18:57]OFD Sender: No OFD packet to send [19:19:02]OFD Sender: No OFD packet to send [19:19:07]OFD Sender: No OFD packet to send [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:42]OFD Sender: No OFD packet to send [19:19:47]OFD Sender: No OFD packet to send [19:19:52]OFD Sender: No OFD packet to send [19:19:57]OFD Sender: No OFD packet to send [19:20:02]OFD Sender: No OFD packet to send [19:20:07]OFD Sender: No OFD packet to send [19:20:12]OFD Sender: No OFD packet to send [19:20:17]OFD Sender: No OFD packet to send [19:20:22]OFD Sender: No OFD packet to send [19:20:27]OFD Sender: No OFD packet to send [19:20:32]OFD Sender: No OFD packet to send [19:20:37]OFD Sender: No OFD packet to send [19:20:42]OFD Sender: No OFD packet to send [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:53]accept exits with 5 [19:20:53]New connection [19:20:53]New thread 3066920292 created [19:20:53]Thread 3066776932 joined [19:20:53]Waiting for new connection... [19:20:53] Sock 5.Parse request [19:20:53]Sock 5.Check first char [19:20:53]Sock 5.First char is OK [19:20:53]request: POST /json_proto HTTP/1.0 [19:20:53]Method: POST [19:20:53]URL: /json_proto [19:20:53]Method is POST - this is cgi request [19:20:53]url: /json_proto [19:20:53]query_string will be loaded in cgi processing [19:20:53]execute_cgi json_proto POST (null) [19:20:53]execute_cgi path=json_proto method=POST [19:20:53]POST find Content-Length [19:20:53]Host: 172.17.53.195:8080 [19:20:53]Content-Length: 769 [19:20:53]Content-Type: application/json [19:20:53] [19:20:53]POST finish read [19:20:53]Found Content-Length = 769 [19:20:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:53]execute_script... [19:20: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)220755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:53]POST & json_proto [19:20:53]process_json_proto [19:20:53]json parsed OK: [19:20:53]protocol is kg_v1.0 [19:20:53]action value=close_receipt [19:20:53]process_action close_receipt [19:20:53]cmd_close_receipt [19:20:53]MH_GetDate [19:20:53]Write to MH i2c: F0 00 00 5E 7F CC [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: F0 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: F0 09 00 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: F0 09 00 5E 7F 00 A9 A9 16 67 21 48 4A 65 BC [19:20:53]GetLastDocTimeStamp 1729537999 [19:20:53]current date 1729538473 [19:20:53]FM_GetShiftState [19:20:53]SAM_PROTO_GetShiftState [19:20:53]wFMCommunicate request_size=4 [19:20:53]MH_SAM_APDU [19:20:53]CAPDU: 80 13 01 00 [19:20:53]Write to MH i2c: E2 08 00 5F 7F 80 13 01 00 00 00 00 00 5B [19:20:53]Write i2c OK [19:20:53]MH_I2C_Read... [19:20:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:53]Read from MH i2c: E2 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: E2 0E 00 [19:20:53]MH_I2C_Read... [19:20:53]Read from MH i2c: E2 0E 00 5F 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 64 [19:20:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:20:53]wFMCommunicate OK [19:20:53]SAM_PROTO_GetShiftState done [19:20:53]FM_GetShiftState done [19:20:53]opened in 1729470944 [19:20:53]opened+sec_in_day 1729557344 [19:20:53]quantity*price = 200043 [19:20:53]sum+1 = 200044 [19:20:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 295 21.10.2024 19:21 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166184 ФПД: 169073905670041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166184&fm=169073905670041&tin=02508201610067®Number=0000000000091764&sum=200043 [19:20:55]StoreToDocumentArchive [19:20:55]shift 535 fd 166184 [19:20:55]save to /storage/0535/doc_00166184 [19:20:55]save last doc name /storage/0535/doc_00166184 to /storage/kkm_last_doc_name [19:20:55]save OK [19:20:55]Clear old archive folders... [19:20:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:55]tlvbuf is 019A6280 [19:20:55]SAM_PROTO_ClearQueue [19:20:55]wFMCommunicate request_size=4 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 09 00 00 [19:20:55]Write to MH i2c: E2 08 00 6C 7F 80 09 00 00 00 00 00 00 5D [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 6C 7F 00 90 00 5F [19:20:55]RAPDU: 90 00 [19:20:55]wFMCommunicate OK [19:20:55]SAM_PROTO_ClearQueue done [19:20:55]KKMCreateOFDPacket [19:20:55]OFDProtocolAddRootSTLVToBuf [19:20:55]FM_MakeSignedData [19:20:55]FM_MakeSignedData [19:20:55]SAM_PROTO_SignData [19:20:55]wFMCommunicate request_size=4 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 0D 01 02 [19:20:55]Write to MH i2c: E2 08 00 6D 7F 80 0D 01 02 00 00 00 00 65 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 6D 7F 00 90 00 60 [19:20:55]RAPDU: 90 00 [19:20:55]wFMCommunicate OK [19:20:55]wFMCommunicate request_size=255 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A9 A9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 89 02 00 35 04 06 00 99 [19:20:55]Write to MH i2c: E2 02 01 6E 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A9 A9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 89 02 00 35 04 06 00 99 00 00 55 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 6E 7F 00 90 00 61 [19:20:55]RAPDU: 90 00 [19:20:55]wFMCommunicate OK [19:20:55]wFMCommunicate request_size=10 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 0D 02 02 05 C5 96 16 97 99 [19:20:55]Write to MH i2c: E2 0D 00 6F 7F 80 0D 02 02 05 00 C5 96 16 97 99 00 00 13 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 03 00 6F 7F 00 90 00 62 [19:20:55]RAPDU: 90 00 [19:20:55]wFMCommunicate OK [19:20:55]wFMCommunicate request_size=4 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 0D 03 02 [19:20:55]Write to MH i2c: E2 08 00 70 7F 80 0D 03 02 00 00 00 00 6A [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 0B 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 0B 00 70 7F 00 E2 6D F5 38 02 83 70 B7 90 00 93 [19:20:55]RAPDU: E2 6D F5 38 02 83 70 B7 90 00 [19:20:55]wFMCommunicate OK [19:20:55]SAM_PROTO_SignData done [19:20:55]FM_MakeSignedData done [19:20:55]CreateOFDProtocolMessage [19:20:55]wFMCommunicate request_size=4 [19:20:55]MH_SAM_APDU [19:20:55]CAPDU: 80 11 00 00 [19:20:55]Write to MH i2c: E2 08 00 71 7F 80 11 00 00 00 00 00 00 6A [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:55]Read from MH i2c: E2 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 17 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: E2 17 00 71 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [19:20:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:20:55]wFMCommunicate OK [19:20:55]CreateOFDProtocolMessage done [19:20:55]OFDSenderStorePacket 166184 [19:20:55]StoreOFDPacket docnum=166184 [19:20:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 3B 07 01 95 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A9 A9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 89 02 00 35 04 06 00 99 C5 96 16 97 99 E2 6D F5 38 02 83 70 B7 [19:20:55]CheckFolder [19:20:55]dirname=/storage/ofd_packets [19:20:55]CheckFolder done [19:20:55]ProducePacketName [19:20:55]name=ofd_packets/00166184 [19:20:55]NVStorageSaveData ofd_packets/00166184 [19:20:55]File name is /storage/ofd_packets/00166184 [19:20:55]Write 301 bytes [19:20:55]NVStorageSaveData done [19:20:55]OFDSenderStorePacket done [19:20:55]KKMCreateOFDPacket done [19:20:55]NVStorageSaveData kkm_last_timestamp [19:20:55]File name is /storage/kkm_last_timestamp [19:20:55]Write 4 bytes [19:20:55]NVStorageSaveData done [19:20:55]ExternCall_PrintAddStr [19:20:55]wPrintStart [19:20:55]Write to MH i2c: 01 00 00 72 7F F1 [19:20:55]Write i2c OK [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: 01 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: 01 07 00 [19:20:55]MH_I2C_Read... [19:20:55]Read from MH i2c: 01 07 00 72 7F 00 00 00 00 00 FF 0F 06 [19:20:55]RasterBufferAndPrint [19:20:55]line Счет N : (1)220755 [19:20:55]line ИНН: 02508201610067 [19:20:55]line Контрольно-Кассовый Чек [19:20:55]line ПРОДАЖА [19:20:55]line ТРК (МРК, ГНК) : 14 [19:20:55]line Товар: 2710124500 [19:20:55]line Аи-95-К-5 [19:20:55]line 26.960 * 74.20 [19:20:55]line = 2000.43 [19:20:55]line НДС 12% НСП 1% [19:20:55]line > о реализуемом товаре [19:20:55]line ИТОГО: 2000.43 [19:20:55]line НСП 1% : 17.70 [19:20:55]line НДС 12% : 212.43 [19:20:55]line Наличными: 0.00 [19:20:55]line Безнал.: 2000.43 [19:20:55]line Место: АЗС № 161 "Партнер Нефть" [19:20:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:20:55]line СНО: Общий режим [19:20:55]line Чек 295 21.10.2024 19:21 [19:20:55]line Смена: 535 ФФД: 1.0 [19:20:55]line ЗНМ: 0300000104 [19:20:55]line РНМ: 0000000000091764 [19:20:55]line Версия ККМ: 001 [19:20:55]line Платежная система: Mbank [19:20:55]line ФМ: 0000000000871759 [19:20:55]line ФД: 166184 [19:20:55]line ФПД: 169073905670041 [19:20:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192113&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166184&fm=169073905670041&tin=02508201610067®Number=0000000000091764&sum=200043 [19:20:55]written 0, free lines is 4095 [19:20:55]OFD Sender: Processing packet 166184 [packets to send 48, broken 47] [19:20:55]ProducePacketName [19:20:55]name=ofd_packets/00166184 [19:20:55]OFD Sender: To server: pG, [19:20:55]CommunicateWithHost lk.salyk.kg:30040 [19:20:55]ConnectInit lk.salyk.kg [19:20:56]Connected sock=7 [19:20:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 3B 07 01 95 53 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6B 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 A9 A9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 89 02 00 35 04 06 00 99 C5 96 16 97 99 E2 6D F5 38 02 83 70 B7 [19:20:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 CA 09 47 00 F2 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 28 89 02 00 F4 03 04 00 17 50 16 67 B6 04 01 00 00 50 53 58 8B 0F 3B 84 D1 [19:20:56]CommunicateWithHost err = 0 [19:20:56]CheckOFDResponse [19:20:56]1017 (14) - 77093643461234 [19:20:56]1041 (16) - 0000000000871759 [19:20:56]1040 (4) - 166184 [19:20:56]1012 (4) - 21.10.2024 12:59 [19:20:56]1206 (1) - 0 [19:20:56]OFD Sender: Remove packet 166184 [19:20:56]ProducePacketName [19:20:56]name=ofd_packets/00166184 [19:20:56]NVStorageDeleteData [19:20:56]Write to MH i2c: 01 00 00 9B 7F 1A [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 07 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: 01 07 00 9B 7F 00 00 00 00 00 E7 0C 14 [19:20:56]RasterBufferAndPrint [19:20:56]line [19:20:56]line [19:20:56]line [19:20:56]line [19:20:56]line [19:20:56]written 0, free lines is 3310 [19:20:56]MH_Cut [19:20:56]Write to MH i2c: D1 01 00 A2 7F 01 F3 [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: D1 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: D1 01 00 [19:20:56]MH_I2C_Read... [19:20:56]Read from MH i2c: D1 01 00 A2 7F 00 F2 [19:20:56]Write to MH i2c: 01 00 00 A3 7F 22 [19:20:56]Write i2c OK [19:20:56]MH_I2C_Read... [19:20:56]OFD Sender: No OFD packet to send [19:20:57]*** Cut start [19:20:57]*** Partial cut [19:20:57]*** CUTSNS_PIN = 1 [19:20:57]*** CUTSNS_PIN = 0 [19:20:57]*** Brake cut motor [19:20:57]Read from MH i2c: 01 [19:20:57]MH_I2C_Read... [19:20:57]*** Stop cut motor [19:20:57]*** Cut end [19:20:57]Read from MH i2c: 01 07 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: 01 07 00 A3 7F 00 00 00 00 00 FF 0F 37 [19:20:57]process_action close_receipt done [19:20:57]requested_data is exist [19:20:57]produce_requested_data [19:20:57]requested_item fm.sn is exist - process it [19:20:57]wFMCommunicate request_size=4 [19:20:57]MH_SAM_APDU [19:20:57]CAPDU: 80 11 00 00 [19:20:57]Write to MH i2c: E2 08 00 A4 7F 80 11 00 00 00 00 00 00 9D [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:57]Read from MH i2c: E2 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: E2 17 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: E2 17 00 A4 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [19:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:20:57]wFMCommunicate OK [19:20:57]requested_item fd.num is exist - process it [19:20:57]SAM_PROTO_GetFieldsCounters [19:20:57]wFMCommunicate request_size=4 [19:20:57]MH_SAM_APDU [19:20:57]CAPDU: 80 13 00 00 [19:20:57]Write to MH i2c: E2 08 00 A5 7F 80 13 00 00 00 00 00 00 A0 [19:20:57]Write i2c OK [19:20:57]MH_I2C_Read... [19:20:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:57]Read from MH i2c: E2 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: E2 62 00 [19:20:57]MH_I2C_Read... [19:20:57]Read from MH i2c: E2 62 00 A5 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [19:20:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 28 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:57]wFMCommunicate OK [19:20:57]SAM_PROTO_GetFieldsCounters done [19:20:57]requested_item shift.num is exist - process it [19:20:57]requested_item shift.opened is exist - process it [19:20:57]req_shift_opened [19:20:57]FM_GetShiftState [19:20:58]SAM_PROTO_GetShiftState [19:20:58]wFMCommunicate request_size=4 [19:20:58]MH_SAM_APDU [19:20:58]CAPDU: 80 13 01 00 [19:20:58]Write to MH i2c: E2 08 00 A6 7F 80 13 01 00 00 00 00 00 A2 [19:20:58]Write i2c OK [19:20:58]MH_I2C_Read... [19:20:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:58]Read from MH i2c: E2 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 0E 00 [19:20:58]MH_I2C_Read... [19:20:58]Read from MH i2c: E2 0E 00 A6 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AB [19:20:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:20:58]wFMCommunicate OK [19:20:58]SAM_PROTO_GetShiftState done [19:20:58]FM_GetShiftState done [19:20:58]req_shift_opened done [19:20:58]requested_item shift.open_date is exist - process it [19:20:58]req_shift_open_date [19:20:58]req_shift_open_date done [19:20:58]produce_requested_data done [19:20:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166184,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:20:58]process_action_free close_receipt [19:20:58]json_value_free [19:20:58]json_value_free done [19:20:58]process_json_proto returns [19:20:58]Send response to host [19:20:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166184,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:20:58]free response buf [19:20:58]execute_script done [19:20:58]execute_script returns [19:20:58]free content buf [19:20:58]Sock 5.Close socket [19:20:58]Sock 5.Thread stoped [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [19:22:31]OFD Sender: No OFD packet to send [19:22:36]OFD Sender: No OFD packet to send [19:22:41]OFD Sender: No OFD packet to send [19:22:46]OFD Sender: No OFD packet to send [19:22:51]OFD Sender: No OFD packet to send [19:22:56]OFD Sender: No OFD packet to send [19:23:01]OFD Sender: No OFD packet to send [19:23:06]OFD Sender: No OFD packet to send [19:23:11]OFD Sender: No OFD packet to send [19:23:16]OFD Sender: No OFD packet to send [19:23:21]OFD Sender: No OFD packet to send [19:23:26]OFD Sender: No OFD packet to send [19:23:31]OFD Sender: No OFD packet to send [19:23:36]OFD Sender: No OFD packet to send [19:23:41]OFD Sender: No OFD packet to send [19:23:46]OFD Sender: No OFD packet to send [19:23:51]OFD Sender: No OFD packet to send [19:23:55]accept exits with 6 [19:23:55]New connection [19:23:55]New thread 3066776932 created [19:23:55]Thread 3066920292 joined [19:23:55]Waiting for new connection... [19:23:55] Sock 6.Parse request [19:23:55]Sock 6.Check first char [19:23:55]Sock 6.First char is OK [19:23:55]request: POST /json_proto HTTP/1.0 [19:23:55]Method: POST [19:23:55]URL: /json_proto [19:23:55]Method is POST - this is cgi request [19:23:55]url: /json_proto [19:23:55]query_string will be loaded in cgi processing [19:23:55]execute_cgi json_proto POST (null) [19:23:55]execute_cgi path=json_proto method=POST [19:23:55]POST find Content-Length [19:23:55]Host: 172.17.53.195:8080 [19:23:55]Content-Length: 769 [19:23:55]Content-Type: application/json [19:23:55] [19:23:55]POST finish read [19:23:55]Found Content-Length = 769 [19:23:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:55]execute_script... [19:23: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)220756", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:55]POST & json_proto [19:23:55]process_json_proto [19:23:55]json parsed OK: [19:23:55]protocol is kg_v1.0 [19:23:55]action value=close_receipt [19:23:55]process_action close_receipt [19:23:55]cmd_close_receipt [19:23:55]MH_GetDate [19:23:55]Write to MH i2c: F0 00 00 A7 7F 15 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: F0 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: F0 09 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: F0 09 00 A7 7F 00 5F AA 16 67 21 48 4A 65 BC [19:23:55]GetLastDocTimeStamp 1729538473 [19:23:55]current date 1729538655 [19:23:55]FM_GetShiftState [19:23:55]SAM_PROTO_GetShiftState [19:23:55]wFMCommunicate request_size=4 [19:23:55]MH_SAM_APDU [19:23:55]CAPDU: 80 13 01 00 [19:23:55]Write to MH i2c: E2 08 00 A8 7F 80 13 01 00 00 00 00 00 A4 [19:23:55]Write i2c OK [19:23:55]MH_I2C_Read... [19:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:55]Read from MH i2c: E2 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0E 00 [19:23:55]MH_I2C_Read... [19:23:55]Read from MH i2c: E2 0E 00 A8 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AD [19:23:55]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:23:55]wFMCommunicate OK [19:23:55]SAM_PROTO_GetShiftState done [19:23:55]FM_GetShiftState done [19:23:55]opened in 1729470944 [19:23:55]opened+sec_in_day 1729557344 [19:23:55]quantity*price = 100021 [19:23:55]sum+1 = 100023 [19:23:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 296 21.10.2024 19:24 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166185 ФПД: 111257146173393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192415&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166185&fm=111257146173393&tin=02508201610067®Number=0000000000091764&sum=100022 [19:23:56]StoreToDocumentArchive [19:23:56]shift 535 fd 166185 [19:23:56]save to /storage/0535/doc_00166185 [19:23:56]save last doc name /storage/0535/doc_00166185 to /storage/kkm_last_doc_name [19:23:56]save OK [19:23:56]Clear old archive folders... [19:23:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:23:56]tlvbuf is 0163F9E0 [19:23:56]SAM_PROTO_ClearQueue [19:23:56]wFMCommunicate request_size=4 [19:23:56]MH_SAM_APDU [19:23:56]CAPDU: 80 09 00 00 [19:23:56]Write to MH i2c: E2 08 00 B5 7F 80 09 00 00 00 00 00 00 A6 [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:56]Read from MH i2c: E2 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 B5 7F 00 90 00 A8 [19:23:56]RAPDU: 90 00 [19:23:56]wFMCommunicate OK [19:23:56]SAM_PROTO_ClearQueue done [19:23:56]KKMCreateOFDPacket [19:23:56]OFDProtocolAddRootSTLVToBuf [19:23:56]FM_MakeSignedData [19:23:56]FM_MakeSignedData [19:23:56]SAM_PROTO_SignData [19:23:56]wFMCommunicate request_size=4 [19:23:56]MH_SAM_APDU [19:23:56]CAPDU: 80 0D 01 02 [19:23:56]Write to MH i2c: E2 08 00 B6 7F 80 0D 01 02 00 00 00 00 AE [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:56]Read from MH i2c: E2 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 [19:23:56]MH_I2C_Read... [19:23:56]Read from MH i2c: E2 03 00 B6 7F 00 90 00 A9 [19:23:56]RAPDU: 90 00 [19:23:56]wFMCommunicate OK [19:23:56]wFMCommunicate request_size=255 [19:23:56]MH_SAM_APDU [19:23: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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 5F AA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 89 02 00 35 04 06 00 65 [19:23:56]Write to MH i2c: E2 02 01 B7 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 5F AA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 89 02 00 35 04 06 00 65 00 00 6E [19:23:56]Write i2c OK [19:23:56]MH_I2C_Read... [19:23:56]OFD Sender: No OFD packet to send [19:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 03 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 03 00 B7 7F 00 90 00 AA [19:23:57]RAPDU: 90 00 [19:23:57]wFMCommunicate OK [19:23:57]wFMCommunicate request_size=10 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 0D 02 02 05 30 12 AD 27 D1 [19:23:57]Write to MH i2c: E2 0D 00 B8 7F 80 0D 02 02 05 00 30 12 AD 27 D1 00 00 A2 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 03 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 03 00 B8 7F 00 90 00 AB [19:23:57]RAPDU: 90 00 [19:23:57]wFMCommunicate OK [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 0D 03 02 [19:23:57]Write to MH i2c: E2 08 00 B9 7F 80 0D 03 02 00 00 00 00 B3 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 0B 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 0B 00 B9 7F 00 CA 9E 20 8E 22 D3 C3 5B 90 00 DD [19:23:57]RAPDU: CA 9E 20 8E 22 D3 C3 5B 90 00 [19:23:57]wFMCommunicate OK [19:23:57]SAM_PROTO_SignData done [19:23:57]FM_MakeSignedData done [19:23:57]CreateOFDProtocolMessage [19:23:57]wFMCommunicate request_size=4 [19:23:57]MH_SAM_APDU [19:23:57]CAPDU: 80 11 00 00 [19:23:57]Write to MH i2c: E2 08 00 BA 7F 80 11 00 00 00 00 00 00 B3 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:57]Read from MH i2c: E2 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 17 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: E2 17 00 BA 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [19:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:23:57]wFMCommunicate OK [19:23:57]CreateOFDProtocolMessage done [19:23:57]OFDSenderStorePacket 166185 [19:23:57]StoreOFDPacket docnum=166185 [19:23:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FC C3 07 01 D9 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 5F AA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 89 02 00 35 04 06 00 65 30 12 AD 27 D1 CA 9E 20 8E 22 D3 C3 5B [19:23:57]CheckFolder [19:23:57]dirname=/storage/ofd_packets [19:23:57]CheckFolder done [19:23:57]ProducePacketName [19:23:57]name=ofd_packets/00166185 [19:23:57]NVStorageSaveData ofd_packets/00166185 [19:23:57]File name is /storage/ofd_packets/00166185 [19:23:57]Write 301 bytes [19:23:57]NVStorageSaveData done [19:23:57]OFDSenderStorePacket done [19:23:57]KKMCreateOFDPacket done [19:23:57]NVStorageSaveData kkm_last_timestamp [19:23:57]File name is /storage/kkm_last_timestamp [19:23:57]Write 4 bytes [19:23:57]NVStorageSaveData done [19:23:57]ExternCall_PrintAddStr [19:23:57]wPrintStart [19:23:57]Write to MH i2c: 01 00 00 BB 7F 3A [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 BB 7F 00 00 00 00 00 FF 0F 4F [19:23:57]RasterBufferAndPrint [19:23:57]line Счет N : (1)220756 [19:23:57]line ИНН: 02508201610067 [19:23:57]line Контрольно-Кассовый Чек [19:23:57]line ПРОДАЖА [19:23:57]line ТРК (МРК, ГНК) : 34 [19:23:57]line Товар: 2710124500 [19:23:57]line Аи-95-К-5 [19:23:57]line 13.480 * 74.20 [19:23:57]line = 1000.22 [19:23:57]line НДС 12% НСП 1% [19:23:57]line > о реализуемом товаре [19:23:57]line ИТОГО: 1000.22 [19:23:57]line НСП 1% : 8.85 [19:23:57]line НДС 12% : 106.22 [19:23:57]line Наличными: 0.00 [19:23:57]line Безнал.: 1000.22 [19:23:57]line Место: АЗС № 161 "Партнер Нефть" [19:23:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:23:57]line СНО: Общий режим [19:23:57]line Чек 296 21.10.2024 19:24 [19:23:57]line Смена: 535 ФФД: 1.0 [19:23:57]line ЗНМ: 0300000104 [19:23:57]line РНМ: 0000000000091764 [19:23:57]line Версия ККМ: 001 [19:23:57]line Платежная система: Mbank [19:23:57]line ФМ: 0000000000871759 [19:23:57]line ФД: 166185 [19:23:57]line ФПД: 111257146173393 [19:23:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T192415&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166185&fm=111257146173393&tin=02508201610067®Number=0000000000091764&sum=100022 [19:23:57]OFD Sender: Processing packet 166185 [packets to send 48, broken 47] [19:23:57]ProducePacketName [19:23:57]name=ofd_packets/00166185 [19:23:57]OFD Sender: To server: pG, [19:23:57]CommunicateWithHost lk.salyk.kg:30040 [19:23:57]ConnectInit lk.salyk.kg [19:23:57]written 0, free lines is 4095 [19:23:57]Connected sock=7 [19:23:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 FC C3 07 01 D9 AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 5F AA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 89 02 00 35 04 06 00 65 30 12 AD 27 D1 CA 9E 20 8E 22 D3 C3 5B [19:23:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 2D B8 47 00 71 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 29 89 02 00 F4 03 04 00 CC 50 16 67 B6 04 01 00 00 02 3C 62 5E 0A A5 F4 B5 [19:23:57]CommunicateWithHost err = 0 [19:23:57]CheckOFDResponse [19:23:57]1017 (14) - 77093643461234 [19:23:57]1041 (16) - 0000000000871759 [19:23:57]1040 (4) - 166185 [19:23:57]1012 (4) - 21.10.2024 13:02 [19:23:57]1206 (1) - 0 [19:23:57]OFD Sender: Remove packet 166185 [19:23:57]ProducePacketName [19:23:57]name=ofd_packets/00166185 [19:23:57]NVStorageDeleteData [19:23:57]Write to MH i2c: 01 00 00 E4 7F 63 [19:23:57]Write i2c OK [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 [19:23:57]MH_I2C_Read... [19:23:57]Read from MH i2c: 01 07 00 E4 7F 00 00 00 00 00 EB 0C 61 [19:23:57]RasterBufferAndPrint [19:23:57]line [19:23:57]line [19:23:57]line [19:23:57]line [19:23:57]line [19:23:57]written 0, free lines is 3314 [19:23:58]MH_Cut [19:23:58]Write to MH i2c: D1 01 00 EB 7F 01 3C [19:23:58]Write i2c OK [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: D1 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: D1 01 00 [19:23:58]MH_I2C_Read... [19:23:58]Read from MH i2c: D1 01 00 EB 7F 00 3B [19:23:58]Write to MH i2c: 01 00 00 EC 7F 6B [19:23:58]Write i2c OK [19:23:58]MH_I2C_Read... [19:23:58]OFD Sender: No OFD packet to send [19:23:58]*** Cut start [19:23:58]*** Partial cut [19:23:58]*** CUTSNS_PIN = 1 [19:23:58]*** CUTSNS_PIN = 0 [19:23:59]*** Brake cut motor [19:23:59]Read from MH i2c: 01 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: 01 07 00 [19:23:59]MH_I2C_Read... [19:23:59]*** Stop cut motor [19:23:59]*** Cut end [19:23:59]Read from MH i2c: 01 07 00 EC 7F 00 00 00 00 00 FF 0F 80 [19:23:59]process_action close_receipt done [19:23:59]requested_data is exist [19:23:59]produce_requested_data [19:23:59]requested_item fm.sn is exist - process it [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 11 00 00 [19:23:59]Write to MH i2c: E2 08 00 ED 7F 80 11 00 00 00 00 00 00 E6 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 17 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 17 00 ED 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [19:23:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:23:59]wFMCommunicate OK [19:23:59]requested_item fd.num is exist - process it [19:23:59]SAM_PROTO_GetFieldsCounters [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 13 00 00 [19:23:59]Write to MH i2c: E2 08 00 EE 7F 80 13 00 00 00 00 00 00 E9 [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:59]Read from MH i2c: E2 62 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 62 00 EE 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [19:23:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 29 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_GetFieldsCounters done [19:23:59]requested_item shift.num is exist - process it [19:23:59]requested_item shift.opened is exist - process it [19:23:59]req_shift_opened [19:23:59]FM_GetShiftState [19:23:59]SAM_PROTO_GetShiftState [19:23:59]wFMCommunicate request_size=4 [19:23:59]MH_SAM_APDU [19:23:59]CAPDU: 80 13 01 00 [19:23:59]Write to MH i2c: E2 08 00 EF 7F 80 13 01 00 00 00 00 00 EB [19:23:59]Write i2c OK [19:23:59]MH_I2C_Read... [19:23:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:59]Read from MH i2c: E2 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 0E 00 [19:23:59]MH_I2C_Read... [19:23:59]Read from MH i2c: E2 0E 00 EF 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F4 [19:23:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:23:59]wFMCommunicate OK [19:23:59]SAM_PROTO_GetShiftState done [19:23:59]FM_GetShiftState done [19:23:59]req_shift_opened done [19:23:59]requested_item shift.open_date is exist - process it [19:23:59]req_shift_open_date [19:23:59]req_shift_open_date done [19:23:59]produce_requested_data done [19:23:59]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166185,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:23:59]process_action_free close_receipt [19:23:59]json_value_free [19:23:59]json_value_free done [19:23:59]process_json_proto returns [19:23:59]Send response to host [19:23:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166185,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:23:59]free response buf [19:23:59]execute_script done [19:23:59]execute_script returns [19:23:59]free content buf [19:23:59]Sock 6.Close socket [19:23:59]Sock 6.Thread stoped [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:18]OFD Sender: No OFD packet to send [19:30:23]OFD Sender: No OFD packet to send [19:30:28]OFD Sender: No OFD packet to send [19:30:33]OFD Sender: No OFD packet to send [19:30:38]OFD Sender: No OFD packet to send [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:16]accept exits with 5 [19:32:16]New connection [19:32:16]New thread 3066920292 created [19:32:16]Thread 3066776932 joined [19:32:16]Waiting for new connection... [19:32:16] Sock 5.Parse request [19:32:16]Sock 5.Check first char [19:32:16]Sock 5.First char is OK [19:32:16]request: POST /json_proto HTTP/1.0 [19:32:16]Method: POST [19:32:16]URL: /json_proto [19:32:16]Method is POST - this is cgi request [19:32:16]url: /json_proto [19:32:16]query_string will be loaded in cgi processing [19:32:16]execute_cgi json_proto POST (null) [19:32:16]execute_cgi path=json_proto method=POST [19:32:16]POST find Content-Length [19:32:16]Host: 172.17.53.195:8080 [19:32:16]Content-Length: 766 [19:32:16]Content-Type: application/json [19:32:16] [19:32:16]POST finish read [19:32:16]Found Content-Length = 766 [19:32:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:16]execute_script... [19:32:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220757", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:16]POST & json_proto [19:32:16]process_json_proto [19:32:16]json parsed OK: [19:32:16]protocol is kg_v1.0 [19:32:16]action value=close_receipt [19:32:16]process_action close_receipt [19:32:16]cmd_close_receipt [19:32:16]MH_GetDate [19:32:16]Write to MH i2c: F0 00 00 F0 7F 5E [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: F0 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: F0 09 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: F0 09 00 F0 7F 00 54 AC 16 67 21 48 4A 65 FC [19:32:16]GetLastDocTimeStamp 1729538655 [19:32:16]current date 1729539156 [19:32:16]FM_GetShiftState [19:32:16]SAM_PROTO_GetShiftState [19:32:16]wFMCommunicate request_size=4 [19:32:16]MH_SAM_APDU [19:32:16]CAPDU: 80 13 01 00 [19:32:16]Write to MH i2c: E2 08 00 F1 7F 80 13 01 00 00 00 00 00 ED [19:32:16]Write i2c OK [19:32:16]MH_I2C_Read... [19:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:16]Read from MH i2c: E2 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 0E 00 [19:32:16]MH_I2C_Read... [19:32:16]Read from MH i2c: E2 0E 00 F1 7F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F6 [19:32:16]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:32:16]wFMCommunicate OK [19:32:16]SAM_PROTO_GetShiftState done [19:32:16]FM_GetShiftState done [19:32:16]opened in 1729470944 [19:32:16]opened+sec_in_day 1729557344 [19:32:16]quantity*price = 200025 [19:32:16]sum+1 = 200026 [19:32:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 297 21.10.2024 19:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166186 ФПД: 140817742949429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193236&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166186&fm=140817742949429&tin=02508201610067®Number=0000000000091764&sum=200025 [19:32:17]StoreToDocumentArchive [19:32:17]shift 535 fd 166186 [19:32:17]save to /storage/0535/doc_00166186 [19:32:17]save last doc name /storage/0535/doc_00166186 to /storage/kkm_last_doc_name [19:32:17]save OK [19:32:17]Clear old archive folders... [19:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:32:17]tlvbuf is 015DD320 [19:32:17]SAM_PROTO_ClearQueue [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 09 00 00 [19:32:17]Write to MH i2c: E2 08 00 FE 7F 80 09 00 00 00 00 00 00 EF [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:17]Read from MH i2c: E2 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 03 00 [19:32:17]MH_I2C_Read... [19:32:17]Read from MH i2c: E2 03 00 FE 7F 00 90 00 F1 [19:32:17]RAPDU: 90 00 [19:32:17]wFMCommunicate OK [19:32:17]SAM_PROTO_ClearQueue done [19:32:17]KKMCreateOFDPacket [19:32:17]OFDProtocolAddRootSTLVToBuf [19:32:17]FM_MakeSignedData [19:32:17]FM_MakeSignedData [19:32:17]SAM_PROTO_SignData [19:32:17]wFMCommunicate request_size=4 [19:32:17]MH_SAM_APDU [19:32:17]CAPDU: 80 0D 01 02 [19:32:17]Write to MH i2c: E2 08 00 FF 7F 80 0D 01 02 00 00 00 00 F7 [19:32:17]Write i2c OK [19:32:17]MH_I2C_Read... [19:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 FF 7F 00 90 00 F2 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=255 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 54 AC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 89 02 00 35 04 06 00 80 12 AF 8B [19:32:18]Write to MH i2c: E2 02 01 00 80 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 54 AC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 89 02 00 35 04 06 00 80 12 AF 8B 00 00 E5 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 00 80 00 90 00 F4 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=7 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 02 02 02 EC 35 [19:32:18]Write to MH i2c: E2 0A 00 01 80 80 0D 02 02 02 00 EC 35 00 00 20 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 03 00 01 80 00 90 00 F5 [19:32:18]RAPDU: 90 00 [19:32:18]wFMCommunicate OK [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 0D 03 02 [19:32:18]Write to MH i2c: E2 08 00 02 80 80 0D 03 02 00 00 00 00 FD [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0B 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 0B 00 02 80 00 68 5C 4D BB 75 C8 B6 8D 90 00 4A [19:32:18]RAPDU: 68 5C 4D BB 75 C8 B6 8D 90 00 [19:32:18]wFMCommunicate OK [19:32:18]SAM_PROTO_SignData done [19:32:18]FM_MakeSignedData done [19:32:18]CreateOFDProtocolMessage [19:32:18]wFMCommunicate request_size=4 [19:32:18]MH_SAM_APDU [19:32:18]CAPDU: 80 11 00 00 [19:32:18]Write to MH i2c: E2 08 00 03 80 80 11 00 00 00 00 00 00 FD [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:18]Read from MH i2c: E2 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 17 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: E2 17 00 03 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 55 [19:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:32:18]wFMCommunicate OK [19:32:18]CreateOFDProtocolMessage done [19:32:18]OFDSenderStorePacket 166186 [19:32:18]StoreOFDPacket docnum=166186 [19:32:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B1 44 04 01 9A DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 54 AC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 89 02 00 35 04 06 00 80 12 AF 8B EC 35 68 5C 4D BB 75 C8 B6 8D [19:32:18]CheckFolder [19:32:18]dirname=/storage/ofd_packets [19:32:18]CheckFolder done [19:32:18]ProducePacketName [19:32:18]name=ofd_packets/00166186 [19:32:18]NVStorageSaveData ofd_packets/00166186 [19:32:18]File name is /storage/ofd_packets/00166186 [19:32:18]Write 298 bytes [19:32:18]NVStorageSaveData done [19:32:18]OFDSenderStorePacket done [19:32:18]KKMCreateOFDPacket done [19:32:18]NVStorageSaveData kkm_last_timestamp [19:32:18]File name is /storage/kkm_last_timestamp [19:32:18]Write 4 bytes [19:32:18]NVStorageSaveData done [19:32:18]ExternCall_PrintAddStr [19:32:18]wPrintStart [19:32:18]Write to MH i2c: 01 00 00 04 80 84 [19:32:18]Write i2c OK [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: 01 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: 01 07 00 [19:32:18]MH_I2C_Read... [19:32:18]Read from MH i2c: 01 07 00 04 80 00 00 00 00 00 FF 0F 99 [19:32:18]RasterBufferAndPrint [19:32:18]line Счет N : (1)220757 [19:32:18]line ИНН: 02508201610067 [19:32:18]line Контрольно-Кассовый Чек [19:32:18]line ПРОДАЖА [19:32:18]line ТРК (МРК, ГНК) : 21 [19:32:18]line Товар: 2710194210 [19:32:18]line ДТ-К-5 [19:32:18]line 26.250 * 76.20 [19:32:18]line = 2000.25 [19:32:18]line НДС 12% НСП 1% [19:32:18]line > о реализуемом товаре [19:32:18]line ИТОГО: 2000.25 [19:32:18]line НСП 1% : 17.70 [19:32:18]line НДС 12% : 212.42 [19:32:18]line Наличными: 0.00 [19:32:18]line Безнал.: 2000.25 [19:32:18]line Место: АЗС № 161 "Партнер Нефть" [19:32:18]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:32:18]line СНО: Общий режим [19:32:18]line Чек 297 21.10.2024 19:32 [19:32:18]line Смена: 535 ФФД: 1.0 [19:32:18]line ЗНМ: 0300000104 [19:32:18]line РНМ: 0000000000091764 [19:32:18]line Версия ККМ: 001 [19:32:18]line Платежная система: Mbank [19:32:18]line ФМ: 0000000000871759 [19:32:18]line ФД: 166186 [19:32:18]line ФПД: 140817742949429 [19:32:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193236&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166186&fm=140817742949429&tin=02508201610067®Number=0000000000091764&sum=200025 [19:32:18]OFD Sender: Processing packet 166186 [packets to send 48, broken 47] [19:32:18]ProducePacketName [19:32:18]name=ofd_packets/00166186 [19:32:18]OFD Sender: To server: pG, [19:32:18]CommunicateWithHost lk.salyk.kg:30040 [19:32:18]ConnectInit lk.salyk.kg [19:32:18]written 0, free lines is 4095 [19:32:18]Connected sock=7 [19:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 B1 44 04 01 9A DC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 54 AC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 89 02 00 35 04 06 00 80 12 AF 8B EC 35 68 5C 4D BB 75 C8 B6 8D [19:32:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 48 69 47 00 C4 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2A 89 02 00 F4 03 04 00 C2 52 16 67 B6 04 01 00 00 C7 78 68 20 FA 92 63 2D [19:32:19]CommunicateWithHost err = 0 [19:32:19]CheckOFDResponse [19:32:19]1017 (14) - 77093643461234 [19:32:19]1041 (16) - 0000000000871759 [19:32:19]1040 (4) - 166186 [19:32:19]1012 (4) - 21.10.2024 13:10 [19:32:19]1206 (1) - 0 [19:32:19]OFD Sender: Remove packet 166186 [19:32:19]ProducePacketName [19:32:19]name=ofd_packets/00166186 [19:32:19]NVStorageDeleteData [19:32:19]Write to MH i2c: 01 00 00 2D 80 AD [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: 01 07 00 2D 80 00 00 00 00 00 E8 0C A8 [19:32:19]RasterBufferAndPrint [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]line [19:32:19]written 0, free lines is 3314 [19:32:19]MH_Cut [19:32:19]Write to MH i2c: D1 01 00 34 80 01 86 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 01 00 [19:32:19]MH_I2C_Read... [19:32:19]Read from MH i2c: D1 01 00 34 80 00 85 [19:32:19]Write to MH i2c: 01 00 00 35 80 B5 [19:32:19]Write i2c OK [19:32:19]MH_I2C_Read... [19:32:19]OFD Sender: No OFD packet to send [19:32:19]*** Cut start [19:32:19]*** Partial cut [19:32:19]*** CUTSNS_PIN = 1 [19:32:20]*** CUTSNS_PIN = 0 [19:32:20]*** Brake cut motor [19:32:20]Read from MH i2c: 01 [19:32:20]MH_I2C_Read... [19:32:20]*** Stop cut motor [19:32:20]*** Cut end [19:32:20]Read from MH i2c: 01 07 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: 01 07 00 35 80 00 00 00 00 00 FF 0F CA [19:32:20]process_action close_receipt done [19:32:20]requested_data is exist [19:32:20]produce_requested_data [19:32:20]requested_item fm.sn is exist - process it [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 11 00 00 [19:32:20]Write to MH i2c: E2 08 00 36 80 80 11 00 00 00 00 00 00 30 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 17 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 17 00 36 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 88 [19:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:32:20]wFMCommunicate OK [19:32:20]requested_item fd.num is exist - process it [19:32:20]SAM_PROTO_GetFieldsCounters [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 13 00 00 [19:32:20]Write to MH i2c: E2 08 00 37 80 80 13 00 00 00 00 00 00 33 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 62 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 62 00 37 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [19:32:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:20]wFMCommunicate OK [19:32:20]SAM_PROTO_GetFieldsCounters done [19:32:20]requested_item shift.num is exist - process it [19:32:20]requested_item shift.opened is exist - process it [19:32:20]req_shift_opened [19:32:20]FM_GetShiftState [19:32:20]SAM_PROTO_GetShiftState [19:32:20]wFMCommunicate request_size=4 [19:32:20]MH_SAM_APDU [19:32:20]CAPDU: 80 13 01 00 [19:32:20]Write to MH i2c: E2 08 00 38 80 80 13 01 00 00 00 00 00 35 [19:32:20]Write i2c OK [19:32:20]MH_I2C_Read... [19:32:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:20]Read from MH i2c: E2 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0E 00 [19:32:20]MH_I2C_Read... [19:32:20]Read from MH i2c: E2 0E 00 38 80 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3E [19:32:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:32:20]wFMCommunicate OK [19:32:20]SAM_PROTO_GetShiftState done [19:32:20]FM_GetShiftState done [19:32:20]req_shift_opened done [19:32:20]requested_item shift.open_date is exist - process it [19:32:20]req_shift_open_date [19:32:20]req_shift_open_date done [19:32:20]produce_requested_data done [19:32:20]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166186,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:32:20]process_action_free close_receipt [19:32:20]json_value_free [19:32:20]json_value_free done [19:32:20]process_json_proto returns [19:32:20]Send response to host [19:32:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166186,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:32:20]free response buf [19:32:20]execute_script done [19:32:20]execute_script returns [19:32:20]free content buf [19:32:20]Sock 5.Close socket [19:32:20]Sock 5.Thread stoped [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:13]accept exits with 6 [19:37:13]New connection [19:37:13]New thread 3066776932 created [19:37:13]Thread 3066920292 joined [19:37:13]Waiting for new connection... [19:37:13] Sock 6.Parse request [19:37:13]Sock 6.Check first char [19:37:13]Sock 6.First char is OK [19:37:13]request: POST /json_proto HTTP/1.0 [19:37:13]Method: POST [19:37:13]URL: /json_proto [19:37:13]Method is POST - this is cgi request [19:37:13]url: /json_proto [19:37:13]query_string will be loaded in cgi processing [19:37:13]execute_cgi json_proto POST (null) [19:37:13]execute_cgi path=json_proto method=POST [19:37:13]POST find Content-Length [19:37:13]Host: 172.17.53.195:8080 [19:37:13]Content-Length: 769 [19:37:13]Content-Type: application/json [19:37:13] [19:37:13]POST finish read [19:37:13]Found Content-Length = 769 [19:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:13]execute_script... [19:37:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220758", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:13]POST & json_proto [19:37:13]process_json_proto [19:37:13]json parsed OK: [19:37:13]protocol is kg_v1.0 [19:37:13]action value=close_receipt [19:37:13]process_action close_receipt [19:37:13]cmd_close_receipt [19:37:13]MH_GetDate [19:37:13]Write to MH i2c: F0 00 00 39 80 A8 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: F0 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: F0 09 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: F0 09 00 39 80 00 7D AD 16 67 21 48 4A 65 70 [19:37:13]GetLastDocTimeStamp 1729539156 [19:37:13]current date 1729539453 [19:37:13]FM_GetShiftState [19:37:13]SAM_PROTO_GetShiftState [19:37:13]wFMCommunicate request_size=4 [19:37:13]MH_SAM_APDU [19:37:13]CAPDU: 80 13 01 00 [19:37:13]Write to MH i2c: E2 08 00 3A 80 80 13 01 00 00 00 00 00 37 [19:37:13]Write i2c OK [19:37:13]MH_I2C_Read... [19:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:13]Read from MH i2c: E2 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 0E 00 [19:37:13]MH_I2C_Read... [19:37:13]Read from MH i2c: E2 0E 00 3A 80 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 40 [19:37:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:37:13]wFMCommunicate OK [19:37:13]SAM_PROTO_GetShiftState done [19:37:13]FM_GetShiftState done [19:37:13]opened in 1729470944 [19:37:13]opened+sec_in_day 1729557344 [19:37:13]quantity*price = 100015 [19:37:13]sum+1 = 100017 [19:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 298 21.10.2024 19:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166187 ФПД: 91740213543087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193733&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166187&fm=91740213543087&tin=02508201610067®Number=0000000000091764&sum=100016 [19:37:14]StoreToDocumentArchive [19:37:14]shift 535 fd 166187 [19:37:14]save to /storage/0535/doc_00166187 [19:37:14]save last doc name /storage/0535/doc_00166187 to /storage/kkm_last_doc_name [19:37:14]save OK [19:37:14]Clear old archive folders... [19:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:37:14]tlvbuf is 0166AA30 [19:37:14]SAM_PROTO_ClearQueue [19:37:14]wFMCommunicate request_size=4 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 09 00 00 [19:37:14]Write to MH i2c: E2 08 00 47 80 80 09 00 00 00 00 00 00 39 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 47 80 00 90 00 3B [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]SAM_PROTO_ClearQueue done [19:37:14]KKMCreateOFDPacket [19:37:14]OFDProtocolAddRootSTLVToBuf [19:37:14]FM_MakeSignedData [19:37:14]FM_MakeSignedData [19:37:14]SAM_PROTO_SignData [19:37:14]wFMCommunicate request_size=4 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 01 02 [19:37:14]Write to MH i2c: E2 08 00 48 80 80 0D 01 02 00 00 00 00 41 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 48 80 00 90 00 3C [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]wFMCommunicate request_size=255 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 7D AD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 89 02 00 35 04 06 00 53 [19:37:14]Write to MH i2c: E2 02 01 49 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 7D AD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 89 02 00 35 04 06 00 53 00 00 E5 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:14]OFD Sender: No OFD packet to send [19:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:14]Read from MH i2c: E2 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 [19:37:14]MH_I2C_Read... [19:37:14]Read from MH i2c: E2 03 00 49 80 00 90 00 3D [19:37:14]RAPDU: 90 00 [19:37:14]wFMCommunicate OK [19:37:14]wFMCommunicate request_size=10 [19:37:14]MH_SAM_APDU [19:37:14]CAPDU: 80 0D 02 02 05 6F EE D7 00 AF [19:37:14]Write to MH i2c: E2 0D 00 4A 80 80 0D 02 02 05 00 6F EE D7 00 AF 00 00 31 [19:37:14]Write i2c OK [19:37:14]MH_I2C_Read... [19:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:15]Read from MH i2c: E2 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 03 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 03 00 4A 80 00 90 00 3E [19:37:15]RAPDU: 90 00 [19:37:15]wFMCommunicate OK [19:37:15]wFMCommunicate request_size=4 [19:37:15]MH_SAM_APDU [19:37:15]CAPDU: 80 0D 03 02 [19:37:15]Write to MH i2c: E2 08 00 4B 80 80 0D 03 02 00 00 00 00 46 [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:15]Read from MH i2c: E2 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 0B 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 0B 00 4B 80 00 4C CC 86 60 0B C4 C4 43 90 00 1B [19:37:15]RAPDU: 4C CC 86 60 0B C4 C4 43 90 00 [19:37:15]wFMCommunicate OK [19:37:15]SAM_PROTO_SignData done [19:37:15]FM_MakeSignedData done [19:37:15]CreateOFDProtocolMessage [19:37:15]wFMCommunicate request_size=4 [19:37:15]MH_SAM_APDU [19:37:15]CAPDU: 80 11 00 00 [19:37:15]Write to MH i2c: E2 08 00 4C 80 80 11 00 00 00 00 00 00 46 [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:15]Read from MH i2c: E2 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 17 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: E2 17 00 4C 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9E [19:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:37:15]wFMCommunicate OK [19:37:15]CreateOFDProtocolMessage done [19:37:15]OFDSenderStorePacket 166187 [19:37:15]StoreOFDPacket docnum=166187 [19:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 63 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 7D AD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 89 02 00 35 04 06 00 53 6F EE D7 00 AF 4C CC 86 60 0B C4 C4 43 [19:37:15]CheckFolder [19:37:15]dirname=/storage/ofd_packets [19:37:15]CheckFolder done [19:37:15]ProducePacketName [19:37:15]name=ofd_packets/00166187 [19:37:15]NVStorageSaveData ofd_packets/00166187 [19:37:15]File name is /storage/ofd_packets/00166187 [19:37:15]Write 301 bytes [19:37:15]NVStorageSaveData done [19:37:15]OFDSenderStorePacket done [19:37:15]KKMCreateOFDPacket done [19:37:15]NVStorageSaveData kkm_last_timestamp [19:37:15]File name is /storage/kkm_last_timestamp [19:37:15]Write 4 bytes [19:37:15]NVStorageSaveData done [19:37:15]ExternCall_PrintAddStr [19:37:15]wPrintStart [19:37:15]Write to MH i2c: 01 00 00 4D 80 CD [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 4D 80 00 00 00 00 00 FF 0F E2 [19:37:15]RasterBufferAndPrint [19:37:15]line Счет N : (1)220758 [19:37:15]line ИНН: 02508201610067 [19:37:15]line Контрольно-Кассовый Чек [19:37:15]line ПРОДАЖА [19:37:15]line ТРК (МРК, ГНК) : 13 [19:37:15]line Товар: 2710124130 [19:37:15]line Аи-92-К-5 [19:37:15]line 14.950 * 66.90 [19:37:15]line = 1000.16 [19:37:15]line НДС 12% НСП 1% [19:37:15]line > о реализуемом товаре [19:37:15]line ИТОГО: 1000.16 [19:37:15]line НСП 1% : 8.85 [19:37:15]line НДС 12% : 106.21 [19:37:15]line Наличными: 0.00 [19:37:15]line Безнал.: 1000.16 [19:37:15]line Место: АЗС № 161 "Партнер Нефть" [19:37:15]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:37:15]line СНО: Общий режим [19:37:15]line Чек 298 21.10.2024 19:37 [19:37:15]line Смена: 535 ФФД: 1.0 [19:37:15]line ЗНМ: 0300000104 [19:37:15]line РНМ: 0000000000091764 [19:37:15]line Версия ККМ: 001 [19:37:15]line Платежная система: Mbank [19:37:15]line ФМ: 0000000000871759 [19:37:15]line ФД: 166187 [19:37:15]line ФПД: 91740213543087 [19:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T193733&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166187&fm=91740213543087&tin=02508201610067®Number=0000000000091764&sum=100016 [19:37:15]OFD Sender: Processing packet 166187 [packets to send 48, broken 47] [19:37:15]ProducePacketName [19:37:15]name=ofd_packets/00166187 [19:37:15]OFD Sender: To server: pG, [19:37:15]CommunicateWithHost lk.salyk.kg:30040 [19:37:15]ConnectInit lk.salyk.kg [19:37:15]written 0, free lines is 4095 [19:37:15]Connected sock=7 [19:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E2 63 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 7D AD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 89 02 00 35 04 06 00 53 6F EE D7 00 AF 4C CC 86 60 0B C4 C4 43 [19:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD AE 47 00 B7 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2B 89 02 00 F4 03 04 00 EA 53 16 67 B6 04 01 00 00 13 F4 C3 D4 F5 E3 16 04 [19:37:15]CommunicateWithHost err = 0 [19:37:15]CheckOFDResponse [19:37:15]1017 (14) - 77093643461234 [19:37:15]1041 (16) - 0000000000871759 [19:37:15]1040 (4) - 166187 [19:37:15]1012 (4) - 21.10.2024 13:15 [19:37:15]1206 (1) - 0 [19:37:15]OFD Sender: Remove packet 166187 [19:37:15]ProducePacketName [19:37:15]name=ofd_packets/00166187 [19:37:15]NVStorageDeleteData [19:37:15]Write to MH i2c: 01 00 00 76 80 F6 [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: 01 07 00 76 80 00 00 00 00 00 E1 0C EA [19:37:15]RasterBufferAndPrint [19:37:15]line [19:37:15]line [19:37:15]line [19:37:15]line [19:37:15]line [19:37:15]written 0, free lines is 3303 [19:37:15]MH_Cut [19:37:15]Write to MH i2c: D1 01 00 7D 80 01 CF [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: D1 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: D1 01 00 [19:37:15]MH_I2C_Read... [19:37:15]Read from MH i2c: D1 01 00 7D 80 00 CE [19:37:15]Write to MH i2c: 01 00 00 7E 80 FE [19:37:15]Write i2c OK [19:37:15]MH_I2C_Read... [19:37:16]OFD Sender: No OFD packet to send [19:37:16]*** Cut start [19:37:16]*** Partial cut [19:37:16]*** CUTSNS_PIN = 1 [19:37:16]*** CUTSNS_PIN = 0 [19:37:16]*** Brake cut motor [19:37:17]Read from MH i2c: 01 [19:37:17]MH_I2C_Read... [19:37:17]*** Stop cut motor [19:37:17]*** Cut end [19:37:17]Read from MH i2c: 01 07 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: 01 07 00 7E 80 00 00 00 00 00 FF 0F 13 [19:37:17]process_action close_receipt done [19:37:17]requested_data is exist [19:37:17]produce_requested_data [19:37:17]requested_item fm.sn is exist - process it [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 11 00 00 [19:37:17]Write to MH i2c: E2 08 00 7F 80 80 11 00 00 00 00 00 00 79 [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 17 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 17 00 7F 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D1 [19:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:37:17]wFMCommunicate OK [19:37:17]requested_item fd.num is exist - process it [19:37:17]SAM_PROTO_GetFieldsCounters [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 13 00 00 [19:37:17]Write to MH i2c: E2 08 00 80 80 80 13 00 00 00 00 00 00 7C [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 62 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 62 00 80 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 F4 [19:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:17]wFMCommunicate OK [19:37:17]SAM_PROTO_GetFieldsCounters done [19:37:17]requested_item shift.num is exist - process it [19:37:17]requested_item shift.opened is exist - process it [19:37:17]req_shift_opened [19:37:17]FM_GetShiftState [19:37:17]SAM_PROTO_GetShiftState [19:37:17]wFMCommunicate request_size=4 [19:37:17]MH_SAM_APDU [19:37:17]CAPDU: 80 13 01 00 [19:37:17]Write to MH i2c: E2 08 00 81 80 80 13 01 00 00 00 00 00 7E [19:37:17]Write i2c OK [19:37:17]MH_I2C_Read... [19:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:17]Read from MH i2c: E2 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 0E 00 [19:37:17]MH_I2C_Read... [19:37:17]Read from MH i2c: E2 0E 00 81 80 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 87 [19:37:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:37:17]wFMCommunicate OK [19:37:17]SAM_PROTO_GetShiftState done [19:37:17]FM_GetShiftState done [19:37:17]req_shift_opened done [19:37:17]requested_item shift.open_date is exist - process it [19:37:17]req_shift_open_date [19:37:17]req_shift_open_date done [19:37:17]produce_requested_data done [19:37:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166187,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:37:17]process_action_free close_receipt [19:37:17]json_value_free [19:37:17]json_value_free done [19:37:17]process_json_proto returns [19:37:17]Send response to host [19:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166187,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:37:17]free response buf [19:37:17]execute_script done [19:37:17]execute_script returns [19:37:17]free content buf [19:37:17]Sock 6.Close socket [19:37:17]Sock 6.Thread stoped [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:08]accept exits with 5 [19:41:08]New connection [19:41:08]New thread 3066920292 created [19:41:08]Thread 3066776932 joined [19:41:08]Waiting for new connection... [19:41:08] Sock 5.Parse request [19:41:08]Sock 5.Check first char [19:41:08]Sock 5.First char is OK [19:41:08]request: POST /json_proto HTTP/1.0 [19:41:08]Method: POST [19:41:08]URL: /json_proto [19:41:08]Method is POST - this is cgi request [19:41:08]url: /json_proto [19:41:08]query_string will be loaded in cgi processing [19:41:08]execute_cgi json_proto POST (null) [19:41:08]execute_cgi path=json_proto method=POST [19:41:08]POST find Content-Length [19:41:08]Host: 172.17.53.195:8080 [19:41:08]Content-Length: 769 [19:41:08]Content-Type: application/json [19:41:08] [19:41:08]POST finish read [19:41:08]Found Content-Length = 769 [19:41:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:08]execute_script... [19:41: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)220759", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:08]POST & json_proto [19:41:08]process_json_proto [19:41:08]json parsed OK: [19:41:08]protocol is kg_v1.0 [19:41:08]action value=close_receipt [19:41:08]process_action close_receipt [19:41:08]cmd_close_receipt [19:41:08]MH_GetDate [19:41:08]Write to MH i2c: F0 00 00 82 80 F1 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: F0 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: F0 09 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: F0 09 00 82 80 00 68 AE 16 67 21 48 4A 65 A5 [19:41:08]GetLastDocTimeStamp 1729539453 [19:41:08]current date 1729539688 [19:41:08]FM_GetShiftState [19:41:08]SAM_PROTO_GetShiftState [19:41:08]wFMCommunicate request_size=4 [19:41:08]MH_SAM_APDU [19:41:08]CAPDU: 80 13 01 00 [19:41:08]Write to MH i2c: E2 08 00 83 80 80 13 01 00 00 00 00 00 80 [19:41:08]Write i2c OK [19:41:08]MH_I2C_Read... [19:41:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:08]Read from MH i2c: E2 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 0E 00 [19:41:08]MH_I2C_Read... [19:41:08]Read from MH i2c: E2 0E 00 83 80 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 89 [19:41:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:41:08]wFMCommunicate OK [19:41:08]SAM_PROTO_GetShiftState done [19:41:08]FM_GetShiftState done [19:41:08]opened in 1729470944 [19:41:08]opened+sec_in_day 1729557344 [19:41:08]quantity*price = 100015 [19:41:08]sum+1 = 100017 [19:41:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 299 21.10.2024 19:41 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166188 ФПД: 103554230162770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194128&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166188&fm=103554230162770&tin=02508201610067®Number=0000000000091764&sum=100016 [19:41:09]StoreToDocumentArchive [19:41:09]shift 535 fd 166188 [19:41:09]save to /storage/0535/doc_00166188 [19:41:09]save last doc name /storage/0535/doc_00166188 to /storage/kkm_last_doc_name [19:41:09]save OK [19:41:09]Clear old archive folders... [19:41:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:09]tlvbuf is 01B8DFD0 [19:41:09]SAM_PROTO_ClearQueue [19:41:09]wFMCommunicate request_size=4 [19:41:09]MH_SAM_APDU [19:41:09]CAPDU: 80 09 00 00 [19:41:09]Write to MH i2c: E2 08 00 90 80 80 09 00 00 00 00 00 00 82 [19:41:09]Write i2c OK [19:41:09]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 90 80 00 90 00 84 [19:41:10]RAPDU: 90 00 [19:41:10]wFMCommunicate OK [19:41:10]SAM_PROTO_ClearQueue done [19:41:10]KKMCreateOFDPacket [19:41:10]OFDProtocolAddRootSTLVToBuf [19:41:10]FM_MakeSignedData [19:41:10]FM_MakeSignedData [19:41:10]SAM_PROTO_SignData [19:41:10]wFMCommunicate request_size=4 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 0D 01 02 [19:41:10]Write to MH i2c: E2 08 00 91 80 80 0D 01 02 00 00 00 00 8A [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 91 80 00 90 00 85 [19:41:10]RAPDU: 90 00 [19:41:10]wFMCommunicate OK [19:41:10]wFMCommunicate request_size=255 [19:41:10]MH_SAM_APDU [19:41: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 68 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 89 02 00 35 04 06 00 5E [19:41:10]Write to MH i2c: E2 02 01 92 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 68 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 89 02 00 35 04 06 00 5E 00 00 27 [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 92 80 00 90 00 86 [19:41:10]RAPDU: 90 00 [19:41:10]wFMCommunicate OK [19:41:10]wFMCommunicate request_size=10 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 0D 02 02 05 2E 99 1A 95 52 [19:41:10]Write to MH i2c: E2 0D 00 93 80 80 0D 02 02 05 00 2E 99 1A 95 52 00 00 5F [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 03 00 93 80 00 90 00 87 [19:41:10]RAPDU: 90 00 [19:41:10]wFMCommunicate OK [19:41:10]wFMCommunicate request_size=4 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 0D 03 02 [19:41:10]Write to MH i2c: E2 08 00 94 80 80 0D 03 02 00 00 00 00 8F [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 0B 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 0B 00 94 80 00 CD 0F 93 2A EF 87 5E A5 90 00 A2 [19:41:10]RAPDU: CD 0F 93 2A EF 87 5E A5 90 00 [19:41:10]wFMCommunicate OK [19:41:10]SAM_PROTO_SignData done [19:41:10]FM_MakeSignedData done [19:41:10]CreateOFDProtocolMessage [19:41:10]wFMCommunicate request_size=4 [19:41:10]MH_SAM_APDU [19:41:10]CAPDU: 80 11 00 00 [19:41:10]Write to MH i2c: E2 08 00 95 80 80 11 00 00 00 00 00 00 8F [19:41:10]Write i2c OK [19:41:10]MH_I2C_Read... [19:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:10]Read from MH i2c: E2 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 17 00 [19:41:10]MH_I2C_Read... [19:41:10]Read from MH i2c: E2 17 00 95 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E7 [19:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:41:10]wFMCommunicate OK [19:41:10]CreateOFDProtocolMessage done [19:41:10]OFDSenderStorePacket 166188 [19:41:10]StoreOFDPacket docnum=166188 [19:41:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B7 B2 07 01 AE 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 68 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 89 02 00 35 04 06 00 5E 2E 99 1A 95 52 CD 0F 93 2A EF 87 5E A5 [19:41:10]CheckFolder [19:41:10]dirname=/storage/ofd_packets [19:41:10]CheckFolder done [19:41:10]ProducePacketName [19:41:10]name=ofd_packets/00166188 [19:41:10]NVStorageSaveData ofd_packets/00166188 [19:41:10]File name is /storage/ofd_packets/00166188 [19:41:10]Write 301 bytes [19:41:10]NVStorageSaveData done [19:41:10]OFDSenderStorePacket done [19:41:10]KKMCreateOFDPacket done [19:41:10]NVStorageSaveData kkm_last_timestamp [19:41:10]File name is /storage/kkm_last_timestamp [19:41:10]Write 4 bytes [19:41:10]NVStorageSaveData done [19:41:10]ExternCall_PrintAddStr [19:41:10]wPrintStart [19:41:10]Write to MH i2c: 01 00 00 96 80 16 [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 96 80 00 00 00 00 00 FF 0F 2B [19:41:10]RasterBufferAndPrint [19:41:10]line Счет N : (1)220759 [19:41:10]line ИНН: 02508201610067 [19:41:10]line Контрольно-Кассовый Чек [19:41:10]line ПРОДАЖА [19:41:10]line ТРК (МРК, ГНК) : 13 [19:41:10]line Товар: 2710124130 [19:41:10]line Аи-92-К-5 [19:41:10]line 14.950 * 66.90 [19:41:10]line = 1000.16 [19:41:10]line НДС 12% НСП 1% [19:41:10]line > о реализуемом товаре [19:41:10]line ИТОГО: 1000.16 [19:41:10]line НСП 1% : 8.85 [19:41:10]line НДС 12% : 106.21 [19:41:10]line Наличными: 0.00 [19:41:10]line Безнал.: 1000.16 [19:41:10]line Место: АЗС № 161 "Партнер Нефть" [19:41:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:41:10]line СНО: Общий режим [19:41:10]line Чек 299 21.10.2024 19:41 [19:41:10]line Смена: 535 ФФД: 1.0 [19:41:10]line ЗНМ: 0300000104 [19:41:10]line РНМ: 0000000000091764 [19:41:10]line Версия ККМ: 001 [19:41:10]line Платежная система: Mbank [19:41:10]line ФМ: 0000000000871759 [19:41:10]line ФД: 166188 [19:41:10]line ФПД: 103554230162770 [19:41:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194128&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166188&fm=103554230162770&tin=02508201610067®Number=0000000000091764&sum=100016 [19:41:10]written 0, free lines is 4095 [19:41:10]OFD Sender: Processing packet 166188 [packets to send 48, broken 47] [19:41:10]ProducePacketName [19:41:10]name=ofd_packets/00166188 [19:41:10]OFD Sender: To server: pG, [19:41:10]CommunicateWithHost lk.salyk.kg:30040 [19:41:10]ConnectInit lk.salyk.kg [19:41:10]Connected sock=7 [19:41:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B7 B2 07 01 AE 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 68 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 89 02 00 35 04 06 00 5E 2E 99 1A 95 52 CD 0F 93 2A EF 87 5E A5 [19:41:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 17 1B 47 00 2C AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2C 89 02 00 F4 03 04 00 D6 54 16 67 B6 04 01 00 00 B3 31 28 38 4B A2 95 A7 [19:41:11]CommunicateWithHost err = 0 [19:41:11]CheckOFDResponse [19:41:11]1017 (14) - 77093643461234 [19:41:11]1041 (16) - 0000000000871759 [19:41:11]1040 (4) - 166188 [19:41:11]1012 (4) - 21.10.2024 13:19 [19:41:11]1206 (1) - 0 [19:41:11]OFD Sender: Remove packet 166188 [19:41:11]ProducePacketName [19:41:11]name=ofd_packets/00166188 [19:41:11]NVStorageDeleteData [19:41:11]Write to MH i2c: 01 00 00 BF 80 3F [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: 01 [19:41:11]MH_I2C_Read... [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 BF 80 00 00 00 00 00 EB 0C 3D [19:41:11]RasterBufferAndPrint [19:41:11]line [19:41:11]line [19:41:11]line [19:41:11]line [19:41:11]line [19:41:11]written 0, free lines is 3314 [19:41:11]MH_Cut [19:41:11]Write to MH i2c: D1 01 00 C6 80 01 18 [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: D1 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: D1 01 00 [19:41:11]MH_I2C_Read... [19:41:11]Read from MH i2c: D1 01 00 C6 80 00 17 [19:41:11]Write to MH i2c: 01 00 00 C7 80 47 [19:41:11]Write i2c OK [19:41:11]MH_I2C_Read... [19:41:11]OFD Sender: No OFD packet to send [19:41:12]*** Cut start [19:41:12]*** Partial cut [19:41:12]*** CUTSNS_PIN = 1 [19:41:12]*** CUTSNS_PIN = 0 [19:41:12]*** Brake cut motor [19:41:12]Read from MH i2c: 01 [19:41:12]MH_I2C_Read... [19:41:12]*** Stop cut motor [19:41:12]*** Cut end [19:41:12]Read from MH i2c: 01 07 00 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: 01 07 00 C7 80 00 00 00 00 00 FF 0F 5C [19:41:12]process_action close_receipt done [19:41:12]requested_data is exist [19:41:12]produce_requested_data [19:41:12]requested_item fm.sn is exist - process it [19:41:12]wFMCommunicate request_size=4 [19:41:12]MH_SAM_APDU [19:41:12]CAPDU: 80 11 00 00 [19:41:12]Write to MH i2c: E2 08 00 C8 80 80 11 00 00 00 00 00 00 C2 [19:41:12]Write i2c OK [19:41:12]MH_I2C_Read... [19:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:12]Read from MH i2c: E2 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: E2 17 00 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: E2 17 00 C8 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [19:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:41:12]wFMCommunicate OK [19:41:12]requested_item fd.num is exist - process it [19:41:12]SAM_PROTO_GetFieldsCounters [19:41:12]wFMCommunicate request_size=4 [19:41:12]MH_SAM_APDU [19:41:12]CAPDU: 80 13 00 00 [19:41:12]Write to MH i2c: E2 08 00 C9 80 80 13 00 00 00 00 00 00 C5 [19:41:12]Write i2c OK [19:41:12]MH_I2C_Read... [19:41:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:12]Read from MH i2c: E2 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: E2 62 00 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: E2 62 00 C9 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [19:41:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:12]wFMCommunicate OK [19:41:12]SAM_PROTO_GetFieldsCounters done [19:41:12]requested_item shift.num is exist - process it [19:41:12]requested_item shift.opened is exist - process it [19:41:12]req_shift_opened [19:41:12]FM_GetShiftState [19:41:12]SAM_PROTO_GetShiftState [19:41:12]wFMCommunicate request_size=4 [19:41:12]MH_SAM_APDU [19:41:12]CAPDU: 80 13 01 00 [19:41:12]Write to MH i2c: E2 08 00 CA 80 80 13 01 00 00 00 00 00 C7 [19:41:12]Write i2c OK [19:41:12]MH_I2C_Read... [19:41:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:12]Read from MH i2c: E2 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: E2 0E 00 [19:41:12]MH_I2C_Read... [19:41:12]Read from MH i2c: E2 0E 00 CA 80 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D0 [19:41:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:41:12]wFMCommunicate OK [19:41:12]SAM_PROTO_GetShiftState done [19:41:12]FM_GetShiftState done [19:41:12]req_shift_opened done [19:41:12]requested_item shift.open_date is exist - process it [19:41:12]req_shift_open_date [19:41:12]req_shift_open_date done [19:41:12]produce_requested_data done [19:41:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166188,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:41:12]process_action_free close_receipt [19:41:12]json_value_free [19:41:12]json_value_free done [19:41:12]process_json_proto returns [19:41:12]Send response to host [19:41:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166188,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:41:12]free response buf [19:41:12]execute_script done [19:41:12]execute_script returns [19:41:12]free content buf [19:41:12]Sock 5.Close socket [19:41:12]Sock 5.Thread stoped [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:28]accept exits with 6 [19:42:28]New connection [19:42:28]New thread 3066776932 created [19:42:28]Thread 3066920292 joined [19:42:28]Waiting for new connection... [19:42:28] Sock 6.Parse request [19:42:28]Sock 6.Check first char [19:42:28]Sock 6.First char is OK [19:42:28]request: POST /json_proto HTTP/1.0 [19:42:28]Method: POST [19:42:28]URL: /json_proto [19:42:28]Method is POST - this is cgi request [19:42:28]url: /json_proto [19:42:28]query_string will be loaded in cgi processing [19:42:28]execute_cgi json_proto POST (null) [19:42:28]execute_cgi path=json_proto method=POST [19:42:28]POST find Content-Length [19:42:28]Host: 172.17.53.195:8080 [19:42:28]Content-Length: 769 [19:42:28]Content-Type: application/json [19:42:28] [19:42:28]POST finish read [19:42:28]Found Content-Length = 769 [19:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:28]execute_script... [19:42:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220760", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:28]POST & json_proto [19:42:28]process_json_proto [19:42:28]json parsed OK: [19:42:28]protocol is kg_v1.0 [19:42:28]action value=close_receipt [19:42:28]process_action close_receipt [19:42:28]cmd_close_receipt [19:42:28]MH_GetDate [19:42:28]Write to MH i2c: F0 00 00 CB 80 3A [19:42:28]Write i2c OK [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: F0 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: F0 09 00 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: F0 09 00 CB 80 00 B8 AE 16 67 21 48 4A 65 3E [19:42:28]GetLastDocTimeStamp 1729539688 [19:42:28]current date 1729539768 [19:42:28]FM_GetShiftState [19:42:28]SAM_PROTO_GetShiftState [19:42:28]wFMCommunicate request_size=4 [19:42:28]MH_SAM_APDU [19:42:28]CAPDU: 80 13 01 00 [19:42:28]Write to MH i2c: E2 08 00 CC 80 80 13 01 00 00 00 00 00 C9 [19:42:28]Write i2c OK [19:42:28]MH_I2C_Read... [19:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:28]Read from MH i2c: E2 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 0E 00 [19:42:28]MH_I2C_Read... [19:42:28]Read from MH i2c: E2 0E 00 CC 80 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D2 [19:42:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:42:28]wFMCommunicate OK [19:42:28]SAM_PROTO_GetShiftState done [19:42:28]FM_GetShiftState done [19:42:28]opened in 1729470944 [19:42:28]opened+sec_in_day 1729557344 [19:42:28]quantity*price = 120018 [19:42:28]sum+1 = 120020 [19:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 300 21.10.2024 19:42 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166189 ФПД: 201560081094936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194248&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166189&fm=201560081094936&tin=02508201610067®Number=0000000000091764&sum=120019 [19:42:29]StoreToDocumentArchive [19:42:29]shift 535 fd 166189 [19:42:29]save to /storage/0535/doc_00166189 [19:42:29]save last doc name /storage/0535/doc_00166189 to /storage/kkm_last_doc_name [19:42:29]save OK [19:42:29]Clear old archive folders... [19:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:29]tlvbuf is 01484900 [19:42:29]SAM_PROTO_ClearQueue [19:42:29]wFMCommunicate request_size=4 [19:42:29]MH_SAM_APDU [19:42:29]CAPDU: 80 09 00 00 [19:42:29]Write to MH i2c: E2 08 00 D9 80 80 09 00 00 00 00 00 00 CB [19:42:29]Write i2c OK [19:42:29]MH_I2C_Read... [19:42:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:30]Read from MH i2c: E2 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 D9 80 00 90 00 CD [19:42:30]RAPDU: 90 00 [19:42:30]wFMCommunicate OK [19:42:30]SAM_PROTO_ClearQueue done [19:42:30]KKMCreateOFDPacket [19:42:30]OFDProtocolAddRootSTLVToBuf [19:42:30]FM_MakeSignedData [19:42:30]FM_MakeSignedData [19:42:30]SAM_PROTO_SignData [19:42:30]wFMCommunicate request_size=4 [19:42:30]MH_SAM_APDU [19:42:30]CAPDU: 80 0D 01 02 [19:42:30]Write to MH i2c: E2 08 00 DA 80 80 0D 01 02 00 00 00 00 D3 [19:42:30]Write i2c OK [19:42:30]MH_I2C_Read... [19:42:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:30]Read from MH i2c: E2 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 DA 80 00 90 00 CE [19:42:30]RAPDU: 90 00 [19:42:30]wFMCommunicate OK [19:42:30]wFMCommunicate request_size=255 [19:42:30]MH_SAM_APDU [19:42: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B8 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 89 02 00 35 04 06 00 B7 [19:42:30]Write to MH i2c: E2 02 01 DB 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B8 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 89 02 00 35 04 06 00 B7 00 00 2E [19:42:30]Write i2c OK [19:42:30]MH_I2C_Read... [19:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:30]Read from MH i2c: E2 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 DB 80 00 90 00 CF [19:42:30]RAPDU: 90 00 [19:42:30]wFMCommunicate OK [19:42:30]wFMCommunicate request_size=10 [19:42:30]MH_SAM_APDU [19:42:30]CAPDU: 80 0D 02 02 05 51 5D 08 D9 18 [19:42:30]Write to MH i2c: E2 0D 00 DC 80 80 0D 02 02 05 00 51 5D 08 D9 18 00 00 87 [19:42:30]Write i2c OK [19:42:30]MH_I2C_Read... [19:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:30]Read from MH i2c: E2 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 03 00 DC 80 00 90 00 D0 [19:42:30]RAPDU: 90 00 [19:42:30]wFMCommunicate OK [19:42:30]wFMCommunicate request_size=4 [19:42:30]MH_SAM_APDU [19:42:30]CAPDU: 80 0D 03 02 [19:42:30]Write to MH i2c: E2 08 00 DD 80 80 0D 03 02 00 00 00 00 D8 [19:42:30]Write i2c OK [19:42:30]MH_I2C_Read... [19:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:30]Read from MH i2c: E2 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 0B 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 0B 00 DD 80 00 DB 2C 70 DB CA 24 5D 78 90 00 EE [19:42:30]RAPDU: DB 2C 70 DB CA 24 5D 78 90 00 [19:42:30]wFMCommunicate OK [19:42:30]SAM_PROTO_SignData done [19:42:30]FM_MakeSignedData done [19:42:30]CreateOFDProtocolMessage [19:42:30]wFMCommunicate request_size=4 [19:42:30]MH_SAM_APDU [19:42:30]CAPDU: 80 11 00 00 [19:42:30]Write to MH i2c: E2 08 00 DE 80 80 11 00 00 00 00 00 00 D8 [19:42:30]Write i2c OK [19:42:30]MH_I2C_Read... [19:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:30]Read from MH i2c: E2 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 17 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: E2 17 00 DE 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 30 [19:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:42:30]wFMCommunicate OK [19:42:30]CreateOFDProtocolMessage done [19:42:30]OFDSenderStorePacket 166189 [19:42:30]StoreOFDPacket docnum=166189 [19:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 2B 07 01 12 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B8 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 89 02 00 35 04 06 00 B7 51 5D 08 D9 18 DB 2C 70 DB CA 24 5D 78 [19:42:30]CheckFolder [19:42:30]dirname=/storage/ofd_packets [19:42:30]CheckFolder done [19:42:30]ProducePacketName [19:42:30]name=ofd_packets/00166189 [19:42:30]NVStorageSaveData ofd_packets/00166189 [19:42:30]File name is /storage/ofd_packets/00166189 [19:42:30]Write 301 bytes [19:42:30]NVStorageSaveData done [19:42:30]OFDSenderStorePacket done [19:42:30]KKMCreateOFDPacket done [19:42:30]NVStorageSaveData kkm_last_timestamp [19:42:30]File name is /storage/kkm_last_timestamp [19:42:30]Write 4 bytes [19:42:30]NVStorageSaveData done [19:42:30]ExternCall_PrintAddStr [19:42:30]wPrintStart [19:42:30]Write to MH i2c: 01 00 00 DF 80 5F [19:42:30]Write i2c OK [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: 01 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: 01 07 00 [19:42:30]MH_I2C_Read... [19:42:30]Read from MH i2c: 01 07 00 DF 80 00 00 00 00 00 FF 0F 74 [19:42:30]RasterBufferAndPrint [19:42:30]line Счет N : (1)220760 [19:42:30]line ИНН: 02508201610067 [19:42:30]line Контрольно-Кассовый Чек [19:42:30]line ПРОДАЖА [19:42:30]line ТРК (МРК, ГНК) : 33 [19:42:30]line Товар: 2710124130 [19:42:30]line Аи-92-К-5 [19:42:30]line 17.940 * 66.90 [19:42:30]line = 1200.19 [19:42:30]line НДС 12% НСП 1% [19:42:30]line > о реализуемом товаре [19:42:30]line ИТОГО: 1200.19 [19:42:30]line НСП 1% : 10.62 [19:42:30]line НДС 12% : 127.45 [19:42:30]line Наличными: 0.00 [19:42:30]line Безнал.: 1200.19 [19:42:30]line Место: АЗС № 161 "Партнер Нефть" [19:42:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:42:30]line СНО: Общий режим [19:42:30]line Чек 300 21.10.2024 19:42 [19:42:30]line Смена: 535 ФФД: 1.0 [19:42:30]line ЗНМ: 0300000104 [19:42:30]line РНМ: 0000000000091764 [19:42:30]line Версия ККМ: 001 [19:42:30]line Платежная система: Mbank [19:42:30]line ФМ: 0000000000871759 [19:42:30]line ФД: 166189 [19:42:30]line ФПД: 201560081094936 [19:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194248&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166189&fm=201560081094936&tin=02508201610067®Number=0000000000091764&sum=120019 [19:42:30]OFD Sender: Processing packet 166189 [packets to send 48, broken 47] [19:42:30]ProducePacketName [19:42:30]name=ofd_packets/00166189 [19:42:30]OFD Sender: To server: pG, [19:42:30]CommunicateWithHost lk.salyk.kg:30040 [19:42:30]ConnectInit lk.salyk.kg [19:42:30]written 0, free lines is 4095 [19:42:30]Connected sock=7 [19:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 21 2B 07 01 12 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 B8 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2D 89 02 00 35 04 06 00 B7 51 5D 08 D9 18 DB 2C 70 DB CA 24 5D 78 [19:42:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 37 0B 47 00 A1 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 35 39 10 04 04 00 2D 89 02 00 F4 03 04 00 26 55 16 67 B6 04 01 00 00 22 B6 AB 82 86 B2 E4 94 [19:42:31]CommunicateWithHost err = 0 [19:42:31]CheckOFDResponse [19:42:31]1017 (14) - 77093643461234 [19:42:31]1041 (16) - 0000000000871759 [19:42:31]1040 (4) - 166189 [19:42:31]1012 (4) - 21.10.2024 13:20 [19:42:31]1206 (1) - 0 [19:42:31]OFD Sender: Remove packet 166189 [19:42:31]ProducePacketName [19:42:31]name=ofd_packets/00166189 [19:42:31]NVStorageDeleteData [19:42:31]Write to MH i2c: 01 00 00 08 81 89 [19:42:31]Write i2c OK [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: 01 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: 01 07 00 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: 01 07 00 08 81 00 00 00 00 00 FA 0C 96 [19:42:31]RasterBufferAndPrint [19:42:31]line [19:42:31]line [19:42:31]line [19:42:31]line [19:42:31]line [19:42:31]written 0, free lines is 3328 [19:42:31]MH_Cut [19:42:31]Write to MH i2c: D1 01 00 0F 81 01 62 [19:42:31]Write i2c OK [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: D1 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: D1 01 00 [19:42:31]MH_I2C_Read... [19:42:31]Read from MH i2c: D1 01 00 0F 81 00 61 [19:42:31]Write to MH i2c: 01 00 00 10 81 91 [19:42:31]Write i2c OK [19:42:31]MH_I2C_Read... [19:42:31]OFD Sender: No OFD packet to send [19:42:32]*** Cut start [19:42:32]*** Partial cut [19:42:32]*** CUTSNS_PIN = 1 [19:42:32]*** CUTSNS_PIN = 0 [19:42:32]*** Brake cut motor [19:42:32]Read from MH i2c: 01 [19:42:32]MH_I2C_Read... [19:42:32]*** Stop cut motor [19:42:32]*** Cut end [19:42:32]Read from MH i2c: 01 07 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: 01 07 00 10 81 00 00 00 00 00 FF 0F A6 [19:42:32]process_action close_receipt done [19:42:32]requested_data is exist [19:42:32]produce_requested_data [19:42:32]requested_item fm.sn is exist - process it [19:42:32]wFMCommunicate request_size=4 [19:42:32]MH_SAM_APDU [19:42:32]CAPDU: 80 11 00 00 [19:42:32]Write to MH i2c: E2 08 00 11 81 80 11 00 00 00 00 00 00 0C [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:32]Read from MH i2c: E2 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 17 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 17 00 11 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [19:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:42:32]wFMCommunicate OK [19:42:32]requested_item fd.num is exist - process it [19:42:32]SAM_PROTO_GetFieldsCounters [19:42:32]wFMCommunicate request_size=4 [19:42:32]MH_SAM_APDU [19:42:32]CAPDU: 80 13 00 00 [19:42:32]Write to MH i2c: E2 08 00 12 81 80 13 00 00 00 00 00 00 0F [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:32]Read from MH i2c: E2 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 62 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 62 00 12 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [19:42:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:32]wFMCommunicate OK [19:42:32]SAM_PROTO_GetFieldsCounters done [19:42:32]requested_item shift.num is exist - process it [19:42:32]requested_item shift.opened is exist - process it [19:42:32]req_shift_opened [19:42:32]FM_GetShiftState [19:42:32]SAM_PROTO_GetShiftState [19:42:32]wFMCommunicate request_size=4 [19:42:32]MH_SAM_APDU [19:42:32]CAPDU: 80 13 01 00 [19:42:32]Write to MH i2c: E2 08 00 13 81 80 13 01 00 00 00 00 00 11 [19:42:32]Write i2c OK [19:42:32]MH_I2C_Read... [19:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:32]Read from MH i2c: E2 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 0E 00 [19:42:32]MH_I2C_Read... [19:42:32]Read from MH i2c: E2 0E 00 13 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1A [19:42:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:42:32]wFMCommunicate OK [19:42:32]SAM_PROTO_GetShiftState done [19:42:32]FM_GetShiftState done [19:42:32]req_shift_opened done [19:42:32]requested_item shift.open_date is exist - process it [19:42:32]req_shift_open_date [19:42:32]req_shift_open_date done [19:42:32]produce_requested_data done [19:42:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166189,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:42:32]process_action_free close_receipt [19:42:32]json_value_free [19:42:32]json_value_free done [19:42:32]process_json_proto returns [19:42:32]Send response to host [19:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166189,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:42:32]free response buf [19:42:32]execute_script done [19:42:32]execute_script returns [19:42:32]free content buf [19:42:32]Sock 6.Close socket [19:42:32]Sock 6.Thread stoped [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:54]accept exits with 5 [19:42:54]New connection [19:42:54]New thread 3066920292 created [19:42:54]Thread 3066776932 joined [19:42:54]Waiting for new connection... [19:42:54] Sock 5.Parse request [19:42:54]Sock 5.Check first char [19:42:54]Sock 5.First char is OK [19:42:54]request: POST /json_proto HTTP/1.0 [19:42:54]Method: POST [19:42:54]URL: /json_proto [19:42:54]Method is POST - this is cgi request [19:42:54]url: /json_proto [19:42:54]query_string will be loaded in cgi processing [19:42:54]execute_cgi json_proto POST (null) [19:42:54]execute_cgi path=json_proto method=POST [19:42:54]POST find Content-Length [19:42:54]Host: 172.17.53.195:8080 [19:42:54]Content-Length: 677 [19:42:54]Content-Type: application/json [19:42:54] [19:42:54]POST finish read [19:42:54]Found Content-Length = 677 [19:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:54]execute_script... [19: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)220761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:42:54]POST & json_proto [19:42:54]process_json_proto [19:42:54]json parsed OK: [19:42:54]protocol is kg_v1.0 [19:42:54]action value=close_receipt [19:42:54]process_action close_receipt [19:42:54]cmd_close_receipt [19:42:54]MH_GetDate [19:42:54]Write to MH i2c: F0 00 00 14 81 84 [19:42:54]Write i2c OK [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: F0 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: F0 09 00 [19:42:54]MH_I2C_Read... [19:42:54]Read from MH i2c: F0 09 00 14 81 00 D2 AE 16 67 21 48 4A 65 A2 [19:42:54]GetLastDocTimeStamp 1729539768 [19:42:54]current date 1729539794 [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 15 81 80 13 01 00 00 00 00 00 13 [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 15 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1C [19:42:54]RAPDU: 09 00 01 E0 A1 15 67 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]opened in 1729470944 [19:42:54]opened+sec_in_day 1729557344 [19:42:54]quantity*price = 50041 [19:42:54]sum+1 = 50042 [19:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 301 21.10.2024 19:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166190 ФПД: 254582103804612 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194314&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166190&fm=254582103804612&tin=02508201610067®Number=0000000000091764&sum=50000 [19:42:55]StoreToDocumentArchive [19:42:55]shift 535 fd 166190 [19:42:55]save to /storage/0535/doc_00166190 [19:42:55]save last doc name /storage/0535/doc_00166190 to /storage/kkm_last_doc_name [19:42:55]save OK [19:42:55]Clear old archive folders... [19:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:42:55]tlvbuf is 01512C90 [19:42:55]SAM_PROTO_ClearQueue [19:42:55]wFMCommunicate request_size=4 [19:42:55]MH_SAM_APDU [19:42:55]CAPDU: 80 09 00 00 [19:42:55]Write to MH i2c: E2 08 00 22 81 80 09 00 00 00 00 00 00 15 [19:42:55]Write i2c OK [19:42:55]MH_I2C_Read... [19:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:42:55]Read from MH i2c: E2 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 03 00 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 03 00 22 81 00 90 00 17 [19:42:55]RAPDU: 90 00 [19:42:55]wFMCommunicate OK [19:42:55]SAM_PROTO_ClearQueue done [19:42:55]KKMCreateOFDPacket [19:42:55]OFDProtocolAddRootSTLVToBuf [19:42:55]FM_MakeSignedData [19:42:55]FM_MakeSignedData [19:42:55]SAM_PROTO_SignData [19:42:55]wFMCommunicate request_size=4 [19:42:55]MH_SAM_APDU [19:42:55]CAPDU: 80 0D 01 02 [19:42:55]Write to MH i2c: E2 08 00 23 81 80 0D 01 02 00 00 00 00 1D [19:42:55]Write i2c OK [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 [19:42:55]MH_I2C_Read... [19:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:42:55]Read from MH i2c: E2 03 00 [19:42:55]MH_I2C_Read... [19:42:55]Read from MH i2c: E2 03 00 23 81 00 90 00 18 [19:42:55]RAPDU: 90 00 [19:42:55]wFMCommunicate OK [19:42:55]wFMCommunicate request_size=255 [19:42:55]MH_SAM_APDU [19:42:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D2 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 89 02 00 35 04 06 00 E7 [19:42:55]Write to MH i2c: E2 02 01 24 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 D2 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 89 02 00 35 04 06 00 E7 00 00 97 [19:42:55]Write i2c OK [19:42:55]MH_I2C_Read... [19:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:56]Read from MH i2c: E2 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 03 00 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 03 00 24 81 00 90 00 19 [19:42:56]RAPDU: 90 00 [19:42:56]wFMCommunicate OK [19:42:56]wFMCommunicate request_size=10 [19:42:56]MH_SAM_APDU [19:42:56]CAPDU: 80 0D 02 02 05 8A 83 DD 0A C4 [19:42:56]Write to MH i2c: E2 0D 00 25 81 80 0D 02 02 05 00 8A 83 DD 0A C4 00 00 E2 [19:42:56]Write i2c OK [19:42:56]MH_I2C_Read... [19:42:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:42:56]Read from MH i2c: E2 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 03 00 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 03 00 25 81 00 90 00 1A [19:42:56]RAPDU: 90 00 [19:42:56]wFMCommunicate OK [19:42:56]wFMCommunicate request_size=4 [19:42:56]MH_SAM_APDU [19:42:56]CAPDU: 80 0D 03 02 [19:42:56]Write to MH i2c: E2 08 00 26 81 80 0D 03 02 00 00 00 00 22 [19:42:56]Write i2c OK [19:42:56]MH_I2C_Read... [19:42:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:42:56]Read from MH i2c: E2 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 0B 00 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 0B 00 26 81 00 A4 67 BE F7 DD 4B C5 B9 90 00 89 [19:42:56]RAPDU: A4 67 BE F7 DD 4B C5 B9 90 00 [19:42:56]wFMCommunicate OK [19:42:56]SAM_PROTO_SignData done [19:42:56]FM_MakeSignedData done [19:42:56]CreateOFDProtocolMessage [19:42:56]wFMCommunicate request_size=4 [19:42:56]MH_SAM_APDU [19:42:56]CAPDU: 80 11 00 00 [19:42:56]Write to MH i2c: E2 08 00 27 81 80 11 00 00 00 00 00 00 22 [19:42:56]Write i2c OK [19:42:56]MH_I2C_Read... [19:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:56]Read from MH i2c: E2 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 17 00 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: E2 17 00 27 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [19:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:42:56]wFMCommunicate OK [19:42:56]CreateOFDProtocolMessage done [19:42:56]OFDSenderStorePacket 166190 [19:42:56]StoreOFDPacket docnum=166190 [19:42:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA FB 07 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 89 02 00 35 04 06 00 E7 8A 83 DD 0A C4 A4 67 BE F7 DD 4B C5 B9 [19:42:56]CheckFolder [19:42:56]dirname=/storage/ofd_packets [19:42:56]CheckFolder done [19:42:56]ProducePacketName [19:42:56]name=ofd_packets/00166190 [19:42:56]NVStorageSaveData ofd_packets/00166190 [19:42:56]File name is /storage/ofd_packets/00166190 [19:42:56]Write 301 bytes [19:42:56]NVStorageSaveData done [19:42:56]OFDSenderStorePacket done [19:42:56]KKMCreateOFDPacket done [19:42:56]NVStorageSaveData kkm_last_timestamp [19:42:56]File name is /storage/kkm_last_timestamp [19:42:56]Write 4 bytes [19:42:56]NVStorageSaveData done [19:42:56]ExternCall_PrintAddStr [19:42:56]wPrintStart [19:42:56]Write to MH i2c: 01 00 00 28 81 A9 [19:42:56]Write i2c OK [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: 01 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: 01 07 00 [19:42:56]MH_I2C_Read... [19:42:56]Read from MH i2c: 01 07 00 28 81 00 00 00 00 00 FF 0F BE [19:42:56]RasterBufferAndPrint [19:42:56]line Счет N : (1)220761 [19:42:56]line ИНН: 02508201610067 [19:42:56]line Контрольно-Кассовый Чек [19:42:56]line ПРОДАЖА [19:42:56]line ТРК (МРК, ГНК) : 13 [19:42:56]line Товар: 2710124130 [19:42:56]line Аи-92-К-5 [19:42:56]line 7.480 * 66.90 [19:42:56]line = 500.41 [19:42:56]line НДС 12% НСП 1% [19:42:56]line > о реализуемом товаре [19:42:56]line ОКРУГЛЕНИЕ: -0.41 [19:42:56]line ИТОГО: 500.00 [19:42:56]line Внесено: 500.00 [19:42:56]line СДАЧА: 0.00 [19:42:56]line НСП 1% : 4.43 [19:42:56]line НДС 12% : 53.14 [19:42:56]line Наличными: 500.00 [19:42:56]line Безнал.: 0.00 [19:42:56]line Место: АЗС № 161 "Партнер Нефть" [19:42:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:42:56]line СНО: Общий режим [19:42:56]line Чек 301 21.10.2024 19:43 [19:42:56]line Смена: 535 ФФД: 1.0 [19:42:56]line ЗНМ: 0300000104 [19:42:56]line РНМ: 0000000000091764 [19:42:56]line Версия ККМ: 001 [19:42:56]line ФМ: 0000000000871759 [19:42:56]line ФД: 166190 [19:42:56]line ФПД: 254582103804612 [19:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T194314&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166190&fm=254582103804612&tin=02508201610067®Number=0000000000091764&sum=50000 [19:42:56]OFD Sender: Processing packet 166190 [packets to send 48, broken 47] [19:42:56]ProducePacketName [19:42:56]name=ofd_packets/00166190 [19:42:56]OFD Sender: To server: pG, [19:42:56]CommunicateWithHost lk.salyk.kg:30040 [19:42:56]ConnectInit lk.salyk.kg [19:42:56]written 0, free lines is 4095 [19:42:56]Connected sock=7 [19:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DA FB 07 01 51 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 D2 AE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 89 02 00 35 04 06 00 E7 8A 83 DD 0A C4 A4 67 BE F7 DD 4B C5 B9 [19:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 09 D7 47 00 05 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2E 89 02 00 F4 03 04 00 40 55 16 67 B6 04 01 00 00 54 BF 72 3B 77 D2 01 63 [19:42:56]CommunicateWithHost err = 0 [19:42:56]CheckOFDResponse [19:42:56]1017 (14) - 77093643461234 [19:42:56]1041 (16) - 0000000000871759 [19:42:56]1040 (4) - 166190 [19:42:56]1012 (4) - 21.10.2024 13:21 [19:42:56]1206 (1) - 0 [19:42:56]OFD Sender: Remove packet 166190 [19:42:56]ProducePacketName [19:42:56]name=ofd_packets/00166190 [19:42:56]NVStorageDeleteData [19:42:57]Write to MH i2c: 01 00 00 53 81 D4 [19:42:57]Write i2c OK [19:42:57]MH_I2C_Read... [19:42:57]Read from MH i2c: 01 [19:42:57]MH_I2C_Read... [19:42:57]Read from MH i2c: 01 07 00 [19:42:57]MH_I2C_Read... [19:42:57]Read from MH i2c: 01 07 00 53 81 00 00 00 00 00 D0 0C B7 [19:42:57]RasterBufferAndPrint [19:42:57]line [19:42:57]line [19:42:57]line [19:42:57]line [19:42:57]line [19:42:57]written 0, free lines is 3285 [19:42:57]MH_Cut [19:42:57]Write to MH i2c: D1 01 00 5A 81 01 AD [19:42:57]Write i2c OK [19:42:57]MH_I2C_Read... [19:42:57]Read from MH i2c: D1 [19:42:57]MH_I2C_Read... [19:42:57]Read from MH i2c: D1 01 00 [19:42:57]MH_I2C_Read... [19:42:57]Read from MH i2c: D1 01 00 5A 81 00 AC [19:42:57]Write to MH i2c: 01 00 00 5B 81 DC [19:42:57]Write i2c OK [19:42:57]MH_I2C_Read... [19:42:57]OFD Sender: No OFD packet to send [19:42:57]*** Cut start [19:42:57]*** Partial cut [19:42:57]*** CUTSNS_PIN = 1 [19:42:57]*** CUTSNS_PIN = 0 [19:42:58]*** Brake cut motor [19:42:58]Read from MH i2c: 01 [19:42:58]MH_I2C_Read... [19:42:58]*** Stop cut motor [19:42:58]*** Cut end [19:42:58]Read from MH i2c: 01 07 00 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: 01 07 00 5B 81 00 00 00 00 00 FF 0F F1 [19:42:58]process_action close_receipt done [19:42:58]requested_data is exist [19:42:58]produce_requested_data [19:42:58]requested_item fm.sn is exist - process it [19:42:58]wFMCommunicate request_size=4 [19:42:58]MH_SAM_APDU [19:42:58]CAPDU: 80 11 00 00 [19:42:58]Write to MH i2c: E2 08 00 5C 81 80 11 00 00 00 00 00 00 57 [19:42:58]Write i2c OK [19:42:58]MH_I2C_Read... [19:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:42:58]Read from MH i2c: E2 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: E2 17 00 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: E2 17 00 5C 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [19:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:42:58]wFMCommunicate OK [19:42:58]requested_item fd.num is exist - process it [19:42:58]SAM_PROTO_GetFieldsCounters [19:42:58]wFMCommunicate request_size=4 [19:42:58]MH_SAM_APDU [19:42:58]CAPDU: 80 13 00 00 [19:42:58]Write to MH i2c: E2 08 00 5D 81 80 13 00 00 00 00 00 00 5A [19:42:58]Write i2c OK [19:42:58]MH_I2C_Read... [19:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:42:58]Read from MH i2c: E2 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: E2 62 00 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: E2 62 00 5D 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 DE [19: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:42:58]wFMCommunicate OK [19:42:58]SAM_PROTO_GetFieldsCounters done [19:42:58]requested_item shift.num is exist - process it [19:42:58]requested_item shift.opened is exist - process it [19:42:58]req_shift_opened [19:42:58]FM_GetShiftState [19:42:58]SAM_PROTO_GetShiftState [19:42:58]wFMCommunicate request_size=4 [19:42:58]MH_SAM_APDU [19:42:58]CAPDU: 80 13 01 00 [19:42:58]Write to MH i2c: E2 08 00 5E 81 80 13 01 00 00 00 00 00 5C [19:42:58]Write i2c OK [19:42:58]MH_I2C_Read... [19:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:42:58]Read from MH i2c: E2 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: E2 0E 00 [19:42:58]MH_I2C_Read... [19:42:58]Read from MH i2c: E2 0E 00 5E 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 65 [19:42:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:42:58]wFMCommunicate OK [19:42:58]SAM_PROTO_GetShiftState done [19:42:58]FM_GetShiftState done [19:42:58]req_shift_opened done [19:42:58]requested_item shift.open_date is exist - process it [19:42:58]req_shift_open_date [19:42:58]req_shift_open_date done [19:42:58]produce_requested_data done [19:42:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166190,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:42:58]process_action_free close_receipt [19:42:58]json_value_free [19:42:58]json_value_free done [19:42:58]process_json_proto returns [19:42:58]Send response to host [19:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166190,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:42:58]free response buf [19:42:58]execute_script done [19:42:58]execute_script returns [19:42:58]free content buf [19:42:58]Sock 5.Close socket [19:42:58]Sock 5.Thread stoped [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]OFD Sender: No OFD packet to send [19:44:52]OFD Sender: No OFD packet to send [19:44:57]OFD Sender: No OFD packet to send [19:45:02]OFD Sender: No OFD packet to send [19:45:07]OFD Sender: No OFD packet to send [19:45:12]OFD Sender: No OFD packet to send [19:45:17]OFD Sender: No OFD packet to send [19:45:22]OFD Sender: No OFD packet to send [19:45:27]OFD Sender: No OFD packet to send [19:45:32]OFD Sender: No OFD packet to send [19:45:37]OFD Sender: No OFD packet to send [19:45:42]OFD Sender: No OFD packet to send [19:45:47]OFD Sender: No OFD packet to send [19:45:52]OFD Sender: No OFD packet to send [19:45:57]OFD Sender: No OFD packet to send [19:46:02]OFD Sender: No OFD packet to send [19:46:07]OFD Sender: No OFD packet to send [19:46:12]OFD Sender: No OFD packet to send [19:46:17]OFD Sender: No OFD packet to send [19:46:22]OFD Sender: No OFD packet to send [19:46:27]OFD Sender: No OFD packet to send [19:46:32]OFD Sender: No OFD packet to send [19:46:37]OFD Sender: No OFD packet to send [19:46:42]OFD Sender: No OFD packet to send [19:46:47]OFD Sender: No OFD packet to send [19:46:52]OFD Sender: No OFD packet to send [19:46:57]OFD Sender: No OFD packet to send [19:47:02]OFD Sender: No OFD packet to send [19:47:07]OFD Sender: No OFD packet to send [19:47:12]OFD Sender: No OFD packet to send [19:47: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:27]OFD Sender: No OFD packet to send [19:48:32]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:32]accept exits with 6 [19:53:32]New connection [19:53:32]New thread 3066776932 created [19:53:32]Thread 3066920292 joined [19:53:32]Waiting for new connection... [19:53:32] Sock 6.Parse request [19:53:32]Sock 6.Check first char [19:53:32]Sock 6.First char is OK [19:53:32]request: POST /json_proto HTTP/1.0 [19:53:32]Method: POST [19:53:32]URL: /json_proto [19:53:32]Method is POST - this is cgi request [19:53:32]url: /json_proto [19:53:32]query_string will be loaded in cgi processing [19:53:32]execute_cgi json_proto POST (null) [19:53:32]execute_cgi path=json_proto method=POST [19:53:32]POST find Content-Length [19:53:32]Host: 172.17.53.195:8080 [19:53:32]Content-Length: 679 [19:53:32]Content-Type: application/json [19:53:32] [19:53:32]POST finish read [19:53:32]Found Content-Length = 679 [19:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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:53:32]execute_script... [19:53: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)220762", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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:53:32]POST & json_proto [19:53:32]process_json_proto [19:53:32]json parsed OK: [19:53:32]protocol is kg_v1.0 [19:53:32]action value=close_receipt [19:53:32]process_action close_receipt [19:53:32]cmd_close_receipt [19:53:32]MH_GetDate [19:53:32]Write to MH i2c: F0 00 00 5F 81 CF [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: F0 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: F0 09 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: F0 09 00 5F 81 00 50 B1 16 67 21 48 4A 65 6E [19:53:32]GetLastDocTimeStamp 1729539794 [19:53:32]current date 1729540432 [19:53:32]FM_GetShiftState [19:53:32]SAM_PROTO_GetShiftState [19:53:32]wFMCommunicate request_size=4 [19:53:32]MH_SAM_APDU [19:53:32]CAPDU: 80 13 01 00 [19:53:32]Write to MH i2c: E2 08 00 60 81 80 13 01 00 00 00 00 00 5E [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:32]Read from MH i2c: E2 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 0E 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 0E 00 60 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 67 [19:53:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:53:32]wFMCommunicate OK [19:53:32]SAM_PROTO_GetShiftState done [19:53:32]FM_GetShiftState done [19:53:32]opened in 1729470944 [19:53:32]opened+sec_in_day 1729557344 [19:53:32]quantity*price = 100050 [19:53:32]sum+1 = 100052 [19:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 302 21.10.2024 19:53 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166191 ФПД: 67426953811297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195352&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166191&fm=67426953811297&tin=02508201610067®Number=0000000000091764&sum=100000 [19:53:33]StoreToDocumentArchive [19:53:33]shift 535 fd 166191 [19:53:33]save to /storage/0535/doc_00166191 [19:53:33]save last doc name /storage/0535/doc_00166191 to /storage/kkm_last_doc_name [19:53:33]save OK [19:53:33]Clear old archive folders... [19:53:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:53:33]tlvbuf is 01C0F470 [19:53:33]SAM_PROTO_ClearQueue [19:53:33]wFMCommunicate request_size=4 [19:53:33]MH_SAM_APDU [19:53:33]CAPDU: 80 09 00 00 [19:53:33]Write to MH i2c: E2 08 00 6D 81 80 09 00 00 00 00 00 00 60 [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:33]Read from MH i2c: E2 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 [19:53:33]MH_I2C_Read... [19:53:33]Read from MH i2c: E2 03 00 6D 81 00 90 00 62 [19:53:33]RAPDU: 90 00 [19:53:33]wFMCommunicate OK [19:53:33]SAM_PROTO_ClearQueue done [19:53:33]KKMCreateOFDPacket [19:53:33]OFDProtocolAddRootSTLVToBuf [19:53:33]FM_MakeSignedData [19:53:33]FM_MakeSignedData [19:53:33]SAM_PROTO_SignData [19:53:33]wFMCommunicate request_size=4 [19:53:33]MH_SAM_APDU [19:53:33]CAPDU: 80 0D 01 02 [19:53:33]Write to MH i2c: E2 08 00 6E 81 80 0D 01 02 00 00 00 00 68 [19:53:33]Write i2c OK [19:53:33]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 6E 81 00 90 00 63 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]wFMCommunicate request_size=255 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 50 B1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 89 02 00 35 04 06 00 3D 53 0F A1 [19:53:34]Write to MH i2c: E2 02 01 6F 81 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 50 B1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 89 02 00 35 04 06 00 3D 53 0F A1 00 00 B4 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 6F 81 00 90 00 64 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]wFMCommunicate request_size=7 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 0D 02 02 02 55 61 [19:53:34]Write to MH i2c: E2 0A 00 70 81 80 0D 02 02 02 00 55 61 00 00 25 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 70 81 00 90 00 65 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 0D 03 02 [19:53:34]Write to MH i2c: E2 08 00 71 81 80 0D 03 02 00 00 00 00 6D [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0B 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0B 00 71 81 00 67 4F C5 BA 41 62 45 A0 90 00 2B [19:53:34]RAPDU: 67 4F C5 BA 41 62 45 A0 90 00 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_SignData done [19:53:34]FM_MakeSignedData done [19:53:34]CreateOFDProtocolMessage [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 11 00 00 [19:53:34]Write to MH i2c: E2 08 00 72 81 80 11 00 00 00 00 00 00 6D [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 72 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [19:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:53:34]wFMCommunicate OK [19:53:34]CreateOFDProtocolMessage done [19:53:34]OFDSenderStorePacket 166191 [19:53:34]StoreOFDPacket docnum=166191 [19:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F0 00 04 01 85 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 50 B1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 89 02 00 35 04 06 00 3D 53 0F A1 55 61 67 4F C5 BA 41 62 45 A0 [19:53:34]CheckFolder [19:53:34]dirname=/storage/ofd_packets [19:53:34]CheckFolder done [19:53:34]ProducePacketName [19:53:34]name=ofd_packets/00166191 [19:53:34]NVStorageSaveData ofd_packets/00166191 [19:53:34]File name is /storage/ofd_packets/00166191 [19:53:34]Write 298 bytes [19:53:34]NVStorageSaveData done [19:53:34]OFDSenderStorePacket done [19:53:34]KKMCreateOFDPacket done [19:53:34]NVStorageSaveData kkm_last_timestamp [19:53:34]File name is /storage/kkm_last_timestamp [19:53:34]Write 4 bytes [19:53:34]NVStorageSaveData done [19:53:34]ExternCall_PrintAddStr [19:53:34]wPrintStart [19:53:34]Write to MH i2c: 01 00 00 73 81 F4 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 73 81 00 00 00 00 00 FF 0F 09 [19:53:34]RasterBufferAndPrint [19:53:34]line Счет N : (1)220762 [19:53:34]line ИНН: 02508201610067 [19:53:34]line Контрольно-Кассовый Чек [19:53:34]line ПРОДАЖА [19:53:34]line ТРК (МРК, ГНК) : 21 [19:53:34]line Товар: 2710194210 [19:53:34]line ДТ-К-5 [19:53:34]line 13.130 * 76.20 [19:53:34]line = 1000.51 [19:53:34]line НДС 12% НСП 1% [19:53:34]line > о реализуемом товаре [19:53:34]line ОКРУГЛЕНИЕ: -0.51 [19:53:34]line ИТОГО: 1000.00 [19:53:34]line Внесено: 1000.00 [19:53:34]line СДАЧА: 0.00 [19:53:34]line НСП 1% : 8.85 [19:53:34]line НДС 12% : 106.25 [19:53:34]line Наличными: 1000.00 [19:53:34]line Безнал.: 0.00 [19:53:34]line Место: АЗС № 161 "Партнер Нефть" [19:53:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [19:53:34]line СНО: Общий режим [19:53:34]line Чек 302 21.10.2024 19:53 [19:53:34]line Смена: 535 ФФД: 1.0 [19:53:34]line ЗНМ: 0300000104 [19:53:34]line РНМ: 0000000000091764 [19:53:34]line Версия ККМ: 001 [19:53:34]line ФМ: 0000000000871759 [19:53:34]line ФД: 166191 [19:53:34]line ФПД: 67426953811297 [19:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T195352&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166191&fm=67426953811297&tin=02508201610067®Number=0000000000091764&sum=100000 [19:53:34]OFD Sender: Processing packet 166191 [packets to send 48, broken 47] [19:53:34]ProducePacketName [19:53:34]name=ofd_packets/00166191 [19:53:34]OFD Sender: To server: pG, [19:53:34]CommunicateWithHost lk.salyk.kg:30040 [19:53:34]ConnectInit lk.salyk.kg [19:53:34]written 0, free lines is 4095 [19:53:34]Connected sock=7 [19:53:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F0 00 04 01 85 D2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 2E 01 00 00 F4 03 04 00 50 B1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 89 02 00 35 04 06 00 3D 53 0F A1 55 61 67 4F C5 BA 41 62 45 A0 [19:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0B 73 47 00 C6 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 2F 89 02 00 F4 03 04 00 BE 57 16 67 B6 04 01 00 00 50 6D C1 F0 C9 ED 18 70 [19:53:35]CommunicateWithHost err = 0 [19:53:35]CheckOFDResponse [19:53:35]1017 (14) - 77093643461234 [19:53:35]1041 (16) - 0000000000871759 [19:53:35]1040 (4) - 166191 [19:53:35]1012 (4) - 21.10.2024 13:31 [19:53:35]1206 (1) - 0 [19:53:35]OFD Sender: Remove packet 166191 [19:53:35]ProducePacketName [19:53:35]name=ofd_packets/00166191 [19:53:35]NVStorageDeleteData [19:53:35]Write to MH i2c: 01 00 00 9E 81 1F [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 07 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 07 00 9E 81 00 00 00 00 00 C4 0C F6 [19:53:35]RasterBufferAndPrint [19:53:35]line [19:53:35]line [19:53:35]line [19:53:35]line [19:53:35]line [19:53:35]written 0, free lines is 3274 [19:53:35]MH_Cut [19:53:35]Write to MH i2c: D1 01 00 A5 81 01 F8 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: D1 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: D1 01 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: D1 01 00 A5 81 00 F7 [19:53:35]Write to MH i2c: 01 00 00 A6 81 27 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]OFD Sender: No OFD packet to send [19:53:36]*** Cut start [19:53:36]*** Partial cut [19:53:36]*** CUTSNS_PIN = 1 [19:53:36]*** CUTSNS_PIN = 0 [19:53:36]*** Brake cut motor [19:53:36]Read from MH i2c: 01 [19:53:36]MH_I2C_Read... [19:53:36]*** Stop cut motor [19:53:36]*** Cut end [19:53:36]Read from MH i2c: 01 07 00 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: 01 07 00 A6 81 00 00 00 00 00 FF 0F 3C [19:53:36]process_action close_receipt done [19:53:36]requested_data is exist [19:53:36]produce_requested_data [19:53:36]requested_item fm.sn is exist - process it [19:53:36]wFMCommunicate request_size=4 [19:53:36]MH_SAM_APDU [19:53:36]CAPDU: 80 11 00 00 [19:53:36]Write to MH i2c: E2 08 00 A7 81 80 11 00 00 00 00 00 00 A2 [19:53:36]Write i2c OK [19:53:36]MH_I2C_Read... [19:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:36]Read from MH i2c: E2 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: E2 17 00 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: E2 17 00 A7 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [19:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [19:53:36]wFMCommunicate OK [19:53:36]requested_item fd.num is exist - process it [19:53:36]SAM_PROTO_GetFieldsCounters [19:53:36]wFMCommunicate request_size=4 [19:53:36]MH_SAM_APDU [19:53:36]CAPDU: 80 13 00 00 [19:53:36]Write to MH i2c: E2 08 00 A8 81 80 13 00 00 00 00 00 00 A5 [19:53:36]Write i2c OK [19:53:36]MH_I2C_Read... [19:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:36]Read from MH i2c: E2 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: E2 62 00 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: E2 62 00 A8 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 2D [19:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 2F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:36]wFMCommunicate OK [19:53:36]SAM_PROTO_GetFieldsCounters done [19:53:36]requested_item shift.num is exist - process it [19:53:36]requested_item shift.opened is exist - process it [19:53:36]req_shift_opened [19:53:36]FM_GetShiftState [19:53:36]SAM_PROTO_GetShiftState [19:53:36]wFMCommunicate request_size=4 [19:53:36]MH_SAM_APDU [19:53:36]CAPDU: 80 13 01 00 [19:53:36]Write to MH i2c: E2 08 00 A9 81 80 13 01 00 00 00 00 00 A7 [19:53:36]Write i2c OK [19:53:36]MH_I2C_Read... [19:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:36]Read from MH i2c: E2 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: E2 0E 00 [19:53:36]MH_I2C_Read... [19:53:36]Read from MH i2c: E2 0E 00 A9 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B0 [19:53:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [19:53:36]wFMCommunicate OK [19:53:36]SAM_PROTO_GetShiftState done [19:53:36]FM_GetShiftState done [19:53:36]req_shift_opened done [19:53:36]requested_item shift.open_date is exist - process it [19:53:36]req_shift_open_date [19:53:36]req_shift_open_date done [19:53:36]produce_requested_data done [19:53:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166191,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [19:53:36]process_action_free close_receipt [19:53:36]json_value_free [19:53:36]json_value_free done [19:53:36]process_json_proto returns [19:53:36]Send response to host [19:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166191,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [19:53:36]free response buf [19:53:36]execute_script done [19:53:36]execute_script returns [19:53:36]free content buf [19:53:36]Sock 6.Close socket [19:53:36]Sock 6.Thread stoped [19:53:40]OFD Sender: No OFD packet to send [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:07]accept exits with 5 [20:02:07]New connection [20:02:07]New thread 3066920292 created [20:02:07]Thread 3066776932 joined [20:02:07]Waiting for new connection... [20:02:07] Sock 5.Parse request [20:02:07]Sock 5.Check first char [20:02:07]Sock 5.First char is OK [20:02:07]request: POST /json_proto HTTP/1.0 [20:02:07]Method: POST [20:02:07]URL: /json_proto [20:02:07]Method is POST - this is cgi request [20:02:07]url: /json_proto [20:02:07]query_string will be loaded in cgi processing [20:02:07]execute_cgi json_proto POST (null) [20:02:07]execute_cgi path=json_proto method=POST [20:02:07]POST find Content-Length [20:02:07]Host: 172.17.53.195:8080 [20:02:07]Content-Length: 677 [20:02:07]Content-Type: application/json [20:02:07] [20:02:07]POST finish read [20:02:07]Found Content-Length = 677 [20:02:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.220, "sum" : 549.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 549.00, "payments": [ { "type": 0, "sum" : 549.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:07]execute_script... [20:02: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)220763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.220, "sum" : 549.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 550.00, "total" : 549.00, "payments": [ { "type": 0, "sum" : 549.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:07]POST & json_proto [20:02:07]process_json_proto [20:02:07]json parsed OK: [20:02:07]protocol is kg_v1.0 [20:02:07]action value=close_receipt [20:02:07]process_action close_receipt [20:02:07]cmd_close_receipt [20:02:07]MH_GetDate [20:02:07]Write to MH i2c: F0 00 00 AA 81 1A [20:02:07]Write i2c OK [20:02:07]MH_I2C_Read... [20:02:07]Read from MH i2c: F0 [20:02:07]MH_I2C_Read... [20:02:07]Read from MH i2c: F0 09 00 [20:02:07]MH_I2C_Read... [20:02:07]Read from MH i2c: F0 09 00 AA 81 00 53 B3 16 67 21 48 4A 65 BE [20:02:07]GetLastDocTimeStamp 1729540432 [20:02:07]current date 1729540947 [20:02:07]FM_GetShiftState [20:02:07]SAM_PROTO_GetShiftState [20:02:07]wFMCommunicate request_size=4 [20:02:07]MH_SAM_APDU [20:02:07]CAPDU: 80 13 01 00 [20:02:07]Write to MH i2c: E2 08 00 AB 81 80 13 01 00 00 00 00 00 A9 [20:02:07]Write i2c OK [20:02:07]MH_I2C_Read... [20:02:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:07]Read from MH i2c: E2 [20:02:07]MH_I2C_Read... [20:02:07]Read from MH i2c: E2 0E 00 [20:02:07]MH_I2C_Read... [20:02:07]Read from MH i2c: E2 0E 00 AB 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B2 [20:02:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:02:07]wFMCommunicate OK [20:02:07]SAM_PROTO_GetShiftState done [20:02:07]FM_GetShiftState done [20:02:07]opened in 1729470944 [20:02:07]opened+sec_in_day 1729557344 [20:02:07]quantity*price = 54991 [20:02:07]sum+1 = 54993 [20:02:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.92 ИТОГО: 549.00 Внесено: 550.00 СДАЧА: 1.00 НСП 1% : 4.87 НДС 12% : 58.40 Наличными: 549.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 303 21.10.2024 20:02 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166192 ФПД: 86069088064251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166192&fm=86069088064251&tin=02508201610067®Number=0000000000091764&sum=54900 [20:02:08]StoreToDocumentArchive [20:02:08]shift 535 fd 166192 [20:02:08]save to /storage/0535/doc_00166192 [20:02:08]save last doc name /storage/0535/doc_00166192 to /storage/kkm_last_doc_name [20:02:08]save OK [20:02:08]Clear old archive folders... [20:02:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:02:08]tlvbuf is 0157E890 [20:02:08]SAM_PROTO_ClearQueue [20:02:08]wFMCommunicate request_size=4 [20:02:08]MH_SAM_APDU [20:02:08]CAPDU: 80 09 00 00 [20:02:08]Write to MH i2c: E2 08 00 B8 81 80 09 00 00 00 00 00 00 AB [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:08]Read from MH i2c: E2 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 B8 81 00 90 00 AD [20:02:08]RAPDU: 90 00 [20:02:08]wFMCommunicate OK [20:02:08]SAM_PROTO_ClearQueue done [20:02:08]KKMCreateOFDPacket [20:02:08]OFDProtocolAddRootSTLVToBuf [20:02:08]FM_MakeSignedData [20:02:08]FM_MakeSignedData [20:02:08]SAM_PROTO_SignData [20:02:08]wFMCommunicate request_size=4 [20:02:08]MH_SAM_APDU [20:02:08]CAPDU: 80 0D 01 02 [20:02:08]Write to MH i2c: E2 08 00 B9 81 80 0D 01 02 00 00 00 00 B3 [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:08]Read from MH i2c: E2 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 B9 81 00 90 00 AE [20:02:08]RAPDU: 90 00 [20:02:08]wFMCommunicate OK [20:02:08]wFMCommunicate request_size=255 [20:02:08]MH_SAM_APDU [20:02: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 1C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 D0 16 00 00 00 00 07 04 06 00 74 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 2F 01 00 00 F4 03 04 00 53 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 89 02 00 35 04 06 00 4E [20:02:08]Write to MH i2c: E2 02 01 BA 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 D0 16 00 00 00 00 07 04 06 00 74 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 2F 01 00 00 F4 03 04 00 53 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 89 02 00 35 04 06 00 4E 00 00 19 [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:08]Read from MH i2c: E2 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 BA 81 00 90 00 AF [20:02:08]RAPDU: 90 00 [20:02:08]wFMCommunicate OK [20:02:08]wFMCommunicate request_size=10 [20:02:08]MH_SAM_APDU [20:02:08]CAPDU: 80 0D 02 02 05 47 85 6B 92 FB [20:02:08]Write to MH i2c: E2 0D 00 BB 81 80 0D 02 02 05 00 47 85 6B 92 FB 00 00 84 [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:08]Read from MH i2c: E2 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 03 00 BB 81 00 90 00 B0 [20:02:08]RAPDU: 90 00 [20:02:08]wFMCommunicate OK [20:02:08]wFMCommunicate request_size=4 [20:02:08]MH_SAM_APDU [20:02:08]CAPDU: 80 0D 03 02 [20:02:08]Write to MH i2c: E2 08 00 BC 81 80 0D 03 02 00 00 00 00 B8 [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:08]Read from MH i2c: E2 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 0B 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 0B 00 BC 81 00 D9 54 10 E9 B6 F2 C2 EC 90 00 35 [20:02:08]RAPDU: D9 54 10 E9 B6 F2 C2 EC 90 00 [20:02:08]wFMCommunicate OK [20:02:08]SAM_PROTO_SignData done [20:02:08]FM_MakeSignedData done [20:02:08]CreateOFDProtocolMessage [20:02:08]wFMCommunicate request_size=4 [20:02:08]MH_SAM_APDU [20:02:08]CAPDU: 80 11 00 00 [20:02:08]Write to MH i2c: E2 08 00 BD 81 80 11 00 00 00 00 00 00 B8 [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:08]Read from MH i2c: E2 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 17 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: E2 17 00 BD 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [20:02:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:02:08]wFMCommunicate OK [20:02:08]CreateOFDProtocolMessage done [20:02:08]OFDSenderStorePacket 166192 [20:02:08]StoreOFDPacket docnum=166192 [20:02:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 85 46 07 01 CC 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 D0 16 00 00 00 00 07 04 06 00 74 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 2F 01 00 00 F4 03 04 00 53 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 89 02 00 35 04 06 00 4E 47 85 6B 92 FB D9 54 10 E9 B6 F2 C2 EC [20:02:08]CheckFolder [20:02:08]dirname=/storage/ofd_packets [20:02:08]CheckFolder done [20:02:08]ProducePacketName [20:02:08]name=ofd_packets/00166192 [20:02:08]NVStorageSaveData ofd_packets/00166192 [20:02:08]File name is /storage/ofd_packets/00166192 [20:02:08]Write 301 bytes [20:02:08]NVStorageSaveData done [20:02:08]OFDSenderStorePacket done [20:02:08]KKMCreateOFDPacket done [20:02:08]NVStorageSaveData kkm_last_timestamp [20:02:08]File name is /storage/kkm_last_timestamp [20:02:08]Write 4 bytes [20:02:08]NVStorageSaveData done [20:02:08]ExternCall_PrintAddStr [20:02:08]wPrintStart [20:02:08]Write to MH i2c: 01 00 00 BE 81 3F [20:02:08]Write i2c OK [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: 01 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: 01 07 00 [20:02:08]MH_I2C_Read... [20:02:08]Read from MH i2c: 01 07 00 BE 81 00 00 00 00 00 FF 0F 54 [20:02:08]RasterBufferAndPrint [20:02:08]line Счет N : (1)220763 [20:02:08]line ИНН: 02508201610067 [20:02:08]line Контрольно-Кассовый Чек [20:02:08]line ПРОДАЖА [20:02:08]line ТРК (МРК, ГНК) : 13 [20:02:08]line Товар: 2710124130 [20:02:08]line Аи-92-К-5 [20:02:08]line 8.220 * 66.90 [20:02:08]line = 549.92 [20:02:08]line НДС 12% НСП 1% [20:02:08]line > о реализуемом товаре [20:02:08]line ОКРУГЛЕНИЕ: -0.92 [20:02:08]line ИТОГО: 549.00 [20:02:08]line Внесено: 550.00 [20:02:08]line СДАЧА: 1.00 [20:02:08]line НСП 1% : 4.87 [20:02:08]line НДС 12% : 58.40 [20:02:08]line Наличными: 549.00 [20:02:08]line Безнал.: 0.00 [20:02:08]line Место: АЗС № 161 "Партнер Нефть" [20:02:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:02:08]line СНО: Общий режим [20:02:08]line Чек 303 21.10.2024 20:02 [20:02:08]line Смена: 535 ФФД: 1.0 [20:02:08]line ЗНМ: 0300000104 [20:02:08]line РНМ: 0000000000091764 [20:02:08]line Версия ККМ: 001 [20:02:08]line ФМ: 0000000000871759 [20:02:08]line ФД: 166192 [20:02:08]line ФПД: 86069088064251 [20:02:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166192&fm=86069088064251&tin=02508201610067®Number=0000000000091764&sum=54900 [20:02:09]OFD Sender: Processing packet 166192 [packets to send 48, broken 47] [20:02:09]ProducePacketName [20:02:09]name=ofd_packets/00166192 [20:02:09]OFD Sender: To server: pG, [20:02:09]CommunicateWithHost lk.salyk.kg:30040 [20:02:09]ConnectInit lk.salyk.kg [20:02:09]written 0, free lines is 4095 [20:02:09]Connected sock=7 [20:02:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 85 46 07 01 CC 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D0 D6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 D0 16 00 00 00 00 07 04 06 00 74 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 2F 01 00 00 F4 03 04 00 53 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 89 02 00 35 04 06 00 4E 47 85 6B 92 FB D9 54 10 E9 B6 F2 C2 EC [20:02:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 43 B5 47 00 D2 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 30 89 02 00 F4 03 04 00 C0 59 16 67 B6 04 01 00 00 08 E9 EB 2E 4E F7 DD 7D [20:02:09]CommunicateWithHost err = 0 [20:02:09]CheckOFDResponse [20:02:09]1017 (14) - 77093643461234 [20:02:09]1041 (16) - 0000000000871759 [20:02:09]1040 (4) - 166192 [20:02:09]1012 (4) - 21.10.2024 13:40 [20:02:09]1206 (1) - 0 [20:02:09]OFD Sender: Remove packet 166192 [20:02:09]ProducePacketName [20:02:09]name=ofd_packets/00166192 [20:02:09]NVStorageDeleteData [20:02:09]Write to MH i2c: 01 00 00 E9 81 6A [20:02:09]Write i2c OK [20:02:09]MH_I2C_Read... [20:02:09]Read from MH i2c: 01 [20:02:09]MH_I2C_Read... [20:02:09]Read from MH i2c: 01 07 00 [20:02:09]MH_I2C_Read... [20:02:09]Read from MH i2c: 01 07 00 E9 81 00 00 00 00 00 CF 0C 4C [20:02:09]RasterBufferAndPrint [20:02:09]line [20:02:09]line [20:02:09]line [20:02:09]line [20:02:09]line [20:02:09]written 0, free lines is 3286 [20:02:09]MH_Cut [20:02:09]Write to MH i2c: D1 01 00 F0 81 01 43 [20:02:09]Write i2c OK [20:02:09]MH_I2C_Read... [20:02:09]Read from MH i2c: D1 [20:02:09]MH_I2C_Read... [20:02:09]Read from MH i2c: D1 01 00 [20:02:09]MH_I2C_Read... [20:02:09]Read from MH i2c: D1 01 00 F0 81 00 42 [20:02:09]Write to MH i2c: 01 00 00 F1 81 72 [20:02:09]Write i2c OK [20:02:09]MH_I2C_Read... [20:02:09]OFD Sender: No OFD packet to send [20:02:10]*** Cut start [20:02:10]*** Partial cut [20:02:10]*** CUTSNS_PIN = 1 [20:02:10]*** CUTSNS_PIN = 0 [20:02:10]*** Brake cut motor [20:02:10]Read from MH i2c: 01 [20:02:11]MH_I2C_Read... [20:02:11]*** Stop cut motor [20:02:11]*** Cut end [20:02:11]Read from MH i2c: 01 07 00 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: 01 07 00 F1 81 00 00 00 00 00 FF 0F 87 [20:02:11]process_action close_receipt done [20:02:11]requested_data is exist [20:02:11]produce_requested_data [20:02:11]requested_item fm.sn is exist - process it [20:02:11]wFMCommunicate request_size=4 [20:02:11]MH_SAM_APDU [20:02:11]CAPDU: 80 11 00 00 [20:02:11]Write to MH i2c: E2 08 00 F2 81 80 11 00 00 00 00 00 00 ED [20:02:11]Write i2c OK [20:02:11]MH_I2C_Read... [20:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:11]Read from MH i2c: E2 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: E2 17 00 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: E2 17 00 F2 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [20:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:02:11]wFMCommunicate OK [20:02:11]requested_item fd.num is exist - process it [20:02:11]SAM_PROTO_GetFieldsCounters [20:02:11]wFMCommunicate request_size=4 [20:02:11]MH_SAM_APDU [20:02:11]CAPDU: 80 13 00 00 [20:02:11]Write to MH i2c: E2 08 00 F3 81 80 13 00 00 00 00 00 00 F0 [20:02:11]Write i2c OK [20:02:11]MH_I2C_Read... [20:02:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:11]Read from MH i2c: E2 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: E2 62 00 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: E2 62 00 F3 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [20:02:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 30 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:11]wFMCommunicate OK [20:02:11]SAM_PROTO_GetFieldsCounters done [20:02:11]requested_item shift.num is exist - process it [20:02:11]requested_item shift.opened is exist - process it [20:02:11]req_shift_opened [20:02:11]FM_GetShiftState [20:02:11]SAM_PROTO_GetShiftState [20:02:11]wFMCommunicate request_size=4 [20:02:11]MH_SAM_APDU [20:02:11]CAPDU: 80 13 01 00 [20:02:11]Write to MH i2c: E2 08 00 F4 81 80 13 01 00 00 00 00 00 F2 [20:02:11]Write i2c OK [20:02:11]MH_I2C_Read... [20:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:11]Read from MH i2c: E2 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: E2 0E 00 [20:02:11]MH_I2C_Read... [20:02:11]Read from MH i2c: E2 0E 00 F4 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FB [20:02:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:02:11]wFMCommunicate OK [20:02:11]SAM_PROTO_GetShiftState done [20:02:11]FM_GetShiftState done [20:02:11]req_shift_opened done [20:02:11]requested_item shift.open_date is exist - process it [20:02:11]req_shift_open_date [20:02:11]req_shift_open_date done [20:02:11]produce_requested_data done [20:02:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166192,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:02:11]process_action_free close_receipt [20:02:11]json_value_free [20:02:11]json_value_free done [20:02:11]process_json_proto returns [20:02:11]Send response to host [20:02:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166192,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:02:11]free response buf [20:02:11]execute_script done [20:02:11]execute_script returns [20:02:11]free content buf [20:02:11]Sock 5.Close socket [20:02:11]Sock 5.Thread stoped [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [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:37]accept exits with 6 [20:04:37]New connection [20:04:37]New thread 3066776932 created [20:04:37]Thread 3066920292 joined [20:04:37]Waiting for new connection... [20:04:37] Sock 6.Parse request [20:04:37]Sock 6.Check first char [20:04:37]Sock 6.First char is OK [20:04:37]request: POST /json_proto HTTP/1.0 [20:04:37]Method: POST [20:04:37]URL: /json_proto [20:04:37]Method is POST - this is cgi request [20:04:37]url: /json_proto [20:04:37]query_string will be loaded in cgi processing [20:04:37]execute_cgi json_proto POST (null) [20:04:37]execute_cgi path=json_proto method=POST [20:04:37]POST find Content-Length [20:04:37]Host: 172.17.53.195:8080 [20:04:37]Content-Length: 682 [20:04:37]Content-Type: application/json [20:04:37] [20:04:37]POST finish read [20:04:37]Found Content-Length = 682 [20:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 38.420, "sum" : 2570.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2570.00, "total" : 2570.00, "payments": [ { "type": 0, "sum" : 2570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:37]execute_script... [20:04: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)220764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 38.420, "sum" : 2570.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2570.00, "total" : 2570.00, "payments": [ { "type": 0, "sum" : 2570.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:37]POST & json_proto [20:04:37]process_json_proto [20:04:37]json parsed OK: [20:04:37]protocol is kg_v1.0 [20:04:37]action value=close_receipt [20:04:37]process_action close_receipt [20:04:37]cmd_close_receipt [20:04:37]MH_GetDate [20:04:37]Write to MH i2c: F0 00 00 F5 81 65 [20:04:37]Write i2c OK [20:04:37]MH_I2C_Read... [20:04:37]Read from MH i2c: F0 [20:04:37]MH_I2C_Read... [20:04:37]Read from MH i2c: F0 09 00 [20:04:37]MH_I2C_Read... [20:04:37]Read from MH i2c: F0 09 00 F5 81 00 E9 B3 16 67 21 48 4A 65 9F [20:04:37]GetLastDocTimeStamp 1729540947 [20:04:37]current date 1729541097 [20:04:37]FM_GetShiftState [20:04:37]SAM_PROTO_GetShiftState [20:04:37]wFMCommunicate request_size=4 [20:04:37]MH_SAM_APDU [20:04:37]CAPDU: 80 13 01 00 [20:04:37]Write to MH i2c: E2 08 00 F6 81 80 13 01 00 00 00 00 00 F4 [20:04:37]Write i2c OK [20:04:37]MH_I2C_Read... [20:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:37]Read from MH i2c: E2 [20:04:37]MH_I2C_Read... [20:04:37]Read from MH i2c: E2 0E 00 [20:04:37]MH_I2C_Read... [20:04:37]Read from MH i2c: E2 0E 00 F6 81 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FD [20:04:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:04:37]wFMCommunicate OK [20:04:37]SAM_PROTO_GetShiftState done [20:04:37]FM_GetShiftState done [20:04:37]opened in 1729470944 [20:04:37]opened+sec_in_day 1729557344 [20:04:37]quantity*price = 257029 [20:04:37]sum+1 = 257031 [20:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 2570.00 Внесено: 2570.00 СДАЧА: 0.00 НСП 1% : 22.75 НДС 12% : 272.95 Наличными: 2570.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 304 21.10.2024 20:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166193 ФПД: 8704430964709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166193&fm=8704430964709&tin=02508201610067®Number=0000000000091764&sum=257000 [20:04:39]StoreToDocumentArchive [20:04:39]shift 535 fd 166193 [20:04:39]save to /storage/0535/doc_00166193 [20:04:39]save last doc name /storage/0535/doc_00166193 to /storage/kkm_last_doc_name [20:04:39]save OK [20:04:39]Clear old archive folders... [20:04:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:39]tlvbuf is 0165D430 [20:04:39]SAM_PROTO_ClearQueue [20:04:39]wFMCommunicate request_size=4 [20:04:39]MH_SAM_APDU [20:04:39]CAPDU: 80 09 00 00 [20:04:39]Write to MH i2c: E2 08 00 03 82 80 09 00 00 00 00 00 00 F7 [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 03 82 00 90 00 F9 [20:04:39]RAPDU: 90 00 [20:04:39]wFMCommunicate OK [20:04:39]SAM_PROTO_ClearQueue done [20:04:39]KKMCreateOFDPacket [20:04:39]OFDProtocolAddRootSTLVToBuf [20:04:39]FM_MakeSignedData [20:04:39]FM_MakeSignedData [20:04:39]SAM_PROTO_SignData [20:04:39]wFMCommunicate request_size=4 [20:04:39]MH_SAM_APDU [20:04:39]CAPDU: 80 0D 01 02 [20:04:39]Write to MH i2c: E2 08 00 04 82 80 0D 01 02 00 00 00 00 FF [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 04 82 00 90 00 FA [20:04:39]RAPDU: 90 00 [20:04:39]wFMCommunicate OK [20:04:39]wFMCommunicate request_size=255 [20:04:39]MH_SAM_APDU [20:04: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 14 96 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 E9 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 89 02 00 35 04 06 00 07 [20:04:39]Write to MH i2c: E2 02 01 05 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 96 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 E9 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 89 02 00 35 04 06 00 07 00 00 B1 [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 05 82 00 90 00 FB [20:04:39]RAPDU: 90 00 [20:04:39]wFMCommunicate OK [20:04:39]wFMCommunicate request_size=10 [20:04:39]MH_SAM_APDU [20:04:39]CAPDU: 80 0D 02 02 05 EA A8 83 FF E5 [20:04:39]Write to MH i2c: E2 0D 00 06 82 80 0D 02 02 05 00 EA A8 83 FF E5 00 00 05 [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 03 00 06 82 00 90 00 FC [20:04:39]RAPDU: 90 00 [20:04:39]wFMCommunicate OK [20:04:39]wFMCommunicate request_size=4 [20:04:39]MH_SAM_APDU [20:04:39]CAPDU: 80 0D 03 02 [20:04:39]Write to MH i2c: E2 08 00 07 82 80 0D 03 02 00 00 00 00 04 [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 0B 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 0B 00 07 82 00 EC 54 A7 D7 56 0D F1 63 90 00 7A [20:04:39]RAPDU: EC 54 A7 D7 56 0D F1 63 90 00 [20:04:39]wFMCommunicate OK [20:04:39]SAM_PROTO_SignData done [20:04:39]FM_MakeSignedData done [20:04:39]CreateOFDProtocolMessage [20:04:39]wFMCommunicate request_size=4 [20:04:39]MH_SAM_APDU [20:04:39]CAPDU: 80 11 00 00 [20:04:39]Write to MH i2c: E2 08 00 08 82 80 11 00 00 00 00 00 00 04 [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:39]Read from MH i2c: E2 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 17 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: E2 17 00 08 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5C [20:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:04:39]wFMCommunicate OK [20:04:39]CreateOFDProtocolMessage done [20:04:39]OFDSenderStorePacket 166193 [20:04:39]StoreOFDPacket docnum=166193 [20:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F 71 07 01 A2 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 14 96 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 E9 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 89 02 00 35 04 06 00 07 EA A8 83 FF E5 EC 54 A7 D7 56 0D F1 63 [20:04:39]CheckFolder [20:04:39]dirname=/storage/ofd_packets [20:04:39]CheckFolder done [20:04:39]ProducePacketName [20:04:39]name=ofd_packets/00166193 [20:04:39]NVStorageSaveData ofd_packets/00166193 [20:04:39]File name is /storage/ofd_packets/00166193 [20:04:39]Write 301 bytes [20:04:39]NVStorageSaveData done [20:04:39]OFDSenderStorePacket done [20:04:39]KKMCreateOFDPacket done [20:04:39]NVStorageSaveData kkm_last_timestamp [20:04:39]File name is /storage/kkm_last_timestamp [20:04:39]Write 4 bytes [20:04:39]NVStorageSaveData done [20:04:39]ExternCall_PrintAddStr [20:04:39]wPrintStart [20:04:39]Write to MH i2c: 01 00 00 09 82 8B [20:04:39]Write i2c OK [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: 01 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: 01 07 00 [20:04:39]MH_I2C_Read... [20:04:39]Read from MH i2c: 01 07 00 09 82 00 00 00 00 00 FF 0F A0 [20:04:39]RasterBufferAndPrint [20:04:39]line Счет N : (1)220764 [20:04:39]line ИНН: 02508201610067 [20:04:39]line Контрольно-Кассовый Чек [20:04:39]line ПРОДАЖА [20:04:39]line ТРК (МРК, ГНК) : 33 [20:04:39]line Товар: 2710124130 [20:04:39]line Аи-92-К-5 [20:04:39]line 38.420 * 66.90 [20:04:39]line = 2570.30 [20:04:39]line НДС 12% НСП 1% [20:04:39]line > о реализуемом товаре [20:04:39]line ОКРУГЛЕНИЕ: -0.30 [20:04:39]line ИТОГО: 2570.00 [20:04:39]line Внесено: 2570.00 [20:04:39]line СДАЧА: 0.00 [20:04:39]line НСП 1% : 22.75 [20:04:39]line НДС 12% : 272.95 [20:04:39]line Наличными: 2570.00 [20:04:39]line Безнал.: 0.00 [20:04:39]line Место: АЗС № 161 "Партнер Нефть" [20:04:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:04:39]line СНО: Общий режим [20:04:39]line Чек 304 21.10.2024 20:04 [20:04:39]line Смена: 535 ФФД: 1.0 [20:04:39]line ЗНМ: 0300000104 [20:04:39]line РНМ: 0000000000091764 [20:04:39]line Версия ККМ: 001 [20:04:39]line ФМ: 0000000000871759 [20:04:39]line ФД: 166193 [20:04:39]line ФПД: 8704430964709 [20:04:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200457&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166193&fm=8704430964709&tin=02508201610067®Number=0000000000091764&sum=257000 [20:04:39]OFD Sender: Processing packet 166193 [packets to send 48, broken 47] [20:04:39]ProducePacketName [20:04:39]name=ofd_packets/00166193 [20:04:39]OFD Sender: To server: pG, [20:04:39]CommunicateWithHost lk.salyk.kg:30040 [20:04:39]ConnectInit lk.salyk.kg [20:04:39]written 0, free lines is 4095 [20:04:40]Connected sock=7 [20:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6F 71 07 01 A2 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 14 96 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 EC 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 EB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6A 00 00 00 00 07 04 06 00 E8 EB 03 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 E9 B3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 89 02 00 35 04 06 00 07 EA A8 83 FF E5 EC 54 A7 D7 56 0D F1 63 [20:04:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A7 CD 47 00 42 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 31 89 02 00 F4 03 04 00 57 5A 16 67 B6 04 01 00 00 E2 7C 58 03 D1 CF A7 DC [20:04:40]CommunicateWithHost err = 0 [20:04:40]CheckOFDResponse [20:04:40]1017 (14) - 77093643461234 [20:04:40]1041 (16) - 0000000000871759 [20:04:40]1040 (4) - 166193 [20:04:40]1012 (4) - 21.10.2024 13:42 [20:04:40]1206 (1) - 0 [20:04:40]OFD Sender: Remove packet 166193 [20:04:40]ProducePacketName [20:04:40]name=ofd_packets/00166193 [20:04:40]NVStorageDeleteData [20:04:40]Write to MH i2c: 01 00 00 34 82 B6 [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: 01 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: 01 07 00 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: 01 07 00 34 82 00 00 00 00 00 CF 0C 98 [20:04:40]RasterBufferAndPrint [20:04:40]line [20:04:40]line [20:04:40]line [20:04:40]line [20:04:40]line [20:04:40]written 0, free lines is 3287 [20:04:40]MH_Cut [20:04:40]Write to MH i2c: D1 01 00 3B 82 01 8F [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: D1 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: D1 01 00 [20:04:40]MH_I2C_Read... [20:04:40]Read from MH i2c: D1 01 00 3B 82 00 8E [20:04:40]Write to MH i2c: 01 00 00 3C 82 BE [20:04:40]Write i2c OK [20:04:40]MH_I2C_Read... [20:04:40]OFD Sender: No OFD packet to send [20:04:41]*** Cut start [20:04:41]*** Partial cut [20:04:41]*** CUTSNS_PIN = 1 [20:04:41]*** CUTSNS_PIN = 0 [20:04:41]*** Brake cut motor [20:04:41]Read from MH i2c: 01 [20:04:41]MH_I2C_Read... [20:04:41]*** Stop cut motor [20:04:41]*** Cut end [20:04:41]Read from MH i2c: 01 07 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: 01 07 00 3C 82 00 00 00 00 00 FF 0F D3 [20:04:41]process_action close_receipt done [20:04:41]requested_data is exist [20:04:41]produce_requested_data [20:04:41]requested_item fm.sn is exist - process it [20:04:41]wFMCommunicate request_size=4 [20:04:41]MH_SAM_APDU [20:04:41]CAPDU: 80 11 00 00 [20:04:41]Write to MH i2c: E2 08 00 3D 82 80 11 00 00 00 00 00 00 39 [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:41]Read from MH i2c: E2 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 17 00 [20:04:41]MH_I2C_Read... [20:04:41]Read from MH i2c: E2 17 00 3D 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [20:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:04:41]wFMCommunicate OK [20:04:41]requested_item fd.num is exist - process it [20:04:41]SAM_PROTO_GetFieldsCounters [20:04:41]wFMCommunicate request_size=4 [20:04:41]MH_SAM_APDU [20:04:41]CAPDU: 80 13 00 00 [20:04:41]Write to MH i2c: E2 08 00 3E 82 80 13 00 00 00 00 00 00 3C [20:04:41]Write i2c OK [20:04:41]MH_I2C_Read... [20:04:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:42]Read from MH i2c: E2 [20:04:42]MH_I2C_Read... [20:04:42]Read from MH i2c: E2 62 00 [20:04:42]MH_I2C_Read... [20:04:42]Read from MH i2c: E2 62 00 3E 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [20:04:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 31 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:42]wFMCommunicate OK [20:04:42]SAM_PROTO_GetFieldsCounters done [20:04:42]requested_item shift.num is exist - process it [20:04:42]requested_item shift.opened is exist - process it [20:04:42]req_shift_opened [20:04:42]FM_GetShiftState [20:04:42]SAM_PROTO_GetShiftState [20:04:42]wFMCommunicate request_size=4 [20:04:42]MH_SAM_APDU [20:04:42]CAPDU: 80 13 01 00 [20:04:42]Write to MH i2c: E2 08 00 3F 82 80 13 01 00 00 00 00 00 3E [20:04:42]Write i2c OK [20:04:42]MH_I2C_Read... [20:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:42]Read from MH i2c: E2 [20:04:42]MH_I2C_Read... [20:04:42]Read from MH i2c: E2 0E 00 [20:04:42]MH_I2C_Read... [20:04:42]Read from MH i2c: E2 0E 00 3F 82 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 47 [20:04:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:04:42]wFMCommunicate OK [20:04:42]SAM_PROTO_GetShiftState done [20:04:42]FM_GetShiftState done [20:04:42]req_shift_opened done [20:04:42]requested_item shift.open_date is exist - process it [20:04:42]req_shift_open_date [20:04:42]req_shift_open_date done [20:04:42]produce_requested_data done [20:04:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166193,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:04:42]process_action_free close_receipt [20:04:42]json_value_free [20:04:42]json_value_free done [20:04:42]process_json_proto returns [20:04:42]Send response to host [20:04:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166193,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:04:42]free response buf [20:04:42]execute_script done [20:04:42]execute_script returns [20:04:42]free content buf [20:04:42]Sock 6.Close socket [20:04:42]Sock 6.Thread stoped [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:35]OFD Sender: No OFD packet to send [20:06:40]OFD Sender: No OFD packet to send [20:06:45]OFD Sender: No OFD packet to send [20:06:50]OFD Sender: No OFD packet to send [20:06:54]accept exits with 5 [20:06:54]New connection [20:06:54]New thread 3066920292 created [20:06:54]Thread 3066776932 joined [20:06:54]Waiting for new connection... [20:06:54] Sock 5.Parse request [20:06:54]Sock 5.Check first char [20:06:54]Sock 5.First char is OK [20:06:54]request: POST /json_proto HTTP/1.0 [20:06:54]Method: POST [20:06:54]URL: /json_proto [20:06:54]Method is POST - this is cgi request [20:06:54]url: /json_proto [20:06:54]query_string will be loaded in cgi processing [20:06:54]execute_cgi json_proto POST (null) [20:06:54]execute_cgi path=json_proto method=POST [20:06:54]POST find Content-Length [20:06:54]Host: 172.17.53.195:8080 [20:06:54]Content-Length: 678 [20:06:54]Content-Type: application/json [20:06:54] [20:06:54]POST finish read [20:06:54]Found Content-Length = 678 [20:06:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:54]execute_script... [20:06: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)220765", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:54]POST & json_proto [20:06:54]process_json_proto [20:06:54]json parsed OK: [20:06:54]protocol is kg_v1.0 [20:06:54]action value=close_receipt [20:06:54]process_action close_receipt [20:06:54]cmd_close_receipt [20:06:54]MH_GetDate [20:06:54]Write to MH i2c: F0 00 00 40 82 B1 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: F0 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: F0 09 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: F0 09 00 40 82 00 72 B4 16 67 21 48 4A 65 75 [20:06:54]GetLastDocTimeStamp 1729541097 [20:06:54]current date 1729541234 [20:06:54]FM_GetShiftState [20:06:54]SAM_PROTO_GetShiftState [20:06:54]wFMCommunicate request_size=4 [20:06:54]MH_SAM_APDU [20:06:54]CAPDU: 80 13 01 00 [20:06:54]Write to MH i2c: E2 08 00 41 82 80 13 01 00 00 00 00 00 40 [20:06:54]Write i2c OK [20:06:54]MH_I2C_Read... [20:06:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:54]Read from MH i2c: E2 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0E 00 [20:06:54]MH_I2C_Read... [20:06:54]Read from MH i2c: E2 0E 00 41 82 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 49 [20:06:54]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:06:54]wFMCommunicate OK [20:06:54]SAM_PROTO_GetShiftState done [20:06:54]FM_GetShiftState done [20:06:54]opened in 1729470944 [20:06:54]opened+sec_in_day 1729557344 [20:06:54]quantity*price = 80012 [20:06:54]sum+1 = 80013 [20:06:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 305 21.10.2024 20:07 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166194 ФПД: 205391262301841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200714&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166194&fm=205391262301841&tin=02508201610067®Number=0000000000091764&sum=80000 [20:06:55]StoreToDocumentArchive [20:06:55]shift 535 fd 166194 [20:06:55]save to /storage/0535/doc_00166194 [20:06:55]save last doc name /storage/0535/doc_00166194 to /storage/kkm_last_doc_name [20:06:55]save OK [20:06:55]Clear old archive folders... [20:06:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:06:55]tlvbuf is 015FC810 [20:06:55]SAM_PROTO_ClearQueue [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 09 00 00 [20:06:55]Write to MH i2c: E2 08 00 4E 82 80 09 00 00 00 00 00 00 42 [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 03 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 03 00 4E 82 00 90 00 44 [20:06:55]RAPDU: 90 00 [20:06:55]wFMCommunicate OK [20:06:55]SAM_PROTO_ClearQueue done [20:06:55]KKMCreateOFDPacket [20:06:55]OFDProtocolAddRootSTLVToBuf [20:06:55]FM_MakeSignedData [20:06:55]FM_MakeSignedData [20:06:55]SAM_PROTO_SignData [20:06:55]wFMCommunicate request_size=4 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 0D 01 02 [20:06:55]Write to MH i2c: E2 08 00 4F 82 80 0D 01 02 00 00 00 00 4A [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 03 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 03 00 4F 82 00 90 00 45 [20:06:55]RAPDU: 90 00 [20:06:55]wFMCommunicate OK [20:06:55]wFMCommunicate request_size=255 [20:06:55]MH_SAM_APDU [20:06: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 72 B4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 89 02 00 35 04 06 00 BA [20:06:55]Write to MH i2c: E2 02 01 50 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 72 B4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 89 02 00 35 04 06 00 BA 00 00 31 [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]OFD Sender: No OFD packet to send [20:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:55]Read from MH i2c: E2 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 03 00 [20:06:55]MH_I2C_Read... [20:06:55]Read from MH i2c: E2 03 00 50 82 00 90 00 46 [20:06:55]RAPDU: 90 00 [20:06:55]wFMCommunicate OK [20:06:55]wFMCommunicate request_size=10 [20:06:55]MH_SAM_APDU [20:06:55]CAPDU: 80 0D 02 02 05 CD 61 3A BE 91 [20:06:55]Write to MH i2c: E2 0D 00 51 82 80 0D 02 02 05 00 CD 61 3A BE 91 00 00 0E [20:06:55]Write i2c OK [20:06:55]MH_I2C_Read... [20:06:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 03 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 03 00 51 82 00 90 00 47 [20:06:56]RAPDU: 90 00 [20:06:56]wFMCommunicate OK [20:06:56]wFMCommunicate request_size=4 [20:06:56]MH_SAM_APDU [20:06:56]CAPDU: 80 0D 03 02 [20:06:56]Write to MH i2c: E2 08 00 52 82 80 0D 03 02 00 00 00 00 4F [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 0B 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 0B 00 52 82 00 D2 24 6D EB 1E DA C2 49 90 00 A1 [20:06:56]RAPDU: D2 24 6D EB 1E DA C2 49 90 00 [20:06:56]wFMCommunicate OK [20:06:56]SAM_PROTO_SignData done [20:06:56]FM_MakeSignedData done [20:06:56]CreateOFDProtocolMessage [20:06:56]wFMCommunicate request_size=4 [20:06:56]MH_SAM_APDU [20:06:56]CAPDU: 80 11 00 00 [20:06:56]Write to MH i2c: E2 08 00 53 82 80 11 00 00 00 00 00 00 4F [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:56]Read from MH i2c: E2 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 17 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: E2 17 00 53 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [20:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:06:56]wFMCommunicate OK [20:06:56]CreateOFDProtocolMessage done [20:06:56]OFDSenderStorePacket 166194 [20:06:56]StoreOFDPacket docnum=166194 [20:06:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 95 07 01 C5 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 72 B4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 89 02 00 35 04 06 00 BA CD 61 3A BE 91 D2 24 6D EB 1E DA C2 49 [20:06:56]CheckFolder [20:06:56]dirname=/storage/ofd_packets [20:06:56]CheckFolder done [20:06:56]ProducePacketName [20:06:56]name=ofd_packets/00166194 [20:06:56]NVStorageSaveData ofd_packets/00166194 [20:06:56]File name is /storage/ofd_packets/00166194 [20:06:56]Write 301 bytes [20:06:56]NVStorageSaveData done [20:06:56]OFDSenderStorePacket done [20:06:56]KKMCreateOFDPacket done [20:06:56]NVStorageSaveData kkm_last_timestamp [20:06:56]File name is /storage/kkm_last_timestamp [20:06:56]Write 4 bytes [20:06:56]NVStorageSaveData done [20:06:56]ExternCall_PrintAddStr [20:06:56]wPrintStart [20:06:56]Write to MH i2c: 01 00 00 54 82 D6 [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 07 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 07 00 54 82 00 00 00 00 00 FF 0F EB [20:06:56]RasterBufferAndPrint [20:06:56]line Счет N : (1)220765 [20:06:56]line ИНН: 02508201610067 [20:06:56]line Контрольно-Кассовый Чек [20:06:56]line ПРОДАЖА [20:06:56]line ТРК (МРК, ГНК) : 13 [20:06:56]line Товар: 2710124130 [20:06:56]line Аи-92-К-5 [20:06:56]line 11.960 * 66.90 [20:06:56]line = 800.12 [20:06:56]line НДС 12% НСП 1% [20:06:56]line > о реализуемом товаре [20:06:56]line ОКРУГЛЕНИЕ: -0.12 [20:06:56]line ИТОГО: 800.00 [20:06:56]line Внесено: 800.00 [20:06:56]line СДАЧА: 0.00 [20:06:56]line НСП 1% : 7.08 [20:06:56]line НДС 12% : 84.97 [20:06:56]line Наличными: 800.00 [20:06:56]line Безнал.: 0.00 [20:06:56]line Место: АЗС № 161 "Партнер Нефть" [20:06:56]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:06:56]line СНО: Общий режим [20:06:56]line Чек 305 21.10.2024 20:07 [20:06:56]line Смена: 535 ФФД: 1.0 [20:06:56]line ЗНМ: 0300000104 [20:06:56]line РНМ: 0000000000091764 [20:06:56]line Версия ККМ: 001 [20:06:56]line ФМ: 0000000000871759 [20:06:56]line ФД: 166194 [20:06:56]line ФПД: 205391262301841 [20:06:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T200714&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166194&fm=205391262301841&tin=02508201610067®Number=0000000000091764&sum=80000 [20:06:56]written 0, free lines is 4095 [20:06:56]OFD Sender: Processing packet 166194 [packets to send 48, broken 47] [20:06:56]ProducePacketName [20:06:56]name=ofd_packets/00166194 [20:06:56]OFD Sender: To server: pG, [20:06:56]CommunicateWithHost lk.salyk.kg:30040 [20:06:56]ConnectInit lk.salyk.kg [20:06:56]Connected sock=7 [20:06:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B4 95 07 01 C5 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 72 B4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 89 02 00 35 04 06 00 BA CD 61 3A BE 91 D2 24 6D EB 1E DA C2 49 [20:06:56]Write to MH i2c: 01 00 00 7F 82 01 [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 07 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: 01 07 00 7F 82 00 00 00 00 00 CF 0C E3 [20:06:56]RasterBufferAndPrint [20:06:56]line [20:06:56]line [20:06:56]line [20:06:56]line [20:06:56]line [20:06:56]written 0, free lines is 3286 [20:06:56]MH_Cut [20:06:56]Write to MH i2c: D1 01 00 86 82 01 DA [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: D1 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: D1 01 00 [20:06:56]MH_I2C_Read... [20:06:56]Read from MH i2c: D1 01 00 86 82 00 D9 [20:06:56]Write to MH i2c: 01 00 00 87 82 09 [20:06:56]Write i2c OK [20:06:56]MH_I2C_Read... [20:06:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 1B D8 47 00 9C F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 32 89 02 00 F4 03 04 00 DF 5A 16 67 B6 04 01 00 00 AE 61 C1 B0 CB 6A 5C 84 [20:06:56]CommunicateWithHost err = 0 [20:06:56]CheckOFDResponse [20:06:56]1017 (14) - 77093643461234 [20:06:56]1041 (16) - 0000000000871759 [20:06:56]1040 (4) - 166194 [20:06:56]1012 (4) - 21.10.2024 13:45 [20:06:56]1206 (1) - 0 [20:06:56]OFD Sender: Remove packet 166194 [20:06:56]ProducePacketName [20:06:56]name=ofd_packets/00166194 [20:06:56]NVStorageDeleteData [20:06:57]OFD Sender: No OFD packet to send [20:06:57]*** Cut start [20:06:57]*** Partial cut [20:06:57]*** CUTSNS_PIN = 1 [20:06:57]*** CUTSNS_PIN = 0 [20:06:57]*** Brake cut motor [20:06:57]Read from MH i2c: 01 [20:06:58]MH_I2C_Read... [20:06:58]*** Stop cut motor [20:06:58]*** Cut end [20:06:58]Read from MH i2c: 01 07 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: 01 07 00 87 82 00 00 00 00 00 FF 0F 1E [20:06:58]process_action close_receipt done [20:06:58]requested_data is exist [20:06:58]produce_requested_data [20:06:58]requested_item fm.sn is exist - process it [20:06:58]wFMCommunicate request_size=4 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 11 00 00 [20:06:58]Write to MH i2c: E2 08 00 88 82 80 11 00 00 00 00 00 00 84 [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:58]Read from MH i2c: E2 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 17 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 17 00 88 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [20:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:06:58]wFMCommunicate OK [20:06:58]requested_item fd.num is exist - process it [20:06:58]SAM_PROTO_GetFieldsCounters [20:06:58]wFMCommunicate request_size=4 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 13 00 00 [20:06:58]Write to MH i2c: E2 08 00 89 82 80 13 00 00 00 00 00 00 87 [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:58]Read from MH i2c: E2 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 62 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 62 00 89 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [20:06:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 32 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:58]wFMCommunicate OK [20:06:58]SAM_PROTO_GetFieldsCounters done [20:06:58]requested_item shift.num is exist - process it [20:06:58]requested_item shift.opened is exist - process it [20:06:58]req_shift_opened [20:06:58]FM_GetShiftState [20:06:58]SAM_PROTO_GetShiftState [20:06:58]wFMCommunicate request_size=4 [20:06:58]MH_SAM_APDU [20:06:58]CAPDU: 80 13 01 00 [20:06:58]Write to MH i2c: E2 08 00 8A 82 80 13 01 00 00 00 00 00 89 [20:06:58]Write i2c OK [20:06:58]MH_I2C_Read... [20:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:58]Read from MH i2c: E2 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 0E 00 [20:06:58]MH_I2C_Read... [20:06:58]Read from MH i2c: E2 0E 00 8A 82 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 92 [20:06:58]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:06:58]wFMCommunicate OK [20:06:58]SAM_PROTO_GetShiftState done [20:06:58]FM_GetShiftState done [20:06:58]req_shift_opened done [20:06:58]requested_item shift.open_date is exist - process it [20:06:58]req_shift_open_date [20:06:58]req_shift_open_date done [20:06:58]produce_requested_data done [20:06:58]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166194,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:06:58]process_action_free close_receipt [20:06:58]json_value_free [20:06:58]json_value_free done [20:06:58]process_json_proto returns [20:06:58]Send response to host [20:06:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166194,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:06:58]free response buf [20:06:58]execute_script done [20:06:58]execute_script returns [20:06:58]free content buf [20:06:58]Sock 5.Close socket [20:06:58]Sock 5.Thread stoped [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:40]accept exits with 6 [20:09:40]New connection [20:09:40]New thread 3066776932 created [20:09:40]Thread 3066920292 joined [20:09:40]Waiting for new connection... [20:09:40] Sock 6.Parse request [20:09:40]Sock 6.Check first char [20:09:40]Sock 6.First char is OK [20:09:40]request: POST /json_proto HTTP/1.0 [20:09:40]Method: POST [20:09:40]URL: /json_proto [20:09:40]Method is POST - this is cgi request [20:09:40]url: /json_proto [20:09:40]query_string will be loaded in cgi processing [20:09:40]execute_cgi json_proto POST (null) [20:09:40]execute_cgi path=json_proto method=POST [20:09:40]POST find Content-Length [20:09:40]Host: 172.17.53.195:8080 [20:09:40]Content-Length: 800 [20:09:40]Content-Type: application/json [20:09:40] [20:09:40]POST finish read [20:09:40]Found Content-Length = 800 [20:09:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1645661", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:40]execute_script... [20:09: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)220766", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1645661", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:40]POST & json_proto [20:09:40]process_json_proto [20:09:40]json parsed OK: [20:09:40]protocol is kg_v1.0 [20:09:40]action value=close_receipt [20:09:40]process_action close_receipt [20:09:40]cmd_close_receipt [20:09:40]MH_GetDate [20:09:40]Write to MH i2c: F0 00 00 8B 82 FC [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: F0 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: F0 09 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: F0 09 00 8B 82 00 18 B5 16 67 21 48 4A 65 67 [20:09:40]GetLastDocTimeStamp 1729541234 [20:09:40]current date 1729541400 [20:09:40]FM_GetShiftState [20:09:40]SAM_PROTO_GetShiftState [20:09:40]wFMCommunicate request_size=4 [20:09:40]MH_SAM_APDU [20:09:40]CAPDU: 80 13 01 00 [20:09:40]Write to MH i2c: E2 08 00 8C 82 80 13 01 00 00 00 00 00 8B [20:09:40]Write i2c OK [20:09:40]MH_I2C_Read... [20:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:40]Read from MH i2c: E2 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 0E 00 [20:09:40]MH_I2C_Read... [20:09:40]Read from MH i2c: E2 0E 00 8C 82 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 94 [20:09:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:09:40]wFMCommunicate OK [20:09:40]SAM_PROTO_GetShiftState done [20:09:40]FM_GetShiftState done [20:09:40]opened in 1729470944 [20:09:40]opened+sec_in_day 1729557344 [20:09:40]quantity*price = 0 [20:09:40]sum+1 = 1 [20:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 306 21.10.2024 20:10 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Талоны: Топливные Талоны 1645661 ФМ: 0000000000871759 ФД: 166195 ФПД: 8689137962513 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166195&fm=8689137962513&tin=02508201610067®Number=0000000000091764&sum=0 [20:09:42]StoreToDocumentArchive [20:09:42]shift 535 fd 166195 [20:09:42]save to /storage/0535/doc_00166195 [20:09:42]save last doc name /storage/0535/doc_00166195 to /storage/kkm_last_doc_name [20:09:42]save OK [20:09:42]Clear old archive folders... [20:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:42]tlvbuf is 0145A040 [20:09:42]SAM_PROTO_ClearQueue [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 09 00 00 [20:09:42]Write to MH i2c: E2 08 00 99 82 80 09 00 00 00 00 00 00 8D [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 99 82 00 90 00 8F [20:09:42]RAPDU: 90 00 [20:09:42]wFMCommunicate OK [20:09:42]SAM_PROTO_ClearQueue done [20:09:42]KKMCreateOFDPacket [20:09:42]OFDProtocolAddRootSTLVToBuf [20:09:42]FM_MakeSignedData [20:09:42]FM_MakeSignedData [20:09:42]SAM_PROTO_SignData [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 0D 01 02 [20:09:42]Write to MH i2c: E2 08 00 9A 82 80 0D 01 02 00 00 00 00 95 [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 9A 82 00 90 00 90 [20:09:42]RAPDU: 90 00 [20:09:42]wFMCommunicate OK [20:09:42]wFMCommunicate request_size=255 [20:09:42]MH_SAM_APDU [20:09: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 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 32 01 00 00 F4 03 04 00 18 B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 89 02 00 35 04 06 00 07 [20:09:42]Write to MH i2c: E2 02 01 9B 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 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 32 01 00 00 F4 03 04 00 18 B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 89 02 00 35 04 06 00 07 00 00 E1 [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 9B 82 00 90 00 91 [20:09:42]RAPDU: 90 00 [20:09:42]wFMCommunicate OK [20:09:42]wFMCommunicate request_size=10 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 0D 02 02 05 E7 18 FB 4E 11 [20:09:42]Write to MH i2c: E2 0D 00 9C 82 80 0D 02 02 05 00 E7 18 FB 4E 11 00 00 FB [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]OFD Sender: No OFD packet to send [20:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 03 00 9C 82 00 90 00 92 [20:09:42]RAPDU: 90 00 [20:09:42]wFMCommunicate OK [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 0D 03 02 [20:09:42]Write to MH i2c: E2 08 00 9D 82 80 0D 03 02 00 00 00 00 9A [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 0B 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 0B 00 9D 82 00 DD 76 71 67 B1 60 37 F6 90 00 04 [20:09:42]RAPDU: DD 76 71 67 B1 60 37 F6 90 00 [20:09:42]wFMCommunicate OK [20:09:42]SAM_PROTO_SignData done [20:09:42]FM_MakeSignedData done [20:09:42]CreateOFDProtocolMessage [20:09:42]wFMCommunicate request_size=4 [20:09:42]MH_SAM_APDU [20:09:42]CAPDU: 80 11 00 00 [20:09:42]Write to MH i2c: E2 08 00 9E 82 80 11 00 00 00 00 00 00 9A [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:42]Read from MH i2c: E2 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 17 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: E2 17 00 9E 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [20:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:09:42]wFMCommunicate OK [20:09:42]CreateOFDProtocolMessage done [20:09:42]OFDSenderStorePacket 166195 [20:09:42]StoreOFDPacket docnum=166195 [20:09:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 6C 07 01 9B B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 32 01 00 00 F4 03 04 00 18 B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 89 02 00 35 04 06 00 07 E7 18 FB 4E 11 DD 76 71 67 B1 60 37 F6 [20:09:42]CheckFolder [20:09:42]dirname=/storage/ofd_packets [20:09:42]CheckFolder done [20:09:42]ProducePacketName [20:09:42]name=ofd_packets/00166195 [20:09:42]NVStorageSaveData ofd_packets/00166195 [20:09:42]File name is /storage/ofd_packets/00166195 [20:09:42]Write 301 bytes [20:09:42]NVStorageSaveData done [20:09:42]OFDSenderStorePacket done [20:09:42]KKMCreateOFDPacket done [20:09:42]NVStorageSaveData kkm_last_timestamp [20:09:42]File name is /storage/kkm_last_timestamp [20:09:42]Write 4 bytes [20:09:42]NVStorageSaveData done [20:09:42]ExternCall_PrintAddStr [20:09:42]wPrintStart [20:09:42]Write to MH i2c: 01 00 00 9F 82 21 [20:09:42]Write i2c OK [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: 01 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: 01 07 00 [20:09:42]MH_I2C_Read... [20:09:42]Read from MH i2c: 01 07 00 9F 82 00 00 00 00 00 FF 0F 36 [20:09:42]RasterBufferAndPrint [20:09:42]line Счет N : (1)220766 [20:09:42]line ИНН: 02508201610067 [20:09:42]line Контрольно-Кассовый Чек [20:09:42]line ПРОДАЖА [20:09:42]line ТРК (МРК, ГНК) : 24 [20:09:42]line Товар: 2710124500 [20:09:42]line Аи-95-К-5 [20:09:42]line 40.000 * 0.00 [20:09:42]line = 0.00 [20:09:42]line НДС 12% НСП 1% [20:09:42]line > о реализуемом товаре [20:09:42]line ИТОГО: 0.00 [20:09:42]line НСП 1% : 0.00 [20:09:42]line НДС 12% : 0.00 [20:09:42]line Наличными: 0.00 [20:09:42]line Безнал.: 0.00 [20:09:42]line Место: АЗС № 161 "Партнер Нефть" [20:09:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:09:42]line СНО: Общий режим [20:09:42]line Чек 306 21.10.2024 20:10 [20:09:42]line Смена: 535 ФФД: 1.0 [20:09:42]line ЗНМ: 0300000104 [20:09:42]line РНМ: 0000000000091764 [20:09:42]line Версия ККМ: 001 [20:09:42]line Талоны: Топливные Талоны [20:09:42]line 1645661 [20:09:42]line ФМ: 0000000000871759 [20:09:42]line ФД: 166195 [20:09:42]line ФПД: 8689137962513 [20:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201000&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166195&fm=8689137962513&tin=02508201610067®Number=0000000000091764&sum=0 [20:09:42]OFD Sender: Processing packet 166195 [packets to send 48, broken 47] [20:09:42]ProducePacketName [20:09:42]name=ofd_packets/00166195 [20:09:42]OFD Sender: To server: pG, [20:09:42]CommunicateWithHost lk.salyk.kg:30040 [20:09:42]ConnectInit lk.salyk.kg [20:09:42]written 0, free lines is 4095 [20:09:43]Connected sock=7 [20:09:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 6C 07 01 9B B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 32 01 00 00 F4 03 04 00 18 B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 89 02 00 35 04 06 00 07 E7 18 FB 4E 11 DD 76 71 67 B1 60 37 F6 [20:09:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3C E8 47 00 34 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 33 89 02 00 F4 03 04 00 86 5B 16 67 B6 04 01 00 00 A2 C7 2D 1F 48 0D 01 62 [20:09:43]CommunicateWithHost err = 0 [20:09:43]CheckOFDResponse [20:09:43]1017 (14) - 77093643461234 [20:09:43]1041 (16) - 0000000000871759 [20:09:43]1040 (4) - 166195 [20:09:43]1012 (4) - 21.10.2024 13:47 [20:09:43]1206 (1) - 0 [20:09:43]OFD Sender: Remove packet 166195 [20:09:43]ProducePacketName [20:09:43]name=ofd_packets/00166195 [20:09:43]NVStorageDeleteData [20:09:43]Write to MH i2c: 01 00 00 C9 82 4B [20:09:43]Write i2c OK [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: 01 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: 01 07 00 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: 01 07 00 C9 82 00 00 00 00 00 CE 0C 2C [20:09:43]RasterBufferAndPrint [20:09:43]line [20:09:43]line [20:09:43]line [20:09:43]line [20:09:43]line [20:09:43]written 0, free lines is 3284 [20:09:43]MH_Cut [20:09:43]Write to MH i2c: D1 01 00 D0 82 01 24 [20:09:43]Write i2c OK [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: D1 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: D1 01 00 [20:09:43]MH_I2C_Read... [20:09:43]Read from MH i2c: D1 01 00 D0 82 00 23 [20:09:43]Write to MH i2c: 01 00 00 D1 82 53 [20:09:43]Write i2c OK [20:09:43]MH_I2C_Read... [20:09:43]OFD Sender: No OFD packet to send [20:09:44]*** Cut start [20:09:44]*** Partial cut [20:09:44]*** CUTSNS_PIN = 1 [20:09:44]*** CUTSNS_PIN = 0 [20:09:44]*** Brake cut motor [20:09:44]Read from MH i2c: 01 [20:09:44]MH_I2C_Read... [20:09:44]*** Stop cut motor [20:09:44]*** Cut end [20:09:44]Read from MH i2c: 01 07 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: 01 07 00 D1 82 00 00 00 00 00 FF 0F 68 [20:09:44]process_action close_receipt done [20:09:44]requested_data is exist [20:09:44]produce_requested_data [20:09:44]requested_item fm.sn is exist - process it [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 11 00 00 [20:09:44]Write to MH i2c: E2 08 00 D2 82 80 11 00 00 00 00 00 00 CE [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 17 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 17 00 D2 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 26 [20:09:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:09:44]wFMCommunicate OK [20:09:44]requested_item fd.num is exist - process it [20:09:44]SAM_PROTO_GetFieldsCounters [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 13 00 00 [20:09:44]Write to MH i2c: E2 08 00 D3 82 80 13 00 00 00 00 00 00 D1 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:44]Read from MH i2c: E2 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 62 00 [20:09:44]MH_I2C_Read... [20:09:44]Read from MH i2c: E2 62 00 D3 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [20:09:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 33 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:44]wFMCommunicate OK [20:09:44]SAM_PROTO_GetFieldsCounters done [20:09:44]requested_item shift.num is exist - process it [20:09:44]requested_item shift.opened is exist - process it [20:09:44]req_shift_opened [20:09:44]FM_GetShiftState [20:09:44]SAM_PROTO_GetShiftState [20:09:44]wFMCommunicate request_size=4 [20:09:44]MH_SAM_APDU [20:09:44]CAPDU: 80 13 01 00 [20:09:44]Write to MH i2c: E2 08 00 D4 82 80 13 01 00 00 00 00 00 D3 [20:09:44]Write i2c OK [20:09:44]MH_I2C_Read... [20:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:45]Read from MH i2c: E2 [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: E2 0E 00 [20:09:45]MH_I2C_Read... [20:09:45]Read from MH i2c: E2 0E 00 D4 82 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DC [20:09:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:09:45]wFMCommunicate OK [20:09:45]SAM_PROTO_GetShiftState done [20:09:45]FM_GetShiftState done [20:09:45]req_shift_opened done [20:09:45]requested_item shift.open_date is exist - process it [20:09:45]req_shift_open_date [20:09:45]req_shift_open_date done [20:09:45]produce_requested_data done [20:09:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166195,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:09:45]process_action_free close_receipt [20:09:45]json_value_free [20:09:45]json_value_free done [20:09:45]process_json_proto returns [20:09:45]Send response to host [20:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166195,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:09:45]free response buf [20:09:45]execute_script done [20:09:45]execute_script returns [20:09:45]free content buf [20:09:45]Sock 6.Close socket [20:09:45]Sock 6.Thread stoped [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]accept exits with 5 [20:12:08]New connection [20:12:08]New thread 3066920292 created [20:12:08]Thread 3066776932 joined [20:12:08]Waiting for new connection... [20:12:08] Sock 5.Parse request [20:12:08]Sock 5.Check first char [20:12:08]Sock 5.First char is OK [20:12:08]request: POST /json_proto HTTP/1.0 [20:12:08]Method: POST [20:12:08]URL: /json_proto [20:12:08]Method is POST - this is cgi request [20:12:08]url: /json_proto [20:12:08]query_string will be loaded in cgi processing [20:12:08]execute_cgi json_proto POST (null) [20:12:08]execute_cgi path=json_proto method=POST [20:12:08]POST find Content-Length [20:12:08]Host: 172.17.53.195:8080 [20:12:08]Content-Length: 769 [20:12:08]Content-Type: application/json [20:12:08] [20:12:08]POST finish read [20:12:08]Found Content-Length = 769 [20:12:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:08]execute_script... [20:12: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)220767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:12:08]POST & json_proto [20:12:08]process_json_proto [20:12:08]json parsed OK: [20:12:08]protocol is kg_v1.0 [20:12:08]action value=close_receipt [20:12:08]process_action close_receipt [20:12:08]cmd_close_receipt [20:12:08]MH_GetDate [20:12:08]Write to MH i2c: F0 00 00 D5 82 46 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: F0 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: F0 09 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: F0 09 00 D5 82 00 AC B5 16 67 21 48 4A 65 45 [20:12:08]GetLastDocTimeStamp 1729541400 [20:12:08]current date 1729541548 [20:12:08]FM_GetShiftState [20:12:08]SAM_PROTO_GetShiftState [20:12:08]wFMCommunicate request_size=4 [20:12:08]MH_SAM_APDU [20:12:08]CAPDU: 80 13 01 00 [20:12:08]Write to MH i2c: E2 08 00 D6 82 80 13 01 00 00 00 00 00 D5 [20:12:08]Write i2c OK [20:12:08]MH_I2C_Read... [20:12:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:08]Read from MH i2c: E2 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 0E 00 [20:12:08]MH_I2C_Read... [20:12:08]Read from MH i2c: E2 0E 00 D6 82 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DE [20:12:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:12:08]wFMCommunicate OK [20:12:08]SAM_PROTO_GetShiftState done [20:12:08]FM_GetShiftState done [20:12:08]opened in 1729470944 [20:12:08]opened+sec_in_day 1729557344 [20:12:08]quantity*price = 100015 [20:12:08]sum+1 = 100017 [20:12:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 307 21.10.2024 20:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166196 ФПД: 221684549762256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166196&fm=221684549762256&tin=02508201610067®Number=0000000000091764&sum=100016 [20:12:09]StoreToDocumentArchive [20:12:09]shift 535 fd 166196 [20:12:09]save to /storage/0535/doc_00166196 [20:12:09]save last doc name /storage/0535/doc_00166196 to /storage/kkm_last_doc_name [20:12:09]save OK [20:12:09]Clear old archive folders... [20:12:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:12:09]tlvbuf is 01A8C830 [20:12:09]SAM_PROTO_ClearQueue [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 09 00 00 [20:12:09]Write to MH i2c: E2 08 00 E3 82 80 09 00 00 00 00 00 00 D7 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 E3 82 00 90 00 D9 [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]SAM_PROTO_ClearQueue done [20:12:09]KKMCreateOFDPacket [20:12:09]OFDProtocolAddRootSTLVToBuf [20:12:09]FM_MakeSignedData [20:12:09]FM_MakeSignedData [20:12:09]SAM_PROTO_SignData [20:12:09]wFMCommunicate request_size=4 [20:12:09]MH_SAM_APDU [20:12:09]CAPDU: 80 0D 01 02 [20:12:09]Write to MH i2c: E2 08 00 E4 82 80 0D 01 02 00 00 00 00 DF [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:09]Read from MH i2c: E2 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 [20:12:09]MH_I2C_Read... [20:12:09]Read from MH i2c: E2 03 00 E4 82 00 90 00 DA [20:12:09]RAPDU: 90 00 [20:12:09]wFMCommunicate OK [20:12:09]wFMCommunicate request_size=255 [20:12:09]MH_SAM_APDU [20: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AC B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 89 02 00 35 04 06 00 C9 [20:12:09]Write to MH i2c: E2 02 01 E5 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AC B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 89 02 00 35 04 06 00 C9 00 00 42 [20:12:09]Write i2c OK [20:12:09]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 E5 82 00 90 00 DB [20:12:10]RAPDU: 90 00 [20:12:10]wFMCommunicate OK [20:12:10]wFMCommunicate request_size=10 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 0D 02 02 05 9E F4 D7 3C D0 [20:12:10]Write to MH i2c: E2 0D 00 E6 82 80 0D 02 02 05 00 9E F4 D7 3C D0 00 00 61 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 03 00 E6 82 00 90 00 DC [20:12:10]RAPDU: 90 00 [20:12:10]wFMCommunicate OK [20:12:10]wFMCommunicate request_size=4 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 0D 03 02 [20:12:10]Write to MH i2c: E2 08 00 E7 82 80 0D 03 02 00 00 00 00 E4 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 0B 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 0B 00 E7 82 00 25 0B 2A 47 CD 38 50 7C 90 00 57 [20:12:10]RAPDU: 25 0B 2A 47 CD 38 50 7C 90 00 [20:12:10]wFMCommunicate OK [20:12:10]SAM_PROTO_SignData done [20:12:10]FM_MakeSignedData done [20:12:10]CreateOFDProtocolMessage [20:12:10]wFMCommunicate request_size=4 [20:12:10]MH_SAM_APDU [20:12:10]CAPDU: 80 11 00 00 [20:12:10]Write to MH i2c: E2 08 00 E8 82 80 11 00 00 00 00 00 00 E4 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:10]Read from MH i2c: E2 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 17 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: E2 17 00 E8 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3C [20:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:12:10]wFMCommunicate OK [20:12:10]CreateOFDProtocolMessage done [20:12:10]OFDSenderStorePacket 166196 [20:12:10]StoreOFDPacket docnum=166196 [20:12:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9E 40 07 01 7E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AC B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 89 02 00 35 04 06 00 C9 9E F4 D7 3C D0 25 0B 2A 47 CD 38 50 7C [20:12:10]CheckFolder [20:12:10]dirname=/storage/ofd_packets [20:12:10]CheckFolder done [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00166196 [20:12:10]NVStorageSaveData ofd_packets/00166196 [20:12:10]File name is /storage/ofd_packets/00166196 [20:12:10]Write 301 bytes [20:12:10]NVStorageSaveData done [20:12:10]OFDSenderStorePacket done [20:12:10]KKMCreateOFDPacket done [20:12:10]NVStorageSaveData kkm_last_timestamp [20:12:10]File name is /storage/kkm_last_timestamp [20:12:10]Write 4 bytes [20:12:10]NVStorageSaveData done [20:12:10]ExternCall_PrintAddStr [20:12:10]wPrintStart [20:12:10]Write to MH i2c: 01 00 00 E9 82 6B [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 E9 82 00 00 00 00 00 FF 0F 80 [20:12:10]RasterBufferAndPrint [20:12:10]line Счет N : (1)220767 [20:12:10]line ИНН: 02508201610067 [20:12:10]line Контрольно-Кассовый Чек [20:12:10]line ПРОДАЖА [20:12:10]line ТРК (МРК, ГНК) : 43 [20:12:10]line Товар: 2710124130 [20:12:10]line Аи-92-К-5 [20:12:10]line 14.950 * 66.90 [20:12:10]line = 1000.16 [20:12:10]line НДС 12% НСП 1% [20:12:10]line > о реализуемом товаре [20:12:10]line ИТОГО: 1000.16 [20:12:10]line НСП 1% : 8.85 [20:12:10]line НДС 12% : 106.21 [20:12:10]line Наличными: 0.00 [20:12:10]line Безнал.: 1000.16 [20:12:10]line Место: АЗС № 161 "Партнер Нефть" [20:12:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:12:10]line СНО: Общий режим [20:12:10]line Чек 307 21.10.2024 20:12 [20:12:10]line Смена: 535 ФФД: 1.0 [20:12:10]line ЗНМ: 0300000104 [20:12:10]line РНМ: 0000000000091764 [20:12:10]line Версия ККМ: 001 [20:12:10]line Платежная система: Mbank [20:12:10]line ФМ: 0000000000871759 [20:12:10]line ФД: 166196 [20:12:10]line ФПД: 221684549762256 [20:12:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166196&fm=221684549762256&tin=02508201610067®Number=0000000000091764&sum=100016 [20:12:10]OFD Sender: Processing packet 166196 [packets to send 48, broken 47] [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00166196 [20:12:10]OFD Sender: To server: pG, [20:12:10]CommunicateWithHost lk.salyk.kg:30040 [20:12:10]ConnectInit lk.salyk.kg [20:12:10]written 0, free lines is 4095 [20:12:10]Connected sock=7 [20:12:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9E 40 07 01 7E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 AC B5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 89 02 00 35 04 06 00 C9 9E F4 D7 3C D0 25 0B 2A 47 CD 38 50 7C [20: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 35 39 4F 00 00 00 05 0C 47 00 83 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 34 89 02 00 F4 03 04 00 19 5C 16 67 B6 04 01 00 00 A2 2E AB 2B A6 17 0F E3 [20:12:10]CommunicateWithHost err = 0 [20:12:10]CheckOFDResponse [20:12:10]1017 (14) - 77093643461234 [20:12:10]1041 (16) - 0000000000871759 [20:12:10]1040 (4) - 166196 [20:12:10]1012 (4) - 21.10.2024 13:50 [20:12:10]1206 (1) - 0 [20:12:10]OFD Sender: Remove packet 166196 [20:12:10]ProducePacketName [20:12:10]name=ofd_packets/00166196 [20:12:10]NVStorageDeleteData [20:12:10]Write to MH i2c: 01 00 00 12 83 95 [20:12:10]Write i2c OK [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 [20:12:10]MH_I2C_Read... [20:12:10]Read from MH i2c: 01 07 00 12 83 00 00 00 00 00 FD 0C A5 [20:12:10]RasterBufferAndPrint [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]line [20:12:10]line [20:12:11]written 0, free lines is 3331 [20:12:11]MH_Cut [20:12:11]Write to MH i2c: D1 01 00 19 83 01 6E [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 01 00 [20:12:11]MH_I2C_Read... [20:12:11]Read from MH i2c: D1 01 00 19 83 00 6D [20:12:11]Write to MH i2c: 01 00 00 1A 83 9D [20:12:11]Write i2c OK [20:12:11]MH_I2C_Read... [20:12:11]OFD Sender: No OFD packet to send [20:12:11]*** Cut start [20:12:11]*** Partial cut [20:12:11]*** CUTSNS_PIN = 1 [20:12:11]*** CUTSNS_PIN = 0 [20:12:12]*** Brake cut motor [20:12:12]Read from MH i2c: 01 [20:12:12]MH_I2C_Read... [20:12:12]*** Stop cut motor [20:12:12]*** Cut end [20:12:12]Read from MH i2c: 01 07 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: 01 07 00 1A 83 00 00 00 00 00 FF 0F B2 [20:12:12]process_action close_receipt done [20:12:12]requested_data is exist [20:12:12]produce_requested_data [20:12:12]requested_item fm.sn is exist - process it [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 11 00 00 [20:12:12]Write to MH i2c: E2 08 00 1B 83 80 11 00 00 00 00 00 00 18 [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 17 00 1B 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [20:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:12:12]wFMCommunicate OK [20:12:12]requested_item fd.num is exist - process it [20:12:12]SAM_PROTO_GetFieldsCounters [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 00 00 [20:12:12]Write to MH i2c: E2 08 00 1C 83 80 13 00 00 00 00 00 00 1B [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 62 00 1C 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [20:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 34 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetFieldsCounters done [20:12:12]requested_item shift.num is exist - process it [20:12:12]requested_item shift.opened is exist - process it [20:12:12]req_shift_opened [20:12:12]FM_GetShiftState [20:12:12]SAM_PROTO_GetShiftState [20:12:12]wFMCommunicate request_size=4 [20:12:12]MH_SAM_APDU [20:12:12]CAPDU: 80 13 01 00 [20:12:12]Write to MH i2c: E2 08 00 1D 83 80 13 01 00 00 00 00 00 1D [20:12:12]Write i2c OK [20:12:12]MH_I2C_Read... [20:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:12]Read from MH i2c: E2 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 [20:12:12]MH_I2C_Read... [20:12:12]Read from MH i2c: E2 0E 00 1D 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 26 [20:12:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:12:12]wFMCommunicate OK [20:12:12]SAM_PROTO_GetShiftState done [20:12:12]FM_GetShiftState done [20:12:12]req_shift_opened done [20:12:12]requested_item shift.open_date is exist - process it [20:12:12]req_shift_open_date [20:12:12]req_shift_open_date done [20:12:12]produce_requested_data done [20:12:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166196,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:12:12]process_action_free close_receipt [20:12:12]json_value_free [20:12:12]json_value_free done [20:12:12]process_json_proto returns [20:12:12]Send response to host [20:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166196,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:12:12]free response buf [20:12:12]execute_script done [20:12:12]execute_script returns [20:12:12]free content buf [20:12:12]Sock 5.Close socket [20:12:12]Sock 5.Thread stoped [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:20]accept exits with 6 [20:14:20]New connection [20:14:20]New thread 3066776932 created [20:14:20]Thread 3066920292 joined [20:14:20]Waiting for new connection... [20:14:20] Sock 6.Parse request [20:14:20]Sock 6.Check first char [20:14:20]Sock 6.First char is OK [20:14:20]request: POST /json_proto HTTP/1.0 [20:14:20]Method: POST [20:14:20]URL: /json_proto [20:14:20]Method is POST - this is cgi request [20:14:20]url: /json_proto [20:14:20]query_string will be loaded in cgi processing [20:14:20]execute_cgi json_proto POST (null) [20:14:20]execute_cgi path=json_proto method=POST [20:14:20]POST find Content-Length [20:14:20]Host: 172.17.53.195:8080 [20:14:20]Content-Length: 766 [20:14:20]Content-Type: application/json [20:14:20] [20:14:20]POST finish read [20:14:20]Found Content-Length = 766 [20:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:20]execute_script... [20:14: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)220769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:20]POST & json_proto [20:14:20]process_json_proto [20:14:20]json parsed OK: [20:14:20]protocol is kg_v1.0 [20:14:20]action value=close_receipt [20:14:20]process_action close_receipt [20:14:20]cmd_close_receipt [20:14:20]MH_GetDate [20:14:20]Write to MH i2c: F0 00 00 1E 83 90 [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: F0 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: F0 09 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: F0 09 00 1E 83 00 30 B6 16 67 21 48 4A 65 14 [20:14:20]GetLastDocTimeStamp 1729541548 [20:14:20]current date 1729541680 [20:14:20]FM_GetShiftState [20:14:20]SAM_PROTO_GetShiftState [20:14:20]wFMCommunicate request_size=4 [20:14:20]MH_SAM_APDU [20:14:20]CAPDU: 80 13 01 00 [20:14:20]Write to MH i2c: E2 08 00 1F 83 80 13 01 00 00 00 00 00 1F [20:14:20]Write i2c OK [20:14:20]MH_I2C_Read... [20:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:20]Read from MH i2c: E2 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: E2 0E 00 [20:14:20]MH_I2C_Read... [20:14:20]Read from MH i2c: E2 0E 00 1F 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 28 [20:14:20]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:20]wFMCommunicate OK [20:14:20]SAM_PROTO_GetShiftState done [20:14:20]FM_GetShiftState done [20:14:20]opened in 1729470944 [20:14:20]opened+sec_in_day 1729557344 [20:14:20]quantity*price = 100050 [20:14:20]sum+1 = 100052 [20:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 308 21.10.2024 20:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166197 ФПД: 52253742715722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166197&fm=52253742715722&tin=02508201610067®Number=0000000000091764&sum=100051 [20:14:21]StoreToDocumentArchive [20:14:21]shift 535 fd 166197 [20:14:21]save to /storage/0535/doc_00166197 [20:14:21]save last doc name /storage/0535/doc_00166197 to /storage/kkm_last_doc_name [20:14:21]save OK [20:14:21]Clear old archive folders... [20:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:14:21]tlvbuf is 017B0680 [20:14:21]SAM_PROTO_ClearQueue [20:14:21]wFMCommunicate request_size=4 [20:14:21]MH_SAM_APDU [20:14:21]CAPDU: 80 09 00 00 [20:14:21]Write to MH i2c: E2 08 00 2C 83 80 09 00 00 00 00 00 00 21 [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:21]Read from MH i2c: E2 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 2C 83 00 90 00 23 [20:14:21]RAPDU: 90 00 [20:14:21]wFMCommunicate OK [20:14:21]SAM_PROTO_ClearQueue done [20:14:21]KKMCreateOFDPacket [20:14:21]OFDProtocolAddRootSTLVToBuf [20:14:21]FM_MakeSignedData [20:14:21]FM_MakeSignedData [20:14:21]SAM_PROTO_SignData [20:14:21]wFMCommunicate request_size=4 [20:14:21]MH_SAM_APDU [20:14:21]CAPDU: 80 0D 01 02 [20:14:21]Write to MH i2c: E2 08 00 2D 83 80 0D 01 02 00 00 00 00 29 [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:21]Read from MH i2c: E2 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 2D 83 00 90 00 24 [20:14:21]RAPDU: 90 00 [20:14:21]wFMCommunicate OK [20:14:21]wFMCommunicate request_size=255 [20:14:21]MH_SAM_APDU [20:14:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 30 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 89 02 00 35 04 06 00 2F 86 45 C5 [20:14:21]Write to MH i2c: E2 02 01 2E 83 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 30 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 89 02 00 35 04 06 00 2F 86 45 C5 00 00 4B [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:21]Read from MH i2c: E2 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 2E 83 00 90 00 25 [20:14:21]RAPDU: 90 00 [20:14:21]wFMCommunicate OK [20:14:21]wFMCommunicate request_size=7 [20:14:21]MH_SAM_APDU [20:14:21]CAPDU: 80 0D 02 02 02 D3 4A [20:14:21]Write to MH i2c: E2 0A 00 2F 83 80 0D 02 02 02 00 D3 4A 00 00 4D [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:21]Read from MH i2c: E2 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 03 00 2F 83 00 90 00 26 [20:14:21]RAPDU: 90 00 [20:14:21]wFMCommunicate OK [20:14:21]wFMCommunicate request_size=4 [20:14:21]MH_SAM_APDU [20:14:21]CAPDU: 80 0D 03 02 [20:14:21]Write to MH i2c: E2 08 00 30 83 80 0D 03 02 00 00 00 00 2E [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0B 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0B 00 30 83 00 19 57 23 5A C2 9D B7 8A 90 00 BC [20:14:22]RAPDU: 19 57 23 5A C2 9D B7 8A 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_SignData done [20:14:22]FM_MakeSignedData done [20:14:22]CreateOFDProtocolMessage [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 11 00 00 [20:14:22]Write to MH i2c: E2 08 00 31 83 80 11 00 00 00 00 00 00 2E [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 31 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 86 [20:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:22]wFMCommunicate OK [20:14:22]CreateOFDProtocolMessage done [20:14:22]OFDSenderStorePacket 166197 [20:14:22]StoreOFDPacket docnum=166197 [20:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8A F7 04 01 2E 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 30 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 89 02 00 35 04 06 00 2F 86 45 C5 D3 4A 19 57 23 5A C2 9D B7 8A [20:14:22]CheckFolder [20:14:22]dirname=/storage/ofd_packets [20:14:22]CheckFolder done [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00166197 [20:14:22]NVStorageSaveData ofd_packets/00166197 [20:14:22]File name is /storage/ofd_packets/00166197 [20:14:22]Write 298 bytes [20:14:22]NVStorageSaveData done [20:14:22]OFDSenderStorePacket done [20:14:22]KKMCreateOFDPacket done [20:14:22]NVStorageSaveData kkm_last_timestamp [20:14:22]File name is /storage/kkm_last_timestamp [20:14:22]Write 4 bytes [20:14:22]NVStorageSaveData done [20:14:22]ExternCall_PrintAddStr [20:14:22]wPrintStart [20:14:22]Write to MH i2c: 01 00 00 32 83 B5 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 32 83 00 00 00 00 00 FF 0F CA [20:14:22]RasterBufferAndPrint [20:14:22]line Счет N : (1)220769 [20:14:22]line ИНН: 02508201610067 [20:14:22]line Контрольно-Кассовый Чек [20:14:22]line ПРОДАЖА [20:14:22]line ТРК (МРК, ГНК) : 11 [20:14:22]line Товар: 2710194210 [20:14:22]line ДТ-К-5 [20:14:22]line 13.130 * 76.20 [20:14:22]line = 1000.51 [20:14:22]line НДС 12% НСП 1% [20:14:22]line > о реализуемом товаре [20:14:22]line ИТОГО: 1000.51 [20:14:22]line НСП 1% : 8.85 [20:14:22]line НДС 12% : 106.25 [20:14:22]line Наличными: 0.00 [20:14:22]line Безнал.: 1000.51 [20:14:22]line Место: АЗС № 161 "Партнер Нефть" [20:14:22]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:14:22]line СНО: Общий режим [20:14:22]line Чек 308 21.10.2024 20:14 [20:14:22]line Смена: 535 ФФД: 1.0 [20:14:22]line ЗНМ: 0300000104 [20:14:22]line РНМ: 0000000000091764 [20:14:22]line Версия ККМ: 001 [20:14:22]line Платежная система: Mbank [20:14:22]line ФМ: 0000000000871759 [20:14:22]line ФД: 166197 [20:14:22]line ФПД: 52253742715722 [20:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201440&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166197&fm=52253742715722&tin=02508201610067®Number=0000000000091764&sum=100051 [20:14:22]OFD Sender: Processing packet 166197 [packets to send 48, broken 47] [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00166197 [20:14:22]OFD Sender: To server: pG, [20:14:22]CommunicateWithHost lk.salyk.kg:30040 [20:14:22]ConnectInit lk.salyk.kg [20:14:22]written 0, free lines is 4095 [20:14:22]Connected sock=7 [20:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 8A F7 04 01 2E 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 30 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 89 02 00 35 04 06 00 2F 86 45 C5 D3 4A 19 57 23 5A C2 9D B7 8A [20:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 37 E6 47 00 11 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 35 89 02 00 F4 03 04 00 9D 5C 16 67 B6 04 01 00 00 41 39 0E 07 EF D7 20 A0 [20:14:22]CommunicateWithHost err = 0 [20:14:22]CheckOFDResponse [20:14:22]1017 (14) - 77093643461234 [20:14:22]1041 (16) - 0000000000871759 [20:14:22]1040 (4) - 166197 [20:14:22]1012 (4) - 21.10.2024 13:52 [20:14:22]1206 (1) - 0 [20:14:22]OFD Sender: Remove packet 166197 [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00166197 [20:14:22]NVStorageDeleteData [20:14:22]Write to MH i2c: 01 00 00 5B 83 DE [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 5B 83 00 00 00 00 00 F8 0C E9 [20:14:22]RasterBufferAndPrint [20:14:22]line [20:14:22]line [20:14:22]line [20:14:22]line [20:14:22]line [20:14:22]written 0, free lines is 3326 [20:14:22]MH_Cut [20:14:22]Write to MH i2c: D1 01 00 62 83 01 B7 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: D1 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: D1 01 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: D1 01 00 62 83 00 B6 [20:14:22]Write to MH i2c: 01 00 00 63 83 E6 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:23]OFD Sender: No OFD packet to send [20:14:23]*** Cut start [20:14:23]*** Partial cut [20:14:23]*** CUTSNS_PIN = 1 [20:14:23]*** CUTSNS_PIN = 0 [20:14:23]*** Brake cut motor [20:14:24]Read from MH i2c: 01 [20:14:24]MH_I2C_Read... [20:14:24]*** Stop cut motor [20:14:24]*** Cut end [20:14:24]Read from MH i2c: 01 07 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: 01 07 00 63 83 00 00 00 00 00 FF 0F FB [20:14:24]process_action close_receipt done [20:14:24]requested_data is exist [20:14:24]produce_requested_data [20:14:24]requested_item fm.sn is exist - process it [20:14:24]wFMCommunicate request_size=4 [20:14:24]MH_SAM_APDU [20:14:24]CAPDU: 80 11 00 00 [20:14:24]Write to MH i2c: E2 08 00 64 83 80 11 00 00 00 00 00 00 61 [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:24]Read from MH i2c: E2 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: E2 17 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: E2 17 00 64 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [20:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:24]wFMCommunicate OK [20:14:24]requested_item fd.num is exist - process it [20:14:24]SAM_PROTO_GetFieldsCounters [20:14:24]wFMCommunicate request_size=4 [20:14:24]MH_SAM_APDU [20:14:24]CAPDU: 80 13 00 00 [20:14:24]Write to MH i2c: E2 08 00 65 83 80 13 00 00 00 00 00 00 64 [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:24]Read from MH i2c: E2 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: E2 62 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: E2 62 00 65 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [20:14:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 35 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:24]wFMCommunicate OK [20:14:24]SAM_PROTO_GetFieldsCounters done [20:14:24]requested_item shift.num is exist - process it [20:14:24]requested_item shift.opened is exist - process it [20:14:24]req_shift_opened [20:14:24]FM_GetShiftState [20:14:24]SAM_PROTO_GetShiftState [20:14:24]wFMCommunicate request_size=4 [20:14:24]MH_SAM_APDU [20:14:24]CAPDU: 80 13 01 00 [20:14:24]Write to MH i2c: E2 08 00 66 83 80 13 01 00 00 00 00 00 66 [20:14:24]Write i2c OK [20:14:24]MH_I2C_Read... [20:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:24]Read from MH i2c: E2 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: E2 0E 00 [20:14:24]MH_I2C_Read... [20:14:24]Read from MH i2c: E2 0E 00 66 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [20:14:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:24]wFMCommunicate OK [20:14:24]SAM_PROTO_GetShiftState done [20:14:24]FM_GetShiftState done [20:14:24]req_shift_opened done [20:14:24]requested_item shift.open_date is exist - process it [20:14:24]req_shift_open_date [20:14:24]req_shift_open_date done [20:14:24]produce_requested_data done [20:14:24]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166197,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:14:24]process_action_free close_receipt [20:14:24]json_value_free [20:14:24]json_value_free done [20:14:24]process_json_proto returns [20:14:24]Send response to host [20:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166197,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:14:24]free response buf [20:14:24]execute_script done [20:14:24]execute_script returns [20:14:24]free content buf [20:14:24]Sock 6.Close socket [20:14:24]Sock 6.Thread stoped [20:14:27]accept exits with 5 [20:14:27]New connection [20:14:27]New thread 3066920292 created [20:14:27]Thread 3066776932 joined [20:14:27]Waiting for new connection... [20:14:27] Sock 5.Parse request [20:14:27]Sock 5.Check first char [20:14:27]Sock 5.First char is OK [20:14:27]request: POST /json_proto HTTP/1.0 [20:14:27]Method: POST [20:14:27]URL: /json_proto [20:14:27]Method is POST - this is cgi request [20:14:27]url: /json_proto [20:14:27]query_string will be loaded in cgi processing [20:14:27]execute_cgi json_proto POST (null) [20:14:27]execute_cgi path=json_proto method=POST [20:14:27]POST find Content-Length [20:14:27]Host: 172.17.53.195:8080 [20:14:27]Content-Length: 678 [20:14:27]Content-Type: application/json [20:14:27] [20:14:27]POST finish read [20:14:27]Found Content-Length = 678 [20:14:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:27]execute_script... [20:14: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)220771", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:27]POST & json_proto [20:14:27]process_json_proto [20:14:27]json parsed OK: [20:14:27]protocol is kg_v1.0 [20:14:27]action value=close_receipt [20:14:27]process_action close_receipt [20:14:27]cmd_close_receipt [20:14:27]MH_GetDate [20:14:27]Write to MH i2c: F0 00 00 67 83 D9 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: F0 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: F0 09 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: F0 09 00 67 83 00 37 B6 16 67 21 48 4A 65 64 [20:14:27]GetLastDocTimeStamp 1729541680 [20:14:27]current date 1729541687 [20:14:27]FM_GetShiftState [20:14:27]SAM_PROTO_GetShiftState [20:14:27]wFMCommunicate request_size=4 [20:14:27]MH_SAM_APDU [20:14:27]CAPDU: 80 13 01 00 [20:14:27]Write to MH i2c: E2 08 00 68 83 80 13 01 00 00 00 00 00 68 [20:14:27]Write i2c OK [20:14:27]MH_I2C_Read... [20:14:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:27]Read from MH i2c: E2 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 0E 00 [20:14:27]MH_I2C_Read... [20:14:27]Read from MH i2c: E2 0E 00 68 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 71 [20:14:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:27]wFMCommunicate OK [20:14:27]SAM_PROTO_GetShiftState done [20:14:27]FM_GetShiftState done [20:14:27]opened in 1729470944 [20:14:27]opened+sec_in_day 1729557344 [20:14:27]quantity*price = 70044 [20:14:27]sum+1 = 70045 [20:14:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 309 21.10.2024 20:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166198 ФПД: 99769445664039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201447&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166198&fm=99769445664039&tin=02508201610067®Number=0000000000091764&sum=70000 [20:14:28]StoreToDocumentArchive [20:14:28]shift 535 fd 166198 [20:14:28]save to /storage/0535/doc_00166198 [20:14:28]save last doc name /storage/0535/doc_00166198 to /storage/kkm_last_doc_name [20:14:28]save OK [20:14:28]Clear old archive folders... [20:14:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:28]tlvbuf is 0162F430 [20:14:28]SAM_PROTO_ClearQueue [20:14:28]wFMCommunicate request_size=4 [20:14:28]MH_SAM_APDU [20:14:28]CAPDU: 80 09 00 00 [20:14:28]Write to MH i2c: E2 08 00 75 83 80 09 00 00 00 00 00 00 6A [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:28]Read from MH i2c: E2 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: E2 03 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: E2 03 00 75 83 00 90 00 6C [20:14:28]RAPDU: 90 00 [20:14:28]wFMCommunicate OK [20:14:28]SAM_PROTO_ClearQueue done [20:14:28]KKMCreateOFDPacket [20:14:28]OFDProtocolAddRootSTLVToBuf [20:14:28]FM_MakeSignedData [20:14:28]FM_MakeSignedData [20:14:28]SAM_PROTO_SignData [20:14:28]wFMCommunicate request_size=4 [20:14:28]MH_SAM_APDU [20:14:28]CAPDU: 80 0D 01 02 [20:14:28]Write to MH i2c: E2 08 00 76 83 80 0D 01 02 00 00 00 00 72 [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:28]Read from MH i2c: E2 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: E2 03 00 [20:14:28]MH_I2C_Read... [20:14:28]Read from MH i2c: E2 03 00 76 83 00 90 00 6D [20:14:28]RAPDU: 90 00 [20:14:28]wFMCommunicate OK [20:14:28]wFMCommunicate request_size=255 [20:14:28]MH_SAM_APDU [20:14: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 37 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 89 02 00 35 04 06 00 5A [20:14:28]Write to MH i2c: E2 02 01 77 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 37 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 89 02 00 35 04 06 00 5A 00 00 EC [20:14:28]Write i2c OK [20:14:28]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 03 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 03 00 77 83 00 90 00 6E [20:14:29]RAPDU: 90 00 [20:14:29]wFMCommunicate OK [20:14:29]wFMCommunicate request_size=10 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 0D 02 02 05 BD 62 5E 45 27 [20:14:29]Write to MH i2c: E2 0D 00 78 83 80 0D 02 02 05 00 BD 62 5E 45 27 00 00 68 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 03 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 03 00 78 83 00 90 00 6F [20:14:29]RAPDU: 90 00 [20:14:29]wFMCommunicate OK [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 0D 03 02 [20:14:29]Write to MH i2c: E2 08 00 79 83 80 0D 03 02 00 00 00 00 77 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 0B 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 0B 00 79 83 00 5D 7E 54 B1 1E 53 A0 55 90 00 BE [20:14:29]RAPDU: 5D 7E 54 B1 1E 53 A0 55 90 00 [20:14:29]wFMCommunicate OK [20:14:29]SAM_PROTO_SignData done [20:14:29]FM_MakeSignedData done [20:14:29]CreateOFDProtocolMessage [20:14:29]wFMCommunicate request_size=4 [20:14:29]MH_SAM_APDU [20:14:29]CAPDU: 80 11 00 00 [20:14:29]Write to MH i2c: E2 08 00 7A 83 80 11 00 00 00 00 00 00 77 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:29]Read from MH i2c: E2 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 17 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: E2 17 00 7A 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [20:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:29]wFMCommunicate OK [20:14:29]CreateOFDProtocolMessage done [20:14:29]OFDSenderStorePacket 166198 [20:14:29]StoreOFDPacket docnum=166198 [20:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 77 07 01 AD 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 37 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 89 02 00 35 04 06 00 5A BD 62 5E 45 27 5D 7E 54 B1 1E 53 A0 55 [20:14:29]CheckFolder [20:14:29]dirname=/storage/ofd_packets [20:14:29]CheckFolder done [20:14:29]ProducePacketName [20:14:29]name=ofd_packets/00166198 [20:14:29]NVStorageSaveData ofd_packets/00166198 [20:14:29]File name is /storage/ofd_packets/00166198 [20:14:29]Write 301 bytes [20:14:29]NVStorageSaveData done [20:14:29]OFDSenderStorePacket done [20:14:29]KKMCreateOFDPacket done [20:14:29]NVStorageSaveData kkm_last_timestamp [20:14:29]File name is /storage/kkm_last_timestamp [20:14:29]Write 4 bytes [20:14:29]NVStorageSaveData done [20:14:29]ExternCall_PrintAddStr [20:14:29]wPrintStart [20:14:29]Write to MH i2c: 01 00 00 7B 83 FE [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 7B 83 00 00 00 00 00 FF 0F 13 [20:14:29]RasterBufferAndPrint [20:14:29]line Счет N : (1)220771 [20:14:29]line ИНН: 02508201610067 [20:14:29]line Контрольно-Кассовый Чек [20:14:29]line ПРОДАЖА [20:14:29]line ТРК (МРК, ГНК) : 33 [20:14:29]line Товар: 2710124130 [20:14:29]line Аи-92-К-5 [20:14:29]line 10.470 * 66.90 [20:14:29]line = 700.44 [20:14:29]line НДС 12% НСП 1% [20:14:29]line > о реализуемом товаре [20:14:29]line ОКРУГЛЕНИЕ: -0.44 [20:14:29]line ИТОГО: 700.00 [20:14:29]line Внесено: 700.00 [20:14:29]line СДАЧА: 0.00 [20:14:29]line НСП 1% : 6.20 [20:14:29]line НДС 12% : 74.38 [20:14:29]line Наличными: 700.00 [20:14:29]line Безнал.: 0.00 [20:14:29]line Место: АЗС № 161 "Партнер Нефть" [20:14:29]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:14:29]line СНО: Общий режим [20:14:29]line Чек 309 21.10.2024 20:14 [20:14:29]line Смена: 535 ФФД: 1.0 [20:14:29]line ЗНМ: 0300000104 [20:14:29]line РНМ: 0000000000091764 [20:14:29]line Версия ККМ: 001 [20:14:29]line ФМ: 0000000000871759 [20:14:29]line ФД: 166198 [20:14:29]line ФПД: 99769445664039 [20:14:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201447&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166198&fm=99769445664039&tin=02508201610067®Number=0000000000091764&sum=70000 [20:14:29]written 0, free lines is 4095 [20:14:29]OFD Sender: Processing packet 166198 [packets to send 48, broken 47] [20:14:29]ProducePacketName [20:14:29]name=ofd_packets/00166198 [20:14:29]OFD Sender: To server: pG, [20:14:29]CommunicateWithHost lk.salyk.kg:30040 [20:14:29]ConnectInit lk.salyk.kg [20:14:29]Connected sock=7 [20:14:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 77 07 01 AD 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 37 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 89 02 00 35 04 06 00 5A BD 62 5E 45 27 5D 7E 54 B1 1E 53 A0 55 [20:14:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F0 F6 47 00 00 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 36 89 02 00 F4 03 04 00 A4 5C 16 67 B6 04 01 00 00 4A 41 5D 86 4B E2 87 1A [20:14:29]CommunicateWithHost err = 0 [20:14:29]CheckOFDResponse [20:14:29]1017 (14) - 77093643461234 [20:14:29]1041 (16) - 0000000000871759 [20:14:29]1040 (4) - 166198 [20:14:29]1012 (4) - 21.10.2024 13:52 [20:14:29]1206 (1) - 0 [20:14:29]OFD Sender: Remove packet 166198 [20:14:29]ProducePacketName [20:14:29]name=ofd_packets/00166198 [20:14:29]NVStorageDeleteData [20:14:29]Write to MH i2c: 01 00 00 A6 83 29 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: 01 07 00 A6 83 00 00 00 00 00 CF 0C 0B [20:14:29]RasterBufferAndPrint [20:14:29]line [20:14:29]line [20:14:29]line [20:14:29]line [20:14:29]line [20:14:29]written 0, free lines is 3293 [20:14:29]MH_Cut [20:14:29]Write to MH i2c: D1 01 00 AD 83 01 02 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: D1 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: D1 01 00 [20:14:29]MH_I2C_Read... [20:14:29]Read from MH i2c: D1 01 00 AD 83 00 01 [20:14:29]Write to MH i2c: 01 00 00 AE 83 31 [20:14:29]Write i2c OK [20:14:29]MH_I2C_Read... [20:14:30]OFD Sender: No OFD packet to send [20:14:30]*** Cut start [20:14:30]*** Partial cut [20:14:30]*** CUTSNS_PIN = 1 [20:14:30]*** CUTSNS_PIN = 0 [20:14:30]*** Brake cut motor [20:14:31]Read from MH i2c: 01 [20:14:31]MH_I2C_Read... [20:14:31]*** Stop cut motor [20:14:31]*** Cut end [20:14:31]Read from MH i2c: 01 07 00 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: 01 07 00 AE 83 00 00 00 00 00 FF 0F 46 [20:14:31]process_action close_receipt done [20:14:31]requested_data is exist [20:14:31]produce_requested_data [20:14:31]requested_item fm.sn is exist - process it [20:14:31]wFMCommunicate request_size=4 [20:14:31]MH_SAM_APDU [20:14:31]CAPDU: 80 11 00 00 [20:14:31]Write to MH i2c: E2 08 00 AF 83 80 11 00 00 00 00 00 00 AC [20:14:31]Write i2c OK [20:14:31]MH_I2C_Read... [20:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:31]Read from MH i2c: E2 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 17 00 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 17 00 AF 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [20:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:31]wFMCommunicate OK [20:14:31]requested_item fd.num is exist - process it [20:14:31]SAM_PROTO_GetFieldsCounters [20:14:31]wFMCommunicate request_size=4 [20:14:31]MH_SAM_APDU [20:14:31]CAPDU: 80 13 00 00 [20:14:31]Write to MH i2c: E2 08 00 B0 83 80 13 00 00 00 00 00 00 AF [20:14:31]Write i2c OK [20:14:31]MH_I2C_Read... [20:14:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:31]Read from MH i2c: E2 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 62 00 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 62 00 B0 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [20:14:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 36 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:31]wFMCommunicate OK [20:14:31]SAM_PROTO_GetFieldsCounters done [20:14:31]requested_item shift.num is exist - process it [20:14:31]requested_item shift.opened is exist - process it [20:14:31]req_shift_opened [20:14:31]FM_GetShiftState [20:14:31]SAM_PROTO_GetShiftState [20:14:31]wFMCommunicate request_size=4 [20:14:31]MH_SAM_APDU [20:14:31]CAPDU: 80 13 01 00 [20:14:31]Write to MH i2c: E2 08 00 B1 83 80 13 01 00 00 00 00 00 B1 [20:14:31]Write i2c OK [20:14:31]MH_I2C_Read... [20:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:31]Read from MH i2c: E2 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 0E 00 [20:14:31]MH_I2C_Read... [20:14:31]Read from MH i2c: E2 0E 00 B1 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BA [20:14:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:31]wFMCommunicate OK [20:14:31]SAM_PROTO_GetShiftState done [20:14:31]FM_GetShiftState done [20:14:31]req_shift_opened done [20:14:31]requested_item shift.open_date is exist - process it [20:14:31]req_shift_open_date [20:14:31]req_shift_open_date done [20:14:31]produce_requested_data done [20:14:31]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166198,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:14:31]process_action_free close_receipt [20:14:31]json_value_free [20:14:31]json_value_free done [20:14:31]process_json_proto returns [20:14:31]Send response to host [20:14:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166198,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:14:31]free response buf [20:14:31]execute_script done [20:14:31]execute_script returns [20:14:31]free content buf [20:14:31]Sock 5.Close socket [20:14:31]Sock 5.Thread stoped [20:14:32]accept exits with 6 [20:14:32]New connection [20:14:32]New thread 3066776932 created [20:14:32]Thread 3066920292 joined [20:14:32]Waiting for new connection... [20:14:32] Sock 6.Parse request [20:14:32]Sock 6.Check first char [20:14:32]Sock 6.First char is OK [20:14:32]request: POST /json_proto HTTP/1.0 [20:14:32]Method: POST [20:14:32]URL: /json_proto [20:14:32]Method is POST - this is cgi request [20:14:32]url: /json_proto [20:14:32]query_string will be loaded in cgi processing [20:14:32]execute_cgi json_proto POST (null) [20:14:32]execute_cgi path=json_proto method=POST [20:14:32]POST find Content-Length [20:14:32]Host: 172.17.53.195:8080 [20:14:32]Content-Length: 676 [20:14:32]Content-Type: application/json [20:14:32] [20:14:32]POST finish read [20:14:32]Found Content-Length = 676 [20:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:32]execute_script... [20:14: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)220770", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.120, "sum" : 999.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:32]POST & json_proto [20:14:32]process_json_proto [20:14:32]json parsed OK: [20:14:32]protocol is kg_v1.0 [20:14:32]action value=close_receipt [20:14:32]process_action close_receipt [20:14:32]cmd_close_receipt [20:14:32]MH_GetDate [20:14:32]Write to MH i2c: F0 00 00 B2 83 24 [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: F0 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: F0 09 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: F0 09 00 B2 83 00 3C B6 16 67 21 48 4A 65 B4 [20:14:32]GetLastDocTimeStamp 1729541687 [20:14:32]current date 1729541692 [20:14:32]FM_GetShiftState [20:14:32]SAM_PROTO_GetShiftState [20:14:32]wFMCommunicate request_size=4 [20:14:32]MH_SAM_APDU [20:14:32]CAPDU: 80 13 01 00 [20:14:32]Write to MH i2c: E2 08 00 B3 83 80 13 01 00 00 00 00 00 B3 [20:14:32]Write i2c OK [20:14:32]MH_I2C_Read... [20:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:32]Read from MH i2c: E2 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 0E 00 [20:14:32]MH_I2C_Read... [20:14:32]Read from MH i2c: E2 0E 00 B3 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BC [20:14:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:32]wFMCommunicate OK [20:14:32]SAM_PROTO_GetShiftState done [20:14:32]FM_GetShiftState done [20:14:32]opened in 1729470944 [20:14:32]opened+sec_in_day 1729557344 [20:14:32]quantity*price = 99974 [20:14:32]sum+1 = 99975 [20:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 310 21.10.2024 20:14 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166199 ФПД: 280591278510623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166199&fm=280591278510623&tin=02508201610067®Number=0000000000091764&sum=99900 [20:14:34]StoreToDocumentArchive [20:14:34]shift 535 fd 166199 [20:14:34]save to /storage/0535/doc_00166199 [20:14:34]save last doc name /storage/0535/doc_00166199 to /storage/kkm_last_doc_name [20:14:34]save OK [20:14:34]Clear old archive folders... [20:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:14:34]tlvbuf is 01B42DE0 [20:14:34]SAM_PROTO_ClearQueue [20:14:34]wFMCommunicate request_size=4 [20:14:34]MH_SAM_APDU [20:14:34]CAPDU: 80 09 00 00 [20:14:34]Write to MH i2c: E2 08 00 C0 83 80 09 00 00 00 00 00 00 B5 [20:14:34]Write i2c OK [20:14:34]MH_I2C_Read... [20:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:34]Read from MH i2c: E2 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 C0 83 00 90 00 B7 [20:14:34]RAPDU: 90 00 [20:14:34]wFMCommunicate OK [20:14:34]SAM_PROTO_ClearQueue done [20:14:34]KKMCreateOFDPacket [20:14:34]OFDProtocolAddRootSTLVToBuf [20:14:34]FM_MakeSignedData [20:14:34]FM_MakeSignedData [20:14:34]SAM_PROTO_SignData [20:14:34]wFMCommunicate request_size=4 [20:14:34]MH_SAM_APDU [20:14:34]CAPDU: 80 0D 01 02 [20:14:34]Write to MH i2c: E2 08 00 C1 83 80 0D 01 02 00 00 00 00 BD [20:14:34]Write i2c OK [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 [20:14:34]MH_I2C_Read... [20:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:34]Read from MH i2c: E2 03 00 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 C1 83 00 90 00 B8 [20:14:34]RAPDU: 90 00 [20:14:34]wFMCommunicate OK [20:14:34]wFMCommunicate request_size=255 [20:14:34]MH_SAM_APDU [20:14:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 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 3C B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 89 02 00 35 04 06 00 FF 32 3F 7B [20:14:34]Write to MH i2c: E2 02 01 C2 83 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 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 3C B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 89 02 00 35 04 06 00 FF 32 3F 7B 00 00 8E [20:14:34]Write i2c OK [20:14:34]MH_I2C_Read... [20:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:34]Read from MH i2c: E2 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 C2 83 00 90 00 B9 [20:14:34]RAPDU: 90 00 [20:14:34]wFMCommunicate OK [20:14:34]wFMCommunicate request_size=7 [20:14:34]MH_SAM_APDU [20:14:34]CAPDU: 80 0D 02 02 02 92 1F [20:14:34]Write to MH i2c: E2 0A 00 C3 83 80 0D 02 02 02 00 92 1F 00 00 75 [20:14:34]Write i2c OK [20:14:34]MH_I2C_Read... [20:14:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:34]Read from MH i2c: E2 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 03 00 C3 83 00 90 00 BA [20:14:34]RAPDU: 90 00 [20:14:34]wFMCommunicate OK [20:14:34]wFMCommunicate request_size=4 [20:14:34]MH_SAM_APDU [20:14:34]CAPDU: 80 0D 03 02 [20:14:34]Write to MH i2c: E2 08 00 C4 83 80 0D 03 02 00 00 00 00 C2 [20:14:34]Write i2c OK [20:14:34]MH_I2C_Read... [20:14:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:34]Read from MH i2c: E2 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 0B 00 [20:14:34]MH_I2C_Read... [20:14:34]Read from MH i2c: E2 0B 00 C4 83 00 CD 5F 38 36 55 9C C6 80 90 00 94 [20:14:34]RAPDU: CD 5F 38 36 55 9C C6 80 90 00 [20:14:34]wFMCommunicate OK [20:14:34]SAM_PROTO_SignData done [20:14:34]FM_MakeSignedData done [20:14:34]CreateOFDProtocolMessage [20:14:34]wFMCommunicate request_size=4 [20:14:34]MH_SAM_APDU [20:14:34]CAPDU: 80 11 00 00 [20:14:34]Write to MH i2c: E2 08 00 C5 83 80 11 00 00 00 00 00 00 C2 [20:14:34]Write i2c OK [20:14:34]MH_I2C_Read... [20:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:35]Read from MH i2c: E2 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 17 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 17 00 C5 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [20:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:35]wFMCommunicate OK [20:14:35]CreateOFDProtocolMessage done [20:14:35]OFDSenderStorePacket 166199 [20:14:35]StoreOFDPacket docnum=166199 [20:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 52 A8 04 01 2B 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 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 3C B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 89 02 00 35 04 06 00 FF 32 3F 7B 92 1F CD 5F 38 36 55 9C C6 80 [20:14:35]CheckFolder [20:14:35]dirname=/storage/ofd_packets [20:14:35]CheckFolder done [20:14:35]ProducePacketName [20:14:35]name=ofd_packets/00166199 [20:14:35]NVStorageSaveData ofd_packets/00166199 [20:14:35]File name is /storage/ofd_packets/00166199 [20:14:35]Write 298 bytes [20:14:35]NVStorageSaveData done [20:14:35]OFDSenderStorePacket done [20:14:35]KKMCreateOFDPacket done [20:14:35]NVStorageSaveData kkm_last_timestamp [20:14:35]File name is /storage/kkm_last_timestamp [20:14:35]Write 4 bytes [20:14:35]NVStorageSaveData done [20:14:35]ExternCall_PrintAddStr [20:14:35]wPrintStart [20:14:35]Write to MH i2c: 01 00 00 C6 83 49 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 C6 83 00 00 00 00 00 FF 0F 5E [20:14:35]RasterBufferAndPrint [20:14:35]line Счет N : (1)220770 [20:14:35]line ИНН: 02508201610067 [20:14:35]line Контрольно-Кассовый Чек [20:14:35]line ПРОДАЖА [20:14:35]line ТРК (МРК, ГНК) : 41 [20:14:35]line Товар: 2710194210 [20:14:35]line ДТ-К-5 [20:14:35]line 13.120 * 76.20 [20:14:35]line = 999.74 [20:14:35]line НДС 12% НСП 1% [20:14:35]line > о реализуемом товаре [20:14:35]line ОКРУГЛЕНИЕ: -0.74 [20:14:35]line ИТОГО: 999.00 [20:14:35]line Внесено: 1000.00 [20:14:35]line СДАЧА: 1.00 [20:14:35]line НСП 1% : 8.85 [20:14:35]line НДС 12% : 106.17 [20:14:35]line Наличными: 999.00 [20:14:35]line Безнал.: 0.00 [20:14:35]line Место: АЗС № 161 "Партнер Нефть" [20:14:35]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:14:35]line СНО: Общий режим [20:14:35]line Чек 310 21.10.2024 20:14 [20:14:35]line Смена: 535 ФФД: 1.0 [20:14:35]line ЗНМ: 0300000104 [20:14:35]line РНМ: 0000000000091764 [20:14:35]line Версия ККМ: 001 [20:14:35]line ФМ: 0000000000871759 [20:14:35]line ФД: 166199 [20:14:35]line ФПД: 280591278510623 [20:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201452&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166199&fm=280591278510623&tin=02508201610067®Number=0000000000091764&sum=99900 [20:14:35]written 0, free lines is 4095 [20:14:35]OFD Sender: Processing packet 166199 [packets to send 48, broken 47] [20:14:35]ProducePacketName [20:14:35]name=ofd_packets/00166199 [20:14:35]OFD Sender: To server: pG, [20:14:35]CommunicateWithHost lk.salyk.kg:30040 [20:14:35]ConnectInit lk.salyk.kg [20:14:35]Connected sock=7 [20:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 52 A8 04 01 2B 62 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 86 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 3C 86 01 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 3C B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 89 02 00 35 04 06 00 FF 32 3F 7B 92 1F CD 5F 38 36 55 9C C6 80 [20:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B1 1B 47 00 A2 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 37 89 02 00 F4 03 04 00 AA 5C 16 67 B6 04 01 00 00 39 6C 30 B0 50 7A C0 1E [20:14:35]CommunicateWithHost err = 0 [20:14:35]CheckOFDResponse [20:14:35]1017 (14) - 77093643461234 [20:14:35]1041 (16) - 0000000000871759 [20:14:35]1040 (4) - 166199 [20:14:35]1012 (4) - 21.10.2024 13:52 [20:14:35]1206 (1) - 0 [20:14:35]OFD Sender: Remove packet 166199 [20:14:35]ProducePacketName [20:14:35]name=ofd_packets/00166199 [20:14:35]NVStorageDeleteData [20:14:35]Write to MH i2c: 01 00 00 F1 83 74 [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: 01 07 00 F1 83 00 00 00 00 00 E4 0C 6B [20:14:35]RasterBufferAndPrint [20:14:35]line [20:14:35]line [20:14:35]line [20:14:35]line [20:14:35]line [20:14:35]written 0, free lines is 3319 [20:14:35]MH_Cut [20:14:35]Write to MH i2c: D1 01 00 F8 83 01 4D [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: D1 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: D1 01 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: D1 01 00 F8 83 00 4C [20:14:35]Write to MH i2c: 01 00 00 F9 83 7C [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:36]OFD Sender: No OFD packet to send [20:14:36]*** Cut start [20:14:36]*** Partial cut [20:14:36]*** CUTSNS_PIN = 1 [20:14:36]*** CUTSNS_PIN = 0 [20:14:36]*** Brake cut motor [20:14:36]Read from MH i2c: 01 [20:14:36]MH_I2C_Read... [20:14:36]*** Stop cut motor [20:14:36]*** Cut end [20:14:36]Read from MH i2c: 01 07 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: 01 07 00 F9 83 00 00 00 00 00 FF 0F 91 [20:14:36]process_action close_receipt done [20:14:36]requested_data is exist [20:14:36]produce_requested_data [20:14:36]requested_item fm.sn is exist - process it [20:14:36]wFMCommunicate request_size=4 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 11 00 00 [20:14:36]Write to MH i2c: E2 08 00 FA 83 80 11 00 00 00 00 00 00 F7 [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:37]Read from MH i2c: E2 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: E2 17 00 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: E2 17 00 FA 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [20:14:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:37]wFMCommunicate OK [20:14:37]requested_item fd.num is exist - process it [20:14:37]SAM_PROTO_GetFieldsCounters [20:14:37]wFMCommunicate request_size=4 [20:14:37]MH_SAM_APDU [20:14:37]CAPDU: 80 13 00 00 [20:14:37]Write to MH i2c: E2 08 00 FB 83 80 13 00 00 00 00 00 00 FA [20:14:37]Write i2c OK [20:14:37]MH_I2C_Read... [20:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:37]Read from MH i2c: E2 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: E2 62 00 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: E2 62 00 FB 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [20:14:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 37 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:37]wFMCommunicate OK [20:14:37]SAM_PROTO_GetFieldsCounters done [20:14:37]requested_item shift.num is exist - process it [20:14:37]requested_item shift.opened is exist - process it [20:14:37]req_shift_opened [20:14:37]FM_GetShiftState [20:14:37]SAM_PROTO_GetShiftState [20:14:37]wFMCommunicate request_size=4 [20:14:37]MH_SAM_APDU [20:14:37]CAPDU: 80 13 01 00 [20:14:37]Write to MH i2c: E2 08 00 FC 83 80 13 01 00 00 00 00 00 FC [20:14:37]Write i2c OK [20:14:37]MH_I2C_Read... [20:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:37]Read from MH i2c: E2 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: E2 0E 00 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: E2 0E 00 FC 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 05 [20:14:37]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:37]wFMCommunicate OK [20:14:37]SAM_PROTO_GetShiftState done [20:14:37]FM_GetShiftState done [20:14:37]req_shift_opened done [20:14:37]requested_item shift.open_date is exist - process it [20:14:37]req_shift_open_date [20:14:37]req_shift_open_date done [20:14:37]produce_requested_data done [20:14:37]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166199,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:14:37]process_action_free close_receipt [20:14:37]json_value_free [20:14:37]json_value_free done [20:14:37]process_json_proto returns [20:14:37]Send response to host [20:14:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166199,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:14:37]free response buf [20:14:37]execute_script done [20:14:37]execute_script returns [20:14:37]free content buf [20:14:37]Sock 6.Close socket [20:14:37]Sock 6.Thread stoped [20:14:40]accept exits with 5 [20:14:40]New connection [20:14:40]New thread 3066920292 created [20:14:40]Thread 3066776932 joined [20:14:40]Waiting for new connection... [20:14:40] Sock 5.Parse request [20:14:40]Sock 5.Check first char [20:14:40]Sock 5.First char is OK [20:14:40]request: POST /json_proto HTTP/1.0 [20:14:40]Method: POST [20:14:40]URL: /json_proto [20:14:40]Method is POST - this is cgi request [20:14:40]url: /json_proto [20:14:40]query_string will be loaded in cgi processing [20:14:40]execute_cgi json_proto POST (null) [20:14:40]execute_cgi path=json_proto method=POST [20:14:40]POST find Content-Length [20:14:40]Host: 172.17.53.195:8080 [20:14:40]Content-Length: 679 [20:14:40]Content-Type: application/json [20:14:40] [20:14:40]POST finish read [20:14:40]Found Content-Length = 679 [20:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 71.730, "sum" : 5465.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 5465.00, "payments": [ { "type": 0, "sum" : 5465.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:40]execute_script... [20:14: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)220768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 71.730, "sum" : 5465.83, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 5465.00, "payments": [ { "type": 0, "sum" : 5465.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:40]POST & json_proto [20:14:40]process_json_proto [20:14:40]json parsed OK: [20:14:40]protocol is kg_v1.0 [20:14:40]action value=close_receipt [20:14:40]process_action close_receipt [20:14:40]cmd_close_receipt [20:14:40]MH_GetDate [20:14:40]Write to MH i2c: F0 00 00 FD 83 6F [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 09 00 [20:14:40]MH_I2C_Read... [20:14:40]Read from MH i2c: F0 09 00 FD 83 00 44 B6 16 67 21 48 4A 65 07 [20:14:40]GetLastDocTimeStamp 1729541692 [20:14:40]current date 1729541700 [20:14:40]FM_GetShiftState [20:14:40]SAM_PROTO_GetShiftState [20:14:40]wFMCommunicate request_size=4 [20:14:40]MH_SAM_APDU [20:14:40]CAPDU: 80 13 01 00 [20:14:40]Write to MH i2c: E2 08 00 FE 83 80 13 01 00 00 00 00 00 FE [20:14:40]Write i2c OK [20:14:40]MH_I2C_Read... [20:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:41]Read from MH i2c: E2 [20:14:41]MH_I2C_Read... [20:14:41]Read from MH i2c: E2 0E 00 [20:14:41]MH_I2C_Read... [20:14:41]OFD Sender: No OFD packet to send [20:14:41]Read from MH i2c: E2 0E 00 FE 83 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 07 [20:14:41]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:41]wFMCommunicate OK [20:14:41]SAM_PROTO_GetShiftState done [20:14:41]FM_GetShiftState done [20:14:41]opened in 1729470944 [20:14:41]opened+sec_in_day 1729557344 [20:14:41]quantity*price = 546582 [20:14:41]sum+1 = 546584 [20:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.83 ИТОГО: 5465.00 Внесено: 6000.00 СДАЧА: 535.00 НСП 1% : 48.37 НДС 12% : 580.44 Наличными: 5465.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 311 21.10.2024 20:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166200 ФПД: 88456481942573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166200&fm=88456481942573&tin=02508201610067®Number=0000000000091764&sum=546500 [20:14:42]StoreToDocumentArchive [20:14:42]shift 535 fd 166200 [20:14:42]save to /storage/0535/doc_00166200 [20:14:42]save last doc name /storage/0535/doc_00166200 to /storage/kkm_last_doc_name [20:14:42]save OK [20:14:42]Clear old archive folders... [20:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:14:42]tlvbuf is 0188C410 [20:14:42]SAM_PROTO_ClearQueue [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 09 00 00 [20:14:42]Write to MH i2c: E2 08 00 0B 84 80 09 00 00 00 00 00 00 01 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 0B 84 00 90 00 03 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_ClearQueue done [20:14:42]KKMCreateOFDPacket [20:14:42]OFDProtocolAddRootSTLVToBuf [20:14:42]FM_MakeSignedData [20:14:42]FM_MakeSignedData [20:14:42]SAM_PROTO_SignData [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 01 02 [20:14:42]Write to MH i2c: E2 08 00 0C 84 80 0D 01 02 00 00 00 00 09 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 0C 84 00 90 00 04 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=255 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 18 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 57 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 56 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E2 00 00 00 00 07 04 06 00 C4 56 08 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 45 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 89 02 00 35 04 06 00 50 73 61 2F [20:14:42]Write to MH i2c: E2 02 01 0D 84 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 18 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 57 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 56 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E2 00 00 00 00 07 04 06 00 C4 56 08 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 45 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 89 02 00 35 04 06 00 50 73 61 2F 00 00 C7 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 0D 84 00 90 00 05 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=7 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 02 02 02 2C 2D [20:14:42]Write to MH i2c: E2 0A 00 0E 84 80 0D 02 02 02 00 2C 2D 00 00 69 [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 03 00 0E 84 00 90 00 06 [20:14:42]RAPDU: 90 00 [20:14:42]wFMCommunicate OK [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 0D 03 02 [20:14:42]Write to MH i2c: E2 08 00 0F 84 80 0D 03 02 00 00 00 00 0E [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0B 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 0B 00 0F 84 00 E2 FD 79 52 49 70 96 64 90 00 6C [20:14:42]RAPDU: E2 FD 79 52 49 70 96 64 90 00 [20:14:42]wFMCommunicate OK [20:14:42]SAM_PROTO_SignData done [20:14:42]FM_MakeSignedData done [20:14:42]CreateOFDProtocolMessage [20:14:42]wFMCommunicate request_size=4 [20:14:42]MH_SAM_APDU [20:14:42]CAPDU: 80 11 00 00 [20:14:42]Write to MH i2c: E2 08 00 10 84 80 11 00 00 00 00 00 00 0E [20:14:42]Write i2c OK [20:14:42]MH_I2C_Read... [20:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:42]Read from MH i2c: E2 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 [20:14:42]MH_I2C_Read... [20:14:42]Read from MH i2c: E2 17 00 10 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [20:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:43]wFMCommunicate OK [20:14:43]CreateOFDProtocolMessage done [20:14:43]OFDSenderStorePacket 166200 [20:14:43]StoreOFDPacket docnum=166200 [20:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D6 61 04 01 80 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 18 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 57 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 56 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E2 00 00 00 00 07 04 06 00 C4 56 08 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 45 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 89 02 00 35 04 06 00 50 73 61 2F 2C 2D E2 FD 79 52 49 70 96 64 [20:14:43]CheckFolder [20:14:43]dirname=/storage/ofd_packets [20:14:43]CheckFolder done [20:14:43]ProducePacketName [20:14:43]name=ofd_packets/00166200 [20:14:43]NVStorageSaveData ofd_packets/00166200 [20:14:43]File name is /storage/ofd_packets/00166200 [20:14:43]Write 298 bytes [20:14:43]NVStorageSaveData done [20:14:43]OFDSenderStorePacket done [20:14:43]KKMCreateOFDPacket done [20:14:43]NVStorageSaveData kkm_last_timestamp [20:14:43]File name is /storage/kkm_last_timestamp [20:14:43]Write 4 bytes [20:14:43]NVStorageSaveData done [20:14:43]ExternCall_PrintAddStr [20:14:43]wPrintStart [20:14:43]Write to MH i2c: 01 00 00 11 84 95 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 11 84 00 00 00 00 00 FF 0F AA [20:14:43]RasterBufferAndPrint [20:14:43]line Счет N : (1)220768 [20:14:43]line ИНН: 02508201610067 [20:14:43]line Контрольно-Кассовый Чек [20:14:43]line ПРОДАЖА [20:14:43]line ТРК (МРК, ГНК) : 21 [20:14:43]line Товар: 2710194210 [20:14:43]line ДТ-К-5 [20:14:43]line 71.730 * 76.20 [20:14:43]line = 5465.83 [20:14:43]line НДС 12% НСП 1% [20:14:43]line > о реализуемом товаре [20:14:43]line ОКРУГЛЕНИЕ: -0.83 [20:14:43]line ИТОГО: 5465.00 [20:14:43]line Внесено: 6000.00 [20:14:43]line СДАЧА: 535.00 [20:14:43]line НСП 1% : 48.37 [20:14:43]line НДС 12% : 580.44 [20:14:43]line Наличными: 5465.00 [20:14:43]line Безнал.: 0.00 [20:14:43]line Место: АЗС № 161 "Партнер Нефть" [20:14:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:14:43]line СНО: Общий режим [20:14:43]line Чек 311 21.10.2024 20:15 [20:14:43]line Смена: 535 ФФД: 1.0 [20:14:43]line ЗНМ: 0300000104 [20:14:43]line РНМ: 0000000000091764 [20:14:43]line Версия ККМ: 001 [20:14:43]line ФМ: 0000000000871759 [20:14:43]line ФД: 166200 [20:14:43]line ФПД: 88456481942573 [20:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166200&fm=88456481942573&tin=02508201610067®Number=0000000000091764&sum=546500 [20:14:43]written 0, free lines is 4095 [20:14:43]OFD Sender: Processing packet 166200 [packets to send 48, broken 47] [20:14:43]ProducePacketName [20:14:43]name=ofd_packets/00166200 [20:14:43]OFD Sender: To server: pG, [20:14:43]CommunicateWithHost lk.salyk.kg:30040 [20:14:43]ConnectInit lk.salyk.kg [20:14:43]Connected sock=9 [20:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 D6 61 04 01 80 E3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 18 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 17 57 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 56 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E5 12 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC E2 00 00 00 00 07 04 06 00 C4 56 08 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 45 B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 89 02 00 35 04 06 00 50 73 61 2F 2C 2D E2 FD 79 52 49 70 96 64 [20:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 29 62 47 00 BA AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 38 89 02 00 F4 03 04 00 B2 5C 16 67 B6 04 01 00 00 DE 20 0A 3E DD 01 0D E8 [20:14:43]CommunicateWithHost err = 0 [20:14:43]CheckOFDResponse [20:14:43]1017 (14) - 77093643461234 [20:14:43]1041 (16) - 0000000000871759 [20:14:43]1040 (4) - 166200 [20:14:43]1012 (4) - 21.10.2024 13:52 [20:14:43]1206 (1) - 0 [20:14:43]OFD Sender: Remove packet 166200 [20:14:43]ProducePacketName [20:14:43]name=ofd_packets/00166200 [20:14:43]NVStorageDeleteData [20:14:43]Write to MH i2c: 01 00 00 3C 84 C0 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: 01 07 00 3C 84 00 00 00 00 00 E8 0C BB [20:14:43]RasterBufferAndPrint [20:14:43]line [20:14:43]line [20:14:43]line [20:14:43]line [20:14:43]line [20:14:43]written 0, free lines is 3331 [20:14:43]MH_Cut [20:14:43]Write to MH i2c: D1 01 00 43 84 01 99 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 01 00 [20:14:43]MH_I2C_Read... [20:14:43]Read from MH i2c: D1 01 00 43 84 00 98 [20:14:43]Write to MH i2c: 01 00 00 44 84 C8 [20:14:43]Write i2c OK [20:14:43]MH_I2C_Read... [20:14:44]OFD Sender: No OFD packet to send [20:14:44]*** Cut start [20:14:44]*** Partial cut [20:14:44]*** CUTSNS_PIN = 1 [20:14:44]*** CUTSNS_PIN = 0 [20:14:44]*** Brake cut motor [20:14:44]Read from MH i2c: 01 [20:14:44]MH_I2C_Read... [20:14:44]*** Stop cut motor [20:14:44]*** Cut end [20:14:44]Read from MH i2c: 01 07 00 [20:14:44]MH_I2C_Read... [20:14:44]Read from MH i2c: 01 07 00 44 84 00 00 00 00 00 FF 0F DD [20:14:44]process_action close_receipt done [20:14:44]requested_data is exist [20:14:44]produce_requested_data [20:14:44]requested_item fm.sn is exist - process it [20:14:44]wFMCommunicate request_size=4 [20:14:44]MH_SAM_APDU [20:14:44]CAPDU: 80 11 00 00 [20:14:44]Write to MH i2c: E2 08 00 45 84 80 11 00 00 00 00 00 00 43 [20:14:44]Write i2c OK [20:14:44]MH_I2C_Read... [20:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:44]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 17 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 17 00 45 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [20:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:14:45]wFMCommunicate OK [20:14:45]requested_item fd.num is exist - process it [20:14:45]SAM_PROTO_GetFieldsCounters [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 13 00 00 [20:14:45]Write to MH i2c: E2 08 00 46 84 80 13 00 00 00 00 00 00 46 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 62 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 62 00 46 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [20:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 38 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:45]wFMCommunicate OK [20:14:45]SAM_PROTO_GetFieldsCounters done [20:14:45]requested_item shift.num is exist - process it [20:14:45]requested_item shift.opened is exist - process it [20:14:45]req_shift_opened [20:14:45]FM_GetShiftState [20:14:45]SAM_PROTO_GetShiftState [20:14:45]wFMCommunicate request_size=4 [20:14:45]MH_SAM_APDU [20:14:45]CAPDU: 80 13 01 00 [20:14:45]Write to MH i2c: E2 08 00 47 84 80 13 01 00 00 00 00 00 48 [20:14:45]Write i2c OK [20:14:45]MH_I2C_Read... [20:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:45]Read from MH i2c: E2 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 0E 00 [20:14:45]MH_I2C_Read... [20:14:45]Read from MH i2c: E2 0E 00 47 84 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 51 [20:14:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:14:45]wFMCommunicate OK [20:14:45]SAM_PROTO_GetShiftState done [20:14:45]FM_GetShiftState done [20:14:45]req_shift_opened done [20:14:45]requested_item shift.open_date is exist - process it [20:14:45]req_shift_open_date [20:14:45]req_shift_open_date done [20:14:45]produce_requested_data done [20:14:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166200,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:14:45]process_action_free close_receipt [20:14:45]json_value_free [20:14:45]json_value_free done [20:14:45]process_json_proto returns [20:14:45]Send response to host [20:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166200,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:14:45]free response buf [20:14:45]execute_script done [20:14:45]execute_script returns [20:14:45]free content buf [20:14:45]Sock 5.Close socket [20:14:45]Sock 5.Thread stoped [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:23]accept exits with 6 [20:16:23]New connection [20:16:23]New thread 3066776932 created [20:16:23]Thread 3066920292 joined [20:16:23]Waiting for new connection... [20:16:23] Sock 6.Parse request [20:16:23]Sock 6.Check first char [20:16:23]Sock 6.First char is OK [20:16:23]request: POST /json_proto HTTP/1.0 [20:16:23]Method: POST [20:16:23]URL: /json_proto [20:16:23]Method is POST - this is cgi request [20:16:23]url: /json_proto [20:16:23]query_string will be loaded in cgi processing [20:16:23]execute_cgi json_proto POST (null) [20:16:23]execute_cgi path=json_proto method=POST [20:16:23]POST find Content-Length [20:16:23]Host: 172.17.53.195:8080 [20:16:23]Content-Length: 677 [20:16:23]Content-Type: application/json [20:16:23] [20:16:23]POST finish read [20:16:23]Found Content-Length = 677 [20:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:23]execute_script... [20: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)220772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:23]POST & json_proto [20:16:23]process_json_proto [20:16:23]json parsed OK: [20:16:23]protocol is kg_v1.0 [20:16:23]action value=close_receipt [20:16:23]process_action close_receipt [20:16:23]cmd_close_receipt [20:16:23]MH_GetDate [20:16:23]Write to MH i2c: F0 00 00 48 84 BB [20:16:23]Write i2c OK [20:16:23]MH_I2C_Read... [20:16:23]Read from MH i2c: F0 [20:16:23]MH_I2C_Read... [20:16:23]Read from MH i2c: F0 09 00 [20:16:23]MH_I2C_Read... [20:16:23]Read from MH i2c: F0 09 00 48 84 00 AB B6 16 67 21 48 4A 65 BA [20:16:23]GetLastDocTimeStamp 1729541701 [20:16:23]current date 1729541803 [20:16:23]FM_GetShiftState [20:16:23]SAM_PROTO_GetShiftState [20:16:23]wFMCommunicate request_size=4 [20:16:23]MH_SAM_APDU [20:16:23]CAPDU: 80 13 01 00 [20:16:23]Write to MH i2c: E2 08 00 49 84 80 13 01 00 00 00 00 00 4A [20:16:23]Write i2c OK [20:16:23]MH_I2C_Read... [20:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:23]Read from MH i2c: E2 [20:16:23]MH_I2C_Read... [20:16:23]Read from MH i2c: E2 0E 00 [20:16:23]MH_I2C_Read... [20:16:23]Read from MH i2c: E2 0E 00 49 84 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 53 [20:16:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:16:23]wFMCommunicate OK [20:16:23]SAM_PROTO_GetShiftState done [20:16:23]FM_GetShiftState done [20:16:23]opened in 1729470944 [20:16:23]opened+sec_in_day 1729557344 [20:16:23]quantity*price = 60009 [20:16:23]sum+1 = 60010 [20:16:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 312 21.10.2024 20:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166201 ФПД: 28702706316395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166201&fm=28702706316395&tin=02508201610067®Number=0000000000091764&sum=60000 [20:16:25]StoreToDocumentArchive [20:16:25]shift 535 fd 166201 [20:16:25]save to /storage/0535/doc_00166201 [20:16:25]save last doc name /storage/0535/doc_00166201 to /storage/kkm_last_doc_name [20:16:25]save OK [20:16:25]Clear old archive folders... [20:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:16:25]tlvbuf is 01512F60 [20:16:25]SAM_PROTO_ClearQueue [20:16:25]wFMCommunicate request_size=4 [20:16:25]MH_SAM_APDU [20:16:25]CAPDU: 80 09 00 00 [20:16:25]Write to MH i2c: E2 08 00 56 84 80 09 00 00 00 00 00 00 4C [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:25]Read from MH i2c: E2 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 56 84 00 90 00 4E [20:16:25]RAPDU: 90 00 [20:16:25]wFMCommunicate OK [20:16:25]SAM_PROTO_ClearQueue done [20:16:25]KKMCreateOFDPacket [20:16:25]OFDProtocolAddRootSTLVToBuf [20:16:25]FM_MakeSignedData [20:16:25]FM_MakeSignedData [20:16:25]SAM_PROTO_SignData [20:16:25]wFMCommunicate request_size=4 [20:16:25]MH_SAM_APDU [20:16:25]CAPDU: 80 0D 01 02 [20:16:25]Write to MH i2c: E2 08 00 57 84 80 0D 01 02 00 00 00 00 54 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:25]Read from MH i2c: E2 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 57 84 00 90 00 4F [20:16:25]RAPDU: 90 00 [20:16:25]wFMCommunicate OK [20:16:25]wFMCommunicate request_size=255 [20:16:25]MH_SAM_APDU [20:16: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 AB B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 89 02 00 35 04 06 00 1A [20:16:25]Write to MH i2c: E2 02 01 58 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 AB B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 89 02 00 35 04 06 00 1A 00 00 D5 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:25]Read from MH i2c: E2 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 58 84 00 90 00 50 [20:16:25]RAPDU: 90 00 [20:16:25]wFMCommunicate OK [20:16:25]wFMCommunicate request_size=10 [20:16:25]MH_SAM_APDU [20:16:25]CAPDU: 80 0D 02 02 05 1A DE 9D 34 6B [20:16:25]Write to MH i2c: E2 0D 00 59 84 80 0D 02 02 05 00 1A DE 9D 34 6B 00 00 95 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:25]Read from MH i2c: E2 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 03 00 59 84 00 90 00 51 [20:16:25]RAPDU: 90 00 [20:16:25]wFMCommunicate OK [20:16:25]wFMCommunicate request_size=4 [20:16:25]MH_SAM_APDU [20:16:25]CAPDU: 80 0D 03 02 [20:16:25]Write to MH i2c: E2 08 00 5A 84 80 0D 03 02 00 00 00 00 59 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:25]Read from MH i2c: E2 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 0B 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 0B 00 5A 84 00 62 6C AB 9C 32 A1 EB 38 90 00 65 [20:16:25]RAPDU: 62 6C AB 9C 32 A1 EB 38 90 00 [20:16:25]wFMCommunicate OK [20:16:25]SAM_PROTO_SignData done [20:16:25]FM_MakeSignedData done [20:16:25]CreateOFDProtocolMessage [20:16:25]wFMCommunicate request_size=4 [20:16:25]MH_SAM_APDU [20:16:25]CAPDU: 80 11 00 00 [20:16:25]Write to MH i2c: E2 08 00 5B 84 80 11 00 00 00 00 00 00 59 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:25]Read from MH i2c: E2 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 17 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: E2 17 00 5B 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [20:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:16:25]wFMCommunicate OK [20:16:25]CreateOFDProtocolMessage done [20:16:25]OFDSenderStorePacket 166201 [20:16:25]StoreOFDPacket docnum=166201 [20:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 44 71 07 01 EA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 AB B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 89 02 00 35 04 06 00 1A 1A DE 9D 34 6B 62 6C AB 9C 32 A1 EB 38 [20:16:25]CheckFolder [20:16:25]dirname=/storage/ofd_packets [20:16:25]CheckFolder done [20:16:25]ProducePacketName [20:16:25]name=ofd_packets/00166201 [20:16:25]NVStorageSaveData ofd_packets/00166201 [20:16:25]File name is /storage/ofd_packets/00166201 [20:16:25]Write 301 bytes [20:16:25]NVStorageSaveData done [20:16:25]OFDSenderStorePacket done [20:16:25]KKMCreateOFDPacket done [20:16:25]NVStorageSaveData kkm_last_timestamp [20:16:25]File name is /storage/kkm_last_timestamp [20:16:25]Write 4 bytes [20:16:25]NVStorageSaveData done [20:16:25]ExternCall_PrintAddStr [20:16:25]wPrintStart [20:16:25]Write to MH i2c: 01 00 00 5C 84 E0 [20:16:25]Write i2c OK [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: 01 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: 01 07 00 [20:16:25]MH_I2C_Read... [20:16:25]Read from MH i2c: 01 07 00 5C 84 00 00 00 00 00 FF 0F F5 [20:16:25]RasterBufferAndPrint [20:16:25]line Счет N : (1)220772 [20:16:25]line ИНН: 02508201610067 [20:16:25]line Контрольно-Кассовый Чек [20:16:25]line ПРОДАЖА [20:16:25]line ТРК (МРК, ГНК) : 23 [20:16:25]line Товар: 2710124130 [20:16:25]line Аи-92-К-5 [20:16:25]line 8.970 * 66.90 [20:16:25]line = 600.09 [20:16:25]line НДС 12% НСП 1% [20:16:25]line > о реализуемом товаре [20:16:25]line ОКРУГЛЕНИЕ: -0.09 [20:16:25]line ИТОГО: 600.00 [20:16:25]line Внесено: 600.00 [20:16:25]line СДАЧА: 0.00 [20:16:25]line НСП 1% : 5.31 [20:16:25]line НДС 12% : 63.73 [20:16:25]line Наличными: 600.00 [20:16:25]line Безнал.: 0.00 [20:16:25]line Место: АЗС № 161 "Партнер Нефть" [20:16:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:16:25]line СНО: Общий режим [20:16:25]line Чек 312 21.10.2024 20:16 [20:16:25]line Смена: 535 ФФД: 1.0 [20:16:25]line ЗНМ: 0300000104 [20:16:25]line РНМ: 0000000000091764 [20:16:25]line Версия ККМ: 001 [20:16:25]line ФМ: 0000000000871759 [20:16:25]line ФД: 166201 [20:16:25]line ФПД: 28702706316395 [20:16:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T201643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166201&fm=28702706316395&tin=02508201610067®Number=0000000000091764&sum=60000 [20:16:25]OFD Sender: Processing packet 166201 [packets to send 48, broken 47] [20:16:25]ProducePacketName [20:16:25]name=ofd_packets/00166201 [20:16:25]OFD Sender: To server: pG, [20:16:25]CommunicateWithHost lk.salyk.kg:30040 [20:16:25]ConnectInit lk.salyk.kg [20:16:25]written 0, free lines is 4095 [20:16:25]Connected sock=7 [20: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 35 39 0F 01 00 00 44 71 07 01 EA 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 AB B6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 39 89 02 00 35 04 06 00 1A 1A DE 9D 34 6B 62 6C AB 9C 32 A1 EB 38 [20:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3E 20 47 00 34 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 35 39 10 04 04 00 39 89 02 00 F4 03 04 00 19 5D 16 67 B6 04 01 00 00 15 72 B4 6A DE ED 38 7E [20:16:26]CommunicateWithHost err = 0 [20:16:26]CheckOFDResponse [20:16:26]1017 (14) - 77093643461234 [20:16:26]1041 (16) - 0000000000871759 [20:16:26]1040 (4) - 166201 [20:16:26]1012 (4) - 21.10.2024 13:54 [20:16:26]1206 (1) - 0 [20:16:26]OFD Sender: Remove packet 166201 [20:16:26]ProducePacketName [20:16:26]name=ofd_packets/00166201 [20:16:26]NVStorageDeleteData [20:16:26]Write to MH i2c: 01 00 00 87 84 0B [20:16:26]Write i2c OK [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: 01 [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: 01 07 00 [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: 01 07 00 87 84 00 00 00 00 00 C7 0C E5 [20:16:26]RasterBufferAndPrint [20:16:26]line [20:16:26]line [20:16:26]line [20:16:26]line [20:16:26]line [20:16:26]written 0, free lines is 3281 [20:16:26]MH_Cut [20:16:26]Write to MH i2c: D1 01 00 8E 84 01 E4 [20:16:26]Write i2c OK [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: D1 [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: D1 01 00 [20:16:26]MH_I2C_Read... [20:16:26]Read from MH i2c: D1 01 00 8E 84 00 E3 [20:16:26]Write to MH i2c: 01 00 00 8F 84 13 [20:16:26]Write i2c OK [20:16:26]MH_I2C_Read... [20:16:26]OFD Sender: No OFD packet to send [20:16:27]*** Cut start [20:16:27]*** Partial cut [20:16:27]*** CUTSNS_PIN = 1 [20:16:27]*** CUTSNS_PIN = 0 [20:16:27]*** Brake cut motor [20:16:27]Read from MH i2c: 01 [20:16:27]MH_I2C_Read... [20:16:27]*** Stop cut motor [20:16:27]*** Cut end [20:16:27]Read from MH i2c: 01 07 00 [20:16:27]MH_I2C_Read... [20:16:27]Read from MH i2c: 01 07 00 8F 84 00 00 00 00 00 FF 0F 28 [20:16:27]process_action close_receipt done [20:16:27]requested_data is exist [20:16:27]produce_requested_data [20:16:27]requested_item fm.sn is exist - process it [20:16:27]wFMCommunicate request_size=4 [20:16:27]MH_SAM_APDU [20:16:27]CAPDU: 80 11 00 00 [20:16:27]Write to MH i2c: E2 08 00 90 84 80 11 00 00 00 00 00 00 8E [20:16:27]Write i2c OK [20:16:27]MH_I2C_Read... [20:16:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:27]Read from MH i2c: E2 [20:16:27]MH_I2C_Read... [20:16:27]Read from MH i2c: E2 17 00 [20:16:27]MH_I2C_Read... [20:16:27]Read from MH i2c: E2 17 00 90 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [20:16:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:16:27]wFMCommunicate OK [20:16:27]requested_item fd.num is exist - process it [20:16:27]SAM_PROTO_GetFieldsCounters [20:16:27]wFMCommunicate request_size=4 [20:16:27]MH_SAM_APDU [20:16:27]CAPDU: 80 13 00 00 [20:16:27]Write to MH i2c: E2 08 00 91 84 80 13 00 00 00 00 00 00 91 [20:16:27]Write i2c OK [20:16:27]MH_I2C_Read... [20:16:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:27]Read from MH i2c: E2 [20:16:27]MH_I2C_Read... [20:16:27]Read from MH i2c: E2 62 00 [20:16:27]MH_I2C_Read... [20:16:27]Read from MH i2c: E2 62 00 91 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [20: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 39 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:27]wFMCommunicate OK [20:16:27]SAM_PROTO_GetFieldsCounters done [20:16:27]requested_item shift.num is exist - process it [20:16:27]requested_item shift.opened is exist - process it [20:16:27]req_shift_opened [20:16:27]FM_GetShiftState [20:16:27]SAM_PROTO_GetShiftState [20:16:27]wFMCommunicate request_size=4 [20:16:27]MH_SAM_APDU [20:16:27]CAPDU: 80 13 01 00 [20:16:27]Write to MH i2c: E2 08 00 92 84 80 13 01 00 00 00 00 00 93 [20:16:27]Write i2c OK [20:16:27]MH_I2C_Read... [20:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:28]Read from MH i2c: E2 [20:16:28]MH_I2C_Read... [20:16:28]Read from MH i2c: E2 0E 00 [20:16:28]MH_I2C_Read... [20:16:28]Read from MH i2c: E2 0E 00 92 84 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9C [20:16:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:16:28]wFMCommunicate OK [20:16:28]SAM_PROTO_GetShiftState done [20:16:28]FM_GetShiftState done [20:16:28]req_shift_opened done [20:16:28]requested_item shift.open_date is exist - process it [20:16:28]req_shift_open_date [20:16:28]req_shift_open_date done [20:16:28]produce_requested_data done [20:16:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166201,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:16:28]process_action_free close_receipt [20:16:28]json_value_free [20:16:28]json_value_free done [20:16:28]process_json_proto returns [20:16:28]Send response to host [20:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166201,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:16:28]free response buf [20:16:28]execute_script done [20:16:28]execute_script returns [20:16:28]free content buf [20:16:28]Sock 6.Close socket [20:16:28]Sock 6.Thread stoped [20:16:31]OFD Sender: No OFD packet to send [20:16:36]OFD Sender: No OFD packet to send [20:16:41]OFD Sender: No OFD packet to send [20:16:46]OFD Sender: No OFD packet to send [20:16:51]OFD Sender: No OFD packet to send [20:16:56]OFD Sender: No OFD packet to send [20:17:01]OFD Sender: No OFD packet to send [20:17:06]OFD Sender: No OFD packet to send [20:17:11]OFD Sender: No OFD packet to send [20:17:16]OFD Sender: No OFD packet to send [20:17:21]OFD Sender: No OFD packet to send [20:17:26]OFD Sender: No OFD packet to send [20:17:31]OFD Sender: No OFD packet to send [20:17:36]OFD Sender: No OFD packet to send [20:17:41]OFD Sender: No OFD packet to send [20:17:46]OFD Sender: No OFD packet to send [20:17:51]OFD Sender: No OFD packet to send [20:17:56]OFD Sender: No OFD packet to send [20:18:01]OFD Sender: No OFD packet to send [20:18:06]OFD Sender: No OFD packet to send [20:18:11]OFD Sender: No OFD packet to send [20:18:16]OFD Sender: No OFD packet to send [20:18:21]OFD Sender: No OFD packet to send [20:18:26]OFD Sender: No OFD packet to send [20:18:31]OFD Sender: No OFD packet to send [20:18:36]OFD Sender: No OFD packet to send [20:18:41]OFD Sender: No OFD packet to send [20:18:46]OFD Sender: No OFD packet to send [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:21]OFD Sender: No OFD packet to send [20:20:26]OFD Sender: No OFD packet to send [20:20:31]OFD Sender: No OFD packet to send [20:20:36]OFD Sender: No OFD packet to send [20:20:41]OFD Sender: No OFD packet to send [20:20:46]OFD Sender: No OFD packet to send [20:20:51]OFD Sender: No OFD packet to send [20:20:56]OFD Sender: No OFD packet to send [20:21:01]OFD Sender: No OFD packet to send [20:21:06]OFD Sender: No OFD packet to send [20:21:11]OFD Sender: No OFD packet to send [20:21:16]OFD Sender: No OFD packet to send [20:21:21]OFD Sender: No OFD packet to send [20:21:26]OFD Sender: No OFD packet to send [20:21:31]OFD Sender: No OFD packet to send [20:21:36]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:11]accept exits with 5 [20:23:11]New connection [20:23:11]New thread 3066920292 created [20:23:11]Thread 3066776932 joined [20:23:11]Waiting for new connection... [20:23:11] Sock 5.Parse request [20:23:11]Sock 5.Check first char [20:23:11]Sock 5.First char is OK [20:23:11]request: POST /json_proto HTTP/1.0 [20:23:11]Method: POST [20:23:11]URL: /json_proto [20:23:11]Method is POST - this is cgi request [20:23:11]url: /json_proto [20:23:11]query_string will be loaded in cgi processing [20:23:11]execute_cgi json_proto POST (null) [20:23:11]execute_cgi path=json_proto method=POST [20:23:11]POST find Content-Length [20:23:11]Host: 172.17.53.195:8080 [20:23:11]Content-Length: 679 [20:23:11]Content-Type: application/json [20:23:11] [20:23:11]POST finish read [20:23:11]Found Content-Length = 679 [20:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:11]execute_script... [20:23: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)220773", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:11]POST & json_proto [20:23:11]process_json_proto [20:23:11]json parsed OK: [20:23:11]protocol is kg_v1.0 [20:23:11]action value=close_receipt [20:23:11]process_action close_receipt [20:23:11]cmd_close_receipt [20:23:11]MH_GetDate [20:23:11]Write to MH i2c: F0 00 00 93 84 06 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: F0 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: F0 09 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: F0 09 00 93 84 00 43 B8 16 67 21 48 4A 65 9F [20:23:11]GetLastDocTimeStamp 1729541803 [20:23:11]current date 1729542211 [20:23:11]FM_GetShiftState [20:23:11]SAM_PROTO_GetShiftState [20:23:11]wFMCommunicate request_size=4 [20:23:11]MH_SAM_APDU [20:23:11]CAPDU: 80 13 01 00 [20:23:11]Write to MH i2c: E2 08 00 94 84 80 13 01 00 00 00 00 00 95 [20:23:11]Write i2c OK [20:23:11]MH_I2C_Read... [20:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:11]Read from MH i2c: E2 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 0E 00 [20:23:11]MH_I2C_Read... [20:23:11]Read from MH i2c: E2 0E 00 94 84 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9E [20:23:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:23:11]wFMCommunicate OK [20:23:11]SAM_PROTO_GetShiftState done [20:23:11]FM_GetShiftState done [20:23:11]opened in 1729470944 [20:23:11]opened+sec_in_day 1729557344 [20:23:11]quantity*price = 100050 [20:23:11]sum+1 = 100052 [20:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 313 21.10.2024 20:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166202 ФПД: 80804247334332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202331&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166202&fm=80804247334332&tin=02508201610067®Number=0000000000091764&sum=100000 [20:23:12]StoreToDocumentArchive [20:23:12]shift 535 fd 166202 [20:23:12]save to /storage/0535/doc_00166202 [20:23:12]save last doc name /storage/0535/doc_00166202 to /storage/kkm_last_doc_name [20:23:12]save OK [20:23:12]Clear old archive folders... [20:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:23:12]tlvbuf is 0179A410 [20:23:12]SAM_PROTO_ClearQueue [20:23:12]wFMCommunicate request_size=4 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 09 00 00 [20:23:12]Write to MH i2c: E2 08 00 A1 84 80 09 00 00 00 00 00 00 97 [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 A1 84 00 90 00 99 [20:23:12]RAPDU: 90 00 [20:23:12]wFMCommunicate OK [20:23:12]SAM_PROTO_ClearQueue done [20:23:12]KKMCreateOFDPacket [20:23:12]OFDProtocolAddRootSTLVToBuf [20:23:12]FM_MakeSignedData [20:23:12]FM_MakeSignedData [20:23:12]SAM_PROTO_SignData [20:23:12]wFMCommunicate request_size=4 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 0D 01 02 [20:23:12]Write to MH i2c: E2 08 00 A2 84 80 0D 01 02 00 00 00 00 9F [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:12]Read from MH i2c: E2 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 [20:23:12]MH_I2C_Read... [20:23:12]Read from MH i2c: E2 03 00 A2 84 00 90 00 9A [20:23:12]RAPDU: 90 00 [20:23:12]wFMCommunicate OK [20:23:12]wFMCommunicate request_size=255 [20:23:12]MH_SAM_APDU [20:23:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 43 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 89 02 00 35 04 06 00 49 7D B4 75 [20:23:12]Write to MH i2c: E2 02 01 A3 84 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 43 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 89 02 00 35 04 06 00 49 7D B4 75 00 00 AA [20:23:12]Write i2c OK [20:23:12]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 03 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 03 00 A3 84 00 90 00 9B [20:23:13]RAPDU: 90 00 [20:23:13]wFMCommunicate OK [20:23:13]wFMCommunicate request_size=7 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 0D 02 02 02 6D BC [20:23:13]Write to MH i2c: E2 0A 00 A4 84 80 0D 02 02 02 00 6D BC 00 00 CF [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 03 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 03 00 A4 84 00 90 00 9C [20:23:13]RAPDU: 90 00 [20:23:13]wFMCommunicate OK [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 0D 03 02 [20:23:13]Write to MH i2c: E2 08 00 A5 84 80 0D 03 02 00 00 00 00 A4 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 0B 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 0B 00 A5 84 00 0A 04 31 E6 B2 52 07 C5 90 00 9A [20:23:13]RAPDU: 0A 04 31 E6 B2 52 07 C5 90 00 [20:23:13]wFMCommunicate OK [20:23:13]SAM_PROTO_SignData done [20:23:13]FM_MakeSignedData done [20:23:13]CreateOFDProtocolMessage [20:23:13]wFMCommunicate request_size=4 [20:23:13]MH_SAM_APDU [20:23:13]CAPDU: 80 11 00 00 [20:23:13]Write to MH i2c: E2 08 00 A6 84 80 11 00 00 00 00 00 00 A4 [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:13]Read from MH i2c: E2 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 17 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: E2 17 00 A6 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [20:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:23:13]wFMCommunicate OK [20:23:13]CreateOFDProtocolMessage done [20:23:13]OFDSenderStorePacket 166202 [20:23:13]StoreOFDPacket docnum=166202 [20:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FC FC 04 01 95 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 43 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 89 02 00 35 04 06 00 49 7D B4 75 6D BC 0A 04 31 E6 B2 52 07 C5 [20:23:13]CheckFolder [20:23:13]dirname=/storage/ofd_packets [20:23:13]CheckFolder done [20:23:13]ProducePacketName [20:23:13]name=ofd_packets/00166202 [20:23:13]NVStorageSaveData ofd_packets/00166202 [20:23:13]File name is /storage/ofd_packets/00166202 [20:23:13]Write 298 bytes [20:23:13]NVStorageSaveData done [20:23:13]OFDSenderStorePacket done [20:23:13]KKMCreateOFDPacket done [20:23:13]NVStorageSaveData kkm_last_timestamp [20:23:13]File name is /storage/kkm_last_timestamp [20:23:13]Write 4 bytes [20:23:13]NVStorageSaveData done [20:23:13]ExternCall_PrintAddStr [20:23:13]wPrintStart [20:23:13]Write to MH i2c: 01 00 00 A7 84 2B [20:23:13]Write i2c OK [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 [20:23:13]MH_I2C_Read... [20:23:13]Read from MH i2c: 01 07 00 A7 84 00 00 00 00 00 FF 0F 40 [20:23:13]RasterBufferAndPrint [20:23:13]line Счет N : (1)220773 [20:23:13]line ИНН: 02508201610067 [20:23:13]line Контрольно-Кассовый Чек [20:23:13]line ПРОДАЖА [20:23:13]line ТРК (МРК, ГНК) : 31 [20:23:13]line Товар: 2710194210 [20:23:13]line ДТ-К-5 [20:23:13]line 13.130 * 76.20 [20:23:13]line = 1000.51 [20:23:13]line НДС 12% НСП 1% [20:23:13]line > о реализуемом товаре [20:23:13]line ОКРУГЛЕНИЕ: -0.51 [20:23:13]line ИТОГО: 1000.00 [20:23:13]line Внесено: 1000.00 [20:23:13]line СДАЧА: 0.00 [20:23:13]line НСП 1% : 8.85 [20:23:13]line НДС 12% : 106.25 [20:23:13]line Наличными: 1000.00 [20:23:13]line Безнал.: 0.00 [20:23:13]line Место: АЗС № 161 "Партнер Нефть" [20:23:13]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:23:13]line СНО: Общий режим [20:23:13]line Чек 313 21.10.2024 20:23 [20:23:13]line Смена: 535 ФФД: 1.0 [20:23:13]line ЗНМ: 0300000104 [20:23:13]line РНМ: 0000000000091764 [20:23:13]line Версия ККМ: 001 [20:23:13]line ФМ: 0000000000871759 [20:23:13]line ФД: 166202 [20:23:13]line ФПД: 80804247334332 [20:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202331&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166202&fm=80804247334332&tin=02508201610067®Number=0000000000091764&sum=100000 [20:23:13]OFD Sender: Processing packet 166202 [packets to send 48, broken 47] [20:23:13]ProducePacketName [20:23:13]name=ofd_packets/00166202 [20:23:13]OFD Sender: To server: pG, [20:23:13]CommunicateWithHost lk.salyk.kg:30040 [20:23:13]ConnectInit lk.salyk.kg [20:23:13]written 0, free lines is 4095 [20:23:13]Connected sock=7 [20:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 FC FC 04 01 95 A0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 39 01 00 00 F4 03 04 00 43 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 89 02 00 35 04 06 00 49 7D B4 75 6D BC 0A 04 31 E6 B2 52 07 C5 [20:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 34 89 47 00 E7 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3A 89 02 00 F4 03 04 00 B1 5E 16 67 B6 04 01 00 00 1E 59 C8 E1 62 15 52 17 [20:23:13]CommunicateWithHost err = 0 [20:23:13]CheckOFDResponse [20:23:13]1017 (14) - 77093643461234 [20:23:13]1041 (16) - 0000000000871759 [20:23:13]1040 (4) - 166202 [20:23:13]1012 (4) - 21.10.2024 14:01 [20:23:13]1206 (1) - 0 [20:23:13]OFD Sender: Remove packet 166202 [20:23:13]ProducePacketName [20:23:13]name=ofd_packets/00166202 [20:23:13]NVStorageDeleteData [20:23:14]Write to MH i2c: 01 00 00 D2 84 56 [20:23:14]Write i2c OK [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: 01 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: 01 07 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: 01 07 00 D2 84 00 00 00 00 00 CB 0C 34 [20:23:14]RasterBufferAndPrint [20:23:14]line [20:23:14]line [20:23:14]line [20:23:14]line [20:23:14]line [20:23:14]written 0, free lines is 3281 [20:23:14]MH_Cut [20:23:14]Write to MH i2c: D1 01 00 D9 84 01 2F [20:23:14]Write i2c OK [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: D1 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: D1 01 00 [20:23:14]MH_I2C_Read... [20:23:14]Read from MH i2c: D1 01 00 D9 84 00 2E [20:23:14]Write to MH i2c: 01 00 00 DA 84 5E [20:23:14]Write i2c OK [20:23:14]MH_I2C_Read... [20:23:14]OFD Sender: No OFD packet to send [20:23:14]*** Cut start [20:23:14]*** Partial cut [20:23:14]*** CUTSNS_PIN = 1 [20:23:14]*** CUTSNS_PIN = 0 [20:23:15]*** Brake cut motor [20:23:15]Read from MH i2c: 01 [20:23:15]MH_I2C_Read... [20:23:15]*** Stop cut motor [20:23:15]*** Cut end [20:23:15]Read from MH i2c: 01 07 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: 01 07 00 DA 84 00 00 00 00 00 FF 0F 73 [20:23:15]process_action close_receipt done [20:23:15]requested_data is exist [20:23:15]produce_requested_data [20:23:15]requested_item fm.sn is exist - process it [20:23:15]wFMCommunicate request_size=4 [20:23:15]MH_SAM_APDU [20:23:15]CAPDU: 80 11 00 00 [20:23:15]Write to MH i2c: E2 08 00 DB 84 80 11 00 00 00 00 00 00 D9 [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:15]Read from MH i2c: E2 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 17 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 17 00 DB 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [20:23:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:23:15]wFMCommunicate OK [20:23:15]requested_item fd.num is exist - process it [20:23:15]SAM_PROTO_GetFieldsCounters [20:23:15]wFMCommunicate request_size=4 [20:23:15]MH_SAM_APDU [20:23:15]CAPDU: 80 13 00 00 [20:23:15]Write to MH i2c: E2 08 00 DC 84 80 13 00 00 00 00 00 00 DC [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:15]Read from MH i2c: E2 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 62 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 62 00 DC 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [20:23:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:15]wFMCommunicate OK [20:23:15]SAM_PROTO_GetFieldsCounters done [20:23:15]requested_item shift.num is exist - process it [20:23:15]requested_item shift.opened is exist - process it [20:23:15]req_shift_opened [20:23:15]FM_GetShiftState [20:23:15]SAM_PROTO_GetShiftState [20:23:15]wFMCommunicate request_size=4 [20:23:15]MH_SAM_APDU [20:23:15]CAPDU: 80 13 01 00 [20:23:15]Write to MH i2c: E2 08 00 DD 84 80 13 01 00 00 00 00 00 DE [20:23:15]Write i2c OK [20:23:15]MH_I2C_Read... [20:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:15]Read from MH i2c: E2 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 0E 00 [20:23:15]MH_I2C_Read... [20:23:15]Read from MH i2c: E2 0E 00 DD 84 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E7 [20:23:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:23:15]wFMCommunicate OK [20:23:15]SAM_PROTO_GetShiftState done [20:23:15]FM_GetShiftState done [20:23:15]req_shift_opened done [20:23:15]requested_item shift.open_date is exist - process it [20:23:15]req_shift_open_date [20:23:15]req_shift_open_date done [20:23:15]produce_requested_data done [20:23:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166202,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:23:15]process_action_free close_receipt [20:23:15]json_value_free [20:23:15]json_value_free done [20:23:15]process_json_proto returns [20:23:15]Send response to host [20:23:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166202,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:23:15]free response buf [20:23:15]execute_script done [20:23:15]execute_script returns [20:23:15]free content buf [20:23:15]Sock 5.Close socket [20:23:15]Sock 5.Thread stoped [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:06]accept exits with 6 [20:25:06]New connection [20:25:06]New thread 3066776932 created [20:25:06]Thread 3066920292 joined [20:25:06]Waiting for new connection... [20:25:06] Sock 6.Parse request [20:25:06]Sock 6.Check first char [20:25:06]Sock 6.First char is OK [20:25:06]request: POST /json_proto HTTP/1.0 [20:25:06]Method: POST [20:25:06]URL: /json_proto [20:25:06]Method is POST - this is cgi request [20:25:06]url: /json_proto [20:25:06]query_string will be loaded in cgi processing [20:25:06]execute_cgi json_proto POST (null) [20:25:06]execute_cgi path=json_proto method=POST [20:25:06]POST find Content-Length [20:25:06]Host: 172.17.53.195:8080 [20:25:06]Content-Length: 677 [20:25:06]Content-Type: application/json [20:25:06] [20:25:06]POST finish read [20:25:06]Found Content-Length = 677 [20:25:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:06]execute_script... [20:25:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.480, "sum" : 299.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 299.00, "payments": [ { "type": 0, "sum" : 299.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:06]POST & json_proto [20:25:06]process_json_proto [20:25:06]json parsed OK: [20:25:06]protocol is kg_v1.0 [20:25:06]action value=close_receipt [20:25:06]process_action close_receipt [20:25:06]cmd_close_receipt [20:25:06]MH_GetDate [20:25:06]Write to MH i2c: F0 00 00 DE 84 51 [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: F0 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: F0 09 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: F0 09 00 DE 84 00 B6 B8 16 67 21 48 4A 65 5D [20:25:06]GetLastDocTimeStamp 1729542211 [20:25:06]current date 1729542326 [20:25:06]FM_GetShiftState [20:25:06]SAM_PROTO_GetShiftState [20:25:06]wFMCommunicate request_size=4 [20:25:06]MH_SAM_APDU [20:25:06]CAPDU: 80 13 01 00 [20:25:06]Write to MH i2c: E2 08 00 DF 84 80 13 01 00 00 00 00 00 E0 [20:25:06]Write i2c OK [20:25:06]MH_I2C_Read... [20:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:06]Read from MH i2c: E2 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 0E 00 [20:25:06]MH_I2C_Read... [20:25:06]Read from MH i2c: E2 0E 00 DF 84 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E9 [20:25:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:25:06]wFMCommunicate OK [20:25:06]SAM_PROTO_GetShiftState done [20:25:06]FM_GetShiftState done [20:25:06]opened in 1729470944 [20:25:06]opened+sec_in_day 1729557344 [20:25:06]quantity*price = 29971 [20:25:06]sum+1 = 29972 [20:25:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 299.00 Внесено: 300.00 СДАЧА: 1.00 НСП 1% : 2.65 НДС 12% : 31.83 Наличными: 299.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 314 21.10.2024 20:25 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166203 ФПД: 63661136857739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202526&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166203&fm=63661136857739&tin=02508201610067®Number=0000000000091764&sum=29900 [20:25:07]StoreToDocumentArchive [20:25:07]shift 535 fd 166203 [20:25:07]save to /storage/0535/doc_00166203 [20:25:07]save last doc name /storage/0535/doc_00166203 to /storage/kkm_last_doc_name [20:25:07]save OK [20:25:07]Clear old archive folders... [20:25:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:07]tlvbuf is 0186B040 [20:25:07]SAM_PROTO_ClearQueue [20:25:07]wFMCommunicate request_size=4 [20:25:07]MH_SAM_APDU [20:25:07]CAPDU: 80 09 00 00 [20:25:07]Write to MH i2c: E2 08 00 EC 84 80 09 00 00 00 00 00 00 E2 [20:25:07]Write i2c OK [20:25:07]MH_I2C_Read... [20:25:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:07]Read from MH i2c: E2 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: E2 03 00 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: E2 03 00 EC 84 00 90 00 E4 [20:25:07]RAPDU: 90 00 [20:25:07]wFMCommunicate OK [20:25:07]SAM_PROTO_ClearQueue done [20:25:07]KKMCreateOFDPacket [20:25:07]OFDProtocolAddRootSTLVToBuf [20:25:07]FM_MakeSignedData [20:25:07]FM_MakeSignedData [20:25:07]SAM_PROTO_SignData [20:25:07]wFMCommunicate request_size=4 [20:25:07]MH_SAM_APDU [20:25:07]CAPDU: 80 0D 01 02 [20:25:07]Write to MH i2c: E2 08 00 ED 84 80 0D 01 02 00 00 00 00 EA [20:25:07]Write i2c OK [20:25:07]MH_I2C_Read... [20:25:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:07]Read from MH i2c: E2 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: E2 03 00 [20:25:07]MH_I2C_Read... [20:25:07]Read from MH i2c: E2 03 00 ED 84 00 90 00 E5 [20:25:07]RAPDU: 90 00 [20:25:07]wFMCommunicate OK [20:25:07]wFMCommunicate request_size=255 [20:25:07]MH_SAM_APDU [20:25: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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 01 00 00 F4 03 04 00 B6 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 89 02 00 35 04 06 00 39 [20:25:07]Write to MH i2c: E2 02 01 EE 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 01 00 00 F4 03 04 00 B6 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 89 02 00 35 04 06 00 39 00 00 93 [20:25:07]Write i2c OK [20:25:07]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 EE 84 00 90 00 E6 [20:25:08]RAPDU: 90 00 [20:25:08]wFMCommunicate OK [20:25:08]wFMCommunicate request_size=10 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 0D 02 02 05 E6 43 72 CA 8B [20:25:08]Write to MH i2c: E2 0D 00 EF 84 80 0D 02 02 05 00 E6 43 72 CA 8B 00 00 E7 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 03 00 EF 84 00 90 00 E7 [20:25:08]RAPDU: 90 00 [20:25:08]wFMCommunicate OK [20:25:08]wFMCommunicate request_size=4 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 0D 03 02 [20:25:08]Write to MH i2c: E2 08 00 F0 84 80 0D 03 02 00 00 00 00 EF [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 0B 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 0B 00 F0 84 00 C9 26 D9 D0 2C 58 E2 BF 90 00 AD [20:25:08]RAPDU: C9 26 D9 D0 2C 58 E2 BF 90 00 [20:25:08]wFMCommunicate OK [20:25:08]SAM_PROTO_SignData done [20:25:08]FM_MakeSignedData done [20:25:08]CreateOFDProtocolMessage [20:25:08]wFMCommunicate request_size=4 [20:25:08]MH_SAM_APDU [20:25:08]CAPDU: 80 11 00 00 [20:25:08]Write to MH i2c: E2 08 00 F1 84 80 11 00 00 00 00 00 00 EF [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:08]Read from MH i2c: E2 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 17 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: E2 17 00 F1 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [20:25:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:25:08]wFMCommunicate OK [20:25:08]CreateOFDProtocolMessage done [20:25:08]OFDSenderStorePacket 166203 [20:25:08]StoreOFDPacket docnum=166203 [20:25:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 30 07 01 F5 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 01 00 00 F4 03 04 00 B6 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 89 02 00 35 04 06 00 39 E6 43 72 CA 8B C9 26 D9 D0 2C 58 E2 BF [20:25:08]CheckFolder [20:25:08]dirname=/storage/ofd_packets [20:25:08]CheckFolder done [20:25:08]ProducePacketName [20:25:08]name=ofd_packets/00166203 [20:25:08]NVStorageSaveData ofd_packets/00166203 [20:25:08]File name is /storage/ofd_packets/00166203 [20:25:08]Write 301 bytes [20:25:08]NVStorageSaveData done [20:25:08]OFDSenderStorePacket done [20:25:08]KKMCreateOFDPacket done [20:25:08]NVStorageSaveData kkm_last_timestamp [20:25:08]File name is /storage/kkm_last_timestamp [20:25:08]Write 4 bytes [20:25:08]NVStorageSaveData done [20:25:08]ExternCall_PrintAddStr [20:25:08]wPrintStart [20:25:08]Write to MH i2c: 01 00 00 F2 84 76 [20:25:08]Write i2c OK [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: 01 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: 01 07 00 [20:25:08]MH_I2C_Read... [20:25:08]Read from MH i2c: 01 07 00 F2 84 00 00 00 00 00 FF 0F 8B [20:25:08]RasterBufferAndPrint [20:25:08]line Счет N : (1)220774 [20:25:08]line ИНН: 02508201610067 [20:25:08]line Контрольно-Кассовый Чек [20:25:08]line ПРОДАЖА [20:25:08]line ТРК (МРК, ГНК) : 13 [20:25:08]line Товар: 2710124130 [20:25:08]line Аи-92-К-5 [20:25:08]line 4.480 * 66.90 [20:25:08]line = 299.71 [20:25:08]line НДС 12% НСП 1% [20:25:08]line > о реализуемом товаре [20:25:08]line ОКРУГЛЕНИЕ: -0.71 [20:25:08]line ИТОГО: 299.00 [20:25:08]line Внесено: 300.00 [20:25:08]line СДАЧА: 1.00 [20:25:08]line НСП 1% : 2.65 [20:25:08]line НДС 12% : 31.83 [20:25:08]line Наличными: 299.00 [20:25:08]line Безнал.: 0.00 [20:25:08]line Место: АЗС № 161 "Партнер Нефть" [20:25:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:25:08]line СНО: Общий режим [20:25:08]line Чек 314 21.10.2024 20:25 [20:25:08]line Смена: 535 ФФД: 1.0 [20:25:08]line ЗНМ: 0300000104 [20:25:08]line РНМ: 0000000000091764 [20:25:08]line Версия ККМ: 001 [20:25:08]line ФМ: 0000000000871759 [20:25:08]line ФД: 166203 [20:25:08]line ФПД: 63661136857739 [20:25:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T202526&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166203&fm=63661136857739&tin=02508201610067®Number=0000000000091764&sum=29900 [20:25:08]OFD Sender: Processing packet 166203 [packets to send 48, broken 47] [20:25:08]ProducePacketName [20:25:08]name=ofd_packets/00166203 [20:25:08]OFD Sender: To server: pG, [20:25:08]CommunicateWithHost lk.salyk.kg:30040 [20:25:08]ConnectInit lk.salyk.kg [20:25:08]written 0, free lines is 4095 [20:25:08]Connected sock=7 [20:25:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E4 30 07 01 F5 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 80 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6F 0C 00 00 00 00 07 04 06 00 CC 74 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 01 00 00 F4 03 04 00 B6 B8 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3B 89 02 00 35 04 06 00 39 E6 43 72 CA 8B C9 26 D9 D0 2C 58 E2 BF [20:25:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A5 1D 47 00 32 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 35 39 10 04 04 00 3B 89 02 00 F4 03 04 00 24 5F 16 67 B6 04 01 00 00 A5 3E 61 60 16 83 86 C5 [20:25:08]CommunicateWithHost err = 0 [20:25:08]CheckOFDResponse [20:25:08]1017 (14) - 77093643461234 [20:25:08]1041 (16) - 0000000000871759 [20:25:08]1040 (4) - 166203 [20:25:08]1012 (4) - 21.10.2024 14:03 [20:25:08]1206 (1) - 0 [20:25:08]OFD Sender: Remove packet 166203 [20:25:08]ProducePacketName [20:25:08]name=ofd_packets/00166203 [20:25:08]NVStorageDeleteData [20:25:09]Write to MH i2c: 01 00 00 1D 85 A2 [20:25:09]Write i2c OK [20:25:09]MH_I2C_Read... [20:25:09]Read from MH i2c: 01 [20:25:09]MH_I2C_Read... [20:25:09]Read from MH i2c: 01 07 00 [20:25:09]MH_I2C_Read... [20:25:09]Read from MH i2c: 01 07 00 1D 85 00 00 00 00 00 DA 0C 8F [20:25:09]RasterBufferAndPrint [20:25:09]line [20:25:09]line [20:25:09]line [20:25:09]line [20:25:09]line [20:25:09]written 0, free lines is 3298 [20:25:09]MH_Cut [20:25:09]Write to MH i2c: D1 01 00 24 85 01 7B [20:25:09]Write i2c OK [20:25:09]MH_I2C_Read... [20:25:09]Read from MH i2c: D1 [20:25:09]MH_I2C_Read... [20:25:09]Read from MH i2c: D1 01 00 [20:25:09]MH_I2C_Read... [20:25:09]Read from MH i2c: D1 01 00 24 85 00 7A [20:25:09]Write to MH i2c: 01 00 00 25 85 AA [20:25:09]Write i2c OK [20:25:09]MH_I2C_Read... [20:25:09]OFD Sender: No OFD packet to send [20:25:09]*** Cut start [20:25:09]*** Partial cut [20:25:09]*** CUTSNS_PIN = 1 [20:25:09]*** CUTSNS_PIN = 0 [20:25:10]*** Brake cut motor [20:25:10]Read from MH i2c: 01 [20:25:10]MH_I2C_Read... [20:25:10]*** Stop cut motor [20:25:10]*** Cut end [20:25:10]Read from MH i2c: 01 07 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: 01 07 00 25 85 00 00 00 00 00 FF 0F BF [20:25:10]process_action close_receipt done [20:25:10]requested_data is exist [20:25:10]produce_requested_data [20:25:10]requested_item fm.sn is exist - process it [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 11 00 00 [20:25:10]Write to MH i2c: E2 08 00 26 85 80 11 00 00 00 00 00 00 25 [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 17 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 17 00 26 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [20:25:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:25:10]wFMCommunicate OK [20:25:10]requested_item fd.num is exist - process it [20:25:10]SAM_PROTO_GetFieldsCounters [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 13 00 00 [20:25:10]Write to MH i2c: E2 08 00 27 85 80 13 00 00 00 00 00 00 28 [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 62 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 62 00 27 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [20:25:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:10]wFMCommunicate OK [20:25:10]SAM_PROTO_GetFieldsCounters done [20:25:10]requested_item shift.num is exist - process it [20:25:10]requested_item shift.opened is exist - process it [20:25:10]req_shift_opened [20:25:10]FM_GetShiftState [20:25:10]SAM_PROTO_GetShiftState [20:25:10]wFMCommunicate request_size=4 [20:25:10]MH_SAM_APDU [20:25:10]CAPDU: 80 13 01 00 [20:25:10]Write to MH i2c: E2 08 00 28 85 80 13 01 00 00 00 00 00 2A [20:25:10]Write i2c OK [20:25:10]MH_I2C_Read... [20:25:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:10]Read from MH i2c: E2 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 0E 00 [20:25:10]MH_I2C_Read... [20:25:10]Read from MH i2c: E2 0E 00 28 85 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 33 [20:25:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:25:10]wFMCommunicate OK [20:25:10]SAM_PROTO_GetShiftState done [20:25:10]FM_GetShiftState done [20:25:10]req_shift_opened done [20:25:10]requested_item shift.open_date is exist - process it [20:25:10]req_shift_open_date [20:25:10]req_shift_open_date done [20:25:10]produce_requested_data done [20:25:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166203,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:25:10]process_action_free close_receipt [20:25:10]json_value_free [20:25:10]json_value_free done [20:25:10]process_json_proto returns [20:25:10]Send response to host [20:25:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166203,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:25:10]free response buf [20:25:10]execute_script done [20:25:10]execute_script returns [20:25:10]free content buf [20:25:10]Sock 6.Close socket [20:25:10]Sock 6.Thread stoped [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27: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:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:08]accept exits with 5 [20:31:08]New connection [20:31:08]New thread 3066920292 created [20:31:08]Thread 3066776932 joined [20:31:08]Waiting for new connection... [20:31:08] Sock 5.Parse request [20:31:08]Sock 5.Check first char [20:31:08]Sock 5.First char is OK [20:31:08]request: POST /json_proto HTTP/1.0 [20:31:08]Method: POST [20:31:08]URL: /json_proto [20:31:08]Method is POST - this is cgi request [20:31:08]url: /json_proto [20:31:08]query_string will be loaded in cgi processing [20:31:08]execute_cgi json_proto POST (null) [20:31:08]execute_cgi path=json_proto method=POST [20:31:08]POST find Content-Length [20:31:08]Host: 172.17.53.195:8080 [20:31:08]Content-Length: 678 [20:31:08]Content-Type: application/json [20:31:08] [20:31:08]POST finish read [20:31:08]Found Content-Length = 678 [20:31:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:08]execute_script... [20:31: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)220776", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:08]POST & json_proto [20:31:08]process_json_proto [20:31:08]json parsed OK: [20:31:08]protocol is kg_v1.0 [20:31:08]action value=close_receipt [20:31:08]process_action close_receipt [20:31:08]cmd_close_receipt [20:31:08]MH_GetDate [20:31:08]Write to MH i2c: F0 00 00 29 85 9D [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: F0 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: F0 09 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: F0 09 00 29 85 00 20 BA 16 67 21 48 4A 65 15 [20:31:08]GetLastDocTimeStamp 1729542326 [20:31:08]current date 1729542688 [20:31:08]FM_GetShiftState [20:31:08]SAM_PROTO_GetShiftState [20:31:08]wFMCommunicate request_size=4 [20:31:08]MH_SAM_APDU [20:31:08]CAPDU: 80 13 01 00 [20:31:08]Write to MH i2c: E2 08 00 2A 85 80 13 01 00 00 00 00 00 2C [20:31:08]Write i2c OK [20:31:08]MH_I2C_Read... [20:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:08]Read from MH i2c: E2 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 0E 00 [20:31:08]MH_I2C_Read... [20:31:08]Read from MH i2c: E2 0E 00 2A 85 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 35 [20:31:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:31:08]wFMCommunicate OK [20:31:08]SAM_PROTO_GetShiftState done [20:31:08]FM_GetShiftState done [20:31:08]opened in 1729470944 [20:31:08]opened+sec_in_day 1729557344 [20:31:08]quantity*price = 80012 [20:31:08]sum+1 = 80013 [20:31:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 315 21.10.2024 20:31 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166204 ФПД: 93270228375631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203128&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166204&fm=93270228375631&tin=02508201610067®Number=0000000000091764&sum=80000 [20:31:09]StoreToDocumentArchive [20:31:09]shift 535 fd 166204 [20:31:09]save to /storage/0535/doc_00166204 [20:31:09]save last doc name /storage/0535/doc_00166204 to /storage/kkm_last_doc_name [20:31:09]save OK [20:31:09]Clear old archive folders... [20:31:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:09]tlvbuf is 0186B400 [20:31:09]SAM_PROTO_ClearQueue [20:31:09]wFMCommunicate request_size=4 [20:31:09]MH_SAM_APDU [20:31:09]CAPDU: 80 09 00 00 [20:31:09]Write to MH i2c: E2 08 00 37 85 80 09 00 00 00 00 00 00 2E [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:09]Read from MH i2c: E2 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 37 85 00 90 00 30 [20:31:09]RAPDU: 90 00 [20:31:09]wFMCommunicate OK [20:31:09]SAM_PROTO_ClearQueue done [20:31:09]KKMCreateOFDPacket [20:31:09]OFDProtocolAddRootSTLVToBuf [20:31:09]FM_MakeSignedData [20:31:09]FM_MakeSignedData [20:31:09]SAM_PROTO_SignData [20:31:09]wFMCommunicate request_size=4 [20:31:09]MH_SAM_APDU [20:31:09]CAPDU: 80 0D 01 02 [20:31:09]Write to MH i2c: E2 08 00 38 85 80 0D 01 02 00 00 00 00 36 [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:09]Read from MH i2c: E2 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 [20:31:09]MH_I2C_Read... [20:31:09]Read from MH i2c: E2 03 00 38 85 00 90 00 31 [20:31:09]RAPDU: 90 00 [20:31:09]wFMCommunicate OK [20:31:09]wFMCommunicate request_size=255 [20:31:09]MH_SAM_APDU [20: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 20 BA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 89 02 00 35 04 06 00 54 [20:31:09]Write to MH i2c: E2 02 01 39 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 20 BA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 89 02 00 35 04 06 00 54 00 00 7F [20:31:09]Write i2c OK [20:31:09]MH_I2C_Read... [20:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:10]Read from MH i2c: E2 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 03 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 03 00 39 85 00 90 00 32 [20:31:10]RAPDU: 90 00 [20:31:10]wFMCommunicate OK [20:31:10]wFMCommunicate request_size=10 [20:31:10]MH_SAM_APDU [20:31:10]CAPDU: 80 0D 02 02 05 D4 2A D4 98 4F [20:31:10]Write to MH i2c: E2 0D 00 3A 85 80 0D 02 02 05 00 D4 2A D4 98 4F 00 00 FC [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:10]Read from MH i2c: E2 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 03 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 03 00 3A 85 00 90 00 33 [20:31:10]RAPDU: 90 00 [20:31:10]wFMCommunicate OK [20:31:10]wFMCommunicate request_size=4 [20:31:10]MH_SAM_APDU [20:31:10]CAPDU: 80 0D 03 02 [20:31:10]Write to MH i2c: E2 08 00 3B 85 80 0D 03 02 00 00 00 00 3B [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:10]Read from MH i2c: E2 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 0B 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 0B 00 3B 85 00 4B 88 F7 44 D4 12 6E FD 90 00 9B [20:31:10]RAPDU: 4B 88 F7 44 D4 12 6E FD 90 00 [20:31:10]wFMCommunicate OK [20:31:10]SAM_PROTO_SignData done [20:31:10]FM_MakeSignedData done [20:31:10]CreateOFDProtocolMessage [20:31:10]wFMCommunicate request_size=4 [20:31:10]MH_SAM_APDU [20:31:10]CAPDU: 80 11 00 00 [20:31:10]Write to MH i2c: E2 08 00 3C 85 80 11 00 00 00 00 00 00 3B [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:10]Read from MH i2c: E2 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 17 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: E2 17 00 3C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 93 [20:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:31:10]wFMCommunicate OK [20:31:10]CreateOFDProtocolMessage done [20:31:10]OFDSenderStorePacket 166204 [20:31:10]StoreOFDPacket docnum=166204 [20:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A 98 07 01 7B 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 20 BA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 89 02 00 35 04 06 00 54 D4 2A D4 98 4F 4B 88 F7 44 D4 12 6E FD [20:31:10]CheckFolder [20:31:10]dirname=/storage/ofd_packets [20:31:10]CheckFolder done [20:31:10]ProducePacketName [20:31:10]name=ofd_packets/00166204 [20:31:10]NVStorageSaveData ofd_packets/00166204 [20:31:10]File name is /storage/ofd_packets/00166204 [20:31:10]Write 301 bytes [20:31:10]NVStorageSaveData done [20:31:10]OFDSenderStorePacket done [20:31:10]KKMCreateOFDPacket done [20:31:10]NVStorageSaveData kkm_last_timestamp [20:31:10]File name is /storage/kkm_last_timestamp [20:31:10]Write 4 bytes [20:31:10]NVStorageSaveData done [20:31:10]ExternCall_PrintAddStr [20:31:10]wPrintStart [20:31:10]Write to MH i2c: 01 00 00 3D 85 C2 [20:31:10]Write i2c OK [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: 01 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: 01 07 00 [20:31:10]MH_I2C_Read... [20:31:10]Read from MH i2c: 01 07 00 3D 85 00 00 00 00 00 FF 0F D7 [20:31:10]RasterBufferAndPrint [20:31:10]line Счет N : (1)220776 [20:31:10]line ИНН: 02508201610067 [20:31:10]line Контрольно-Кассовый Чек [20:31:10]line ПРОДАЖА [20:31:10]line ТРК (МРК, ГНК) : 43 [20:31:10]line Товар: 2710124130 [20:31:10]line Аи-92-К-5 [20:31:10]line 11.960 * 66.90 [20:31:10]line = 800.12 [20:31:10]line НДС 12% НСП 1% [20:31:10]line > о реализуемом товаре [20:31:10]line ОКРУГЛЕНИЕ: -0.12 [20:31:10]line ИТОГО: 800.00 [20:31:10]line Внесено: 800.00 [20:31:10]line СДАЧА: 0.00 [20:31:10]line НСП 1% : 7.08 [20:31:10]line НДС 12% : 84.97 [20:31:10]line Наличными: 800.00 [20:31:10]line Безнал.: 0.00 [20:31:10]line Место: АЗС № 161 "Партнер Нефть" [20:31:10]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:31:10]line СНО: Общий режим [20:31:10]line Чек 315 21.10.2024 20:31 [20:31:10]line Смена: 535 ФФД: 1.0 [20:31:10]line ЗНМ: 0300000104 [20:31:10]line РНМ: 0000000000091764 [20:31:10]line Версия ККМ: 001 [20:31:10]line ФМ: 0000000000871759 [20:31:10]line ФД: 166204 [20:31:10]line ФПД: 93270228375631 [20:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203128&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166204&fm=93270228375631&tin=02508201610067®Number=0000000000091764&sum=80000 [20:31:10]OFD Sender: Processing packet 166204 [packets to send 48, broken 47] [20:31:10]ProducePacketName [20:31:10]name=ofd_packets/00166204 [20:31:10]OFD Sender: To server: pG, [20:31:10]CommunicateWithHost lk.salyk.kg:30040 [20:31:10]ConnectInit lk.salyk.kg [20:31:10]written 0, free lines is 4095 [20:31:10]Connected sock=9 [20:31:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7A 98 07 01 7B 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 20 BA 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 89 02 00 35 04 06 00 54 D4 2A D4 98 4F 4B 88 F7 44 D4 12 6E FD [20:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 AD F1 47 00 CF 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3C 89 02 00 F4 03 04 00 8E 60 16 67 B6 04 01 00 00 E3 46 B2 37 17 D7 0F B7 [20:31:11]CommunicateWithHost err = 0 [20:31:11]CheckOFDResponse [20:31:11]1017 (14) - 77093643461234 [20:31:11]1041 (16) - 0000000000871759 [20:31:11]1040 (4) - 166204 [20:31:11]1012 (4) - 21.10.2024 14:09 [20:31:11]1206 (1) - 0 [20:31:11]OFD Sender: Remove packet 166204 [20:31:11]ProducePacketName [20:31:11]name=ofd_packets/00166204 [20:31:11]NVStorageDeleteData [20:31:11]Write to MH i2c: 01 00 00 68 85 ED [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 07 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: 01 07 00 68 85 00 00 00 00 00 C8 0C C8 [20:31:11]RasterBufferAndPrint [20:31:11]line [20:31:11]line [20:31:11]line [20:31:11]line [20:31:11]line [20:31:11]written 0, free lines is 3279 [20:31:11]MH_Cut [20:31:11]Write to MH i2c: D1 01 00 6F 85 01 C6 [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: D1 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: D1 01 00 [20:31:11]MH_I2C_Read... [20:31:11]Read from MH i2c: D1 01 00 6F 85 00 C5 [20:31:11]Write to MH i2c: 01 00 00 70 85 F5 [20:31:11]Write i2c OK [20:31:11]MH_I2C_Read... [20:31:11]OFD Sender: No OFD packet to send [20:31:11]*** Cut start [20:31:11]*** Partial cut [20:31:11]*** CUTSNS_PIN = 1 [20:31:12]*** CUTSNS_PIN = 0 [20:31:12]*** Brake cut motor [20:31:12]Read from MH i2c: 01 [20:31:12]MH_I2C_Read... [20:31:12]*** Stop cut motor [20:31:12]*** Cut end [20:31:12]Read from MH i2c: 01 07 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: 01 07 00 70 85 00 00 00 00 00 FF 0F 0A [20:31:12]process_action close_receipt done [20:31:12]requested_data is exist [20:31:12]produce_requested_data [20:31:12]requested_item fm.sn is exist - process it [20:31:12]wFMCommunicate request_size=4 [20:31:12]MH_SAM_APDU [20:31:12]CAPDU: 80 11 00 00 [20:31:12]Write to MH i2c: E2 08 00 71 85 80 11 00 00 00 00 00 00 70 [20:31:12]Write i2c OK [20:31:12]MH_I2C_Read... [20:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:12]Read from MH i2c: E2 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 17 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 17 00 71 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C8 [20:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:31:12]wFMCommunicate OK [20:31:12]requested_item fd.num is exist - process it [20:31:12]SAM_PROTO_GetFieldsCounters [20:31:12]wFMCommunicate request_size=4 [20:31:12]MH_SAM_APDU [20:31:12]CAPDU: 80 13 00 00 [20:31:12]Write to MH i2c: E2 08 00 72 85 80 13 00 00 00 00 00 00 73 [20:31:12]Write i2c OK [20:31:12]MH_I2C_Read... [20:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:12]Read from MH i2c: E2 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 62 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 62 00 72 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [20:31:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:12]wFMCommunicate OK [20:31:12]SAM_PROTO_GetFieldsCounters done [20:31:12]requested_item shift.num is exist - process it [20:31:12]requested_item shift.opened is exist - process it [20:31:12]req_shift_opened [20:31:12]FM_GetShiftState [20:31:12]SAM_PROTO_GetShiftState [20:31:12]wFMCommunicate request_size=4 [20:31:12]MH_SAM_APDU [20:31:12]CAPDU: 80 13 01 00 [20:31:12]Write to MH i2c: E2 08 00 73 85 80 13 01 00 00 00 00 00 75 [20:31:12]Write i2c OK [20:31:12]MH_I2C_Read... [20:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:12]Read from MH i2c: E2 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 0E 00 [20:31:12]MH_I2C_Read... [20:31:12]Read from MH i2c: E2 0E 00 73 85 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7E [20:31:12]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:31:12]wFMCommunicate OK [20:31:12]SAM_PROTO_GetShiftState done [20:31:12]FM_GetShiftState done [20:31:12]req_shift_opened done [20:31:12]requested_item shift.open_date is exist - process it [20:31:12]req_shift_open_date [20:31:12]req_shift_open_date done [20:31:12]produce_requested_data done [20:31:12]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166204,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:31:12]process_action_free close_receipt [20:31:12]json_value_free [20:31:12]json_value_free done [20:31:12]process_json_proto returns [20:31:12]Send response to host [20:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166204,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:31:12]free response buf [20:31:12]execute_script done [20:31:12]execute_script returns [20:31:12]free content buf [20:31:12]Sock 5.Close socket [20:31:12]Sock 5.Thread stoped [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:30]accept exits with 6 [20:37:30]New connection [20:37:30]New thread 3066776932 created [20:37:30]Thread 3066920292 joined [20:37:30]Waiting for new connection... [20:37:30] Sock 6.Parse request [20:37:30]Sock 6.Check first char [20:37:30]Sock 6.First char is OK [20:37:30]request: POST /json_proto HTTP/1.0 [20:37:30]Method: POST [20:37:30]URL: /json_proto [20:37:30]Method is POST - this is cgi request [20:37:30]url: /json_proto [20:37:30]query_string will be loaded in cgi processing [20:37:30]execute_cgi json_proto POST (null) [20:37:30]execute_cgi path=json_proto method=POST [20:37:30]POST find Content-Length [20:37:30]Host: 172.17.53.195:8080 [20:37:30]Content-Length: 682 [20:37:30]Content-Type: application/json [20:37:30] [20:37:30]POST finish read [20:37:30]Found Content-Length = 682 [20:37:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:30]execute_script... [20:37: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)220777", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:30]POST & json_proto [20:37:30]process_json_proto [20:37:30]json parsed OK: [20:37:30]protocol is kg_v1.0 [20:37:30]action value=close_receipt [20:37:30]process_action close_receipt [20:37:30]cmd_close_receipt [20:37:30]MH_GetDate [20:37:30]Write to MH i2c: F0 00 00 74 85 E8 [20:37:30]Write i2c OK [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: F0 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: F0 09 00 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: F0 09 00 74 85 00 9E BB 16 67 21 48 4A 65 DF [20:37:30]GetLastDocTimeStamp 1729542688 [20:37:30]current date 1729543070 [20:37:30]FM_GetShiftState [20:37:30]SAM_PROTO_GetShiftState [20:37:30]wFMCommunicate request_size=4 [20:37:30]MH_SAM_APDU [20:37:30]CAPDU: 80 13 01 00 [20:37:30]Write to MH i2c: E2 08 00 75 85 80 13 01 00 00 00 00 00 77 [20:37:30]Write i2c OK [20:37:30]MH_I2C_Read... [20:37:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:30]Read from MH i2c: E2 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: E2 0E 00 [20:37:30]MH_I2C_Read... [20:37:30]Read from MH i2c: E2 0E 00 75 85 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 80 [20:37:30]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:37:30]wFMCommunicate OK [20:37:30]SAM_PROTO_GetShiftState done [20:37:30]FM_GetShiftState done [20:37:30]opened in 1729470944 [20:37:30]opened+sec_in_day 1729557344 [20:37:30]quantity*price = 100015 [20:37:30]sum+1 = 100017 [20:37:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 316 21.10.2024 20:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166205 ФПД: 160172782170491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166205&fm=160172782170491&tin=02508201610067®Number=0000000000091764&sum=100000 [20:37:31]StoreToDocumentArchive [20:37:31]shift 535 fd 166205 [20:37:31]save to /storage/0535/doc_00166205 [20:37:31]save last doc name /storage/0535/doc_00166205 to /storage/kkm_last_doc_name [20:37:31]save OK [20:37:31]Clear old archive folders... [20:37:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:37:31]tlvbuf is 0157ECD0 [20:37:31]SAM_PROTO_ClearQueue [20:37:31]wFMCommunicate request_size=4 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 09 00 00 [20:37:31]Write to MH i2c: E2 08 00 82 85 80 09 00 00 00 00 00 00 79 [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:31]Read from MH i2c: E2 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 82 85 00 90 00 7B [20:37:31]RAPDU: 90 00 [20:37:31]wFMCommunicate OK [20:37:31]SAM_PROTO_ClearQueue done [20:37:31]KKMCreateOFDPacket [20:37:31]OFDProtocolAddRootSTLVToBuf [20:37:31]FM_MakeSignedData [20:37:31]FM_MakeSignedData [20:37:31]SAM_PROTO_SignData [20:37:31]wFMCommunicate request_size=4 [20:37:31]MH_SAM_APDU [20:37:31]CAPDU: 80 0D 01 02 [20:37:31]Write to MH i2c: E2 08 00 83 85 80 0D 01 02 00 00 00 00 81 [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:31]OFD Sender: No OFD packet to send [20:37:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:31]Read from MH i2c: E2 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 [20:37:31]MH_I2C_Read... [20:37:31]Read from MH i2c: E2 03 00 83 85 00 90 00 7C [20:37:31]RAPDU: 90 00 [20:37:31]wFMCommunicate OK [20:37:31]wFMCommunicate request_size=255 [20:37:31]MH_SAM_APDU [20:37: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 9E BB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 89 02 00 35 04 06 00 91 [20:37:31]Write to MH i2c: E2 02 01 84 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9E BB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 89 02 00 35 04 06 00 91 00 00 96 [20:37:31]Write i2c OK [20:37:31]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 03 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 03 00 84 85 00 90 00 7D [20:37:32]RAPDU: 90 00 [20:37:32]wFMCommunicate OK [20:37:32]wFMCommunicate request_size=10 [20:37:32]MH_SAM_APDU [20:37:32]CAPDU: 80 0D 02 02 05 AD 21 C8 B1 7B [20:37:32]Write to MH i2c: E2 0D 00 85 85 80 0D 02 02 05 00 AD 21 C8 B1 7B 00 00 50 [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 03 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 03 00 85 85 00 90 00 7E [20:37:32]RAPDU: 90 00 [20:37:32]wFMCommunicate OK [20:37:32]wFMCommunicate request_size=4 [20:37:32]MH_SAM_APDU [20:37:32]CAPDU: 80 0D 03 02 [20:37:32]Write to MH i2c: E2 08 00 86 85 80 0D 03 02 00 00 00 00 86 [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 0B 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 0B 00 86 85 00 EF 33 AD EC AD 62 60 EF 90 00 A0 [20:37:32]RAPDU: EF 33 AD EC AD 62 60 EF 90 00 [20:37:32]wFMCommunicate OK [20:37:32]SAM_PROTO_SignData done [20:37:32]FM_MakeSignedData done [20:37:32]CreateOFDProtocolMessage [20:37:32]wFMCommunicate request_size=4 [20:37:32]MH_SAM_APDU [20:37:32]CAPDU: 80 11 00 00 [20:37:32]Write to MH i2c: E2 08 00 87 85 80 11 00 00 00 00 00 00 86 [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:32]Read from MH i2c: E2 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 17 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: E2 17 00 87 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DE [20:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:37:32]wFMCommunicate OK [20:37:32]CreateOFDProtocolMessage done [20:37:32]OFDSenderStorePacket 166205 [20:37:32]StoreOFDPacket docnum=166205 [20:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 F5 07 01 AF 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9E BB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 89 02 00 35 04 06 00 91 AD 21 C8 B1 7B EF 33 AD EC AD 62 60 EF [20:37:32]CheckFolder [20:37:32]dirname=/storage/ofd_packets [20:37:32]CheckFolder done [20:37:32]ProducePacketName [20:37:32]name=ofd_packets/00166205 [20:37:32]NVStorageSaveData ofd_packets/00166205 [20:37:32]File name is /storage/ofd_packets/00166205 [20:37:32]Write 301 bytes [20:37:32]NVStorageSaveData done [20:37:32]OFDSenderStorePacket done [20:37:32]KKMCreateOFDPacket done [20:37:32]NVStorageSaveData kkm_last_timestamp [20:37:32]File name is /storage/kkm_last_timestamp [20:37:32]Write 4 bytes [20:37:32]NVStorageSaveData done [20:37:32]ExternCall_PrintAddStr [20:37:32]wPrintStart [20:37:32]Write to MH i2c: 01 00 00 88 85 0D [20:37:32]Write i2c OK [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: 01 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: 01 07 00 [20:37:32]MH_I2C_Read... [20:37:32]Read from MH i2c: 01 07 00 88 85 00 00 00 00 00 FF 0F 22 [20:37:32]RasterBufferAndPrint [20:37:32]line Счет N : (1)220777 [20:37:32]line ИНН: 02508201610067 [20:37:32]line Контрольно-Кассовый Чек [20:37:32]line ПРОДАЖА [20:37:32]line ТРК (МРК, ГНК) : 23 [20:37:32]line Товар: 2710124130 [20:37:32]line Аи-92-К-5 [20:37:32]line 14.950 * 66.90 [20:37:32]line = 1000.16 [20:37:32]line НДС 12% НСП 1% [20:37:32]line > о реализуемом товаре [20:37:32]line ОКРУГЛЕНИЕ: -0.16 [20:37:32]line ИТОГО: 1000.00 [20:37:32]line Внесено: 1000.00 [20:37:32]line СДАЧА: 0.00 [20:37:32]line НСП 1% : 8.85 [20:37:32]line НДС 12% : 106.21 [20:37:32]line Наличными: 1000.00 [20:37:32]line Безнал.: 0.00 [20:37:32]line Место: АЗС № 161 "Партнер Нефть" [20:37:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:37:32]line СНО: Общий режим [20:37:32]line Чек 316 21.10.2024 20:37 [20:37:32]line Смена: 535 ФФД: 1.0 [20:37:32]line ЗНМ: 0300000104 [20:37:32]line РНМ: 0000000000091764 [20:37:32]line Версия ККМ: 001 [20:37:32]line ФМ: 0000000000871759 [20:37:32]line ФД: 166205 [20:37:32]line ФПД: 160172782170491 [20:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T203750&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166205&fm=160172782170491&tin=02508201610067®Number=0000000000091764&sum=100000 [20:37:32]OFD Sender: Processing packet 166205 [packets to send 48, broken 47] [20:37:32]ProducePacketName [20:37:32]name=ofd_packets/00166205 [20:37:32]OFD Sender: To server: pG, [20:37:32]CommunicateWithHost lk.salyk.kg:30040 [20:37:32]ConnectInit lk.salyk.kg [20:37:32]written 0, free lines is 4095 [20:37:32]Connected sock=7 [20:37:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C0 F5 07 01 AF 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 9E BB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 89 02 00 35 04 06 00 91 AD 21 C8 B1 7B EF 33 AD EC AD 62 60 EF [20:37:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8F DC 47 00 E7 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3D 89 02 00 F4 03 04 00 0C 62 16 67 B6 04 01 00 00 95 95 1A 28 3C 21 8C 69 [20:37:33]CommunicateWithHost err = 0 [20:37:33]CheckOFDResponse [20:37:33]1017 (14) - 77093643461234 [20:37:33]1041 (16) - 0000000000871759 [20:37:33]1040 (4) - 166205 [20:37:33]1012 (4) - 21.10.2024 14:15 [20:37:33]1206 (1) - 0 [20:37:33]OFD Sender: Remove packet 166205 [20:37:33]ProducePacketName [20:37:33]name=ofd_packets/00166205 [20:37:33]NVStorageDeleteData [20:37:33]Write to MH i2c: 01 00 00 B3 85 38 [20:37:33]Write i2c OK [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: 01 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: 01 07 00 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: 01 07 00 B3 85 00 00 00 00 00 CB 0C 16 [20:37:33]RasterBufferAndPrint [20:37:33]line [20:37:33]line [20:37:33]line [20:37:33]line [20:37:33]line [20:37:33]written 0, free lines is 3281 [20:37:33]MH_Cut [20:37:33]Write to MH i2c: D1 01 00 BA 85 01 11 [20:37:33]Write i2c OK [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: D1 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: D1 01 00 [20:37:33]MH_I2C_Read... [20:37:33]Read from MH i2c: D1 01 00 BA 85 00 10 [20:37:33]Write to MH i2c: 01 00 00 BB 85 40 [20:37:33]Write i2c OK [20:37:33]MH_I2C_Read... [20:37:33]OFD Sender: No OFD packet to send [20:37:33]*** Cut start [20:37:33]*** Partial cut [20:37:33]*** CUTSNS_PIN = 1 [20:37:34]*** CUTSNS_PIN = 0 [20:37:34]*** Brake cut motor [20:37:34]Read from MH i2c: 01 [20:37:34]MH_I2C_Read... [20:37:34]*** Stop cut motor [20:37:34]*** Cut end [20:37:34]Read from MH i2c: 01 07 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: 01 07 00 BB 85 00 00 00 00 00 FF 0F 55 [20:37:34]process_action close_receipt done [20:37:34]requested_data is exist [20:37:34]produce_requested_data [20:37:34]requested_item fm.sn is exist - process it [20:37:34]wFMCommunicate request_size=4 [20:37:34]MH_SAM_APDU [20:37:34]CAPDU: 80 11 00 00 [20:37:34]Write to MH i2c: E2 08 00 BC 85 80 11 00 00 00 00 00 00 BB [20:37:34]Write i2c OK [20:37:34]MH_I2C_Read... [20:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:34]Read from MH i2c: E2 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 17 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 17 00 BC 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 13 [20:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:37:34]wFMCommunicate OK [20:37:34]requested_item fd.num is exist - process it [20:37:34]SAM_PROTO_GetFieldsCounters [20:37:34]wFMCommunicate request_size=4 [20:37:34]MH_SAM_APDU [20:37:34]CAPDU: 80 13 00 00 [20:37:34]Write to MH i2c: E2 08 00 BD 85 80 13 00 00 00 00 00 00 BE [20:37:34]Write i2c OK [20:37:34]MH_I2C_Read... [20:37:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:34]Read from MH i2c: E2 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 62 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 62 00 BD 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [20:37:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:34]wFMCommunicate OK [20:37:34]SAM_PROTO_GetFieldsCounters done [20:37:34]requested_item shift.num is exist - process it [20:37:34]requested_item shift.opened is exist - process it [20:37:34]req_shift_opened [20:37:34]FM_GetShiftState [20:37:34]SAM_PROTO_GetShiftState [20:37:34]wFMCommunicate request_size=4 [20:37:34]MH_SAM_APDU [20:37:34]CAPDU: 80 13 01 00 [20:37:34]Write to MH i2c: E2 08 00 BE 85 80 13 01 00 00 00 00 00 C0 [20:37:34]Write i2c OK [20:37:34]MH_I2C_Read... [20:37:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:34]Read from MH i2c: E2 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 0E 00 [20:37:34]MH_I2C_Read... [20:37:34]Read from MH i2c: E2 0E 00 BE 85 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C9 [20:37:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:37:34]wFMCommunicate OK [20:37:34]SAM_PROTO_GetShiftState done [20:37:34]FM_GetShiftState done [20:37:34]req_shift_opened done [20:37:34]requested_item shift.open_date is exist - process it [20:37:34]req_shift_open_date [20:37:34]req_shift_open_date done [20:37:34]produce_requested_data done [20:37:34]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166205,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:37:34]process_action_free close_receipt [20:37:34]json_value_free [20:37:34]json_value_free done [20:37:34]process_json_proto returns [20:37:34]Send response to host [20:37:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166205,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:37:34]free response buf [20:37:34]execute_script done [20:37:34]execute_script returns [20:37:34]free content buf [20:37:34]Sock 6.Close socket [20:37:34]Sock 6.Thread stoped [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]accept exits with 5 [20:40:23]New connection [20:40:23]New thread 3066920292 created [20:40:23]Thread 3066776932 joined [20:40:23]Waiting for new connection... [20:40:23] Sock 5.Parse request [20:40:23]Sock 5.Check first char [20:40:23]Sock 5.First char is OK [20:40:23]request: POST /json_proto HTTP/1.0 [20:40:23]Method: POST [20:40:23]URL: /json_proto [20:40:23]Method is POST - this is cgi request [20:40:23]url: /json_proto [20:40:23]query_string will be loaded in cgi processing [20:40:23]execute_cgi json_proto POST (null) [20:40:23]execute_cgi path=json_proto method=POST [20:40:23]POST find Content-Length [20:40:23]Host: 172.17.53.195:8080 [20:40:23]Content-Length: 674 [20:40:23]Content-Type: application/json [20:40:23] [20:40:23]POST finish read [20:40:23]Found Content-Length = 674 [20:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.180, "sum" : 699.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:23]execute_script... [20:40: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)220778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.180, "sum" : 699.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 699.00, "payments": [ { "type": 0, "sum" : 699.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:23]POST & json_proto [20:40:23]process_json_proto [20:40:23]json parsed OK: [20:40:23]protocol is kg_v1.0 [20:40:23]action value=close_receipt [20:40:23]process_action close_receipt [20:40:23]cmd_close_receipt [20:40:23]MH_GetDate [20:40:23]Write to MH i2c: F0 00 00 BF 85 33 [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: F0 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: F0 09 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: F0 09 00 BF 85 00 4B BC 16 67 21 48 4A 65 D8 [20:40:23]GetLastDocTimeStamp 1729543070 [20:40:23]current date 1729543243 [20:40:23]FM_GetShiftState [20:40:23]SAM_PROTO_GetShiftState [20:40:23]wFMCommunicate request_size=4 [20:40:23]MH_SAM_APDU [20:40:23]CAPDU: 80 13 01 00 [20:40:23]Write to MH i2c: E2 08 00 C0 85 80 13 01 00 00 00 00 00 C2 [20:40:23]Write i2c OK [20:40:23]MH_I2C_Read... [20:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:23]Read from MH i2c: E2 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 0E 00 [20:40:23]MH_I2C_Read... [20:40:23]Read from MH i2c: E2 0E 00 C0 85 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CB [20:40:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:40:23]wFMCommunicate OK [20:40:23]SAM_PROTO_GetShiftState done [20:40:23]FM_GetShiftState done [20:40:23]opened in 1729470944 [20:40:23]opened+sec_in_day 1729557344 [20:40:23]quantity*price = 69951 [20:40:23]sum+1 = 69953 [20:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 699.00 Внесено: 700.00 СДАЧА: 1.00 НСП 1% : 6.19 НДС 12% : 74.28 Наличными: 699.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 317 21.10.2024 20:40 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166206 ФПД: 155907482393284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204043&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166206&fm=155907482393284&tin=02508201610067®Number=0000000000091764&sum=69900 [20:40:24]StoreToDocumentArchive [20:40:24]shift 535 fd 166206 [20:40:24]save to /storage/0535/doc_00166206 [20:40:24]save last doc name /storage/0535/doc_00166206 to /storage/kkm_last_doc_name [20:40:24]save OK [20:40:24]Clear old archive folders... [20:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:40:24]tlvbuf is 0165D9E0 [20:40:24]SAM_PROTO_ClearQueue [20:40:24]wFMCommunicate request_size=4 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 09 00 00 [20:40:24]Write to MH i2c: E2 08 00 CD 85 80 09 00 00 00 00 00 00 C4 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 CD 85 00 90 00 C6 [20:40:24]RAPDU: 90 00 [20:40:24]wFMCommunicate OK [20:40:24]SAM_PROTO_ClearQueue done [20:40:24]KKMCreateOFDPacket [20:40:24]OFDProtocolAddRootSTLVToBuf [20:40:24]FM_MakeSignedData [20:40:24]FM_MakeSignedData [20:40:24]SAM_PROTO_SignData [20:40:24]wFMCommunicate request_size=4 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 0D 01 02 [20:40:24]Write to MH i2c: E2 08 00 CE 85 80 0D 01 02 00 00 00 00 CC [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 CE 85 00 90 00 C7 [20:40:24]RAPDU: 90 00 [20:40:24]wFMCommunicate OK [20:40:24]wFMCommunicate request_size=255 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 1D 00 00 00 00 07 04 06 00 0C 11 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 4B BC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 89 02 00 35 04 06 00 8D CC 0A 1B [20:40:24]Write to MH i2c: E2 02 01 CF 85 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 1D 00 00 00 00 07 04 06 00 0C 11 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 4B BC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 89 02 00 35 04 06 00 8D CC 0A 1B 00 00 4E [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 CF 85 00 90 00 C8 [20:40:24]RAPDU: 90 00 [20:40:24]wFMCommunicate OK [20:40:24]wFMCommunicate request_size=7 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 0D 02 02 02 1A C4 [20:40:24]Write to MH i2c: E2 0A 00 D0 85 80 0D 02 02 02 00 1A C4 00 00 B1 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 03 00 D0 85 00 90 00 C9 [20:40:24]RAPDU: 90 00 [20:40:24]wFMCommunicate OK [20:40:24]wFMCommunicate request_size=4 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 0D 03 02 [20:40:24]Write to MH i2c: E2 08 00 D1 85 80 0D 03 02 00 00 00 00 D1 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 0B 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 0B 00 D1 85 00 B8 A4 5B 31 36 CD 61 B9 90 00 D7 [20:40:24]RAPDU: B8 A4 5B 31 36 CD 61 B9 90 00 [20:40:24]wFMCommunicate OK [20:40:24]SAM_PROTO_SignData done [20:40:24]FM_MakeSignedData done [20:40:24]CreateOFDProtocolMessage [20:40:24]wFMCommunicate request_size=4 [20:40:24]MH_SAM_APDU [20:40:24]CAPDU: 80 11 00 00 [20:40:24]Write to MH i2c: E2 08 00 D2 85 80 11 00 00 00 00 00 00 D1 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:24]Read from MH i2c: E2 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 17 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: E2 17 00 D2 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 29 [20:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:40:24]wFMCommunicate OK [20:40:24]CreateOFDProtocolMessage done [20:40:24]OFDSenderStorePacket 166206 [20:40:24]StoreOFDPacket docnum=166206 [20:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 F1 D3 04 01 27 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 1D 00 00 00 00 07 04 06 00 0C 11 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 4B BC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 89 02 00 35 04 06 00 8D CC 0A 1B 1A C4 B8 A4 5B 31 36 CD 61 B9 [20:40:24]CheckFolder [20:40:24]dirname=/storage/ofd_packets [20:40:24]CheckFolder done [20:40:24]ProducePacketName [20:40:24]name=ofd_packets/00166206 [20:40:24]NVStorageSaveData ofd_packets/00166206 [20:40:24]File name is /storage/ofd_packets/00166206 [20:40:24]Write 298 bytes [20:40:24]NVStorageSaveData done [20:40:24]OFDSenderStorePacket done [20:40:24]KKMCreateOFDPacket done [20:40:24]NVStorageSaveData kkm_last_timestamp [20:40:24]File name is /storage/kkm_last_timestamp [20:40:24]Write 4 bytes [20:40:24]NVStorageSaveData done [20:40:24]ExternCall_PrintAddStr [20:40:24]wPrintStart [20:40:24]Write to MH i2c: 01 00 00 D3 85 58 [20:40:24]Write i2c OK [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: 01 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: 01 07 00 [20:40:24]MH_I2C_Read... [20:40:24]Read from MH i2c: 01 07 00 D3 85 00 00 00 00 00 FF 0F 6D [20:40:24]RasterBufferAndPrint [20:40:24]line Счет N : (1)220778 [20:40:24]line ИНН: 02508201610067 [20:40:24]line Контрольно-Кассовый Чек [20:40:24]line ПРОДАЖА [20:40:24]line ТРК (МРК, ГНК) : 11 [20:40:24]line Товар: 2710194210 [20:40:24]line ДТ-К-5 [20:40:24]line 9.180 * 76.20 [20:40:24]line = 699.52 [20:40:24]line НДС 12% НСП 1% [20:40:24]line > о реализуемом товаре [20:40:24]line ОКРУГЛЕНИЕ: -0.52 [20:40:24]line ИТОГО: 699.00 [20:40:24]line Внесено: 700.00 [20:40:24]line СДАЧА: 1.00 [20:40:24]line НСП 1% : 6.19 [20:40:24]line НДС 12% : 74.28 [20:40:24]line Наличными: 699.00 [20:40:24]line Безнал.: 0.00 [20:40:24]line Место: АЗС № 161 "Партнер Нефть" [20:40:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:40:24]line СНО: Общий режим [20:40:24]line Чек 317 21.10.2024 20:40 [20:40:24]line Смена: 535 ФФД: 1.0 [20:40:24]line ЗНМ: 0300000104 [20:40:24]line РНМ: 0000000000091764 [20:40:24]line Версия ККМ: 001 [20:40:24]line ФМ: 0000000000871759 [20:40:24]line ФД: 166206 [20:40:24]line ФПД: 155907482393284 [20:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204043&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166206&fm=155907482393284&tin=02508201610067®Number=0000000000091764&sum=69900 [20:40:25]OFD Sender: Processing packet 166206 [packets to send 48, broken 47] [20:40:25]ProducePacketName [20:40:25]name=ofd_packets/00166206 [20:40:25]OFD Sender: To server: pG, [20:40:25]CommunicateWithHost lk.salyk.kg:30040 [20:40:25]ConnectInit lk.salyk.kg [20:40:25]written 0, free lines is 4095 [20:40:25]Write to MH i2c: 01 00 00 FE 85 83 [20:40:25]Write i2c OK [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: 01 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: 01 07 00 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: 01 07 00 FE 85 00 00 00 00 00 C5 0C 5B [20:40:25]RasterBufferAndPrint [20:40:25]line [20:40:25]line [20:40:25]line [20:40:25]line [20:40:25]line [20:40:25]written 0, free lines is 3275 [20:40:25]MH_Cut [20:40:25]Write to MH i2c: D1 01 00 05 86 01 5D [20:40:25]Write i2c OK [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: D1 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: D1 01 00 [20:40:25]MH_I2C_Read... [20:40:25]Read from MH i2c: D1 01 00 05 86 00 5C [20:40:25]Write to MH i2c: 01 00 00 06 86 8C [20:40:25]Write i2c OK [20:40:25]MH_I2C_Read... [20:40:26]*** Cut start [20:40:26]*** Partial cut [20:40:26]*** CUTSNS_PIN = 1 [20:40:26]*** CUTSNS_PIN = 0 [20:40:26]*** Brake cut motor [20:40:26]Read from MH i2c: 01 [20:40:26]MH_I2C_Read... [20:40:26]*** Stop cut motor [20:40:26]*** Cut end [20:40:26]Read from MH i2c: 01 07 00 [20:40:26]MH_I2C_Read... [20:40:26]Read from MH i2c: 01 07 00 06 86 00 00 00 00 00 FF 0F A1 [20:40:27]process_action close_receipt done [20:40:27]requested_data is exist [20:40:27]produce_requested_data [20:40:27]requested_item fm.sn is exist - process it [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 11 00 00 [20:40:27]Write to MH i2c: E2 08 00 07 86 80 11 00 00 00 00 00 00 07 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 17 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 17 00 07 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5F [20:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:40:27]wFMCommunicate OK [20:40:27]requested_item fd.num is exist - process it [20:40:27]SAM_PROTO_GetFieldsCounters [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 13 00 00 [20:40:27]Write to MH i2c: E2 08 00 08 86 80 13 00 00 00 00 00 00 0A [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 62 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 62 00 08 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [20:40:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:27]wFMCommunicate OK [20:40:27]SAM_PROTO_GetFieldsCounters done [20:40:27]requested_item shift.num is exist - process it [20:40:27]requested_item shift.opened is exist - process it [20:40:27]req_shift_opened [20:40:27]FM_GetShiftState [20:40:27]SAM_PROTO_GetShiftState [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 13 01 00 [20:40:27]Write to MH i2c: E2 08 00 09 86 80 13 01 00 00 00 00 00 0C [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 0E 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 0E 00 09 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 15 [20:40:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:40:27]wFMCommunicate OK [20:40:27]SAM_PROTO_GetShiftState done [20:40:27]FM_GetShiftState done [20:40:27]req_shift_opened done [20:40:27]requested_item shift.open_date is exist - process it [20:40:27]req_shift_open_date [20:40:27]req_shift_open_date done [20:40:27]produce_requested_data done [20:40:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166206,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:40:27]process_action_free close_receipt [20:40:27]json_value_free [20:40:27]json_value_free done [20:40:27]process_json_proto returns [20:40:27]Send response to host [20:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166206,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:40:27]free response buf [20:40:27]execute_script done [20:40:27]execute_script returns [20:40:27]free content buf [20:40:27]Sock 5.Close socket [20:40:27]Sock 5.Thread stoped [20:42:36]ConnectInit Can't connect to host [20:42:36]CommunicateWithHost connect error [20:42:36]CommunicateWithHost err = -1 [20:42:36]OFD Sender: Server communicate error [20:42:41]OFD Sender: Processing packet 166206 [packets to send 48, broken 47] [20:42:41]ProducePacketName [20:42:41]name=ofd_packets/00166206 [20:42:41]OFD Sender: To server: pG, [20:42:41]CommunicateWithHost lk.salyk.kg:30040 [20:42:41]ConnectInit lk.salyk.kg [20:42:41]Connected sock=7 [20: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 35 39 0C 01 00 00 F1 D3 04 01 27 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 40 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 1D 00 00 00 00 07 04 06 00 0C 11 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 4B BC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 89 02 00 35 04 06 00 8D CC 0A 1B 1A C4 B8 A4 5B 31 36 CD 61 B9 [20: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 35 39 4F 00 00 00 BA B0 47 00 D0 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3E 89 02 00 F4 03 04 00 40 63 16 67 B6 04 01 00 00 F5 A8 39 14 A6 4F 24 AD [20:42:41]CommunicateWithHost err = 0 [20:42:41]CheckOFDResponse [20:42:41]1017 (14) - 77093643461234 [20:42:41]1041 (16) - 0000000000871759 [20:42:41]1040 (4) - 166206 [20:42:41]1012 (4) - 21.10.2024 14:20 [20:42:41]1206 (1) - 0 [20:42:41]OFD Sender: Remove packet 166206 [20:42:41]ProducePacketName [20:42:41]name=ofd_packets/00166206 [20:42:41]NVStorageDeleteData [20:42:41]OFD Sender: No OFD packet to send [20:42:46]OFD Sender: No OFD packet to send [20:42:51]OFD Sender: No OFD packet to send [20:42:56]OFD Sender: No OFD packet to send [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:47]accept exits with 6 [20:44:47]New connection [20:44:47]New thread 3066776932 created [20:44:47]Thread 3066920292 joined [20:44:47]Waiting for new connection... [20:44:47] Sock 6.Parse request [20:44:47]Sock 6.Check first char [20:44:47]Sock 6.First char is OK [20:44:47]request: POST /json_proto HTTP/1.0 [20:44:47]Method: POST [20:44:47]URL: /json_proto [20:44:47]Method is POST - this is cgi request [20:44:47]url: /json_proto [20:44:47]query_string will be loaded in cgi processing [20:44:47]execute_cgi json_proto POST (null) [20:44:47]execute_cgi path=json_proto method=POST [20:44:47]POST find Content-Length [20:44:47]Host: 172.17.53.195:8080 [20:44:47]Content-Length: 682 [20:44:47]Content-Type: application/json [20:44:47] [20:44:47]POST finish read [20:44:47]Found Content-Length = 682 [20:44:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [20:44:47]execute_script... [20:44: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)220779", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [20:44:47]POST & json_proto [20:44:47]process_json_proto [20:44:47]json parsed OK: [20:44:47]protocol is kg_v1.0 [20:44:47]action value=close_receipt [20:44:47]process_action close_receipt [20:44:47]cmd_close_receipt [20:44:47]MH_GetDate [20:44:47]Write to MH i2c: F0 00 00 0A 86 7F [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: F0 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: F0 09 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: F0 09 00 0A 86 00 53 BD 16 67 21 48 4A 65 2D [20:44:47]GetLastDocTimeStamp 1729543243 [20:44:47]current date 1729543507 [20:44:47]FM_GetShiftState [20:44:47]SAM_PROTO_GetShiftState [20:44:47]wFMCommunicate request_size=4 [20:44:47]MH_SAM_APDU [20:44:47]CAPDU: 80 13 01 00 [20:44:47]Write to MH i2c: E2 08 00 0B 86 80 13 01 00 00 00 00 00 0E [20:44:47]Write i2c OK [20:44:47]MH_I2C_Read... [20:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:47]Read from MH i2c: E2 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 0E 00 [20:44:47]MH_I2C_Read... [20:44:47]Read from MH i2c: E2 0E 00 0B 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 17 [20:44:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:44:47]wFMCommunicate OK [20:44:47]SAM_PROTO_GetShiftState done [20:44:47]FM_GetShiftState done [20:44:47]opened in 1729470944 [20:44:47]opened+sec_in_day 1729557344 [20:44:47]quantity*price = 100021 [20:44:47]sum+1 = 100023 [20:44:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 318 21.10.2024 20:45 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166207 ФПД: 150789527816697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166207&fm=150789527816697&tin=02508201610067®Number=0000000000091764&sum=100000 [20:44:48]StoreToDocumentArchive [20:44:48]shift 535 fd 166207 [20:44:48]save to /storage/0535/doc_00166207 [20:44:48]save last doc name /storage/0535/doc_00166207 to /storage/kkm_last_doc_name [20:44:48]save OK [20:44:48]Clear old archive folders... [20:44:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:48]tlvbuf is 01BAAAA0 [20:44:48]SAM_PROTO_ClearQueue [20:44:48]wFMCommunicate request_size=4 [20:44:48]MH_SAM_APDU [20:44:48]CAPDU: 80 09 00 00 [20:44:48]Write to MH i2c: E2 08 00 18 86 80 09 00 00 00 00 00 00 10 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:48]Read from MH i2c: E2 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 03 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 03 00 18 86 00 90 00 12 [20:44:48]RAPDU: 90 00 [20:44:48]wFMCommunicate OK [20:44:48]SAM_PROTO_ClearQueue done [20:44:48]KKMCreateOFDPacket [20:44:48]OFDProtocolAddRootSTLVToBuf [20:44:48]FM_MakeSignedData [20:44:48]FM_MakeSignedData [20:44:48]SAM_PROTO_SignData [20:44:48]wFMCommunicate request_size=4 [20:44:48]MH_SAM_APDU [20:44:48]CAPDU: 80 0D 01 02 [20:44:48]Write to MH i2c: E2 08 00 19 86 80 0D 01 02 00 00 00 00 18 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:48]Read from MH i2c: E2 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 03 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 03 00 19 86 00 90 00 13 [20:44:48]RAPDU: 90 00 [20:44:48]wFMCommunicate OK [20:44:48]wFMCommunicate request_size=255 [20:44:48]MH_SAM_APDU [20:44:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 3E 01 00 00 F4 03 04 00 53 BD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 89 02 00 35 04 06 00 89 [20:44:48]Write to MH i2c: E2 02 01 1A 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3E 01 00 00 F4 03 04 00 53 BD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 89 02 00 35 04 06 00 89 00 00 03 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:48]Read from MH i2c: E2 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 03 00 [20:44:48]MH_I2C_Read... [20:44:48]Read from MH i2c: E2 03 00 1A 86 00 90 00 14 [20:44:48]RAPDU: 90 00 [20:44:48]wFMCommunicate OK [20:44:48]wFMCommunicate request_size=10 [20:44:48]MH_SAM_APDU [20:44:48]CAPDU: 80 0D 02 02 05 24 6C 3D C9 F9 [20:44:48]Write to MH i2c: E2 0D 00 1B 86 80 0D 02 02 05 00 24 6C 3D C9 F9 00 00 B4 [20:44:48]Write i2c OK [20:44:48]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 03 00 1B 86 00 90 00 15 [20:44:49]RAPDU: 90 00 [20:44:49]wFMCommunicate OK [20:44:49]wFMCommunicate request_size=4 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 0D 03 02 [20:44:49]Write to MH i2c: E2 08 00 1C 86 80 0D 03 02 00 00 00 00 1D [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 0B 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 0B 00 1C 86 00 1A EF F2 71 C7 5A 2A E7 90 00 BC [20:44:49]RAPDU: 1A EF F2 71 C7 5A 2A E7 90 00 [20:44:49]wFMCommunicate OK [20:44:49]SAM_PROTO_SignData done [20:44:49]FM_MakeSignedData done [20:44:49]CreateOFDProtocolMessage [20:44:49]wFMCommunicate request_size=4 [20:44:49]MH_SAM_APDU [20:44:49]CAPDU: 80 11 00 00 [20:44:49]Write to MH i2c: E2 08 00 1D 86 80 11 00 00 00 00 00 00 1D [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:49]Read from MH i2c: E2 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 17 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: E2 17 00 1D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 75 [20:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:44:49]wFMCommunicate OK [20:44:49]CreateOFDProtocolMessage done [20:44:49]OFDSenderStorePacket 166207 [20:44:49]StoreOFDPacket docnum=166207 [20:44:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D C5 07 01 D0 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 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 3E 01 00 00 F4 03 04 00 53 BD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 89 02 00 35 04 06 00 89 24 6C 3D C9 F9 1A EF F2 71 C7 5A 2A E7 [20:44:49]CheckFolder [20:44:49]dirname=/storage/ofd_packets [20:44:49]CheckFolder done [20:44:49]ProducePacketName [20:44:49]name=ofd_packets/00166207 [20:44:49]NVStorageSaveData ofd_packets/00166207 [20:44:49]File name is /storage/ofd_packets/00166207 [20:44:49]Write 301 bytes [20:44:49]NVStorageSaveData done [20:44:49]OFDSenderStorePacket done [20:44:49]KKMCreateOFDPacket done [20:44:49]NVStorageSaveData kkm_last_timestamp [20:44:49]File name is /storage/kkm_last_timestamp [20:44:49]Write 4 bytes [20:44:49]NVStorageSaveData done [20:44:49]ExternCall_PrintAddStr [20:44:49]wPrintStart [20:44:49]Write to MH i2c: 01 00 00 1E 86 A4 [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 07 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 07 00 1E 86 00 00 00 00 00 FF 0F B9 [20:44:49]RasterBufferAndPrint [20:44:49]line Счет N : (1)220779 [20:44:49]line ИНН: 02508201610067 [20:44:49]line Контрольно-Кассовый Чек [20:44:49]line ПРОДАЖА [20:44:49]line ТРК (МРК, ГНК) : 24 [20:44:49]line Товар: 2710124500 [20:44:49]line Аи-95-К-5 [20:44:49]line 13.480 * 74.20 [20:44:49]line = 1000.22 [20:44:49]line НДС 12% НСП 1% [20:44:49]line > о реализуемом товаре [20:44:49]line ОКРУГЛЕНИЕ: -0.22 [20:44:49]line ИТОГО: 1000.00 [20:44:49]line Внесено: 1000.00 [20:44:49]line СДАЧА: 0.00 [20:44:49]line НСП 1% : 8.85 [20:44:49]line НДС 12% : 106.22 [20:44:49]line Наличными: 1000.00 [20:44:49]line Безнал.: 0.00 [20:44:49]line Место: АЗС № 161 "Партнер Нефть" [20:44:49]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:44:49]line СНО: Общий режим [20:44:49]line Чек 318 21.10.2024 20:45 [20:44:49]line Смена: 535 ФФД: 1.0 [20:44:49]line ЗНМ: 0300000104 [20:44:49]line РНМ: 0000000000091764 [20:44:49]line Версия ККМ: 001 [20:44:49]line ФМ: 0000000000871759 [20:44:49]line ФД: 166207 [20:44:49]line ФПД: 150789527816697 [20:44:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T204507&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166207&fm=150789527816697&tin=02508201610067®Number=0000000000091764&sum=100000 [20:44:49]OFD Sender: Processing packet 166207 [packets to send 48, broken 47] [20:44:49]ProducePacketName [20:44:49]name=ofd_packets/00166207 [20:44:49]OFD Sender: To server: pG, [20:44:49]CommunicateWithHost lk.salyk.kg:30040 [20:44:49]ConnectInit lk.salyk.kg [20:44:49]written 0, free lines is 4095 [20:44:49]Connected sock=7 [20:44:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D C5 07 01 D0 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 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 3E 01 00 00 F4 03 04 00 53 BD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 89 02 00 35 04 06 00 89 24 6C 3D C9 F9 1A EF F2 71 C7 5A 2A E7 [20:44:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 3F D7 47 00 76 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 3F 89 02 00 F4 03 04 00 C0 63 16 67 B6 04 01 00 00 39 6F A0 9A 89 F2 91 64 [20:44:49]CommunicateWithHost err = 0 [20:44:49]CheckOFDResponse [20:44:49]1017 (14) - 77093643461234 [20:44:49]1041 (16) - 0000000000871759 [20:44:49]1040 (4) - 166207 [20:44:49]1012 (4) - 21.10.2024 14:22 [20:44:49]1206 (1) - 0 [20:44:49]OFD Sender: Remove packet 166207 [20:44:49]ProducePacketName [20:44:49]name=ofd_packets/00166207 [20:44:49]NVStorageDeleteData [20:44:49]Write to MH i2c: 01 00 00 49 86 CF [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 07 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: 01 07 00 49 86 00 00 00 00 00 C9 0C AB [20:44:49]RasterBufferAndPrint [20:44:49]line [20:44:49]line [20:44:49]line [20:44:49]line [20:44:49]line [20:44:49]written 0, free lines is 3279 [20:44:49]MH_Cut [20:44:49]Write to MH i2c: D1 01 00 50 86 01 A8 [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: D1 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: D1 01 00 [20:44:49]MH_I2C_Read... [20:44:49]Read from MH i2c: D1 01 00 50 86 00 A7 [20:44:49]Write to MH i2c: 01 00 00 51 86 D7 [20:44:49]Write i2c OK [20:44:49]MH_I2C_Read... [20:44:50]OFD Sender: No OFD packet to send [20:44:50]*** Cut start [20:44:50]*** Partial cut [20:44:50]*** CUTSNS_PIN = 1 [20:44:50]*** CUTSNS_PIN = 0 [20:44:51]*** Brake cut motor [20:44:51]Read from MH i2c: 01 [20:44:51]MH_I2C_Read... [20:44:51]*** Stop cut motor [20:44:51]*** Cut end [20:44:51]Read from MH i2c: 01 07 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: 01 07 00 51 86 00 00 00 00 00 FF 0F EC [20:44:51]process_action close_receipt done [20:44:51]requested_data is exist [20:44:51]produce_requested_data [20:44:51]requested_item fm.sn is exist - process it [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 11 00 00 [20:44:51]Write to MH i2c: E2 08 00 52 86 80 11 00 00 00 00 00 00 52 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 17 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 17 00 52 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AA [20:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:44:51]wFMCommunicate OK [20:44:51]requested_item fd.num is exist - process it [20:44:51]SAM_PROTO_GetFieldsCounters [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 13 00 00 [20:44:51]Write to MH i2c: E2 08 00 53 86 80 13 00 00 00 00 00 00 55 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 62 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 62 00 53 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [20:44:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 3F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_GetFieldsCounters done [20:44:51]requested_item shift.num is exist - process it [20:44:51]requested_item shift.opened is exist - process it [20:44:51]req_shift_opened [20:44:51]FM_GetShiftState [20:44:51]SAM_PROTO_GetShiftState [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 13 01 00 [20:44:51]Write to MH i2c: E2 08 00 54 86 80 13 01 00 00 00 00 00 57 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 0E 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 0E 00 54 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 60 [20:44:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_GetShiftState done [20:44:51]FM_GetShiftState done [20:44:51]req_shift_opened done [20:44:51]requested_item shift.open_date is exist - process it [20:44:51]req_shift_open_date [20:44:51]req_shift_open_date done [20:44:51]produce_requested_data done [20:44:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166207,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:44:51]process_action_free close_receipt [20:44:51]json_value_free [20:44:51]json_value_free done [20:44:51]process_json_proto returns [20:44:51]Send response to host [20:44:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166207,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:44:51]free response buf [20:44:51]execute_script done [20:44:51]execute_script returns [20:44:51]free content buf [20:44:51]Sock 6.Close socket [20:44:51]Sock 6.Thread stoped [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]OFD Sender: No OFD packet to send [20:49:25]OFD Sender: No OFD packet to send [20:49:30]OFD Sender: No OFD packet to send [20:49:35]OFD Sender: No OFD packet to send [20:49:40]OFD Sender: No OFD packet to send [20:49:45]OFD Sender: No OFD packet to send [20:49:50]OFD Sender: No OFD packet to send [20:49:55]OFD Sender: No OFD packet to send [20:50:00]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:44]accept exits with 5 [20:53:44]New connection [20:53:44]New thread 3066920292 created [20:53:44]Thread 3066776932 joined [20:53:44]Waiting for new connection... [20:53:44] Sock 5.Parse request [20:53:44]Sock 5.Check first char [20:53:44]Sock 5.First char is OK [20:53:44]request: POST /json_proto HTTP/1.0 [20:53:44]Method: POST [20:53:44]URL: /json_proto [20:53:44]Method is POST - this is cgi request [20:53:44]url: /json_proto [20:53:44]query_string will be loaded in cgi processing [20:53:44]execute_cgi json_proto POST (null) [20:53:44]execute_cgi path=json_proto method=POST [20:53:44]POST find Content-Length [20:53:44]Host: 172.17.53.195:8080 [20:53:44]Content-Length: 682 [20:53:44]Content-Type: application/json [20:53:44] [20:53:44]POST finish read [20:53:44]Found Content-Length = 682 [20:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [20:53:44]execute_script... [20:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [20:53:44]POST & json_proto [20:53:44]process_json_proto [20:53:44]json parsed OK: [20:53:44]protocol is kg_v1.0 [20:53:44]action value=close_receipt [20:53:44]process_action close_receipt [20:53:44]cmd_close_receipt [20:53:44]MH_GetDate [20:53:44]Write to MH i2c: F0 00 00 55 86 CA [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: F0 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: F0 09 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: F0 09 00 55 86 00 6C BF 16 67 21 48 4A 65 93 [20:53:44]GetLastDocTimeStamp 1729543507 [20:53:44]current date 1729544044 [20:53:44]FM_GetShiftState [20:53:44]SAM_PROTO_GetShiftState [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 13 01 00 [20:53:44]Write to MH i2c: E2 08 00 56 86 80 13 01 00 00 00 00 00 59 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0E 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0E 00 56 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 62 [20:53:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:53:44]wFMCommunicate OK [20:53:44]SAM_PROTO_GetShiftState done [20:53:44]FM_GetShiftState done [20:53:44]opened in 1729470944 [20:53:44]opened+sec_in_day 1729557344 [20:53:44]quantity*price = 100021 [20:53:44]sum+1 = 100023 [20:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 319 21.10.2024 20:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166208 ФПД: 124684492924324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166208&fm=124684492924324&tin=02508201610067®Number=0000000000091764&sum=100000 [20:53:45]StoreToDocumentArchive [20:53:45]shift 535 fd 166208 [20:53:45]save to /storage/0535/doc_00166208 [20:53:45]save last doc name /storage/0535/doc_00166208 to /storage/kkm_last_doc_name [20:53:45]save OK [20:53:45]Clear old archive folders... [20:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:45]tlvbuf is 0184BFE0 [20:53:45]SAM_PROTO_ClearQueue [20:53:45]wFMCommunicate request_size=4 [20:53:45]MH_SAM_APDU [20:53:45]CAPDU: 80 09 00 00 [20:53:45]Write to MH i2c: E2 08 00 63 86 80 09 00 00 00 00 00 00 5B [20:53:45]Write i2c OK [20:53:45]MH_I2C_Read... [20:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:45]Read from MH i2c: E2 [20:53:45]MH_I2C_Read... [20:53:45]Read from MH i2c: E2 03 00 [20:53:45]MH_I2C_Read... [20:53:45]Read from MH i2c: E2 03 00 63 86 00 90 00 5D [20:53:45]RAPDU: 90 00 [20:53:45]wFMCommunicate OK [20:53:45]SAM_PROTO_ClearQueue done [20:53:45]KKMCreateOFDPacket [20:53:45]OFDProtocolAddRootSTLVToBuf [20:53:45]FM_MakeSignedData [20:53:45]FM_MakeSignedData [20:53:45]SAM_PROTO_SignData [20:53:45]wFMCommunicate request_size=4 [20:53:45]MH_SAM_APDU [20:53:45]CAPDU: 80 0D 01 02 [20:53:45]Write to MH i2c: E2 08 00 64 86 80 0D 01 02 00 00 00 00 63 [20:53:45]Write i2c OK [20:53:45]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 03 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 03 00 64 86 00 90 00 5E [20:53:46]RAPDU: 90 00 [20:53:46]wFMCommunicate OK [20:53:46]wFMCommunicate request_size=255 [20:53:46]MH_SAM_APDU [20:53: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 3F 01 00 00 F4 03 04 00 6C BF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 89 02 00 35 04 06 00 71 [20:53:46]Write to MH i2c: E2 02 01 65 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 01 00 00 F4 03 04 00 6C BF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 89 02 00 35 04 06 00 71 00 00 53 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 03 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 03 00 65 86 00 90 00 5F [20:53:46]RAPDU: 90 00 [20:53:46]wFMCommunicate OK [20:53:46]wFMCommunicate request_size=10 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 0D 02 02 05 66 5E E8 E5 A4 [20:53:46]Write to MH i2c: E2 0D 00 66 86 80 0D 02 02 05 00 66 5E E8 E5 A4 00 00 A5 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 03 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 03 00 66 86 00 90 00 60 [20:53:46]RAPDU: 90 00 [20:53:46]wFMCommunicate OK [20:53:46]wFMCommunicate request_size=4 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 0D 03 02 [20:53:46]Write to MH i2c: E2 08 00 67 86 80 0D 03 02 00 00 00 00 68 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 0B 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 0B 00 67 86 00 5F 8F 8F B0 F5 A8 2D 2E 90 00 8E [20:53:46]RAPDU: 5F 8F 8F B0 F5 A8 2D 2E 90 00 [20:53:46]wFMCommunicate OK [20:53:46]SAM_PROTO_SignData done [20:53:46]FM_MakeSignedData done [20:53:46]CreateOFDProtocolMessage [20:53:46]wFMCommunicate request_size=4 [20:53:46]MH_SAM_APDU [20:53:46]CAPDU: 80 11 00 00 [20:53:46]Write to MH i2c: E2 08 00 68 86 80 11 00 00 00 00 00 00 68 [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:46]Read from MH i2c: E2 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 17 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: E2 17 00 68 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C0 [20:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:53:46]wFMCommunicate OK [20:53:46]CreateOFDProtocolMessage done [20:53:46]OFDSenderStorePacket 166208 [20:53:46]StoreOFDPacket docnum=166208 [20:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 05 FF 07 01 11 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 01 00 00 F4 03 04 00 6C BF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 89 02 00 35 04 06 00 71 66 5E E8 E5 A4 5F 8F 8F B0 F5 A8 2D 2E [20:53:46]CheckFolder [20:53:46]dirname=/storage/ofd_packets [20:53:46]CheckFolder done [20:53:46]ProducePacketName [20:53:46]name=ofd_packets/00166208 [20:53:46]NVStorageSaveData ofd_packets/00166208 [20:53:46]File name is /storage/ofd_packets/00166208 [20:53:46]Write 301 bytes [20:53:46]NVStorageSaveData done [20:53:46]OFDSenderStorePacket done [20:53:46]KKMCreateOFDPacket done [20:53:46]NVStorageSaveData kkm_last_timestamp [20:53:46]File name is /storage/kkm_last_timestamp [20:53:46]Write 4 bytes [20:53:46]NVStorageSaveData done [20:53:46]ExternCall_PrintAddStr [20:53:46]wPrintStart [20:53:46]Write to MH i2c: 01 00 00 69 86 EF [20:53:46]Write i2c OK [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: 01 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: 01 07 00 [20:53:46]MH_I2C_Read... [20:53:46]Read from MH i2c: 01 07 00 69 86 00 00 00 00 00 FF 0F 04 [20:53:46]RasterBufferAndPrint [20:53:46]line Счет N : (1)220781 [20:53:46]line ИНН: 02508201610067 [20:53:46]line Контрольно-Кассовый Чек [20:53:46]line ПРОДАЖА [20:53:46]line ТРК (МРК, ГНК) : 24 [20:53:46]line Товар: 2710124500 [20:53:46]line Аи-95-К-5 [20:53:46]line 13.480 * 74.20 [20:53:46]line = 1000.22 [20:53:46]line НДС 12% НСП 1% [20:53:46]line > о реализуемом товаре [20:53:46]line ОКРУГЛЕНИЕ: -0.22 [20:53:46]line ИТОГО: 1000.00 [20:53:46]line Внесено: 1000.00 [20:53:46]line СДАЧА: 0.00 [20:53:46]line НСП 1% : 8.85 [20:53:46]line НДС 12% : 106.22 [20:53:46]line Наличными: 1000.00 [20:53:46]line Безнал.: 0.00 [20:53:46]line Место: АЗС № 161 "Партнер Нефть" [20:53:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [20:53:46]line СНО: Общий режим [20:53:46]line Чек 319 21.10.2024 20:54 [20:53:46]line Смена: 535 ФФД: 1.0 [20:53:46]line ЗНМ: 0300000104 [20:53:46]line РНМ: 0000000000091764 [20:53:46]line Версия ККМ: 001 [20:53:46]line ФМ: 0000000000871759 [20:53:46]line ФД: 166208 [20:53:46]line ФПД: 124684492924324 [20:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T205404&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166208&fm=124684492924324&tin=02508201610067®Number=0000000000091764&sum=100000 [20:53:46]OFD Sender: Processing packet 166208 [packets to send 48, broken 47] [20:53:46]ProducePacketName [20:53:46]name=ofd_packets/00166208 [20:53:46]OFD Sender: To server: pG, [20:53:46]CommunicateWithHost lk.salyk.kg:30040 [20:53:46]ConnectInit lk.salyk.kg [20:53:46]written 0, free lines is 4095 [20:53:46]Connected sock=9 [20:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 05 FF 07 01 11 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 01 00 00 F4 03 04 00 6C BF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 89 02 00 35 04 06 00 71 66 5E E8 E5 A4 5F 8F 8F B0 F5 A8 2D 2E [20:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F3 F5 47 00 16 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 40 89 02 00 F4 03 04 00 DA 65 16 67 B6 04 01 00 00 6C 54 D0 62 4C CF 04 4F [20:53:47]CommunicateWithHost err = 0 [20:53:47]CheckOFDResponse [20:53:47]1017 (14) - 77093643461234 [20:53:47]1041 (16) - 0000000000871759 [20:53:47]1040 (4) - 166208 [20:53:47]1012 (4) - 21.10.2024 14:31 [20:53:47]1206 (1) - 0 [20:53:47]OFD Sender: Remove packet 166208 [20:53:47]ProducePacketName [20:53:47]name=ofd_packets/00166208 [20:53:47]NVStorageDeleteData [20:53:47]Write to MH i2c: 01 00 00 94 86 1A [20:53:47]Write i2c OK [20:53:47]MH_I2C_Read... [20:53:47]Read from MH i2c: 01 [20:53:47]MH_I2C_Read... [20:53:47]Read from MH i2c: 01 07 00 [20:53:47]MH_I2C_Read... [20:53:47]Read from MH i2c: 01 07 00 94 86 00 00 00 00 00 C9 0C F6 [20:53:47]RasterBufferAndPrint [20:53:47]line [20:53:47]line [20:53:47]line [20:53:47]line [20:53:47]line [20:53:47]written 0, free lines is 3278 [20:53:47]MH_Cut [20:53:47]Write to MH i2c: D1 01 00 9B 86 01 F3 [20:53:47]Write i2c OK [20:53:47]MH_I2C_Read... [20:53:47]Read from MH i2c: D1 [20:53:47]MH_I2C_Read... [20:53:47]Read from MH i2c: D1 01 00 [20:53:47]MH_I2C_Read... [20:53:47]Read from MH i2c: D1 01 00 9B 86 00 F2 [20:53:47]Write to MH i2c: 01 00 00 9C 86 22 [20:53:47]Write i2c OK [20:53:47]MH_I2C_Read... [20:53:47]OFD Sender: No OFD packet to send [20:53:48]*** Cut start [20:53:48]*** Partial cut [20:53:48]*** CUTSNS_PIN = 1 [20:53:48]*** CUTSNS_PIN = 0 [20:53:48]*** Brake cut motor [20:53:48]Read from MH i2c: 01 [20:53:48]MH_I2C_Read... [20:53:48]*** Stop cut motor [20:53:48]*** Cut end [20:53:48]Read from MH i2c: 01 07 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: 01 07 00 9C 86 00 00 00 00 00 FF 0F 37 [20:53:48]process_action close_receipt done [20:53:48]requested_data is exist [20:53:48]produce_requested_data [20:53:48]requested_item fm.sn is exist - process it [20:53:48]wFMCommunicate request_size=4 [20:53:48]MH_SAM_APDU [20:53:48]CAPDU: 80 11 00 00 [20:53:48]Write to MH i2c: E2 08 00 9D 86 80 11 00 00 00 00 00 00 9D [20:53:48]Write i2c OK [20:53:48]MH_I2C_Read... [20:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:48]Read from MH i2c: E2 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 17 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 17 00 9D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F5 [20:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [20:53:48]wFMCommunicate OK [20:53:48]requested_item fd.num is exist - process it [20:53:48]SAM_PROTO_GetFieldsCounters [20:53:48]wFMCommunicate request_size=4 [20:53:48]MH_SAM_APDU [20:53:48]CAPDU: 80 13 00 00 [20:53:48]Write to MH i2c: E2 08 00 9E 86 80 13 00 00 00 00 00 00 A0 [20:53:48]Write i2c OK [20:53:48]MH_I2C_Read... [20:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:48]Read from MH i2c: E2 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 62 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 62 00 9E 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [20:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 40 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:48]wFMCommunicate OK [20:53:48]SAM_PROTO_GetFieldsCounters done [20:53:48]requested_item shift.num is exist - process it [20:53:48]requested_item shift.opened is exist - process it [20:53:48]req_shift_opened [20:53:48]FM_GetShiftState [20:53:48]SAM_PROTO_GetShiftState [20:53:48]wFMCommunicate request_size=4 [20:53:48]MH_SAM_APDU [20:53:48]CAPDU: 80 13 01 00 [20:53:48]Write to MH i2c: E2 08 00 9F 86 80 13 01 00 00 00 00 00 A2 [20:53:48]Write i2c OK [20:53:48]MH_I2C_Read... [20:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:48]Read from MH i2c: E2 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 0E 00 [20:53:48]MH_I2C_Read... [20:53:48]Read from MH i2c: E2 0E 00 9F 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AB [20:53:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [20:53:48]wFMCommunicate OK [20:53:48]SAM_PROTO_GetShiftState done [20:53:48]FM_GetShiftState done [20:53:48]req_shift_opened done [20:53:48]requested_item shift.open_date is exist - process it [20:53:48]req_shift_open_date [20:53:48]req_shift_open_date done [20:53:48]produce_requested_data done [20:53:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166208,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [20:53:48]process_action_free close_receipt [20:53:48]json_value_free [20:53:48]json_value_free done [20:53:48]process_json_proto returns [20:53:48]Send response to host [20:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166208,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [20:53:48]free response buf [20:53:48]execute_script done [20:53:48]execute_script returns [20:53:48]free content buf [20:53:48]Sock 5.Close socket [20:53:48]Sock 5.Thread stoped [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:42]OFD Sender: No OFD packet to send [20:56:47]OFD Sender: No OFD packet to send [20:56:52]OFD Sender: No OFD packet to send [20:56:57]OFD Sender: No OFD packet to send [20:57:02]OFD Sender: No OFD packet to send [20:57:07]OFD Sender: No OFD packet to send [20:57:12]OFD Sender: No OFD packet to send [20:57:17]OFD Sender: No OFD packet to send [20:57:22]OFD Sender: No OFD packet to send [20:57:27]OFD Sender: No OFD packet to send [20:57:32]OFD Sender: No OFD packet to send [20:57:37]OFD Sender: No OFD packet to send [20:57:42]OFD Sender: No OFD packet to send [20:57:47]OFD Sender: No OFD packet to send [20:57:52]OFD Sender: No OFD packet to send [20:57:57]OFD Sender: No OFD packet to send [20:58:02]OFD Sender: No OFD packet to send [20:58:07]OFD Sender: No OFD packet to send [20:58:12]OFD Sender: No OFD packet to send [20:58:17]OFD Sender: No OFD packet to send [20:58:22]OFD Sender: No OFD packet to send [20:58:27]OFD Sender: No OFD packet to send [20:58:32]OFD Sender: No OFD packet to send [20:58:37]OFD Sender: No OFD packet to send [20:58:42]OFD Sender: No OFD packet to send [20:58:47]OFD Sender: No OFD packet to send [20:58:52]OFD Sender: No OFD packet to send [20:58:57]OFD Sender: No OFD packet to send [20:59:02]OFD Sender: No OFD packet to send [20:59:07]OFD Sender: No OFD packet to send [20:59:12]OFD Sender: No OFD packet to send [20:59:17]OFD Sender: No OFD packet to send [20:59:22]OFD Sender: No OFD packet to send [20:59:27]OFD Sender: No OFD packet to send [20:59:32]OFD Sender: No OFD packet to send [20:59:37]OFD Sender: No OFD packet to send [20:59:42]OFD Sender: No OFD packet to send [20:59:47]OFD Sender: No OFD packet to send [20:59:52]OFD Sender: No OFD packet to send [21:00:02]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:13]ConnectInit Can't connect to host [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:48]accept exits with 6 [21:02:48]New connection [21:02:48]New thread 3066776932 created [21:02:48]Thread 3066920292 joined [21:02:48]Waiting for new connection... [21:02:48] Sock 6.Parse request [21:02:48]Sock 6.Check first char [21:02:48]Sock 6.First char is OK [21:02:48]request: POST /json_proto HTTP/1.0 [21:02:48]Method: POST [21:02:48]URL: /json_proto [21:02:48]Method is POST - this is cgi request [21:02:48]url: /json_proto [21:02:48]query_string will be loaded in cgi processing [21:02:48]execute_cgi json_proto POST (null) [21:02:48]execute_cgi path=json_proto method=POST [21:02:48]POST find Content-Length [21:02:48]Host: 172.17.53.195:8080 [21:02:48]Content-Length: 677 [21:02:48]Content-Type: application/json [21:02:48] [21:02:48]POST finish read [21:02:48]Found Content-Length = 677 [21:02:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:48]execute_script... [21:02:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:48]POST & json_proto [21:02:48]process_json_proto [21:02:48]json parsed OK: [21:02:48]protocol is kg_v1.0 [21:02:48]action value=close_receipt [21:02:48]process_action close_receipt [21:02:48]cmd_close_receipt [21:02:48]MH_GetDate [21:02:48]Write to MH i2c: F0 00 00 A0 86 15 [21:02:48]Write i2c OK [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: F0 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: F0 09 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: F0 09 00 A0 86 00 8C C1 16 67 21 48 4A 65 00 [21:02:48]GetLastDocTimeStamp 1729544044 [21:02:48]current date 1729544588 [21:02:48]FM_GetShiftState [21:02:48]SAM_PROTO_GetShiftState [21:02:48]wFMCommunicate request_size=4 [21:02:48]MH_SAM_APDU [21:02:48]CAPDU: 80 13 01 00 [21:02:48]Write to MH i2c: E2 08 00 A1 86 80 13 01 00 00 00 00 00 A4 [21:02:48]Write i2c OK [21:02:48]MH_I2C_Read... [21:02:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:48]Read from MH i2c: E2 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 0E 00 [21:02:48]MH_I2C_Read... [21:02:48]Read from MH i2c: E2 0E 00 A1 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 AD [21:02:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:02:48]wFMCommunicate OK [21:02:48]SAM_PROTO_GetShiftState done [21:02:48]FM_GetShiftState done [21:02:48]opened in 1729470944 [21:02:48]opened+sec_in_day 1729557344 [21:02:48]quantity*price = 50041 [21:02:48]sum+1 = 50042 [21:02:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 320 21.10.2024 21:03 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166209 ФПД: 8143013286297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166209&fm=8143013286297&tin=02508201610067®Number=0000000000091764&sum=50000 [21:02:49]StoreToDocumentArchive [21:02:49]shift 535 fd 166209 [21:02:49]save to /storage/0535/doc_00166209 [21:02:49]save last doc name /storage/0535/doc_00166209 to /storage/kkm_last_doc_name [21:02:49]save OK [21:02:49]Clear old archive folders... [21:02:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:49]tlvbuf is 01BAAEF0 [21:02:49]SAM_PROTO_ClearQueue [21:02:49]wFMCommunicate request_size=4 [21:02:49]MH_SAM_APDU [21:02:49]CAPDU: 80 09 00 00 [21:02:49]Write to MH i2c: E2 08 00 AE 86 80 09 00 00 00 00 00 00 A6 [21:02:49]Write i2c OK [21:02:49]MH_I2C_Read... [21:02:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:49]Read from MH i2c: E2 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: E2 03 00 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: E2 03 00 AE 86 00 90 00 A8 [21:02:49]RAPDU: 90 00 [21:02:49]wFMCommunicate OK [21:02:49]SAM_PROTO_ClearQueue done [21:02:49]KKMCreateOFDPacket [21:02:49]OFDProtocolAddRootSTLVToBuf [21:02:49]FM_MakeSignedData [21:02:49]FM_MakeSignedData [21:02:49]SAM_PROTO_SignData [21:02:49]wFMCommunicate request_size=4 [21:02:49]MH_SAM_APDU [21:02:49]CAPDU: 80 0D 01 02 [21:02:49]Write to MH i2c: E2 08 00 AF 86 80 0D 01 02 00 00 00 00 AE [21:02:49]Write i2c OK [21:02:49]MH_I2C_Read... [21:02:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:49]Read from MH i2c: E2 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: E2 03 00 [21:02:49]MH_I2C_Read... [21:02:49]Read from MH i2c: E2 03 00 AF 86 00 90 00 A9 [21:02:49]RAPDU: 90 00 [21:02:49]wFMCommunicate OK [21:02:49]wFMCommunicate request_size=255 [21:02:49]MH_SAM_APDU [21:02:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 8C C1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 89 02 00 35 04 06 00 07 [21:02:49]Write to MH i2c: E2 02 01 B0 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8C C1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 89 02 00 35 04 06 00 07 00 00 3B [21:02:49]Write i2c OK [21:02:49]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 B0 86 00 90 00 AA [21:02:50]RAPDU: 90 00 [21:02:50]wFMCommunicate OK [21:02:50]wFMCommunicate request_size=10 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 0D 02 02 05 67 F1 6A 11 99 [21:02:50]Write to MH i2c: E2 0D 00 B1 86 80 0D 02 02 05 00 67 F1 6A 11 99 00 00 27 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 03 00 B1 86 00 90 00 AB [21:02:50]RAPDU: 90 00 [21:02:50]wFMCommunicate OK [21:02:50]wFMCommunicate request_size=4 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 0D 03 02 [21:02:50]Write to MH i2c: E2 08 00 B2 86 80 0D 03 02 00 00 00 00 B3 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 0B 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 0B 00 B2 86 00 C0 AE 8B E3 39 4E ED 9B 90 00 9F [21:02:50]RAPDU: C0 AE 8B E3 39 4E ED 9B 90 00 [21:02:50]wFMCommunicate OK [21:02:50]SAM_PROTO_SignData done [21:02:50]FM_MakeSignedData done [21:02:50]CreateOFDProtocolMessage [21:02:50]wFMCommunicate request_size=4 [21:02:50]MH_SAM_APDU [21:02:50]CAPDU: 80 11 00 00 [21:02:50]Write to MH i2c: E2 08 00 B3 86 80 11 00 00 00 00 00 00 B3 [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:50]Read from MH i2c: E2 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 17 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: E2 17 00 B3 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0B [21:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:02:50]wFMCommunicate OK [21:02:50]CreateOFDProtocolMessage done [21:02:50]OFDSenderStorePacket 166209 [21:02:50]StoreOFDPacket docnum=166209 [21:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 79 C4 07 01 6E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8C C1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 89 02 00 35 04 06 00 07 67 F1 6A 11 99 C0 AE 8B E3 39 4E ED 9B [21:02:50]CheckFolder [21:02:50]dirname=/storage/ofd_packets [21:02:50]CheckFolder done [21:02:50]ProducePacketName [21:02:50]name=ofd_packets/00166209 [21:02:50]NVStorageSaveData ofd_packets/00166209 [21:02:50]File name is /storage/ofd_packets/00166209 [21:02:50]Write 301 bytes [21:02:50]NVStorageSaveData done [21:02:50]OFDSenderStorePacket done [21:02:50]KKMCreateOFDPacket done [21:02:50]NVStorageSaveData kkm_last_timestamp [21:02:50]File name is /storage/kkm_last_timestamp [21:02:50]Write 4 bytes [21:02:50]NVStorageSaveData done [21:02:50]ExternCall_PrintAddStr [21:02:50]wPrintStart [21:02:50]Write to MH i2c: 01 00 00 B4 86 3A [21:02:50]Write i2c OK [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: 01 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: 01 07 00 [21:02:50]MH_I2C_Read... [21:02:50]Read from MH i2c: 01 07 00 B4 86 00 00 00 00 00 FF 0F 4F [21:02:50]RasterBufferAndPrint [21:02:50]line Счет N : (1)220782 [21:02:50]line ИНН: 02508201610067 [21:02:50]line Контрольно-Кассовый Чек [21:02:50]line ПРОДАЖА [21:02:50]line ТРК (МРК, ГНК) : 23 [21:02:50]line Товар: 2710124130 [21:02:50]line Аи-92-К-5 [21:02:50]line 7.480 * 66.90 [21:02:50]line = 500.41 [21:02:50]line НДС 12% НСП 1% [21:02:50]line > о реализуемом товаре [21:02:50]line ОКРУГЛЕНИЕ: -0.41 [21:02:50]line ИТОГО: 500.00 [21:02:50]line Внесено: 500.00 [21:02:50]line СДАЧА: 0.00 [21:02:50]line НСП 1% : 4.43 [21:02:50]line НДС 12% : 53.14 [21:02:50]line Наличными: 500.00 [21:02:50]line Безнал.: 0.00 [21:02:50]line Место: АЗС № 161 "Партнер Нефть" [21:02:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:02:50]line СНО: Общий режим [21:02:50]line Чек 320 21.10.2024 21:03 [21:02:50]line Смена: 535 ФФД: 1.0 [21:02:50]line ЗНМ: 0300000104 [21:02:50]line РНМ: 0000000000091764 [21:02:50]line Версия ККМ: 001 [21:02:50]line ФМ: 0000000000871759 [21:02:50]line ФД: 166209 [21:02:50]line ФПД: 8143013286297 [21:02:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210308&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166209&fm=8143013286297&tin=02508201610067®Number=0000000000091764&sum=50000 [21:02:50]OFD Sender: Processing packet 166209 [packets to send 48, broken 47] [21:02:50]ProducePacketName [21:02:50]name=ofd_packets/00166209 [21:02:50]OFD Sender: To server: pG, [21:02:50]CommunicateWithHost lk.salyk.kg:30040 [21:02:50]ConnectInit lk.salyk.kg [21:02:50]written 0, free lines is 4095 [21:02:50]Connected sock=9 [21:02:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 79 C4 07 01 6E 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 8C C1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 89 02 00 35 04 06 00 07 67 F1 6A 11 99 C0 AE 8B E3 39 4E ED 9B [21:02:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 D2 4D 47 00 A1 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 41 89 02 00 F4 03 04 00 FA 67 16 67 B6 04 01 00 00 37 68 FB E1 06 70 B6 55 [21:02:50]CommunicateWithHost err = 0 [21:02:50]CheckOFDResponse [21:02:50]1017 (14) - 77093643461234 [21:02:50]1041 (16) - 0000000000871759 [21:02:50]1040 (4) - 166209 [21:02:50]1012 (4) - 21.10.2024 14:40 [21:02:50]1206 (1) - 0 [21:02:50]OFD Sender: Remove packet 166209 [21:02:50]ProducePacketName [21:02:50]name=ofd_packets/00166209 [21:02:50]NVStorageDeleteData [21:02:51]Write to MH i2c: 01 00 00 DF 86 65 [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: 01 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: 01 07 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: 01 07 00 DF 86 00 00 00 00 00 C8 0C 40 [21:02:51]RasterBufferAndPrint [21:02:51]line [21:02:51]line [21:02:51]line [21:02:51]line [21:02:51]line [21:02:51]written 0, free lines is 3278 [21:02:51]MH_Cut [21:02:51]Write to MH i2c: D1 01 00 E6 86 01 3E [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: D1 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: D1 01 00 [21:02:51]MH_I2C_Read... [21:02:51]Read from MH i2c: D1 01 00 E6 86 00 3D [21:02:51]Write to MH i2c: 01 00 00 E7 86 6D [21:02:51]Write i2c OK [21:02:51]MH_I2C_Read... [21:02:51]OFD Sender: No OFD packet to send [21:02:51]*** Cut start [21:02:51]*** Partial cut [21:02:51]*** CUTSNS_PIN = 1 [21:02:51]*** CUTSNS_PIN = 0 [21:02:52]*** Brake cut motor [21:02:52]Read from MH i2c: 01 [21:02:52]MH_I2C_Read... [21:02:52]*** Stop cut motor [21:02:52]*** Cut end [21:02:52]Read from MH i2c: 01 07 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: 01 07 00 E7 86 00 00 00 00 00 FF 0F 82 [21:02:52]process_action close_receipt done [21:02:52]requested_data is exist [21:02:52]produce_requested_data [21:02:52]requested_item fm.sn is exist - process it [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 11 00 00 [21:02:52]Write to MH i2c: E2 08 00 E8 86 80 11 00 00 00 00 00 00 E8 [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 17 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 17 00 E8 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 40 [21:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:02:52]wFMCommunicate OK [21:02:52]requested_item fd.num is exist - process it [21:02:52]SAM_PROTO_GetFieldsCounters [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 13 00 00 [21:02:52]Write to MH i2c: E2 08 00 E9 86 80 13 00 00 00 00 00 00 EB [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 62 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 62 00 E9 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [21:02:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 41 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:02:52]wFMCommunicate OK [21:02:52]SAM_PROTO_GetFieldsCounters done [21:02:52]requested_item shift.num is exist - process it [21:02:52]requested_item shift.opened is exist - process it [21:02:52]req_shift_opened [21:02:52]FM_GetShiftState [21:02:52]SAM_PROTO_GetShiftState [21:02:52]wFMCommunicate request_size=4 [21:02:52]MH_SAM_APDU [21:02:52]CAPDU: 80 13 01 00 [21:02:52]Write to MH i2c: E2 08 00 EA 86 80 13 01 00 00 00 00 00 ED [21:02:52]Write i2c OK [21:02:52]MH_I2C_Read... [21:02:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:52]Read from MH i2c: E2 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 0E 00 [21:02:52]MH_I2C_Read... [21:02:52]Read from MH i2c: E2 0E 00 EA 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F6 [21:02:52]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:02:52]wFMCommunicate OK [21:02:52]SAM_PROTO_GetShiftState done [21:02:52]FM_GetShiftState done [21:02:52]req_shift_opened done [21:02:52]requested_item shift.open_date is exist - process it [21:02:52]req_shift_open_date [21:02:52]req_shift_open_date done [21:02:52]produce_requested_data done [21:02:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166209,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:02:52]process_action_free close_receipt [21:02:52]json_value_free [21:02:52]json_value_free done [21:02:52]process_json_proto returns [21:02:52]Send response to host [21:02:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166209,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:02:52]free response buf [21:02:52]execute_script done [21:02:52]execute_script returns [21:02:52]free content buf [21:02:52]Sock 6.Close socket [21:02:52]Sock 6.Thread stoped [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:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:01]accept exits with 7 [21:08:01]New connection [21:08:01]New thread 3066920292 created [21:08:01]Thread 3066776932 joined [21:08:01]Waiting for new connection... [21:08:01] Sock 7.Parse request [21:08:01]Sock 7.Check first char [21:08:01]Sock 7.First char is OK [21:08:01]request: POST /json_proto HTTP/1.0 [21:08:01]Method: POST [21:08:01]URL: /json_proto [21:08:01]Method is POST - this is cgi request [21:08:01]url: /json_proto [21:08:01]query_string will be loaded in cgi processing [21:08:01]execute_cgi json_proto POST (null) [21:08:01]execute_cgi path=json_proto method=POST [21:08:01]POST find Content-Length [21:08:01]Host: 172.17.53.195:8080 [21:08:01]Content-Length: 677 [21:08:01]Content-Type: application/json [21:08:01] [21:08:01]POST finish read [21:08:01]Found Content-Length = 677 [21:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [21:08:01]execute_script... [21:08:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [21:08:01]POST & json_proto [21:08:01]process_json_proto [21:08:01]json parsed OK: [21:08:01]protocol is kg_v1.0 [21:08:01]action value=close_receipt [21:08:01]process_action close_receipt [21:08:01]cmd_close_receipt [21:08:01]MH_GetDate [21:08:01]Write to MH i2c: F0 00 00 EB 86 60 [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: F0 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: F0 09 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: F0 09 00 EB 86 00 C6 C2 16 67 21 48 4A 65 86 [21:08:01]GetLastDocTimeStamp 1729544588 [21:08:01]current date 1729544902 [21:08:01]FM_GetShiftState [21:08:01]SAM_PROTO_GetShiftState [21:08:01]wFMCommunicate request_size=4 [21:08:01]MH_SAM_APDU [21:08:01]CAPDU: 80 13 01 00 [21:08:01]Write to MH i2c: E2 08 00 EC 86 80 13 01 00 00 00 00 00 EF [21:08:01]Write i2c OK [21:08:01]MH_I2C_Read... [21:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:01]Read from MH i2c: E2 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 0E 00 [21:08:01]MH_I2C_Read... [21:08:01]Read from MH i2c: E2 0E 00 EC 86 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F8 [21:08:01]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:08:01]wFMCommunicate OK [21:08:01]SAM_PROTO_GetShiftState done [21:08:01]FM_GetShiftState done [21:08:01]opened in 1729470944 [21:08:01]opened+sec_in_day 1729557344 [21:08:01]quantity*price = 50010 [21:08:01]sum+1 = 50012 [21:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 321 21.10.2024 21:08 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166210 ФПД: 83070893362788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210822&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166210&fm=83070893362788&tin=02508201610067®Number=0000000000091764&sum=50000 [21:08:03]StoreToDocumentArchive [21:08:03]shift 535 fd 166210 [21:08:03]save to /storage/0535/doc_00166210 [21:08:03]save last doc name /storage/0535/doc_00166210 to /storage/kkm_last_doc_name [21:08:03]save OK [21:08:03]Clear old archive folders... [21:08:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:03]tlvbuf is 01445770 [21:08:03]SAM_PROTO_ClearQueue [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 09 00 00 [21:08:03]Write to MH i2c: E2 08 00 F9 86 80 09 00 00 00 00 00 00 F1 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 F9 86 00 90 00 F3 [21:08:03]RAPDU: 90 00 [21:08:03]wFMCommunicate OK [21:08:03]SAM_PROTO_ClearQueue done [21:08:03]KKMCreateOFDPacket [21:08:03]OFDProtocolAddRootSTLVToBuf [21:08:03]FM_MakeSignedData [21:08:03]FM_MakeSignedData [21:08:03]SAM_PROTO_SignData [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 0D 01 02 [21:08:03]Write to MH i2c: E2 08 00 FA 86 80 0D 01 02 00 00 00 00 F9 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 FA 86 00 90 00 F4 [21:08:03]RAPDU: 90 00 [21:08:03]wFMCommunicate OK [21:08:03]wFMCommunicate request_size=255 [21:08:03]MH_SAM_APDU [21: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 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 41 01 00 00 F4 03 04 00 C6 C2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 89 02 00 35 04 06 00 4B [21:08:03]Write to MH i2c: E2 02 01 FB 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 41 01 00 00 F4 03 04 00 C6 C2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 89 02 00 35 04 06 00 4B 00 00 DF [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 FB 86 00 90 00 F5 [21:08:03]RAPDU: 90 00 [21:08:03]wFMCommunicate OK [21:08:03]wFMCommunicate request_size=10 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 0D 02 02 05 8D 73 17 0E 64 [21:08:03]Write to MH i2c: E2 0D 00 FC 86 80 0D 02 02 05 00 8D 73 17 0E 64 00 00 8F [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 03 00 FC 86 00 90 00 F6 [21:08:03]RAPDU: 90 00 [21:08:03]wFMCommunicate OK [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 0D 03 02 [21:08:03]Write to MH i2c: E2 08 00 FD 86 80 0D 03 02 00 00 00 00 FE [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 0B 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 0B 00 FD 86 00 B9 38 E1 48 AE 1B 21 71 90 00 74 [21:08:03]RAPDU: B9 38 E1 48 AE 1B 21 71 90 00 [21:08:03]wFMCommunicate OK [21:08:03]SAM_PROTO_SignData done [21:08:03]FM_MakeSignedData done [21:08:03]CreateOFDProtocolMessage [21:08:03]wFMCommunicate request_size=4 [21:08:03]MH_SAM_APDU [21:08:03]CAPDU: 80 11 00 00 [21:08:03]Write to MH i2c: E2 08 00 FE 86 80 11 00 00 00 00 00 00 FE [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:03]Read from MH i2c: E2 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 17 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: E2 17 00 FE 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 56 [21:08:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:08:03]wFMCommunicate OK [21:08:03]CreateOFDProtocolMessage done [21:08:03]OFDSenderStorePacket 166210 [21:08:03]StoreOFDPacket docnum=166210 [21:08:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B6 6B 07 01 09 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 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 41 01 00 00 F4 03 04 00 C6 C2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 89 02 00 35 04 06 00 4B 8D 73 17 0E 64 B9 38 E1 48 AE 1B 21 71 [21:08:03]CheckFolder [21:08:03]dirname=/storage/ofd_packets [21:08:03]CheckFolder done [21:08:03]ProducePacketName [21:08:03]name=ofd_packets/00166210 [21:08:03]NVStorageSaveData ofd_packets/00166210 [21:08:03]File name is /storage/ofd_packets/00166210 [21:08:03]Write 301 bytes [21:08:03]NVStorageSaveData done [21:08:03]OFDSenderStorePacket done [21:08:03]KKMCreateOFDPacket done [21:08:03]NVStorageSaveData kkm_last_timestamp [21:08:03]File name is /storage/kkm_last_timestamp [21:08:03]Write 4 bytes [21:08:03]NVStorageSaveData done [21:08:03]ExternCall_PrintAddStr [21:08:03]wPrintStart [21:08:03]Write to MH i2c: 01 00 00 FF 86 85 [21:08:03]Write i2c OK [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 07 00 [21:08:03]MH_I2C_Read... [21:08:03]Read from MH i2c: 01 07 00 FF 86 00 00 00 00 00 FF 0F 9A [21:08:03]RasterBufferAndPrint [21:08:03]line Счет N : (1)220783 [21:08:03]line ИНН: 02508201610067 [21:08:03]line Контрольно-Кассовый Чек [21:08:03]line ПРОДАЖА [21:08:03]line ТРК (МРК, ГНК) : 24 [21:08:03]line Товар: 2710124500 [21:08:03]line Аи-95-К-5 [21:08:03]line 6.740 * 74.20 [21:08:03]line = 500.11 [21:08:03]line НДС 12% НСП 1% [21:08:03]line > о реализуемом товаре [21:08:03]line ОКРУГЛЕНИЕ: -0.11 [21:08:03]line ИТОГО: 500.00 [21:08:03]line Внесено: 500.00 [21:08:03]line СДАЧА: 0.00 [21:08:03]line НСП 1% : 4.43 [21:08:03]line НДС 12% : 53.11 [21:08:03]line Наличными: 500.00 [21:08:03]line Безнал.: 0.00 [21:08:03]line Место: АЗС № 161 "Партнер Нефть" [21:08:03]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:08:03]line СНО: Общий режим [21:08:03]line Чек 321 21.10.2024 21:08 [21:08:03]line Смена: 535 ФФД: 1.0 [21:08:03]line ЗНМ: 0300000104 [21:08:03]line РНМ: 0000000000091764 [21:08:03]line Версия ККМ: 001 [21:08:03]line ФМ: 0000000000871759 [21:08:03]line ФД: 166210 [21:08:03]line ФПД: 83070893362788 [21:08:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T210822&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166210&fm=83070893362788&tin=02508201610067®Number=0000000000091764&sum=50000 [21:08:03]OFD Sender: Processing packet 166210 [packets to send 48, broken 47] [21:08:03]ProducePacketName [21:08:03]name=ofd_packets/00166210 [21:08:03]OFD Sender: To server: pG, [21:08:03]CommunicateWithHost lk.salyk.kg:30040 [21:08:03]ConnectInit lk.salyk.kg [21:08:03]written 0, free lines is 4095 [21:08:03]Connected sock=6 [21:08:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B6 6B 07 01 09 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 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 41 01 00 00 F4 03 04 00 C6 C2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 89 02 00 35 04 06 00 4B 8D 73 17 0E 64 B9 38 E1 48 AE 1B 21 71 [21: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 35 39 4F 00 00 00 EB CA 47 00 3A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 42 89 02 00 F4 03 04 00 33 69 16 67 B6 04 01 00 00 38 D1 64 C9 E7 E0 60 D8 [21:08:04]CommunicateWithHost err = 0 [21:08:04]CheckOFDResponse [21:08:04]1017 (14) - 77093643461234 [21:08:04]1041 (16) - 0000000000871759 [21:08:04]1040 (4) - 166210 [21:08:04]1012 (4) - 21.10.2024 14:46 [21:08:04]1206 (1) - 0 [21:08:04]OFD Sender: Remove packet 166210 [21:08:04]ProducePacketName [21:08:04]name=ofd_packets/00166210 [21:08:04]NVStorageDeleteData [21:08:04]Write to MH i2c: 01 00 00 2A 87 B1 [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: 01 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: 01 07 00 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: 01 07 00 2A 87 00 00 00 00 00 C3 0C 87 [21:08:04]RasterBufferAndPrint [21:08:04]line [21:08:04]line [21:08:04]line [21:08:04]line [21:08:04]line [21:08:04]written 0, free lines is 3272 [21:08:04]MH_Cut [21:08:04]Write to MH i2c: D1 01 00 31 87 01 8A [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: D1 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: D1 01 00 [21:08:04]MH_I2C_Read... [21:08:04]Read from MH i2c: D1 01 00 31 87 00 89 [21:08:04]Write to MH i2c: 01 00 00 32 87 B9 [21:08:04]Write i2c OK [21:08:04]MH_I2C_Read... [21:08:04]OFD Sender: No OFD packet to send [21:08:05]*** Cut start [21:08:05]*** Partial cut [21:08:05]*** CUTSNS_PIN = 1 [21:08:05]*** CUTSNS_PIN = 0 [21:08:05]*** Brake cut motor [21:08:05]Read from MH i2c: 01 [21:08:05]MH_I2C_Read... [21:08:05]*** Stop cut motor [21:08:05]*** Cut end [21:08:05]Read from MH i2c: 01 07 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: 01 07 00 32 87 00 00 00 00 00 FF 0F CE [21:08:05]process_action close_receipt done [21:08:05]requested_data is exist [21:08:05]produce_requested_data [21:08:05]requested_item fm.sn is exist - process it [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 11 00 00 [21:08:05]Write to MH i2c: E2 08 00 33 87 80 11 00 00 00 00 00 00 34 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 17 00 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 17 00 33 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8C [21:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:08:05]wFMCommunicate OK [21:08:05]requested_item fd.num is exist - process it [21:08:05]SAM_PROTO_GetFieldsCounters [21:08:05]wFMCommunicate request_size=4 [21:08:05]MH_SAM_APDU [21:08:05]CAPDU: 80 13 00 00 [21:08:05]Write to MH i2c: E2 08 00 34 87 80 13 00 00 00 00 00 00 37 [21:08:05]Write i2c OK [21:08:05]MH_I2C_Read... [21:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:05]Read from MH i2c: E2 [21:08:05]MH_I2C_Read... [21:08:05]Read from MH i2c: E2 62 00 [21:08:05]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 62 00 34 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [21: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 42 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:06]wFMCommunicate OK [21:08:06]SAM_PROTO_GetFieldsCounters done [21:08:06]requested_item shift.num is exist - process it [21:08:06]requested_item shift.opened is exist - process it [21:08:06]req_shift_opened [21:08:06]FM_GetShiftState [21:08:06]SAM_PROTO_GetShiftState [21:08:06]wFMCommunicate request_size=4 [21:08:06]MH_SAM_APDU [21:08:06]CAPDU: 80 13 01 00 [21:08:06]Write to MH i2c: E2 08 00 35 87 80 13 01 00 00 00 00 00 39 [21:08:06]Write i2c OK [21:08:06]MH_I2C_Read... [21:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:06]Read from MH i2c: E2 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 0E 00 [21:08:06]MH_I2C_Read... [21:08:06]Read from MH i2c: E2 0E 00 35 87 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 42 [21:08:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:08:06]wFMCommunicate OK [21:08:06]SAM_PROTO_GetShiftState done [21:08:06]FM_GetShiftState done [21:08:06]req_shift_opened done [21:08:06]requested_item shift.open_date is exist - process it [21:08:06]req_shift_open_date [21:08:06]req_shift_open_date done [21:08:06]produce_requested_data done [21:08:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166210,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:08:06]process_action_free close_receipt [21:08:06]json_value_free [21:08:06]json_value_free done [21:08:06]process_json_proto returns [21:08:06]Send response to host [21:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166210,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:08:06]free response buf [21:08:06]execute_script done [21:08:06]execute_script returns [21:08:06]free content buf [21:08:06]Sock 7.Close socket [21:08:06]Sock 7.Thread stoped [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]accept exits with 5 [21:11:39]New connection [21:11:39]New thread 3066776932 created [21:11:39]Thread 3066920292 joined [21:11:39]Waiting for new connection... [21:11:39] Sock 5.Parse request [21:11:39]Sock 5.Check first char [21:11:39]Sock 5.First char is OK [21:11:39]request: POST /json_proto HTTP/1.0 [21:11:39]Method: POST [21:11:39]URL: /json_proto [21:11:39]Method is POST - this is cgi request [21:11:39]url: /json_proto [21:11:39]query_string will be loaded in cgi processing [21:11:39]execute_cgi json_proto POST (null) [21:11:39]execute_cgi path=json_proto method=POST [21:11:39]POST find Content-Length [21:11:39]Host: 172.17.53.195:8080 [21:11:39]Content-Length: 677 [21:11:39]Content-Type: application/json [21:11:39] [21:11:39]POST finish read [21:11:39]Found Content-Length = 677 [21:11:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:39]execute_script... [21:11: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)220784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:39]POST & json_proto [21:11:39]process_json_proto [21:11:39]json parsed OK: [21:11:39]protocol is kg_v1.0 [21:11:39]action value=close_receipt [21:11:39]process_action close_receipt [21:11:39]cmd_close_receipt [21:11:39]MH_GetDate [21:11:39]Write to MH i2c: F0 00 00 36 87 AC [21:11:39]Write i2c OK [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: F0 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: F0 09 00 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: F0 09 00 36 87 00 A0 C3 16 67 21 48 4A 65 AD [21:11:39]GetLastDocTimeStamp 1729544902 [21:11:39]current date 1729545120 [21:11:39]FM_GetShiftState [21:11:39]SAM_PROTO_GetShiftState [21:11:39]wFMCommunicate request_size=4 [21:11:39]MH_SAM_APDU [21:11:39]CAPDU: 80 13 01 00 [21:11:39]Write to MH i2c: E2 08 00 37 87 80 13 01 00 00 00 00 00 3B [21:11:39]Write i2c OK [21:11:39]MH_I2C_Read... [21:11:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:39]Read from MH i2c: E2 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 0E 00 [21:11:39]MH_I2C_Read... [21:11:39]Read from MH i2c: E2 0E 00 37 87 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 44 [21:11:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:11:39]wFMCommunicate OK [21:11:39]SAM_PROTO_GetShiftState done [21:11:39]FM_GetShiftState done [21:11:39]opened in 1729470944 [21:11:39]opened+sec_in_day 1729557344 [21:11:39]quantity*price = 20003 [21:11:39]sum+1 = 20004 [21:11:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 322 21.10.2024 21:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166211 ФПД: 19757951382997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166211&fm=19757951382997&tin=02508201610067®Number=0000000000091764&sum=20000 [21:11:40]StoreToDocumentArchive [21:11:40]shift 535 fd 166211 [21:11:40]save to /storage/0535/doc_00166211 [21:11:40]save last doc name /storage/0535/doc_00166211 to /storage/kkm_last_doc_name [21:11:40]save OK [21:11:40]Clear old archive folders... [21:11:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:11:40]tlvbuf is 0157E770 [21:11:40]SAM_PROTO_ClearQueue [21:11:40]wFMCommunicate request_size=4 [21:11:40]MH_SAM_APDU [21:11:40]CAPDU: 80 09 00 00 [21:11:40]Write to MH i2c: E2 08 00 44 87 80 09 00 00 00 00 00 00 3D [21:11:40]Write i2c OK [21:11:40]MH_I2C_Read... [21:11:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:41]Read from MH i2c: E2 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 44 87 00 90 00 3F [21:11:41]RAPDU: 90 00 [21:11:41]wFMCommunicate OK [21:11:41]SAM_PROTO_ClearQueue done [21:11:41]KKMCreateOFDPacket [21:11:41]OFDProtocolAddRootSTLVToBuf [21:11:41]FM_MakeSignedData [21:11:41]FM_MakeSignedData [21:11:41]SAM_PROTO_SignData [21:11:41]wFMCommunicate request_size=4 [21:11:41]MH_SAM_APDU [21:11:41]CAPDU: 80 0D 01 02 [21:11:41]Write to MH i2c: E2 08 00 45 87 80 0D 01 02 00 00 00 00 45 [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:41]Read from MH i2c: E2 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 45 87 00 90 00 40 [21:11:41]RAPDU: 90 00 [21:11:41]wFMCommunicate OK [21:11:41]wFMCommunicate request_size=255 [21:11:41]MH_SAM_APDU [21:11: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 A0 C3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 89 02 00 35 04 06 00 11 [21:11:41]Write to MH i2c: E2 02 01 46 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 A0 C3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 89 02 00 35 04 06 00 11 00 00 B8 [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:41]Read from MH i2c: E2 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 46 87 00 90 00 41 [21:11:41]RAPDU: 90 00 [21:11:41]wFMCommunicate OK [21:11:41]wFMCommunicate request_size=10 [21:11:41]MH_SAM_APDU [21:11:41]CAPDU: 80 0D 02 02 05 F8 41 AC 75 D5 [21:11:41]Write to MH i2c: E2 0D 00 47 87 80 0D 02 02 05 00 F8 41 AC 75 D5 00 00 81 [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:41]Read from MH i2c: E2 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 03 00 47 87 00 90 00 42 [21:11:41]RAPDU: 90 00 [21:11:41]wFMCommunicate OK [21:11:41]wFMCommunicate request_size=4 [21:11:41]MH_SAM_APDU [21:11:41]CAPDU: 80 0D 03 02 [21:11:41]Write to MH i2c: E2 08 00 48 87 80 0D 03 02 00 00 00 00 4A [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:41]Read from MH i2c: E2 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 0B 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 0B 00 48 87 00 B4 5A 36 C6 46 52 31 81 90 00 9F [21:11:41]RAPDU: B4 5A 36 C6 46 52 31 81 90 00 [21:11:41]wFMCommunicate OK [21:11:41]SAM_PROTO_SignData done [21:11:41]FM_MakeSignedData done [21:11:41]CreateOFDProtocolMessage [21:11:41]wFMCommunicate request_size=4 [21:11:41]MH_SAM_APDU [21:11:41]CAPDU: 80 11 00 00 [21:11:41]Write to MH i2c: E2 08 00 49 87 80 11 00 00 00 00 00 00 4A [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:41]Read from MH i2c: E2 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 17 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: E2 17 00 49 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A2 [21:11:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:11:41]wFMCommunicate OK [21:11:41]CreateOFDProtocolMessage done [21:11:41]OFDSenderStorePacket 166211 [21:11:41]StoreOFDPacket docnum=166211 [21:11:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 E0 07 01 16 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 A0 C3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 89 02 00 35 04 06 00 11 F8 41 AC 75 D5 B4 5A 36 C6 46 52 31 81 [21:11:41]CheckFolder [21:11:41]dirname=/storage/ofd_packets [21:11:41]CheckFolder done [21:11:41]ProducePacketName [21:11:41]name=ofd_packets/00166211 [21:11:41]NVStorageSaveData ofd_packets/00166211 [21:11:41]File name is /storage/ofd_packets/00166211 [21:11:41]Write 301 bytes [21:11:41]NVStorageSaveData done [21:11:41]OFDSenderStorePacket done [21:11:41]KKMCreateOFDPacket done [21:11:41]NVStorageSaveData kkm_last_timestamp [21:11:41]File name is /storage/kkm_last_timestamp [21:11:41]Write 4 bytes [21:11:41]NVStorageSaveData done [21:11:41]ExternCall_PrintAddStr [21:11:41]wPrintStart [21:11:41]Write to MH i2c: 01 00 00 4A 87 D1 [21:11:41]Write i2c OK [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: 01 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: 01 07 00 [21:11:41]MH_I2C_Read... [21:11:41]Read from MH i2c: 01 07 00 4A 87 00 00 00 00 00 FF 0F E6 [21:11:41]RasterBufferAndPrint [21:11:41]line Счет N : (1)220784 [21:11:41]line ИНН: 02508201610067 [21:11:41]line Контрольно-Кассовый Чек [21:11:41]line ПРОДАЖА [21:11:41]line ТРК (МРК, ГНК) : 13 [21:11:41]line Товар: 2710124130 [21:11:41]line Аи-92-К-5 [21:11:41]line 2.990 * 66.90 [21:11:41]line = 200.03 [21:11:41]line НДС 12% НСП 1% [21:11:41]line > о реализуемом товаре [21:11:41]line ОКРУГЛЕНИЕ: -0.03 [21:11:41]line ИТОГО: 200.00 [21:11:41]line Внесено: 200.00 [21:11:41]line СДАЧА: 0.00 [21:11:41]line НСП 1% : 1.77 [21:11:41]line НДС 12% : 21.24 [21:11:41]line Наличными: 200.00 [21:11:41]line Безнал.: 0.00 [21:11:41]line Место: АЗС № 161 "Партнер Нефть" [21:11:41]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:11:41]line СНО: Общий режим [21:11:41]line Чек 322 21.10.2024 21:12 [21:11:41]line Смена: 535 ФФД: 1.0 [21:11:41]line ЗНМ: 0300000104 [21:11:41]line РНМ: 0000000000091764 [21:11:41]line Версия ККМ: 001 [21:11:41]line ФМ: 0000000000871759 [21:11:41]line ФД: 166211 [21:11:41]line ФПД: 19757951382997 [21:11:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T211200&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166211&fm=19757951382997&tin=02508201610067®Number=0000000000091764&sum=20000 [21:11:41]OFD Sender: Processing packet 166211 [packets to send 48, broken 47] [21:11:41]ProducePacketName [21:11:41]name=ofd_packets/00166211 [21:11:41]OFD Sender: To server: pG, [21:11:41]CommunicateWithHost lk.salyk.kg:30040 [21:11:41]ConnectInit lk.salyk.kg [21:11:41]written 0, free lines is 4095 [21:11:41]Connected sock=6 [21:11:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C7 E0 07 01 16 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 A0 C3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 89 02 00 35 04 06 00 11 F8 41 AC 75 D5 B4 5A 36 C6 46 52 31 81 [21:11:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 64 20 47 00 0E 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 43 89 02 00 F4 03 04 00 0D 6A 16 67 B6 04 01 00 00 9E 9A 1D EA 48 CF 0D E9 [21:11:42]CommunicateWithHost err = 0 [21:11:42]CheckOFDResponse [21:11:42]1017 (14) - 77093643461234 [21:11:42]1041 (16) - 0000000000871759 [21:11:42]1040 (4) - 166211 [21:11:42]1012 (4) - 21.10.2024 14:49 [21:11:42]1206 (1) - 0 [21:11:42]OFD Sender: Remove packet 166211 [21:11:42]ProducePacketName [21:11:42]name=ofd_packets/00166211 [21:11:42]NVStorageDeleteData [21:11:42]Write to MH i2c: 01 00 00 75 87 FC [21:11:42]Write i2c OK [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: 01 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: 01 07 00 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: 01 07 00 75 87 00 00 00 00 00 BE 0C CD [21:11:42]RasterBufferAndPrint [21:11:42]line [21:11:42]line [21:11:42]line [21:11:42]line [21:11:42]line [21:11:42]written 0, free lines is 3268 [21:11:42]MH_Cut [21:11:42]Write to MH i2c: D1 01 00 7C 87 01 D5 [21:11:42]Write i2c OK [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: D1 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: D1 01 00 [21:11:42]MH_I2C_Read... [21:11:42]Read from MH i2c: D1 01 00 7C 87 00 D4 [21:11:42]Write to MH i2c: 01 00 00 7D 87 04 [21:11:42]Write i2c OK [21:11:42]MH_I2C_Read... [21:11:42]OFD Sender: No OFD packet to send [21:11:43]*** Cut start [21:11:43]*** Partial cut [21:11:43]*** CUTSNS_PIN = 1 [21:11:43]*** CUTSNS_PIN = 0 [21:11:43]*** Brake cut motor [21:11:43]Read from MH i2c: 01 [21:11:43]MH_I2C_Read... [21:11:43]*** Stop cut motor [21:11:43]*** Cut end [21:11:43]Read from MH i2c: 01 07 00 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: 01 07 00 7D 87 00 00 00 00 00 FF 0F 19 [21:11:43]process_action close_receipt done [21:11:43]requested_data is exist [21:11:43]produce_requested_data [21:11:43]requested_item fm.sn is exist - process it [21:11:43]wFMCommunicate request_size=4 [21:11:43]MH_SAM_APDU [21:11:43]CAPDU: 80 11 00 00 [21:11:43]Write to MH i2c: E2 08 00 7E 87 80 11 00 00 00 00 00 00 7F [21:11:43]Write i2c OK [21:11:43]MH_I2C_Read... [21:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:43]Read from MH i2c: E2 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: E2 17 00 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: E2 17 00 7E 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D7 [21:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:11:43]wFMCommunicate OK [21:11:43]requested_item fd.num is exist - process it [21:11:43]SAM_PROTO_GetFieldsCounters [21:11:43]wFMCommunicate request_size=4 [21:11:43]MH_SAM_APDU [21:11:43]CAPDU: 80 13 00 00 [21:11:43]Write to MH i2c: E2 08 00 7F 87 80 13 00 00 00 00 00 00 82 [21:11:43]Write i2c OK [21:11:43]MH_I2C_Read... [21:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:43]Read from MH i2c: E2 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: E2 62 00 [21:11:43]MH_I2C_Read... [21:11:43]Read from MH i2c: E2 62 00 7F 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [21:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 43 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:43]wFMCommunicate OK [21:11:43]SAM_PROTO_GetFieldsCounters done [21:11:43]requested_item shift.num is exist - process it [21:11:43]requested_item shift.opened is exist - process it [21:11:43]req_shift_opened [21:11:43]FM_GetShiftState [21:11:43]SAM_PROTO_GetShiftState [21:11:43]wFMCommunicate request_size=4 [21:11:43]MH_SAM_APDU [21:11:43]CAPDU: 80 13 01 00 [21:11:43]Write to MH i2c: E2 08 00 80 87 80 13 01 00 00 00 00 00 84 [21:11:43]Write i2c OK [21:11:43]MH_I2C_Read... [21:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:44]Read from MH i2c: E2 [21:11:44]MH_I2C_Read... [21:11:44]Read from MH i2c: E2 0E 00 [21:11:44]MH_I2C_Read... [21:11:44]Read from MH i2c: E2 0E 00 80 87 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8D [21:11:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:11:44]wFMCommunicate OK [21:11:44]SAM_PROTO_GetShiftState done [21:11:44]FM_GetShiftState done [21:11:44]req_shift_opened done [21:11:44]requested_item shift.open_date is exist - process it [21:11:44]req_shift_open_date [21:11:44]req_shift_open_date done [21:11:44]produce_requested_data done [21:11:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166211,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:11:44]process_action_free close_receipt [21:11:44]json_value_free [21:11:44]json_value_free done [21:11:44]process_json_proto returns [21:11:44]Send response to host [21:11:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166211,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:11:44]free response buf [21:11:44]execute_script done [21:11:44]execute_script returns [21:11:44]free content buf [21:11:44]Sock 5.Close socket [21:11:44]Sock 5.Thread stoped [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:42]OFD Sender: No OFD packet to send [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:18:03]OFD Sender: No OFD packet to send [21:18:08]OFD Sender: No OFD packet to send [21:18:13]OFD Sender: No OFD packet to send [21:18:18]OFD Sender: No OFD packet to send [21:18:23]OFD Sender: No OFD packet to send [21:18:28]OFD Sender: No OFD packet to send [21:18:33]OFD Sender: No OFD packet to send [21:18:38]OFD Sender: No OFD packet to send [21:18:43]OFD Sender: No OFD packet to send [21:18:48]OFD Sender: No OFD packet to send [21:18:53]OFD Sender: No OFD packet to send [21:18:58]OFD Sender: No OFD packet to send [21:19:03]OFD Sender: No OFD packet to send [21:19:08]OFD Sender: No OFD packet to send [21:19:13]OFD Sender: No OFD packet to send [21:19:18]OFD Sender: No OFD packet to send [21:19:23]OFD Sender: No OFD packet to send [21:19:28]OFD Sender: No OFD packet to send [21:19:33]OFD Sender: No OFD packet to send [21:19:38]OFD Sender: No OFD packet to send [21:19:43]OFD Sender: No OFD packet to send [21:19:48]OFD Sender: No OFD packet to send [21:19:53]OFD Sender: No OFD packet to send [21:19:58]OFD Sender: No OFD packet to send [21:20:03]OFD Sender: No OFD packet to send [21:20:08]OFD Sender: No OFD packet to send [21:20:13]OFD Sender: No OFD packet to send [21:20:18]OFD Sender: No OFD packet to send [21:20:23]OFD Sender: No OFD packet to send [21:20:28]OFD Sender: No OFD packet to send [21:20:33]OFD Sender: No OFD packet to send [21:20:38]OFD Sender: No OFD packet to send [21:20:43]OFD Sender: No OFD packet to send [21:20:48]OFD Sender: No OFD packet to send [21:20:53]OFD Sender: No OFD packet to send [21:20:58]OFD Sender: No OFD packet to send [21:21:03]OFD Sender: No OFD packet to send [21:21:08]OFD Sender: No OFD packet to send [21:21:13]OFD Sender: No OFD packet to send [21:21:18]OFD Sender: No OFD packet to send [21:21:23]OFD Sender: No OFD packet to send [21:21:28]OFD Sender: No OFD packet to send [21:21:33]OFD Sender: No OFD packet to send [21:21:38]OFD Sender: No OFD packet to send [21:21:43]OFD Sender: No OFD packet to send [21:21:48]OFD Sender: No OFD packet to send [21:21:53]OFD Sender: No OFD packet to send [21:21:58]OFD Sender: No OFD packet to send [21:22:03]OFD Sender: No OFD packet to send [21:22:08]OFD Sender: No OFD packet to send [21:22:13]OFD Sender: No OFD packet to send [21:22:18]OFD Sender: No OFD packet to send [21:22:23]OFD Sender: No OFD packet to send [21:22:28]OFD Sender: No OFD packet to send [21:22:33]OFD Sender: No OFD packet to send [21:22:38]OFD Sender: No OFD packet to send [21:22:43]OFD Sender: No OFD packet to send [21:22:48]OFD Sender: No OFD packet to send [21:22:53]OFD Sender: No OFD packet to send [21:22:58]OFD Sender: No OFD packet to send [21:23:03]OFD Sender: No OFD packet to send [21:23:08]OFD Sender: No OFD packet to send [21:23:13]OFD Sender: No OFD packet to send [21:23:18]OFD Sender: No OFD packet to send [21:23:23]OFD Sender: No OFD packet to send [21:23:28]OFD Sender: No OFD packet to send [21:23:33]OFD Sender: No OFD packet to send [21:23:38]OFD Sender: No OFD packet to send [21:23:43]OFD Sender: No OFD packet to send [21:23:48]OFD Sender: No OFD packet to send [21:23:53]OFD Sender: No OFD packet to send [21:23:58]OFD Sender: No OFD packet to send [21:24:03]OFD Sender: No OFD packet to send [21:24:08]OFD Sender: No OFD packet to send [21:24:13]OFD Sender: No OFD packet to send [21:24:18]OFD Sender: No OFD packet to send [21:24:23]OFD Sender: No OFD packet to send [21:24:28]OFD Sender: No OFD packet to send [21:24:33]OFD Sender: No OFD packet to send [21:24:38]OFD Sender: No OFD packet to send [21:24:43]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [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]accept exits with 7 [21:27:03]New connection [21:27:03]New thread 3066920292 created [21:27:03]Thread 3066776932 joined [21:27:03]Waiting for new connection... [21:27:03] Sock 7.Parse request [21:27:03]Sock 7.Check first char [21:27:03]Sock 7.First char is OK [21:27:03]request: POST /json_proto HTTP/1.0 [21:27:03]Method: POST [21:27:03]URL: /json_proto [21:27:03]Method is POST - this is cgi request [21:27:03]url: /json_proto [21:27:03]query_string will be loaded in cgi processing [21:27:03]execute_cgi json_proto POST (null) [21:27:03]execute_cgi path=json_proto method=POST [21:27:03]POST find Content-Length [21:27:03]Host: 172.17.53.195:8080 [21:27:03]Content-Length: 679 [21:27:03]Content-Type: application/json [21:27:03] [21:27:03]POST finish read [21:27:03]Found Content-Length = 679 [21:27:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [21:27:03]execute_script... [21: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)220786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [21:27:03]POST & json_proto [21:27:03]process_json_proto [21:27:03]json parsed OK: [21:27:03]protocol is kg_v1.0 [21:27:03]action value=close_receipt [21:27:03]process_action close_receipt [21:27:03]cmd_close_receipt [21:27:03]MH_GetDate [21:27:03]Write to MH i2c: F0 00 00 81 87 F7 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: F0 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: F0 09 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: F0 09 00 81 87 00 3B C7 16 67 21 48 4A 65 97 [21:27:03]GetLastDocTimeStamp 1729545120 [21:27:03]current date 1729546043 [21:27:03]FM_GetShiftState [21:27:03]SAM_PROTO_GetShiftState [21:27:03]wFMCommunicate request_size=4 [21:27:03]MH_SAM_APDU [21:27:03]CAPDU: 80 13 01 00 [21:27:03]Write to MH i2c: E2 08 00 82 87 80 13 01 00 00 00 00 00 86 [21:27:03]Write i2c OK [21:27:03]MH_I2C_Read... [21:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:03]Read from MH i2c: E2 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 0E 00 [21:27:03]MH_I2C_Read... [21:27:03]Read from MH i2c: E2 0E 00 82 87 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 8F [21:27:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:27:03]wFMCommunicate OK [21:27:03]SAM_PROTO_GetShiftState done [21:27:03]FM_GetShiftState done [21:27:03]opened in 1729470944 [21:27:03]opened+sec_in_day 1729557344 [21:27:03]quantity*price = 100050 [21:27:03]sum+1 = 100052 [21:27:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 323 21.10.2024 21:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166212 ФПД: 159488826332250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166212&fm=159488826332250&tin=02508201610067®Number=0000000000091764&sum=100000 [21:27:04]StoreToDocumentArchive [21:27:04]shift 535 fd 166212 [21:27:04]save to /storage/0535/doc_00166212 [21:27:04]save last doc name /storage/0535/doc_00166212 to /storage/kkm_last_doc_name [21:27:04]save OK [21:27:04]Clear old archive folders... [21:27:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:27:04]tlvbuf is 01713B40 [21:27:04]SAM_PROTO_ClearQueue [21:27:04]wFMCommunicate request_size=4 [21:27:04]MH_SAM_APDU [21:27:04]CAPDU: 80 09 00 00 [21:27:04]Write to MH i2c: E2 08 00 8F 87 80 09 00 00 00 00 00 00 88 [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:04]Read from MH i2c: E2 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 8F 87 00 90 00 8A [21:27:04]RAPDU: 90 00 [21:27:04]wFMCommunicate OK [21:27:04]SAM_PROTO_ClearQueue done [21:27:04]KKMCreateOFDPacket [21:27:04]OFDProtocolAddRootSTLVToBuf [21:27:04]FM_MakeSignedData [21:27:04]FM_MakeSignedData [21:27:04]SAM_PROTO_SignData [21:27:04]wFMCommunicate request_size=4 [21:27:04]MH_SAM_APDU [21:27:04]CAPDU: 80 0D 01 02 [21:27:04]Write to MH i2c: E2 08 00 90 87 80 0D 01 02 00 00 00 00 90 [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:04]Read from MH i2c: E2 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 90 87 00 90 00 8B [21:27:04]RAPDU: 90 00 [21:27:04]wFMCommunicate OK [21:27:04]wFMCommunicate request_size=255 [21:27:04]MH_SAM_APDU [21:27:04]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 43 01 00 00 F4 03 04 00 3B C7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 89 02 00 35 04 06 00 91 0D E2 D6 [21:27:04]Write to MH i2c: E2 02 01 91 87 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 3B C7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 89 02 00 35 04 06 00 91 0D E2 D6 00 00 1D [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:04]Read from MH i2c: E2 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 91 87 00 90 00 8C [21:27:04]RAPDU: 90 00 [21:27:04]wFMCommunicate OK [21:27:04]wFMCommunicate request_size=7 [21:27:04]MH_SAM_APDU [21:27:04]CAPDU: 80 0D 02 02 02 D4 5A [21:27:04]Write to MH i2c: E2 0A 00 92 87 80 0D 02 02 02 00 D4 5A 00 00 C5 [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:04]Read from MH i2c: E2 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 03 00 92 87 00 90 00 8D [21:27:04]RAPDU: 90 00 [21:27:04]wFMCommunicate OK [21:27:04]wFMCommunicate request_size=4 [21:27:04]MH_SAM_APDU [21:27:04]CAPDU: 80 0D 03 02 [21:27:04]Write to MH i2c: E2 08 00 93 87 80 0D 03 02 00 00 00 00 95 [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:04]Read from MH i2c: E2 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 0B 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 0B 00 93 87 00 A9 61 25 2B 54 84 B5 5F 90 00 DC [21:27:04]RAPDU: A9 61 25 2B 54 84 B5 5F 90 00 [21:27:04]wFMCommunicate OK [21:27:04]SAM_PROTO_SignData done [21:27:04]FM_MakeSignedData done [21:27:04]CreateOFDProtocolMessage [21:27:04]wFMCommunicate request_size=4 [21:27:04]MH_SAM_APDU [21:27:04]CAPDU: 80 11 00 00 [21:27:04]Write to MH i2c: E2 08 00 94 87 80 11 00 00 00 00 00 00 95 [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:04]Read from MH i2c: E2 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 17 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: E2 17 00 94 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 ED [21:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:27:04]wFMCommunicate OK [21:27:04]CreateOFDProtocolMessage done [21:27:04]OFDSenderStorePacket 166212 [21:27:04]StoreOFDPacket docnum=166212 [21:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 DC 04 01 54 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 3B C7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 89 02 00 35 04 06 00 91 0D E2 D6 D4 5A A9 61 25 2B 54 84 B5 5F [21:27:04]CheckFolder [21:27:04]dirname=/storage/ofd_packets [21:27:04]CheckFolder done [21:27:04]ProducePacketName [21:27:04]name=ofd_packets/00166212 [21:27:04]NVStorageSaveData ofd_packets/00166212 [21:27:04]File name is /storage/ofd_packets/00166212 [21:27:04]Write 298 bytes [21:27:04]NVStorageSaveData done [21:27:04]OFDSenderStorePacket done [21:27:04]KKMCreateOFDPacket done [21:27:04]NVStorageSaveData kkm_last_timestamp [21:27:04]File name is /storage/kkm_last_timestamp [21:27:04]Write 4 bytes [21:27:04]NVStorageSaveData done [21:27:04]ExternCall_PrintAddStr [21:27:04]wPrintStart [21:27:04]Write to MH i2c: 01 00 00 95 87 1C [21:27:04]Write i2c OK [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: 01 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: 01 07 00 [21:27:04]MH_I2C_Read... [21:27:04]Read from MH i2c: 01 07 00 95 87 00 00 00 00 00 FF 0F 31 [21:27:04]RasterBufferAndPrint [21:27:04]line Счет N : (1)220786 [21:27:04]line ИНН: 02508201610067 [21:27:04]line Контрольно-Кассовый Чек [21:27:04]line ПРОДАЖА [21:27:04]line ТРК (МРК, ГНК) : 21 [21:27:04]line Товар: 2710194210 [21:27:04]line ДТ-К-5 [21:27:04]line 13.130 * 76.20 [21:27:04]line = 1000.51 [21:27:04]line НДС 12% НСП 1% [21:27:04]line > о реализуемом товаре [21:27:04]line ОКРУГЛЕНИЕ: -0.51 [21:27:04]line ИТОГО: 1000.00 [21:27:04]line Внесено: 1000.00 [21:27:04]line СДАЧА: 0.00 [21:27:04]line НСП 1% : 8.85 [21:27:04]line НДС 12% : 106.25 [21:27:04]line Наличными: 1000.00 [21:27:04]line Безнал.: 0.00 [21:27:04]line Место: АЗС № 161 "Партнер Нефть" [21:27:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:27:04]line СНО: Общий режим [21:27:04]line Чек 323 21.10.2024 21:27 [21:27:04]line Смена: 535 ФФД: 1.0 [21:27:04]line ЗНМ: 0300000104 [21:27:04]line РНМ: 0000000000091764 [21:27:04]line Версия ККМ: 001 [21:27:04]line ФМ: 0000000000871759 [21:27:04]line ФД: 166212 [21:27:05]line ФПД: 159488826332250 [21:27:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T212723&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166212&fm=159488826332250&tin=02508201610067®Number=0000000000091764&sum=100000 [21:27:05]OFD Sender: Processing packet 166212 [packets to send 48, broken 47] [21:27:05]ProducePacketName [21:27:05]name=ofd_packets/00166212 [21:27:05]OFD Sender: To server: pG, [21:27:05]CommunicateWithHost lk.salyk.kg:30040 [21:27:05]ConnectInit lk.salyk.kg [21:27:05]written 0, free lines is 4095 [21:27:05]Connected sock=6 [21: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 35 39 0C 01 00 00 25 DC 04 01 54 79 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 3B C7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 89 02 00 35 04 06 00 91 0D E2 D6 D4 5A A9 61 25 2B 54 84 B5 5F [21: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 35 39 4F 00 00 00 1B 88 47 00 6E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 44 89 02 00 F4 03 04 00 A8 6D 16 67 B6 04 01 00 00 33 CC 9E 7B F1 2A F3 3B [21:27:05]CommunicateWithHost err = 0 [21:27:05]CheckOFDResponse [21:27:05]1017 (14) - 77093643461234 [21:27:05]1041 (16) - 0000000000871759 [21:27:05]1040 (4) - 166212 [21:27:05]1012 (4) - 21.10.2024 15:05 [21:27:05]1206 (1) - 0 [21:27:05]OFD Sender: Remove packet 166212 [21:27:05]ProducePacketName [21:27:05]name=ofd_packets/00166212 [21:27:05]NVStorageDeleteData [21:27:05]Write to MH i2c: 01 00 00 C0 87 47 [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 07 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: 01 07 00 C0 87 00 00 00 00 00 C6 0C 20 [21:27:05]RasterBufferAndPrint [21:27:05]line [21:27:05]line [21:27:05]line [21:27:05]line [21:27:05]line [21:27:05]written 0, free lines is 3275 [21:27:05]MH_Cut [21:27:05]Write to MH i2c: D1 01 00 C7 87 01 20 [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: D1 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: D1 01 00 [21:27:05]MH_I2C_Read... [21:27:05]Read from MH i2c: D1 01 00 C7 87 00 1F [21:27:05]Write to MH i2c: 01 00 00 C8 87 4F [21:27:05]Write i2c OK [21:27:05]MH_I2C_Read... [21:27:05]OFD Sender: No OFD packet to send [21:27:06]*** Cut start [21:27:06]*** Partial cut [21:27:06]*** CUTSNS_PIN = 1 [21:27:06]*** CUTSNS_PIN = 0 [21:27:06]*** Brake cut motor [21:27:07]Read from MH i2c: 01 [21:27:07]MH_I2C_Read... [21:27:07]*** Stop cut motor [21:27:07]*** Cut end [21:27:07]Read from MH i2c: 01 07 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: 01 07 00 C8 87 00 00 00 00 00 FF 0F 64 [21:27:07]process_action close_receipt done [21:27:07]requested_data is exist [21:27:07]produce_requested_data [21:27:07]requested_item fm.sn is exist - process it [21:27:07]wFMCommunicate request_size=4 [21:27:07]MH_SAM_APDU [21:27:07]CAPDU: 80 11 00 00 [21:27:07]Write to MH i2c: E2 08 00 C9 87 80 11 00 00 00 00 00 00 CA [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 17 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 17 00 C9 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 22 [21:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:27:07]wFMCommunicate OK [21:27:07]requested_item fd.num is exist - process it [21:27:07]SAM_PROTO_GetFieldsCounters [21:27:07]wFMCommunicate request_size=4 [21:27:07]MH_SAM_APDU [21:27:07]CAPDU: 80 13 00 00 [21:27:07]Write to MH i2c: E2 08 00 CA 87 80 13 00 00 00 00 00 00 CD [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 62 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 62 00 CA 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [21: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 44 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:07]wFMCommunicate OK [21:27:07]SAM_PROTO_GetFieldsCounters done [21:27:07]requested_item shift.num is exist - process it [21:27:07]requested_item shift.opened is exist - process it [21:27:07]req_shift_opened [21:27:07]FM_GetShiftState [21:27:07]SAM_PROTO_GetShiftState [21:27:07]wFMCommunicate request_size=4 [21:27:07]MH_SAM_APDU [21:27:07]CAPDU: 80 13 01 00 [21:27:07]Write to MH i2c: E2 08 00 CB 87 80 13 01 00 00 00 00 00 CF [21:27:07]Write i2c OK [21:27:07]MH_I2C_Read... [21:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:07]Read from MH i2c: E2 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 0E 00 [21:27:07]MH_I2C_Read... [21:27:07]Read from MH i2c: E2 0E 00 CB 87 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D8 [21:27:07]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:27:07]wFMCommunicate OK [21:27:07]SAM_PROTO_GetShiftState done [21:27:07]FM_GetShiftState done [21:27:07]req_shift_opened done [21:27:07]requested_item shift.open_date is exist - process it [21:27:07]req_shift_open_date [21:27:07]req_shift_open_date done [21:27:07]produce_requested_data done [21:27:07]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166212,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:27:07]process_action_free close_receipt [21:27:07]json_value_free [21:27:07]json_value_free done [21:27:07]process_json_proto returns [21:27:07]Send response to host [21:27:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166212,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:27:07]free response buf [21:27:07]execute_script done [21:27:07]execute_script returns [21:27:07]free content buf [21:27:07]Sock 7.Close socket [21:27:07]Sock 7.Thread stoped [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:23]accept exits with 5 [21:36:23]New connection [21:36:23]New thread 3066776932 created [21:36:23]Thread 3066920292 joined [21:36:23]Waiting for new connection... [21:36:23] Sock 5.Parse request [21:36:23]Sock 5.Check first char [21:36:23]Sock 5.First char is OK [21:36:23]request: POST /json_proto HTTP/1.0 [21:36:23]Method: POST [21:36:23]URL: /json_proto [21:36:23]Method is POST - this is cgi request [21:36:23]url: /json_proto [21:36:23]query_string will be loaded in cgi processing [21:36:23]execute_cgi json_proto POST (null) [21:36:23]execute_cgi path=json_proto method=POST [21:36:23]POST find Content-Length [21:36:23]Host: 172.17.53.195:8080 [21:36:23]Content-Length: 677 [21:36:23]Content-Type: application/json [21:36:23] [21:36:23]POST finish read [21:36:23]Found Content-Length = 677 [21:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:23]execute_script... [21:36:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:36:23]POST & json_proto [21:36:23]process_json_proto [21:36:23]json parsed OK: [21:36:23]protocol is kg_v1.0 [21:36:23]action value=close_receipt [21:36:23]process_action close_receipt [21:36:23]cmd_close_receipt [21:36:23]MH_GetDate [21:36:23]Write to MH i2c: F0 00 00 CC 87 42 [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: F0 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: F0 09 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: F0 09 00 CC 87 00 6B C9 16 67 21 48 4A 65 14 [21:36:23]GetLastDocTimeStamp 1729546043 [21:36:23]current date 1729546603 [21:36:23]FM_GetShiftState [21:36:23]SAM_PROTO_GetShiftState [21:36:23]wFMCommunicate request_size=4 [21:36:23]MH_SAM_APDU [21:36:23]CAPDU: 80 13 01 00 [21:36:23]Write to MH i2c: E2 08 00 CD 87 80 13 01 00 00 00 00 00 D1 [21:36:23]Write i2c OK [21:36:23]MH_I2C_Read... [21:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:23]Read from MH i2c: E2 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 0E 00 [21:36:23]MH_I2C_Read... [21:36:23]Read from MH i2c: E2 0E 00 CD 87 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DA [21:36:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:36:23]wFMCommunicate OK [21:36:23]SAM_PROTO_GetShiftState done [21:36:23]FM_GetShiftState done [21:36:23]opened in 1729470944 [21:36:23]opened+sec_in_day 1729557344 [21:36:23]quantity*price = 30038 [21:36:23]sum+1 = 30039 [21:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 324 21.10.2024 21:36 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166213 ФПД: 23535389468676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166213&fm=23535389468676&tin=02508201610067®Number=0000000000091764&sum=30000 [21:36:24]StoreToDocumentArchive [21:36:24]shift 535 fd 166213 [21:36:24]save to /storage/0535/doc_00166213 [21:36:24]save last doc name /storage/0535/doc_00166213 to /storage/kkm_last_doc_name [21:36:24]save OK [21:36:24]Clear old archive folders... [21:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:36:24]tlvbuf is 017137B0 [21:36:24]SAM_PROTO_ClearQueue [21:36:24]wFMCommunicate request_size=4 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 09 00 00 [21:36:24]Write to MH i2c: E2 08 00 DA 87 80 09 00 00 00 00 00 00 D3 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 DA 87 00 90 00 D5 [21:36:24]RAPDU: 90 00 [21:36:24]wFMCommunicate OK [21:36:24]SAM_PROTO_ClearQueue done [21:36:24]KKMCreateOFDPacket [21:36:24]OFDProtocolAddRootSTLVToBuf [21:36:24]FM_MakeSignedData [21:36:24]FM_MakeSignedData [21:36:24]SAM_PROTO_SignData [21:36:24]wFMCommunicate request_size=4 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 0D 01 02 [21:36:24]Write to MH i2c: E2 08 00 DB 87 80 0D 01 02 00 00 00 00 DB [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 DB 87 00 90 00 D6 [21:36:24]RAPDU: 90 00 [21:36:24]wFMCommunicate OK [21:36:24]wFMCommunicate request_size=255 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 6B C9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 89 02 00 35 04 06 00 15 [21:36:24]Write to MH i2c: E2 02 01 DC 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 6B C9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 89 02 00 35 04 06 00 15 00 00 59 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 DC 87 00 90 00 D7 [21:36:24]RAPDU: 90 00 [21:36:24]wFMCommunicate OK [21:36:24]wFMCommunicate request_size=10 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 0D 02 02 05 67 C2 87 68 04 [21:36:24]Write to MH i2c: E2 0D 00 DD 87 80 0D 02 02 05 00 67 C2 87 68 04 00 00 04 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 03 00 DD 87 00 90 00 D8 [21:36:24]RAPDU: 90 00 [21:36:24]wFMCommunicate OK [21:36:24]wFMCommunicate request_size=4 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 0D 03 02 [21:36:24]Write to MH i2c: E2 08 00 DE 87 80 0D 03 02 00 00 00 00 E0 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 0B 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 0B 00 DE 87 00 6F A2 4C DB 63 F5 D4 14 90 00 59 [21:36:24]RAPDU: 6F A2 4C DB 63 F5 D4 14 90 00 [21:36:24]wFMCommunicate OK [21:36:24]SAM_PROTO_SignData done [21:36:24]FM_MakeSignedData done [21:36:24]CreateOFDProtocolMessage [21:36:24]wFMCommunicate request_size=4 [21:36:24]MH_SAM_APDU [21:36:24]CAPDU: 80 11 00 00 [21:36:24]Write to MH i2c: E2 08 00 DF 87 80 11 00 00 00 00 00 00 E0 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:24]Read from MH i2c: E2 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 17 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: E2 17 00 DF 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 38 [21:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:36:24]wFMCommunicate OK [21:36:24]CreateOFDProtocolMessage done [21:36:24]OFDSenderStorePacket 166213 [21:36:24]StoreOFDPacket docnum=166213 [21:36:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 4F 07 01 9E 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 6B C9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 89 02 00 35 04 06 00 15 67 C2 87 68 04 6F A2 4C DB 63 F5 D4 14 [21:36:24]CheckFolder [21:36:24]dirname=/storage/ofd_packets [21:36:24]CheckFolder done [21:36:24]ProducePacketName [21:36:24]name=ofd_packets/00166213 [21:36:24]NVStorageSaveData ofd_packets/00166213 [21:36:24]File name is /storage/ofd_packets/00166213 [21:36:24]Write 301 bytes [21:36:24]NVStorageSaveData done [21:36:24]OFDSenderStorePacket done [21:36:24]KKMCreateOFDPacket done [21:36:24]NVStorageSaveData kkm_last_timestamp [21:36:24]File name is /storage/kkm_last_timestamp [21:36:24]Write 4 bytes [21:36:24]NVStorageSaveData done [21:36:24]ExternCall_PrintAddStr [21:36:24]wPrintStart [21:36:24]Write to MH i2c: 01 00 00 E0 87 67 [21:36:24]Write i2c OK [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: 01 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: 01 07 00 [21:36:24]MH_I2C_Read... [21:36:24]Read from MH i2c: 01 07 00 E0 87 00 00 00 00 00 FF 0F 7C [21:36:24]RasterBufferAndPrint [21:36:24]line Счет N : (1)220787 [21:36:24]line ИНН: 02508201610067 [21:36:24]line Контрольно-Кассовый Чек [21:36:24]line ПРОДАЖА [21:36:24]line ТРК (МРК, ГНК) : 33 [21:36:24]line Товар: 2710124130 [21:36:24]line Аи-92-К-5 [21:36:24]line 4.490 * 66.90 [21:36:24]line = 300.38 [21:36:24]line НДС 12% НСП 1% [21:36:24]line > о реализуемом товаре [21:36:24]line ОКРУГЛЕНИЕ: -0.38 [21:36:24]line ИТОГО: 300.00 [21:36:24]line Внесено: 300.00 [21:36:24]line СДАЧА: 0.00 [21:36:24]line НСП 1% : 2.66 [21:36:24]line НДС 12% : 31.90 [21:36:24]line Наличными: 300.00 [21:36:24]line Безнал.: 0.00 [21:36:24]line Место: АЗС № 161 "Партнер Нефть" [21:36:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:36:24]line СНО: Общий режим [21:36:24]line Чек 324 21.10.2024 21:36 [21:36:24]line Смена: 535 ФФД: 1.0 [21:36:24]line ЗНМ: 0300000104 [21:36:24]line РНМ: 0000000000091764 [21:36:24]line Версия ККМ: 001 [21:36:24]line ФМ: 0000000000871759 [21:36:24]line ФД: 166213 [21:36:24]line ФПД: 23535389468676 [21:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T213643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166213&fm=23535389468676&tin=02508201610067®Number=0000000000091764&sum=30000 [21:36:25]OFD Sender: Processing packet 166213 [packets to send 48, broken 47] [21:36:25]ProducePacketName [21:36:25]name=ofd_packets/00166213 [21:36:25]OFD Sender: To server: pG, [21:36:25]CommunicateWithHost lk.salyk.kg:30040 [21:36:25]ConnectInit lk.salyk.kg [21:36:25]written 0, free lines is 4095 [21:36:25]Connected sock=7 [21:36:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 58 4F 07 01 9E 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 6B C9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 89 02 00 35 04 06 00 15 67 C2 87 68 04 6F A2 4C DB 63 F5 D4 14 [21:36:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 6D 7F 47 00 28 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 45 89 02 00 F4 03 04 00 D8 6F 16 67 B6 04 01 00 00 32 58 36 C1 2B A9 8E A4 [21:36:25]CommunicateWithHost err = 0 [21:36:25]CheckOFDResponse [21:36:25]1017 (14) - 77093643461234 [21:36:25]1041 (16) - 0000000000871759 [21:36:25]1040 (4) - 166213 [21:36:25]1012 (4) - 21.10.2024 15:14 [21:36:25]1206 (1) - 0 [21:36:25]OFD Sender: Remove packet 166213 [21:36:25]ProducePacketName [21:36:25]name=ofd_packets/00166213 [21:36:25]NVStorageDeleteData [21:36:25]Write to MH i2c: 01 00 00 0B 88 93 [21:36:25]Write i2c OK [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: 01 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: 01 07 00 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: 01 07 00 0B 88 00 00 00 00 00 D0 0C 76 [21:36:25]RasterBufferAndPrint [21:36:25]line [21:36:25]line [21:36:25]line [21:36:25]line [21:36:25]line [21:36:25]written 0, free lines is 3288 [21:36:25]MH_Cut [21:36:25]Write to MH i2c: D1 01 00 12 88 01 6C [21:36:25]Write i2c OK [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: D1 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: D1 01 00 [21:36:25]MH_I2C_Read... [21:36:25]Read from MH i2c: D1 01 00 12 88 00 6B [21:36:25]Write to MH i2c: 01 00 00 13 88 9B [21:36:25]Write i2c OK [21:36:25]MH_I2C_Read... [21:36:25]OFD Sender: No OFD packet to send [21:36:26]*** Cut start [21:36:26]*** Partial cut [21:36:26]*** CUTSNS_PIN = 1 [21:36:26]*** CUTSNS_PIN = 0 [21:36:26]*** Brake cut motor [21:36:27]Read from MH i2c: 01 [21:36:27]MH_I2C_Read... [21:36:27]*** Stop cut motor [21:36:27]*** Cut end [21:36:27]Read from MH i2c: 01 07 00 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: 01 07 00 13 88 00 00 00 00 00 FF 0F B0 [21:36:27]process_action close_receipt done [21:36:27]requested_data is exist [21:36:27]produce_requested_data [21:36:27]requested_item fm.sn is exist - process it [21:36:27]wFMCommunicate request_size=4 [21:36:27]MH_SAM_APDU [21:36:27]CAPDU: 80 11 00 00 [21:36:27]Write to MH i2c: E2 08 00 14 88 80 11 00 00 00 00 00 00 16 [21:36:27]Write i2c OK [21:36:27]MH_I2C_Read... [21:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:27]Read from MH i2c: E2 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: E2 17 00 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: E2 17 00 14 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6E [21:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:36:27]wFMCommunicate OK [21:36:27]requested_item fd.num is exist - process it [21:36:27]SAM_PROTO_GetFieldsCounters [21:36:27]wFMCommunicate request_size=4 [21:36:27]MH_SAM_APDU [21:36:27]CAPDU: 80 13 00 00 [21:36:27]Write to MH i2c: E2 08 00 15 88 80 13 00 00 00 00 00 00 19 [21:36:27]Write i2c OK [21:36:27]MH_I2C_Read... [21:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:27]Read from MH i2c: E2 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: E2 62 00 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: E2 62 00 15 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [21:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 45 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:27]wFMCommunicate OK [21:36:27]SAM_PROTO_GetFieldsCounters done [21:36:27]requested_item shift.num is exist - process it [21:36:27]requested_item shift.opened is exist - process it [21:36:27]req_shift_opened [21:36:27]FM_GetShiftState [21:36:27]SAM_PROTO_GetShiftState [21:36:27]wFMCommunicate request_size=4 [21:36:27]MH_SAM_APDU [21:36:27]CAPDU: 80 13 01 00 [21:36:27]Write to MH i2c: E2 08 00 16 88 80 13 01 00 00 00 00 00 1B [21:36:27]Write i2c OK [21:36:27]MH_I2C_Read... [21:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:27]Read from MH i2c: E2 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: E2 0E 00 [21:36:27]MH_I2C_Read... [21:36:27]Read from MH i2c: E2 0E 00 16 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 24 [21:36:27]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:36:27]wFMCommunicate OK [21:36:27]SAM_PROTO_GetShiftState done [21:36:27]FM_GetShiftState done [21:36:27]req_shift_opened done [21:36:27]requested_item shift.open_date is exist - process it [21:36:27]req_shift_open_date [21:36:27]req_shift_open_date done [21:36:27]produce_requested_data done [21:36:27]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166213,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:36:27]process_action_free close_receipt [21:36:27]json_value_free [21:36:27]json_value_free done [21:36:27]process_json_proto returns [21:36:27]Send response to host [21:36:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166213,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:36:27]free response buf [21:36:27]execute_script done [21:36:27]execute_script returns [21:36:27]free content buf [21:36:27]Sock 5.Close socket [21:36:27]Sock 5.Thread stoped [21:36:30]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:21]accept exits with 6 [21:43:21]New connection [21:43:21]New thread 3066920292 created [21:43:21]Thread 3066776932 joined [21:43:21]Waiting for new connection... [21:43:21] Sock 6.Parse request [21:43:21]Sock 6.Check first char [21:43:21]Sock 6.First char is OK [21:43:21]request: POST /json_proto HTTP/1.0 [21:43:21]Method: POST [21:43:21]URL: /json_proto [21:43:21]Method is POST - this is cgi request [21:43:21]url: /json_proto [21:43:21]query_string will be loaded in cgi processing [21:43:21]execute_cgi json_proto POST (null) [21:43:21]execute_cgi path=json_proto method=POST [21:43:21]POST find Content-Length [21:43:21]Host: 172.17.53.195:8080 [21:43:21]Content-Length: 677 [21:43:21]Content-Type: application/json [21:43:21] [21:43:21]POST finish read [21:43:21]Found Content-Length = 677 [21:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:21]execute_script... [21:43:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220788", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:21]POST & json_proto [21:43:21]process_json_proto [21:43:21]json parsed OK: [21:43:21]protocol is kg_v1.0 [21:43:21]action value=close_receipt [21:43:21]process_action close_receipt [21:43:21]cmd_close_receipt [21:43:21]MH_GetDate [21:43:21]Write to MH i2c: F0 00 00 17 88 8E [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: F0 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: F0 09 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: F0 09 00 17 88 00 0E CB 16 67 21 48 4A 65 05 [21:43:21]GetLastDocTimeStamp 1729546603 [21:43:21]current date 1729547022 [21:43:21]FM_GetShiftState [21:43:21]SAM_PROTO_GetShiftState [21:43:21]wFMCommunicate request_size=4 [21:43:21]MH_SAM_APDU [21:43:21]CAPDU: 80 13 01 00 [21:43:21]Write to MH i2c: E2 08 00 18 88 80 13 01 00 00 00 00 00 1D [21:43:21]Write i2c OK [21:43:21]MH_I2C_Read... [21:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:21]Read from MH i2c: E2 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 0E 00 [21:43:21]MH_I2C_Read... [21:43:21]Read from MH i2c: E2 0E 00 18 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 26 [21:43:21]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:43:21]wFMCommunicate OK [21:43:21]SAM_PROTO_GetShiftState done [21:43:21]FM_GetShiftState done [21:43:21]opened in 1729470944 [21:43:21]opened+sec_in_day 1729557344 [21:43:21]quantity*price = 50041 [21:43:21]sum+1 = 50042 [21:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 325 21.10.2024 21:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166214 ФПД: 88587054648865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214342&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166214&fm=88587054648865&tin=02508201610067®Number=0000000000091764&sum=50000 [21:43:22]StoreToDocumentArchive [21:43:22]shift 535 fd 166214 [21:43:22]save to /storage/0535/doc_00166214 [21:43:22]save last doc name /storage/0535/doc_00166214 to /storage/kkm_last_doc_name [21:43:22]save OK [21:43:22]Clear old archive folders... [21:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:22]tlvbuf is 01456960 [21:43:22]SAM_PROTO_ClearQueue [21:43:22]wFMCommunicate request_size=4 [21:43:22]MH_SAM_APDU [21:43:22]CAPDU: 80 09 00 00 [21:43:22]Write to MH i2c: E2 08 00 25 88 80 09 00 00 00 00 00 00 1F [21:43:22]Write i2c OK [21:43:22]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 25 88 00 90 00 21 [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]SAM_PROTO_ClearQueue done [21:43:23]KKMCreateOFDPacket [21:43:23]OFDProtocolAddRootSTLVToBuf [21:43:23]FM_MakeSignedData [21:43:23]FM_MakeSignedData [21:43:23]SAM_PROTO_SignData [21:43:23]wFMCommunicate request_size=4 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 01 02 [21:43:23]Write to MH i2c: E2 08 00 26 88 80 0D 01 02 00 00 00 00 27 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 26 88 00 90 00 22 [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]wFMCommunicate request_size=255 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 0E CB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 89 02 00 35 04 06 00 50 [21:43:23]Write to MH i2c: E2 02 01 27 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0E CB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 89 02 00 35 04 06 00 50 00 00 93 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 27 88 00 90 00 23 [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]wFMCommunicate request_size=10 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 02 02 05 91 C7 EC 8E 21 [21:43:23]Write to MH i2c: E2 0D 00 28 88 80 0D 02 02 05 00 91 C7 EC 8E 21 00 00 27 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 03 00 28 88 00 90 00 24 [21:43:23]RAPDU: 90 00 [21:43:23]wFMCommunicate OK [21:43:23]wFMCommunicate request_size=4 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 0D 03 02 [21:43:23]Write to MH i2c: E2 08 00 29 88 80 0D 03 02 00 00 00 00 2C [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 0B 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 0B 00 29 88 00 16 82 3C 8E 65 81 96 CD 90 00 D8 [21:43:23]RAPDU: 16 82 3C 8E 65 81 96 CD 90 00 [21:43:23]wFMCommunicate OK [21:43:23]SAM_PROTO_SignData done [21:43:23]FM_MakeSignedData done [21:43:23]CreateOFDProtocolMessage [21:43:23]wFMCommunicate request_size=4 [21:43:23]MH_SAM_APDU [21:43:23]CAPDU: 80 11 00 00 [21:43:23]Write to MH i2c: E2 08 00 2A 88 80 11 00 00 00 00 00 00 2C [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:23]Read from MH i2c: E2 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 17 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: E2 17 00 2A 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [21:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:43:23]wFMCommunicate OK [21:43:23]CreateOFDProtocolMessage done [21:43:23]OFDSenderStorePacket 166214 [21:43:23]StoreOFDPacket docnum=166214 [21:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 23 07 01 5C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0E CB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 89 02 00 35 04 06 00 50 91 C7 EC 8E 21 16 82 3C 8E 65 81 96 CD [21:43:23]CheckFolder [21:43:23]dirname=/storage/ofd_packets [21:43:23]CheckFolder done [21:43:23]ProducePacketName [21:43:23]name=ofd_packets/00166214 [21:43:23]NVStorageSaveData ofd_packets/00166214 [21:43:23]File name is /storage/ofd_packets/00166214 [21:43:23]Write 301 bytes [21:43:23]NVStorageSaveData done [21:43:23]OFDSenderStorePacket done [21:43:23]KKMCreateOFDPacket done [21:43:23]NVStorageSaveData kkm_last_timestamp [21:43:23]File name is /storage/kkm_last_timestamp [21:43:23]Write 4 bytes [21:43:23]NVStorageSaveData done [21:43:23]ExternCall_PrintAddStr [21:43:23]wPrintStart [21:43:23]Write to MH i2c: 01 00 00 2B 88 B3 [21:43:23]Write i2c OK [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: 01 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: 01 07 00 [21:43:23]MH_I2C_Read... [21:43:23]Read from MH i2c: 01 07 00 2B 88 00 00 00 00 00 FF 0F C8 [21:43:23]RasterBufferAndPrint [21:43:23]line Счет N : (1)220788 [21:43:23]line ИНН: 02508201610067 [21:43:23]line Контрольно-Кассовый Чек [21:43:23]line ПРОДАЖА [21:43:23]line ТРК (МРК, ГНК) : 33 [21:43:23]line Товар: 2710124130 [21:43:23]line Аи-92-К-5 [21:43:23]line 7.480 * 66.90 [21:43:23]line = 500.41 [21:43:23]line НДС 12% НСП 1% [21:43:23]line > о реализуемом товаре [21:43:23]line ОКРУГЛЕНИЕ: -0.41 [21:43:23]line ИТОГО: 500.00 [21:43:23]line Внесено: 500.00 [21:43:23]line СДАЧА: 0.00 [21:43:23]line НСП 1% : 4.43 [21:43:23]line НДС 12% : 53.14 [21:43:23]line Наличными: 500.00 [21:43:23]line Безнал.: 0.00 [21:43:23]line Место: АЗС № 161 "Партнер Нефть" [21:43:23]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:43:23]line СНО: Общий режим [21:43:23]line Чек 325 21.10.2024 21:43 [21:43:23]line Смена: 535 ФФД: 1.0 [21:43:23]line ЗНМ: 0300000104 [21:43:23]line РНМ: 0000000000091764 [21:43:23]line Версия ККМ: 001 [21:43:23]line ФМ: 0000000000871759 [21:43:23]line ФД: 166214 [21:43:23]line ФПД: 88587054648865 [21:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T214342&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166214&fm=88587054648865&tin=02508201610067®Number=0000000000091764&sum=50000 [21:43:23]OFD Sender: Processing packet 166214 [packets to send 48, broken 47] [21:43:23]ProducePacketName [21:43:23]name=ofd_packets/00166214 [21:43:23]OFD Sender: To server: pG, [21:43:23]CommunicateWithHost lk.salyk.kg:30040 [21:43:23]ConnectInit lk.salyk.kg [21:43:23]written 0, free lines is 4095 [21:43:23]Connected sock=7 [21:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 8C 23 07 01 5C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 0E CB 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 89 02 00 35 04 06 00 50 91 C7 EC 8E 21 16 82 3C 8E 65 81 96 CD [21:43:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 60 E2 47 00 F3 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 46 89 02 00 F4 03 04 00 7B 71 16 67 B6 04 01 00 00 22 F6 CD E8 3E E5 DB FF [21:43:24]CommunicateWithHost err = 0 [21:43:24]CheckOFDResponse [21:43:24]1017 (14) - 77093643461234 [21:43:24]1041 (16) - 0000000000871759 [21:43:24]1040 (4) - 166214 [21:43:24]1012 (4) - 21.10.2024 15:21 [21:43:24]1206 (1) - 0 [21:43:24]OFD Sender: Remove packet 166214 [21:43:24]ProducePacketName [21:43:24]name=ofd_packets/00166214 [21:43:24]NVStorageDeleteData [21:43:24]Write to MH i2c: 01 00 00 56 88 DE [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 07 00 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: 01 07 00 56 88 00 00 00 00 00 C7 0C B8 [21:43:24]RasterBufferAndPrint [21:43:24]line [21:43:24]line [21:43:24]line [21:43:24]line [21:43:24]line [21:43:24]written 0, free lines is 3280 [21:43:24]MH_Cut [21:43:24]Write to MH i2c: D1 01 00 5D 88 01 B7 [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: D1 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: D1 01 00 [21:43:24]MH_I2C_Read... [21:43:24]Read from MH i2c: D1 01 00 5D 88 00 B6 [21:43:24]Write to MH i2c: 01 00 00 5E 88 E6 [21:43:24]Write i2c OK [21:43:24]MH_I2C_Read... [21:43:24]OFD Sender: No OFD packet to send [21:43:25]*** Cut start [21:43:25]*** Partial cut [21:43:25]*** CUTSNS_PIN = 1 [21:43:25]*** CUTSNS_PIN = 0 [21:43:25]*** Brake cut motor [21:43:25]Read from MH i2c: 01 [21:43:25]MH_I2C_Read... [21:43:25]*** Stop cut motor [21:43:25]*** Cut end [21:43:25]Read from MH i2c: 01 07 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: 01 07 00 5E 88 00 00 00 00 00 FF 0F FB [21:43:25]process_action close_receipt done [21:43:25]requested_data is exist [21:43:25]produce_requested_data [21:43:25]requested_item fm.sn is exist - process it [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 11 00 00 [21:43:25]Write to MH i2c: E2 08 00 5F 88 80 11 00 00 00 00 00 00 61 [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 17 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 17 00 5F 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B9 [21:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:43:25]wFMCommunicate OK [21:43:25]requested_item fd.num is exist - process it [21:43:25]SAM_PROTO_GetFieldsCounters [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 13 00 00 [21:43:25]Write to MH i2c: E2 08 00 60 88 80 13 00 00 00 00 00 00 64 [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:25]Read from MH i2c: E2 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 62 00 [21:43:25]MH_I2C_Read... [21:43:25]Read from MH i2c: E2 62 00 60 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 48 [21:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 46 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:25]wFMCommunicate OK [21:43:25]SAM_PROTO_GetFieldsCounters done [21:43:25]requested_item shift.num is exist - process it [21:43:25]requested_item shift.opened is exist - process it [21:43:25]req_shift_opened [21:43:25]FM_GetShiftState [21:43:25]SAM_PROTO_GetShiftState [21:43:25]wFMCommunicate request_size=4 [21:43:25]MH_SAM_APDU [21:43:25]CAPDU: 80 13 01 00 [21:43:25]Write to MH i2c: E2 08 00 61 88 80 13 01 00 00 00 00 00 66 [21:43:25]Write i2c OK [21:43:25]MH_I2C_Read... [21:43:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:26]Read from MH i2c: E2 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 0E 00 [21:43:26]MH_I2C_Read... [21:43:26]Read from MH i2c: E2 0E 00 61 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [21:43:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:43:26]wFMCommunicate OK [21:43:26]SAM_PROTO_GetShiftState done [21:43:26]FM_GetShiftState done [21:43:26]req_shift_opened done [21:43:26]requested_item shift.open_date is exist - process it [21:43:26]req_shift_open_date [21:43:26]req_shift_open_date done [21:43:26]produce_requested_data done [21:43:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166214,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:43:26]process_action_free close_receipt [21:43:26]json_value_free [21:43:26]json_value_free done [21:43:26]process_json_proto returns [21:43:26]Send response to host [21:43:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166214,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:43:26]free response buf [21:43:26]execute_script done [21:43:26]execute_script returns [21:43:26]free content buf [21:43:26]Sock 6.Close socket [21:43:26]Sock 6.Thread stoped [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:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:47]accept exits with 5 [21:51:47]New connection [21:51:47]New thread 3066776932 created [21:51:47]Thread 3066920292 joined [21:51:47]Waiting for new connection... [21:51:47] Sock 5.Parse request [21:51:47]Sock 5.Check first char [21:51:47]Sock 5.First char is OK [21:51:47]request: POST /json_proto HTTP/1.0 [21:51:47]Method: POST [21:51:47]URL: /json_proto [21:51:47]Method is POST - this is cgi request [21:51:47]url: /json_proto [21:51:47]query_string will be loaded in cgi processing [21:51:47]execute_cgi json_proto POST (null) [21:51:47]execute_cgi path=json_proto method=POST [21:51:47]POST find Content-Length [21:51:47]Host: 172.17.53.195:8080 [21:51:47]Content-Length: 679 [21:51:47]Content-Type: application/json [21:51:47] [21:51:47]POST finish read [21:51:47]Found Content-Length = 679 [21:51:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:47]execute_script... [21:51: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)220789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:51:47]POST & json_proto [21:51:47]process_json_proto [21:51:47]json parsed OK: [21:51:47]protocol is kg_v1.0 [21:51:47]action value=close_receipt [21:51:47]process_action close_receipt [21:51:47]cmd_close_receipt [21:51:47]MH_GetDate [21:51:47]Write to MH i2c: F0 00 00 62 88 D9 [21:51:47]Write i2c OK [21:51:47]MH_I2C_Read... [21:51:47]Read from MH i2c: F0 [21:51:47]MH_I2C_Read... [21:51:47]Read from MH i2c: F0 09 00 [21:51:47]MH_I2C_Read... [21:51:47]Read from MH i2c: F0 09 00 62 88 00 07 CD 16 67 21 48 4A 65 4B [21:51:47]GetLastDocTimeStamp 1729547022 [21:51:47]current date 1729547527 [21:51:47]FM_GetShiftState [21:51:47]SAM_PROTO_GetShiftState [21:51:47]wFMCommunicate request_size=4 [21:51:47]MH_SAM_APDU [21:51:47]CAPDU: 80 13 01 00 [21:51:47]Write to MH i2c: E2 08 00 63 88 80 13 01 00 00 00 00 00 68 [21:51:47]Write i2c OK [21:51:47]MH_I2C_Read... [21:51:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:47]Read from MH i2c: E2 [21:51:47]MH_I2C_Read... [21:51:47]Read from MH i2c: E2 0E 00 [21:51:47]MH_I2C_Read... [21:51:47]Read from MH i2c: E2 0E 00 63 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 71 [21:51:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:51:47]wFMCommunicate OK [21:51:47]SAM_PROTO_GetShiftState done [21:51:47]FM_GetShiftState done [21:51:47]opened in 1729470944 [21:51:47]opened+sec_in_day 1729557344 [21:51:47]quantity*price = 100050 [21:51:47]sum+1 = 100052 [21:51:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 326 21.10.2024 21:52 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166215 ФПД: 247730361825843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215207&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166215&fm=247730361825843&tin=02508201610067®Number=0000000000091764&sum=100000 [21:51:48]StoreToDocumentArchive [21:51:48]shift 535 fd 166215 [21:51:48]save to /storage/0535/doc_00166215 [21:51:48]save last doc name /storage/0535/doc_00166215 to /storage/kkm_last_doc_name [21:51:48]save OK [21:51:48]Clear old archive folders... [21:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:51:48]tlvbuf is 019EA620 [21:51:48]SAM_PROTO_ClearQueue [21:51:48]wFMCommunicate request_size=4 [21:51:48]MH_SAM_APDU [21:51:48]CAPDU: 80 09 00 00 [21:51:48]Write to MH i2c: E2 08 00 70 88 80 09 00 00 00 00 00 00 6A [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:51:48]Read from MH i2c: E2 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 70 88 00 90 00 6C [21:51:48]RAPDU: 90 00 [21:51:48]wFMCommunicate OK [21:51:48]SAM_PROTO_ClearQueue done [21:51:48]KKMCreateOFDPacket [21:51:48]OFDProtocolAddRootSTLVToBuf [21:51:48]FM_MakeSignedData [21:51:48]FM_MakeSignedData [21:51:48]SAM_PROTO_SignData [21:51:48]wFMCommunicate request_size=4 [21:51:48]MH_SAM_APDU [21:51:48]CAPDU: 80 0D 01 02 [21:51:48]Write to MH i2c: E2 08 00 71 88 80 0D 01 02 00 00 00 00 72 [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:51:48]Read from MH i2c: E2 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 71 88 00 90 00 6D [21:51:48]RAPDU: 90 00 [21:51:48]wFMCommunicate OK [21:51:48]wFMCommunicate request_size=255 [21:51:48]MH_SAM_APDU [21:51:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 46 01 00 00 F4 03 04 00 07 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 89 02 00 35 04 06 00 E1 4F 38 37 [21:51:48]Write to MH i2c: E2 02 01 72 88 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 07 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 89 02 00 35 04 06 00 E1 4F 38 37 00 00 20 [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:48]Read from MH i2c: E2 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 72 88 00 90 00 6E [21:51:48]RAPDU: 90 00 [21:51:48]wFMCommunicate OK [21:51:48]wFMCommunicate request_size=7 [21:51:48]MH_SAM_APDU [21:51:48]CAPDU: 80 0D 02 02 02 7A 33 [21:51:48]Write to MH i2c: E2 0A 00 73 88 80 0D 02 02 02 00 7A 33 00 00 26 [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:51:48]Read from MH i2c: E2 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 03 00 73 88 00 90 00 6F [21:51:48]RAPDU: 90 00 [21:51:48]wFMCommunicate OK [21:51:48]wFMCommunicate request_size=4 [21:51:48]MH_SAM_APDU [21:51:48]CAPDU: 80 0D 03 02 [21:51:48]Write to MH i2c: E2 08 00 74 88 80 0D 03 02 00 00 00 00 77 [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:51:48]Read from MH i2c: E2 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 0B 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 0B 00 74 88 00 94 8C 31 20 13 F9 BB 42 90 00 F2 [21:51:48]RAPDU: 94 8C 31 20 13 F9 BB 42 90 00 [21:51:48]wFMCommunicate OK [21:51:48]SAM_PROTO_SignData done [21:51:48]FM_MakeSignedData done [21:51:48]CreateOFDProtocolMessage [21:51:48]wFMCommunicate request_size=4 [21:51:48]MH_SAM_APDU [21:51:48]CAPDU: 80 11 00 00 [21:51:48]Write to MH i2c: E2 08 00 75 88 80 11 00 00 00 00 00 00 77 [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:48]Read from MH i2c: E2 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 17 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: E2 17 00 75 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CF [21:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:51:48]wFMCommunicate OK [21:51:48]CreateOFDProtocolMessage done [21:51:48]OFDSenderStorePacket 166215 [21:51:48]StoreOFDPacket docnum=166215 [21:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6A 44 04 01 BE 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 46 01 00 00 F4 03 04 00 07 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 89 02 00 35 04 06 00 E1 4F 38 37 7A 33 94 8C 31 20 13 F9 BB 42 [21:51:48]CheckFolder [21:51:48]dirname=/storage/ofd_packets [21:51:48]CheckFolder done [21:51:48]ProducePacketName [21:51:48]name=ofd_packets/00166215 [21:51:48]NVStorageSaveData ofd_packets/00166215 [21:51:48]File name is /storage/ofd_packets/00166215 [21:51:48]Write 298 bytes [21:51:48]NVStorageSaveData done [21:51:48]OFDSenderStorePacket done [21:51:48]KKMCreateOFDPacket done [21:51:48]NVStorageSaveData kkm_last_timestamp [21:51:48]File name is /storage/kkm_last_timestamp [21:51:48]Write 4 bytes [21:51:48]NVStorageSaveData done [21:51:48]ExternCall_PrintAddStr [21:51:48]wPrintStart [21:51:48]Write to MH i2c: 01 00 00 76 88 FE [21:51:48]Write i2c OK [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: 01 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: 01 07 00 [21:51:48]MH_I2C_Read... [21:51:48]Read from MH i2c: 01 07 00 76 88 00 00 00 00 00 FF 0F 13 [21:51:48]RasterBufferAndPrint [21:51:48]line Счет N : (1)220789 [21:51:48]line ИНН: 02508201610067 [21:51:48]line Контрольно-Кассовый Чек [21:51:48]line ПРОДАЖА [21:51:48]line ТРК (МРК, ГНК) : 11 [21:51:48]line Товар: 2710194210 [21:51:48]line ДТ-К-5 [21:51:48]line 13.130 * 76.20 [21:51:48]line = 1000.51 [21:51:48]line НДС 12% НСП 1% [21:51:48]line > о реализуемом товаре [21:51:48]line ОКРУГЛЕНИЕ: -0.51 [21:51:48]line ИТОГО: 1000.00 [21:51:48]line Внесено: 1000.00 [21:51:48]line СДАЧА: 0.00 [21:51:48]line НСП 1% : 8.85 [21:51:48]line НДС 12% : 106.25 [21:51:48]line Наличными: 1000.00 [21:51:48]line Безнал.: 0.00 [21:51:48]line Место: АЗС № 161 "Партнер Нефть" [21:51:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:51:48]line СНО: Общий режим [21:51:48]line Чек 326 21.10.2024 21:52 [21:51:48]line Смена: 535 ФФД: 1.0 [21:51:48]line ЗНМ: 0300000104 [21:51:48]line РНМ: 0000000000091764 [21:51:48]line Версия ККМ: 001 [21:51:48]line ФМ: 0000000000871759 [21:51:48]line ФД: 166215 [21:51:48]line ФПД: 247730361825843 [21:51:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215207&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166215&fm=247730361825843&tin=02508201610067®Number=0000000000091764&sum=100000 [21:51:48]written 0, free lines is 4095 [21:51:48]OFD Sender: Processing packet 166215 [packets to send 48, broken 47] [21:51:48]ProducePacketName [21:51:48]name=ofd_packets/00166215 [21:51:48]OFD Sender: To server: pG, [21:51:48]CommunicateWithHost lk.salyk.kg:30040 [21:51:48]ConnectInit lk.salyk.kg [21:51:49]Connected sock=7 [21:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 6A 44 04 01 BE 4E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 46 01 00 00 F4 03 04 00 07 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 89 02 00 35 04 06 00 E1 4F 38 37 7A 33 94 8C 31 20 13 F9 BB 42 [21:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B2 5C 47 00 2D BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 47 89 02 00 F4 03 04 00 74 73 16 67 B6 04 01 00 00 6F 84 2B 7A 8A CD F1 EF [21:51:49]CommunicateWithHost err = 0 [21:51:49]CheckOFDResponse [21:51:49]1017 (14) - 77093643461234 [21:51:49]1041 (16) - 0000000000871759 [21:51:49]1040 (4) - 166215 [21:51:49]1012 (4) - 21.10.2024 15:29 [21:51:49]1206 (1) - 0 [21:51:49]OFD Sender: Remove packet 166215 [21:51:49]ProducePacketName [21:51:49]name=ofd_packets/00166215 [21:51:49]NVStorageDeleteData [21:51:49]Write to MH i2c: 01 00 00 A1 88 29 [21:51:49]Write i2c OK [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: 01 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: 01 07 00 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: 01 07 00 A1 88 00 00 00 00 00 BE 0C FA [21:51:49]RasterBufferAndPrint [21:51:49]line [21:51:49]line [21:51:49]line [21:51:49]line [21:51:49]line [21:51:49]written 0, free lines is 3268 [21:51:49]MH_Cut [21:51:49]Write to MH i2c: D1 01 00 A8 88 01 02 [21:51:49]Write i2c OK [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: D1 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: D1 01 00 [21:51:49]MH_I2C_Read... [21:51:49]Read from MH i2c: D1 01 00 A8 88 00 01 [21:51:49]Write to MH i2c: 01 00 00 A9 88 31 [21:51:49]Write i2c OK [21:51:49]MH_I2C_Read... [21:51:49]OFD Sender: No OFD packet to send [21:51:50]*** Cut start [21:51:50]*** Partial cut [21:51:50]*** CUTSNS_PIN = 1 [21:51:50]*** CUTSNS_PIN = 0 [21:51:50]*** Brake cut motor [21:51:50]Read from MH i2c: 01 [21:51:50]MH_I2C_Read... [21:51:50]*** Stop cut motor [21:51:50]*** Cut end [21:51:50]Read from MH i2c: 01 07 00 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: 01 07 00 A9 88 00 00 00 00 00 FF 0F 46 [21:51:50]process_action close_receipt done [21:51:50]requested_data is exist [21:51:50]produce_requested_data [21:51:50]requested_item fm.sn is exist - process it [21:51:50]wFMCommunicate request_size=4 [21:51:50]MH_SAM_APDU [21:51:50]CAPDU: 80 11 00 00 [21:51:50]Write to MH i2c: E2 08 00 AA 88 80 11 00 00 00 00 00 00 AC [21:51:50]Write i2c OK [21:51:50]MH_I2C_Read... [21:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:51:50]Read from MH i2c: E2 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: E2 17 00 [21:51:50]MH_I2C_Read... [21:51:50]Read from MH i2c: E2 17 00 AA 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 04 [21:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:51:50]wFMCommunicate OK [21:51:50]requested_item fd.num is exist - process it [21:51:50]SAM_PROTO_GetFieldsCounters [21:51:50]wFMCommunicate request_size=4 [21:51:50]MH_SAM_APDU [21:51:50]CAPDU: 80 13 00 00 [21:51:50]Write to MH i2c: E2 08 00 AB 88 80 13 00 00 00 00 00 00 AF [21:51:50]Write i2c OK [21:51:50]MH_I2C_Read... [21:51:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:51:51]Read from MH i2c: E2 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 62 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 62 00 AB 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [21:51:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 47 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:51:51]wFMCommunicate OK [21:51:51]SAM_PROTO_GetFieldsCounters done [21:51:51]requested_item shift.num is exist - process it [21:51:51]requested_item shift.opened is exist - process it [21:51:51]req_shift_opened [21:51:51]FM_GetShiftState [21:51:51]SAM_PROTO_GetShiftState [21:51:51]wFMCommunicate request_size=4 [21:51:51]MH_SAM_APDU [21:51:51]CAPDU: 80 13 01 00 [21:51:51]Write to MH i2c: E2 08 00 AC 88 80 13 01 00 00 00 00 00 B1 [21:51:51]Write i2c OK [21:51:51]MH_I2C_Read... [21:51:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:51:51]Read from MH i2c: E2 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 0E 00 [21:51:51]MH_I2C_Read... [21:51:51]Read from MH i2c: E2 0E 00 AC 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BA [21:51:51]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:51:51]wFMCommunicate OK [21:51:51]SAM_PROTO_GetShiftState done [21:51:51]FM_GetShiftState done [21:51:51]req_shift_opened done [21:51:51]requested_item shift.open_date is exist - process it [21:51:51]req_shift_open_date [21:51:51]req_shift_open_date done [21:51:51]produce_requested_data done [21:51:51]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166215,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:51:51]process_action_free close_receipt [21:51:51]json_value_free [21:51:51]json_value_free done [21:51:51]process_json_proto returns [21:51:51]Send response to host [21:51:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166215,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:51:51]free response buf [21:51:51]execute_script done [21:51:51]execute_script returns [21:51:51]free content buf [21:51:51]Sock 5.Close socket [21:51:51]Sock 5.Thread stoped [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:45]accept exits with 6 [21:55:45]New connection [21:55:45]New thread 3066920292 created [21:55:45]Thread 3066776932 joined [21:55:45]Waiting for new connection... [21:55:45] Sock 6.Parse request [21:55:45]Sock 6.Check first char [21:55:45]Sock 6.First char is OK [21:55:45]request: POST /json_proto HTTP/1.0 [21:55:45]Method: POST [21:55:45]URL: /json_proto [21:55:45]Method is POST - this is cgi request [21:55:45]url: /json_proto [21:55:45]query_string will be loaded in cgi processing [21:55:45]execute_cgi json_proto POST (null) [21:55:45]execute_cgi path=json_proto method=POST [21:55:45]POST find Content-Length [21:55:45]Host: 172.17.53.195:8080 [21:55:45]Content-Length: 682 [21:55:45]Content-Type: application/json [21:55:45] [21:55:45]POST finish read [21:55:45]Found Content-Length = 682 [21:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 52.170, "sum" : 3490.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 3490.00, "payments": [ { "type": 0, "sum" : 3490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:45]execute_script... [21:55: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)220790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 52.170, "sum" : 3490.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 3490.00, "payments": [ { "type": 0, "sum" : 3490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:55:45]POST & json_proto [21:55:45]process_json_proto [21:55:45]json parsed OK: [21:55:45]protocol is kg_v1.0 [21:55:45]action value=close_receipt [21:55:45]process_action close_receipt [21:55:45]cmd_close_receipt [21:55:45]MH_GetDate [21:55:45]Write to MH i2c: F0 00 00 AD 88 24 [21:55:45]Write i2c OK [21:55:45]MH_I2C_Read... [21:55:45]Read from MH i2c: F0 [21:55:45]MH_I2C_Read... [21:55:45]Read from MH i2c: F0 09 00 [21:55:45]MH_I2C_Read... [21:55:45]Read from MH i2c: F0 09 00 AD 88 00 F6 CD 16 67 21 48 4A 65 85 [21:55:45]GetLastDocTimeStamp 1729547527 [21:55:45]current date 1729547766 [21:55:45]FM_GetShiftState [21:55:45]SAM_PROTO_GetShiftState [21:55:45]wFMCommunicate request_size=4 [21:55:45]MH_SAM_APDU [21:55:45]CAPDU: 80 13 01 00 [21:55:45]Write to MH i2c: E2 08 00 AE 88 80 13 01 00 00 00 00 00 B3 [21:55:45]Write i2c OK [21:55:45]MH_I2C_Read... [21:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:45]Read from MH i2c: E2 [21:55:45]MH_I2C_Read... [21:55:45]Read from MH i2c: E2 0E 00 [21:55:45]MH_I2C_Read... [21:55:45]Read from MH i2c: E2 0E 00 AE 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 BC [21:55:45]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:55:45]wFMCommunicate OK [21:55:45]SAM_PROTO_GetShiftState done [21:55:45]FM_GetShiftState done [21:55:45]opened in 1729470944 [21:55:45]opened+sec_in_day 1729557344 [21:55:45]quantity*price = 349017 [21:55:45]sum+1 = 349018 [21:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.17 ИТОГО: 3490.00 Внесено: 4500.00 СДАЧА: 1010.00 НСП 1% : 30.89 НДС 12% : 370.64 Наличными: 3490.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 327 21.10.2024 21:56 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166216 ФПД: 140476437747507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215606&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166216&fm=140476437747507&tin=02508201610067®Number=0000000000091764&sum=349000 [21:55:46]StoreToDocumentArchive [21:55:46]shift 535 fd 166216 [21:55:46]save to /storage/0535/doc_00166216 [21:55:46]save last doc name /storage/0535/doc_00166216 to /storage/kkm_last_doc_name [21:55:46]save OK [21:55:46]Clear old archive folders... [21:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:55:46]tlvbuf is 01470AC0 [21:55:46]SAM_PROTO_ClearQueue [21:55:46]wFMCommunicate request_size=4 [21:55:46]MH_SAM_APDU [21:55:46]CAPDU: 80 09 00 00 [21:55:46]Write to MH i2c: E2 08 00 BB 88 80 09 00 00 00 00 00 00 B5 [21:55:46]Write i2c OK [21:55:46]MH_I2C_Read... [21:55:46]Read from MH i2c: E2 [21:55:46]MH_I2C_Read... [21:55:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:55:46]Read from MH i2c: E2 03 00 [21:55:46]MH_I2C_Read... [21:55:46]Read from MH i2c: E2 03 00 BB 88 00 90 00 B7 [21:55:46]RAPDU: 90 00 [21:55:46]wFMCommunicate OK [21:55:46]SAM_PROTO_ClearQueue done [21:55:46]KKMCreateOFDPacket [21:55:46]OFDProtocolAddRootSTLVToBuf [21:55:46]FM_MakeSignedData [21:55:46]FM_MakeSignedData [21:55:46]SAM_PROTO_SignData [21:55:46]wFMCommunicate request_size=4 [21:55:46]MH_SAM_APDU [21:55:46]CAPDU: 80 0D 01 02 [21:55:46]Write to MH i2c: E2 08 00 BC 88 80 0D 01 02 00 00 00 00 BD [21:55:46]Write i2c OK [21:55:46]MH_I2C_Read... [21:55:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:55:46]Read from MH i2c: E2 [21:55:46]MH_I2C_Read... [21:55:46]Read from MH i2c: E2 03 00 [21:55:46]MH_I2C_Read... [21:55:46]Read from MH i2c: E2 03 00 BC 88 00 90 00 B8 [21:55:46]RAPDU: 90 00 [21:55:46]wFMCommunicate OK [21:55:46]wFMCommunicate request_size=255 [21:55:46]MH_SAM_APDU [21:55: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 CA CB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 90 00 00 00 00 07 04 06 00 48 53 05 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 F6 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 89 02 00 35 04 06 00 7F [21:55:46]Write to MH i2c: E2 02 01 BD 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA CB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 90 00 00 00 00 07 04 06 00 48 53 05 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 F6 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 89 02 00 35 04 06 00 7F 00 00 F8 [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:47]Read from MH i2c: E2 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 03 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 03 00 BD 88 00 90 00 B9 [21:55:47]RAPDU: 90 00 [21:55:47]wFMCommunicate OK [21:55:47]wFMCommunicate request_size=10 [21:55:47]MH_SAM_APDU [21:55:47]CAPDU: 80 0D 02 02 05 C3 38 2B D7 33 [21:55:47]Write to MH i2c: E2 0D 00 BE 88 80 0D 02 02 05 00 C3 38 2B D7 33 00 00 FA [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:55:47]Read from MH i2c: E2 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 03 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 03 00 BE 88 00 90 00 BA [21:55:47]RAPDU: 90 00 [21:55:47]wFMCommunicate OK [21:55:47]wFMCommunicate request_size=4 [21:55:47]MH_SAM_APDU [21:55:47]CAPDU: 80 0D 03 02 [21:55:47]Write to MH i2c: E2 08 00 BF 88 80 0D 03 02 00 00 00 00 C2 [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:55:47]Read from MH i2c: E2 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 0B 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 0B 00 BF 88 00 19 D8 49 61 FF 6E F7 56 90 00 18 [21:55:47]RAPDU: 19 D8 49 61 FF 6E F7 56 90 00 [21:55:47]wFMCommunicate OK [21:55:47]SAM_PROTO_SignData done [21:55:47]FM_MakeSignedData done [21:55:47]CreateOFDProtocolMessage [21:55:47]wFMCommunicate request_size=4 [21:55:47]MH_SAM_APDU [21:55:47]CAPDU: 80 11 00 00 [21:55:47]Write to MH i2c: E2 08 00 C0 88 80 11 00 00 00 00 00 00 C2 [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:47]Read from MH i2c: E2 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 17 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: E2 17 00 C0 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1A [21:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:55:47]wFMCommunicate OK [21:55:47]CreateOFDProtocolMessage done [21:55:47]OFDSenderStorePacket 166216 [21:55:47]StoreOFDPacket docnum=166216 [21:55:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D 36 07 01 89 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 CA CB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 90 00 00 00 00 07 04 06 00 48 53 05 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 F6 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 89 02 00 35 04 06 00 7F C3 38 2B D7 33 19 D8 49 61 FF 6E F7 56 [21:55:47]CheckFolder [21:55:47]dirname=/storage/ofd_packets [21:55:47]CheckFolder done [21:55:47]ProducePacketName [21:55:47]name=ofd_packets/00166216 [21:55:47]NVStorageSaveData ofd_packets/00166216 [21:55:47]File name is /storage/ofd_packets/00166216 [21:55:47]Write 301 bytes [21:55:47]NVStorageSaveData done [21:55:47]OFDSenderStorePacket done [21:55:47]KKMCreateOFDPacket done [21:55:47]NVStorageSaveData kkm_last_timestamp [21:55:47]File name is /storage/kkm_last_timestamp [21:55:47]Write 4 bytes [21:55:47]NVStorageSaveData done [21:55:47]ExternCall_PrintAddStr [21:55:47]wPrintStart [21:55:47]Write to MH i2c: 01 00 00 C1 88 49 [21:55:47]Write i2c OK [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: 01 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: 01 07 00 [21:55:47]MH_I2C_Read... [21:55:47]Read from MH i2c: 01 07 00 C1 88 00 00 00 00 00 FF 0F 5E [21:55:47]RasterBufferAndPrint [21:55:47]line Счет N : (1)220790 [21:55:47]line ИНН: 02508201610067 [21:55:47]line Контрольно-Кассовый Чек [21:55:47]line ПРОДАЖА [21:55:47]line ТРК (МРК, ГНК) : 13 [21:55:47]line Товар: 2710124130 [21:55:47]line Аи-92-К-5 [21:55:47]line 52.170 * 66.90 [21:55:47]line = 3490.17 [21:55:47]line НДС 12% НСП 1% [21:55:47]line > о реализуемом товаре [21:55:47]line ОКРУГЛЕНИЕ: -0.17 [21:55:47]line ИТОГО: 3490.00 [21:55:47]line Внесено: 4500.00 [21:55:47]line СДАЧА: 1010.00 [21:55:47]line НСП 1% : 30.89 [21:55:47]line НДС 12% : 370.64 [21:55:47]line Наличными: 3490.00 [21:55:47]line Безнал.: 0.00 [21:55:47]line Место: АЗС № 161 "Партнер Нефть" [21:55:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [21:55:47]line СНО: Общий режим [21:55:47]line Чек 327 21.10.2024 21:56 [21:55:47]line Смена: 535 ФФД: 1.0 [21:55:47]line ЗНМ: 0300000104 [21:55:47]line РНМ: 0000000000091764 [21:55:47]line Версия ККМ: 001 [21:55:47]line ФМ: 0000000000871759 [21:55:47]line ФД: 166216 [21:55:47]line ФПД: 140476437747507 [21:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T215606&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166216&fm=140476437747507&tin=02508201610067®Number=0000000000091764&sum=349000 [21:55:47]OFD Sender: Processing packet 166216 [packets to send 48, broken 47] [21:55:47]ProducePacketName [21:55:47]name=ofd_packets/00166216 [21:55:47]OFD Sender: To server: pG, [21:55:47]CommunicateWithHost lk.salyk.kg:30040 [21:55:47]ConnectInit lk.salyk.kg [21:55:47]written 0, free lines is 4095 [21:55:47]Connected sock=7 [21:55:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7D 36 07 01 89 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 CA CB 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 53 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 53 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 11 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 90 00 00 00 00 07 04 06 00 48 53 05 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 F6 CD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 48 89 02 00 35 04 06 00 7F C3 38 2B D7 33 19 D8 49 61 FF 6E F7 56 [21:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7E C3 47 00 0F 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 35 39 10 04 04 00 48 89 02 00 F4 03 04 00 63 74 16 67 B6 04 01 00 00 A1 79 66 A8 96 8B 3D F2 [21:55:48]CommunicateWithHost err = 0 [21:55:48]CheckOFDResponse [21:55:48]1017 (14) - 77093643461234 [21:55:48]1041 (16) - 0000000000871759 [21:55:48]1040 (4) - 166216 [21:55:48]1012 (4) - 21.10.2024 15:33 [21:55:48]1206 (1) - 0 [21:55:48]OFD Sender: Remove packet 166216 [21:55:48]ProducePacketName [21:55:48]name=ofd_packets/00166216 [21:55:48]NVStorageDeleteData [21:55:48]Write to MH i2c: 01 00 00 EC 88 74 [21:55:48]Write i2c OK [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: 01 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: 01 07 00 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: 01 07 00 EC 88 00 00 00 00 00 C8 0C 4F [21:55:48]RasterBufferAndPrint [21:55:48]line [21:55:48]line [21:55:48]line [21:55:48]line [21:55:48]line [21:55:48]written 0, free lines is 3279 [21:55:48]MH_Cut [21:55:48]Write to MH i2c: D1 01 00 F3 88 01 4D [21:55:48]Write i2c OK [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: D1 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: D1 01 00 [21:55:48]MH_I2C_Read... [21:55:48]Read from MH i2c: D1 01 00 F3 88 00 4C [21:55:48]Write to MH i2c: 01 00 00 F4 88 7C [21:55:48]Write i2c OK [21:55:48]MH_I2C_Read... [21:55:48]OFD Sender: No OFD packet to send [21:55:49]*** Cut start [21:55:49]*** Partial cut [21:55:49]*** CUTSNS_PIN = 1 [21:55:49]*** CUTSNS_PIN = 0 [21:55:49]*** Brake cut motor [21:55:49]Read from MH i2c: 01 [21:55:49]MH_I2C_Read... [21:55:49]*** Stop cut motor [21:55:49]*** Cut end [21:55:49]Read from MH i2c: 01 07 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: 01 07 00 F4 88 00 00 00 00 00 FF 0F 91 [21:55:49]process_action close_receipt done [21:55:49]requested_data is exist [21:55:49]produce_requested_data [21:55:49]requested_item fm.sn is exist - process it [21:55:49]wFMCommunicate request_size=4 [21:55:49]MH_SAM_APDU [21:55:49]CAPDU: 80 11 00 00 [21:55:49]Write to MH i2c: E2 08 00 F5 88 80 11 00 00 00 00 00 00 F7 [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 17 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 17 00 F5 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4F [21:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [21:55:49]wFMCommunicate OK [21:55:49]requested_item fd.num is exist - process it [21:55:49]SAM_PROTO_GetFieldsCounters [21:55:49]wFMCommunicate request_size=4 [21:55:49]MH_SAM_APDU [21:55:49]CAPDU: 80 13 00 00 [21:55:49]Write to MH i2c: E2 08 00 F6 88 80 13 00 00 00 00 00 00 FA [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 62 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 62 00 F6 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [21:55:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 48 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:55:49]wFMCommunicate OK [21:55:49]SAM_PROTO_GetFieldsCounters done [21:55:49]requested_item shift.num is exist - process it [21:55:49]requested_item shift.opened is exist - process it [21:55:49]req_shift_opened [21:55:49]FM_GetShiftState [21:55:49]SAM_PROTO_GetShiftState [21:55:49]wFMCommunicate request_size=4 [21:55:49]MH_SAM_APDU [21:55:49]CAPDU: 80 13 01 00 [21:55:49]Write to MH i2c: E2 08 00 F7 88 80 13 01 00 00 00 00 00 FC [21:55:49]Write i2c OK [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 [21:55:49]MH_I2C_Read... [21:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:55:49]Read from MH i2c: E2 0E 00 [21:55:49]MH_I2C_Read... [21:55:49]Read from MH i2c: E2 0E 00 F7 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 05 [21:55:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [21:55:49]wFMCommunicate OK [21:55:49]SAM_PROTO_GetShiftState done [21:55:49]FM_GetShiftState done [21:55:49]req_shift_opened done [21:55:49]requested_item shift.open_date is exist - process it [21:55:49]req_shift_open_date [21:55:49]req_shift_open_date done [21:55:49]produce_requested_data done [21:55:49]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166216,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [21:55:49]process_action_free close_receipt [21:55:49]json_value_free [21:55:49]json_value_free done [21:55:49]process_json_proto returns [21:55:49]Send response to host [21:55:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166216,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [21:55:49]free response buf [21:55:49]execute_script done [21:55:49]execute_script returns [21:55:49]free content buf [21:55:49]Sock 6.Close socket [21:55:49]Sock 6.Thread stoped [21:55:53]OFD Sender: No OFD packet to send [21:55:58]OFD Sender: No OFD packet to send [21:56:03]OFD Sender: No OFD packet to send [21:56:08]OFD Sender: No OFD packet to send [21:56:13]OFD Sender: No OFD packet to send [21:56:18]OFD Sender: No OFD packet to send [21:56:23]OFD Sender: No OFD packet to send [21:56:28]OFD Sender: No OFD packet to send [21:56:33]OFD Sender: No OFD packet to send [21:56:38]OFD Sender: No OFD packet to send [21:56:43]OFD Sender: No OFD packet to send [21:56:48]OFD Sender: No OFD packet to send [21:56:53]OFD Sender: No OFD packet to send [21:56:58]OFD Sender: No OFD packet to send [21:57:03]OFD Sender: No OFD packet to send [21:57:08]OFD Sender: No OFD packet to send [21:57:13]OFD Sender: No OFD packet to send [21:57:18]OFD Sender: No OFD packet to send [21:57:23]OFD Sender: No OFD packet to send [21:57:28]OFD Sender: No OFD packet to send [21:57:33]OFD Sender: No OFD packet to send [21:57:38]OFD Sender: No OFD packet to send [21:57:43]OFD Sender: No OFD packet to send [21:57:48]OFD Sender: No OFD packet to send [21:57:53]OFD Sender: No OFD packet to send [21:57:58]OFD Sender: No OFD packet to send [21:58:03]OFD Sender: No OFD packet to send [21:58:08]OFD Sender: No OFD packet to send [21:58:13]OFD Sender: No OFD packet to send [21:58:18]OFD Sender: No OFD packet to send [21:58:23]OFD Sender: No OFD packet to send [21:58:28]OFD Sender: No OFD packet to send [21:58:33]OFD Sender: No OFD packet to send [21:58:38]OFD Sender: No OFD packet to send [21:58:43]OFD Sender: No OFD packet to send [21:58:48]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:33]OFD Sender: No OFD packet to send [22:01:38]OFD Sender: No OFD packet to send [22:01:43]OFD Sender: No OFD packet to send [22:01:48]OFD Sender: No OFD packet to send [22:01:53]OFD Sender: No OFD packet to send [22:01:58]OFD Sender: No OFD packet to send [22:02:03]OFD Sender: No OFD packet to send [22:02:08]OFD Sender: No OFD packet to send [22:02:13]OFD Sender: No OFD packet to send [22:02:18]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:31]accept exits with 5 [22:04:31]New connection [22:04:31]New thread 3066776932 created [22:04:31]Thread 3066920292 joined [22:04:31]Waiting for new connection... [22:04:31] Sock 5.Parse request [22:04:31]Sock 5.Check first char [22:04:31]Sock 5.First char is OK [22:04:31]request: POST /json_proto HTTP/1.0 [22:04:31]Method: POST [22:04:31]URL: /json_proto [22:04:31]Method is POST - this is cgi request [22:04:31]url: /json_proto [22:04:31]query_string will be loaded in cgi processing [22:04:31]execute_cgi json_proto POST (null) [22:04:31]execute_cgi path=json_proto method=POST [22:04:31]POST find Content-Length [22:04:31]Host: 172.17.53.195:8080 [22:04:31]Content-Length: 677 [22:04:31]Content-Type: application/json [22:04:31] [22:04:31]POST finish read [22:04:31]Found Content-Length = 677 [22:04:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:31]execute_script... [22: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)220791", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:31]POST & json_proto [22:04:31]process_json_proto [22:04:31]json parsed OK: [22:04:31]protocol is kg_v1.0 [22:04:31]action value=close_receipt [22:04:31]process_action close_receipt [22:04:31]cmd_close_receipt [22:04:31]MH_GetDate [22:04:31]Write to MH i2c: F0 00 00 F8 88 6F [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: F0 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: F0 09 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: F0 09 00 F8 88 00 03 D0 16 67 21 48 4A 65 E0 [22:04:31]GetLastDocTimeStamp 1729547766 [22:04:31]current date 1729548291 [22:04:31]FM_GetShiftState [22:04:31]SAM_PROTO_GetShiftState [22:04:31]wFMCommunicate request_size=4 [22:04:31]MH_SAM_APDU [22:04:31]CAPDU: 80 13 01 00 [22:04:31]Write to MH i2c: E2 08 00 F9 88 80 13 01 00 00 00 00 00 FE [22:04:31]Write i2c OK [22:04:31]MH_I2C_Read... [22:04:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:31]Read from MH i2c: E2 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 0E 00 [22:04:31]MH_I2C_Read... [22:04:31]Read from MH i2c: E2 0E 00 F9 88 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 07 [22:04:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:04:31]wFMCommunicate OK [22:04:31]SAM_PROTO_GetShiftState done [22:04:31]FM_GetShiftState done [22:04:31]opened in 1729470944 [22:04:31]opened+sec_in_day 1729557344 [22:04:31]quantity*price = 30038 [22:04:31]sum+1 = 30039 [22:04:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 328 21.10.2024 22:04 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166217 ФПД: 99515869548267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220451&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166217&fm=99515869548267&tin=02508201610067®Number=0000000000091764&sum=30000 [22:04:32]StoreToDocumentArchive [22:04:32]shift 535 fd 166217 [22:04:32]save to /storage/0535/doc_00166217 [22:04:32]save last doc name /storage/0535/doc_00166217 to /storage/kkm_last_doc_name [22:04:32]save OK [22:04:32]Clear old archive folders... [22:04:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:32]tlvbuf is 01445740 [22:04:32]SAM_PROTO_ClearQueue [22:04:32]wFMCommunicate request_size=4 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 09 00 00 [22:04:32]Write to MH i2c: E2 08 00 06 89 80 09 00 00 00 00 00 00 01 [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 06 89 00 90 00 03 [22:04:32]RAPDU: 90 00 [22:04:32]wFMCommunicate OK [22:04:32]SAM_PROTO_ClearQueue done [22:04:32]KKMCreateOFDPacket [22:04:32]OFDProtocolAddRootSTLVToBuf [22:04:32]FM_MakeSignedData [22:04:32]FM_MakeSignedData [22:04:32]SAM_PROTO_SignData [22:04:32]wFMCommunicate request_size=4 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 0D 01 02 [22:04:32]Write to MH i2c: E2 08 00 07 89 80 0D 01 02 00 00 00 00 09 [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 07 89 00 90 00 04 [22:04:32]RAPDU: 90 00 [22:04:32]wFMCommunicate OK [22:04:32]wFMCommunicate request_size=255 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 03 D0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 89 02 00 35 04 06 00 5A [22:04:32]Write to MH i2c: E2 02 01 08 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 03 D0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 89 02 00 35 04 06 00 5A 00 00 73 [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 08 89 00 90 00 05 [22:04:32]RAPDU: 90 00 [22:04:32]wFMCommunicate OK [22:04:32]wFMCommunicate request_size=10 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 0D 02 02 05 82 58 0D CE EB [22:04:32]Write to MH i2c: E2 0D 00 09 89 80 0D 02 02 05 00 82 58 0D CE EB 00 00 B6 [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 03 00 09 89 00 90 00 06 [22:04:32]RAPDU: 90 00 [22:04:32]wFMCommunicate OK [22:04:32]wFMCommunicate request_size=4 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 0D 03 02 [22:04:32]Write to MH i2c: E2 08 00 0A 89 80 0D 03 02 00 00 00 00 0E [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 0B 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 0B 00 0A 89 00 CC 52 93 75 1F 82 46 2B 90 00 47 [22:04:32]RAPDU: CC 52 93 75 1F 82 46 2B 90 00 [22:04:32]wFMCommunicate OK [22:04:32]SAM_PROTO_SignData done [22:04:32]FM_MakeSignedData done [22:04:32]CreateOFDProtocolMessage [22:04:32]wFMCommunicate request_size=4 [22:04:32]MH_SAM_APDU [22:04:32]CAPDU: 80 11 00 00 [22:04:32]Write to MH i2c: E2 08 00 0B 89 80 11 00 00 00 00 00 00 0E [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:32]Read from MH i2c: E2 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 17 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: E2 17 00 0B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 66 [22:04:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:04:32]wFMCommunicate OK [22:04:32]CreateOFDProtocolMessage done [22:04:32]OFDSenderStorePacket 166217 [22:04:32]StoreOFDPacket docnum=166217 [22:04:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 46 07 01 F4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 03 D0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 89 02 00 35 04 06 00 5A 82 58 0D CE EB CC 52 93 75 1F 82 46 2B [22:04:32]CheckFolder [22:04:32]dirname=/storage/ofd_packets [22:04:32]CheckFolder done [22:04:32]ProducePacketName [22:04:32]name=ofd_packets/00166217 [22:04:32]NVStorageSaveData ofd_packets/00166217 [22:04:32]File name is /storage/ofd_packets/00166217 [22:04:32]Write 301 bytes [22:04:32]NVStorageSaveData done [22:04:32]OFDSenderStorePacket done [22:04:32]KKMCreateOFDPacket done [22:04:32]NVStorageSaveData kkm_last_timestamp [22:04:32]File name is /storage/kkm_last_timestamp [22:04:32]Write 4 bytes [22:04:32]NVStorageSaveData done [22:04:32]ExternCall_PrintAddStr [22:04:32]wPrintStart [22:04:32]Write to MH i2c: 01 00 00 0C 89 95 [22:04:32]Write i2c OK [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: 01 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: 01 07 00 [22:04:32]MH_I2C_Read... [22:04:32]Read from MH i2c: 01 07 00 0C 89 00 00 00 00 00 FF 0F AA [22:04:32]RasterBufferAndPrint [22:04:32]line Счет N : (1)220791 [22:04:32]line ИНН: 02508201610067 [22:04:32]line Контрольно-Кассовый Чек [22:04:32]line ПРОДАЖА [22:04:32]line ТРК (МРК, ГНК) : 23 [22:04:32]line Товар: 2710124130 [22:04:32]line Аи-92-К-5 [22:04:32]line 4.490 * 66.90 [22:04:32]line = 300.38 [22:04:32]line НДС 12% НСП 1% [22:04:32]line > о реализуемом товаре [22:04:32]line ОКРУГЛЕНИЕ: -0.38 [22:04:32]line ИТОГО: 300.00 [22:04:32]line Внесено: 300.00 [22:04:32]line СДАЧА: 0.00 [22:04:32]line НСП 1% : 2.66 [22:04:32]line НДС 12% : 31.90 [22:04:32]line Наличными: 300.00 [22:04:32]line Безнал.: 0.00 [22:04:32]line Место: АЗС № 161 "Партнер Нефть" [22:04:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:04:32]line СНО: Общий режим [22:04:32]line Чек 328 21.10.2024 22:04 [22:04:32]line Смена: 535 ФФД: 1.0 [22:04:32]line ЗНМ: 0300000104 [22:04:32]line РНМ: 0000000000091764 [22:04:32]line Версия ККМ: 001 [22:04:32]line ФМ: 0000000000871759 [22:04:32]line ФД: 166217 [22:04:32]line ФПД: 99515869548267 [22:04:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T220451&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166217&fm=99515869548267&tin=02508201610067®Number=0000000000091764&sum=30000 [22:04:33]OFD Sender: Processing packet 166217 [packets to send 48, broken 47] [22:04:33]ProducePacketName [22:04:33]name=ofd_packets/00166217 [22:04:33]OFD Sender: To server: pG, [22:04:33]CommunicateWithHost lk.salyk.kg:30040 [22:04:33]ConnectInit lk.salyk.kg [22:04:33]written 0, free lines is 4095 [22:04:33]Connected sock=7 [22:04:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 46 07 01 F4 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 03 D0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 49 89 02 00 35 04 06 00 5A 82 58 0D CE EB CC 52 93 75 1F 82 46 2B [22:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0F EE 47 00 26 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 35 39 10 04 04 00 49 89 02 00 F4 03 04 00 70 76 16 67 B6 04 01 00 00 57 22 1D B6 B4 C1 29 67 [22:04:33]CommunicateWithHost err = 0 [22:04:33]CheckOFDResponse [22:04:33]1017 (14) - 77093643461234 [22:04:33]1041 (16) - 0000000000871759 [22:04:33]1040 (4) - 166217 [22:04:33]1012 (4) - 21.10.2024 15:42 [22:04:33]1206 (1) - 0 [22:04:33]OFD Sender: Remove packet 166217 [22:04:33]ProducePacketName [22:04:33]name=ofd_packets/00166217 [22:04:33]NVStorageDeleteData [22:04:33]Write to MH i2c: 01 00 00 37 89 C0 [22:04:33]Write i2c OK [22:04:33]MH_I2C_Read... [22:04:33]Read from MH i2c: 01 [22:04:33]MH_I2C_Read... [22:04:33]Read from MH i2c: 01 07 00 [22:04:33]MH_I2C_Read... [22:04:33]Read from MH i2c: 01 07 00 37 89 00 00 00 00 00 C7 0C 9A [22:04:33]RasterBufferAndPrint [22:04:33]line [22:04:33]line [22:04:33]line [22:04:33]line [22:04:33]line [22:04:33]written 0, free lines is 3277 [22:04:33]MH_Cut [22:04:33]Write to MH i2c: D1 01 00 3E 89 01 99 [22:04:33]Write i2c OK [22:04:33]MH_I2C_Read... [22:04:33]Read from MH i2c: D1 [22:04:33]MH_I2C_Read... [22:04:33]Read from MH i2c: D1 01 00 [22:04:33]MH_I2C_Read... [22:04:33]Read from MH i2c: D1 01 00 3E 89 00 98 [22:04:33]Write to MH i2c: 01 00 00 3F 89 C8 [22:04:33]Write i2c OK [22:04:33]MH_I2C_Read... [22:04:34]OFD Sender: No OFD packet to send [22:04:34]*** Cut start [22:04:34]*** Partial cut [22:04:34]*** CUTSNS_PIN = 1 [22:04:34]*** CUTSNS_PIN = 0 [22:04:34]*** Brake cut motor [22:04:35]Read from MH i2c: 01 [22:04:35]MH_I2C_Read... [22:04:35]*** Stop cut motor [22:04:35]*** Cut end [22:04:35]Read from MH i2c: 01 07 00 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: 01 07 00 3F 89 00 00 00 00 00 FF 0F DD [22:04:35]process_action close_receipt done [22:04:35]requested_data is exist [22:04:35]produce_requested_data [22:04:35]requested_item fm.sn is exist - process it [22:04:35]wFMCommunicate request_size=4 [22:04:35]MH_SAM_APDU [22:04:35]CAPDU: 80 11 00 00 [22:04:35]Write to MH i2c: E2 08 00 40 89 80 11 00 00 00 00 00 00 43 [22:04:35]Write i2c OK [22:04:35]MH_I2C_Read... [22:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:35]Read from MH i2c: E2 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 17 00 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 17 00 40 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9B [22:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:04:35]wFMCommunicate OK [22:04:35]requested_item fd.num is exist - process it [22:04:35]SAM_PROTO_GetFieldsCounters [22:04:35]wFMCommunicate request_size=4 [22:04:35]MH_SAM_APDU [22:04:35]CAPDU: 80 13 00 00 [22:04:35]Write to MH i2c: E2 08 00 41 89 80 13 00 00 00 00 00 00 46 [22:04:35]Write i2c OK [22:04:35]MH_I2C_Read... [22:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:04:35]Read from MH i2c: E2 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 62 00 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 62 00 41 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 36 [22: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 49 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:04:35]wFMCommunicate OK [22:04:35]SAM_PROTO_GetFieldsCounters done [22:04:35]requested_item shift.num is exist - process it [22:04:35]requested_item shift.opened is exist - process it [22:04:35]req_shift_opened [22:04:35]FM_GetShiftState [22:04:35]SAM_PROTO_GetShiftState [22:04:35]wFMCommunicate request_size=4 [22:04:35]MH_SAM_APDU [22:04:35]CAPDU: 80 13 01 00 [22:04:35]Write to MH i2c: E2 08 00 42 89 80 13 01 00 00 00 00 00 48 [22:04:35]Write i2c OK [22:04:35]MH_I2C_Read... [22:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:35]Read from MH i2c: E2 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 0E 00 [22:04:35]MH_I2C_Read... [22:04:35]Read from MH i2c: E2 0E 00 42 89 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 51 [22:04:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:04:35]wFMCommunicate OK [22:04:35]SAM_PROTO_GetShiftState done [22:04:35]FM_GetShiftState done [22:04:35]req_shift_opened done [22:04:35]requested_item shift.open_date is exist - process it [22:04:35]req_shift_open_date [22:04:35]req_shift_open_date done [22:04:35]produce_requested_data done [22:04:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166217,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:04:35]process_action_free close_receipt [22:04:35]json_value_free [22:04:35]json_value_free done [22:04:35]process_json_proto returns [22:04:35]Send response to host [22:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166217,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:04:35]free response buf [22:04:35]execute_script done [22:04:35]execute_script returns [22:04:35]free content buf [22:04:35]Sock 5.Close socket [22:04:35]Sock 5.Thread stoped [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:34]OFD Sender: No OFD packet to send [22:06:39]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:06]accept exits with 6 [22:12:06]New connection [22:12:06]New thread 3066920292 created [22:12:06]Thread 3066776932 joined [22:12:06]Waiting for new connection... [22:12:06] Sock 6.Parse request [22:12:06]Sock 6.Check first char [22:12:06]Sock 6.First char is OK [22:12:06]request: POST /json_proto HTTP/1.0 [22:12:06]Method: POST [22:12:06]URL: /json_proto [22:12:06]Method is POST - this is cgi request [22:12:06]url: /json_proto [22:12:06]query_string will be loaded in cgi processing [22:12:06]execute_cgi json_proto POST (null) [22:12:06]execute_cgi path=json_proto method=POST [22:12:06]POST find Content-Length [22:12:06]Host: 172.17.53.195:8080 [22:12:06]Content-Length: 682 [22:12:06]Content-Type: application/json [22:12:06] [22:12:06]POST finish read [22:12:06]Found Content-Length = 682 [22:12:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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:12:06]execute_script... [22:12: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)220792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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:12:06]POST & json_proto [22:12:06]process_json_proto [22:12:06]json parsed OK: [22:12:06]protocol is kg_v1.0 [22:12:06]action value=close_receipt [22:12:06]process_action close_receipt [22:12:06]cmd_close_receipt [22:12:06]MH_GetDate [22:12:06]Write to MH i2c: F0 00 00 43 89 BB [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: F0 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: F0 09 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: F0 09 00 43 89 00 CB D1 16 67 21 48 4A 65 F5 [22:12:06]GetLastDocTimeStamp 1729548291 [22:12:06]current date 1729548747 [22:12:06]FM_GetShiftState [22:12:06]SAM_PROTO_GetShiftState [22:12:06]wFMCommunicate request_size=4 [22:12:06]MH_SAM_APDU [22:12:06]CAPDU: 80 13 01 00 [22:12:06]Write to MH i2c: E2 08 00 44 89 80 13 01 00 00 00 00 00 4A [22:12:06]Write i2c OK [22:12:06]MH_I2C_Read... [22:12:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:06]Read from MH i2c: E2 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 0E 00 [22:12:06]MH_I2C_Read... [22:12:06]Read from MH i2c: E2 0E 00 44 89 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 53 [22:12:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:12:06]wFMCommunicate OK [22:12:06]SAM_PROTO_GetShiftState done [22:12:06]FM_GetShiftState done [22:12:06]opened in 1729470944 [22:12:06]opened+sec_in_day 1729557344 [22:12:06]quantity*price = 100021 [22:12:06]sum+1 = 100023 [22:12:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 329 21.10.2024 22:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166218 ФПД: 279054577965054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166218&fm=279054577965054&tin=02508201610067®Number=0000000000091764&sum=100000 [22:12:07]StoreToDocumentArchive [22:12:07]shift 535 fd 166218 [22:12:07]save to /storage/0535/doc_00166218 [22:12:07]save last doc name /storage/0535/doc_00166218 to /storage/kkm_last_doc_name [22:12:07]save OK [22:12:07]Clear old archive folders... [22:12:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:07]tlvbuf is 0163FD80 [22:12:07]SAM_PROTO_ClearQueue [22:12:07]wFMCommunicate request_size=4 [22:12:07]MH_SAM_APDU [22:12:07]CAPDU: 80 09 00 00 [22:12:07]Write to MH i2c: E2 08 00 51 89 80 09 00 00 00 00 00 00 4C [22:12:07]Write i2c OK [22:12:07]MH_I2C_Read... [22:12:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:07]Read from MH i2c: E2 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: E2 03 00 [22:12:07]MH_I2C_Read... [22:12:07]Read from MH i2c: E2 03 00 51 89 00 90 00 4E [22:12:07]RAPDU: 90 00 [22:12:07]wFMCommunicate OK [22:12:07]SAM_PROTO_ClearQueue done [22:12:07]KKMCreateOFDPacket [22:12:07]OFDProtocolAddRootSTLVToBuf [22:12:07]FM_MakeSignedData [22:12:07]FM_MakeSignedData [22:12:07]SAM_PROTO_SignData [22:12:07]wFMCommunicate request_size=4 [22:12:07]MH_SAM_APDU [22:12:07]CAPDU: 80 0D 01 02 [22:12:07]Write to MH i2c: E2 08 00 52 89 80 0D 01 02 00 00 00 00 54 [22:12:07]Write i2c OK [22:12:07]MH_I2C_Read... [22:12:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:08]Read from MH i2c: E2 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 03 00 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 03 00 52 89 00 90 00 4F [22:12:08]RAPDU: 90 00 [22:12:08]wFMCommunicate OK [22:12:08]wFMCommunicate request_size=255 [22:12:08]MH_SAM_APDU [22:12: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 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 49 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 89 02 00 35 04 06 00 FD [22:12:08]Write to MH i2c: E2 02 01 53 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 49 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 89 02 00 35 04 06 00 FD 00 00 55 [22:12:08]Write i2c OK [22:12:08]MH_I2C_Read... [22:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:08]Read from MH i2c: E2 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 03 00 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 03 00 53 89 00 90 00 50 [22:12:08]RAPDU: 90 00 [22:12:08]wFMCommunicate OK [22:12:08]wFMCommunicate request_size=10 [22:12:08]MH_SAM_APDU [22:12:08]CAPDU: 80 0D 02 02 05 CC 74 FE 17 FE [22:12:08]Write to MH i2c: E2 0D 00 54 89 80 0D 02 02 05 00 CC 74 FE 17 FE 00 00 B4 [22:12:08]Write i2c OK [22:12:08]MH_I2C_Read... [22:12:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:08]Read from MH i2c: E2 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 03 00 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 03 00 54 89 00 90 00 51 [22:12:08]RAPDU: 90 00 [22:12:08]wFMCommunicate OK [22:12:08]wFMCommunicate request_size=4 [22:12:08]MH_SAM_APDU [22:12:08]CAPDU: 80 0D 03 02 [22:12:08]Write to MH i2c: E2 08 00 55 89 80 0D 03 02 00 00 00 00 59 [22:12:08]Write i2c OK [22:12:08]MH_I2C_Read... [22:12:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:08]Read from MH i2c: E2 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 0B 00 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 0B 00 55 89 00 F3 82 16 31 38 DC 0C 48 90 00 7E [22:12:08]RAPDU: F3 82 16 31 38 DC 0C 48 90 00 [22:12:08]wFMCommunicate OK [22:12:08]SAM_PROTO_SignData done [22:12:08]FM_MakeSignedData done [22:12:08]CreateOFDProtocolMessage [22:12:08]wFMCommunicate request_size=4 [22:12:08]MH_SAM_APDU [22:12:08]CAPDU: 80 11 00 00 [22:12:08]Write to MH i2c: E2 08 00 56 89 80 11 00 00 00 00 00 00 59 [22:12:08]Write i2c OK [22:12:08]MH_I2C_Read... [22:12:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:08]Read from MH i2c: E2 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 17 00 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: E2 17 00 56 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 B1 [22:12:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:12:08]wFMCommunicate OK [22:12:08]CreateOFDProtocolMessage done [22:12:08]OFDSenderStorePacket 166218 [22:12:08]StoreOFDPacket docnum=166218 [22:12:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BE 82 07 01 A6 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 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 49 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 89 02 00 35 04 06 00 FD CC 74 FE 17 FE F3 82 16 31 38 DC 0C 48 [22:12:08]CheckFolder [22:12:08]dirname=/storage/ofd_packets [22:12:08]CheckFolder done [22:12:08]ProducePacketName [22:12:08]name=ofd_packets/00166218 [22:12:08]NVStorageSaveData ofd_packets/00166218 [22:12:08]File name is /storage/ofd_packets/00166218 [22:12:08]Write 301 bytes [22:12:08]NVStorageSaveData done [22:12:08]OFDSenderStorePacket done [22:12:08]KKMCreateOFDPacket done [22:12:08]NVStorageSaveData kkm_last_timestamp [22:12:08]File name is /storage/kkm_last_timestamp [22:12:08]Write 4 bytes [22:12:08]NVStorageSaveData done [22:12:08]ExternCall_PrintAddStr [22:12:08]wPrintStart [22:12:08]Write to MH i2c: 01 00 00 57 89 E0 [22:12:08]Write i2c OK [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: 01 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: 01 07 00 [22:12:08]MH_I2C_Read... [22:12:08]Read from MH i2c: 01 07 00 57 89 00 00 00 00 00 FF 0F F5 [22:12:08]RasterBufferAndPrint [22:12:08]line Счет N : (1)220792 [22:12:08]line ИНН: 02508201610067 [22:12:08]line Контрольно-Кассовый Чек [22:12:08]line ПРОДАЖА [22:12:08]line ТРК (МРК, ГНК) : 14 [22:12:08]line Товар: 2710124500 [22:12:08]line Аи-95-К-5 [22:12:08]line 13.480 * 74.20 [22:12:08]line = 1000.22 [22:12:08]line НДС 12% НСП 1% [22:12:08]line > о реализуемом товаре [22:12:08]line ОКРУГЛЕНИЕ: -0.22 [22:12:08]line ИТОГО: 1000.00 [22:12:08]line Внесено: 1000.00 [22:12:08]line СДАЧА: 0.00 [22:12:08]line НСП 1% : 8.85 [22:12:08]line НДС 12% : 106.22 [22:12:08]line Наличными: 1000.00 [22:12:08]line Безнал.: 0.00 [22:12:08]line Место: АЗС № 161 "Партнер Нефть" [22:12:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:12:08]line СНО: Общий режим [22:12:08]line Чек 329 21.10.2024 22:12 [22:12:08]line Смена: 535 ФФД: 1.0 [22:12:08]line ЗНМ: 0300000104 [22:12:08]line РНМ: 0000000000091764 [22:12:08]line Версия ККМ: 001 [22:12:08]line ФМ: 0000000000871759 [22:12:08]line ФД: 166218 [22:12:08]line ФПД: 279054577965054 [22:12:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221227&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166218&fm=279054577965054&tin=02508201610067®Number=0000000000091764&sum=100000 [22:12:08]OFD Sender: Processing packet 166218 [packets to send 48, broken 47] [22:12:08]ProducePacketName [22:12:08]name=ofd_packets/00166218 [22:12:08]OFD Sender: To server: pG, [22:12:08]CommunicateWithHost lk.salyk.kg:30040 [22:12:08]ConnectInit lk.salyk.kg [22:12:08]written 0, free lines is 4095 [22:12:08]Connected sock=7 [22:12:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 BE 82 07 01 A6 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 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 49 01 00 00 F4 03 04 00 CB D1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 89 02 00 35 04 06 00 FD CC 74 FE 17 FE F3 82 16 31 38 DC 0C 48 [22:12:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B7 72 47 00 35 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4A 89 02 00 F4 03 04 00 38 78 16 67 B6 04 01 00 00 D4 46 4B D8 9A 3A B4 2F [22:12:09]CommunicateWithHost err = 0 [22:12:09]CheckOFDResponse [22:12:09]1017 (14) - 77093643461234 [22:12:09]1041 (16) - 0000000000871759 [22:12:09]1040 (4) - 166218 [22:12:09]1012 (4) - 21.10.2024 15:50 [22:12:09]1206 (1) - 0 [22:12:09]OFD Sender: Remove packet 166218 [22:12:09]ProducePacketName [22:12:09]name=ofd_packets/00166218 [22:12:09]NVStorageDeleteData [22:12:09]Write to MH i2c: 01 00 00 82 89 0B [22:12:09]Write i2c OK [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: 01 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: 01 07 00 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: 01 07 00 82 89 00 00 00 00 00 CA 0C E8 [22:12:09]RasterBufferAndPrint [22:12:09]line [22:12:09]line [22:12:09]line [22:12:09]line [22:12:09]line [22:12:09]written 0, free lines is 3281 [22:12:09]MH_Cut [22:12:09]Write to MH i2c: D1 01 00 89 89 01 E4 [22:12:09]Write i2c OK [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: D1 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: D1 01 00 [22:12:09]MH_I2C_Read... [22:12:09]Read from MH i2c: D1 01 00 89 89 00 E3 [22:12:09]Write to MH i2c: 01 00 00 8A 89 13 [22:12:09]Write i2c OK [22:12:09]MH_I2C_Read... [22:12:09]OFD Sender: No OFD packet to send [22:12:10]*** Cut start [22:12:10]*** Partial cut [22:12:10]*** CUTSNS_PIN = 1 [22:12:10]*** CUTSNS_PIN = 0 [22:12:10]*** Brake cut motor [22:12:10]Read from MH i2c: 01 [22:12:10]MH_I2C_Read... [22:12:10]*** Stop cut motor [22:12:10]*** Cut end [22:12:10]Read from MH i2c: 01 07 00 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: 01 07 00 8A 89 00 00 00 00 00 FF 0F 28 [22:12:10]process_action close_receipt done [22:12:10]requested_data is exist [22:12:10]produce_requested_data [22:12:10]requested_item fm.sn is exist - process it [22:12:10]wFMCommunicate request_size=4 [22:12:10]MH_SAM_APDU [22:12:10]CAPDU: 80 11 00 00 [22:12:10]Write to MH i2c: E2 08 00 8B 89 80 11 00 00 00 00 00 00 8E [22:12:10]Write i2c OK [22:12:10]MH_I2C_Read... [22:12:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:10]Read from MH i2c: E2 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: E2 17 00 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: E2 17 00 8B 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E6 [22:12:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:12:10]wFMCommunicate OK [22:12:10]requested_item fd.num is exist - process it [22:12:10]SAM_PROTO_GetFieldsCounters [22:12:10]wFMCommunicate request_size=4 [22:12:10]MH_SAM_APDU [22:12:10]CAPDU: 80 13 00 00 [22:12:10]Write to MH i2c: E2 08 00 8C 89 80 13 00 00 00 00 00 00 91 [22:12:10]Write i2c OK [22:12:10]MH_I2C_Read... [22:12:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:10]Read from MH i2c: E2 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: E2 62 00 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: E2 62 00 8C 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 85 [22:12:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:10]wFMCommunicate OK [22:12:10]SAM_PROTO_GetFieldsCounters done [22:12:10]requested_item shift.num is exist - process it [22:12:10]requested_item shift.opened is exist - process it [22:12:10]req_shift_opened [22:12:10]FM_GetShiftState [22:12:10]SAM_PROTO_GetShiftState [22:12:10]wFMCommunicate request_size=4 [22:12:10]MH_SAM_APDU [22:12:10]CAPDU: 80 13 01 00 [22:12:10]Write to MH i2c: E2 08 00 8D 89 80 13 01 00 00 00 00 00 93 [22:12:10]Write i2c OK [22:12:10]MH_I2C_Read... [22:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:10]Read from MH i2c: E2 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: E2 0E 00 [22:12:10]MH_I2C_Read... [22:12:10]Read from MH i2c: E2 0E 00 8D 89 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9C [22:12:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:12:10]wFMCommunicate OK [22:12:10]SAM_PROTO_GetShiftState done [22:12:10]FM_GetShiftState done [22:12:10]req_shift_opened done [22:12:10]requested_item shift.open_date is exist - process it [22:12:10]req_shift_open_date [22:12:10]req_shift_open_date done [22:12:10]produce_requested_data done [22:12:10]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166218,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:12:10]process_action_free close_receipt [22:12:10]json_value_free [22:12:10]json_value_free done [22:12:10]process_json_proto returns [22:12:10]Send response to host [22:12:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166218,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:12:10]free response buf [22:12:10]execute_script done [22:12:10]execute_script returns [22:12:10]free content buf [22:12:10]Sock 6.Close socket [22:12:10]Sock 6.Thread stoped [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:22]accept exits with 5 [22:16:22]New connection [22:16:22]New thread 3066776932 created [22:16:22]Thread 3066920292 joined [22:16:22]Waiting for new connection... [22:16:22] Sock 5.Parse request [22:16:22]Sock 5.Check first char [22:16:22]Sock 5.First char is OK [22:16:22]request: POST /json_proto HTTP/1.0 [22:16:22]Method: POST [22:16:22]URL: /json_proto [22:16:22]Method is POST - this is cgi request [22:16:22]url: /json_proto [22:16:22]query_string will be loaded in cgi processing [22:16:22]execute_cgi json_proto POST (null) [22:16:22]execute_cgi path=json_proto method=POST [22:16:22]POST find Content-Length [22:16:22]Host: 172.17.53.195:8080 [22:16:22]Content-Length: 677 [22:16:22]Content-Type: application/json [22:16:22] [22:16:22]POST finish read [22:16:22]Found Content-Length = 677 [22:16:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:22]execute_script... [22:16: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)220793", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:22]POST & json_proto [22:16:22]process_json_proto [22:16:22]json parsed OK: [22:16:22]protocol is kg_v1.0 [22:16:22]action value=close_receipt [22:16:22]process_action close_receipt [22:16:22]cmd_close_receipt [22:16:22]MH_GetDate [22:16:22]Write to MH i2c: F0 00 00 8E 89 06 [22:16:22]Write i2c OK [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: F0 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: F0 09 00 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: F0 09 00 8E 89 00 CB D2 16 67 21 48 4A 65 41 [22:16:22]GetLastDocTimeStamp 1729548747 [22:16:22]current date 1729549003 [22:16:22]FM_GetShiftState [22:16:22]SAM_PROTO_GetShiftState [22:16:22]wFMCommunicate request_size=4 [22:16:22]MH_SAM_APDU [22:16:22]CAPDU: 80 13 01 00 [22:16:22]Write to MH i2c: E2 08 00 8F 89 80 13 01 00 00 00 00 00 95 [22:16:22]Write i2c OK [22:16:22]MH_I2C_Read... [22:16:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:22]Read from MH i2c: E2 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: E2 0E 00 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: E2 0E 00 8F 89 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 9E [22:16:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:16:22]wFMCommunicate OK [22:16:22]SAM_PROTO_GetShiftState done [22:16:22]FM_GetShiftState done [22:16:22]opened in 1729470944 [22:16:22]opened+sec_in_day 1729557344 [22:16:22]quantity*price = 35055 [22:16:22]sum+1 = 35057 [22:16:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 330 21.10.2024 22:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166219 ФПД: 182363766946834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166219&fm=182363766946834&tin=02508201610067®Number=0000000000091764&sum=35000 [22:16:23]StoreToDocumentArchive [22:16:23]shift 535 fd 166219 [22:16:23]save to /storage/0535/doc_00166219 [22:16:23]save last doc name /storage/0535/doc_00166219 to /storage/kkm_last_doc_name [22:16:23]save OK [22:16:23]Clear old archive folders... [22:16:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:23]tlvbuf is 01447900 [22:16:23]SAM_PROTO_ClearQueue [22:16:23]wFMCommunicate request_size=4 [22:16:23]MH_SAM_APDU [22:16:23]CAPDU: 80 09 00 00 [22:16:23]Write to MH i2c: E2 08 00 9C 89 80 09 00 00 00 00 00 00 97 [22:16:23]Write i2c OK [22:16:23]MH_I2C_Read... [22:16:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:23]Read from MH i2c: E2 [22:16:23]MH_I2C_Read... [22:16:23]Read from MH i2c: E2 03 00 [22:16:23]MH_I2C_Read... [22:16:23]Read from MH i2c: E2 03 00 9C 89 00 90 00 99 [22:16:23]RAPDU: 90 00 [22:16:23]wFMCommunicate OK [22:16:23]SAM_PROTO_ClearQueue done [22:16:23]KKMCreateOFDPacket [22:16:23]OFDProtocolAddRootSTLVToBuf [22:16:23]FM_MakeSignedData [22:16:23]FM_MakeSignedData [22:16:23]SAM_PROTO_SignData [22:16:23]wFMCommunicate request_size=4 [22:16:23]MH_SAM_APDU [22:16:23]CAPDU: 80 0D 01 02 [22:16:23]Write to MH i2c: E2 08 00 9D 89 80 0D 01 02 00 00 00 00 9F [22:16:23]Write i2c OK [22:16:23]MH_I2C_Read... [22:16:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 03 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 03 00 9D 89 00 90 00 9A [22:16:24]RAPDU: 90 00 [22:16:24]wFMCommunicate OK [22:16:24]wFMCommunicate request_size=255 [22:16:24]MH_SAM_APDU [22: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB D2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 89 02 00 35 04 06 00 A5 [22:16:24]Write to MH i2c: E2 02 01 9E 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB D2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 89 02 00 35 04 06 00 A5 00 00 39 [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 03 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 03 00 9E 89 00 90 00 9B [22:16:24]RAPDU: 90 00 [22:16:24]wFMCommunicate OK [22:16:24]wFMCommunicate request_size=10 [22:16:24]MH_SAM_APDU [22:16:24]CAPDU: 80 0D 02 02 05 DB DF 8C 7C 12 [22:16:24]Write to MH i2c: E2 0D 00 9F 89 80 0D 02 02 05 00 DB DF 8C 7C 12 00 00 80 [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 03 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 03 00 9F 89 00 90 00 9C [22:16:24]RAPDU: 90 00 [22:16:24]wFMCommunicate OK [22:16:24]wFMCommunicate request_size=4 [22:16:24]MH_SAM_APDU [22:16:24]CAPDU: 80 0D 03 02 [22:16:24]Write to MH i2c: E2 08 00 A0 89 80 0D 03 02 00 00 00 00 A4 [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 0B 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 0B 00 A0 89 00 54 DD BC 58 53 6F 20 2F 90 00 FB [22:16:24]RAPDU: 54 DD BC 58 53 6F 20 2F 90 00 [22:16:24]wFMCommunicate OK [22:16:24]SAM_PROTO_SignData done [22:16:24]FM_MakeSignedData done [22:16:24]CreateOFDProtocolMessage [22:16:24]wFMCommunicate request_size=4 [22:16:24]MH_SAM_APDU [22:16:24]CAPDU: 80 11 00 00 [22:16:24]Write to MH i2c: E2 08 00 A1 89 80 11 00 00 00 00 00 00 A4 [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 17 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 17 00 A1 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FC [22:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:16:24]wFMCommunicate OK [22:16:24]CreateOFDProtocolMessage done [22:16:24]OFDSenderStorePacket 166219 [22:16:24]StoreOFDPacket docnum=166219 [22:16:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 60 07 01 CF 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB D2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 89 02 00 35 04 06 00 A5 DB DF 8C 7C 12 54 DD BC 58 53 6F 20 2F [22:16:24]CheckFolder [22:16:24]dirname=/storage/ofd_packets [22:16:24]CheckFolder done [22:16:24]ProducePacketName [22:16:24]name=ofd_packets/00166219 [22:16:24]NVStorageSaveData ofd_packets/00166219 [22:16:24]File name is /storage/ofd_packets/00166219 [22:16:24]Write 301 bytes [22:16:24]NVStorageSaveData done [22:16:24]OFDSenderStorePacket done [22:16:24]KKMCreateOFDPacket done [22:16:24]NVStorageSaveData kkm_last_timestamp [22:16:24]File name is /storage/kkm_last_timestamp [22:16:24]Write 4 bytes [22:16:24]NVStorageSaveData done [22:16:24]ExternCall_PrintAddStr [22:16:24]wPrintStart [22:16:24]Write to MH i2c: 01 00 00 A2 89 2B [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: 01 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: 01 07 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: 01 07 00 A2 89 00 00 00 00 00 FF 0F 40 [22:16:24]RasterBufferAndPrint [22:16:24]line Счет N : (1)220793 [22:16:24]line ИНН: 02508201610067 [22:16:24]line Контрольно-Кассовый Чек [22:16:24]line ПРОДАЖА [22:16:24]line ТРК (МРК, ГНК) : 33 [22:16:24]line Товар: 2710124130 [22:16:24]line Аи-92-К-5 [22:16:24]line 5.240 * 66.90 [22:16:24]line = 350.56 [22:16:24]line НДС 12% НСП 1% [22:16:24]line > о реализуемом товаре [22:16:24]line ОКРУГЛЕНИЕ: -0.56 [22:16:24]line ИТОГО: 350.00 [22:16:24]line Внесено: 350.00 [22:16:24]line СДАЧА: 0.00 [22:16:24]line НСП 1% : 3.10 [22:16:24]line НДС 12% : 37.23 [22:16:24]line Наличными: 350.00 [22:16:24]line Безнал.: 0.00 [22:16:24]line Место: АЗС № 161 "Партнер Нефть" [22:16:24]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:16:24]line СНО: Общий режим [22:16:24]line Чек 330 21.10.2024 22:16 [22:16:24]line Смена: 535 ФФД: 1.0 [22:16:24]line ЗНМ: 0300000104 [22:16:24]line РНМ: 0000000000091764 [22:16:24]line Версия ККМ: 001 [22:16:24]line ФМ: 0000000000871759 [22:16:24]line ФД: 166219 [22:16:24]line ФПД: 182363766946834 [22:16:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T221643&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166219&fm=182363766946834&tin=02508201610067®Number=0000000000091764&sum=35000 [22:16:24]written 0, free lines is 4095 [22:16:24]OFD Sender: Processing packet 166219 [packets to send 48, broken 47] [22:16:24]ProducePacketName [22:16:24]name=ofd_packets/00166219 [22:16:24]OFD Sender: To server: pG, [22:16:24]CommunicateWithHost lk.salyk.kg:30040 [22:16:24]ConnectInit lk.salyk.kg [22:16:24]Connected sock=7 [22:16:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 47 60 07 01 CF 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 CB D2 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 89 02 00 35 04 06 00 A5 DB DF 8C 7C 12 54 DD BC 58 53 6F 20 2F [22:16:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 8E 3C 47 00 19 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4B 89 02 00 F4 03 04 00 38 79 16 67 B6 04 01 00 00 24 2F 1D BC 69 6B E5 AE [22:16:24]CommunicateWithHost err = 0 [22:16:24]CheckOFDResponse [22:16:24]1017 (14) - 77093643461234 [22:16:24]1041 (16) - 0000000000871759 [22:16:24]1040 (4) - 166219 [22:16:24]1012 (4) - 21.10.2024 15:54 [22:16:24]1206 (1) - 0 [22:16:24]OFD Sender: Remove packet 166219 [22:16:24]ProducePacketName [22:16:24]name=ofd_packets/00166219 [22:16:24]NVStorageDeleteData [22:16:24]Write to MH i2c: 01 00 00 CD 89 56 [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: 01 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: 01 07 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: 01 07 00 CD 89 00 00 00 00 00 CC 0C 35 [22:16:24]RasterBufferAndPrint [22:16:24]line [22:16:24]line [22:16:24]line [22:16:24]line [22:16:24]line [22:16:24]written 0, free lines is 3282 [22:16:24]MH_Cut [22:16:24]Write to MH i2c: D1 01 00 D4 89 01 2F [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: D1 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: D1 01 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: D1 01 00 D4 89 00 2E [22:16:24]Write to MH i2c: 01 00 00 D5 89 5E [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:25]OFD Sender: No OFD packet to send [22:16:25]*** Cut start [22:16:25]*** Partial cut [22:16:25]*** CUTSNS_PIN = 1 [22:16:25]*** CUTSNS_PIN = 0 [22:16:25]*** Brake cut motor [22:16:26]Read from MH i2c: 01 [22:16:26]MH_I2C_Read... [22:16:26]*** Stop cut motor [22:16:26]*** Cut end [22:16:26]Read from MH i2c: 01 07 00 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: 01 07 00 D5 89 00 00 00 00 00 FF 0F 73 [22:16:26]process_action close_receipt done [22:16:26]requested_data is exist [22:16:26]produce_requested_data [22:16:26]requested_item fm.sn is exist - process it [22:16:26]wFMCommunicate request_size=4 [22:16:26]MH_SAM_APDU [22:16:26]CAPDU: 80 11 00 00 [22:16:26]Write to MH i2c: E2 08 00 D6 89 80 11 00 00 00 00 00 00 D9 [22:16:26]Write i2c OK [22:16:26]MH_I2C_Read... [22:16:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:26]Read from MH i2c: E2 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: E2 17 00 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: E2 17 00 D6 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 31 [22:16:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:16:26]wFMCommunicate OK [22:16:26]requested_item fd.num is exist - process it [22:16:26]SAM_PROTO_GetFieldsCounters [22:16:26]wFMCommunicate request_size=4 [22:16:26]MH_SAM_APDU [22:16:26]CAPDU: 80 13 00 00 [22:16:26]Write to MH i2c: E2 08 00 D7 89 80 13 00 00 00 00 00 00 DC [22:16:26]Write i2c OK [22:16:26]MH_I2C_Read... [22:16:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:26]Read from MH i2c: E2 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: E2 62 00 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: E2 62 00 D7 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [22:16:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:26]wFMCommunicate OK [22:16:26]SAM_PROTO_GetFieldsCounters done [22:16:26]requested_item shift.num is exist - process it [22:16:26]requested_item shift.opened is exist - process it [22:16:26]req_shift_opened [22:16:26]FM_GetShiftState [22:16:26]SAM_PROTO_GetShiftState [22:16:26]wFMCommunicate request_size=4 [22:16:26]MH_SAM_APDU [22:16:26]CAPDU: 80 13 01 00 [22:16:26]Write to MH i2c: E2 08 00 D8 89 80 13 01 00 00 00 00 00 DE [22:16:26]Write i2c OK [22:16:26]MH_I2C_Read... [22:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:26]Read from MH i2c: E2 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: E2 0E 00 [22:16:26]MH_I2C_Read... [22:16:26]Read from MH i2c: E2 0E 00 D8 89 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E7 [22:16:26]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:16:26]wFMCommunicate OK [22:16:26]SAM_PROTO_GetShiftState done [22:16:26]FM_GetShiftState done [22:16:26]req_shift_opened done [22:16:26]requested_item shift.open_date is exist - process it [22:16:26]req_shift_open_date [22:16:26]req_shift_open_date done [22:16:26]produce_requested_data done [22:16:26]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166219,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:16:26]process_action_free close_receipt [22:16:26]json_value_free [22:16:26]json_value_free done [22:16:26]process_json_proto returns [22:16:26]Send response to host [22:16:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166219,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:16:26]free response buf [22:16:26]execute_script done [22:16:26]execute_script returns [22:16:26]free content buf [22:16:26]Sock 5.Close socket [22:16:26]Sock 5.Thread stoped [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:28]accept exits with 6 [22:20:28]New connection [22:20:28]New thread 3066920292 created [22:20:28]Thread 3066776932 joined [22:20:28]Waiting for new connection... [22:20:28] Sock 6.Parse request [22:20:28]Sock 6.Check first char [22:20:28]Sock 6.First char is OK [22:20:28]request: POST /json_proto HTTP/1.0 [22:20:28]Method: POST [22:20:28]URL: /json_proto [22:20:28]Method is POST - this is cgi request [22:20:28]url: /json_proto [22:20:28]query_string will be loaded in cgi processing [22:20:28]execute_cgi json_proto POST (null) [22:20:28]execute_cgi path=json_proto method=POST [22:20:28]POST find Content-Length [22:20:28]Host: 172.17.53.195:8080 [22:20:28]Content-Length: 675 [22:20:28]Content-Type: application/json [22:20:28] [22:20:28]POST finish read [22:20:28]Found Content-Length = 675 [22:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.230, "sum" : 855.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:28]execute_script... [22:20: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)220794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.230, "sum" : 855.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 856.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:28]POST & json_proto [22:20:28]process_json_proto [22:20:28]json parsed OK: [22:20:28]protocol is kg_v1.0 [22:20:28]action value=close_receipt [22:20:28]process_action close_receipt [22:20:28]cmd_close_receipt [22:20:28]MH_GetDate [22:20:28]Write to MH i2c: F0 00 00 D9 89 51 [22:20:28]Write i2c OK [22:20:28]MH_I2C_Read... [22:20:28]Read from MH i2c: F0 [22:20:28]MH_I2C_Read... [22:20:28]Read from MH i2c: F0 09 00 [22:20:28]MH_I2C_Read... [22:20:28]Read from MH i2c: F0 09 00 D9 89 00 C0 D3 16 67 21 48 4A 65 82 [22:20:28]GetLastDocTimeStamp 1729549003 [22:20:28]current date 1729549248 [22:20:28]FM_GetShiftState [22:20:28]SAM_PROTO_GetShiftState [22:20:28]wFMCommunicate request_size=4 [22:20:28]MH_SAM_APDU [22:20:28]CAPDU: 80 13 01 00 [22:20:28]Write to MH i2c: E2 08 00 DA 89 80 13 01 00 00 00 00 00 E0 [22:20:28]Write i2c OK [22:20:28]MH_I2C_Read... [22:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:28]Read from MH i2c: E2 [22:20:28]MH_I2C_Read... [22:20:28]Read from MH i2c: E2 0E 00 [22:20:28]MH_I2C_Read... [22:20:28]Read from MH i2c: E2 0E 00 DA 89 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 E9 [22:20:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:20:28]wFMCommunicate OK [22:20:28]SAM_PROTO_GetShiftState done [22:20:28]FM_GetShiftState done [22:20:28]opened in 1729470944 [22:20:28]opened+sec_in_day 1729557344 [22:20:28]quantity*price = 85572 [22:20:28]sum+1 = 85574 [22:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 855.00 Внесено: 856.00 СДАЧА: 1.00 НСП 1% : 7.57 НДС 12% : 90.87 Наличными: 855.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 331 21.10.2024 22:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166220 ФПД: 227702930561296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222048&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166220&fm=227702930561296&tin=02508201610067®Number=0000000000091764&sum=85500 [22:20:29]StoreToDocumentArchive [22:20:29]shift 535 fd 166220 [22:20:29]save to /storage/0535/doc_00166220 [22:20:29]save last doc name /storage/0535/doc_00166220 to /storage/kkm_last_doc_name [22:20:29]save OK [22:20:29]Clear old archive folders... [22:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:20:29]tlvbuf is 01971020 [22:20:29]SAM_PROTO_ClearQueue [22:20:29]wFMCommunicate request_size=4 [22:20:29]MH_SAM_APDU [22:20:29]CAPDU: 80 09 00 00 [22:20:29]Write to MH i2c: E2 08 00 E7 89 80 09 00 00 00 00 00 00 E2 [22:20:29]Write i2c OK [22:20:29]MH_I2C_Read... [22:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:29]Read from MH i2c: E2 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 E7 89 00 90 00 E4 [22:20:29]RAPDU: 90 00 [22:20:29]wFMCommunicate OK [22:20:29]SAM_PROTO_ClearQueue done [22:20:29]KKMCreateOFDPacket [22:20:29]OFDProtocolAddRootSTLVToBuf [22:20:29]FM_MakeSignedData [22:20:29]FM_MakeSignedData [22:20:29]SAM_PROTO_SignData [22:20:29]wFMCommunicate request_size=4 [22:20:29]MH_SAM_APDU [22:20:29]CAPDU: 80 0D 01 02 [22:20:29]Write to MH i2c: E2 08 00 E8 89 80 0D 01 02 00 00 00 00 EA [22:20:29]Write i2c OK [22:20:29]MH_I2C_Read... [22:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:29]Read from MH i2c: E2 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 E8 89 00 90 00 E5 [22:20:29]RAPDU: 90 00 [22:20:29]wFMCommunicate OK [22:20:29]wFMCommunicate request_size=255 [22:20:29]MH_SAM_APDU [22:20:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 D3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 89 02 00 35 04 06 00 CF 18 38 4A [22:20:29]Write to MH i2c: E2 02 01 E9 89 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 D3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 89 02 00 35 04 06 00 CF 18 38 4A 00 00 AE [22:20:29]Write i2c OK [22:20:29]MH_I2C_Read... [22:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:29]Read from MH i2c: E2 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 E9 89 00 90 00 E6 [22:20:29]RAPDU: 90 00 [22:20:29]wFMCommunicate OK [22:20:29]wFMCommunicate request_size=7 [22:20:29]MH_SAM_APDU [22:20:29]CAPDU: 80 0D 02 02 02 59 10 [22:20:29]Write to MH i2c: E2 0A 00 EA 89 80 0D 02 02 02 00 59 10 00 00 5A [22:20:29]Write i2c OK [22:20:29]MH_I2C_Read... [22:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:29]Read from MH i2c: E2 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 [22:20:29]MH_I2C_Read... [22:20:29]Read from MH i2c: E2 03 00 EA 89 00 90 00 E7 [22:20:29]RAPDU: 90 00 [22:20:29]wFMCommunicate OK [22:20:29]wFMCommunicate request_size=4 [22:20:29]MH_SAM_APDU [22:20:29]CAPDU: 80 0D 03 02 [22:20:29]Write to MH i2c: E2 08 00 EB 89 80 0D 03 02 00 00 00 00 EF [22:20:29]Write i2c OK [22:20:29]MH_I2C_Read... [22:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:30]Read from MH i2c: E2 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: E2 0B 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: E2 0B 00 EB 89 00 8C 1F 28 A0 BD 42 F1 A1 90 00 F4 [22:20:30]RAPDU: 8C 1F 28 A0 BD 42 F1 A1 90 00 [22:20:30]wFMCommunicate OK [22:20:30]SAM_PROTO_SignData done [22:20:30]FM_MakeSignedData done [22:20:30]CreateOFDProtocolMessage [22:20:30]wFMCommunicate request_size=4 [22:20:30]MH_SAM_APDU [22:20:30]CAPDU: 80 11 00 00 [22:20:30]Write to MH i2c: E2 08 00 EC 89 80 11 00 00 00 00 00 00 EF [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:30]Read from MH i2c: E2 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: E2 17 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: E2 17 00 EC 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 47 [22:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:20:30]wFMCommunicate OK [22:20:30]CreateOFDProtocolMessage done [22:20:30]OFDSenderStorePacket 166220 [22:20:30]StoreOFDPacket docnum=166220 [22:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AE 9D 04 01 B5 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 D3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 89 02 00 35 04 06 00 CF 18 38 4A 59 10 8C 1F 28 A0 BD 42 F1 A1 [22:20:30]CheckFolder [22:20:30]dirname=/storage/ofd_packets [22:20:30]CheckFolder done [22:20:30]ProducePacketName [22:20:30]name=ofd_packets/00166220 [22:20:30]NVStorageSaveData ofd_packets/00166220 [22:20:30]File name is /storage/ofd_packets/00166220 [22:20:30]Write 298 bytes [22:20:30]NVStorageSaveData done [22:20:30]OFDSenderStorePacket done [22:20:30]KKMCreateOFDPacket done [22:20:30]NVStorageSaveData kkm_last_timestamp [22:20:30]File name is /storage/kkm_last_timestamp [22:20:30]Write 4 bytes [22:20:30]NVStorageSaveData done [22:20:30]ExternCall_PrintAddStr [22:20:30]wPrintStart [22:20:30]Write to MH i2c: 01 00 00 ED 89 76 [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: 01 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: 01 07 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: 01 07 00 ED 89 00 00 00 00 00 FF 0F 8B [22:20:30]RasterBufferAndPrint [22:20:30]line Счет N : (1)220794 [22:20:30]line ИНН: 02508201610067 [22:20:30]line Контрольно-Кассовый Чек [22:20:30]line ПРОДАЖА [22:20:30]line ТРК (МРК, ГНК) : 11 [22:20:30]line Товар: 2710194210 [22:20:30]line ДТ-К-5 [22:20:30]line 11.230 * 76.20 [22:20:30]line = 855.73 [22:20:30]line НДС 12% НСП 1% [22:20:30]line > о реализуемом товаре [22:20:30]line ОКРУГЛЕНИЕ: -0.73 [22:20:30]line ИТОГО: 855.00 [22:20:30]line Внесено: 856.00 [22:20:30]line СДАЧА: 1.00 [22:20:30]line НСП 1% : 7.57 [22:20:30]line НДС 12% : 90.87 [22:20:30]line Наличными: 855.00 [22:20:30]line Безнал.: 0.00 [22:20:30]line Место: АЗС № 161 "Партнер Нефть" [22:20:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:20:30]line СНО: Общий режим [22:20:30]line Чек 331 21.10.2024 22:20 [22:20:30]line Смена: 535 ФФД: 1.0 [22:20:30]line ЗНМ: 0300000104 [22:20:30]line РНМ: 0000000000091764 [22:20:30]line Версия ККМ: 001 [22:20:30]line ФМ: 0000000000871759 [22:20:30]line ФД: 166220 [22:20:30]line ФПД: 227702930561296 [22:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222048&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166220&fm=227702930561296&tin=02508201610067®Number=0000000000091764&sum=85500 [22:20:30]OFD Sender: Processing packet 166220 [packets to send 48, broken 47] [22:20:30]ProducePacketName [22:20:30]name=ofd_packets/00166220 [22:20:30]OFD Sender: To server: pG, [22:20:30]CommunicateWithHost lk.salyk.kg:30040 [22:20:30]written 0, free lines is 4095 [22:20:30]ConnectInit lk.salyk.kg [22:20:30]Connected sock=7 [22:20:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 AE 9D 04 01 B5 83 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 C0 D3 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 89 02 00 35 04 06 00 CF 18 38 4A 59 10 8C 1F 28 A0 BD 42 F1 A1 [22:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F9 27 47 00 99 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4C 89 02 00 F4 03 04 00 2E 7A 16 67 B6 04 01 00 00 F2 F1 F8 A5 C4 86 9D F1 [22:20:30]CommunicateWithHost err = 0 [22:20:30]CheckOFDResponse [22:20:30]1017 (14) - 77093643461234 [22:20:30]1041 (16) - 0000000000871759 [22:20:30]1040 (4) - 166220 [22:20:30]1012 (4) - 21.10.2024 15:58 [22:20:30]1206 (1) - 0 [22:20:30]OFD Sender: Remove packet 166220 [22:20:30]ProducePacketName [22:20:30]name=ofd_packets/00166220 [22:20:30]NVStorageDeleteData [22:20:30]Write to MH i2c: 01 00 00 18 8A A2 [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: 01 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: 01 07 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: 01 07 00 18 8A 00 00 00 00 00 C2 0C 77 [22:20:30]RasterBufferAndPrint [22:20:30]line [22:20:30]line [22:20:30]line [22:20:30]line [22:20:30]line [22:20:30]written 0, free lines is 3274 [22:20:30]MH_Cut [22:20:30]Write to MH i2c: D1 01 00 1F 8A 01 7B [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: D1 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: D1 01 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: D1 01 00 1F 8A 00 7A [22:20:30]Write to MH i2c: 01 00 00 20 8A AA [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:31]OFD Sender: No OFD packet to send [22:20:31]*** Cut start [22:20:31]*** Partial cut [22:20:31]*** CUTSNS_PIN = 1 [22:20:31]*** CUTSNS_PIN = 0 [22:20:31]*** Brake cut motor [22:20:32]Read from MH i2c: 01 [22:20:32]MH_I2C_Read... [22:20:32]*** Stop cut motor [22:20:32]*** Cut end [22:20:32]Read from MH i2c: 01 07 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 07 00 20 8A 00 00 00 00 00 FF 0F BF [22:20:32]process_action close_receipt done [22:20:32]requested_data is exist [22:20:32]produce_requested_data [22:20:32]requested_item fm.sn is exist - process it [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 11 00 00 [22:20:32]Write to MH i2c: E2 08 00 21 8A 80 11 00 00 00 00 00 00 25 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 17 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 17 00 21 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7D [22:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:20:32]wFMCommunicate OK [22:20:32]requested_item fd.num is exist - process it [22:20:32]SAM_PROTO_GetFieldsCounters [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 13 00 00 [22:20:32]Write to MH i2c: E2 08 00 22 8A 80 13 00 00 00 00 00 00 28 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 62 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 62 00 22 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [22:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:32]wFMCommunicate OK [22:20:32]SAM_PROTO_GetFieldsCounters done [22:20:32]requested_item shift.num is exist - process it [22:20:32]requested_item shift.opened is exist - process it [22:20:32]req_shift_opened [22:20:32]FM_GetShiftState [22:20:32]SAM_PROTO_GetShiftState [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 13 01 00 [22:20:32]Write to MH i2c: E2 08 00 23 8A 80 13 01 00 00 00 00 00 2A [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 0E 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 0E 00 23 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 33 [22:20:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:20:32]wFMCommunicate OK [22:20:32]SAM_PROTO_GetShiftState done [22:20:32]FM_GetShiftState done [22:20:32]req_shift_opened done [22:20:32]requested_item shift.open_date is exist - process it [22:20:32]req_shift_open_date [22:20:32]req_shift_open_date done [22:20:32]produce_requested_data done [22:20:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166220,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:20:32]process_action_free close_receipt [22:20:32]json_value_free [22:20:32]json_value_free done [22:20:32]process_json_proto returns [22:20:32]Send response to host [22:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166220,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:20:32]free response buf [22:20:32]execute_script done [22:20:32]execute_script returns [22:20:32]free content buf [22:20:32]Sock 6.Close socket [22:20:32]Sock 6.Thread stoped [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:04]accept exits with 5 [22:23:04]New connection [22:23:04]New thread 3066776932 created [22:23:04]Thread 3066920292 joined [22:23:04]Waiting for new connection... [22:23:04] Sock 5.Parse request [22:23:04]Sock 5.Check first char [22:23:04]Sock 5.First char is OK [22:23:04]request: POST /json_proto HTTP/1.0 [22:23:04]Method: POST [22:23:04]URL: /json_proto [22:23:04]Method is POST - this is cgi request [22:23:04]url: /json_proto [22:23:04]query_string will be loaded in cgi processing [22:23:04]execute_cgi json_proto POST (null) [22:23:04]execute_cgi path=json_proto method=POST [22:23:04]POST find Content-Length [22:23:04]Host: 172.17.53.195:8080 [22:23:04]Content-Length: 769 [22:23:04]Content-Type: application/json [22:23:04] [22:23:04]POST finish read [22:23:04]Found Content-Length = 769 [22:23:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:04]execute_script... [22:23: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)220795", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:04]POST & json_proto [22:23:04]process_json_proto [22:23:04]json parsed OK: [22:23:04]protocol is kg_v1.0 [22:23:04]action value=close_receipt [22:23:04]process_action close_receipt [22:23:04]cmd_close_receipt [22:23:04]MH_GetDate [22:23:04]Write to MH i2c: F0 00 00 24 8A 9D [22:23:04]Write i2c OK [22:23:04]MH_I2C_Read... [22:23:04]Read from MH i2c: F0 [22:23:04]MH_I2C_Read... [22:23:04]Read from MH i2c: F0 09 00 [22:23:04]MH_I2C_Read... [22:23:04]Read from MH i2c: F0 09 00 24 8A 00 5C D4 16 67 21 48 4A 65 6B [22:23:04]GetLastDocTimeStamp 1729549248 [22:23:04]current date 1729549404 [22:23:04]FM_GetShiftState [22:23:04]SAM_PROTO_GetShiftState [22:23:04]wFMCommunicate request_size=4 [22:23:04]MH_SAM_APDU [22:23:04]CAPDU: 80 13 01 00 [22:23:04]Write to MH i2c: E2 08 00 25 8A 80 13 01 00 00 00 00 00 2C [22:23:04]Write i2c OK [22:23:04]MH_I2C_Read... [22:23:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:04]Read from MH i2c: E2 [22:23:04]MH_I2C_Read... [22:23:04]Read from MH i2c: E2 0E 00 [22:23:04]MH_I2C_Read... [22:23:04]Read from MH i2c: E2 0E 00 25 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 35 [22:23:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:23:04]wFMCommunicate OK [22:23:04]SAM_PROTO_GetShiftState done [22:23:04]FM_GetShiftState done [22:23:04]opened in 1729470944 [22:23:04]opened+sec_in_day 1729557344 [22:23:04]quantity*price = 100015 [22:23:04]sum+1 = 100017 [22:23:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 332 21.10.2024 22:23 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166221 ФПД: 172381025494627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222324&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166221&fm=172381025494627&tin=02508201610067®Number=0000000000091764&sum=100016 [22:23:05]StoreToDocumentArchive [22:23:05]shift 535 fd 166221 [22:23:05]save to /storage/0535/doc_00166221 [22:23:05]save last doc name /storage/0535/doc_00166221 to /storage/kkm_last_doc_name [22:23:05]save OK [22:23:05]Clear old archive folders... [22:23:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:23:05]tlvbuf is 0177A340 [22:23:05]SAM_PROTO_ClearQueue [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 09 00 00 [22:23:05]Write to MH i2c: E2 08 00 32 8A 80 09 00 00 00 00 00 00 2E [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 32 8A 00 90 00 30 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]SAM_PROTO_ClearQueue done [22:23:05]KKMCreateOFDPacket [22:23:05]OFDProtocolAddRootSTLVToBuf [22:23:05]FM_MakeSignedData [22:23:05]FM_MakeSignedData [22:23:05]SAM_PROTO_SignData [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 01 02 [22:23:05]Write to MH i2c: E2 08 00 33 8A 80 0D 01 02 00 00 00 00 36 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 33 8A 00 90 00 31 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]wFMCommunicate request_size=255 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5C D4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 89 02 00 35 04 06 00 9C [22:23:05]Write to MH i2c: E2 02 01 34 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5C D4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 89 02 00 35 04 06 00 9C 00 00 6D [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 34 8A 00 90 00 32 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]wFMCommunicate request_size=10 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 02 02 05 C7 95 CA 66 63 [22:23:05]Write to MH i2c: E2 0D 00 35 8A 80 0D 02 02 05 00 C7 95 CA 66 63 00 00 32 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 03 00 35 8A 00 90 00 33 [22:23:05]RAPDU: 90 00 [22:23:05]wFMCommunicate OK [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 0D 03 02 [22:23:05]Write to MH i2c: E2 08 00 36 8A 80 0D 03 02 00 00 00 00 3B [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 0B 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 0B 00 36 8A 00 46 C9 75 6E DE 7F 31 3A 90 00 F6 [22:23:05]RAPDU: 46 C9 75 6E DE 7F 31 3A 90 00 [22:23:05]wFMCommunicate OK [22:23:05]SAM_PROTO_SignData done [22:23:05]FM_MakeSignedData done [22:23:05]CreateOFDProtocolMessage [22:23:05]wFMCommunicate request_size=4 [22:23:05]MH_SAM_APDU [22:23:05]CAPDU: 80 11 00 00 [22:23:05]Write to MH i2c: E2 08 00 37 8A 80 11 00 00 00 00 00 00 3B [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:05]Read from MH i2c: E2 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 17 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: E2 17 00 37 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 93 [22:23:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:23:05]wFMCommunicate OK [22:23:05]CreateOFDProtocolMessage done [22:23:05]OFDSenderStorePacket 166221 [22:23:05]StoreOFDPacket docnum=166221 [22:23:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 39 07 01 36 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5C D4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 89 02 00 35 04 06 00 9C C7 95 CA 66 63 46 C9 75 6E DE 7F 31 3A [22:23:05]CheckFolder [22:23:05]dirname=/storage/ofd_packets [22:23:05]CheckFolder done [22:23:05]ProducePacketName [22:23:05]name=ofd_packets/00166221 [22:23:05]NVStorageSaveData ofd_packets/00166221 [22:23:05]File name is /storage/ofd_packets/00166221 [22:23:05]Write 301 bytes [22:23:05]NVStorageSaveData done [22:23:05]OFDSenderStorePacket done [22:23:05]KKMCreateOFDPacket done [22:23:05]NVStorageSaveData kkm_last_timestamp [22:23:05]File name is /storage/kkm_last_timestamp [22:23:05]Write 4 bytes [22:23:05]NVStorageSaveData done [22:23:05]ExternCall_PrintAddStr [22:23:05]wPrintStart [22:23:05]Write to MH i2c: 01 00 00 38 8A C2 [22:23:05]Write i2c OK [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: 01 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: 01 07 00 [22:23:05]MH_I2C_Read... [22:23:05]Read from MH i2c: 01 07 00 38 8A 00 00 00 00 00 FF 0F D7 [22:23:05]RasterBufferAndPrint [22:23:05]line Счет N : (1)220795 [22:23:05]line ИНН: 02508201610067 [22:23:05]line Контрольно-Кассовый Чек [22:23:05]line ПРОДАЖА [22:23:05]line ТРК (МРК, ГНК) : 23 [22:23:05]line Товар: 2710124130 [22:23:05]line Аи-92-К-5 [22:23:05]line 14.950 * 66.90 [22:23:05]line = 1000.16 [22:23:05]line НДС 12% НСП 1% [22:23:05]line > о реализуемом товаре [22:23:05]line ИТОГО: 1000.16 [22:23:05]line НСП 1% : 8.85 [22:23:05]line НДС 12% : 106.21 [22:23:05]line Наличными: 0.00 [22:23:05]line Безнал.: 1000.16 [22:23:05]line Место: АЗС № 161 "Партнер Нефть" [22:23:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:23:05]line СНО: Общий режим [22:23:05]line Чек 332 21.10.2024 22:23 [22:23:05]line Смена: 535 ФФД: 1.0 [22:23:05]line ЗНМ: 0300000104 [22:23:05]line РНМ: 0000000000091764 [22:23:05]line Версия ККМ: 001 [22:23:05]line Платежная система: Mbank [22:23:05]line ФМ: 0000000000871759 [22:23:05]line ФД: 166221 [22:23:05]line ФПД: 172381025494627 [22:23:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222324&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166221&fm=172381025494627&tin=02508201610067®Number=0000000000091764&sum=100016 [22:23:06]written 0, free lines is 4095 [22:23:06]OFD Sender: Processing packet 166221 [packets to send 48, broken 47] [22:23:06]ProducePacketName [22:23:06]name=ofd_packets/00166221 [22:23:06]OFD Sender: To server: pG, [22:23:06]CommunicateWithHost lk.salyk.kg:30040 [22:23:06]ConnectInit lk.salyk.kg [22:23:06]Connected sock=7 [22:23:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 39 07 01 36 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 5C D4 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 89 02 00 35 04 06 00 9C C7 95 CA 66 63 46 C9 75 6E DE 7F 31 3A [22:23:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 50 C0 47 00 61 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4D 89 02 00 F4 03 04 00 C9 7A 16 67 B6 04 01 00 00 BE 7D C6 E7 BD EB EC DE [22:23:06]CommunicateWithHost err = 0 [22:23:06]CheckOFDResponse [22:23:06]1017 (14) - 77093643461234 [22:23:06]1041 (16) - 0000000000871759 [22:23:06]1040 (4) - 166221 [22:23:06]1012 (4) - 21.10.2024 16:01 [22:23:06]1206 (1) - 0 [22:23:06]OFD Sender: Remove packet 166221 [22:23:06]ProducePacketName [22:23:06]name=ofd_packets/00166221 [22:23:06]NVStorageDeleteData [22:23:06]Write to MH i2c: 01 00 00 61 8A EB [22:23:06]Write i2c OK [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: 01 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: 01 07 00 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: 01 07 00 61 8A 00 00 00 00 00 EB 0C E9 [22:23:06]RasterBufferAndPrint [22:23:06]line [22:23:06]line [22:23:06]line [22:23:06]line [22:23:06]line [22:23:06]written 0, free lines is 3314 [22:23:06]MH_Cut [22:23:06]Write to MH i2c: D1 01 00 68 8A 01 C4 [22:23:06]Write i2c OK [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: D1 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: D1 01 00 [22:23:06]MH_I2C_Read... [22:23:06]Read from MH i2c: D1 01 00 68 8A 00 C3 [22:23:06]Write to MH i2c: 01 00 00 69 8A F3 [22:23:06]Write i2c OK [22:23:06]MH_I2C_Read... [22:23:07]OFD Sender: No OFD packet to send [22:23:07]*** Cut start [22:23:07]*** Partial cut [22:23:07]*** CUTSNS_PIN = 1 [22:23:07]*** CUTSNS_PIN = 0 [22:23:07]*** Brake cut motor [22:23:08]Read from MH i2c: 01 [22:23:08]MH_I2C_Read... [22:23:08]*** Stop cut motor [22:23:08]*** Cut end [22:23:08]Read from MH i2c: 01 07 00 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: 01 07 00 69 8A 00 00 00 00 00 FF 0F 08 [22:23:08]process_action close_receipt done [22:23:08]requested_data is exist [22:23:08]produce_requested_data [22:23:08]requested_item fm.sn is exist - process it [22:23:08]wFMCommunicate request_size=4 [22:23:08]MH_SAM_APDU [22:23:08]CAPDU: 80 11 00 00 [22:23:08]Write to MH i2c: E2 08 00 6A 8A 80 11 00 00 00 00 00 00 6E [22:23:08]Write i2c OK [22:23:08]MH_I2C_Read... [22:23:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:08]Read from MH i2c: E2 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: E2 17 00 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: E2 17 00 6A 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C6 [22:23:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:23:08]wFMCommunicate OK [22:23:08]requested_item fd.num is exist - process it [22:23:08]SAM_PROTO_GetFieldsCounters [22:23:08]wFMCommunicate request_size=4 [22:23:08]MH_SAM_APDU [22:23:08]CAPDU: 80 13 00 00 [22:23:08]Write to MH i2c: E2 08 00 6B 8A 80 13 00 00 00 00 00 00 71 [22:23:08]Write i2c OK [22:23:08]MH_I2C_Read... [22:23:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:08]Read from MH i2c: E2 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: E2 62 00 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: E2 62 00 6B 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [22:23:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:08]wFMCommunicate OK [22:23:08]SAM_PROTO_GetFieldsCounters done [22:23:08]requested_item shift.num is exist - process it [22:23:08]requested_item shift.opened is exist - process it [22:23:08]req_shift_opened [22:23:08]FM_GetShiftState [22:23:08]SAM_PROTO_GetShiftState [22:23:08]wFMCommunicate request_size=4 [22:23:08]MH_SAM_APDU [22:23:08]CAPDU: 80 13 01 00 [22:23:08]Write to MH i2c: E2 08 00 6C 8A 80 13 01 00 00 00 00 00 73 [22:23:08]Write i2c OK [22:23:08]MH_I2C_Read... [22:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:08]Read from MH i2c: E2 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: E2 0E 00 [22:23:08]MH_I2C_Read... [22:23:08]Read from MH i2c: E2 0E 00 6C 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7C [22:23:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:23:08]wFMCommunicate OK [22:23:08]SAM_PROTO_GetShiftState done [22:23:08]FM_GetShiftState done [22:23:08]req_shift_opened done [22:23:08]requested_item shift.open_date is exist - process it [22:23:08]req_shift_open_date [22:23:08]req_shift_open_date done [22:23:08]produce_requested_data done [22:23:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166221,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:23:08]process_action_free close_receipt [22:23:08]json_value_free [22:23:08]json_value_free done [22:23:08]process_json_proto returns [22:23:08]Send response to host [22:23:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166221,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:23:08]free response buf [22:23:08]execute_script done [22:23:08]execute_script returns [22:23:08]free content buf [22:23:08]Sock 5.Close socket [22:23:08]Sock 5.Thread stoped [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:04]accept exits with 6 [22:28:04]New connection [22:28:04]New thread 3066920292 created [22:28:04]Thread 3066776932 joined [22:28:04]Waiting for new connection... [22:28:04] Sock 6.Parse request [22:28:04]Sock 6.Check first char [22:28:04]Sock 6.First char is OK [22:28:04]request: POST /json_proto HTTP/1.0 [22:28:04]Method: POST [22:28:04]URL: /json_proto [22:28:04]Method is POST - this is cgi request [22:28:04]url: /json_proto [22:28:04]query_string will be loaded in cgi processing [22:28:04]execute_cgi json_proto POST (null) [22:28:04]execute_cgi path=json_proto method=POST [22:28:04]POST find Content-Length [22:28:04]Host: 172.17.53.195:8080 [22:28:04]Content-Length: 769 [22:28:04]Content-Type: application/json [22:28:04] [22:28:04]POST finish read [22:28:04]Found Content-Length = 769 [22:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:04]execute_script... [22:28:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:04]POST & json_proto [22:28:04]process_json_proto [22:28:04]json parsed OK: [22:28:04]protocol is kg_v1.0 [22:28:04]action value=close_receipt [22:28:04]process_action close_receipt [22:28:04]cmd_close_receipt [22:28:04]MH_GetDate [22:28:04]Write to MH i2c: F0 00 00 6D 8A E6 [22:28:04]Write i2c OK [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: F0 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: F0 09 00 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: F0 09 00 6D 8A 00 88 D5 16 67 21 48 4A 65 E1 [22:28:04]GetLastDocTimeStamp 1729549404 [22:28:04]current date 1729549704 [22:28:04]FM_GetShiftState [22:28:04]SAM_PROTO_GetShiftState [22:28:04]wFMCommunicate request_size=4 [22:28:04]MH_SAM_APDU [22:28:04]CAPDU: 80 13 01 00 [22:28:04]Write to MH i2c: E2 08 00 6E 8A 80 13 01 00 00 00 00 00 75 [22:28:04]Write i2c OK [22:28:04]MH_I2C_Read... [22:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:04]Read from MH i2c: E2 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: E2 0E 00 [22:28:04]MH_I2C_Read... [22:28:04]Read from MH i2c: E2 0E 00 6E 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 7E [22:28:04]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:28:04]wFMCommunicate OK [22:28:04]SAM_PROTO_GetShiftState done [22:28:04]FM_GetShiftState done [22:28:04]opened in 1729470944 [22:28:04]opened+sec_in_day 1729557344 [22:28:04]quantity*price = 100021 [22:28:04]sum+1 = 100023 [22:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 333 21.10.2024 22:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166222 ФПД: 209398967041196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166222&fm=209398967041196&tin=02508201610067®Number=0000000000091764&sum=100022 [22:28:05]StoreToDocumentArchive [22:28:05]shift 535 fd 166222 [22:28:05]save to /storage/0535/doc_00166222 [22:28:05]save last doc name /storage/0535/doc_00166222 to /storage/kkm_last_doc_name [22:28:05]save OK [22:28:05]Clear old archive folders... [22:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:05]tlvbuf is 0190BBA0 [22:28:05]SAM_PROTO_ClearQueue [22:28:05]wFMCommunicate request_size=4 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 09 00 00 [22:28:05]Write to MH i2c: E2 08 00 7B 8A 80 09 00 00 00 00 00 00 77 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 7B 8A 00 90 00 79 [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]SAM_PROTO_ClearQueue done [22:28:05]KKMCreateOFDPacket [22:28:05]OFDProtocolAddRootSTLVToBuf [22:28:05]FM_MakeSignedData [22:28:05]FM_MakeSignedData [22:28:05]SAM_PROTO_SignData [22:28:05]wFMCommunicate request_size=4 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 0D 01 02 [22:28:05]Write to MH i2c: E2 08 00 7C 8A 80 0D 01 02 00 00 00 00 7F [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 7C 8A 00 90 00 7A [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]wFMCommunicate request_size=255 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 88 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 89 02 00 35 04 06 00 BE [22:28:05]Write to MH i2c: E2 02 01 7D 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 88 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 89 02 00 35 04 06 00 BE 00 00 36 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 7D 8A 00 90 00 7B [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]wFMCommunicate request_size=10 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 0D 02 02 05 72 7F 0B FC AC [22:28:05]Write to MH i2c: E2 0D 00 7E 8A 80 0D 02 02 05 00 72 7F 0B FC AC 00 00 30 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 03 00 7E 8A 00 90 00 7C [22:28:05]RAPDU: 90 00 [22:28:05]wFMCommunicate OK [22:28:05]wFMCommunicate request_size=4 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 0D 03 02 [22:28:05]Write to MH i2c: E2 08 00 7F 8A 80 0D 03 02 00 00 00 00 84 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 0B 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 0B 00 7F 8A 00 1B DA 6E FB B6 DB 36 E7 90 00 91 [22:28:05]RAPDU: 1B DA 6E FB B6 DB 36 E7 90 00 [22:28:05]wFMCommunicate OK [22:28:05]SAM_PROTO_SignData done [22:28:05]FM_MakeSignedData done [22:28:05]CreateOFDProtocolMessage [22:28:05]wFMCommunicate request_size=4 [22:28:05]MH_SAM_APDU [22:28:05]CAPDU: 80 11 00 00 [22:28:05]Write to MH i2c: E2 08 00 80 8A 80 11 00 00 00 00 00 00 84 [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:05]Read from MH i2c: E2 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 17 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: E2 17 00 80 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [22:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:28:05]wFMCommunicate OK [22:28:05]CreateOFDProtocolMessage done [22:28:05]OFDSenderStorePacket 166222 [22:28:05]StoreOFDPacket docnum=166222 [22:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B FD 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 88 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 89 02 00 35 04 06 00 BE 72 7F 0B FC AC 1B DA 6E FB B6 DB 36 E7 [22:28:05]CheckFolder [22:28:05]dirname=/storage/ofd_packets [22:28:05]CheckFolder done [22:28:05]ProducePacketName [22:28:05]name=ofd_packets/00166222 [22:28:05]NVStorageSaveData ofd_packets/00166222 [22:28:05]File name is /storage/ofd_packets/00166222 [22:28:05]Write 301 bytes [22:28:05]NVStorageSaveData done [22:28:05]OFDSenderStorePacket done [22:28:05]KKMCreateOFDPacket done [22:28:05]NVStorageSaveData kkm_last_timestamp [22:28:05]File name is /storage/kkm_last_timestamp [22:28:05]Write 4 bytes [22:28:05]NVStorageSaveData done [22:28:05]ExternCall_PrintAddStr [22:28:05]wPrintStart [22:28:05]Write to MH i2c: 01 00 00 81 8A 0B [22:28:05]Write i2c OK [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: 01 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: 01 07 00 [22:28:05]MH_I2C_Read... [22:28:05]Read from MH i2c: 01 07 00 81 8A 00 00 00 00 00 FF 0F 20 [22:28:05]RasterBufferAndPrint [22:28:05]line Счет N : (1)220796 [22:28:05]line ИНН: 02508201610067 [22:28:05]line Контрольно-Кассовый Чек [22:28:05]line ПРОДАЖА [22:28:05]line ТРК (МРК, ГНК) : 14 [22:28:05]line Товар: 2710124500 [22:28:05]line Аи-95-К-5 [22:28:05]line 13.480 * 74.20 [22:28:05]line = 1000.22 [22:28:05]line НДС 12% НСП 1% [22:28:05]line > о реализуемом товаре [22:28:05]line ИТОГО: 1000.22 [22:28:05]line НСП 1% : 8.85 [22:28:05]line НДС 12% : 106.22 [22:28:05]line Наличными: 0.00 [22:28:05]line Безнал.: 1000.22 [22:28:05]line Место: АЗС № 161 "Партнер Нефть" [22:28:05]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:28:05]line СНО: Общий режим [22:28:05]line Чек 333 21.10.2024 22:28 [22:28:05]line Смена: 535 ФФД: 1.0 [22:28:05]line ЗНМ: 0300000104 [22:28:05]line РНМ: 0000000000091764 [22:28:05]line Версия ККМ: 001 [22:28:05]line Платежная система: Mbank [22:28:05]line ФМ: 0000000000871759 [22:28:05]line ФД: 166222 [22:28:05]line ФПД: 209398967041196 [22:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222824&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166222&fm=209398967041196&tin=02508201610067®Number=0000000000091764&sum=100022 [22:28:06]written 0, free lines is 4095 [22:28:06]OFD Sender: Processing packet 166222 [packets to send 48, broken 47] [22:28:06]ProducePacketName [22:28:06]name=ofd_packets/00166222 [22:28:06]OFD Sender: To server: pG, [22:28:06]CommunicateWithHost lk.salyk.kg:30040 [22:28:06]ConnectInit lk.salyk.kg [22:28:06]Connected sock=7 [22:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 0B FD 07 01 B7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 88 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 89 02 00 35 04 06 00 BE 72 7F 0B FC AC 1B DA 6E FB B6 DB 36 E7 [22:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 06 ED 47 00 CA 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4E 89 02 00 F4 03 04 00 F5 7B 16 67 B6 04 01 00 00 92 E9 7C 72 F9 F6 3E A3 [22:28:06]CommunicateWithHost err = 0 [22:28:06]CheckOFDResponse [22:28:06]1017 (14) - 77093643461234 [22:28:06]1041 (16) - 0000000000871759 [22:28:06]1040 (4) - 166222 [22:28:06]1012 (4) - 21.10.2024 16:06 [22:28:06]1206 (1) - 0 [22:28:06]OFD Sender: Remove packet 166222 [22:28:06]ProducePacketName [22:28:06]name=ofd_packets/00166222 [22:28:06]NVStorageDeleteData [22:28:06]Write to MH i2c: 01 00 00 AA 8A 34 [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: 01 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: 01 07 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: 01 07 00 AA 8A 00 00 00 00 00 F5 0C 3C [22:28:06]RasterBufferAndPrint [22:28:06]line [22:28:06]line [22:28:06]line [22:28:06]line [22:28:06]line [22:28:06]written 0, free lines is 3325 [22:28:06]MH_Cut [22:28:06]Write to MH i2c: D1 01 00 B1 8A 01 0D [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: D1 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: D1 01 00 [22:28:06]MH_I2C_Read... [22:28:06]Read from MH i2c: D1 01 00 B1 8A 00 0C [22:28:06]Write to MH i2c: 01 00 00 B2 8A 3C [22:28:06]Write i2c OK [22:28:06]MH_I2C_Read... [22:28:07]OFD Sender: No OFD packet to send [22:28:07]*** Cut start [22:28:07]*** Partial cut [22:28:07]*** CUTSNS_PIN = 1 [22:28:07]*** CUTSNS_PIN = 0 [22:28:07]*** Brake cut motor [22:28:08]Read from MH i2c: 01 [22:28:08]MH_I2C_Read... [22:28:08]*** Stop cut motor [22:28:08]*** Cut end [22:28:08]Read from MH i2c: 01 07 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: 01 07 00 B2 8A 00 00 00 00 00 FF 0F 51 [22:28:08]process_action close_receipt done [22:28:08]requested_data is exist [22:28:08]produce_requested_data [22:28:08]requested_item fm.sn is exist - process it [22:28:08]wFMCommunicate request_size=4 [22:28:08]MH_SAM_APDU [22:28:08]CAPDU: 80 11 00 00 [22:28:08]Write to MH i2c: E2 08 00 B3 8A 80 11 00 00 00 00 00 00 B7 [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:08]Read from MH i2c: E2 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 17 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 17 00 B3 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0F [22:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:28:08]wFMCommunicate OK [22:28:08]requested_item fd.num is exist - process it [22:28:08]SAM_PROTO_GetFieldsCounters [22:28:08]wFMCommunicate request_size=4 [22:28:08]MH_SAM_APDU [22:28:08]CAPDU: 80 13 00 00 [22:28:08]Write to MH i2c: E2 08 00 B4 8A 80 13 00 00 00 00 00 00 BA [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:08]Read from MH i2c: E2 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 62 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 62 00 B4 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [22:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:08]wFMCommunicate OK [22:28:08]SAM_PROTO_GetFieldsCounters done [22:28:08]requested_item shift.num is exist - process it [22:28:08]requested_item shift.opened is exist - process it [22:28:08]req_shift_opened [22:28:08]FM_GetShiftState [22:28:08]SAM_PROTO_GetShiftState [22:28:08]wFMCommunicate request_size=4 [22:28:08]MH_SAM_APDU [22:28:08]CAPDU: 80 13 01 00 [22:28:08]Write to MH i2c: E2 08 00 B5 8A 80 13 01 00 00 00 00 00 BC [22:28:08]Write i2c OK [22:28:08]MH_I2C_Read... [22:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:08]Read from MH i2c: E2 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 0E 00 [22:28:08]MH_I2C_Read... [22:28:08]Read from MH i2c: E2 0E 00 B5 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C5 [22:28:08]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:28:08]wFMCommunicate OK [22:28:08]SAM_PROTO_GetShiftState done [22:28:08]FM_GetShiftState done [22:28:08]req_shift_opened done [22:28:08]requested_item shift.open_date is exist - process it [22:28:08]req_shift_open_date [22:28:08]req_shift_open_date done [22:28:08]produce_requested_data done [22:28:08]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166222,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:28:08]process_action_free close_receipt [22:28:08]json_value_free [22:28:08]json_value_free done [22:28:08]process_json_proto returns [22:28:08]Send response to host [22:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166222,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:28:08]free response buf [22:28:08]execute_script done [22:28:08]execute_script returns [22:28:08]free content buf [22:28:08]Sock 6.Close socket [22:28:08]Sock 6.Thread stoped [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:34]accept exits with 5 [22:28:34]New connection [22:28:34]New thread 3066776932 created [22:28:34]Thread 3066920292 joined [22:28:34]Waiting for new connection... [22:28:34] Sock 5.Parse request [22:28:34]Sock 5.Check first char [22:28:34]Sock 5.First char is OK [22:28:34]request: POST /json_proto HTTP/1.0 [22:28:34]Method: POST [22:28:34]URL: /json_proto [22:28:34]Method is POST - this is cgi request [22:28:34]url: /json_proto [22:28:34]query_string will be loaded in cgi processing [22:28:34]execute_cgi json_proto POST (null) [22:28:34]execute_cgi path=json_proto method=POST [22:28:34]POST find Content-Length [22:28:34]Host: 172.17.53.195:8080 [22:28:34]Content-Length: 766 [22:28:34]Content-Type: application/json [22:28:34] [22:28:34]POST finish read [22:28:34]Found Content-Length = 766 [22:28:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:34]execute_script... [22:28:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220797", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 2.700, "sum" : 200.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:28:34]POST & json_proto [22:28:34]process_json_proto [22:28:34]json parsed OK: [22:28:34]protocol is kg_v1.0 [22:28:34]action value=close_receipt [22:28:34]process_action close_receipt [22:28:34]cmd_close_receipt [22:28:34]MH_GetDate [22:28:34]Write to MH i2c: F0 00 00 B6 8A 2F [22:28:34]Write i2c OK [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: F0 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: F0 09 00 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: F0 09 00 B6 8A 00 A7 D5 16 67 21 48 4A 65 49 [22:28:34]GetLastDocTimeStamp 1729549704 [22:28:34]current date 1729549735 [22:28:34]FM_GetShiftState [22:28:34]SAM_PROTO_GetShiftState [22:28:34]wFMCommunicate request_size=4 [22:28:34]MH_SAM_APDU [22:28:34]CAPDU: 80 13 01 00 [22:28:34]Write to MH i2c: E2 08 00 B7 8A 80 13 01 00 00 00 00 00 BE [22:28:34]Write i2c OK [22:28:34]MH_I2C_Read... [22:28:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:34]Read from MH i2c: E2 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: E2 0E 00 [22:28:34]MH_I2C_Read... [22:28:34]Read from MH i2c: E2 0E 00 B7 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C7 [22:28:34]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:28:34]wFMCommunicate OK [22:28:34]SAM_PROTO_GetShiftState done [22:28:34]FM_GetShiftState done [22:28:34]opened in 1729470944 [22:28:34]opened+sec_in_day 1729557344 [22:28:34]quantity*price = 20034 [22:28:34]sum+1 = 20035 [22:28:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.34 НСП 1% : 1.77 НДС 12% : 21.27 Наличными: 0.00 Безнал.: 200.34 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 334 21.10.2024 22:28 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166223 ФПД: 203853294163056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166223&fm=203853294163056&tin=02508201610067®Number=0000000000091764&sum=20034 [22:28:35]StoreToDocumentArchive [22:28:35]shift 535 fd 166223 [22:28:35]save to /storage/0535/doc_00166223 [22:28:35]save last doc name /storage/0535/doc_00166223 to /storage/kkm_last_doc_name [22:28:35]save OK [22:28:35]Clear old archive folders... [22:28:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:35]tlvbuf is 016E4840 [22:28:35]SAM_PROTO_ClearQueue [22:28:35]wFMCommunicate request_size=4 [22:28:35]MH_SAM_APDU [22:28:35]CAPDU: 80 09 00 00 [22:28:35]Write to MH i2c: E2 08 00 C4 8A 80 09 00 00 00 00 00 00 C0 [22:28:35]Write i2c OK [22:28:35]MH_I2C_Read... [22:28:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:36]Read from MH i2c: E2 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 C4 8A 00 90 00 C2 [22:28:36]RAPDU: 90 00 [22:28:36]wFMCommunicate OK [22:28:36]SAM_PROTO_ClearQueue done [22:28:36]KKMCreateOFDPacket [22:28:36]OFDProtocolAddRootSTLVToBuf [22:28:36]FM_MakeSignedData [22:28:36]FM_MakeSignedData [22:28:36]SAM_PROTO_SignData [22:28:36]wFMCommunicate request_size=4 [22:28:36]MH_SAM_APDU [22:28:36]CAPDU: 80 0D 01 02 [22:28:36]Write to MH i2c: E2 08 00 C5 8A 80 0D 01 02 00 00 00 00 C8 [22:28:36]Write i2c OK [22:28:36]MH_I2C_Read... [22:28:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:36]Read from MH i2c: E2 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 C5 8A 00 90 00 C3 [22:28:36]RAPDU: 90 00 [22:28:36]wFMCommunicate OK [22:28:36]wFMCommunicate request_size=255 [22:28:36]MH_SAM_APDU [22:28:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A7 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 89 02 00 35 04 06 00 B9 [22:28:36]Write to MH i2c: E2 02 01 C6 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A7 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 89 02 00 35 04 06 00 B9 00 00 37 [22:28:36]Write i2c OK [22:28:36]MH_I2C_Read... [22:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:36]Read from MH i2c: E2 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 C6 8A 00 90 00 C4 [22:28:36]RAPDU: 90 00 [22:28:36]wFMCommunicate OK [22:28:36]wFMCommunicate request_size=10 [22:28:36]MH_SAM_APDU [22:28:36]CAPDU: 80 0D 02 02 05 67 4B 2F 54 70 [22:28:36]Write to MH i2c: E2 0D 00 C7 8A 80 0D 02 02 05 00 67 4B 2F 54 70 00 00 7A [22:28:36]Write i2c OK [22:28:36]MH_I2C_Read... [22:28:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:36]Read from MH i2c: E2 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 03 00 C7 8A 00 90 00 C5 [22:28:36]RAPDU: 90 00 [22:28:36]wFMCommunicate OK [22:28:36]wFMCommunicate request_size=4 [22:28:36]MH_SAM_APDU [22:28:36]CAPDU: 80 0D 03 02 [22:28:36]Write to MH i2c: E2 08 00 C8 8A 80 0D 03 02 00 00 00 00 CD [22:28:36]Write i2c OK [22:28:36]MH_I2C_Read... [22:28:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:36]Read from MH i2c: E2 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 0B 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 0B 00 C8 8A 00 45 6B 3A 5D 28 8B BE D8 90 00 5E [22:28:36]RAPDU: 45 6B 3A 5D 28 8B BE D8 90 00 [22:28:36]wFMCommunicate OK [22:28:36]SAM_PROTO_SignData done [22:28:36]FM_MakeSignedData done [22:28:36]CreateOFDProtocolMessage [22:28:36]wFMCommunicate request_size=4 [22:28:36]MH_SAM_APDU [22:28:36]CAPDU: 80 11 00 00 [22:28:36]Write to MH i2c: E2 08 00 C9 8A 80 11 00 00 00 00 00 00 CD [22:28:36]Write i2c OK [22:28:36]MH_I2C_Read... [22:28:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:36]Read from MH i2c: E2 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 17 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: E2 17 00 C9 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 25 [22:28:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:28:36]wFMCommunicate OK [22:28:36]CreateOFDProtocolMessage done [22:28:36]OFDSenderStorePacket 166223 [22:28:36]StoreOFDPacket docnum=166223 [22:28:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB C8 07 01 9C 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A7 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 89 02 00 35 04 06 00 B9 67 4B 2F 54 70 45 6B 3A 5D 28 8B BE D8 [22:28:36]CheckFolder [22:28:36]dirname=/storage/ofd_packets [22:28:36]CheckFolder done [22:28:36]ProducePacketName [22:28:36]name=ofd_packets/00166223 [22:28:36]NVStorageSaveData ofd_packets/00166223 [22:28:36]File name is /storage/ofd_packets/00166223 [22:28:36]Write 301 bytes [22:28:36]NVStorageSaveData done [22:28:36]OFDSenderStorePacket done [22:28:36]KKMCreateOFDPacket done [22:28:36]NVStorageSaveData kkm_last_timestamp [22:28:36]File name is /storage/kkm_last_timestamp [22:28:36]Write 4 bytes [22:28:36]NVStorageSaveData done [22:28:36]ExternCall_PrintAddStr [22:28:36]wPrintStart [22:28:36]Write to MH i2c: 01 00 00 CA 8A 54 [22:28:36]Write i2c OK [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: 01 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: 01 07 00 [22:28:36]MH_I2C_Read... [22:28:36]Read from MH i2c: 01 07 00 CA 8A 00 00 00 00 00 FF 0F 69 [22:28:36]RasterBufferAndPrint [22:28:36]line Счет N : (1)220797 [22:28:36]line ИНН: 02508201610067 [22:28:36]line Контрольно-Кассовый Чек [22:28:36]line ПРОДАЖА [22:28:36]line ТРК (МРК, ГНК) : 14 [22:28:36]line Товар: 2710124500 [22:28:36]line Аи-95-К-5 [22:28:36]line 2.700 * 74.20 [22:28:36]line = 200.34 [22:28:36]line НДС 12% НСП 1% [22:28:36]line > о реализуемом товаре [22:28:36]line ИТОГО: 200.34 [22:28:36]line НСП 1% : 1.77 [22:28:36]line НДС 12% : 21.27 [22:28:36]line Наличными: 0.00 [22:28:36]line Безнал.: 200.34 [22:28:36]line Место: АЗС № 161 "Партнер Нефть" [22:28:36]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:28:36]line СНО: Общий режим [22:28:36]line Чек 334 21.10.2024 22:28 [22:28:36]line Смена: 535 ФФД: 1.0 [22:28:36]line ЗНМ: 0300000104 [22:28:36]line РНМ: 0000000000091764 [22:28:36]line Версия ККМ: 001 [22:28:36]line Платежная система: Mbank [22:28:36]line ФМ: 0000000000871759 [22:28:36]line ФД: 166223 [22:28:36]line ФПД: 203853294163056 [22:28:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222855&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166223&fm=203853294163056&tin=02508201610067®Number=0000000000091764&sum=20034 [22:28:36]OFD Sender: Processing packet 166223 [packets to send 48, broken 47] [22:28:36]ProducePacketName [22:28:36]name=ofd_packets/00166223 [22:28:36]OFD Sender: To server: pG, [22:28:36]CommunicateWithHost lk.salyk.kg:30040 [22:28:36]ConnectInit lk.salyk.kg [22:28:36]written 0, free lines is 4095 [22:28:36]Connected sock=7 [22:28:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 AB C8 07 01 9C 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 8C 0A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 42 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 A7 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 89 02 00 35 04 06 00 B9 67 4B 2F 54 70 45 6B 3A 5D 28 8B BE D8 [22:28:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 7D A0 47 00 E2 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 4F 89 02 00 F4 03 04 00 14 7C 16 67 B6 04 01 00 00 54 33 8D 8B 0E 97 9D 7B [22:28:37]CommunicateWithHost err = 0 [22:28:37]CheckOFDResponse [22:28:37]1017 (14) - 77093643461234 [22:28:37]1041 (16) - 0000000000871759 [22:28:37]1040 (4) - 166223 [22:28:37]1012 (4) - 21.10.2024 16:06 [22:28:37]1206 (1) - 0 [22:28:37]OFD Sender: Remove packet 166223 [22:28:37]ProducePacketName [22:28:37]name=ofd_packets/00166223 [22:28:37]NVStorageDeleteData [22:28:37]Write to MH i2c: 01 00 00 F3 8A 7D [22:28:37]Write i2c OK [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: 01 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: 01 07 00 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: 01 07 00 F3 8A 00 00 00 00 00 F5 0C 85 [22:28:37]RasterBufferAndPrint [22:28:37]line [22:28:37]line [22:28:37]line [22:28:37]line [22:28:37]line [22:28:37]written 0, free lines is 3325 [22:28:37]MH_Cut [22:28:37]Write to MH i2c: D1 01 00 FA 8A 01 56 [22:28:37]Write i2c OK [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: D1 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: D1 01 00 [22:28:37]MH_I2C_Read... [22:28:37]Read from MH i2c: D1 01 00 FA 8A 00 55 [22:28:37]Write to MH i2c: 01 00 00 FB 8A 85 [22:28:37]Write i2c OK [22:28:37]MH_I2C_Read... [22:28:37]OFD Sender: No OFD packet to send [22:28:38]*** Cut start [22:28:38]*** Partial cut [22:28:38]*** CUTSNS_PIN = 1 [22:28:38]*** CUTSNS_PIN = 0 [22:28:38]*** Brake cut motor [22:28:38]Read from MH i2c: 01 [22:28:38]MH_I2C_Read... [22:28:38]*** Stop cut motor [22:28:38]*** Cut end [22:28:38]Read from MH i2c: 01 07 00 [22:28:38]MH_I2C_Read... [22:28:38]Read from MH i2c: 01 07 00 FB 8A 00 00 00 00 00 FF 0F 9A [22:28:38]process_action close_receipt done [22:28:38]requested_data is exist [22:28:38]produce_requested_data [22:28:38]requested_item fm.sn is exist - process it [22:28:38]wFMCommunicate request_size=4 [22:28:38]MH_SAM_APDU [22:28:38]CAPDU: 80 11 00 00 [22:28:38]Write to MH i2c: E2 08 00 FC 8A 80 11 00 00 00 00 00 00 00 [22:28:38]Write i2c OK [22:28:38]MH_I2C_Read... [22:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:38]Read from MH i2c: E2 [22:28:38]MH_I2C_Read... [22:28:38]Read from MH i2c: E2 17 00 [22:28:38]MH_I2C_Read... [22:28:38]Read from MH i2c: E2 17 00 FC 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [22:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:28:38]wFMCommunicate OK [22:28:38]requested_item fd.num is exist - process it [22:28:38]SAM_PROTO_GetFieldsCounters [22:28:38]wFMCommunicate request_size=4 [22:28:38]MH_SAM_APDU [22:28:38]CAPDU: 80 13 00 00 [22:28:38]Write to MH i2c: E2 08 00 FD 8A 80 13 00 00 00 00 00 00 03 [22:28:38]Write i2c OK [22:28:38]MH_I2C_Read... [22:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:38]Read from MH i2c: E2 [22:28:38]MH_I2C_Read... [22:28:38]Read from MH i2c: E2 62 00 [22:28:38]MH_I2C_Read... [22:28:38]Read from MH i2c: E2 62 00 FD 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [22:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 4F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:38]wFMCommunicate OK [22:28:38]SAM_PROTO_GetFieldsCounters done [22:28:38]requested_item shift.num is exist - process it [22:28:38]requested_item shift.opened is exist - process it [22:28:38]req_shift_opened [22:28:38]FM_GetShiftState [22:28:38]SAM_PROTO_GetShiftState [22:28:38]wFMCommunicate request_size=4 [22:28:38]MH_SAM_APDU [22:28:38]CAPDU: 80 13 01 00 [22:28:38]Write to MH i2c: E2 08 00 FE 8A 80 13 01 00 00 00 00 00 05 [22:28:38]Write i2c OK [22:28:38]MH_I2C_Read... [22:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:39]Read from MH i2c: E2 [22:28:39]MH_I2C_Read... [22:28:39]Read from MH i2c: E2 0E 00 [22:28:39]MH_I2C_Read... [22:28:39]Read from MH i2c: E2 0E 00 FE 8A 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0E [22:28:39]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:28:39]wFMCommunicate OK [22:28:39]SAM_PROTO_GetShiftState done [22:28:39]FM_GetShiftState done [22:28:39]req_shift_opened done [22:28:39]requested_item shift.open_date is exist - process it [22:28:39]req_shift_open_date [22:28:39]req_shift_open_date done [22:28:39]produce_requested_data done [22:28:39]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166223,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:28:39]process_action_free close_receipt [22:28:39]json_value_free [22:28:39]json_value_free done [22:28:39]process_json_proto returns [22:28:39]Send response to host [22:28:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166223,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:28:39]free response buf [22:28:39]execute_script done [22:28:39]execute_script returns [22:28:39]free content buf [22:28:39]Sock 5.Close socket [22:28:39]Sock 5.Thread stoped [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:15]accept exits with 6 [22:29:15]New connection [22:29:15]New thread 3066920292 created [22:29:15]Thread 3066776932 joined [22:29:15]Waiting for new connection... [22:29:15] Sock 6.Parse request [22:29:15]Sock 6.Check first char [22:29:15]Sock 6.First char is OK [22:29:15]request: POST /json_proto HTTP/1.0 [22:29:15]Method: POST [22:29:15]URL: /json_proto [22:29:15]Method is POST - this is cgi request [22:29:15]url: /json_proto [22:29:15]query_string will be loaded in cgi processing [22:29:15]execute_cgi json_proto POST (null) [22:29:15]execute_cgi path=json_proto method=POST [22:29:15]POST find Content-Length [22:29:15]Host: 172.17.53.195:8080 [22:29:15]Content-Length: 677 [22:29:15]Content-Type: application/json [22:29:15] [22:29:15]POST finish read [22:29:15]Found Content-Length = 677 [22:29:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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" ] } } [22:29:15]execute_script... [22:29: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)220798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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" ] } } [22:29:15]POST & json_proto [22:29:15]process_json_proto [22:29:15]json parsed OK: [22:29:15]protocol is kg_v1.0 [22:29:15]action value=close_receipt [22:29:15]process_action close_receipt [22:29:15]cmd_close_receipt [22:29:15]MH_GetDate [22:29:15]Write to MH i2c: F0 00 00 FF 8A 78 [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: F0 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: F0 09 00 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: F0 09 00 FF 8A 00 D0 D5 16 67 21 48 4A 65 BB [22:29:15]GetLastDocTimeStamp 1729549735 [22:29:15]current date 1729549776 [22:29:15]FM_GetShiftState [22:29:15]SAM_PROTO_GetShiftState [22:29:15]wFMCommunicate request_size=4 [22:29:15]MH_SAM_APDU [22:29:15]CAPDU: 80 13 01 00 [22:29:15]Write to MH i2c: E2 08 00 00 8B 80 13 01 00 00 00 00 00 08 [22:29:15]Write i2c OK [22:29:15]MH_I2C_Read... [22:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:15]Read from MH i2c: E2 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: E2 0E 00 [22:29:15]MH_I2C_Read... [22:29:15]Read from MH i2c: E2 0E 00 00 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 11 [22:29:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:29:15]wFMCommunicate OK [22:29:15]SAM_PROTO_GetShiftState done [22:29:15]FM_GetShiftState done [22:29:15]opened in 1729470944 [22:29:15]opened+sec_in_day 1729557344 [22:29:15]quantity*price = 50010 [22:29:15]sum+1 = 50012 [22:29:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 335 21.10.2024 22:29 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166224 ФПД: 222099767457374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166224&fm=222099767457374&tin=02508201610067®Number=0000000000091764&sum=50000 [22:29:16]StoreToDocumentArchive [22:29:16]shift 535 fd 166224 [22:29:16]save to /storage/0535/doc_00166224 [22:29:16]save last doc name /storage/0535/doc_00166224 to /storage/kkm_last_doc_name [22:29:16]save OK [22:29:16]Clear old archive folders... [22:29:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:29:16]tlvbuf is 01512D90 [22:29:16]SAM_PROTO_ClearQueue [22:29:16]wFMCommunicate request_size=4 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 09 00 00 [22:29:16]Write to MH i2c: E2 08 00 0D 8B 80 09 00 00 00 00 00 00 0A [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:16]Read from MH i2c: E2 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 03 00 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 03 00 0D 8B 00 90 00 0C [22:29:16]RAPDU: 90 00 [22:29:16]wFMCommunicate OK [22:29:16]SAM_PROTO_ClearQueue done [22:29:16]KKMCreateOFDPacket [22:29:16]OFDProtocolAddRootSTLVToBuf [22:29:16]FM_MakeSignedData [22:29:16]FM_MakeSignedData [22:29:16]SAM_PROTO_SignData [22:29:16]wFMCommunicate request_size=4 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 0D 01 02 [22:29:16]Write to MH i2c: E2 08 00 0E 8B 80 0D 01 02 00 00 00 00 12 [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:16]Read from MH i2c: E2 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 03 00 [22:29:16]MH_I2C_Read... [22:29:16]Read from MH i2c: E2 03 00 0E 8B 00 90 00 0D [22:29:16]RAPDU: 90 00 [22:29:16]wFMCommunicate OK [22:29:16]wFMCommunicate request_size=255 [22:29:16]MH_SAM_APDU [22:29:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 01 00 00 F4 03 04 00 D0 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 89 02 00 35 04 06 00 C9 [22:29:16]Write to MH i2c: E2 02 01 0F 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 01 00 00 F4 03 04 00 D0 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 89 02 00 35 04 06 00 C9 00 00 AF [22:29:16]Write i2c OK [22:29:16]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 0F 8B 00 90 00 0E [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]wFMCommunicate request_size=10 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 02 02 05 FF A1 BE 76 5E [22:29:17]Write to MH i2c: E2 0D 00 10 8B 80 0D 02 02 05 00 FF A1 BE 76 5E 00 00 51 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 03 00 10 8B 00 90 00 0F [22:29:17]RAPDU: 90 00 [22:29:17]wFMCommunicate OK [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 0D 03 02 [22:29:17]Write to MH i2c: E2 08 00 11 8B 80 0D 03 02 00 00 00 00 17 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0B 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 0B 00 11 8B 00 F1 C8 9A E0 5F DB BF 5A 90 00 9E [22:29:17]RAPDU: F1 C8 9A E0 5F DB BF 5A 90 00 [22:29:17]wFMCommunicate OK [22:29:17]SAM_PROTO_SignData done [22:29:17]FM_MakeSignedData done [22:29:17]CreateOFDProtocolMessage [22:29:17]wFMCommunicate request_size=4 [22:29:17]MH_SAM_APDU [22:29:17]CAPDU: 80 11 00 00 [22:29:17]Write to MH i2c: E2 08 00 12 8B 80 11 00 00 00 00 00 00 17 [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:17]Read from MH i2c: E2 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 17 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: E2 17 00 12 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6F [22:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:29:17]wFMCommunicate OK [22:29:17]CreateOFDProtocolMessage done [22:29:17]OFDSenderStorePacket 166224 [22:29:17]StoreOFDPacket docnum=166224 [22:29:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A AE 07 01 F3 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 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 4F 01 00 00 F4 03 04 00 D0 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 89 02 00 35 04 06 00 C9 FF A1 BE 76 5E F1 C8 9A E0 5F DB BF 5A [22:29:17]CheckFolder [22:29:17]dirname=/storage/ofd_packets [22:29:17]CheckFolder done [22:29:17]ProducePacketName [22:29:17]name=ofd_packets/00166224 [22:29:17]NVStorageSaveData ofd_packets/00166224 [22:29:17]File name is /storage/ofd_packets/00166224 [22:29:17]Write 301 bytes [22:29:17]NVStorageSaveData done [22:29:17]OFDSenderStorePacket done [22:29:17]KKMCreateOFDPacket done [22:29:17]NVStorageSaveData kkm_last_timestamp [22:29:17]File name is /storage/kkm_last_timestamp [22:29:17]Write 4 bytes [22:29:17]NVStorageSaveData done [22:29:17]ExternCall_PrintAddStr [22:29:17]wPrintStart [22:29:17]Write to MH i2c: 01 00 00 13 8B 9E [22:29:17]Write i2c OK [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: 01 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: 01 07 00 [22:29:17]MH_I2C_Read... [22:29:17]Read from MH i2c: 01 07 00 13 8B 00 00 00 00 00 FF 0F B3 [22:29:17]RasterBufferAndPrint [22:29:17]line Счет N : (1)220798 [22:29:17]line ИНН: 02508201610067 [22:29:17]line Контрольно-Кассовый Чек [22:29:17]line ПРОДАЖА [22:29:17]line ТРК (МРК, ГНК) : 14 [22:29:17]line Товар: 2710124500 [22:29:17]line Аи-95-К-5 [22:29:17]line 6.740 * 74.20 [22:29:17]line = 500.11 [22:29:17]line НДС 12% НСП 1% [22:29:17]line > о реализуемом товаре [22:29:17]line ОКРУГЛЕНИЕ: -0.11 [22:29:17]line ИТОГО: 500.00 [22:29:17]line Внесено: 500.00 [22:29:17]line СДАЧА: 0.00 [22:29:17]line НСП 1% : 4.43 [22:29:17]line НДС 12% : 53.11 [22:29:17]line Наличными: 500.00 [22:29:17]line Безнал.: 0.00 [22:29:17]line Место: АЗС № 161 "Партнер Нефть" [22:29:17]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:29:17]line СНО: Общий режим [22:29:17]line Чек 335 21.10.2024 22:29 [22:29:17]line Смена: 535 ФФД: 1.0 [22:29:17]line ЗНМ: 0300000104 [22:29:17]line РНМ: 0000000000091764 [22:29:17]line Версия ККМ: 001 [22:29:17]line ФМ: 0000000000871759 [22:29:17]line ФД: 166224 [22:29:17]line ФПД: 222099767457374 [22:29:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T222936&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166224&fm=222099767457374&tin=02508201610067®Number=0000000000091764&sum=50000 [22:29:17]OFD Sender: Processing packet 166224 [packets to send 48, broken 47] [22:29:17]ProducePacketName [22:29:17]name=ofd_packets/00166224 [22:29:17]OFD Sender: To server: pG, [22:29:17]CommunicateWithHost lk.salyk.kg:30040 [22:29:17]ConnectInit lk.salyk.kg [22:29:17]written 0, free lines is 4095 [22:29:17]Connected sock=7 [22:29:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A AE 07 01 F3 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 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 4F 01 00 00 F4 03 04 00 D0 D5 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 89 02 00 35 04 06 00 C9 FF A1 BE 76 5E F1 C8 9A E0 5F DB BF 5A [22:29:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 28 82 47 00 67 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 50 89 02 00 F4 03 04 00 3D 7C 16 67 B6 04 01 00 00 64 6F 45 AB 8F 0E 15 54 [22:29:17]CommunicateWithHost err = 0 [22:29:17]CheckOFDResponse [22:29:17]1017 (14) - 77093643461234 [22:29:17]1041 (16) - 0000000000871759 [22:29:17]1040 (4) - 166224 [22:29:17]1012 (4) - 21.10.2024 16:07 [22:29:17]1206 (1) - 0 [22:29:17]OFD Sender: Remove packet 166224 [22:29:17]ProducePacketName [22:29:17]name=ofd_packets/00166224 [22:29:17]NVStorageDeleteData [22:29:18]Write to MH i2c: 01 00 00 3E 8B C9 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: 01 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: 01 07 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: 01 07 00 3E 8B 00 00 00 00 00 CF 0C AB [22:29:18]RasterBufferAndPrint [22:29:18]line [22:29:18]line [22:29:18]line [22:29:18]line [22:29:18]line [22:29:18]written 0, free lines is 3286 [22:29:18]MH_Cut [22:29:18]Write to MH i2c: D1 01 00 45 8B 01 A2 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: D1 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: D1 01 00 [22:29:18]MH_I2C_Read... [22:29:18]Read from MH i2c: D1 01 00 45 8B 00 A1 [22:29:18]Write to MH i2c: 01 00 00 46 8B D1 [22:29:18]Write i2c OK [22:29:18]MH_I2C_Read... [22:29:18]OFD Sender: No OFD packet to send [22:29:18]*** Cut start [22:29:18]*** Partial cut [22:29:18]*** CUTSNS_PIN = 1 [22:29:18]*** CUTSNS_PIN = 0 [22:29:19]*** Brake cut motor [22:29:19]Read from MH i2c: 01 [22:29:19]MH_I2C_Read... [22:29:19]*** Stop cut motor [22:29:19]*** Cut end [22:29:19]Read from MH i2c: 01 07 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: 01 07 00 46 8B 00 00 00 00 00 FF 0F E6 [22:29:19]process_action close_receipt done [22:29:19]requested_data is exist [22:29:19]produce_requested_data [22:29:19]requested_item fm.sn is exist - process it [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 11 00 00 [22:29:19]Write to MH i2c: E2 08 00 47 8B 80 11 00 00 00 00 00 00 4C [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 17 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 17 00 47 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A4 [22:29:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:29:19]wFMCommunicate OK [22:29:19]requested_item fd.num is exist - process it [22:29:19]SAM_PROTO_GetFieldsCounters [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 13 00 00 [22:29:19]Write to MH i2c: E2 08 00 48 8B 80 13 00 00 00 00 00 00 4F [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 62 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 62 00 48 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [22:29:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 50 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:29:19]wFMCommunicate OK [22:29:19]SAM_PROTO_GetFieldsCounters done [22:29:19]requested_item shift.num is exist - process it [22:29:19]requested_item shift.opened is exist - process it [22:29:19]req_shift_opened [22:29:19]FM_GetShiftState [22:29:19]SAM_PROTO_GetShiftState [22:29:19]wFMCommunicate request_size=4 [22:29:19]MH_SAM_APDU [22:29:19]CAPDU: 80 13 01 00 [22:29:19]Write to MH i2c: E2 08 00 49 8B 80 13 01 00 00 00 00 00 51 [22:29:19]Write i2c OK [22:29:19]MH_I2C_Read... [22:29:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:19]Read from MH i2c: E2 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 0E 00 [22:29:19]MH_I2C_Read... [22:29:19]Read from MH i2c: E2 0E 00 49 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5A [22:29:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:29:19]wFMCommunicate OK [22:29:19]SAM_PROTO_GetShiftState done [22:29:19]FM_GetShiftState done [22:29:19]req_shift_opened done [22:29:19]requested_item shift.open_date is exist - process it [22:29:19]req_shift_open_date [22:29:19]req_shift_open_date done [22:29:19]produce_requested_data done [22:29:19]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166224,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:29:19]process_action_free close_receipt [22:29:19]json_value_free [22:29:19]json_value_free done [22:29:19]process_json_proto returns [22:29:19]Send response to host [22:29:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166224,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:29:19]free response buf [22:29:19]execute_script done [22:29:19]execute_script returns [22:29:19]free content buf [22:29:19]Sock 6.Close socket [22:29:19]Sock 6.Thread stoped [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:11]accept exits with 5 [22:30:11]New connection [22:30:11]New thread 3066776932 created [22:30:11]Thread 3066920292 joined [22:30:11]Waiting for new connection... [22:30:11] Sock 5.Parse request [22:30:11]Sock 5.Check first char [22:30:11]Sock 5.First char is OK [22:30:11]request: POST /json_proto HTTP/1.0 [22:30:11]Method: POST [22:30:11]URL: /json_proto [22:30:11]Method is POST - this is cgi request [22:30:11]url: /json_proto [22:30:11]query_string will be loaded in cgi processing [22:30:11]execute_cgi json_proto POST (null) [22:30:11]execute_cgi path=json_proto method=POST [22:30:11]POST find Content-Length [22:30:11]Host: 172.17.53.195:8080 [22:30:11]Content-Length: 677 [22:30:11]Content-Type: application/json [22:30:11] [22:30:11]POST finish read [22:30:11]Found Content-Length = 677 [22:30:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [22:30:11]execute_script... [22:30: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)220799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "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" ] } } [22:30:11]POST & json_proto [22:30:11]process_json_proto [22:30:11]json parsed OK: [22:30:11]protocol is kg_v1.0 [22:30:11]action value=close_receipt [22:30:11]process_action close_receipt [22:30:11]cmd_close_receipt [22:30:11]MH_GetDate [22:30:11]Write to MH i2c: F0 00 00 4A 8B C4 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: F0 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: F0 09 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: F0 09 00 4A 8B 00 07 D6 16 67 21 48 4A 65 3F [22:30:11]GetLastDocTimeStamp 1729549776 [22:30:11]current date 1729549831 [22:30:11]FM_GetShiftState [22:30:11]SAM_PROTO_GetShiftState [22:30:11]wFMCommunicate request_size=4 [22:30:11]MH_SAM_APDU [22:30:11]CAPDU: 80 13 01 00 [22:30:11]Write to MH i2c: E2 08 00 4B 8B 80 13 01 00 00 00 00 00 53 [22:30:11]Write i2c OK [22:30:11]MH_I2C_Read... [22:30:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:11]Read from MH i2c: E2 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 0E 00 [22:30:11]MH_I2C_Read... [22:30:11]Read from MH i2c: E2 0E 00 4B 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5C [22:30:11]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:30:11]wFMCommunicate OK [22:30:11]SAM_PROTO_GetShiftState done [22:30:11]FM_GetShiftState done [22:30:11]opened in 1729470944 [22:30:11]opened+sec_in_day 1729557344 [22:30:11]quantity*price = 50010 [22:30:11]sum+1 = 50012 [22:30:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 336 21.10.2024 22:30 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166225 ФПД: 5061634021715 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223031&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166225&fm=5061634021715&tin=02508201610067®Number=0000000000091764&sum=50000 [22:30:12]StoreToDocumentArchive [22:30:12]shift 535 fd 166225 [22:30:12]save to /storage/0535/doc_00166225 [22:30:12]save last doc name /storage/0535/doc_00166225 to /storage/kkm_last_doc_name [22:30:12]save OK [22:30:12]Clear old archive folders... [22:30:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:30:12]tlvbuf is 0162F190 [22:30:12]SAM_PROTO_ClearQueue [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 09 00 00 [22:30:12]Write to MH i2c: E2 08 00 58 8B 80 09 00 00 00 00 00 00 55 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 58 8B 00 90 00 57 [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]SAM_PROTO_ClearQueue done [22:30:12]KKMCreateOFDPacket [22:30:12]OFDProtocolAddRootSTLVToBuf [22:30:12]FM_MakeSignedData [22:30:12]FM_MakeSignedData [22:30:12]SAM_PROTO_SignData [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 01 02 [22:30:12]Write to MH i2c: E2 08 00 59 8B 80 0D 01 02 00 00 00 00 5D [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 59 8B 00 90 00 58 [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]wFMCommunicate request_size=255 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 50 01 00 00 F4 03 04 00 07 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 89 02 00 35 04 06 00 04 [22:30:12]Write to MH i2c: E2 02 01 5A 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 01 00 00 F4 03 04 00 07 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 89 02 00 35 04 06 00 04 00 00 6F [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 5A 8B 00 90 00 59 [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]wFMCommunicate request_size=10 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 02 02 05 9A 80 E5 D9 53 [22:30:12]Write to MH i2c: E2 0D 00 5B 8B 80 0D 02 02 05 00 9A 80 E5 D9 53 00 00 95 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 03 00 5B 8B 00 90 00 5A [22:30:12]RAPDU: 90 00 [22:30:12]wFMCommunicate OK [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 0D 03 02 [22:30:12]Write to MH i2c: E2 08 00 5C 8B 80 0D 03 02 00 00 00 00 62 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 0B 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 0B 00 5C 8B 00 E8 75 45 FC B1 7B 17 BB 90 00 FF [22:30:12]RAPDU: E8 75 45 FC B1 7B 17 BB 90 00 [22:30:12]wFMCommunicate OK [22:30:12]SAM_PROTO_SignData done [22:30:12]FM_MakeSignedData done [22:30:12]CreateOFDProtocolMessage [22:30:12]wFMCommunicate request_size=4 [22:30:12]MH_SAM_APDU [22:30:12]CAPDU: 80 11 00 00 [22:30:12]Write to MH i2c: E2 08 00 5D 8B 80 11 00 00 00 00 00 00 62 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:12]Read from MH i2c: E2 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 17 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: E2 17 00 5D 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BA [22:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:30:12]wFMCommunicate OK [22:30:12]CreateOFDProtocolMessage done [22:30:12]OFDSenderStorePacket 166225 [22:30:12]StoreOFDPacket docnum=166225 [22:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 74 12 07 01 7D 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 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 50 01 00 00 F4 03 04 00 07 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 89 02 00 35 04 06 00 04 9A 80 E5 D9 53 E8 75 45 FC B1 7B 17 BB [22:30:12]CheckFolder [22:30:12]dirname=/storage/ofd_packets [22:30:12]CheckFolder done [22:30:12]ProducePacketName [22:30:12]name=ofd_packets/00166225 [22:30:12]NVStorageSaveData ofd_packets/00166225 [22:30:12]File name is /storage/ofd_packets/00166225 [22:30:12]Write 301 bytes [22:30:12]NVStorageSaveData done [22:30:12]OFDSenderStorePacket done [22:30:12]KKMCreateOFDPacket done [22:30:12]NVStorageSaveData kkm_last_timestamp [22:30:12]File name is /storage/kkm_last_timestamp [22:30:12]Write 4 bytes [22:30:12]NVStorageSaveData done [22:30:12]ExternCall_PrintAddStr [22:30:12]wPrintStart [22:30:12]Write to MH i2c: 01 00 00 5E 8B E9 [22:30:12]Write i2c OK [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 [22:30:12]MH_I2C_Read... [22:30:12]Read from MH i2c: 01 07 00 5E 8B 00 00 00 00 00 FF 0F FE [22:30:12]RasterBufferAndPrint [22:30:12]line Счет N : (1)220799 [22:30:12]line ИНН: 02508201610067 [22:30:12]line Контрольно-Кассовый Чек [22:30:12]line ПРОДАЖА [22:30:12]line ТРК (МРК, ГНК) : 24 [22:30:12]line Товар: 2710124500 [22:30:12]line Аи-95-К-5 [22:30:12]line 6.740 * 74.20 [22:30:12]line = 500.11 [22:30:12]line НДС 12% НСП 1% [22:30:12]line > о реализуемом товаре [22:30:12]line ОКРУГЛЕНИЕ: -0.11 [22:30:12]line ИТОГО: 500.00 [22:30:12]line Внесено: 500.00 [22:30:12]line СДАЧА: 0.00 [22:30:12]line НСП 1% : 4.43 [22:30:12]line НДС 12% : 53.11 [22:30:12]line Наличными: 500.00 [22:30:12]line Безнал.: 0.00 [22:30:12]line Место: АЗС № 161 "Партнер Нефть" [22:30:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:30:12]line СНО: Общий режим [22:30:12]line Чек 336 21.10.2024 22:30 [22:30:12]line Смена: 535 ФФД: 1.0 [22:30:12]line ЗНМ: 0300000104 [22:30:12]line РНМ: 0000000000091764 [22:30:12]line Версия ККМ: 001 [22:30:12]line ФМ: 0000000000871759 [22:30:12]line ФД: 166225 [22:30:12]line ФПД: 5061634021715 [22:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223031&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166225&fm=5061634021715&tin=02508201610067®Number=0000000000091764&sum=50000 [22:30:13]OFD Sender: Processing packet 166225 [packets to send 48, broken 47] [22:30:13]ProducePacketName [22:30:13]name=ofd_packets/00166225 [22:30:13]OFD Sender: To server: pG, [22:30:13]CommunicateWithHost lk.salyk.kg:30040 [22:30:13]ConnectInit lk.salyk.kg [22:30:13]written 0, free lines is 4095 [22:30:13]Connected sock=7 [22:30:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 74 12 07 01 7D 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 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 50 01 00 00 F4 03 04 00 07 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 89 02 00 35 04 06 00 04 9A 80 E5 D9 53 E8 75 45 FC B1 7B 17 BB [22:30:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 C8 47 00 C1 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 51 89 02 00 F4 03 04 00 74 7C 16 67 B6 04 01 00 00 2B 26 8B F8 FB 3C 37 32 [22:30:13]CommunicateWithHost err = 0 [22:30:13]CheckOFDResponse [22:30:13]1017 (14) - 77093643461234 [22:30:13]1041 (16) - 0000000000871759 [22:30:13]1040 (4) - 166225 [22:30:13]1012 (4) - 21.10.2024 16:08 [22:30:13]1206 (1) - 0 [22:30:13]OFD Sender: Remove packet 166225 [22:30:13]ProducePacketName [22:30:13]name=ofd_packets/00166225 [22:30:13]NVStorageDeleteData [22:30:13]Write to MH i2c: 01 00 00 89 8B 14 [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 07 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: 01 07 00 89 8B 00 00 00 00 00 C7 0C EE [22:30:13]RasterBufferAndPrint [22:30:13]line [22:30:13]line [22:30:13]line [22:30:13]line [22:30:13]line [22:30:13]written 0, free lines is 3281 [22:30:13]MH_Cut [22:30:13]Write to MH i2c: D1 01 00 90 8B 01 ED [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: D1 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: D1 01 00 [22:30:13]MH_I2C_Read... [22:30:13]Read from MH i2c: D1 01 00 90 8B 00 EC [22:30:13]Write to MH i2c: 01 00 00 91 8B 1C [22:30:13]Write i2c OK [22:30:13]MH_I2C_Read... [22:30:14]OFD Sender: No OFD packet to send [22:30:14]*** Cut start [22:30:14]*** Partial cut [22:30:14]*** CUTSNS_PIN = 1 [22:30:14]*** CUTSNS_PIN = 0 [22:30:14]*** Brake cut motor [22:30:15]Read from MH i2c: 01 [22:30:15]MH_I2C_Read... [22:30:15]*** Stop cut motor [22:30:15]*** Cut end [22:30:15]Read from MH i2c: 01 07 00 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: 01 07 00 91 8B 00 00 00 00 00 FF 0F 31 [22:30:15]process_action close_receipt done [22:30:15]requested_data is exist [22:30:15]produce_requested_data [22:30:15]requested_item fm.sn is exist - process it [22:30:15]wFMCommunicate request_size=4 [22:30:15]MH_SAM_APDU [22:30:15]CAPDU: 80 11 00 00 [22:30:15]Write to MH i2c: E2 08 00 92 8B 80 11 00 00 00 00 00 00 97 [22:30:15]Write i2c OK [22:30:15]MH_I2C_Read... [22:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:30:15]Read from MH i2c: E2 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 17 00 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 17 00 92 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [22:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:30:15]wFMCommunicate OK [22:30:15]requested_item fd.num is exist - process it [22:30:15]SAM_PROTO_GetFieldsCounters [22:30:15]wFMCommunicate request_size=4 [22:30:15]MH_SAM_APDU [22:30:15]CAPDU: 80 13 00 00 [22:30:15]Write to MH i2c: E2 08 00 93 8B 80 13 00 00 00 00 00 00 9A [22:30:15]Write i2c OK [22:30:15]MH_I2C_Read... [22:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:30:15]Read from MH i2c: E2 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 62 00 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 62 00 93 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [22:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 51 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:30:15]wFMCommunicate OK [22:30:15]SAM_PROTO_GetFieldsCounters done [22:30:15]requested_item shift.num is exist - process it [22:30:15]requested_item shift.opened is exist - process it [22:30:15]req_shift_opened [22:30:15]FM_GetShiftState [22:30:15]SAM_PROTO_GetShiftState [22:30:15]wFMCommunicate request_size=4 [22:30:15]MH_SAM_APDU [22:30:15]CAPDU: 80 13 01 00 [22:30:15]Write to MH i2c: E2 08 00 94 8B 80 13 01 00 00 00 00 00 9C [22:30:15]Write i2c OK [22:30:15]MH_I2C_Read... [22:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:30:15]Read from MH i2c: E2 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 0E 00 [22:30:15]MH_I2C_Read... [22:30:15]Read from MH i2c: E2 0E 00 94 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A5 [22:30:15]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:30:15]wFMCommunicate OK [22:30:15]SAM_PROTO_GetShiftState done [22:30:15]FM_GetShiftState done [22:30:15]req_shift_opened done [22:30:15]requested_item shift.open_date is exist - process it [22:30:15]req_shift_open_date [22:30:15]req_shift_open_date done [22:30:15]produce_requested_data done [22:30:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166225,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:30:15]process_action_free close_receipt [22:30:15]json_value_free [22:30:15]json_value_free done [22:30:15]process_json_proto returns [22:30:15]Send response to host [22:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166225,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:30:15]free response buf [22:30:15]execute_script done [22:30:15]execute_script returns [22:30:15]free content buf [22:30:15]Sock 5.Close socket [22:30:15]Sock 5.Thread stoped [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:31]accept exits with 6 [22:32:31]New connection [22:32:31]New thread 3066920292 created [22:32:31]Thread 3066776932 joined [22:32:31]Waiting for new connection... [22:32:31] Sock 6.Parse request [22:32:31]Sock 6.Check first char [22:32:31]Sock 6.First char is OK [22:32:31]request: POST /json_proto HTTP/1.0 [22:32:31]Method: POST [22:32:31]URL: /json_proto [22:32:31]Method is POST - this is cgi request [22:32:31]url: /json_proto [22:32:31]query_string will be loaded in cgi processing [22:32:31]execute_cgi json_proto POST (null) [22:32:31]execute_cgi path=json_proto method=POST [22:32:31]POST find Content-Length [22:32:31]Host: 172.17.53.195:8080 [22:32:31]Content-Length: 677 [22:32:31]Content-Type: application/json [22:32:31] [22:32:31]POST finish read [22:32:31]Found Content-Length = 677 [22:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:31]execute_script... [22:32: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)220800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.440, "sum" : 230.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 230.00, "total" : 230.00, "payments": [ { "type": 0, "sum" : 230.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:31]POST & json_proto [22:32:31]process_json_proto [22:32:31]json parsed OK: [22:32:31]protocol is kg_v1.0 [22:32:31]action value=close_receipt [22:32:31]process_action close_receipt [22:32:31]cmd_close_receipt [22:32:31]MH_GetDate [22:32:31]Write to MH i2c: F0 00 00 95 8B 0F [22:32:31]Write i2c OK [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: F0 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: F0 09 00 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: F0 09 00 95 8B 00 93 D6 16 67 21 48 4A 65 16 [22:32:31]GetLastDocTimeStamp 1729549831 [22:32:31]current date 1729549971 [22:32:31]FM_GetShiftState [22:32:31]SAM_PROTO_GetShiftState [22:32:31]wFMCommunicate request_size=4 [22:32:31]MH_SAM_APDU [22:32:31]CAPDU: 80 13 01 00 [22:32:31]Write to MH i2c: E2 08 00 96 8B 80 13 01 00 00 00 00 00 9E [22:32:31]Write i2c OK [22:32:31]MH_I2C_Read... [22:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:31]Read from MH i2c: E2 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: E2 0E 00 [22:32:31]MH_I2C_Read... [22:32:31]Read from MH i2c: E2 0E 00 96 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A7 [22:32:31]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:32:31]wFMCommunicate OK [22:32:31]SAM_PROTO_GetShiftState done [22:32:31]FM_GetShiftState done [22:32:31]opened in 1729470944 [22:32:31]opened+sec_in_day 1729557344 [22:32:31]quantity*price = 23013 [22:32:31]sum+1 = 23015 [22:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 230.00 Внесено: 230.00 СДАЧА: 0.00 НСП 1% : 2.04 НДС 12% : 24.44 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 337 21.10.2024 22:32 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166226 ФПД: 41919859148350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223251&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166226&fm=41919859148350&tin=02508201610067®Number=0000000000091764&sum=23000 [22:32:32]StoreToDocumentArchive [22:32:32]shift 535 fd 166226 [22:32:32]save to /storage/0535/doc_00166226 [22:32:32]save last doc name /storage/0535/doc_00166226 to /storage/kkm_last_doc_name [22:32:32]save OK [22:32:32]Clear old archive folders... [22:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:32:32]tlvbuf is 019A5E50 [22:32:32]SAM_PROTO_ClearQueue [22:32:32]wFMCommunicate request_size=4 [22:32:32]MH_SAM_APDU [22:32:32]CAPDU: 80 09 00 00 [22:32:32]Write to MH i2c: E2 08 00 A3 8B 80 09 00 00 00 00 00 00 A0 [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 A3 8B 00 90 00 A2 [22:32:32]RAPDU: 90 00 [22:32:32]wFMCommunicate OK [22:32:32]SAM_PROTO_ClearQueue done [22:32:32]KKMCreateOFDPacket [22:32:32]OFDProtocolAddRootSTLVToBuf [22:32:32]FM_MakeSignedData [22:32:32]FM_MakeSignedData [22:32:32]SAM_PROTO_SignData [22:32:32]wFMCommunicate request_size=4 [22:32:32]MH_SAM_APDU [22:32:32]CAPDU: 80 0D 01 02 [22:32:32]Write to MH i2c: E2 08 00 A4 8B 80 0D 01 02 00 00 00 00 A8 [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 A4 8B 00 90 00 A3 [22:32:32]RAPDU: 90 00 [22:32:32]wFMCommunicate OK [22:32:32]wFMCommunicate request_size=255 [22:32:32]MH_SAM_APDU [22:32: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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 93 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 89 02 00 35 04 06 00 26 [22:32:32]Write to MH i2c: E2 02 01 A5 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 93 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 89 02 00 35 04 06 00 26 00 00 C8 [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:32]Read from MH i2c: E2 03 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 A5 8B 00 90 00 A4 [22:32:32]RAPDU: 90 00 [22:32:32]wFMCommunicate OK [22:32:32]wFMCommunicate request_size=10 [22:32:32]MH_SAM_APDU [22:32:32]CAPDU: 80 0D 02 02 05 20 3A 50 46 3E [22:32:32]Write to MH i2c: E2 0D 00 A6 8B 80 0D 02 02 05 00 20 3A 50 46 3E 00 00 E3 [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 03 00 A6 8B 00 90 00 A5 [22:32:32]RAPDU: 90 00 [22:32:32]wFMCommunicate OK [22:32:32]wFMCommunicate request_size=4 [22:32:32]MH_SAM_APDU [22:32:32]CAPDU: 80 0D 03 02 [22:32:32]Write to MH i2c: E2 08 00 A7 8B 80 0D 03 02 00 00 00 00 AD [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 0B 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 0B 00 A7 8B 00 E4 1D FD 2E 97 4D D4 9E 90 00 30 [22:32:32]RAPDU: E4 1D FD 2E 97 4D D4 9E 90 00 [22:32:32]wFMCommunicate OK [22:32:32]SAM_PROTO_SignData done [22:32:32]FM_MakeSignedData done [22:32:32]CreateOFDProtocolMessage [22:32:32]wFMCommunicate request_size=4 [22:32:32]MH_SAM_APDU [22:32:32]CAPDU: 80 11 00 00 [22:32:32]Write to MH i2c: E2 08 00 A8 8B 80 11 00 00 00 00 00 00 AD [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:32]Read from MH i2c: E2 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 17 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: E2 17 00 A8 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 05 [22:32:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:32:32]wFMCommunicate OK [22:32:32]CreateOFDProtocolMessage done [22:32:32]OFDSenderStorePacket 166226 [22:32:32]StoreOFDPacket docnum=166226 [22:32:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 8D 07 01 E5 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 93 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 89 02 00 35 04 06 00 26 20 3A 50 46 3E E4 1D FD 2E 97 4D D4 9E [22:32:32]CheckFolder [22:32:32]dirname=/storage/ofd_packets [22:32:32]CheckFolder done [22:32:32]ProducePacketName [22:32:32]name=ofd_packets/00166226 [22:32:32]NVStorageSaveData ofd_packets/00166226 [22:32:32]File name is /storage/ofd_packets/00166226 [22:32:32]Write 301 bytes [22:32:32]NVStorageSaveData done [22:32:32]OFDSenderStorePacket done [22:32:32]KKMCreateOFDPacket done [22:32:32]NVStorageSaveData kkm_last_timestamp [22:32:32]File name is /storage/kkm_last_timestamp [22:32:32]Write 4 bytes [22:32:32]NVStorageSaveData done [22:32:32]ExternCall_PrintAddStr [22:32:32]wPrintStart [22:32:32]Write to MH i2c: 01 00 00 A9 8B 34 [22:32:32]Write i2c OK [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: 01 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: 01 07 00 [22:32:32]MH_I2C_Read... [22:32:32]Read from MH i2c: 01 07 00 A9 8B 00 00 00 00 00 FF 0F 49 [22:32:32]RasterBufferAndPrint [22:32:32]line Счет N : (1)220800 [22:32:32]line ИНН: 02508201610067 [22:32:32]line Контрольно-Кассовый Чек [22:32:32]line ПРОДАЖА [22:32:32]line ТРК (МРК, ГНК) : 23 [22:32:32]line Товар: 2710124130 [22:32:32]line Аи-92-К-5 [22:32:32]line 3.440 * 66.90 [22:32:32]line = 230.14 [22:32:32]line НДС 12% НСП 1% [22:32:32]line > о реализуемом товаре [22:32:32]line ОКРУГЛЕНИЕ: -0.14 [22:32:32]line ИТОГО: 230.00 [22:32:32]line Внесено: 230.00 [22:32:32]line СДАЧА: 0.00 [22:32:32]line НСП 1% : 2.04 [22:32:32]line НДС 12% : 24.44 [22:32:32]line Наличными: 230.00 [22:32:32]line Безнал.: 0.00 [22:32:32]line Место: АЗС № 161 "Партнер Нефть" [22:32:32]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:32:32]line СНО: Общий режим [22:32:32]line Чек 337 21.10.2024 22:32 [22:32:32]line Смена: 535 ФФД: 1.0 [22:32:32]line ЗНМ: 0300000104 [22:32:32]line РНМ: 0000000000091764 [22:32:32]line Версия ККМ: 001 [22:32:32]line ФМ: 0000000000871759 [22:32:32]line ФД: 166226 [22:32:32]line ФПД: 41919859148350 [22:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223251&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166226&fm=41919859148350&tin=02508201610067®Number=0000000000091764&sum=23000 [22:32:33]OFD Sender: Processing packet 166226 [packets to send 48, broken 47] [22:32:33]ProducePacketName [22:32:33]name=ofd_packets/00166226 [22:32:33]OFD Sender: To server: pG, [22:32:33]CommunicateWithHost lk.salyk.kg:30040 [22:32:33]ConnectInit lk.salyk.kg [22:32:33]written 0, free lines is 4095 [22:32:33]Connected sock=7 [22:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 A5 8D 07 01 E5 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 70 0D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E6 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 93 D6 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 52 89 02 00 35 04 06 00 26 20 3A 50 46 3E E4 1D FD 2E 97 4D D4 9E [22:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 BF 6B 47 00 08 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 35 39 10 04 04 00 52 89 02 00 F4 03 04 00 00 7D 16 67 B6 04 01 00 00 20 9F D4 3B 38 C9 E2 E3 [22:32:33]CommunicateWithHost err = 0 [22:32:33]CheckOFDResponse [22:32:33]1017 (14) - 77093643461234 [22:32:33]1041 (16) - 0000000000871759 [22:32:33]1040 (4) - 166226 [22:32:33]1012 (4) - 21.10.2024 16:10 [22:32:33]1206 (1) - 0 [22:32:33]OFD Sender: Remove packet 166226 [22:32:33]ProducePacketName [22:32:33]name=ofd_packets/00166226 [22:32:33]NVStorageDeleteData [22:32:33]Write to MH i2c: 01 00 00 D4 8B 5F [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: 01 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: 01 07 00 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: 01 07 00 D4 8B 00 00 00 00 00 CE 0C 40 [22:32:33]RasterBufferAndPrint [22:32:33]line [22:32:33]line [22:32:33]line [22:32:33]line [22:32:33]line [22:32:33]written 0, free lines is 3286 [22:32:33]MH_Cut [22:32:33]Write to MH i2c: D1 01 00 DB 8B 01 38 [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: D1 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: D1 01 00 [22:32:33]MH_I2C_Read... [22:32:33]Read from MH i2c: D1 01 00 DB 8B 00 37 [22:32:33]Write to MH i2c: 01 00 00 DC 8B 67 [22:32:33]Write i2c OK [22:32:33]MH_I2C_Read... [22:32:34]OFD Sender: No OFD packet to send [22:32:34]*** Cut start [22:32:34]*** Partial cut [22:32:34]*** CUTSNS_PIN = 1 [22:32:34]*** CUTSNS_PIN = 0 [22:32:34]*** Brake cut motor [22:32:35]Read from MH i2c: 01 [22:32:35]MH_I2C_Read... [22:32:35]*** Stop cut motor [22:32:35]*** Cut end [22:32:35]Read from MH i2c: 01 07 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: 01 07 00 DC 8B 00 00 00 00 00 FF 0F 7C [22:32:35]process_action close_receipt done [22:32:35]requested_data is exist [22:32:35]produce_requested_data [22:32:35]requested_item fm.sn is exist - process it [22:32:35]wFMCommunicate request_size=4 [22:32:35]MH_SAM_APDU [22:32:35]CAPDU: 80 11 00 00 [22:32:35]Write to MH i2c: E2 08 00 DD 8B 80 11 00 00 00 00 00 00 E2 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:35]Read from MH i2c: E2 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: E2 17 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: E2 17 00 DD 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3A [22:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:32:35]wFMCommunicate OK [22:32:35]requested_item fd.num is exist - process it [22:32:35]SAM_PROTO_GetFieldsCounters [22:32:35]wFMCommunicate request_size=4 [22:32:35]MH_SAM_APDU [22:32:35]CAPDU: 80 13 00 00 [22:32:35]Write to MH i2c: E2 08 00 DE 8B 80 13 00 00 00 00 00 00 E5 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:35]Read from MH i2c: E2 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: E2 62 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: E2 62 00 DE 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [22:32:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 52 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:35]wFMCommunicate OK [22:32:35]SAM_PROTO_GetFieldsCounters done [22:32:35]requested_item shift.num is exist - process it [22:32:35]requested_item shift.opened is exist - process it [22:32:35]req_shift_opened [22:32:35]FM_GetShiftState [22:32:35]SAM_PROTO_GetShiftState [22:32:35]wFMCommunicate request_size=4 [22:32:35]MH_SAM_APDU [22:32:35]CAPDU: 80 13 01 00 [22:32:35]Write to MH i2c: E2 08 00 DF 8B 80 13 01 00 00 00 00 00 E7 [22:32:35]Write i2c OK [22:32:35]MH_I2C_Read... [22:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:35]Read from MH i2c: E2 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: E2 0E 00 [22:32:35]MH_I2C_Read... [22:32:35]Read from MH i2c: E2 0E 00 DF 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F0 [22:32:35]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:32:35]wFMCommunicate OK [22:32:35]SAM_PROTO_GetShiftState done [22:32:35]FM_GetShiftState done [22:32:35]req_shift_opened done [22:32:35]requested_item shift.open_date is exist - process it [22:32:35]req_shift_open_date [22:32:35]req_shift_open_date done [22:32:35]produce_requested_data done [22:32:35]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166226,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:32:35]process_action_free close_receipt [22:32:35]json_value_free [22:32:35]json_value_free done [22:32:35]process_json_proto returns [22:32:35]Send response to host [22:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166226,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:32:35]free response buf [22:32:35]execute_script done [22:32:35]execute_script returns [22:32:35]free content buf [22:32:35]Sock 6.Close socket [22:32:35]Sock 6.Thread stoped [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:18]accept exits with 5 [22:35:18]New connection [22:35:18]New thread 3066776932 created [22:35:18]Thread 3066920292 joined [22:35:18]Waiting for new connection... [22:35:18] Sock 5.Parse request [22:35:18]Sock 5.Check first char [22:35:18]Sock 5.First char is OK [22:35:18]request: POST /json_proto HTTP/1.0 [22:35:18]Method: POST [22:35:18]URL: /json_proto [22:35:18]Method is POST - this is cgi request [22:35:18]url: /json_proto [22:35:18]query_string will be loaded in cgi processing [22:35:18]execute_cgi json_proto POST (null) [22:35:18]execute_cgi path=json_proto method=POST [22:35:18]POST find Content-Length [22:35:18]Host: 172.17.53.195:8080 [22:35:18]Content-Length: 767 [22:35:18]Content-Type: application/json [22:35:18] [22:35:18]POST finish read [22:35:18]Found Content-Length = 767 [22:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 950.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:18]execute_script... [22: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)220801", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.210, "sum" : 950.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 950.65 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:18]POST & json_proto [22:35:18]process_json_proto [22:35:18]json parsed OK: [22:35:18]protocol is kg_v1.0 [22:35:18]action value=close_receipt [22:35:18]process_action close_receipt [22:35:18]cmd_close_receipt [22:35:18]MH_GetDate [22:35:18]Write to MH i2c: F0 00 00 E0 8B 5A [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: F0 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: F0 09 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: F0 09 00 E0 8B 00 3B D7 16 67 21 48 4A 65 0A [22:35:18]GetLastDocTimeStamp 1729549971 [22:35:18]current date 1729550139 [22:35:18]FM_GetShiftState [22:35:18]SAM_PROTO_GetShiftState [22:35:18]wFMCommunicate request_size=4 [22:35:18]MH_SAM_APDU [22:35:18]CAPDU: 80 13 01 00 [22:35:18]Write to MH i2c: E2 08 00 E1 8B 80 13 01 00 00 00 00 00 E9 [22:35:18]Write i2c OK [22:35:18]MH_I2C_Read... [22:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:18]Read from MH i2c: E2 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 0E 00 [22:35:18]MH_I2C_Read... [22:35:18]Read from MH i2c: E2 0E 00 E1 8B 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F2 [22:35:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:35:18]wFMCommunicate OK [22:35:18]SAM_PROTO_GetShiftState done [22:35:18]FM_GetShiftState done [22:35:18]opened in 1729470944 [22:35:18]opened+sec_in_day 1729557344 [22:35:18]quantity*price = 95064 [22:35:18]sum+1 = 95066 [22:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 950.65 НСП 1% : 8.41 НДС 12% : 100.95 Наличными: 0.00 Безнал.: 950.65 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 338 21.10.2024 22:35 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166227 ФПД: 217258381101480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223539&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166227&fm=217258381101480&tin=02508201610067®Number=0000000000091764&sum=95065 [22:35:19]StoreToDocumentArchive [22:35:19]shift 535 fd 166227 [22:35:19]save to /storage/0535/doc_00166227 [22:35:19]save last doc name /storage/0535/doc_00166227 to /storage/kkm_last_doc_name [22:35:19]save OK [22:35:19]Clear old archive folders... [22:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:19]tlvbuf is 01522830 [22:35:19]SAM_PROTO_ClearQueue [22:35:19]wFMCommunicate request_size=4 [22:35:19]MH_SAM_APDU [22:35:19]CAPDU: 80 09 00 00 [22:35:19]Write to MH i2c: E2 08 00 EE 8B 80 09 00 00 00 00 00 00 EB [22:35:19]Write i2c OK [22:35:19]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 EE 8B 00 90 00 ED [22:35:20]RAPDU: 90 00 [22:35:20]wFMCommunicate OK [22:35:20]SAM_PROTO_ClearQueue done [22:35:20]KKMCreateOFDPacket [22:35:20]OFDProtocolAddRootSTLVToBuf [22:35:20]FM_MakeSignedData [22:35:20]FM_MakeSignedData [22:35:20]SAM_PROTO_SignData [22:35:20]wFMCommunicate request_size=4 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 0D 01 02 [22:35:20]Write to MH i2c: E2 08 00 EF 8B 80 0D 01 02 00 00 00 00 F3 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 EF 8B 00 90 00 EE [22:35:20]RAPDU: 90 00 [22:35:20]wFMCommunicate OK [22:35:20]wFMCommunicate request_size=255 [22:35:20]MH_SAM_APDU [22:35: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 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 3B D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 89 02 00 35 04 06 00 C5 [22:35:20]Write to MH i2c: E2 02 01 F0 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 3B D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 89 02 00 35 04 06 00 C5 00 00 E0 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 F0 8B 00 90 00 EF [22:35:20]RAPDU: 90 00 [22:35:20]wFMCommunicate OK [22:35:20]wFMCommunicate request_size=10 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 0D 02 02 05 98 68 A1 49 A8 [22:35:20]Write to MH i2c: E2 0D 00 F1 8B 80 0D 02 02 05 00 98 68 A1 49 A8 00 00 92 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 03 00 F1 8B 00 90 00 F0 [22:35:20]RAPDU: 90 00 [22:35:20]wFMCommunicate OK [22:35:20]wFMCommunicate request_size=4 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 0D 03 02 [22:35:20]Write to MH i2c: E2 08 00 F2 8B 80 0D 03 02 00 00 00 00 F8 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 0B 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 0B 00 F2 8B 00 15 DC 4E 90 AF 0C D2 D1 90 00 26 [22:35:20]RAPDU: 15 DC 4E 90 AF 0C D2 D1 90 00 [22:35:20]wFMCommunicate OK [22:35:20]SAM_PROTO_SignData done [22:35:20]FM_MakeSignedData done [22:35:20]CreateOFDProtocolMessage [22:35:20]wFMCommunicate request_size=4 [22:35:20]MH_SAM_APDU [22:35:20]CAPDU: 80 11 00 00 [22:35:20]Write to MH i2c: E2 08 00 F3 8B 80 11 00 00 00 00 00 00 F8 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:20]Read from MH i2c: E2 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 17 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: E2 17 00 F3 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 50 [22:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:35:20]wFMCommunicate OK [22:35:20]CreateOFDProtocolMessage done [22:35:20]OFDSenderStorePacket 166227 [22:35:20]StoreOFDPacket docnum=166227 [22:35:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 34 6D 07 01 7C 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 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 3B D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 89 02 00 35 04 06 00 C5 98 68 A1 49 A8 15 DC 4E 90 AF 0C D2 D1 [22:35:20]CheckFolder [22:35:20]dirname=/storage/ofd_packets [22:35:20]CheckFolder done [22:35:20]ProducePacketName [22:35:20]name=ofd_packets/00166227 [22:35:20]NVStorageSaveData ofd_packets/00166227 [22:35:20]File name is /storage/ofd_packets/00166227 [22:35:20]Write 301 bytes [22:35:20]NVStorageSaveData done [22:35:20]OFDSenderStorePacket done [22:35:20]KKMCreateOFDPacket done [22:35:20]NVStorageSaveData kkm_last_timestamp [22:35:20]File name is /storage/kkm_last_timestamp [22:35:20]Write 4 bytes [22:35:20]NVStorageSaveData done [22:35:20]ExternCall_PrintAddStr [22:35:20]wPrintStart [22:35:20]Write to MH i2c: 01 00 00 F4 8B 7F [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 F4 8B 00 00 00 00 00 FF 0F 94 [22:35:20]RasterBufferAndPrint [22:35:20]line Счет N : (1)220801 [22:35:20]line ИНН: 02508201610067 [22:35:20]line Контрольно-Кассовый Чек [22:35:20]line ПРОДАЖА [22:35:20]line ТРК (МРК, ГНК) : 23 [22:35:20]line Товар: 2710124130 [22:35:20]line Аи-92-К-5 [22:35:20]line 14.210 * 66.90 [22:35:20]line = 950.65 [22:35:20]line НДС 12% НСП 1% [22:35:20]line > о реализуемом товаре [22:35:20]line ИТОГО: 950.65 [22:35:20]line НСП 1% : 8.41 [22:35:20]line НДС 12% : 100.95 [22:35:20]line Наличными: 0.00 [22:35:20]line Безнал.: 950.65 [22:35:20]line Место: АЗС № 161 "Партнер Нефть" [22:35:20]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:35:20]line СНО: Общий режим [22:35:20]line Чек 338 21.10.2024 22:35 [22:35:20]line Смена: 535 ФФД: 1.0 [22:35:20]line ЗНМ: 0300000104 [22:35:20]line РНМ: 0000000000091764 [22:35:20]line Версия ККМ: 001 [22:35:20]line Платежная система: Mbank [22:35:20]line ФМ: 0000000000871759 [22:35:20]line ФД: 166227 [22:35:20]line ФПД: 217258381101480 [22:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223539&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166227&fm=217258381101480&tin=02508201610067®Number=0000000000091764&sum=95065 [22:35:20]written 0, free lines is 4095 [22:35:20]OFD Sender: Processing packet 166227 [packets to send 48, broken 47] [22:35:20]ProducePacketName [22:35:20]name=ofd_packets/00166227 [22:35:20]OFD Sender: To server: pG, [22:35:20]CommunicateWithHost lk.salyk.kg:30040 [22:35:20]ConnectInit lk.salyk.kg [22:35:20]Connected sock=7 [22: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 35 39 0F 01 00 00 34 6D 07 01 7C 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 82 37 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 59 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 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 6F 27 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 73 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 3B D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 89 02 00 35 04 06 00 C5 98 68 A1 49 A8 15 DC 4E 90 AF 0C D2 D1 [22:35:20]Write to MH i2c: 01 00 00 1D 8C A9 [22:35:20]Write i2c OK [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 [22:35:20]MH_I2C_Read... [22:35:20]Read from MH i2c: 01 07 00 1D 8C 00 00 00 00 00 EC 0C A8 [22:35:20]RasterBufferAndPrint [22:35:20]line [22:35:20]line [22:35:20]line [22:35:20]line [22:35:20]line [22:35:20]written 0, free lines is 3314 [22:35:21]MH_Cut [22:35:21]Write to MH i2c: D1 01 00 24 8C 01 82 [22:35:21]Write i2c OK [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: D1 [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: D1 01 00 [22:35:21]MH_I2C_Read... [22:35:21]Read from MH i2c: D1 01 00 24 8C 00 81 [22:35:21]Write to MH i2c: 01 00 00 25 8C B1 [22:35:21]Write i2c OK [22:35:21]MH_I2C_Read... [22:35:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 80 43 47 00 39 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 53 89 02 00 F4 03 04 00 A8 7D 16 67 B6 04 01 00 00 56 64 9E A7 91 5B 3E 65 [22:35:21]CommunicateWithHost err = 0 [22:35:21]CheckOFDResponse [22:35:21]1017 (14) - 77093643461234 [22:35:21]1041 (16) - 0000000000871759 [22:35:21]1040 (4) - 166227 [22:35:21]1012 (4) - 21.10.2024 16:13 [22:35:21]1206 (1) - 0 [22:35:21]OFD Sender: Remove packet 166227 [22:35:21]ProducePacketName [22:35:21]name=ofd_packets/00166227 [22:35:21]NVStorageDeleteData [22:35:21]OFD Sender: No OFD packet to send [22:35:21]*** Cut start [22:35:21]*** Partial cut [22:35:21]*** CUTSNS_PIN = 1 [22:35:21]*** CUTSNS_PIN = 0 [22:35:22]*** Brake cut motor [22:35:22]Read from MH i2c: 01 [22:35:22]MH_I2C_Read... [22:35:22]*** Stop cut motor [22:35:22]*** Cut end [22:35:22]Read from MH i2c: 01 07 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: 01 07 00 25 8C 00 00 00 00 00 FF 0F C6 [22:35:22]process_action close_receipt done [22:35:22]requested_data is exist [22:35:22]produce_requested_data [22:35:22]requested_item fm.sn is exist - process it [22:35:22]wFMCommunicate request_size=4 [22:35:22]MH_SAM_APDU [22:35:22]CAPDU: 80 11 00 00 [22:35:22]Write to MH i2c: E2 08 00 26 8C 80 11 00 00 00 00 00 00 2C [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:22]Read from MH i2c: E2 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: E2 17 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: E2 17 00 26 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 84 [22:35:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:35:22]wFMCommunicate OK [22:35:22]requested_item fd.num is exist - process it [22:35:22]SAM_PROTO_GetFieldsCounters [22:35:22]wFMCommunicate request_size=4 [22:35:22]MH_SAM_APDU [22:35:22]CAPDU: 80 13 00 00 [22:35:22]Write to MH i2c: E2 08 00 27 8C 80 13 00 00 00 00 00 00 2F [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:22]Read from MH i2c: E2 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: E2 62 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: E2 62 00 27 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [22:35:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 53 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:22]wFMCommunicate OK [22:35:22]SAM_PROTO_GetFieldsCounters done [22:35:22]requested_item shift.num is exist - process it [22:35:22]requested_item shift.opened is exist - process it [22:35:22]req_shift_opened [22:35:22]FM_GetShiftState [22:35:22]SAM_PROTO_GetShiftState [22:35:22]wFMCommunicate request_size=4 [22:35:22]MH_SAM_APDU [22:35:22]CAPDU: 80 13 01 00 [22:35:22]Write to MH i2c: E2 08 00 28 8C 80 13 01 00 00 00 00 00 31 [22:35:22]Write i2c OK [22:35:22]MH_I2C_Read... [22:35:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:22]Read from MH i2c: E2 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: E2 0E 00 [22:35:22]MH_I2C_Read... [22:35:22]Read from MH i2c: E2 0E 00 28 8C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3A [22:35:22]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:35:22]wFMCommunicate OK [22:35:22]SAM_PROTO_GetShiftState done [22:35:22]FM_GetShiftState done [22:35:22]req_shift_opened done [22:35:22]requested_item shift.open_date is exist - process it [22:35:22]req_shift_open_date [22:35:22]req_shift_open_date done [22:35:22]produce_requested_data done [22:35:22]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166227,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:35:22]process_action_free close_receipt [22:35:22]json_value_free [22:35:22]json_value_free done [22:35:22]process_json_proto returns [22:35:22]Send response to host [22:35:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166227,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:35:22]free response buf [22:35:22]execute_script done [22:35:22]execute_script returns [22:35:22]free content buf [22:35:22]Sock 5.Close socket [22:35:22]Sock 5.Thread stoped [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:53]accept exits with 6 [22:36:53]New connection [22:36:53]New thread 3066920292 created [22:36:53]Thread 3066776932 joined [22:36:53]Waiting for new connection... [22:36:53] Sock 6.Parse request [22:36:53]Sock 6.Check first char [22:36:53]Sock 6.First char is OK [22:36:53]request: POST /json_proto HTTP/1.0 [22:36:53]Method: POST [22:36:53]URL: /json_proto [22:36:53]Method is POST - this is cgi request [22:36:53]url: /json_proto [22:36:53]query_string will be loaded in cgi processing [22:36:53]execute_cgi json_proto POST (null) [22:36:53]execute_cgi path=json_proto method=POST [22:36:53]POST find Content-Length [22:36:53]Host: 172.17.53.195:8080 [22:36:53]Content-Length: 766 [22:36:53]Content-Type: application/json [22:36:53] [22:36:53]POST finish read [22:36:53]Found Content-Length = 766 [22:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:53]execute_script... [22:36: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)220802", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 250.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:36:53]POST & json_proto [22:36:53]process_json_proto [22:36:53]json parsed OK: [22:36:53]protocol is kg_v1.0 [22:36:53]action value=close_receipt [22:36:53]process_action close_receipt [22:36:53]cmd_close_receipt [22:36:53]MH_GetDate [22:36:53]Write to MH i2c: F0 00 00 29 8C A4 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: F0 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: F0 09 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: F0 09 00 29 8C 00 9A D7 16 67 21 48 4A 65 B3 [22:36:53]GetLastDocTimeStamp 1729550139 [22:36:53]current date 1729550234 [22:36:53]FM_GetShiftState [22:36:53]SAM_PROTO_GetShiftState [22:36:53]wFMCommunicate request_size=4 [22:36:53]MH_SAM_APDU [22:36:53]CAPDU: 80 13 01 00 [22:36:53]Write to MH i2c: E2 08 00 2A 8C 80 13 01 00 00 00 00 00 33 [22:36:53]Write i2c OK [22:36:53]MH_I2C_Read... [22:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:53]Read from MH i2c: E2 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0E 00 [22:36:53]MH_I2C_Read... [22:36:53]Read from MH i2c: E2 0E 00 2A 8C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 3C [22:36:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:36:53]wFMCommunicate OK [22:36:53]SAM_PROTO_GetShiftState done [22:36:53]FM_GetShiftState done [22:36:53]opened in 1729470944 [22:36:53]opened+sec_in_day 1729557344 [22:36:53]quantity*price = 25020 [22:36:53]sum+1 = 25022 [22:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.21 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 0.00 Безнал.: 250.21 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 339 21.10.2024 22:37 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166228 ФПД: 11382001595302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223714&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166228&fm=11382001595302&tin=02508201610067®Number=0000000000091764&sum=25021 [22:36:55]StoreToDocumentArchive [22:36:55]shift 535 fd 166228 [22:36:55]save to /storage/0535/doc_00166228 [22:36:55]save last doc name /storage/0535/doc_00166228 to /storage/kkm_last_doc_name [22:36:55]save OK [22:36:55]Clear old archive folders... [22:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:36:55]tlvbuf is 015E92C0 [22:36:55]SAM_PROTO_ClearQueue [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 09 00 00 [22:36:55]Write to MH i2c: E2 08 00 37 8C 80 09 00 00 00 00 00 00 35 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 37 8C 00 90 00 37 [22:36:55]RAPDU: 90 00 [22:36:55]wFMCommunicate OK [22:36:55]SAM_PROTO_ClearQueue done [22:36:55]KKMCreateOFDPacket [22:36:55]OFDProtocolAddRootSTLVToBuf [22:36:55]FM_MakeSignedData [22:36:55]FM_MakeSignedData [22:36:55]SAM_PROTO_SignData [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 0D 01 02 [22:36:55]Write to MH i2c: E2 08 00 38 8C 80 0D 01 02 00 00 00 00 3D [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 38 8C 00 90 00 38 [22:36:55]RAPDU: 90 00 [22:36:55]wFMCommunicate OK [22:36:55]wFMCommunicate request_size=255 [22:36:55]MH_SAM_APDU [22:36: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 9A D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 89 02 00 35 04 06 00 0A [22:36:55]Write to MH i2c: E2 02 01 39 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 9A D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 89 02 00 35 04 06 00 0A 00 00 1A [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 39 8C 00 90 00 39 [22:36:55]RAPDU: 90 00 [22:36:55]wFMCommunicate OK [22:36:55]wFMCommunicate request_size=10 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 0D 02 02 05 5A 14 29 73 A6 [22:36:55]Write to MH i2c: E2 0D 00 3A 8C 80 0D 02 02 05 00 5A 14 29 73 A6 00 00 FA [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 03 00 3A 8C 00 90 00 3A [22:36:55]RAPDU: 90 00 [22:36:55]wFMCommunicate OK [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 0D 03 02 [22:36:55]Write to MH i2c: E2 08 00 3B 8C 80 0D 03 02 00 00 00 00 42 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 0B 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 0B 00 3B 8C 00 24 D0 51 F4 C6 61 C3 6A 90 00 D0 [22:36:55]RAPDU: 24 D0 51 F4 C6 61 C3 6A 90 00 [22:36:55]wFMCommunicate OK [22:36:55]SAM_PROTO_SignData done [22:36:55]FM_MakeSignedData done [22:36:55]CreateOFDProtocolMessage [22:36:55]wFMCommunicate request_size=4 [22:36:55]MH_SAM_APDU [22:36:55]CAPDU: 80 11 00 00 [22:36:55]Write to MH i2c: E2 08 00 3C 8C 80 11 00 00 00 00 00 00 42 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:55]Read from MH i2c: E2 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 17 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: E2 17 00 3C 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9A [22:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:36:55]wFMCommunicate OK [22:36:55]CreateOFDProtocolMessage done [22:36:55]OFDSenderStorePacket 166228 [22:36:55]StoreOFDPacket docnum=166228 [22:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 B9 07 01 E0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 9A D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 89 02 00 35 04 06 00 0A 5A 14 29 73 A6 24 D0 51 F4 C6 61 C3 6A [22:36:55]CheckFolder [22:36:55]dirname=/storage/ofd_packets [22:36:55]CheckFolder done [22:36:55]ProducePacketName [22:36:55]name=ofd_packets/00166228 [22:36:55]NVStorageSaveData ofd_packets/00166228 [22:36:55]File name is /storage/ofd_packets/00166228 [22:36:55]Write 301 bytes [22:36:55]NVStorageSaveData done [22:36:55]OFDSenderStorePacket done [22:36:55]KKMCreateOFDPacket done [22:36:55]NVStorageSaveData kkm_last_timestamp [22:36:55]File name is /storage/kkm_last_timestamp [22:36:55]Write 4 bytes [22:36:55]NVStorageSaveData done [22:36:55]ExternCall_PrintAddStr [22:36:55]wPrintStart [22:36:55]Write to MH i2c: 01 00 00 3D 8C C9 [22:36:55]Write i2c OK [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 [22:36:55]MH_I2C_Read... [22:36:55]Read from MH i2c: 01 07 00 3D 8C 00 00 00 00 00 FF 0F DE [22:36:55]RasterBufferAndPrint [22:36:55]line Счет N : (1)220802 [22:36:55]line ИНН: 02508201610067 [22:36:55]line Контрольно-Кассовый Чек [22:36:55]line ПРОДАЖА [22:36:55]line ТРК (МРК, ГНК) : 43 [22:36:55]line Товар: 2710124130 [22:36:55]line Аи-92-К-5 [22:36:55]line 3.740 * 66.90 [22:36:55]line = 250.21 [22:36:55]line НДС 12% НСП 1% [22:36:55]line > о реализуемом товаре [22:36:55]line ИТОГО: 250.21 [22:36:55]line НСП 1% : 2.21 [22:36:55]line НДС 12% : 26.57 [22:36:55]line Наличными: 0.00 [22:36:55]line Безнал.: 250.21 [22:36:55]line Место: АЗС № 161 "Партнер Нефть" [22:36:55]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:36:55]line СНО: Общий режим [22:36:55]line Чек 339 21.10.2024 22:37 [22:36:55]line Смена: 535 ФФД: 1.0 [22:36:55]line ЗНМ: 0300000104 [22:36:55]line РНМ: 0000000000091764 [22:36:55]line Версия ККМ: 001 [22:36:55]line Платежная система: Mbank [22:36:55]line ФМ: 0000000000871759 [22:36:55]line ФД: 166228 [22:36:55]line ФПД: 11382001595302 [22:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T223714&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166228&fm=11382001595302&tin=02508201610067®Number=0000000000091764&sum=25021 [22:36:55]written 0, free lines is 4095 [22:36:55]OFD Sender: Processing packet 166228 [packets to send 48, broken 47] [22:36:55]ProducePacketName [22:36:55]name=ofd_packets/00166228 [22:36:55]OFD Sender: To server: pG, [22:36:55]CommunicateWithHost lk.salyk.kg:30040 [22:36:55]ConnectInit lk.salyk.kg [22:36:55]Connected sock=7 [22:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 57 B9 07 01 E0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 9A D7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 89 02 00 35 04 06 00 0A 5A 14 29 73 A6 24 D0 51 F4 C6 61 C3 6A [22:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 FB A8 47 00 91 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 54 89 02 00 F4 03 04 00 07 7E 16 67 B6 04 01 00 00 87 6B 2D D9 25 9E 7E 09 [22:36:56]CommunicateWithHost err = 0 [22:36:56]CheckOFDResponse [22:36:56]1017 (14) - 77093643461234 [22:36:56]1041 (16) - 0000000000871759 [22:36:56]1040 (4) - 166228 [22:36:56]1012 (4) - 21.10.2024 16:15 [22:36:56]1206 (1) - 0 [22:36:56]OFD Sender: Remove packet 166228 [22:36:56]ProducePacketName [22:36:56]name=ofd_packets/00166228 [22:36:56]NVStorageDeleteData [22:36:56]Write to MH i2c: 01 00 00 66 8C F2 [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: 01 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: 01 07 00 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: 01 07 00 66 8C 00 00 00 00 00 E9 0C EE [22:36:56]RasterBufferAndPrint [22:36:56]line [22:36:56]line [22:36:56]line [22:36:56]line [22:36:56]line [22:36:56]written 0, free lines is 3314 [22:36:56]MH_Cut [22:36:56]Write to MH i2c: D1 01 00 6D 8C 01 CB [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: D1 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: D1 01 00 [22:36:56]MH_I2C_Read... [22:36:56]Read from MH i2c: D1 01 00 6D 8C 00 CA [22:36:56]Write to MH i2c: 01 00 00 6E 8C FA [22:36:56]Write i2c OK [22:36:56]MH_I2C_Read... [22:36:56]OFD Sender: No OFD packet to send [22:36:56]*** Cut start [22:36:56]*** Partial cut [22:36:56]*** CUTSNS_PIN = 1 [22:36:56]*** CUTSNS_PIN = 0 [22:36:57]*** Brake cut motor [22:36:57]Read from MH i2c: 01 [22:36:57]MH_I2C_Read... [22:36:57]*** Stop cut motor [22:36:57]*** Cut end [22:36:57]Read from MH i2c: 01 07 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: 01 07 00 6E 8C 00 00 00 00 00 FF 0F 0F [22:36:57]process_action close_receipt done [22:36:57]requested_data is exist [22:36:57]produce_requested_data [22:36:57]requested_item fm.sn is exist - process it [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 11 00 00 [22:36:57]Write to MH i2c: E2 08 00 6F 8C 80 11 00 00 00 00 00 00 75 [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 17 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 17 00 6F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 CD [22:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:36:57]wFMCommunicate OK [22:36:57]requested_item fd.num is exist - process it [22:36:57]SAM_PROTO_GetFieldsCounters [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 00 00 [22:36:57]Write to MH i2c: E2 08 00 70 8C 80 13 00 00 00 00 00 00 78 [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 62 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 62 00 70 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [22:36:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 54 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetFieldsCounters done [22:36:57]requested_item shift.num is exist - process it [22:36:57]requested_item shift.opened is exist - process it [22:36:57]req_shift_opened [22:36:57]FM_GetShiftState [22:36:57]SAM_PROTO_GetShiftState [22:36:57]wFMCommunicate request_size=4 [22:36:57]MH_SAM_APDU [22:36:57]CAPDU: 80 13 01 00 [22:36:57]Write to MH i2c: E2 08 00 71 8C 80 13 01 00 00 00 00 00 7A [22:36:57]Write i2c OK [22:36:57]MH_I2C_Read... [22:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:36:57]Read from MH i2c: E2 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 [22:36:57]MH_I2C_Read... [22:36:57]Read from MH i2c: E2 0E 00 71 8C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 83 [22:36:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:36:57]wFMCommunicate OK [22:36:57]SAM_PROTO_GetShiftState done [22:36:57]FM_GetShiftState done [22:36:57]req_shift_opened done [22:36:57]requested_item shift.open_date is exist - process it [22:36:57]req_shift_open_date [22:36:57]req_shift_open_date done [22:36:57]produce_requested_data done [22:36:57]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166228,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:36:57]process_action_free close_receipt [22:36:57]json_value_free [22:36:57]json_value_free done [22:36:57]process_json_proto returns [22:36:57]Send response to host [22:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166228,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:36:57]free response buf [22:36:57]execute_script done [22:36:57]execute_script returns [22:36:57]free content buf [22:36:57]Sock 6.Close socket [22:36:57]Sock 6.Thread stoped [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:06]OFD Sender: No OFD packet to send [22:39:11]OFD Sender: No OFD packet to send [22:39:16]OFD Sender: No OFD packet to send [22:39:21]OFD Sender: No OFD packet to send [22:39:26]OFD Sender: No OFD packet to send [22:39:31]OFD Sender: No OFD packet to send [22:39:36]OFD Sender: No OFD packet to send [22:39:41]OFD Sender: No OFD packet to send [22:39:46]OFD Sender: No OFD packet to send [22:39:51]OFD Sender: No OFD packet to send [22:39:56]OFD Sender: No OFD packet to send [22:40:01]OFD Sender: No OFD packet to send [22:40:06]OFD Sender: No OFD packet to send [22:40:11]OFD Sender: No OFD packet to send [22:40:16]OFD Sender: No OFD packet to send [22:40:21]OFD Sender: No OFD packet to send [22:40:26]OFD Sender: No OFD packet to send [22:40:31]OFD Sender: No OFD packet to send [22:40:36]OFD Sender: No OFD packet to send [22:40:41]OFD Sender: No OFD packet to send [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:10]accept exits with 5 [22:59:10]New connection [22:59:10]New thread 3066776932 created [22:59:10]Thread 3066920292 joined [22:59:10]Waiting for new connection... [22:59:10] Sock 5.Parse request [22:59:10]Sock 5.Check first char [22:59:10]Sock 5.First char is OK [22:59:10]request: POST /json_proto HTTP/1.0 [22:59:10]Method: POST [22:59:10]URL: /json_proto [22:59:10]Method is POST - this is cgi request [22:59:10]url: /json_proto [22:59:10]query_string will be loaded in cgi processing [22:59:10]execute_cgi json_proto POST (null) [22:59:10]execute_cgi path=json_proto method=POST [22:59:10]POST find Content-Length [22:59:10]Host: 172.17.53.195:8080 [22:59:10]Content-Length: 677 [22:59:10]Content-Type: application/json [22:59:10] [22:59:10]POST finish read [22:59:10]Found Content-Length = 677 [22:59:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:10]execute_script... [22:59:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220803", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:10]POST & json_proto [22:59:10]process_json_proto [22:59:10]json parsed OK: [22:59:10]protocol is kg_v1.0 [22:59:10]action value=close_receipt [22:59:10]process_action close_receipt [22:59:10]cmd_close_receipt [22:59:10]MH_GetDate [22:59:10]Write to MH i2c: F0 00 00 72 8C ED [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: F0 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: F0 09 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: F0 09 00 72 8C 00 D3 DC 16 67 21 48 4A 65 3A [22:59:10]GetLastDocTimeStamp 1729550234 [22:59:10]current date 1729551571 [22:59:10]FM_GetShiftState [22:59:10]SAM_PROTO_GetShiftState [22:59:10]wFMCommunicate request_size=4 [22:59:10]MH_SAM_APDU [22:59:10]CAPDU: 80 13 01 00 [22:59:10]Write to MH i2c: E2 08 00 73 8C 80 13 01 00 00 00 00 00 7C [22:59:10]Write i2c OK [22:59:10]MH_I2C_Read... [22:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:10]Read from MH i2c: E2 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 0E 00 [22:59:10]MH_I2C_Read... [22:59:10]Read from MH i2c: E2 0E 00 73 8C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 85 [22:59:10]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:59:10]wFMCommunicate OK [22:59:10]SAM_PROTO_GetShiftState done [22:59:10]FM_GetShiftState done [22:59:10]opened in 1729470944 [22:59:10]opened+sec_in_day 1729557344 [22:59:10]quantity*price = 50041 [22:59:10]sum+1 = 50042 [22:59:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 340 21.10.2024 22:59 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166229 ФПД: 227800487755488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225931&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166229&fm=227800487755488&tin=02508201610067®Number=0000000000091764&sum=50000 [22:59:11]StoreToDocumentArchive [22:59:11]shift 535 fd 166229 [22:59:11]save to /storage/0535/doc_00166229 [22:59:11]save last doc name /storage/0535/doc_00166229 to /storage/kkm_last_doc_name [22:59:11]save OK [22:59:11]Clear old archive folders... [22:59:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:11]tlvbuf is 015129D0 [22:59:11]SAM_PROTO_ClearQueue [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 09 00 00 [22:59:11]Write to MH i2c: E2 08 00 80 8C 80 09 00 00 00 00 00 00 7E [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 80 8C 00 90 00 80 [22:59:11]RAPDU: 90 00 [22:59:11]wFMCommunicate OK [22:59:11]SAM_PROTO_ClearQueue done [22:59:11]KKMCreateOFDPacket [22:59:11]OFDProtocolAddRootSTLVToBuf [22:59:11]FM_MakeSignedData [22:59:11]FM_MakeSignedData [22:59:11]SAM_PROTO_SignData [22:59:11]wFMCommunicate request_size=4 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 0D 01 02 [22:59:11]Write to MH i2c: E2 08 00 81 8C 80 0D 01 02 00 00 00 00 86 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:11]Read from MH i2c: E2 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 [22:59:11]MH_I2C_Read... [22:59:11]Read from MH i2c: E2 03 00 81 8C 00 90 00 81 [22:59:11]RAPDU: 90 00 [22:59:11]wFMCommunicate OK [22:59:11]wFMCommunicate request_size=255 [22:59:11]MH_SAM_APDU [22:59:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D3 DC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 89 02 00 35 04 06 00 CF [22:59:11]Write to MH i2c: E2 02 01 82 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D3 DC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 89 02 00 35 04 06 00 CF 00 00 65 [22:59:11]Write i2c OK [22:59:11]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 82 8C 00 90 00 82 [22:59:12]RAPDU: 90 00 [22:59:12]wFMCommunicate OK [22:59:12]wFMCommunicate request_size=10 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 0D 02 02 05 2E EF 26 FE E0 [22:59:12]Write to MH i2c: E2 0D 00 83 8C 80 0D 02 02 05 00 2E EF 26 FE E0 00 00 B4 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 03 00 83 8C 00 90 00 83 [22:59:12]RAPDU: 90 00 [22:59:12]wFMCommunicate OK [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 0D 03 02 [22:59:12]Write to MH i2c: E2 08 00 84 8C 80 0D 03 02 00 00 00 00 8B [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 0B 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 0B 00 84 8C 00 B0 5D 15 67 EB 62 F1 D9 90 00 2C [22:59:12]RAPDU: B0 5D 15 67 EB 62 F1 D9 90 00 [22:59:12]wFMCommunicate OK [22:59:12]SAM_PROTO_SignData done [22:59:12]FM_MakeSignedData done [22:59:12]CreateOFDProtocolMessage [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 11 00 00 [22:59:12]Write to MH i2c: E2 08 00 85 8C 80 11 00 00 00 00 00 00 8B [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 17 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 17 00 85 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 E3 [22:59:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:59:12]wFMCommunicate OK [22:59:12]CreateOFDProtocolMessage done [22:59:12]OFDSenderStorePacket 166229 [22:59:12]StoreOFDPacket docnum=166229 [22:59:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B 16 07 01 FB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D3 DC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 89 02 00 35 04 06 00 CF 2E EF 26 FE E0 B0 5D 15 67 EB 62 F1 D9 [22:59:12]CheckFolder [22:59:12]dirname=/storage/ofd_packets [22:59:12]CheckFolder done [22:59:12]ProducePacketName [22:59:12]name=ofd_packets/00166229 [22:59:12]NVStorageSaveData ofd_packets/00166229 [22:59:12]File name is /storage/ofd_packets/00166229 [22:59:12]Write 301 bytes [22:59:12]NVStorageSaveData done [22:59:12]OFDSenderStorePacket done [22:59:12]KKMCreateOFDPacket done [22:59:12]NVStorageSaveData kkm_last_timestamp [22:59:12]File name is /storage/kkm_last_timestamp [22:59:12]Write 4 bytes [22:59:12]NVStorageSaveData done [22:59:12]ExternCall_PrintAddStr [22:59:12]wPrintStart [22:59:12]Write to MH i2c: 01 00 00 86 8C 12 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: 01 07 00 86 8C 00 00 00 00 00 FF 0F 27 [22:59:12]RasterBufferAndPrint [22:59:12]line Счет N : (1)220803 [22:59:12]line ИНН: 02508201610067 [22:59:12]line Контрольно-Кассовый Чек [22:59:12]line ПРОДАЖА [22:59:12]line ТРК (МРК, ГНК) : 23 [22:59:12]line Товар: 2710124130 [22:59:12]line Аи-92-К-5 [22:59:12]line 7.480 * 66.90 [22:59:12]line = 500.41 [22:59:12]line НДС 12% НСП 1% [22:59:12]line > о реализуемом товаре [22:59:12]line ОКРУГЛЕНИЕ: -0.41 [22:59:12]line ИТОГО: 500.00 [22:59:12]line Внесено: 500.00 [22:59:12]line СДАЧА: 0.00 [22:59:12]line НСП 1% : 4.43 [22:59:12]line НДС 12% : 53.14 [22:59:12]line Наличными: 500.00 [22:59:12]line Безнал.: 0.00 [22:59:12]line Место: АЗС № 161 "Партнер Нефть" [22:59:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [22:59:12]line СНО: Общий режим [22:59:12]line Чек 340 21.10.2024 22:59 [22:59:12]line Смена: 535 ФФД: 1.0 [22:59:12]line ЗНМ: 0300000104 [22:59:12]line РНМ: 0000000000091764 [22:59:12]line Версия ККМ: 001 [22:59:12]line ФМ: 0000000000871759 [22:59:12]line ФД: 166229 [22:59:12]line ФПД: 227800487755488 [22:59:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T225931&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166229&fm=227800487755488&tin=02508201610067®Number=0000000000091764&sum=50000 [22:59:12]OFD Sender: Processing packet 166229 [packets to send 48, broken 47] [22:59:12]ProducePacketName [22:59:12]name=ofd_packets/00166229 [22:59:12]OFD Sender: To server: pG, [22:59:12]CommunicateWithHost lk.salyk.kg:30040 [22:59:12]ConnectInit lk.salyk.kg [22:59:12]written 0, free lines is 4095 [22:59:12]Connected sock=7 [22:59:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9B 16 07 01 FB 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 D3 DC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 55 89 02 00 35 04 06 00 CF 2E EF 26 FE E0 B0 5D 15 67 EB 62 F1 D9 [22:59:13]Write to MH i2c: 01 00 00 B1 8C 3D [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: 01 07 00 B1 8C 00 00 00 00 00 C8 0C 18 [22:59:13]RasterBufferAndPrint [22:59:13]line [22:59:13]line [22:59:13]line [22:59:13]line [22:59:13]line [22:59:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 73 A7 47 00 2C 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 35 39 10 04 04 00 55 89 02 00 F4 03 04 00 40 83 16 67 B6 04 01 00 00 BA 6F E6 4D 79 CA F5 D6 [22:59:13]CommunicateWithHost err = 0 [22:59:13]CheckOFDResponse [22:59:13]1017 (14) - 77093643461234 [22:59:13]1041 (16) - 0000000000871759 [22:59:13]1040 (4) - 166229 [22:59:13]1012 (4) - 21.10.2024 16:37 [22:59:13]1206 (1) - 0 [22:59:13]OFD Sender: Remove packet 166229 [22:59:13]ProducePacketName [22:59:13]name=ofd_packets/00166229 [22:59:13]NVStorageDeleteData [22:59:13]written 0, free lines is 3279 [22:59:13]MH_Cut [22:59:13]Write to MH i2c: D1 01 00 B8 8C 01 16 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: D1 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: D1 01 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: D1 01 00 B8 8C 00 15 [22:59:13]Write to MH i2c: 01 00 00 B9 8C 45 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]OFD Sender: No OFD packet to send [22:59:13]*** Cut start [22:59:13]*** Partial cut [22:59:13]*** CUTSNS_PIN = 1 [22:59:13]*** CUTSNS_PIN = 0 [22:59:14]*** Brake cut motor [22:59:14]Read from MH i2c: 01 [22:59:14]MH_I2C_Read... [22:59:14]*** Stop cut motor [22:59:14]*** Cut end [22:59:14]Read from MH i2c: 01 07 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 B9 8C 00 00 00 00 00 FF 0F 5A [22:59:14]process_action close_receipt done [22:59:14]requested_data is exist [22:59:14]produce_requested_data [22:59:14]requested_item fm.sn is exist - process it [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 11 00 00 [22:59:14]Write to MH i2c: E2 08 00 BA 8C 80 11 00 00 00 00 00 00 C0 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 17 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 17 00 BA 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 18 [22:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [22:59:14]wFMCommunicate OK [22:59:14]requested_item fd.num is exist - process it [22:59:14]SAM_PROTO_GetFieldsCounters [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 13 00 00 [22:59:14]Write to MH i2c: E2 08 00 BB 8C 80 13 00 00 00 00 00 00 C3 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 62 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 62 00 BB 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:59:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 55 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:14]wFMCommunicate OK [22:59:14]SAM_PROTO_GetFieldsCounters done [22:59:14]requested_item shift.num is exist - process it [22:59:14]requested_item shift.opened is exist - process it [22:59:14]req_shift_opened [22:59:14]FM_GetShiftState [22:59:14]SAM_PROTO_GetShiftState [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 13 01 00 [22:59:14]Write to MH i2c: E2 08 00 BC 8C 80 13 01 00 00 00 00 00 C5 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 0E 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 0E 00 BC 8C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 CE [22:59:14]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [22:59:14]wFMCommunicate OK [22:59:14]SAM_PROTO_GetShiftState done [22:59:14]FM_GetShiftState done [22:59:14]req_shift_opened done [22:59:14]requested_item shift.open_date is exist - process it [22:59:14]req_shift_open_date [22:59:14]req_shift_open_date done [22:59:14]produce_requested_data done [22:59:14]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166229,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [22:59:14]process_action_free close_receipt [22:59:14]json_value_free [22:59:14]json_value_free done [22:59:14]process_json_proto returns [22:59:14]Send response to host [22:59:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166229,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [22:59:14]free response buf [22:59:14]execute_script done [22:59:14]execute_script returns [22:59:14]free content buf [22:59:14]Sock 5.Close socket [22:59:14]Sock 5.Thread stoped [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:32]accept exits with 6 [23:01:32]New connection [23:01:32]New thread 3066920292 created [23:01:32]Thread 3066776932 joined [23:01:32]Waiting for new connection... [23:01:32] Sock 6.Parse request [23:01:32]Sock 6.Check first char [23:01:32]Sock 6.First char is OK [23:01:32]request: POST /json_proto HTTP/1.0 [23:01:32]Method: POST [23:01:32]URL: /json_proto [23:01:32]Method is POST - this is cgi request [23:01:32]url: /json_proto [23:01:32]query_string will be loaded in cgi processing [23:01:32]execute_cgi json_proto POST (null) [23:01:32]execute_cgi path=json_proto method=POST [23:01:32]POST find Content-Length [23:01:32]Host: 172.17.53.195:8080 [23:01:32]Content-Length: 677 [23:01:32]Content-Type: application/json [23:01:32] [23:01:32]POST finish read [23:01:32]Found Content-Length = 677 [23:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "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" ] } } [23:01:32]execute_script... [23:01:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220804", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "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" ] } } [23:01:32]POST & json_proto [23:01:32]process_json_proto [23:01:32]json parsed OK: [23:01:32]protocol is kg_v1.0 [23:01:32]action value=close_receipt [23:01:32]process_action close_receipt [23:01:32]cmd_close_receipt [23:01:32]MH_GetDate [23:01:32]Write to MH i2c: F0 00 00 BD 8C 38 [23:01:32]Write i2c OK [23:01:32]MH_I2C_Read... [23:01:32]Read from MH i2c: F0 [23:01:32]MH_I2C_Read... [23:01:32]Read from MH i2c: F0 09 00 [23:01:32]MH_I2C_Read... [23:01:32]Read from MH i2c: F0 09 00 BD 8C 00 61 DD 16 67 21 48 4A 65 14 [23:01:32]GetLastDocTimeStamp 1729551571 [23:01:32]current date 1729551713 [23:01:32]FM_GetShiftState [23:01:32]SAM_PROTO_GetShiftState [23:01:32]wFMCommunicate request_size=4 [23:01:32]MH_SAM_APDU [23:01:32]CAPDU: 80 13 01 00 [23:01:32]Write to MH i2c: E2 08 00 BE 8C 80 13 01 00 00 00 00 00 C7 [23:01:32]Write i2c OK [23:01:32]MH_I2C_Read... [23:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:32]Read from MH i2c: E2 [23:01:32]MH_I2C_Read... [23:01:32]Read from MH i2c: E2 0E 00 [23:01:32]MH_I2C_Read... [23:01:32]Read from MH i2c: E2 0E 00 BE 8C 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 D0 [23:01:32]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:01:32]wFMCommunicate OK [23:01:32]SAM_PROTO_GetShiftState done [23:01:32]FM_GetShiftState done [23:01:32]opened in 1729470944 [23:01:32]opened+sec_in_day 1729557344 [23:01:32]quantity*price = 60027 [23:01:32]sum+1 = 60029 [23:01:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 341 21.10.2024 23:01 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166230 ФПД: 161548338064569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230153&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166230&fm=161548338064569&tin=02508201610067®Number=0000000000091764&sum=60000 [23:01:33]StoreToDocumentArchive [23:01:33]shift 535 fd 166230 [23:01:33]save to /storage/0535/doc_00166230 [23:01:33]save last doc name /storage/0535/doc_00166230 to /storage/kkm_last_doc_name [23:01:33]save OK [23:01:33]Clear old archive folders... [23:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:33]tlvbuf is 01C094B0 [23:01:33]SAM_PROTO_ClearQueue [23:01:33]wFMCommunicate request_size=4 [23:01:33]MH_SAM_APDU [23:01:33]CAPDU: 80 09 00 00 [23:01:33]Write to MH i2c: E2 08 00 CB 8C 80 09 00 00 00 00 00 00 C9 [23:01:33]Write i2c OK [23:01:33]MH_I2C_Read... [23:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:33]Read from MH i2c: E2 [23:01:33]MH_I2C_Read... [23:01:33]Read from MH i2c: E2 03 00 [23:01:33]MH_I2C_Read... [23:01:33]Read from MH i2c: E2 03 00 CB 8C 00 90 00 CB [23:01:33]RAPDU: 90 00 [23:01:33]wFMCommunicate OK [23:01:33]SAM_PROTO_ClearQueue done [23:01:33]KKMCreateOFDPacket [23:01:33]OFDProtocolAddRootSTLVToBuf [23:01:33]FM_MakeSignedData [23:01:33]FM_MakeSignedData [23:01:33]SAM_PROTO_SignData [23:01:33]wFMCommunicate request_size=4 [23:01:33]MH_SAM_APDU [23:01:33]CAPDU: 80 0D 01 02 [23:01:33]Write to MH i2c: E2 08 00 CC 8C 80 0D 01 02 00 00 00 00 D1 [23:01:33]Write i2c OK [23:01:33]MH_I2C_Read... [23:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:33]Read from MH i2c: E2 [23:01:33]MH_I2C_Read... [23:01:33]Read from MH i2c: E2 03 00 [23:01:33]MH_I2C_Read... [23:01:33]Read from MH i2c: E2 03 00 CC 8C 00 90 00 CC [23:01:33]RAPDU: 90 00 [23:01:33]wFMCommunicate OK [23:01:33]wFMCommunicate request_size=255 [23:01:33]MH_SAM_APDU [23:01:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 01 00 00 F4 03 04 00 61 DD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 89 02 00 35 04 06 00 92 [23:01:33]Write to MH i2c: E2 02 01 CD 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 55 01 00 00 F4 03 04 00 61 DD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 89 02 00 35 04 06 00 92 00 00 62 [23:01:33]Write i2c OK [23:01:33]MH_I2C_Read... [23:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:34]Read from MH i2c: E2 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 03 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 03 00 CD 8C 00 90 00 CD [23:01:34]RAPDU: 90 00 [23:01:34]wFMCommunicate OK [23:01:34]wFMCommunicate request_size=10 [23:01:34]MH_SAM_APDU [23:01:34]CAPDU: 80 0D 02 02 05 ED 67 4D EC B9 [23:01:34]Write to MH i2c: E2 0D 00 CE 8C 80 0D 02 02 05 00 ED 67 4D EC B9 00 00 24 [23:01:34]Write i2c OK [23:01:34]MH_I2C_Read... [23:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:34]Read from MH i2c: E2 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 03 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 03 00 CE 8C 00 90 00 CE [23:01:34]RAPDU: 90 00 [23:01:34]wFMCommunicate OK [23:01:34]wFMCommunicate request_size=4 [23:01:34]MH_SAM_APDU [23:01:34]CAPDU: 80 0D 03 02 [23:01:34]Write to MH i2c: E2 08 00 CF 8C 80 0D 03 02 00 00 00 00 D6 [23:01:34]Write i2c OK [23:01:34]MH_I2C_Read... [23:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:34]Read from MH i2c: E2 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 0B 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 0B 00 CF 8C 00 A4 11 B8 BA 3C 20 A0 1E 90 00 18 [23:01:34]RAPDU: A4 11 B8 BA 3C 20 A0 1E 90 00 [23:01:34]wFMCommunicate OK [23:01:34]SAM_PROTO_SignData done [23:01:34]FM_MakeSignedData done [23:01:34]CreateOFDProtocolMessage [23:01:34]wFMCommunicate request_size=4 [23:01:34]MH_SAM_APDU [23:01:34]CAPDU: 80 11 00 00 [23:01:34]Write to MH i2c: E2 08 00 D0 8C 80 11 00 00 00 00 00 00 D6 [23:01:34]Write i2c OK [23:01:34]MH_I2C_Read... [23:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:34]Read from MH i2c: E2 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 17 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: E2 17 00 D0 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2E [23:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:01:34]wFMCommunicate OK [23:01:34]CreateOFDProtocolMessage done [23:01:34]OFDSenderStorePacket 166230 [23:01:34]StoreOFDPacket docnum=166230 [23:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 83 07 01 8C 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 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 55 01 00 00 F4 03 04 00 61 DD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 89 02 00 35 04 06 00 92 ED 67 4D EC B9 A4 11 B8 BA 3C 20 A0 1E [23:01:34]CheckFolder [23:01:34]dirname=/storage/ofd_packets [23:01:34]CheckFolder done [23:01:34]ProducePacketName [23:01:34]name=ofd_packets/00166230 [23:01:34]NVStorageSaveData ofd_packets/00166230 [23:01:34]File name is /storage/ofd_packets/00166230 [23:01:34]Write 301 bytes [23:01:34]NVStorageSaveData done [23:01:34]OFDSenderStorePacket done [23:01:34]KKMCreateOFDPacket done [23:01:34]NVStorageSaveData kkm_last_timestamp [23:01:34]File name is /storage/kkm_last_timestamp [23:01:34]Write 4 bytes [23:01:34]NVStorageSaveData done [23:01:34]ExternCall_PrintAddStr [23:01:34]wPrintStart [23:01:34]Write to MH i2c: 01 00 00 D1 8C 5D [23:01:34]Write i2c OK [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: 01 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: 01 07 00 [23:01:34]MH_I2C_Read... [23:01:34]Read from MH i2c: 01 07 00 D1 8C 00 00 00 00 00 FF 0F 72 [23:01:34]RasterBufferAndPrint [23:01:34]line Счет N : (1)220804 [23:01:34]line ИНН: 02508201610067 [23:01:34]line Контрольно-Кассовый Чек [23:01:34]line ПРОДАЖА [23:01:34]line ТРК (МРК, ГНК) : 44 [23:01:34]line Товар: 2710124500 [23:01:34]line Аи-95-К-5 [23:01:34]line 8.090 * 74.20 [23:01:34]line = 600.28 [23:01:34]line НДС 12% НСП 1% [23:01:34]line > о реализуемом товаре [23:01:34]line ОКРУГЛЕНИЕ: -0.28 [23:01:34]line ИТОГО: 600.00 [23:01:34]line Внесено: 600.00 [23:01:34]line СДАЧА: 0.00 [23:01:34]line НСП 1% : 5.31 [23:01:34]line НДС 12% : 63.75 [23:01:34]line Наличными: 600.00 [23:01:34]line Безнал.: 0.00 [23:01:34]line Место: АЗС № 161 "Партнер Нефть" [23:01:34]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:01:34]line СНО: Общий режим [23:01:34]line Чек 341 21.10.2024 23:01 [23:01:34]line Смена: 535 ФФД: 1.0 [23:01:34]line ЗНМ: 0300000104 [23:01:34]line РНМ: 0000000000091764 [23:01:34]line Версия ККМ: 001 [23:01:34]line ФМ: 0000000000871759 [23:01:34]line ФД: 166230 [23:01:34]line ФПД: 161548338064569 [23:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230153&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166230&fm=161548338064569&tin=02508201610067®Number=0000000000091764&sum=60000 [23:01:34]OFD Sender: Processing packet 166230 [packets to send 48, broken 47] [23:01:34]ProducePacketName [23:01:34]name=ofd_packets/00166230 [23:01:34]OFD Sender: To server: pG, [23:01:34]CommunicateWithHost lk.salyk.kg:30040 [23:01:34]ConnectInit lk.salyk.kg [23:01:34]written 0, free lines is 4095 [23:01:34]Connected sock=7 [23:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 4A 83 07 01 8C 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 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 55 01 00 00 F4 03 04 00 61 DD 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 89 02 00 35 04 06 00 92 ED 67 4D EC B9 A4 11 B8 BA 3C 20 A0 1E [23:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C8 58 47 00 F1 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 56 89 02 00 F4 03 04 00 CE 83 16 67 B6 04 01 00 00 04 A6 B2 04 95 17 18 81 [23:01:35]CommunicateWithHost err = 0 [23:01:35]CheckOFDResponse [23:01:35]1017 (14) - 77093643461234 [23:01:35]1041 (16) - 0000000000871759 [23:01:35]1040 (4) - 166230 [23:01:35]1012 (4) - 21.10.2024 16:39 [23:01:35]1206 (1) - 0 [23:01:35]OFD Sender: Remove packet 166230 [23:01:35]ProducePacketName [23:01:35]name=ofd_packets/00166230 [23:01:35]NVStorageDeleteData [23:01:35]Write to MH i2c: 01 00 00 FC 8C 88 [23:01:35]Write i2c OK [23:01:35]MH_I2C_Read... [23:01:35]Read from MH i2c: 01 [23:01:35]MH_I2C_Read... [23:01:35]Read from MH i2c: 01 07 00 [23:01:35]MH_I2C_Read... [23:01:35]Read from MH i2c: 01 07 00 FC 8C 00 00 00 00 00 BD 0C 58 [23:01:35]RasterBufferAndPrint [23:01:35]line [23:01:35]line [23:01:35]line [23:01:35]line [23:01:35]line [23:01:35]written 0, free lines is 3271 [23:01:35]MH_Cut [23:01:35]Write to MH i2c: D1 01 00 03 8D 01 62 [23:01:35]Write i2c OK [23:01:35]MH_I2C_Read... [23:01:35]Read from MH i2c: D1 [23:01:35]MH_I2C_Read... [23:01:35]Read from MH i2c: D1 01 00 [23:01:35]MH_I2C_Read... [23:01:35]Read from MH i2c: D1 01 00 03 8D 00 61 [23:01:35]Write to MH i2c: 01 00 00 04 8D 91 [23:01:35]Write i2c OK [23:01:35]MH_I2C_Read... [23:01:35]OFD Sender: No OFD packet to send [23:01:35]*** Cut start [23:01:35]*** Partial cut [23:01:35]*** CUTSNS_PIN = 1 [23:01:36]*** CUTSNS_PIN = 0 [23:01:36]*** Brake cut motor [23:01:36]Read from MH i2c: 01 [23:01:36]MH_I2C_Read... [23:01:36]*** Stop cut motor [23:01:36]*** Cut end [23:01:36]Read from MH i2c: 01 07 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: 01 07 00 04 8D 00 00 00 00 00 FF 0F A6 [23:01:36]process_action close_receipt done [23:01:36]requested_data is exist [23:01:36]produce_requested_data [23:01:36]requested_item fm.sn is exist - process it [23:01:36]wFMCommunicate request_size=4 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 11 00 00 [23:01:36]Write to MH i2c: E2 08 00 05 8D 80 11 00 00 00 00 00 00 0C [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 17 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 17 00 05 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 64 [23:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:01:36]wFMCommunicate OK [23:01:36]requested_item fd.num is exist - process it [23:01:36]SAM_PROTO_GetFieldsCounters [23:01:36]wFMCommunicate request_size=4 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 13 00 00 [23:01:36]Write to MH i2c: E2 08 00 06 8D 80 13 00 00 00 00 00 00 0F [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 62 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 62 00 06 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [23:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 56 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:36]wFMCommunicate OK [23:01:36]SAM_PROTO_GetFieldsCounters done [23:01:36]requested_item shift.num is exist - process it [23:01:36]requested_item shift.opened is exist - process it [23:01:36]req_shift_opened [23:01:36]FM_GetShiftState [23:01:36]SAM_PROTO_GetShiftState [23:01:36]wFMCommunicate request_size=4 [23:01:36]MH_SAM_APDU [23:01:36]CAPDU: 80 13 01 00 [23:01:36]Write to MH i2c: E2 08 00 07 8D 80 13 01 00 00 00 00 00 11 [23:01:36]Write i2c OK [23:01:36]MH_I2C_Read... [23:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:36]Read from MH i2c: E2 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 0E 00 [23:01:36]MH_I2C_Read... [23:01:36]Read from MH i2c: E2 0E 00 07 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1A [23:01:36]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:01:36]wFMCommunicate OK [23:01:36]SAM_PROTO_GetShiftState done [23:01:36]FM_GetShiftState done [23:01:36]req_shift_opened done [23:01:36]requested_item shift.open_date is exist - process it [23:01:36]req_shift_open_date [23:01:36]req_shift_open_date done [23:01:36]produce_requested_data done [23:01:36]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166230,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:01:36]process_action_free close_receipt [23:01:36]json_value_free [23:01:36]json_value_free done [23:01:36]process_json_proto returns [23:01:36]Send response to host [23:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166230,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:01:36]free response buf [23:01:36]execute_script done [23:01:36]execute_script returns [23:01:36]free content buf [23:01:36]Sock 6.Close socket [23:01:36]Sock 6.Thread stoped [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:43]accept exits with 5 [23:04:43]New connection [23:04:43]New thread 3066776932 created [23:04:43]Thread 3066920292 joined [23:04:43]Waiting for new connection... [23:04:43] Sock 5.Parse request [23:04:43]Sock 5.Check first char [23:04:43]Sock 5.First char is OK [23:04:43]request: POST /json_proto HTTP/1.0 [23:04:43]Method: POST [23:04:43]URL: /json_proto [23:04:43]Method is POST - this is cgi request [23:04:43]url: /json_proto [23:04:43]query_string will be loaded in cgi processing [23:04:43]execute_cgi json_proto POST (null) [23:04:43]execute_cgi path=json_proto method=POST [23:04:43]POST find Content-Length [23:04:43]Host: 172.17.53.195:8080 [23:04:43]Content-Length: 682 [23:04:43]Content-Type: application/json [23:04:43] [23:04:43]POST finish read [23:04:43]Found Content-Length = 682 [23:04:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:43]execute_script... [23:04: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)220805", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:43]POST & json_proto [23:04:43]process_json_proto [23:04:43]json parsed OK: [23:04:43]protocol is kg_v1.0 [23:04:43]action value=close_receipt [23:04:43]process_action close_receipt [23:04:43]cmd_close_receipt [23:04:43]MH_GetDate [23:04:43]Write to MH i2c: F0 00 00 08 8D 84 [23:04:43]Write i2c OK [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: F0 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: F0 09 00 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: F0 09 00 08 8D 00 1F DE 16 67 21 48 4A 65 1F [23:04:43]GetLastDocTimeStamp 1729551713 [23:04:43]current date 1729551903 [23:04:43]FM_GetShiftState [23:04:43]SAM_PROTO_GetShiftState [23:04:43]wFMCommunicate request_size=4 [23:04:43]MH_SAM_APDU [23:04:43]CAPDU: 80 13 01 00 [23:04:43]Write to MH i2c: E2 08 00 09 8D 80 13 01 00 00 00 00 00 13 [23:04:43]Write i2c OK [23:04:43]MH_I2C_Read... [23:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:43]Read from MH i2c: E2 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 0E 00 [23:04:43]MH_I2C_Read... [23:04:43]Read from MH i2c: E2 0E 00 09 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 1C [23:04:43]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:04:43]wFMCommunicate OK [23:04:43]SAM_PROTO_GetShiftState done [23:04:43]FM_GetShiftState done [23:04:43]opened in 1729470944 [23:04:43]opened+sec_in_day 1729557344 [23:04:43]quantity*price = 100015 [23:04:43]sum+1 = 100017 [23:04:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 342 21.10.2024 23:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166231 ФПД: 252408064743216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230503&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166231&fm=252408064743216&tin=02508201610067®Number=0000000000091764&sum=100000 [23:04:44]StoreToDocumentArchive [23:04:44]shift 535 fd 166231 [23:04:44]save to /storage/0535/doc_00166231 [23:04:44]save last doc name /storage/0535/doc_00166231 to /storage/kkm_last_doc_name [23:04:44]save OK [23:04:44]Clear old archive folders... [23:04:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:04:44]tlvbuf is 01799F60 [23:04:44]SAM_PROTO_ClearQueue [23:04:44]wFMCommunicate request_size=4 [23:04:44]MH_SAM_APDU [23:04:44]CAPDU: 80 09 00 00 [23:04:44]Write to MH i2c: E2 08 00 16 8D 80 09 00 00 00 00 00 00 15 [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:44]Read from MH i2c: E2 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 16 8D 00 90 00 17 [23:04:44]RAPDU: 90 00 [23:04:44]wFMCommunicate OK [23:04:44]SAM_PROTO_ClearQueue done [23:04:44]KKMCreateOFDPacket [23:04:44]OFDProtocolAddRootSTLVToBuf [23:04:44]FM_MakeSignedData [23:04:44]FM_MakeSignedData [23:04:44]SAM_PROTO_SignData [23:04:44]wFMCommunicate request_size=4 [23:04:44]MH_SAM_APDU [23:04:44]CAPDU: 80 0D 01 02 [23:04:44]Write to MH i2c: E2 08 00 17 8D 80 0D 01 02 00 00 00 00 1D [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:44]Read from MH i2c: E2 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 17 8D 00 90 00 18 [23:04:44]RAPDU: 90 00 [23:04:44]wFMCommunicate OK [23:04:44]wFMCommunicate request_size=255 [23:04:44]MH_SAM_APDU [23:04: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 1F DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 89 02 00 35 04 06 00 E5 [23:04:44]Write to MH i2c: E2 02 01 18 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 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 1F DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 89 02 00 35 04 06 00 E5 00 00 5E [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:44]Read from MH i2c: E2 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 18 8D 00 90 00 19 [23:04:44]RAPDU: 90 00 [23:04:44]wFMCommunicate OK [23:04:44]wFMCommunicate request_size=10 [23:04:44]MH_SAM_APDU [23:04:44]CAPDU: 80 0D 02 02 05 90 55 09 97 30 [23:04:44]Write to MH i2c: E2 0D 00 19 8D 80 0D 02 02 05 00 90 55 09 97 30 00 00 DF [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:44]Read from MH i2c: E2 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 03 00 19 8D 00 90 00 1A [23:04:44]RAPDU: 90 00 [23:04:44]wFMCommunicate OK [23:04:44]wFMCommunicate request_size=4 [23:04:44]MH_SAM_APDU [23:04:44]CAPDU: 80 0D 03 02 [23:04:44]Write to MH i2c: E2 08 00 1A 8D 80 0D 03 02 00 00 00 00 22 [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:44]Read from MH i2c: E2 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 0B 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 0B 00 1A 8D 00 53 21 3B B8 BD 38 7E ED 90 00 EA [23:04:44]RAPDU: 53 21 3B B8 BD 38 7E ED 90 00 [23:04:44]wFMCommunicate OK [23:04:44]SAM_PROTO_SignData done [23:04:44]FM_MakeSignedData done [23:04:44]CreateOFDProtocolMessage [23:04:44]wFMCommunicate request_size=4 [23:04:44]MH_SAM_APDU [23:04:44]CAPDU: 80 11 00 00 [23:04:44]Write to MH i2c: E2 08 00 1B 8D 80 11 00 00 00 00 00 00 22 [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:44]Read from MH i2c: E2 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 17 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: E2 17 00 1B 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 7A [23:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:04:44]wFMCommunicate OK [23:04:44]CreateOFDProtocolMessage done [23:04:44]OFDSenderStorePacket 166231 [23:04:44]StoreOFDPacket docnum=166231 [23:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DF D6 07 01 2D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 1F DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 89 02 00 35 04 06 00 E5 90 55 09 97 30 53 21 3B B8 BD 38 7E ED [23:04:44]CheckFolder [23:04:44]dirname=/storage/ofd_packets [23:04:44]CheckFolder done [23:04:44]ProducePacketName [23:04:44]name=ofd_packets/00166231 [23:04:44]NVStorageSaveData ofd_packets/00166231 [23:04:44]File name is /storage/ofd_packets/00166231 [23:04:44]Write 301 bytes [23:04:44]NVStorageSaveData done [23:04:44]OFDSenderStorePacket done [23:04:44]KKMCreateOFDPacket done [23:04:44]NVStorageSaveData kkm_last_timestamp [23:04:44]File name is /storage/kkm_last_timestamp [23:04:44]Write 4 bytes [23:04:44]NVStorageSaveData done [23:04:44]ExternCall_PrintAddStr [23:04:44]wPrintStart [23:04:44]Write to MH i2c: 01 00 00 1C 8D A9 [23:04:44]Write i2c OK [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: 01 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: 01 07 00 [23:04:44]MH_I2C_Read... [23:04:44]Read from MH i2c: 01 07 00 1C 8D 00 00 00 00 00 FF 0F BE [23:04:44]RasterBufferAndPrint [23:04:44]line Счет N : (1)220805 [23:04:44]line ИНН: 02508201610067 [23:04:44]line Контрольно-Кассовый Чек [23:04:44]line ПРОДАЖА [23:04:44]line ТРК (МРК, ГНК) : 23 [23:04:44]line Товар: 2710124130 [23:04:44]line Аи-92-К-5 [23:04:44]line 14.950 * 66.90 [23:04:44]line = 1000.16 [23:04:44]line НДС 12% НСП 1% [23:04:44]line > о реализуемом товаре [23:04:44]line ОКРУГЛЕНИЕ: -0.16 [23:04:44]line ИТОГО: 1000.00 [23:04:44]line Внесено: 1000.00 [23:04:44]line СДАЧА: 0.00 [23:04:44]line НСП 1% : 8.85 [23:04:44]line НДС 12% : 106.21 [23:04:44]line Наличными: 1000.00 [23:04:44]line Безнал.: 0.00 [23:04:44]line Место: АЗС № 161 "Партнер Нефть" [23:04:44]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:04:44]line СНО: Общий режим [23:04:44]line Чек 342 21.10.2024 23:05 [23:04:44]line Смена: 535 ФФД: 1.0 [23:04:44]line ЗНМ: 0300000104 [23:04:44]line РНМ: 0000000000091764 [23:04:44]line Версия ККМ: 001 [23:04:44]line ФМ: 0000000000871759 [23:04:44]line ФД: 166231 [23:04:44]line ФПД: 252408064743216 [23:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230503&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166231&fm=252408064743216&tin=02508201610067®Number=0000000000091764&sum=100000 [23:04:45]OFD Sender: Processing packet 166231 [packets to send 48, broken 47] [23:04:45]ProducePacketName [23:04:45]name=ofd_packets/00166231 [23:04:45]OFD Sender: To server: pG, [23:04:45]CommunicateWithHost lk.salyk.kg:30040 [23:04:45]ConnectInit lk.salyk.kg [23:04:45]written 0, free lines is 4095 [23:04:45]Connected sock=7 [23:04:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DF D6 07 01 2D 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 01 00 00 F4 03 04 00 1F DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 89 02 00 35 04 06 00 E5 90 55 09 97 30 53 21 3B B8 BD 38 7E ED [23:04:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 06 9A 47 00 AE 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 57 89 02 00 F4 03 04 00 8C 84 16 67 B6 04 01 00 00 8D 15 9C 91 81 4E AF 42 [23:04:45]CommunicateWithHost err = 0 [23:04:45]CheckOFDResponse [23:04:45]1017 (14) - 77093643461234 [23:04:45]1041 (16) - 0000000000871759 [23:04:45]1040 (4) - 166231 [23:04:45]1012 (4) - 21.10.2024 16:42 [23:04:45]1206 (1) - 0 [23:04:45]OFD Sender: Remove packet 166231 [23:04:45]ProducePacketName [23:04:45]name=ofd_packets/00166231 [23:04:45]NVStorageDeleteData [23:04:45]Write to MH i2c: 01 00 00 47 8D D4 [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: 01 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: 01 07 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: 01 07 00 47 8D 00 00 00 00 00 B7 0C 9E [23:04:45]RasterBufferAndPrint [23:04:45]line [23:04:45]line [23:04:45]line [23:04:45]line [23:04:45]line [23:04:45]written 0, free lines is 3263 [23:04:45]MH_Cut [23:04:45]Write to MH i2c: D1 01 00 4E 8D 01 AD [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: D1 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: D1 01 00 [23:04:45]MH_I2C_Read... [23:04:45]Read from MH i2c: D1 01 00 4E 8D 00 AC [23:04:45]Write to MH i2c: 01 00 00 4F 8D DC [23:04:45]Write i2c OK [23:04:45]MH_I2C_Read... [23:04:45]OFD Sender: No OFD packet to send [23:04:46]*** Cut start [23:04:46]*** Partial cut [23:04:46]*** CUTSNS_PIN = 1 [23:04:46]*** CUTSNS_PIN = 0 [23:04:46]*** Brake cut motor [23:04:47]Read from MH i2c: 01 [23:04:47]MH_I2C_Read... [23:04:47]*** Stop cut motor [23:04:47]*** Cut end [23:04:47]Read from MH i2c: 01 07 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: 01 07 00 4F 8D 00 00 00 00 00 FF 0F F1 [23:04:47]process_action close_receipt done [23:04:47]requested_data is exist [23:04:47]produce_requested_data [23:04:47]requested_item fm.sn is exist - process it [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 11 00 00 [23:04:47]Write to MH i2c: E2 08 00 50 8D 80 11 00 00 00 00 00 00 57 [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 17 00 50 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 AF [23:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:04:47]wFMCommunicate OK [23:04:47]requested_item fd.num is exist - process it [23:04:47]SAM_PROTO_GetFieldsCounters [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 13 00 00 [23:04:47]Write to MH i2c: E2 08 00 51 8D 80 13 00 00 00 00 00 00 5A [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 62 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 62 00 51 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [23:04:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 57 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:47]wFMCommunicate OK [23:04:47]SAM_PROTO_GetFieldsCounters done [23:04:47]requested_item shift.num is exist - process it [23:04:47]requested_item shift.opened is exist - process it [23:04:47]req_shift_opened [23:04:47]FM_GetShiftState [23:04:47]SAM_PROTO_GetShiftState [23:04:47]wFMCommunicate request_size=4 [23:04:47]MH_SAM_APDU [23:04:47]CAPDU: 80 13 01 00 [23:04:47]Write to MH i2c: E2 08 00 52 8D 80 13 01 00 00 00 00 00 5C [23:04:47]Write i2c OK [23:04:47]MH_I2C_Read... [23:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:47]Read from MH i2c: E2 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0E 00 [23:04:47]MH_I2C_Read... [23:04:47]Read from MH i2c: E2 0E 00 52 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 65 [23:04:47]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:04:47]wFMCommunicate OK [23:04:47]SAM_PROTO_GetShiftState done [23:04:47]FM_GetShiftState done [23:04:47]req_shift_opened done [23:04:47]requested_item shift.open_date is exist - process it [23:04:47]req_shift_open_date [23:04:47]req_shift_open_date done [23:04:47]produce_requested_data done [23:04:47]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166231,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:04:47]process_action_free close_receipt [23:04:47]json_value_free [23:04:47]json_value_free done [23:04:47]process_json_proto returns [23:04:47]Send response to host [23:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166231,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:04:47]free response buf [23:04:47]execute_script done [23:04:47]execute_script returns [23:04:47]free content buf [23:04:47]Sock 5.Close socket [23:04:47]Sock 5.Thread stoped [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:13]accept exits with 6 [23:05:13]New connection [23:05:13]New thread 3066920292 created [23:05:13]Thread 3066776932 joined [23:05:13]Waiting for new connection... [23:05:13] Sock 6.Parse request [23:05:13]Sock 6.Check first char [23:05:13]Sock 6.First char is OK [23:05:13]request: POST /json_proto HTTP/1.0 [23:05:13]Method: POST [23:05:13]URL: /json_proto [23:05:13]Method is POST - this is cgi request [23:05:13]url: /json_proto [23:05:13]query_string will be loaded in cgi processing [23:05:13]execute_cgi json_proto POST (null) [23:05:13]execute_cgi path=json_proto method=POST [23:05:13]POST find Content-Length [23:05:13]Host: 172.17.53.195:8080 [23:05:13]Content-Length: 677 [23:05:13]Content-Type: application/json [23:05:13] [23:05:13]POST finish read [23:05:13]Found Content-Length = 677 [23:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:13]execute_script... [23:05: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)220806", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:05:13]POST & json_proto [23:05:13]process_json_proto [23:05:13]json parsed OK: [23:05:13]protocol is kg_v1.0 [23:05:13]action value=close_receipt [23:05:13]process_action close_receipt [23:05:13]cmd_close_receipt [23:05:13]MH_GetDate [23:05:13]Write to MH i2c: F0 00 00 53 8D CF [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: F0 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: F0 09 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: F0 09 00 53 8D 00 3D DE 16 67 21 48 4A 65 88 [23:05:13]GetLastDocTimeStamp 1729551903 [23:05:13]current date 1729551933 [23:05:13]FM_GetShiftState [23:05:13]SAM_PROTO_GetShiftState [23:05:13]wFMCommunicate request_size=4 [23:05:13]MH_SAM_APDU [23:05:13]CAPDU: 80 13 01 00 [23:05:13]Write to MH i2c: E2 08 00 54 8D 80 13 01 00 00 00 00 00 5E [23:05:13]Write i2c OK [23:05:13]MH_I2C_Read... [23:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:13]Read from MH i2c: E2 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: E2 0E 00 [23:05:13]MH_I2C_Read... [23:05:13]Read from MH i2c: E2 0E 00 54 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 67 [23:05:13]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:05:13]wFMCommunicate OK [23:05:13]SAM_PROTO_GetShiftState done [23:05:13]FM_GetShiftState done [23:05:13]opened in 1729470944 [23:05:13]opened+sec_in_day 1729557344 [23:05:13]quantity*price = 50041 [23:05:13]sum+1 = 50042 [23:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 343 21.10.2024 23:05 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166232 ФПД: 212685774565576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166232&fm=212685774565576&tin=02508201610067®Number=0000000000091764&sum=50000 [23:05:14]StoreToDocumentArchive [23:05:14]shift 535 fd 166232 [23:05:14]save to /storage/0535/doc_00166232 [23:05:14]save last doc name /storage/0535/doc_00166232 to /storage/kkm_last_doc_name [23:05:14]save OK [23:05:14]Clear old archive folders... [23:05:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:14]tlvbuf is 01891B70 [23:05:14]SAM_PROTO_ClearQueue [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 09 00 00 [23:05:14]Write to MH i2c: E2 08 00 61 8D 80 09 00 00 00 00 00 00 60 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 61 8D 00 90 00 62 [23:05:14]RAPDU: 90 00 [23:05:14]wFMCommunicate OK [23:05:14]SAM_PROTO_ClearQueue done [23:05:14]KKMCreateOFDPacket [23:05:14]OFDProtocolAddRootSTLVToBuf [23:05:14]FM_MakeSignedData [23:05:14]FM_MakeSignedData [23:05:14]SAM_PROTO_SignData [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 0D 01 02 [23:05:14]Write to MH i2c: E2 08 00 62 8D 80 0D 01 02 00 00 00 00 68 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 62 8D 00 90 00 63 [23:05:14]RAPDU: 90 00 [23:05:14]wFMCommunicate OK [23:05:14]wFMCommunicate request_size=255 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 3D DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 89 02 00 35 04 06 00 C1 [23:05:14]Write to MH i2c: E2 02 01 63 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 3D DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 89 02 00 35 04 06 00 C1 00 00 AB [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 63 8D 00 90 00 64 [23:05:14]RAPDU: 90 00 [23:05:14]wFMCommunicate OK [23:05:14]wFMCommunicate request_size=10 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 0D 02 02 05 6F C4 0A B0 C8 [23:05:14]Write to MH i2c: E2 0D 00 64 8D 80 0D 02 02 05 00 6F C4 0A B0 C8 00 00 2A [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 03 00 64 8D 00 90 00 65 [23:05:14]RAPDU: 90 00 [23:05:14]wFMCommunicate OK [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 0D 03 02 [23:05:14]Write to MH i2c: E2 08 00 65 8D 80 0D 03 02 00 00 00 00 6D [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 0B 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 0B 00 65 8D 00 A9 86 F2 37 64 CC 1A 25 90 00 35 [23:05:14]RAPDU: A9 86 F2 37 64 CC 1A 25 90 00 [23:05:14]wFMCommunicate OK [23:05:14]SAM_PROTO_SignData done [23:05:14]FM_MakeSignedData done [23:05:14]CreateOFDProtocolMessage [23:05:14]wFMCommunicate request_size=4 [23:05:14]MH_SAM_APDU [23:05:14]CAPDU: 80 11 00 00 [23:05:14]Write to MH i2c: E2 08 00 66 8D 80 11 00 00 00 00 00 00 6D [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:14]Read from MH i2c: E2 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 17 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: E2 17 00 66 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C5 [23:05:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:05:14]wFMCommunicate OK [23:05:14]CreateOFDProtocolMessage done [23:05:14]OFDSenderStorePacket 166232 [23:05:14]StoreOFDPacket docnum=166232 [23:05:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 EB 07 01 C3 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 3D DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 89 02 00 35 04 06 00 C1 6F C4 0A B0 C8 A9 86 F2 37 64 CC 1A 25 [23:05:14]CheckFolder [23:05:14]dirname=/storage/ofd_packets [23:05:14]CheckFolder done [23:05:14]ProducePacketName [23:05:14]name=ofd_packets/00166232 [23:05:14]NVStorageSaveData ofd_packets/00166232 [23:05:14]File name is /storage/ofd_packets/00166232 [23:05:14]Write 301 bytes [23:05:14]NVStorageSaveData done [23:05:14]OFDSenderStorePacket done [23:05:14]KKMCreateOFDPacket done [23:05:14]NVStorageSaveData kkm_last_timestamp [23:05:14]File name is /storage/kkm_last_timestamp [23:05:14]Write 4 bytes [23:05:14]NVStorageSaveData done [23:05:14]ExternCall_PrintAddStr [23:05:14]wPrintStart [23:05:14]Write to MH i2c: 01 00 00 67 8D F4 [23:05:14]Write i2c OK [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: 01 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: 01 07 00 [23:05:14]MH_I2C_Read... [23:05:14]Read from MH i2c: 01 07 00 67 8D 00 00 00 00 00 FF 0F 09 [23:05:14]RasterBufferAndPrint [23:05:14]line Счет N : (1)220806 [23:05:14]line ИНН: 02508201610067 [23:05:14]line Контрольно-Кассовый Чек [23:05:14]line ПРОДАЖА [23:05:14]line ТРК (МРК, ГНК) : 43 [23:05:14]line Товар: 2710124130 [23:05:14]line Аи-92-К-5 [23:05:14]line 7.480 * 66.90 [23:05:14]line = 500.41 [23:05:14]line НДС 12% НСП 1% [23:05:14]line > о реализуемом товаре [23:05:14]line ОКРУГЛЕНИЕ: -0.41 [23:05:14]line ИТОГО: 500.00 [23:05:14]line Внесено: 500.00 [23:05:14]line СДАЧА: 0.00 [23:05:14]line НСП 1% : 4.43 [23:05:14]line НДС 12% : 53.14 [23:05:14]line Наличными: 500.00 [23:05:14]line Безнал.: 0.00 [23:05:14]line Место: АЗС № 161 "Партнер Нефть" [23:05:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:05:14]line СНО: Общий режим [23:05:14]line Чек 343 21.10.2024 23:05 [23:05:14]line Смена: 535 ФФД: 1.0 [23:05:14]line ЗНМ: 0300000104 [23:05:14]line РНМ: 0000000000091764 [23:05:14]line Версия ККМ: 001 [23:05:14]line ФМ: 0000000000871759 [23:05:14]line ФД: 166232 [23:05:14]line ФПД: 212685774565576 [23:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T230533&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166232&fm=212685774565576&tin=02508201610067®Number=0000000000091764&sum=50000 [23:05:15]OFD Sender: Processing packet 166232 [packets to send 48, broken 47] [23:05:15]ProducePacketName [23:05:15]name=ofd_packets/00166232 [23:05:15]OFD Sender: To server: pG, [23:05:15]CommunicateWithHost lk.salyk.kg:30040 [23:05:15]ConnectInit lk.salyk.kg [23:05:15]written 0, free lines is 4095 [23:05:15]Connected sock=7 [23:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C6 EB 07 01 C3 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 3D DE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 58 89 02 00 35 04 06 00 C1 6F C4 0A B0 C8 A9 86 F2 37 64 CC 1A 25 [23:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5E F4 47 00 37 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 35 39 10 04 04 00 58 89 02 00 F4 03 04 00 AA 84 16 67 B6 04 01 00 00 1B 1E 6D 8A 8A EA DD 4A [23:05:15]CommunicateWithHost err = 0 [23:05:15]CheckOFDResponse [23:05:15]1017 (14) - 77093643461234 [23:05:15]1041 (16) - 0000000000871759 [23:05:15]1040 (4) - 166232 [23:05:15]1012 (4) - 21.10.2024 16:43 [23:05:15]1206 (1) - 0 [23:05:15]OFD Sender: Remove packet 166232 [23:05:15]ProducePacketName [23:05:15]name=ofd_packets/00166232 [23:05:15]NVStorageDeleteData [23:05:15]Write to MH i2c: 01 00 00 92 8D 1F [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: 01 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: 01 07 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: 01 07 00 92 8D 00 00 00 00 00 C6 0C F8 [23:05:15]RasterBufferAndPrint [23:05:15]line [23:05:15]line [23:05:15]line [23:05:15]line [23:05:15]line [23:05:15]written 0, free lines is 3276 [23:05:15]MH_Cut [23:05:15]Write to MH i2c: D1 01 00 99 8D 01 F8 [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: D1 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: D1 01 00 [23:05:15]MH_I2C_Read... [23:05:15]Read from MH i2c: D1 01 00 99 8D 00 F7 [23:05:15]Write to MH i2c: 01 00 00 9A 8D 27 [23:05:15]Write i2c OK [23:05:15]MH_I2C_Read... [23:05:15]OFD Sender: No OFD packet to send [23:05:16]*** Cut start [23:05:16]*** Partial cut [23:05:16]*** CUTSNS_PIN = 1 [23:05:16]*** CUTSNS_PIN = 0 [23:05:16]*** Brake cut motor [23:05:17]Read from MH i2c: 01 [23:05:17]MH_I2C_Read... [23:05:17]*** Stop cut motor [23:05:17]*** Cut end [23:05:17]Read from MH i2c: 01 07 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: 01 07 00 9A 8D 00 00 00 00 00 FF 0F 3C [23:05:17]process_action close_receipt done [23:05:17]requested_data is exist [23:05:17]produce_requested_data [23:05:17]requested_item fm.sn is exist - process it [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 11 00 00 [23:05:17]Write to MH i2c: E2 08 00 9B 8D 80 11 00 00 00 00 00 00 A2 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 17 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 17 00 9B 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 FA [23:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:05:17]wFMCommunicate OK [23:05:17]requested_item fd.num is exist - process it [23:05:17]SAM_PROTO_GetFieldsCounters [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 13 00 00 [23:05:17]Write to MH i2c: E2 08 00 9C 8D 80 13 00 00 00 00 00 00 A5 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 62 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 62 00 9C 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 58 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:17]wFMCommunicate OK [23:05:17]SAM_PROTO_GetFieldsCounters done [23:05:17]requested_item shift.num is exist - process it [23:05:17]requested_item shift.opened is exist - process it [23:05:17]req_shift_opened [23:05:17]FM_GetShiftState [23:05:17]SAM_PROTO_GetShiftState [23:05:17]wFMCommunicate request_size=4 [23:05:17]MH_SAM_APDU [23:05:17]CAPDU: 80 13 01 00 [23:05:17]Write to MH i2c: E2 08 00 9D 8D 80 13 01 00 00 00 00 00 A7 [23:05:17]Write i2c OK [23:05:17]MH_I2C_Read... [23:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:17]Read from MH i2c: E2 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 0E 00 [23:05:17]MH_I2C_Read... [23:05:17]Read from MH i2c: E2 0E 00 9D 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B0 [23:05:17]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:05:17]wFMCommunicate OK [23:05:17]SAM_PROTO_GetShiftState done [23:05:17]FM_GetShiftState done [23:05:17]req_shift_opened done [23:05:17]requested_item shift.open_date is exist - process it [23:05:17]req_shift_open_date [23:05:17]req_shift_open_date done [23:05:17]produce_requested_data done [23:05:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166232,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:05:17]process_action_free close_receipt [23:05:17]json_value_free [23:05:17]json_value_free done [23:05:17]process_json_proto returns [23:05:17]Send response to host [23:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166232,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:05:17]free response buf [23:05:17]execute_script done [23:05:17]execute_script returns [23:05:17]free content buf [23:05:17]Sock 6.Close socket [23:05:17]Sock 6.Thread stoped [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:44]accept exits with 5 [23:11:44]New connection [23:11:44]New thread 3066776932 created [23:11:44]Thread 3066920292 joined [23:11:44]Waiting for new connection... [23:11:44] Sock 5.Parse request [23:11:44]Sock 5.Check first char [23:11:44]Sock 5.First char is OK [23:11:44]request: POST /json_proto HTTP/1.0 [23:11:44]Method: POST [23:11:44]URL: /json_proto [23:11:44]Method is POST - this is cgi request [23:11:44]url: /json_proto [23:11:44]query_string will be loaded in cgi processing [23:11:44]execute_cgi json_proto POST (null) [23:11:44]execute_cgi path=json_proto method=POST [23:11:44]POST find Content-Length [23:11:44]Host: 172.17.53.195:8080 [23:11:44]Content-Length: 677 [23:11:44]Content-Type: application/json [23:11:44] [23:11:44]POST finish read [23:11:44]Found Content-Length = 677 [23:11:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:44]execute_script... [23:11:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220808", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:44]POST & json_proto [23:11:44]process_json_proto [23:11:44]json parsed OK: [23:11:44]protocol is kg_v1.0 [23:11:44]action value=close_receipt [23:11:44]process_action close_receipt [23:11:44]cmd_close_receipt [23:11:44]MH_GetDate [23:11:44]Write to MH i2c: F0 00 00 9E 8D 1A [23:11:44]Write i2c OK [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: F0 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: F0 09 00 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: F0 09 00 9E 8D 00 C4 DF 16 67 21 48 4A 65 5B [23:11:44]GetLastDocTimeStamp 1729551933 [23:11:44]current date 1729552324 [23:11:44]FM_GetShiftState [23:11:44]SAM_PROTO_GetShiftState [23:11:44]wFMCommunicate request_size=4 [23:11:44]MH_SAM_APDU [23:11:44]CAPDU: 80 13 01 00 [23:11:44]Write to MH i2c: E2 08 00 9F 8D 80 13 01 00 00 00 00 00 A9 [23:11:44]Write i2c OK [23:11:44]MH_I2C_Read... [23:11:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:44]Read from MH i2c: E2 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 0E 00 [23:11:44]MH_I2C_Read... [23:11:44]Read from MH i2c: E2 0E 00 9F 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 B2 [23:11:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:11:44]wFMCommunicate OK [23:11:44]SAM_PROTO_GetShiftState done [23:11:44]FM_GetShiftState done [23:11:44]opened in 1729470944 [23:11:44]opened+sec_in_day 1729557344 [23:11:44]quantity*price = 30038 [23:11:44]sum+1 = 30039 [23:11:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 344 21.10.2024 23:12 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166233 ФПД: 205042819450302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231204&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166233&fm=205042819450302&tin=02508201610067®Number=0000000000091764&sum=30000 [23:11:45]StoreToDocumentArchive [23:11:45]shift 535 fd 166233 [23:11:45]save to /storage/0535/doc_00166233 [23:11:45]save last doc name /storage/0535/doc_00166233 to /storage/kkm_last_doc_name [23:11:45]save OK [23:11:45]Clear old archive folders... [23:11:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:11:45]tlvbuf is 0157EA60 [23:11:45]SAM_PROTO_ClearQueue [23:11:45]wFMCommunicate request_size=4 [23:11:45]MH_SAM_APDU [23:11:45]CAPDU: 80 09 00 00 [23:11:45]Write to MH i2c: E2 08 00 AC 8D 80 09 00 00 00 00 00 00 AB [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:45]Read from MH i2c: E2 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 AC 8D 00 90 00 AD [23:11:45]RAPDU: 90 00 [23:11:45]wFMCommunicate OK [23:11:45]SAM_PROTO_ClearQueue done [23:11:45]KKMCreateOFDPacket [23:11:45]OFDProtocolAddRootSTLVToBuf [23:11:45]FM_MakeSignedData [23:11:45]FM_MakeSignedData [23:11:45]SAM_PROTO_SignData [23:11:45]wFMCommunicate request_size=4 [23:11:45]MH_SAM_APDU [23:11:45]CAPDU: 80 0D 01 02 [23:11:45]Write to MH i2c: E2 08 00 AD 8D 80 0D 01 02 00 00 00 00 B3 [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:45]Read from MH i2c: E2 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 AD 8D 00 90 00 AE [23:11:45]RAPDU: 90 00 [23:11:45]wFMCommunicate OK [23:11:45]wFMCommunicate request_size=255 [23:11:45]MH_SAM_APDU [23:11:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C4 DF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 89 02 00 35 04 06 00 BA [23:11:45]Write to MH i2c: E2 02 01 AE 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C4 DF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 89 02 00 35 04 06 00 BA 00 00 6D [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:45]Read from MH i2c: E2 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 AE 8D 00 90 00 AF [23:11:45]RAPDU: 90 00 [23:11:45]wFMCommunicate OK [23:11:45]wFMCommunicate request_size=10 [23:11:45]MH_SAM_APDU [23:11:45]CAPDU: 80 0D 02 02 05 7C 40 6A C5 BE [23:11:45]Write to MH i2c: E2 0D 00 AF 8D 80 0D 02 02 05 00 7C 40 6A C5 BE 00 00 69 [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:45]Read from MH i2c: E2 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 03 00 AF 8D 00 90 00 B0 [23:11:45]RAPDU: 90 00 [23:11:45]wFMCommunicate OK [23:11:45]wFMCommunicate request_size=4 [23:11:45]MH_SAM_APDU [23:11:45]CAPDU: 80 0D 03 02 [23:11:45]Write to MH i2c: E2 08 00 B0 8D 80 0D 03 02 00 00 00 00 B8 [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:45]Read from MH i2c: E2 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 0B 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 0B 00 B0 8D 00 89 59 37 38 FE 87 9E C8 90 00 F5 [23:11:45]RAPDU: 89 59 37 38 FE 87 9E C8 90 00 [23:11:45]wFMCommunicate OK [23:11:45]SAM_PROTO_SignData done [23:11:45]FM_MakeSignedData done [23:11:45]CreateOFDProtocolMessage [23:11:45]wFMCommunicate request_size=4 [23:11:45]MH_SAM_APDU [23:11:45]CAPDU: 80 11 00 00 [23:11:45]Write to MH i2c: E2 08 00 B1 8D 80 11 00 00 00 00 00 00 B8 [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:45]Read from MH i2c: E2 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 17 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: E2 17 00 B1 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 10 [23:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:45]wFMCommunicate OK [23:11:45]CreateOFDProtocolMessage done [23:11:45]OFDSenderStorePacket 166233 [23:11:45]StoreOFDPacket docnum=166233 [23:11:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 9B 07 01 88 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C4 DF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 89 02 00 35 04 06 00 BA 7C 40 6A C5 BE 89 59 37 38 FE 87 9E C8 [23:11:45]CheckFolder [23:11:45]dirname=/storage/ofd_packets [23:11:45]CheckFolder done [23:11:45]ProducePacketName [23:11:45]name=ofd_packets/00166233 [23:11:45]NVStorageSaveData ofd_packets/00166233 [23:11:45]File name is /storage/ofd_packets/00166233 [23:11:45]Write 301 bytes [23:11:45]NVStorageSaveData done [23:11:45]OFDSenderStorePacket done [23:11:45]KKMCreateOFDPacket done [23:11:45]NVStorageSaveData kkm_last_timestamp [23:11:45]File name is /storage/kkm_last_timestamp [23:11:45]Write 4 bytes [23:11:45]NVStorageSaveData done [23:11:45]ExternCall_PrintAddStr [23:11:45]wPrintStart [23:11:45]Write to MH i2c: 01 00 00 B2 8D 3F [23:11:45]Write i2c OK [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: 01 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: 01 07 00 [23:11:45]MH_I2C_Read... [23:11:45]Read from MH i2c: 01 07 00 B2 8D 00 00 00 00 00 FF 0F 54 [23:11:45]RasterBufferAndPrint [23:11:45]line Счет N : (1)220808 [23:11:45]line ИНН: 02508201610067 [23:11:45]line Контрольно-Кассовый Чек [23:11:45]line ПРОДАЖА [23:11:45]line ТРК (МРК, ГНК) : 33 [23:11:45]line Товар: 2710124130 [23:11:45]line Аи-92-К-5 [23:11:45]line 4.490 * 66.90 [23:11:45]line = 300.38 [23:11:45]line НДС 12% НСП 1% [23:11:45]line > о реализуемом товаре [23:11:45]line ОКРУГЛЕНИЕ: -0.38 [23:11:45]line ИТОГО: 300.00 [23:11:45]line Внесено: 300.00 [23:11:45]line СДАЧА: 0.00 [23:11:45]line НСП 1% : 2.66 [23:11:45]line НДС 12% : 31.90 [23:11:45]line Наличными: 300.00 [23:11:45]line Безнал.: 0.00 [23:11:45]line Место: АЗС № 161 "Партнер Нефть" [23:11:45]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:11:45]line СНО: Общий режим [23:11:45]line Чек 344 21.10.2024 23:12 [23:11:45]line Смена: 535 ФФД: 1.0 [23:11:45]line ЗНМ: 0300000104 [23:11:45]line РНМ: 0000000000091764 [23:11:45]line Версия ККМ: 001 [23:11:45]line ФМ: 0000000000871759 [23:11:45]line ФД: 166233 [23:11:45]line ФПД: 205042819450302 [23:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231204&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166233&fm=205042819450302&tin=02508201610067®Number=0000000000091764&sum=30000 [23:11:46]OFD Sender: Processing packet 166233 [packets to send 48, broken 47] [23:11:46]ProducePacketName [23:11:46]name=ofd_packets/00166233 [23:11:46]OFD Sender: To server: pG, [23:11:46]CommunicateWithHost lk.salyk.kg:30040 [23:11:46]ConnectInit lk.salyk.kg [23:11:46]written 0, free lines is 4095 [23:11:46]Connected sock=7 [23:11:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 86 9B 07 01 88 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 C4 DF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 89 02 00 35 04 06 00 BA 7C 40 6A C5 BE 89 59 37 38 FE 87 9E C8 [23:11:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 A0 27 47 00 24 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 59 89 02 00 F4 03 04 00 31 86 16 67 B6 04 01 00 00 AA 9C AA DE BE ED 64 DE [23:11:46]CommunicateWithHost err = 0 [23:11:46]CheckOFDResponse [23:11:46]1017 (14) - 77093643461234 [23:11:46]1041 (16) - 0000000000871759 [23:11:46]1040 (4) - 166233 [23:11:46]1012 (4) - 21.10.2024 16:49 [23:11:46]1206 (1) - 0 [23:11:46]OFD Sender: Remove packet 166233 [23:11:46]ProducePacketName [23:11:46]name=ofd_packets/00166233 [23:11:46]NVStorageDeleteData [23:11:46]Write to MH i2c: 01 00 00 DD 8D 6A [23:11:46]Write i2c OK [23:11:46]MH_I2C_Read... [23:11:46]Read from MH i2c: 01 [23:11:46]MH_I2C_Read... [23:11:46]Read from MH i2c: 01 07 00 [23:11:46]MH_I2C_Read... [23:11:46]Read from MH i2c: 01 07 00 DD 8D 00 00 00 00 00 B9 0C 36 [23:11:46]RasterBufferAndPrint [23:11:46]line [23:11:46]line [23:11:46]line [23:11:46]line [23:11:46]line [23:11:46]written 0, free lines is 3264 [23:11:46]MH_Cut [23:11:46]Write to MH i2c: D1 01 00 E4 8D 01 43 [23:11:46]Write i2c OK [23:11:46]MH_I2C_Read... [23:11:46]Read from MH i2c: D1 [23:11:46]MH_I2C_Read... [23:11:46]Read from MH i2c: D1 01 00 [23:11:46]MH_I2C_Read... [23:11:46]Read from MH i2c: D1 01 00 E4 8D 00 42 [23:11:46]Write to MH i2c: 01 00 00 E5 8D 72 [23:11:46]Write i2c OK [23:11:46]MH_I2C_Read... [23:11:46]OFD Sender: No OFD packet to send [23:11:47]*** Cut start [23:11:47]*** Partial cut [23:11:47]*** CUTSNS_PIN = 1 [23:11:47]*** CUTSNS_PIN = 0 [23:11:47]*** Brake cut motor [23:11:48]Read from MH i2c: 01 [23:11:48]MH_I2C_Read... [23:11:48]*** Stop cut motor [23:11:48]*** Cut end [23:11:48]Read from MH i2c: 01 07 00 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: 01 07 00 E5 8D 00 00 00 00 00 FF 0F 87 [23:11:48]process_action close_receipt done [23:11:48]requested_data is exist [23:11:48]produce_requested_data [23:11:48]requested_item fm.sn is exist - process it [23:11:48]wFMCommunicate request_size=4 [23:11:48]MH_SAM_APDU [23:11:48]CAPDU: 80 11 00 00 [23:11:48]Write to MH i2c: E2 08 00 E6 8D 80 11 00 00 00 00 00 00 ED [23:11:48]Write i2c OK [23:11:48]MH_I2C_Read... [23:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:48]Read from MH i2c: E2 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: E2 17 00 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: E2 17 00 E6 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 45 [23:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:11:48]wFMCommunicate OK [23:11:48]requested_item fd.num is exist - process it [23:11:48]SAM_PROTO_GetFieldsCounters [23:11:48]wFMCommunicate request_size=4 [23:11:48]MH_SAM_APDU [23:11:48]CAPDU: 80 13 00 00 [23:11:48]Write to MH i2c: E2 08 00 E7 8D 80 13 00 00 00 00 00 00 F0 [23:11:48]Write i2c OK [23:11:48]MH_I2C_Read... [23:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:48]Read from MH i2c: E2 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: E2 62 00 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: E2 62 00 E7 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [23:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 59 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:11:48]wFMCommunicate OK [23:11:48]SAM_PROTO_GetFieldsCounters done [23:11:48]requested_item shift.num is exist - process it [23:11:48]requested_item shift.opened is exist - process it [23:11:48]req_shift_opened [23:11:48]FM_GetShiftState [23:11:48]SAM_PROTO_GetShiftState [23:11:48]wFMCommunicate request_size=4 [23:11:48]MH_SAM_APDU [23:11:48]CAPDU: 80 13 01 00 [23:11:48]Write to MH i2c: E2 08 00 E8 8D 80 13 01 00 00 00 00 00 F2 [23:11:48]Write i2c OK [23:11:48]MH_I2C_Read... [23:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:48]Read from MH i2c: E2 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: E2 0E 00 [23:11:48]MH_I2C_Read... [23:11:48]Read from MH i2c: E2 0E 00 E8 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FB [23:11:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:11:48]wFMCommunicate OK [23:11:48]SAM_PROTO_GetShiftState done [23:11:48]FM_GetShiftState done [23:11:48]req_shift_opened done [23:11:48]requested_item shift.open_date is exist - process it [23:11:48]req_shift_open_date [23:11:48]req_shift_open_date done [23:11:48]produce_requested_data done [23:11:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166233,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:11:48]process_action_free close_receipt [23:11:48]json_value_free [23:11:48]json_value_free done [23:11:48]process_json_proto returns [23:11:48]Send response to host [23:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166233,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:11:48]free response buf [23:11:48]execute_script done [23:11:48]execute_script returns [23:11:48]free content buf [23:11:48]Sock 5.Close socket [23:11:48]Sock 5.Thread stoped [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:19]accept exits with 6 [23:13:19]New connection [23:13:19]New thread 3066920292 created [23:13:19]Thread 3066776932 joined [23:13:19]Waiting for new connection... [23:13:19] Sock 6.Parse request [23:13:19]Sock 6.Check first char [23:13:19]Sock 6.First char is OK [23:13:19]request: POST /json_proto HTTP/1.0 [23:13:19]Method: POST [23:13:19]URL: /json_proto [23:13:19]Method is POST - this is cgi request [23:13:19]url: /json_proto [23:13:19]query_string will be loaded in cgi processing [23:13:19]execute_cgi json_proto POST (null) [23:13:19]execute_cgi path=json_proto method=POST [23:13:19]POST find Content-Length [23:13:19]Host: 172.17.53.195:8080 [23:13:19]Content-Length: 679 [23:13:19]Content-Type: application/json [23:13:19] [23:13:19]POST finish read [23:13:19]Found Content-Length = 679 [23:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:19]execute_script... [23: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)220807", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 98.430, "sum" : 7500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7500.00, "total" : 7500.00, "payments": [ { "type": 0, "sum" : 7500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:13:19]POST & json_proto [23:13:19]process_json_proto [23:13:19]json parsed OK: [23:13:19]protocol is kg_v1.0 [23:13:19]action value=close_receipt [23:13:19]process_action close_receipt [23:13:19]cmd_close_receipt [23:13:19]MH_GetDate [23:13:19]Write to MH i2c: F0 00 00 E9 8D 65 [23:13:19]Write i2c OK [23:13:19]MH_I2C_Read... [23:13:19]Read from MH i2c: F0 [23:13:19]MH_I2C_Read... [23:13:19]Read from MH i2c: F0 09 00 [23:13:19]MH_I2C_Read... [23:13:19]Read from MH i2c: F0 09 00 E9 8D 00 24 E0 16 67 21 48 4A 65 07 [23:13:19]GetLastDocTimeStamp 1729552324 [23:13:19]current date 1729552420 [23:13:19]FM_GetShiftState [23:13:19]SAM_PROTO_GetShiftState [23:13:19]wFMCommunicate request_size=4 [23:13:19]MH_SAM_APDU [23:13:19]CAPDU: 80 13 01 00 [23:13:19]Write to MH i2c: E2 08 00 EA 8D 80 13 01 00 00 00 00 00 F4 [23:13:19]Write i2c OK [23:13:19]MH_I2C_Read... [23:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:19]Read from MH i2c: E2 [23:13:19]MH_I2C_Read... [23:13:19]Read from MH i2c: E2 0E 00 [23:13:19]MH_I2C_Read... [23:13:19]Read from MH i2c: E2 0E 00 EA 8D 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 FD [23:13:19]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:13:19]wFMCommunicate OK [23:13:19]SAM_PROTO_GetShiftState done [23:13:19]FM_GetShiftState done [23:13:19]opened in 1729470944 [23:13:19]opened+sec_in_day 1729557344 [23:13:19]quantity*price = 750036 [23:13:19]sum+1 = 750038 [23:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 7500.00 Внесено: 7500.00 СДАЧА: 0.00 НСП 1% : 66.37 НДС 12% : 796.50 Наличными: 7500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 345 21.10.2024 23:13 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166234 ФПД: 207588204179458 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231340&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166234&fm=207588204179458&tin=02508201610067®Number=0000000000091764&sum=750000 [23:13:20]StoreToDocumentArchive [23:13:20]shift 535 fd 166234 [23:13:20]save to /storage/0535/doc_00166234 [23:13:20]save last doc name /storage/0535/doc_00166234 to /storage/kkm_last_doc_name [23:13:20]save OK [23:13:20]Clear old archive folders... [23:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:13:20]tlvbuf is 01A91D40 [23:13:20]SAM_PROTO_ClearQueue [23:13:20]wFMCommunicate request_size=4 [23:13:20]MH_SAM_APDU [23:13:20]CAPDU: 80 09 00 00 [23:13:20]Write to MH i2c: E2 08 00 F7 8D 80 09 00 00 00 00 00 00 F6 [23:13:20]Write i2c OK [23:13:20]MH_I2C_Read... [23:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:13:20]Read from MH i2c: E2 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: E2 03 00 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: E2 03 00 F7 8D 00 90 00 F8 [23:13:20]RAPDU: 90 00 [23:13:20]wFMCommunicate OK [23:13:20]SAM_PROTO_ClearQueue done [23:13:20]KKMCreateOFDPacket [23:13:20]OFDProtocolAddRootSTLVToBuf [23:13:20]FM_MakeSignedData [23:13:20]FM_MakeSignedData [23:13:20]SAM_PROTO_SignData [23:13:20]wFMCommunicate request_size=4 [23:13:20]MH_SAM_APDU [23:13:20]CAPDU: 80 0D 01 02 [23:13:20]Write to MH i2c: E2 08 00 F8 8D 80 0D 01 02 00 00 00 00 FE [23:13:20]Write i2c OK [23:13:20]MH_I2C_Read... [23:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:13:20]Read from MH i2c: E2 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: E2 03 00 [23:13:20]MH_I2C_Read... [23:13:20]Read from MH i2c: E2 03 00 F8 8D 00 90 00 F9 [23:13:20]RAPDU: 90 00 [23:13:20]wFMCommunicate OK [23:13:20]wFMCommunicate request_size=255 [23:13:20]MH_SAM_APDU [23:13:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 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 24 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 89 02 00 35 04 06 00 BC CC E5 2B [23:13:20]Write to MH i2c: E2 02 01 F9 8D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 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 24 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 89 02 00 35 04 06 00 BC CC E5 2B 00 00 BC [23:13:20]Write i2c OK [23:13:20]MH_I2C_Read... [23:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:21]Read from MH i2c: E2 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 F9 8D 00 90 00 FA [23:13:21]RAPDU: 90 00 [23:13:21]wFMCommunicate OK [23:13:21]wFMCommunicate request_size=7 [23:13:21]MH_SAM_APDU [23:13:21]CAPDU: 80 0D 02 02 02 70 02 [23:13:21]Write to MH i2c: E2 0A 00 FA 8D 80 0D 02 02 02 00 70 02 00 00 77 [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:13:21]Read from MH i2c: E2 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 03 00 FA 8D 00 90 00 FB [23:13:21]RAPDU: 90 00 [23:13:21]wFMCommunicate OK [23:13:21]wFMCommunicate request_size=4 [23:13:21]MH_SAM_APDU [23:13:21]CAPDU: 80 0D 03 02 [23:13:21]Write to MH i2c: E2 08 00 FB 8D 80 0D 03 02 00 00 00 00 03 [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:13:21]Read from MH i2c: E2 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 0B 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 0B 00 FB 8D 00 70 51 BB 3A C6 CE A1 56 90 00 45 [23:13:21]RAPDU: 70 51 BB 3A C6 CE A1 56 90 00 [23:13:21]wFMCommunicate OK [23:13:21]SAM_PROTO_SignData done [23:13:21]FM_MakeSignedData done [23:13:21]CreateOFDProtocolMessage [23:13:21]wFMCommunicate request_size=4 [23:13:21]MH_SAM_APDU [23:13:21]CAPDU: 80 11 00 00 [23:13:21]Write to MH i2c: E2 08 00 FC 8D 80 11 00 00 00 00 00 00 03 [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:21]Read from MH i2c: E2 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 17 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: E2 17 00 FC 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5B [23:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:13:21]wFMCommunicate OK [23:13:21]CreateOFDProtocolMessage done [23:13:21]OFDSenderStorePacket 166234 [23:13:21]StoreOFDPacket docnum=166234 [23:13:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 44 05 04 01 1C 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 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 24 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 89 02 00 35 04 06 00 BC CC E5 2B 70 02 70 51 BB 3A C6 CE A1 56 [23:13:21]CheckFolder [23:13:21]dirname=/storage/ofd_packets [23:13:21]CheckFolder done [23:13:21]ProducePacketName [23:13:21]name=ofd_packets/00166234 [23:13:21]NVStorageSaveData ofd_packets/00166234 [23:13:21]File name is /storage/ofd_packets/00166234 [23:13:21]Write 298 bytes [23:13:21]NVStorageSaveData done [23:13:21]OFDSenderStorePacket done [23:13:21]KKMCreateOFDPacket done [23:13:21]NVStorageSaveData kkm_last_timestamp [23:13:21]File name is /storage/kkm_last_timestamp [23:13:21]Write 4 bytes [23:13:21]NVStorageSaveData done [23:13:21]ExternCall_PrintAddStr [23:13:21]wPrintStart [23:13:21]Write to MH i2c: 01 00 00 FD 8D 8A [23:13:21]Write i2c OK [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: 01 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: 01 07 00 [23:13:21]MH_I2C_Read... [23:13:21]Read from MH i2c: 01 07 00 FD 8D 00 00 00 00 00 FF 0F 9F [23:13:21]RasterBufferAndPrint [23:13:21]line Счет N : (1)220807 [23:13:21]line ИНН: 02508201610067 [23:13:21]line Контрольно-Кассовый Чек [23:13:21]line ПРОДАЖА [23:13:21]line ТРК (МРК, ГНК) : 11 [23:13:21]line Товар: 2710194210 [23:13:21]line ДТ-К-5 [23:13:21]line 98.430 * 76.20 [23:13:21]line = 7500.37 [23:13:21]line НДС 12% НСП 1% [23:13:21]line > о реализуемом товаре [23:13:21]line ОКРУГЛЕНИЕ: -0.37 [23:13:21]line ИТОГО: 7500.00 [23:13:21]line Внесено: 7500.00 [23:13:21]line СДАЧА: 0.00 [23:13:21]line НСП 1% : 66.37 [23:13:21]line НДС 12% : 796.50 [23:13:21]line Наличными: 7500.00 [23:13:21]line Безнал.: 0.00 [23:13:21]line Место: АЗС № 161 "Партнер Нефть" [23:13:21]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:13:21]line СНО: Общий режим [23:13:21]line Чек 345 21.10.2024 23:13 [23:13:21]line Смена: 535 ФФД: 1.0 [23:13:21]line ЗНМ: 0300000104 [23:13:21]line РНМ: 0000000000091764 [23:13:21]line Версия ККМ: 001 [23:13:21]line ФМ: 0000000000871759 [23:13:21]line ФД: 166234 [23:13:21]line ФПД: 207588204179458 [23:13:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231340&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166234&fm=207588204179458&tin=02508201610067®Number=0000000000091764&sum=750000 [23:13:21]OFD Sender: Processing packet 166234 [packets to send 48, broken 47] [23:13:21]ProducePacketName [23:13:21]name=ofd_packets/00166234 [23:13:21]OFD Sender: To server: pG, [23:13:21]CommunicateWithHost lk.salyk.kg:30040 [23:13:21]ConnectInit lk.salyk.kg [23:13:21]written 0, free lines is 4095 [23:13:21]Connected sock=5 [23: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 35 39 0C 01 00 00 44 05 04 01 1C 9B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 80 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D5 71 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 71 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 37 01 00 00 00 07 04 06 00 B0 71 0B 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 24 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 89 02 00 35 04 06 00 BC CC E5 2B 70 02 70 51 BB 3A C6 CE A1 56 [23: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 35 39 4F 00 00 00 3B 97 47 00 2F FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5A 89 02 00 F4 03 04 00 91 86 16 67 B6 04 01 00 00 CB 6F E6 46 C0 05 3E 88 [23:13:21]CommunicateWithHost err = 0 [23:13:21]CheckOFDResponse [23:13:21]1017 (14) - 77093643461234 [23:13:21]1041 (16) - 0000000000871759 [23:13:21]1040 (4) - 166234 [23:13:21]1012 (4) - 21.10.2024 16:51 [23:13:21]1206 (1) - 0 [23:13:21]OFD Sender: Remove packet 166234 [23:13:21]ProducePacketName [23:13:21]name=ofd_packets/00166234 [23:13:21]NVStorageDeleteData [23:13:22]Write to MH i2c: 01 00 00 28 8E B6 [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 07 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: 01 07 00 28 8E 00 00 00 00 00 B5 0C 7E [23:13:22]RasterBufferAndPrint [23:13:22]line [23:13:22]line [23:13:22]line [23:13:22]line [23:13:22]line [23:13:22]written 0, free lines is 3260 [23:13:22]MH_Cut [23:13:22]Write to MH i2c: D1 01 00 2F 8E 01 8F [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: D1 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: D1 01 00 [23:13:22]MH_I2C_Read... [23:13:22]Read from MH i2c: D1 01 00 2F 8E 00 8E [23:13:22]Write to MH i2c: 01 00 00 30 8E BE [23:13:22]Write i2c OK [23:13:22]MH_I2C_Read... [23:13:22]OFD Sender: No OFD packet to send [23:13:22]*** Cut start [23:13:22]*** Partial cut [23:13:22]*** CUTSNS_PIN = 1 [23:13:23]*** CUTSNS_PIN = 0 [23:13:23]*** Brake cut motor [23:13:23]Read from MH i2c: 01 [23:13:23]MH_I2C_Read... [23:13:23]*** Stop cut motor [23:13:23]*** Cut end [23:13:23]Read from MH i2c: 01 07 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: 01 07 00 30 8E 00 00 00 00 00 FF 0F D3 [23:13:23]process_action close_receipt done [23:13:23]requested_data is exist [23:13:23]produce_requested_data [23:13:23]requested_item fm.sn is exist - process it [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 11 00 00 [23:13:23]Write to MH i2c: E2 08 00 31 8E 80 11 00 00 00 00 00 00 39 [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 17 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 17 00 31 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 91 [23:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:13:23]wFMCommunicate OK [23:13:23]requested_item fd.num is exist - process it [23:13:23]SAM_PROTO_GetFieldsCounters [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 13 00 00 [23:13:23]Write to MH i2c: E2 08 00 32 8E 80 13 00 00 00 00 00 00 3C [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 62 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 62 00 32 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [23: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5A 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:13:23]wFMCommunicate OK [23:13:23]SAM_PROTO_GetFieldsCounters done [23:13:23]requested_item shift.num is exist - process it [23:13:23]requested_item shift.opened is exist - process it [23:13:23]req_shift_opened [23:13:23]FM_GetShiftState [23:13:23]SAM_PROTO_GetShiftState [23:13:23]wFMCommunicate request_size=4 [23:13:23]MH_SAM_APDU [23:13:23]CAPDU: 80 13 01 00 [23:13:23]Write to MH i2c: E2 08 00 33 8E 80 13 01 00 00 00 00 00 3E [23:13:23]Write i2c OK [23:13:23]MH_I2C_Read... [23:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:13:23]Read from MH i2c: E2 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 0E 00 [23:13:23]MH_I2C_Read... [23:13:23]Read from MH i2c: E2 0E 00 33 8E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 47 [23:13:23]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:13:23]wFMCommunicate OK [23:13:23]SAM_PROTO_GetShiftState done [23:13:23]FM_GetShiftState done [23:13:23]req_shift_opened done [23:13:23]requested_item shift.open_date is exist - process it [23:13:23]req_shift_open_date [23:13:23]req_shift_open_date done [23:13:23]produce_requested_data done [23:13:23]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166234,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:13:23]process_action_free close_receipt [23:13:23]json_value_free [23:13:23]json_value_free done [23:13:23]process_json_proto returns [23:13:23]Send response to host [23:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166234,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:13:23]free response buf [23:13:23]execute_script done [23:13:23]execute_script returns [23:13:23]free content buf [23:13:23]Sock 6.Close socket [23:13:23]Sock 6.Thread stoped [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]accept exits with 7 [23:16:02]New connection [23:16:02]New thread 3066776932 created [23:16:02]Thread 3066920292 joined [23:16:02]Waiting for new connection... [23:16:02] Sock 7.Parse request [23:16:02]Sock 7.Check first char [23:16:02]Sock 7.First char is OK [23:16:02]request: POST /json_proto HTTP/1.0 [23:16:02]Method: POST [23:16:02]URL: /json_proto [23:16:02]Method is POST - this is cgi request [23:16:02]url: /json_proto [23:16:02]query_string will be loaded in cgi processing [23:16:02]execute_cgi json_proto POST (null) [23:16:02]execute_cgi path=json_proto method=POST [23:16:02]POST find Content-Length [23:16:02]Host: 172.17.53.195:8080 [23:16:02]Content-Length: 679 [23:16:02]Content-Type: application/json [23:16:02] [23:16:02]POST finish read [23:16:02]Found Content-Length = 679 [23:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:02]execute_script... [23:16: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)220809", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.240, "sum" : 1999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:02]POST & json_proto [23:16:02]process_json_proto [23:16:02]json parsed OK: [23:16:02]protocol is kg_v1.0 [23:16:02]action value=close_receipt [23:16:02]process_action close_receipt [23:16:02]cmd_close_receipt [23:16:02]MH_GetDate [23:16:02]Write to MH i2c: F0 00 00 34 8E B1 [23:16:02]Write i2c OK [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: F0 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: F0 09 00 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: F0 09 00 34 8E 00 C7 E0 16 67 21 48 4A 65 F6 [23:16:02]GetLastDocTimeStamp 1729552420 [23:16:02]current date 1729552583 [23:16:02]FM_GetShiftState [23:16:02]SAM_PROTO_GetShiftState [23:16:02]wFMCommunicate request_size=4 [23:16:02]MH_SAM_APDU [23:16:02]CAPDU: 80 13 01 00 [23:16:02]Write to MH i2c: E2 08 00 35 8E 80 13 01 00 00 00 00 00 40 [23:16:02]Write i2c OK [23:16:02]MH_I2C_Read... [23:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:02]Read from MH i2c: E2 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 0E 00 [23:16:02]MH_I2C_Read... [23:16:02]Read from MH i2c: E2 0E 00 35 8E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 49 [23:16:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:16:02]wFMCommunicate OK [23:16:02]SAM_PROTO_GetShiftState done [23:16:02]FM_GetShiftState done [23:16:02]opened in 1729470944 [23:16:02]opened+sec_in_day 1729557344 [23:16:02]quantity*price = 199948 [23:16:02]sum+1 = 199950 [23:16:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 346 21.10.2024 23:16 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166235 ФПД: 167931561772299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231623&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166235&fm=167931561772299&tin=02508201610067®Number=0000000000091764&sum=199900 [23:16:03]StoreToDocumentArchive [23:16:03]shift 535 fd 166235 [23:16:03]save to /storage/0535/doc_00166235 [23:16:03]save last doc name /storage/0535/doc_00166235 to /storage/kkm_last_doc_name [23:16:03]save OK [23:16:03]Clear old archive folders... [23:16:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:16:03]tlvbuf is 01891F70 [23:16:03]SAM_PROTO_ClearQueue [23:16:03]wFMCommunicate request_size=4 [23:16:03]MH_SAM_APDU [23:16:03]CAPDU: 80 09 00 00 [23:16:03]Write to MH i2c: E2 08 00 42 8E 80 09 00 00 00 00 00 00 42 [23:16:03]Write i2c OK [23:16:03]MH_I2C_Read... [23:16:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:16:03]Read from MH i2c: E2 [23:16:03]MH_I2C_Read... [23:16:03]Read from MH i2c: E2 03 00 [23:16:03]MH_I2C_Read... [23:16:03]Read from MH i2c: E2 03 00 42 8E 00 90 00 44 [23:16:03]RAPDU: 90 00 [23:16:03]wFMCommunicate OK [23:16:03]SAM_PROTO_ClearQueue done [23:16:03]KKMCreateOFDPacket [23:16:03]OFDProtocolAddRootSTLVToBuf [23:16:03]FM_MakeSignedData [23:16:03]FM_MakeSignedData [23:16:03]SAM_PROTO_SignData [23:16:03]wFMCommunicate request_size=4 [23:16:03]MH_SAM_APDU [23:16:03]CAPDU: 80 0D 01 02 [23:16:03]Write to MH i2c: E2 08 00 43 8E 80 0D 01 02 00 00 00 00 4A [23:16:03]Write i2c OK [23:16:03]MH_I2C_Read... [23:16:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:16:03]Read from MH i2c: E2 [23:16:03]MH_I2C_Read... [23:16:03]Read from MH i2c: E2 03 00 [23:16:03]MH_I2C_Read... [23:16:03]Read from MH i2c: E2 03 00 43 8E 00 90 00 45 [23:16:03]RAPDU: 90 00 [23:16:03]wFMCommunicate OK [23:16:03]wFMCommunicate request_size=255 [23:16:03]MH_SAM_APDU [23:16:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C7 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 89 02 00 35 04 06 00 98 BB 9D 16 [23:16:03]Write to MH i2c: E2 02 01 44 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C7 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 89 02 00 35 04 06 00 98 BB 9D 16 00 00 1E [23:16:03]Write i2c OK [23:16:03]MH_I2C_Read... [23:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:04]Read from MH i2c: E2 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 03 00 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 03 00 44 8E 00 90 00 46 [23:16:04]RAPDU: 90 00 [23:16:04]wFMCommunicate OK [23:16:04]wFMCommunicate request_size=7 [23:16:04]MH_SAM_APDU [23:16:04]CAPDU: 80 0D 02 02 02 05 0B [23:16:04]Write to MH i2c: E2 0A 00 45 8E 80 0D 02 02 02 00 05 0B 00 00 61 [23:16:04]Write i2c OK [23:16:04]MH_I2C_Read... [23:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:16:04]Read from MH i2c: E2 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 03 00 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 03 00 45 8E 00 90 00 47 [23:16:04]RAPDU: 90 00 [23:16:04]wFMCommunicate OK [23:16:04]wFMCommunicate request_size=4 [23:16:04]MH_SAM_APDU [23:16:04]CAPDU: 80 0D 03 02 [23:16:04]Write to MH i2c: E2 08 00 46 8E 80 0D 03 02 00 00 00 00 4F [23:16:04]Write i2c OK [23:16:04]MH_I2C_Read... [23:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:16:04]Read from MH i2c: E2 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 0B 00 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 0B 00 46 8E 00 55 C9 88 83 BF CF 2F 34 90 00 6A [23:16:04]RAPDU: 55 C9 88 83 BF CF 2F 34 90 00 [23:16:04]wFMCommunicate OK [23:16:04]SAM_PROTO_SignData done [23:16:04]FM_MakeSignedData done [23:16:04]CreateOFDProtocolMessage [23:16:04]wFMCommunicate request_size=4 [23:16:04]MH_SAM_APDU [23:16:04]CAPDU: 80 11 00 00 [23:16:04]Write to MH i2c: E2 08 00 47 8E 80 11 00 00 00 00 00 00 4F [23:16:04]Write i2c OK [23:16:04]MH_I2C_Read... [23:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:04]Read from MH i2c: E2 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 17 00 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: E2 17 00 47 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A7 [23:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:16:04]wFMCommunicate OK [23:16:04]CreateOFDProtocolMessage done [23:16:04]OFDSenderStorePacket 166235 [23:16:04]StoreOFDPacket docnum=166235 [23:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 52 16 04 01 92 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C7 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 89 02 00 35 04 06 00 98 BB 9D 16 05 0B 55 C9 88 83 BF CF 2F 34 [23:16:04]CheckFolder [23:16:04]dirname=/storage/ofd_packets [23:16:04]CheckFolder done [23:16:04]ProducePacketName [23:16:04]name=ofd_packets/00166235 [23:16:04]NVStorageSaveData ofd_packets/00166235 [23:16:04]File name is /storage/ofd_packets/00166235 [23:16:04]Write 298 bytes [23:16:04]NVStorageSaveData done [23:16:04]OFDSenderStorePacket done [23:16:04]KKMCreateOFDPacket done [23:16:04]NVStorageSaveData kkm_last_timestamp [23:16:04]File name is /storage/kkm_last_timestamp [23:16:04]Write 4 bytes [23:16:04]NVStorageSaveData done [23:16:04]ExternCall_PrintAddStr [23:16:04]wPrintStart [23:16:04]Write to MH i2c: 01 00 00 48 8E D6 [23:16:04]Write i2c OK [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: 01 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: 01 07 00 [23:16:04]MH_I2C_Read... [23:16:04]Read from MH i2c: 01 07 00 48 8E 00 00 00 00 00 FF 0F EB [23:16:04]RasterBufferAndPrint [23:16:04]line Счет N : (1)220809 [23:16:04]line ИНН: 02508201610067 [23:16:04]line Контрольно-Кассовый Чек [23:16:04]line ПРОДАЖА [23:16:04]line ТРК (МРК, ГНК) : 11 [23:16:04]line Товар: 2710194210 [23:16:04]line ДТ-К-5 [23:16:04]line 26.240 * 76.20 [23:16:04]line = 1999.49 [23:16:04]line НДС 12% НСП 1% [23:16:04]line > о реализуемом товаре [23:16:04]line ОКРУГЛЕНИЕ: -0.49 [23:16:04]line ИТОГО: 1999.00 [23:16:04]line Внесено: 2000.00 [23:16:04]line СДАЧА: 1.00 [23:16:04]line НСП 1% : 17.69 [23:16:04]line НДС 12% : 212.33 [23:16:04]line Наличными: 1999.00 [23:16:04]line Безнал.: 0.00 [23:16:04]line Место: АЗС № 161 "Партнер Нефть" [23:16:04]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:16:04]line СНО: Общий режим [23:16:04]line Чек 346 21.10.2024 23:16 [23:16:04]line Смена: 535 ФФД: 1.0 [23:16:04]line ЗНМ: 0300000104 [23:16:04]line РНМ: 0000000000091764 [23:16:04]line Версия ККМ: 001 [23:16:04]line ФМ: 0000000000871759 [23:16:04]line ФД: 166235 [23:16:04]line ФПД: 167931561772299 [23:16:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231623&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166235&fm=167931561772299&tin=02508201610067®Number=0000000000091764&sum=199900 [23:16:04]OFD Sender: Processing packet 166235 [packets to send 48, broken 47] [23:16:04]ProducePacketName [23:16:04]name=ofd_packets/00166235 [23:16:04]OFD Sender: To server: pG, [23:16:04]CommunicateWithHost lk.salyk.kg:30040 [23:16:04]ConnectInit lk.salyk.kg [23:16:04]written 0, free lines is 4095 [23:16:04]Connected sock=6 [23:16:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 52 16 04 01 92 0C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 80 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0D 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 DC 0C 03 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 C7 E0 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5B 89 02 00 35 04 06 00 98 BB 9D 16 05 0B 55 C9 88 83 BF CF 2F 34 [23:16:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E0 F8 47 00 2E 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 35 39 10 04 04 00 5B 89 02 00 F4 03 04 00 34 87 16 67 B6 04 01 00 00 94 88 04 10 D9 FF 5F 07 [23:16:04]CommunicateWithHost err = 0 [23:16:04]CheckOFDResponse [23:16:04]1017 (14) - 77093643461234 [23:16:04]1041 (16) - 0000000000871759 [23:16:04]1040 (4) - 166235 [23:16:04]1012 (4) - 21.10.2024 16:54 [23:16:04]1206 (1) - 0 [23:16:04]OFD Sender: Remove packet 166235 [23:16:04]ProducePacketName [23:16:04]name=ofd_packets/00166235 [23:16:04]NVStorageDeleteData [23:16:05]Write to MH i2c: 01 00 00 73 8E 01 [23:16:05]Write i2c OK [23:16:05]MH_I2C_Read... [23:16:05]Read from MH i2c: 01 [23:16:05]MH_I2C_Read... [23:16:05]Read from MH i2c: 01 07 00 [23:16:05]MH_I2C_Read... [23:16:05]Read from MH i2c: 01 07 00 73 8E 00 00 00 00 00 BA 0C CE [23:16:05]RasterBufferAndPrint [23:16:05]line [23:16:05]line [23:16:05]line [23:16:05]line [23:16:05]line [23:16:05]written 0, free lines is 3266 [23:16:05]MH_Cut [23:16:05]Write to MH i2c: D1 01 00 7A 8E 01 DA [23:16:05]Write i2c OK [23:16:05]MH_I2C_Read... [23:16:05]Read from MH i2c: D1 [23:16:05]MH_I2C_Read... [23:16:05]Read from MH i2c: D1 01 00 [23:16:05]MH_I2C_Read... [23:16:05]Read from MH i2c: D1 01 00 7A 8E 00 D9 [23:16:05]Write to MH i2c: 01 00 00 7B 8E 09 [23:16:05]Write i2c OK [23:16:05]MH_I2C_Read... [23:16:05]OFD Sender: No OFD packet to send [23:16:05]*** Cut start [23:16:05]*** Partial cut [23:16:05]*** CUTSNS_PIN = 1 [23:16:05]*** CUTSNS_PIN = 0 [23:16:06]*** Brake cut motor [23:16:06]Read from MH i2c: 01 [23:16:06]MH_I2C_Read... [23:16:06]*** Stop cut motor [23:16:06]*** Cut end [23:16:06]Read from MH i2c: 01 07 00 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: 01 07 00 7B 8E 00 00 00 00 00 FF 0F 1E [23:16:06]process_action close_receipt done [23:16:06]requested_data is exist [23:16:06]produce_requested_data [23:16:06]requested_item fm.sn is exist - process it [23:16:06]wFMCommunicate request_size=4 [23:16:06]MH_SAM_APDU [23:16:06]CAPDU: 80 11 00 00 [23:16:06]Write to MH i2c: E2 08 00 7C 8E 80 11 00 00 00 00 00 00 84 [23:16:06]Write i2c OK [23:16:06]MH_I2C_Read... [23:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:16:06]Read from MH i2c: E2 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: E2 17 00 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: E2 17 00 7C 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DC [23:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:16:06]wFMCommunicate OK [23:16:06]requested_item fd.num is exist - process it [23:16:06]SAM_PROTO_GetFieldsCounters [23:16:06]wFMCommunicate request_size=4 [23:16:06]MH_SAM_APDU [23:16:06]CAPDU: 80 13 00 00 [23:16:06]Write to MH i2c: E2 08 00 7D 8E 80 13 00 00 00 00 00 00 87 [23:16:06]Write i2c OK [23:16:06]MH_I2C_Read... [23:16:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:16:06]Read from MH i2c: E2 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: E2 62 00 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: E2 62 00 7D 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [23:16:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5B 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:16:06]wFMCommunicate OK [23:16:06]SAM_PROTO_GetFieldsCounters done [23:16:06]requested_item shift.num is exist - process it [23:16:06]requested_item shift.opened is exist - process it [23:16:06]req_shift_opened [23:16:06]FM_GetShiftState [23:16:06]SAM_PROTO_GetShiftState [23:16:06]wFMCommunicate request_size=4 [23:16:06]MH_SAM_APDU [23:16:06]CAPDU: 80 13 01 00 [23:16:06]Write to MH i2c: E2 08 00 7E 8E 80 13 01 00 00 00 00 00 89 [23:16:06]Write i2c OK [23:16:06]MH_I2C_Read... [23:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:06]Read from MH i2c: E2 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: E2 0E 00 [23:16:06]MH_I2C_Read... [23:16:06]Read from MH i2c: E2 0E 00 7E 8E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 92 [23:16:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:16:06]wFMCommunicate OK [23:16:06]SAM_PROTO_GetShiftState done [23:16:06]FM_GetShiftState done [23:16:06]req_shift_opened done [23:16:06]requested_item shift.open_date is exist - process it [23:16:06]req_shift_open_date [23:16:06]req_shift_open_date done [23:16:06]produce_requested_data done [23:16:06]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166235,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:16:06]process_action_free close_receipt [23:16:06]json_value_free [23:16:06]json_value_free done [23:16:06]process_json_proto returns [23:16:06]Send response to host [23:16:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166235,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:16:06]free response buf [23:16:06]execute_script done [23:16:06]execute_script returns [23:16:06]free content buf [23:16:06]Sock 7.Close socket [23:16:06]Sock 7.Thread stoped [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:16:59]accept exits with 5 [23:16:59]New connection [23:16:59]New thread 3066920292 created [23:16:59]Thread 3066776932 joined [23:16:59]Waiting for new connection... [23:16:59] Sock 5.Parse request [23:16:59]Sock 5.Check first char [23:16:59]Sock 5.First char is OK [23:16:59]request: POST /json_proto HTTP/1.0 [23:16:59]Method: POST [23:16:59]URL: /json_proto [23:16:59]Method is POST - this is cgi request [23:16:59]url: /json_proto [23:16:59]query_string will be loaded in cgi processing [23:16:59]execute_cgi json_proto POST (null) [23:16:59]execute_cgi path=json_proto method=POST [23:16:59]POST find Content-Length [23:16:59]Host: 172.17.53.195:8080 [23:16:59]Content-Length: 679 [23:16:59]Content-Type: application/json [23:16:59] [23:16:59]POST finish read [23:16:59]Found Content-Length = 679 [23:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:59]execute_script... [23: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)220810", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:16:59]POST & json_proto [23:16:59]process_json_proto [23:16:59]json parsed OK: [23:16:59]protocol is kg_v1.0 [23:16:59]action value=close_receipt [23:16:59]process_action close_receipt [23:16:59]cmd_close_receipt [23:16:59]MH_GetDate [23:16:59]Write to MH i2c: F0 00 00 7F 8E FC [23:16:59]Write i2c OK [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: F0 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: F0 09 00 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: F0 09 00 7F 8E 00 00 E1 16 67 21 48 4A 65 7B [23:16:59]GetLastDocTimeStamp 1729552583 [23:16:59]current date 1729552640 [23:16:59]FM_GetShiftState [23:16:59]SAM_PROTO_GetShiftState [23:16:59]wFMCommunicate request_size=4 [23:16:59]MH_SAM_APDU [23:16:59]CAPDU: 80 13 01 00 [23:16:59]Write to MH i2c: E2 08 00 80 8E 80 13 01 00 00 00 00 00 8B [23:16:59]Write i2c OK [23:16:59]MH_I2C_Read... [23:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:16:59]Read from MH i2c: E2 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: E2 0E 00 [23:16:59]MH_I2C_Read... [23:16:59]Read from MH i2c: E2 0E 00 80 8E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 94 [23:16:59]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:16:59]wFMCommunicate OK [23:16:59]SAM_PROTO_GetShiftState done [23:16:59]FM_GetShiftState done [23:16:59]opened in 1729470944 [23:16:59]opened+sec_in_day 1729557344 [23:16:59]quantity*price = 150037 [23:16:59]sum+1 = 150039 [23:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 347 21.10.2024 23:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166236 ФПД: 163455041311449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166236&fm=163455041311449&tin=02508201610067®Number=0000000000091764&sum=150000 [23:17:00]StoreToDocumentArchive [23:17:00]shift 535 fd 166236 [23:17:00]save to /storage/0535/doc_00166236 [23:17:00]save last doc name /storage/0535/doc_00166236 to /storage/kkm_last_doc_name [23:17:00]save OK [23:17:00]Clear old archive folders... [23:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:17:00]tlvbuf is 01C0F380 [23:17:00]SAM_PROTO_ClearQueue [23:17:00]wFMCommunicate request_size=4 [23:17:00]MH_SAM_APDU [23:17:00]CAPDU: 80 09 00 00 [23:17:00]Write to MH i2c: E2 08 00 8D 8E 80 09 00 00 00 00 00 00 8D [23:17:00]Write i2c OK [23:17:00]MH_I2C_Read... [23:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:00]Read from MH i2c: E2 [23:17:00]MH_I2C_Read... [23:17:00]Read from MH i2c: E2 03 00 [23:17:00]MH_I2C_Read... [23:17:00]Read from MH i2c: E2 03 00 8D 8E 00 90 00 8F [23:17:00]RAPDU: 90 00 [23:17:00]wFMCommunicate OK [23:17:00]SAM_PROTO_ClearQueue done [23:17:00]KKMCreateOFDPacket [23:17:00]OFDProtocolAddRootSTLVToBuf [23:17:00]FM_MakeSignedData [23:17:00]FM_MakeSignedData [23:17:00]SAM_PROTO_SignData [23:17:00]wFMCommunicate request_size=4 [23:17:00]MH_SAM_APDU [23:17:00]CAPDU: 80 0D 01 02 [23:17:00]Write to MH i2c: E2 08 00 8E 8E 80 0D 01 02 00 00 00 00 95 [23:17:00]Write i2c OK [23:17:00]MH_I2C_Read... [23:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:00]Read from MH i2c: E2 [23:17:00]MH_I2C_Read... [23:17:00]Read from MH i2c: E2 03 00 [23:17:00]MH_I2C_Read... [23:17:00]Read from MH i2c: E2 03 00 8E 8E 00 90 00 90 [23:17:00]RAPDU: 90 00 [23:17:00]wFMCommunicate OK [23:17:00]wFMCommunicate request_size=255 [23:17:00]MH_SAM_APDU [23:17:00]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 01 00 00 F4 03 04 00 00 E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 89 02 00 35 04 06 00 94 A9 57 AC [23:17:00]Write to MH i2c: E2 02 01 8F 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 00 E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 89 02 00 35 04 06 00 94 A9 57 AC 00 00 92 [23:17:00]Write i2c OK [23:17:00]MH_I2C_Read... [23:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:01]Read from MH i2c: E2 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 03 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 03 00 8F 8E 00 90 00 91 [23:17:01]RAPDU: 90 00 [23:17:01]wFMCommunicate OK [23:17:01]wFMCommunicate request_size=7 [23:17:01]MH_SAM_APDU [23:17:01]CAPDU: 80 0D 02 02 02 92 D9 [23:17:01]Write to MH i2c: E2 0A 00 90 8E 80 0D 02 02 02 00 92 D9 00 00 07 [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:01]Read from MH i2c: E2 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 03 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 03 00 90 8E 00 90 00 92 [23:17:01]RAPDU: 90 00 [23:17:01]wFMCommunicate OK [23:17:01]wFMCommunicate request_size=4 [23:17:01]MH_SAM_APDU [23:17:01]CAPDU: 80 0D 03 02 [23:17:01]Write to MH i2c: E2 08 00 91 8E 80 0D 03 02 00 00 00 00 9A [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:01]Read from MH i2c: E2 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 0B 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 0B 00 91 8E 00 E8 FB E6 F1 3D 83 1A 17 90 00 46 [23:17:01]RAPDU: E8 FB E6 F1 3D 83 1A 17 90 00 [23:17:01]wFMCommunicate OK [23:17:01]SAM_PROTO_SignData done [23:17:01]FM_MakeSignedData done [23:17:01]CreateOFDProtocolMessage [23:17:01]wFMCommunicate request_size=4 [23:17:01]MH_SAM_APDU [23:17:01]CAPDU: 80 11 00 00 [23:17:01]Write to MH i2c: E2 08 00 92 8E 80 11 00 00 00 00 00 00 9A [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:01]Read from MH i2c: E2 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 17 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: E2 17 00 92 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F2 [23:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:17:01]wFMCommunicate OK [23:17:01]CreateOFDProtocolMessage done [23:17:01]OFDSenderStorePacket 166236 [23:17:01]StoreOFDPacket docnum=166236 [23:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 28 CC 04 01 BE 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 01 00 00 F4 03 04 00 00 E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 89 02 00 35 04 06 00 94 A9 57 AC 92 D9 E8 FB E6 F1 3D 83 1A 17 [23:17:01]CheckFolder [23:17:01]dirname=/storage/ofd_packets [23:17:01]CheckFolder done [23:17:01]ProducePacketName [23:17:01]name=ofd_packets/00166236 [23:17:01]NVStorageSaveData ofd_packets/00166236 [23:17:01]File name is /storage/ofd_packets/00166236 [23:17:01]Write 298 bytes [23:17:01]NVStorageSaveData done [23:17:01]OFDSenderStorePacket done [23:17:01]KKMCreateOFDPacket done [23:17:01]NVStorageSaveData kkm_last_timestamp [23:17:01]File name is /storage/kkm_last_timestamp [23:17:01]Write 4 bytes [23:17:01]NVStorageSaveData done [23:17:01]ExternCall_PrintAddStr [23:17:01]wPrintStart [23:17:01]Write to MH i2c: 01 00 00 93 8E 21 [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 07 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 07 00 93 8E 00 00 00 00 00 FF 0F 36 [23:17:01]RasterBufferAndPrint [23:17:01]line Счет N : (1)220810 [23:17:01]line ИНН: 02508201610067 [23:17:01]line Контрольно-Кассовый Чек [23:17:01]line ПРОДАЖА [23:17:01]line ТРК (МРК, ГНК) : 11 [23:17:01]line Товар: 2710194210 [23:17:01]line ДТ-К-5 [23:17:01]line 19.690 * 76.20 [23:17:01]line = 1500.38 [23:17:01]line НДС 12% НСП 1% [23:17:01]line > о реализуемом товаре [23:17:01]line ОКРУГЛЕНИЕ: -0.38 [23:17:01]line ИТОГО: 1500.00 [23:17:01]line Внесено: 1500.00 [23:17:01]line СДАЧА: 0.00 [23:17:01]line НСП 1% : 13.28 [23:17:01]line НДС 12% : 159.33 [23:17:01]line Наличными: 1500.00 [23:17:01]line Безнал.: 0.00 [23:17:01]line Место: АЗС № 161 "Партнер Нефть" [23:17:01]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:17:01]line СНО: Общий режим [23:17:01]line Чек 347 21.10.2024 23:17 [23:17:01]line Смена: 535 ФФД: 1.0 [23:17:01]line ЗНМ: 0300000104 [23:17:01]line РНМ: 0000000000091764 [23:17:01]line Версия ККМ: 001 [23:17:01]line ФМ: 0000000000871759 [23:17:01]line ФД: 166236 [23:17:01]line ФПД: 163455041311449 [23:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T231720&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166236&fm=163455041311449&tin=02508201610067®Number=0000000000091764&sum=150000 [23:17:01]OFD Sender: Processing packet 166236 [packets to send 48, broken 47] [23:17:01]ProducePacketName [23:17:01]name=ofd_packets/00166236 [23:17:01]OFD Sender: To server: pG, [23:17:01]CommunicateWithHost lk.salyk.kg:30040 [23:17:01]ConnectInit lk.salyk.kg [23:17:01]written 0, free lines is 4095 [23:17:01]Connected sock=7 [23:17:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 28 CC 04 01 BE 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 5B 01 00 00 F4 03 04 00 00 E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 89 02 00 35 04 06 00 94 A9 57 AC 92 D9 E8 FB E6 F1 3D 83 1A 17 [23:17:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 EA 79 47 00 E1 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5C 89 02 00 F4 03 04 00 6D 87 16 67 B6 04 01 00 00 C8 3E 18 BE 66 6C 53 EE [23:17:01]CommunicateWithHost err = 0 [23:17:01]CheckOFDResponse [23:17:01]1017 (14) - 77093643461234 [23:17:01]1041 (16) - 0000000000871759 [23:17:01]1040 (4) - 166236 [23:17:01]1012 (4) - 21.10.2024 16:55 [23:17:01]1206 (1) - 0 [23:17:01]OFD Sender: Remove packet 166236 [23:17:01]ProducePacketName [23:17:01]name=ofd_packets/00166236 [23:17:01]NVStorageDeleteData [23:17:01]Write to MH i2c: 01 00 00 BE 8E 4C [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 07 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: 01 07 00 BE 8E 00 00 00 00 00 B7 0C 16 [23:17:01]RasterBufferAndPrint [23:17:01]line [23:17:01]line [23:17:01]line [23:17:01]line [23:17:01]line [23:17:01]written 0, free lines is 3264 [23:17:01]MH_Cut [23:17:01]Write to MH i2c: D1 01 00 C5 8E 01 25 [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: D1 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: D1 01 00 [23:17:01]MH_I2C_Read... [23:17:01]Read from MH i2c: D1 01 00 C5 8E 00 24 [23:17:01]Write to MH i2c: 01 00 00 C6 8E 54 [23:17:01]Write i2c OK [23:17:01]MH_I2C_Read... [23:17:02]OFD Sender: No OFD packet to send [23:17:02]*** Cut start [23:17:02]*** Partial cut [23:17:02]*** CUTSNS_PIN = 1 [23:17:02]*** CUTSNS_PIN = 0 [23:17:03]*** Brake cut motor [23:17:03]Read from MH i2c: 01 [23:17:03]MH_I2C_Read... [23:17:03]*** Stop cut motor [23:17:03]*** Cut end [23:17:03]Read from MH i2c: 01 07 00 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: 01 07 00 C6 8E 00 00 00 00 00 FF 0F 69 [23:17:03]process_action close_receipt done [23:17:03]requested_data is exist [23:17:03]produce_requested_data [23:17:03]requested_item fm.sn is exist - process it [23:17:03]wFMCommunicate request_size=4 [23:17:03]MH_SAM_APDU [23:17:03]CAPDU: 80 11 00 00 [23:17:03]Write to MH i2c: E2 08 00 C7 8E 80 11 00 00 00 00 00 00 CF [23:17:03]Write i2c OK [23:17:03]MH_I2C_Read... [23:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:03]Read from MH i2c: E2 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 17 00 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 17 00 C7 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 27 [23:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:17:03]wFMCommunicate OK [23:17:03]requested_item fd.num is exist - process it [23:17:03]SAM_PROTO_GetFieldsCounters [23:17:03]wFMCommunicate request_size=4 [23:17:03]MH_SAM_APDU [23:17:03]CAPDU: 80 13 00 00 [23:17:03]Write to MH i2c: E2 08 00 C8 8E 80 13 00 00 00 00 00 00 D2 [23:17:03]Write i2c OK [23:17:03]MH_I2C_Read... [23:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:03]Read from MH i2c: E2 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 62 00 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 62 00 C8 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [23: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5C 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:03]wFMCommunicate OK [23:17:03]SAM_PROTO_GetFieldsCounters done [23:17:03]requested_item shift.num is exist - process it [23:17:03]requested_item shift.opened is exist - process it [23:17:03]req_shift_opened [23:17:03]FM_GetShiftState [23:17:03]SAM_PROTO_GetShiftState [23:17:03]wFMCommunicate request_size=4 [23:17:03]MH_SAM_APDU [23:17:03]CAPDU: 80 13 01 00 [23:17:03]Write to MH i2c: E2 08 00 C9 8E 80 13 01 00 00 00 00 00 D4 [23:17:03]Write i2c OK [23:17:03]MH_I2C_Read... [23:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:03]Read from MH i2c: E2 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 0E 00 [23:17:03]MH_I2C_Read... [23:17:03]Read from MH i2c: E2 0E 00 C9 8E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DD [23:17:03]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:17:03]wFMCommunicate OK [23:17:03]SAM_PROTO_GetShiftState done [23:17:03]FM_GetShiftState done [23:17:03]req_shift_opened done [23:17:03]requested_item shift.open_date is exist - process it [23:17:03]req_shift_open_date [23:17:03]req_shift_open_date done [23:17:03]produce_requested_data done [23:17:03]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166236,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:17:03]process_action_free close_receipt [23:17:03]json_value_free [23:17:03]json_value_free done [23:17:03]process_json_proto returns [23:17:03]Send response to host [23:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166236,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:17:03]free response buf [23:17:03]execute_script done [23:17:03]execute_script returns [23:17:03]free content buf [23:17:03]Sock 5.Close socket [23:17:03]Sock 5.Thread stoped [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:38]accept exits with 6 [23:20:38]New connection [23:20:38]New thread 3066776932 created [23:20:38]Thread 3066920292 joined [23:20:38]Waiting for new connection... [23:20:38] Sock 6.Parse request [23:20:38]Sock 6.Check first char [23:20:38]Sock 6.First char is OK [23:20:38]request: POST /json_proto HTTP/1.0 [23:20:38]Method: POST [23:20:38]URL: /json_proto [23:20:38]Method is POST - this is cgi request [23:20:38]url: /json_proto [23:20:38]query_string will be loaded in cgi processing [23:20:38]execute_cgi json_proto POST (null) [23:20:38]execute_cgi path=json_proto method=POST [23:20:38]POST find Content-Length [23:20:38]Host: 172.17.53.195:8080 [23:20:38]Content-Length: 677 [23:20:38]Content-Type: application/json [23:20:38] [23:20:38]POST finish read [23:20:38]Found Content-Length = 677 [23:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:38]execute_script... [23: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)220811", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:38]POST & json_proto [23:20:38]process_json_proto [23:20:38]json parsed OK: [23:20:38]protocol is kg_v1.0 [23:20:38]action value=close_receipt [23:20:38]process_action close_receipt [23:20:38]cmd_close_receipt [23:20:38]MH_GetDate [23:20:38]Write to MH i2c: F0 00 00 CA 8E 47 [23:20:38]Write i2c OK [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: F0 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: F0 09 00 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: F0 09 00 CA 8E 00 DB E1 16 67 21 48 4A 65 A1 [23:20:38]GetLastDocTimeStamp 1729552640 [23:20:38]current date 1729552859 [23:20:38]FM_GetShiftState [23:20:38]SAM_PROTO_GetShiftState [23:20:38]wFMCommunicate request_size=4 [23:20:38]MH_SAM_APDU [23:20:38]CAPDU: 80 13 01 00 [23:20:38]Write to MH i2c: E2 08 00 CB 8E 80 13 01 00 00 00 00 00 D6 [23:20:38]Write i2c OK [23:20:38]MH_I2C_Read... [23:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:38]Read from MH i2c: E2 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: E2 0E 00 [23:20:38]MH_I2C_Read... [23:20:38]Read from MH i2c: E2 0E 00 CB 8E 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 DF [23:20:38]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:20:38]wFMCommunicate OK [23:20:38]SAM_PROTO_GetShiftState done [23:20:38]FM_GetShiftState done [23:20:38]opened in 1729470944 [23:20:38]opened+sec_in_day 1729557344 [23:20:38]quantity*price = 50041 [23:20:38]sum+1 = 50042 [23:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 348 21.10.2024 23:20 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166237 ФПД: 156365935438245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166237&fm=156365935438245&tin=02508201610067®Number=0000000000091764&sum=50000 [23:20:39]StoreToDocumentArchive [23:20:39]shift 535 fd 166237 [23:20:39]save to /storage/0535/doc_00166237 [23:20:39]save last doc name /storage/0535/doc_00166237 to /storage/kkm_last_doc_name [23:20:39]save OK [23:20:39]Clear old archive folders... [23:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:39]tlvbuf is 019A5F90 [23:20:39]SAM_PROTO_ClearQueue [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 09 00 00 [23:20:39]Write to MH i2c: E2 08 00 D8 8E 80 09 00 00 00 00 00 00 D8 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 D8 8E 00 90 00 DA [23:20:39]RAPDU: 90 00 [23:20:39]wFMCommunicate OK [23:20:39]SAM_PROTO_ClearQueue done [23:20:39]KKMCreateOFDPacket [23:20:39]OFDProtocolAddRootSTLVToBuf [23:20:39]FM_MakeSignedData [23:20:39]FM_MakeSignedData [23:20:39]SAM_PROTO_SignData [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 0D 01 02 [23:20:39]Write to MH i2c: E2 08 00 D9 8E 80 0D 01 02 00 00 00 00 E0 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 D9 8E 00 90 00 DB [23:20:39]RAPDU: 90 00 [23:20:39]wFMCommunicate OK [23:20:39]wFMCommunicate request_size=255 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 DB E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 89 02 00 35 04 06 00 8E [23:20:39]Write to MH i2c: E2 02 01 DA 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DB E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 89 02 00 35 04 06 00 8E 00 00 9B [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 DA 8E 00 90 00 DC [23:20:39]RAPDU: 90 00 [23:20:39]wFMCommunicate OK [23:20:39]wFMCommunicate request_size=10 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 0D 02 02 05 36 C8 09 69 A5 [23:20:39]Write to MH i2c: E2 0D 00 DB 8E 80 0D 02 02 05 00 36 C8 09 69 A5 00 00 02 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 03 00 DB 8E 00 90 00 DD [23:20:39]RAPDU: 90 00 [23:20:39]wFMCommunicate OK [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 0D 03 02 [23:20:39]Write to MH i2c: E2 08 00 DC 8E 80 0D 03 02 00 00 00 00 E5 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 0B 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 0B 00 DC 8E 00 0F 01 49 DE 4E C1 22 F9 90 00 47 [23:20:39]RAPDU: 0F 01 49 DE 4E C1 22 F9 90 00 [23:20:39]wFMCommunicate OK [23:20:39]SAM_PROTO_SignData done [23:20:39]FM_MakeSignedData done [23:20:39]CreateOFDProtocolMessage [23:20:39]wFMCommunicate request_size=4 [23:20:39]MH_SAM_APDU [23:20:39]CAPDU: 80 11 00 00 [23:20:39]Write to MH i2c: E2 08 00 DD 8E 80 11 00 00 00 00 00 00 E5 [23:20:39]Write i2c OK [23:20:39]MH_I2C_Read... [23:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:39]Read from MH i2c: E2 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 17 00 [23:20:39]MH_I2C_Read... [23:20:39]Read from MH i2c: E2 17 00 DD 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [23:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:20:39]wFMCommunicate OK [23:20:39]CreateOFDProtocolMessage done [23:20:39]OFDSenderStorePacket 166237 [23:20:39]StoreOFDPacket docnum=166237 [23:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 81 CF 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DB E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 89 02 00 35 04 06 00 8E 36 C8 09 69 A5 0F 01 49 DE 4E C1 22 F9 [23:20:39]CheckFolder [23:20:39]dirname=/storage/ofd_packets [23:20:39]CheckFolder done [23:20:39]ProducePacketName [23:20:39]name=ofd_packets/00166237 [23:20:39]NVStorageSaveData ofd_packets/00166237 [23:20:39]File name is /storage/ofd_packets/00166237 [23:20:39]Write 301 bytes [23:20:39]NVStorageSaveData done [23:20:39]OFDSenderStorePacket done [23:20:39]KKMCreateOFDPacket done [23:20:39]NVStorageSaveData kkm_last_timestamp [23:20:39]File name is /storage/kkm_last_timestamp [23:20:40]Write 4 bytes [23:20:40]NVStorageSaveData done [23:20:40]ExternCall_PrintAddStr [23:20:40]wPrintStart [23:20:40]Write to MH i2c: 01 00 00 DE 8E 6C [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 DE 8E 00 00 00 00 00 FF 0F 81 [23:20:40]RasterBufferAndPrint [23:20:40]line Счет N : (1)220811 [23:20:40]line ИНН: 02508201610067 [23:20:40]line Контрольно-Кассовый Чек [23:20:40]line ПРОДАЖА [23:20:40]line ТРК (МРК, ГНК) : 33 [23:20:40]line Товар: 2710124130 [23:20:40]line Аи-92-К-5 [23:20:40]line 7.480 * 66.90 [23:20:40]line = 500.41 [23:20:40]line НДС 12% НСП 1% [23:20:40]line > о реализуемом товаре [23:20:40]line ОКРУГЛЕНИЕ: -0.41 [23:20:40]line ИТОГО: 500.00 [23:20:40]line Внесено: 500.00 [23:20:40]line СДАЧА: 0.00 [23:20:40]line НСП 1% : 4.43 [23:20:40]line НДС 12% : 53.14 [23:20:40]line Наличными: 500.00 [23:20:40]line Безнал.: 0.00 [23:20:40]line Место: АЗС № 161 "Партнер Нефть" [23:20:40]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:20:40]line СНО: Общий режим [23:20:40]line Чек 348 21.10.2024 23:20 [23:20:40]line Смена: 535 ФФД: 1.0 [23:20:40]line ЗНМ: 0300000104 [23:20:40]line РНМ: 0000000000091764 [23:20:40]line Версия ККМ: 001 [23:20:40]line ФМ: 0000000000871759 [23:20:40]line ФД: 166237 [23:20:40]line ФПД: 156365935438245 [23:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T232059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166237&fm=156365935438245&tin=02508201610067®Number=0000000000091764&sum=50000 [23:20:40]OFD Sender: Processing packet 166237 [packets to send 48, broken 47] [23:20:40]ProducePacketName [23:20:40]name=ofd_packets/00166237 [23:20:40]OFD Sender: To server: pG, [23:20:40]CommunicateWithHost lk.salyk.kg:30040 [23:20:40]ConnectInit lk.salyk.kg [23:20:40]written 0, free lines is 4095 [23:20:40]Connected sock=7 [23: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 35 39 0F 01 00 00 81 CF 07 01 D2 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 DB E1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 89 02 00 35 04 06 00 8E 36 C8 09 69 A5 0F 01 49 DE 4E C1 22 F9 [23: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 35 39 4F 00 00 00 53 71 47 00 DA 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5D 89 02 00 F4 03 04 00 48 88 16 67 B6 04 01 00 00 85 76 AB 05 D2 DD E1 41 [23:20:40]CommunicateWithHost err = 0 [23:20:40]CheckOFDResponse [23:20:40]1017 (14) - 77093643461234 [23:20:40]1041 (16) - 0000000000871759 [23:20:40]1040 (4) - 166237 [23:20:40]1012 (4) - 21.10.2024 16:58 [23:20:40]1206 (1) - 0 [23:20:40]OFD Sender: Remove packet 166237 [23:20:40]ProducePacketName [23:20:40]name=ofd_packets/00166237 [23:20:40]NVStorageDeleteData [23:20:40]Write to MH i2c: 01 00 00 09 8F 98 [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: 01 07 00 09 8F 00 00 00 00 00 B5 0C 60 [23:20:40]RasterBufferAndPrint [23:20:40]line [23:20:40]line [23:20:40]line [23:20:40]line [23:20:40]line [23:20:40]written 0, free lines is 3259 [23:20:40]MH_Cut [23:20:40]Write to MH i2c: D1 01 00 10 8F 01 71 [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: D1 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: D1 01 00 [23:20:40]MH_I2C_Read... [23:20:40]Read from MH i2c: D1 01 00 10 8F 00 70 [23:20:40]Write to MH i2c: 01 00 00 11 8F A0 [23:20:40]Write i2c OK [23:20:40]MH_I2C_Read... [23:20:41]OFD Sender: No OFD packet to send [23:20:41]*** Cut start [23:20:41]*** Partial cut [23:20:41]*** CUTSNS_PIN = 1 [23:20:41]*** CUTSNS_PIN = 0 [23:20:41]*** Brake cut motor [23:20:42]Read from MH i2c: 01 [23:20:42]MH_I2C_Read... [23:20:42]*** Stop cut motor [23:20:42]*** Cut end [23:20:42]Read from MH i2c: 01 07 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: 01 07 00 11 8F 00 00 00 00 00 FF 0F B5 [23:20:42]process_action close_receipt done [23:20:42]requested_data is exist [23:20:42]produce_requested_data [23:20:42]requested_item fm.sn is exist - process it [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 11 00 00 [23:20:42]Write to MH i2c: E2 08 00 12 8F 80 11 00 00 00 00 00 00 1B [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 17 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 17 00 12 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 73 [23:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:20:42]wFMCommunicate OK [23:20:42]requested_item fd.num is exist - process it [23:20:42]SAM_PROTO_GetFieldsCounters [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 13 00 00 [23:20:42]Write to MH i2c: E2 08 00 13 8F 80 13 00 00 00 00 00 00 1E [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 62 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 62 00 13 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [23: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5D 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:20:42]wFMCommunicate OK [23:20:42]SAM_PROTO_GetFieldsCounters done [23:20:42]requested_item shift.num is exist - process it [23:20:42]requested_item shift.opened is exist - process it [23:20:42]req_shift_opened [23:20:42]FM_GetShiftState [23:20:42]SAM_PROTO_GetShiftState [23:20:42]wFMCommunicate request_size=4 [23:20:42]MH_SAM_APDU [23:20:42]CAPDU: 80 13 01 00 [23:20:42]Write to MH i2c: E2 08 00 14 8F 80 13 01 00 00 00 00 00 20 [23:20:42]Write i2c OK [23:20:42]MH_I2C_Read... [23:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:42]Read from MH i2c: E2 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 0E 00 [23:20:42]MH_I2C_Read... [23:20:42]Read from MH i2c: E2 0E 00 14 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 29 [23:20:42]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:20:42]wFMCommunicate OK [23:20:42]SAM_PROTO_GetShiftState done [23:20:42]FM_GetShiftState done [23:20:42]req_shift_opened done [23:20:42]requested_item shift.open_date is exist - process it [23:20:42]req_shift_open_date [23:20:42]req_shift_open_date done [23:20:42]produce_requested_data done [23:20:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166237,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:20:42]process_action_free close_receipt [23:20:42]json_value_free [23:20:42]json_value_free done [23:20:42]process_json_proto returns [23:20:42]Send response to host [23:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166237,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:20:42]free response buf [23:20:42]execute_script done [23:20:42]execute_script returns [23:20:42]free content buf [23:20:42]Sock 6.Close socket [23:20:42]Sock 6.Thread stoped [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]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:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37: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]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:45]accept exits with 5 [23:42:45]New connection [23:42:45]New thread 3066920292 created [23:42:45]Thread 3066776932 joined [23:42:45]Waiting for new connection... [23:42:45] Sock 5.Parse request [23:42:45]Sock 5.Check first char [23:42:45]Sock 5.First char is OK [23:42:45]request: POST /json_proto HTTP/1.0 [23:42:45]Method: POST [23:42:45]URL: /json_proto [23:42:45]Method is POST - this is cgi request [23:42:45]url: /json_proto [23:42:45]query_string will be loaded in cgi processing [23:42:45]execute_cgi json_proto POST (null) [23:42:45]execute_cgi path=json_proto method=POST [23:42:45]POST find Content-Length [23:42:45]Host: 172.17.53.195:8080 [23:42:45]Content-Length: 677 [23:42:45]Content-Type: application/json [23:42:45] [23:42:45]POST finish read [23:42:45]Found Content-Length = 677 [23:42:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:45]execute_script... [23:42:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:42:45]POST & json_proto [23:42:45]process_json_proto [23:42:45]json parsed OK: [23:42:45]protocol is kg_v1.0 [23:42:45]action value=close_receipt [23:42:45]process_action close_receipt [23:42:45]cmd_close_receipt [23:42:45]MH_GetDate [23:42:45]Write to MH i2c: F0 00 00 15 8F 93 [23:42:45]Write i2c OK [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: F0 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: F0 09 00 [23:42:45]MH_I2C_Read... [23:42:45]Read from MH i2c: F0 09 00 15 8F 00 0A E7 16 67 21 48 4A 65 22 [23:42:45]GetLastDocTimeStamp 1729552859 [23:42:45]current date 1729554186 [23:42:45]FM_GetShiftState [23:42:45]SAM_PROTO_GetShiftState [23:42:45]wFMCommunicate request_size=4 [23:42:45]MH_SAM_APDU [23:42:45]CAPDU: 80 13 01 00 [23:42:45]Write to MH i2c: E2 08 00 16 8F 80 13 01 00 00 00 00 00 22 [23:42:45]Write i2c OK [23:42:45]MH_I2C_Read... [23:42:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:46]Read from MH i2c: E2 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 0E 00 [23:42:46]MH_I2C_Read... [23:42:46]Read from MH i2c: E2 0E 00 16 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 2B [23:42:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:42:46]wFMCommunicate OK [23:42:46]SAM_PROTO_GetShiftState done [23:42:46]FM_GetShiftState done [23:42:46]opened in 1729470944 [23:42:46]opened+sec_in_day 1729557344 [23:42:46]quantity*price = 49974 [23:42:46]sum+1 = 49975 [23:42:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 349 21.10.2024 23:43 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166238 ФПД: 25545237973523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166238&fm=25545237973523&tin=02508201610067®Number=0000000000091764&sum=49900 [23:42:47]StoreToDocumentArchive [23:42:47]shift 535 fd 166238 [23:42:47]save to /storage/0535/doc_00166238 [23:42:47]save last doc name /storage/0535/doc_00166238 to /storage/kkm_last_doc_name [23:42:47]save OK [23:42:47]Clear old archive folders... [23:42:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:47]tlvbuf is 017B0710 [23:42:47]SAM_PROTO_ClearQueue [23:42:47]wFMCommunicate request_size=4 [23:42:47]MH_SAM_APDU [23:42:47]CAPDU: 80 09 00 00 [23:42:47]Write to MH i2c: E2 08 00 23 8F 80 09 00 00 00 00 00 00 24 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:47]Read from MH i2c: E2 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 23 8F 00 90 00 26 [23:42:47]RAPDU: 90 00 [23:42:47]wFMCommunicate OK [23:42:47]SAM_PROTO_ClearQueue done [23:42:47]KKMCreateOFDPacket [23:42:47]OFDProtocolAddRootSTLVToBuf [23:42:47]FM_MakeSignedData [23:42:47]FM_MakeSignedData [23:42:47]SAM_PROTO_SignData [23:42:47]wFMCommunicate request_size=4 [23:42:47]MH_SAM_APDU [23:42:47]CAPDU: 80 0D 01 02 [23:42:47]Write to MH i2c: E2 08 00 24 8F 80 0D 01 02 00 00 00 00 2C [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:47]Read from MH i2c: E2 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 24 8F 00 90 00 27 [23:42:47]RAPDU: 90 00 [23:42:47]wFMCommunicate OK [23:42:47]wFMCommunicate request_size=255 [23:42:47]MH_SAM_APDU [23:42: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A E7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 89 02 00 35 04 06 00 17 [23:42:47]Write to MH i2c: E2 02 01 25 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A E7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 89 02 00 35 04 06 00 17 00 00 88 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]OFD Sender: No OFD packet to send [23:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:47]Read from MH i2c: E2 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 25 8F 00 90 00 28 [23:42:47]RAPDU: 90 00 [23:42:47]wFMCommunicate OK [23:42:47]wFMCommunicate request_size=10 [23:42:47]MH_SAM_APDU [23:42:47]CAPDU: 80 0D 02 02 05 3B B6 D5 CA 13 [23:42:47]Write to MH i2c: E2 0D 00 26 8F 80 0D 02 02 05 00 3B B6 D5 CA 13 00 00 DC [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:47]Read from MH i2c: E2 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 03 00 26 8F 00 90 00 29 [23:42:47]RAPDU: 90 00 [23:42:47]wFMCommunicate OK [23:42:47]wFMCommunicate request_size=4 [23:42:47]MH_SAM_APDU [23:42:47]CAPDU: 80 0D 03 02 [23:42:47]Write to MH i2c: E2 08 00 27 8F 80 0D 03 02 00 00 00 00 31 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:47]Read from MH i2c: E2 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 0B 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 0B 00 27 8F 00 BB CE 2B 6C 7D B1 6A 2A 90 00 14 [23:42:47]RAPDU: BB CE 2B 6C 7D B1 6A 2A 90 00 [23:42:47]wFMCommunicate OK [23:42:47]SAM_PROTO_SignData done [23:42:47]FM_MakeSignedData done [23:42:47]CreateOFDProtocolMessage [23:42:47]wFMCommunicate request_size=4 [23:42:47]MH_SAM_APDU [23:42:47]CAPDU: 80 11 00 00 [23:42:47]Write to MH i2c: E2 08 00 28 8F 80 11 00 00 00 00 00 00 31 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:47]Read from MH i2c: E2 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 17 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: E2 17 00 28 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [23:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:42:47]wFMCommunicate OK [23:42:47]CreateOFDProtocolMessage done [23:42:47]OFDSenderStorePacket 166238 [23:42:47]StoreOFDPacket docnum=166238 [23:42:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB A0 07 01 B9 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A E7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 89 02 00 35 04 06 00 17 3B B6 D5 CA 13 BB CE 2B 6C 7D B1 6A 2A [23:42:47]CheckFolder [23:42:47]dirname=/storage/ofd_packets [23:42:47]CheckFolder done [23:42:47]ProducePacketName [23:42:47]name=ofd_packets/00166238 [23:42:47]NVStorageSaveData ofd_packets/00166238 [23:42:47]File name is /storage/ofd_packets/00166238 [23:42:47]Write 301 bytes [23:42:47]NVStorageSaveData done [23:42:47]OFDSenderStorePacket done [23:42:47]KKMCreateOFDPacket done [23:42:47]NVStorageSaveData kkm_last_timestamp [23:42:47]File name is /storage/kkm_last_timestamp [23:42:47]Write 4 bytes [23:42:47]NVStorageSaveData done [23:42:47]ExternCall_PrintAddStr [23:42:47]wPrintStart [23:42:47]Write to MH i2c: 01 00 00 29 8F B8 [23:42:47]Write i2c OK [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: 01 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: 01 07 00 [23:42:47]MH_I2C_Read... [23:42:47]Read from MH i2c: 01 07 00 29 8F 00 00 00 00 00 FF 0F CD [23:42:47]RasterBufferAndPrint [23:42:47]line Счет N : (1)220812 [23:42:47]line ИНН: 02508201610067 [23:42:47]line Контрольно-Кассовый Чек [23:42:47]line ПРОДАЖА [23:42:47]line ТРК (МРК, ГНК) : 13 [23:42:47]line Товар: 2710124130 [23:42:47]line Аи-92-К-5 [23:42:47]line 7.470 * 66.90 [23:42:47]line = 499.74 [23:42:47]line НДС 12% НСП 1% [23:42:47]line > о реализуемом товаре [23:42:47]line ОКРУГЛЕНИЕ: -0.74 [23:42:47]line ИТОГО: 499.00 [23:42:47]line Внесено: 500.00 [23:42:47]line СДАЧА: 1.00 [23:42:47]line НСП 1% : 4.42 [23:42:47]line НДС 12% : 53.07 [23:42:47]line Наличными: 499.00 [23:42:47]line Безнал.: 0.00 [23:42:47]line Место: АЗС № 161 "Партнер Нефть" [23:42:47]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:42:47]line СНО: Общий режим [23:42:47]line Чек 349 21.10.2024 23:43 [23:42:47]line Смена: 535 ФФД: 1.0 [23:42:47]line ЗНМ: 0300000104 [23:42:47]line РНМ: 0000000000091764 [23:42:47]line Версия ККМ: 001 [23:42:47]line ФМ: 0000000000871759 [23:42:47]line ФД: 166238 [23:42:47]line ФПД: 25545237973523 [23:42:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T234306&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166238&fm=25545237973523&tin=02508201610067®Number=0000000000091764&sum=49900 [23:42:48]OFD Sender: Processing packet 166238 [packets to send 48, broken 47] [23:42:48]ProducePacketName [23:42:48]name=ofd_packets/00166238 [23:42:48]OFD Sender: To server: pG, [23:42:48]CommunicateWithHost lk.salyk.kg:30040 [23:42:48]ConnectInit lk.salyk.kg [23:42:48]written 0, free lines is 4095 [23:42:48]Connected sock=9 [23:42:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 DB A0 07 01 B9 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 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 0A E7 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 89 02 00 35 04 06 00 17 3B B6 D5 CA 13 BB CE 2B 6C 7D B1 6A 2A [23:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 30 33 47 00 91 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5E 89 02 00 F4 03 04 00 77 8D 16 67 B6 04 01 00 00 E7 26 5B F1 76 CC 3F AA [23:42:48]CommunicateWithHost err = 0 [23:42:48]CheckOFDResponse [23:42:48]1017 (14) - 77093643461234 [23:42:48]1041 (16) - 0000000000871759 [23:42:48]1040 (4) - 166238 [23:42:48]1012 (4) - 21.10.2024 17:20 [23:42:48]1206 (1) - 0 [23:42:48]OFD Sender: Remove packet 166238 [23:42:48]ProducePacketName [23:42:48]name=ofd_packets/00166238 [23:42:48]NVStorageDeleteData [23:42:48]Write to MH i2c: 01 00 00 54 8F E3 [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: 01 07 00 54 8F 00 00 00 00 00 AF 0C A5 [23:42:48]RasterBufferAndPrint [23:42:48]line [23:42:48]line [23:42:48]line [23:42:48]line [23:42:48]line [23:42:48]written 0, free lines is 3253 [23:42:48]MH_Cut [23:42:48]Write to MH i2c: D1 01 00 5B 8F 01 BC [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: D1 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: D1 01 00 [23:42:48]MH_I2C_Read... [23:42:48]Read from MH i2c: D1 01 00 5B 8F 00 BB [23:42:48]Write to MH i2c: 01 00 00 5C 8F EB [23:42:48]Write i2c OK [23:42:48]MH_I2C_Read... [23:42:48]OFD Sender: No OFD packet to send [23:42:49]*** Cut start [23:42:49]*** Partial cut [23:42:49]*** CUTSNS_PIN = 1 [23:42:49]*** CUTSNS_PIN = 0 [23:42:49]*** Brake cut motor [23:42:49]Read from MH i2c: 01 [23:42:49]MH_I2C_Read... [23:42:49]*** Stop cut motor [23:42:49]*** Cut end [23:42:49]Read from MH i2c: 01 07 00 [23:42:49]MH_I2C_Read... [23:42:49]Read from MH i2c: 01 07 00 5C 8F 00 00 00 00 00 FF 0F 00 [23:42:49]process_action close_receipt done [23:42:49]requested_data is exist [23:42:49]produce_requested_data [23:42:49]requested_item fm.sn is exist - process it [23:42:49]wFMCommunicate request_size=4 [23:42:49]MH_SAM_APDU [23:42:49]CAPDU: 80 11 00 00 [23:42:49]Write to MH i2c: E2 08 00 5D 8F 80 11 00 00 00 00 00 00 66 [23:42:49]Write i2c OK [23:42:49]MH_I2C_Read... [23:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:50]Read from MH i2c: E2 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 17 00 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 17 00 5D 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BE [23:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:42:50]wFMCommunicate OK [23:42:50]requested_item fd.num is exist - process it [23:42:50]SAM_PROTO_GetFieldsCounters [23:42:50]wFMCommunicate request_size=4 [23:42:50]MH_SAM_APDU [23:42:50]CAPDU: 80 13 00 00 [23:42:50]Write to MH i2c: E2 08 00 5E 8F 80 13 00 00 00 00 00 00 69 [23:42:50]Write i2c OK [23:42:50]MH_I2C_Read... [23:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:50]Read from MH i2c: E2 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 62 00 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 62 00 5E 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [23:42:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5E 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:50]wFMCommunicate OK [23:42:50]SAM_PROTO_GetFieldsCounters done [23:42:50]requested_item shift.num is exist - process it [23:42:50]requested_item shift.opened is exist - process it [23:42:50]req_shift_opened [23:42:50]FM_GetShiftState [23:42:50]SAM_PROTO_GetShiftState [23:42:50]wFMCommunicate request_size=4 [23:42:50]MH_SAM_APDU [23:42:50]CAPDU: 80 13 01 00 [23:42:50]Write to MH i2c: E2 08 00 5F 8F 80 13 01 00 00 00 00 00 6B [23:42:50]Write i2c OK [23:42:50]MH_I2C_Read... [23:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:50]Read from MH i2c: E2 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 0E 00 [23:42:50]MH_I2C_Read... [23:42:50]Read from MH i2c: E2 0E 00 5F 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 74 [23:42:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:42:50]wFMCommunicate OK [23:42:50]SAM_PROTO_GetShiftState done [23:42:50]FM_GetShiftState done [23:42:50]req_shift_opened done [23:42:50]requested_item shift.open_date is exist - process it [23:42:50]req_shift_open_date [23:42:50]req_shift_open_date done [23:42:50]produce_requested_data done [23:42:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166238,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:42:50]process_action_free close_receipt [23:42:50]json_value_free [23:42:50]json_value_free done [23:42:50]process_json_proto returns [23:42:50]Send response to host [23:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166238,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:42:50]free response buf [23:42:50]execute_script done [23:42:50]execute_script returns [23:42:50]free content buf [23:42:50]Sock 5.Close socket [23:42:50]Sock 5.Thread stoped [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:46]accept exits with 6 [23:53:46]New connection [23:53:46]New thread 3066776932 created [23:53:46]Thread 3066920292 joined [23:53:46]Waiting for new connection... [23:53:46] Sock 6.Parse request [23:53:46]Sock 6.Check first char [23:53:46]Sock 6.First char is OK [23:53:46]request: POST /json_proto HTTP/1.0 [23:53:46]Method: POST [23:53:46]URL: /json_proto [23:53:46]Method is POST - this is cgi request [23:53:46]url: /json_proto [23:53:46]query_string will be loaded in cgi processing [23:53:46]execute_cgi json_proto POST (null) [23:53:46]execute_cgi path=json_proto method=POST [23:53:46]POST find Content-Length [23:53:46]Host: 172.17.53.195:8080 [23:53:46]Content-Length: 984 [23:53:46]Content-Type: application/json [23:53:46] [23:53:46]POST finish read [23:53:46]Found Content-Length = 984 [23:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:46]execute_script... [23:53:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220813", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 132.980, "sum" : 10000.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 132.98 \u0441\u043E\u043C", "deposit" : 10000.00, "total" : 10000.00, "payments": [ { "type": 0, "sum" : 10000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:46]POST & json_proto [23:53:46]process_json_proto [23:53:46]json parsed OK: [23:53:46]protocol is kg_v1.0 [23:53:46]action value=close_receipt [23:53:46]process_action close_receipt [23:53:46]cmd_close_receipt [23:53:46]MH_GetDate [23:53:46]Write to MH i2c: F0 00 00 60 8F DE [23:53:46]Write i2c OK [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: F0 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: F0 09 00 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: F0 09 00 60 8F 00 9F E9 16 67 21 48 4A 65 04 [23:53:46]GetLastDocTimeStamp 1729554186 [23:53:46]current date 1729554847 [23:53:46]FM_GetShiftState [23:53:46]SAM_PROTO_GetShiftState [23:53:46]wFMCommunicate request_size=4 [23:53:46]MH_SAM_APDU [23:53:46]CAPDU: 80 13 01 00 [23:53:46]Write to MH i2c: E2 08 00 61 8F 80 13 01 00 00 00 00 00 6D [23:53:46]Write i2c OK [23:53:46]MH_I2C_Read... [23:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:46]Read from MH i2c: E2 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: E2 0E 00 [23:53:46]MH_I2C_Read... [23:53:46]Read from MH i2c: E2 0E 00 61 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 76 [23:53:46]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:53:46]wFMCommunicate OK [23:53:46]SAM_PROTO_GetShiftState done [23:53:46]FM_GetShiftState done [23:53:46]opened in 1729470944 [23:53:46]opened+sec_in_day 1729557344 [23:53:46]quantity*price = 1000009 [23:53:46]sum+1 = 1000011 [23:53:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 10000.00 Внесено: 10000.00 СДАЧА: 0.00 НСП 1% : 88.50 НДС 12% : 1061.96 Наличными: 10000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 350 21.10.2024 23:54 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Дисконтная программа ДТ номер 161 сэкономлено 132.98 сом ФМ: 0000000000871759 ФД: 166239 ФПД: 20877233618085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T235407&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166239&fm=20877233618085&tin=02508201610067®Number=0000000000091764&sum=1000000 [23:53:47]StoreToDocumentArchive [23:53:47]shift 535 fd 166239 [23:53:47]save to /storage/0535/doc_00166239 [23:53:47]save last doc name /storage/0535/doc_00166239 to /storage/kkm_last_doc_name [23:53:47]save OK [23:53:47]Clear old archive folders... [23:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:53:47]tlvbuf is 01447BF0 [23:53:47]SAM_PROTO_ClearQueue [23:53:47]wFMCommunicate request_size=4 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 09 00 00 [23:53:47]Write to MH i2c: E2 08 00 6E 8F 80 09 00 00 00 00 00 00 6F [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 03 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 03 00 6E 8F 00 90 00 71 [23:53:47]RAPDU: 90 00 [23:53:47]wFMCommunicate OK [23:53:47]SAM_PROTO_ClearQueue done [23:53:47]KKMCreateOFDPacket [23:53:47]OFDProtocolAddRootSTLVToBuf [23:53:47]FM_MakeSignedData [23:53:47]FM_MakeSignedData [23:53:47]SAM_PROTO_SignData [23:53:47]wFMCommunicate request_size=4 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 0D 01 02 [23:53:47]Write to MH i2c: E2 08 00 6F 8F 80 0D 01 02 00 00 00 00 77 [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:53:47]Read from MH i2c: E2 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 03 00 [23:53:47]MH_I2C_Read... [23:53:47]Read from MH i2c: E2 03 00 6F 8F 00 90 00 72 [23:53:47]RAPDU: 90 00 [23:53:47]wFMCommunicate OK [23:53:47]wFMCommunicate request_size=255 [23:53:47]MH_SAM_APDU [23:53:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 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 9F E9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 89 02 00 35 04 06 00 12 FC DC 17 [23:53:47]Write to MH i2c: E2 02 01 70 8F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 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 9F E9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 89 02 00 35 04 06 00 12 FC DC 17 00 00 21 [23:53:47]Write i2c OK [23:53:47]MH_I2C_Read... [23:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:48]Read from MH i2c: E2 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 03 00 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 03 00 70 8F 00 90 00 73 [23:53:48]RAPDU: 90 00 [23:53:48]wFMCommunicate OK [23:53:48]wFMCommunicate request_size=7 [23:53:48]MH_SAM_APDU [23:53:48]CAPDU: 80 0D 02 02 02 FC A5 [23:53:48]Write to MH i2c: E2 0A 00 71 8F 80 0D 02 02 02 00 FC A5 00 00 1F [23:53:48]Write i2c OK [23:53:48]MH_I2C_Read... [23:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:53:48]Read from MH i2c: E2 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 03 00 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 03 00 71 8F 00 90 00 74 [23:53:48]RAPDU: 90 00 [23:53:48]wFMCommunicate OK [23:53:48]wFMCommunicate request_size=4 [23:53:48]MH_SAM_APDU [23:53:48]CAPDU: 80 0D 03 02 [23:53:48]Write to MH i2c: E2 08 00 72 8F 80 0D 03 02 00 00 00 00 7C [23:53:48]Write i2c OK [23:53:48]MH_I2C_Read... [23:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:53:48]Read from MH i2c: E2 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 0B 00 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 0B 00 72 8F 00 41 69 6D E9 8D DF AD 26 90 00 BC [23:53:48]RAPDU: 41 69 6D E9 8D DF AD 26 90 00 [23:53:48]wFMCommunicate OK [23:53:48]SAM_PROTO_SignData done [23:53:48]FM_MakeSignedData done [23:53:48]CreateOFDProtocolMessage [23:53:48]wFMCommunicate request_size=4 [23:53:48]MH_SAM_APDU [23:53:48]CAPDU: 80 11 00 00 [23:53:48]Write to MH i2c: E2 08 00 73 8F 80 11 00 00 00 00 00 00 7C [23:53:48]Write i2c OK [23:53:48]MH_I2C_Read... [23:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:48]Read from MH i2c: E2 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 17 00 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: E2 17 00 73 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [23:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:53:48]wFMCommunicate OK [23:53:48]CreateOFDProtocolMessage done [23:53:48]OFDSenderStorePacket 166239 [23:53:48]StoreOFDPacket docnum=166239 [23:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 C8 04 01 B2 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 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 9F E9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 89 02 00 35 04 06 00 12 FC DC 17 FC A5 41 69 6D E9 8D DF AD 26 [23:53:48]CheckFolder [23:53:48]dirname=/storage/ofd_packets [23:53:48]CheckFolder done [23:53:48]ProducePacketName [23:53:48]name=ofd_packets/00166239 [23:53:48]NVStorageSaveData ofd_packets/00166239 [23:53:48]File name is /storage/ofd_packets/00166239 [23:53:48]Write 298 bytes [23:53:48]NVStorageSaveData done [23:53:48]OFDSenderStorePacket done [23:53:48]KKMCreateOFDPacket done [23:53:48]NVStorageSaveData kkm_last_timestamp [23:53:48]File name is /storage/kkm_last_timestamp [23:53:48]Write 4 bytes [23:53:48]NVStorageSaveData done [23:53:48]ExternCall_PrintAddStr [23:53:48]wPrintStart [23:53:48]Write to MH i2c: 01 00 00 74 8F 03 [23:53:48]Write i2c OK [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: 01 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: 01 07 00 [23:53:48]MH_I2C_Read... [23:53:48]Read from MH i2c: 01 07 00 74 8F 00 00 00 00 00 FF 0F 18 [23:53:48]RasterBufferAndPrint [23:53:48]line Счет N : (1)220813 [23:53:48]line ИНН: 02508201610067 [23:53:48]line Контрольно-Кассовый Чек [23:53:48]line ПРОДАЖА [23:53:48]line ТРК (МРК, ГНК) : 21 [23:53:48]line Товар: 2710194210 [23:53:48]line ДТ-К-5 [23:53:48]line 132.980 * 75.20 [23:53:48]line = 10000.10 [23:53:48]line НДС 12% НСП 1% [23:53:48]line > о реализуемом товаре [23:53:48]line ОКРУГЛЕНИЕ: -0.10 [23:53:48]line ИТОГО: 10000.00 [23:53:48]line Внесено: 10000.00 [23:53:48]line СДАЧА: 0.00 [23:53:48]line НСП 1% : 88.50 [23:53:48]line НДС 12% : 1061.96 [23:53:48]line Наличными: 10000.00 [23:53:48]line Безнал.: 0.00 [23:53:48]line Место: АЗС № 161 "Партнер Нефть" [23:53:48]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [23:53:48]line СНО: Общий режим [23:53:48]line Чек 350 21.10.2024 23:54 [23:53:48]line Смена: 535 ФФД: 1.0 [23:53:48]line ЗНМ: 0300000104 [23:53:48]line РНМ: 0000000000091764 [23:53:48]line Версия ККМ: 001 [23:53:48]line [23:53:48]line Дисконтная программа [23:53:48]line ДТ [23:53:48]line номер 161 [23:53:48]line сэкономлено 132.98 сом [23:53:48]line ФМ: 0000000000871759 [23:53:48]line ФД: 166239 [23:53:48]line ФПД: 20877233618085 [23:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241021T235407&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166239&fm=20877233618085&tin=02508201610067®Number=0000000000091764&sum=1000000 [23:53:48]OFD Sender: Processing packet 166239 [packets to send 48, broken 47] [23:53:48]ProducePacketName [23:53:48]name=ofd_packets/00166239 [23:53:48]OFD Sender: To server: pG, [23:53:48]CommunicateWithHost lk.salyk.kg:30040 [23:53:48]ConnectInit lk.salyk.kg [23:53:48]written 0, free lines is 4095 [23:53:48]Connected sock=7 [23:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 C8 04 01 B2 B6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 07 02 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 4A 42 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 42 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 9E 01 00 00 00 07 04 06 00 40 42 0F 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 9F E9 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 5F 89 02 00 35 04 06 00 12 FC DC 17 FC A5 41 69 6D E9 8D DF AD 26 [23:53:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F1 DF 47 00 49 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 35 39 10 04 04 00 5F 89 02 00 F4 03 04 00 0C 90 16 67 B6 04 01 00 00 5C 48 87 9E 09 3A 48 10 [23:53:48]CommunicateWithHost err = 0 [23:53:48]CheckOFDResponse [23:53:48]1017 (14) - 77093643461234 [23:53:48]1041 (16) - 0000000000871759 [23:53:48]1040 (4) - 166239 [23:53:48]1012 (4) - 21.10.2024 17:31 [23:53:48]1206 (1) - 0 [23:53:48]OFD Sender: Remove packet 166239 [23:53:48]ProducePacketName [23:53:48]name=ofd_packets/00166239 [23:53:48]NVStorageDeleteData [23:53:49]Write to MH i2c: 01 00 00 A4 8F 33 [23:53:49]Write i2c OK [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: 01 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: 01 07 00 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: 01 07 00 A4 8F 00 00 00 00 00 50 0C 96 [23:53:49]RasterBufferAndPrint [23:53:49]line [23:53:49]line [23:53:49]line [23:53:49]line [23:53:49]line [23:53:49]written 0, free lines is 3158 [23:53:49]MH_Cut [23:53:49]Write to MH i2c: D1 01 00 AB 8F 01 0C [23:53:49]Write i2c OK [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: D1 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: D1 01 00 [23:53:49]MH_I2C_Read... [23:53:49]Read from MH i2c: D1 01 00 AB 8F 00 0B [23:53:49]Write to MH i2c: 01 00 00 AC 8F 3B [23:53:49]Write i2c OK [23:53:49]MH_I2C_Read... [23:53:49]OFD Sender: No OFD packet to send [23:53:49]*** Cut start [23:53:49]*** Partial cut [23:53:49]*** CUTSNS_PIN = 1 [23:53:50]*** CUTSNS_PIN = 0 [23:53:50]*** Brake cut motor [23:53:50]Read from MH i2c: 01 [23:53:50]MH_I2C_Read... [23:53:50]*** Stop cut motor [23:53:50]*** Cut end [23:53:50]Read from MH i2c: 01 07 00 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: 01 07 00 AC 8F 00 00 00 00 00 FF 0F 50 [23:53:50]process_action close_receipt done [23:53:50]requested_data is exist [23:53:50]produce_requested_data [23:53:50]requested_item fm.sn is exist - process it [23:53:50]wFMCommunicate request_size=4 [23:53:50]MH_SAM_APDU [23:53:50]CAPDU: 80 11 00 00 [23:53:50]Write to MH i2c: E2 08 00 AD 8F 80 11 00 00 00 00 00 00 B6 [23:53:50]Write i2c OK [23:53:50]MH_I2C_Read... [23:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:50]Read from MH i2c: E2 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 17 00 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 17 00 AD 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0E [23:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [23:53:50]wFMCommunicate OK [23:53:50]requested_item fd.num is exist - process it [23:53:50]SAM_PROTO_GetFieldsCounters [23:53:50]wFMCommunicate request_size=4 [23:53:50]MH_SAM_APDU [23:53:50]CAPDU: 80 13 00 00 [23:53:50]Write to MH i2c: E2 08 00 AE 8F 80 13 00 00 00 00 00 00 B9 [23:53:50]Write i2c OK [23:53:50]MH_I2C_Read... [23:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:50]Read from MH i2c: E2 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 62 00 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 62 00 AE 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [23:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 5F 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:53:50]wFMCommunicate OK [23:53:50]SAM_PROTO_GetFieldsCounters done [23:53:50]requested_item shift.num is exist - process it [23:53:50]requested_item shift.opened is exist - process it [23:53:50]req_shift_opened [23:53:50]FM_GetShiftState [23:53:50]SAM_PROTO_GetShiftState [23:53:50]wFMCommunicate request_size=4 [23:53:50]MH_SAM_APDU [23:53:50]CAPDU: 80 13 01 00 [23:53:50]Write to MH i2c: E2 08 00 AF 8F 80 13 01 00 00 00 00 00 BB [23:53:50]Write i2c OK [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 [23:53:50]MH_I2C_Read... [23:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:50]Read from MH i2c: E2 0E 00 [23:53:50]MH_I2C_Read... [23:53:50]Read from MH i2c: E2 0E 00 AF 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C4 [23:53:50]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [23:53:50]wFMCommunicate OK [23:53:50]SAM_PROTO_GetShiftState done [23:53:50]FM_GetShiftState done [23:53:50]req_shift_opened done [23:53:50]requested_item shift.open_date is exist - process it [23:53:50]req_shift_open_date [23:53:50]req_shift_open_date done [23:53:50]produce_requested_data done [23:53:50]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166239,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [23:53:50]process_action_free close_receipt [23:53:50]json_value_free [23:53:50]json_value_free done [23:53:50]process_json_proto returns [23:53:50]Send response to host [23:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166239,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [23:53:50]free response buf [23:53:50]execute_script done [23:53:50]execute_script returns [23:53:50]free content buf [23:53:50]Sock 6.Close socket [23:53:50]Sock 6.Thread stoped [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:04]OFD Sender: No OFD packet to send [23:59:09]OFD Sender: No OFD packet to send [23:59:14]OFD Sender: No OFD packet to send [23:59:19]OFD Sender: No OFD packet to send [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:54]OFD Sender: No OFD packet to send [23:59:59]OFD Sender: No OFD packet to send [00:00:04]OFD Sender: No OFD packet to send [00:00:09]OFD Sender: No OFD packet to send [00:00:14]OFD Sender: No OFD packet to send [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:40]OFD Sender: No OFD packet to send [00:04:45]OFD Sender: No OFD packet to send [00:04:50]OFD Sender: No OFD packet to send [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:24]accept exits with 5 [00:06:24]New connection [00:06:24]New thread 3066920292 created [00:06:24]Thread 3066776932 joined [00:06:24]Waiting for new connection... [00:06:24] Sock 5.Parse request [00:06:24]Sock 5.Check first char [00:06:24]Sock 5.First char is OK [00:06:24]request: POST /json_proto HTTP/1.0 [00:06:24]Method: POST [00:06:24]URL: /json_proto [00:06:24]Method is POST - this is cgi request [00:06:24]url: /json_proto [00:06:24]query_string will be loaded in cgi processing [00:06:24]execute_cgi json_proto POST (null) [00:06:24]execute_cgi path=json_proto method=POST [00:06:24]POST find Content-Length [00:06:24]Host: 172.17.53.195:8080 [00:06:24]Content-Length: 677 [00:06:24]Content-Type: application/json [00:06:24] [00:06:24]POST finish read [00:06:24]Found Content-Length = 677 [00:06:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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:06:24]execute_script... [00:06:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220814", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "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:06:24]POST & json_proto [00:06:24]process_json_proto [00:06:24]json parsed OK: [00:06:24]protocol is kg_v1.0 [00:06:24]action value=close_receipt [00:06:24]process_action close_receipt [00:06:24]cmd_close_receipt [00:06:24]MH_GetDate [00:06:24]Write to MH i2c: F0 00 00 B0 8F 2E [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: F0 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: F0 09 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: F0 09 00 B0 8F 00 95 EC 16 67 21 48 4A 65 4D [00:06:24]GetLastDocTimeStamp 1729554847 [00:06:24]current date 1729555605 [00:06:24]FM_GetShiftState [00:06:24]SAM_PROTO_GetShiftState [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 13 01 00 [00:06:24]Write to MH i2c: E2 08 00 B1 8F 80 13 01 00 00 00 00 00 BD [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 0E 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 0E 00 B1 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 C6 [00:06:24]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:06:24]wFMCommunicate OK [00:06:24]SAM_PROTO_GetShiftState done [00:06:24]FM_GetShiftState done [00:06:24]opened in 1729470944 [00:06:24]opened+sec_in_day 1729557344 [00:06:24]quantity*price = 50010 [00:06:24]sum+1 = 50012 [00:06:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 351 22.10.2024 00:06 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166240 ФПД: 83793959534343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000645&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166240&fm=83793959534343&tin=02508201610067®Number=0000000000091764&sum=50000 [00:06:25]StoreToDocumentArchive [00:06:25]shift 535 fd 166240 [00:06:25]save to /storage/0535/doc_00166240 [00:06:25]save last doc name /storage/0535/doc_00166240 to /storage/kkm_last_doc_name [00:06:25]save OK [00:06:25]Clear old archive folders... [00:06:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:06:25]tlvbuf is 015FC830 [00:06:25]SAM_PROTO_ClearQueue [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 09 00 00 [00:06:25]Write to MH i2c: E2 08 00 BE 8F 80 09 00 00 00 00 00 00 BF [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 BE 8F 00 90 00 C1 [00:06:25]RAPDU: 90 00 [00:06:25]wFMCommunicate OK [00:06:25]SAM_PROTO_ClearQueue done [00:06:25]KKMCreateOFDPacket [00:06:25]OFDProtocolAddRootSTLVToBuf [00:06:25]FM_MakeSignedData [00:06:25]FM_MakeSignedData [00:06:25]SAM_PROTO_SignData [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 0D 01 02 [00:06:25]Write to MH i2c: E2 08 00 BF 8F 80 0D 01 02 00 00 00 00 C7 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 BF 8F 00 90 00 C2 [00:06:25]RAPDU: 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=255 [00:06:25]MH_SAM_APDU [00:06: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 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 5F 01 00 00 F4 03 04 00 95 EC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 89 02 00 35 04 06 00 4C [00:06:25]Write to MH i2c: E2 02 01 C0 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5F 01 00 00 F4 03 04 00 95 EC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 89 02 00 35 04 06 00 4C 00 00 E3 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 C0 8F 00 90 00 C3 [00:06:25]RAPDU: 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=10 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 0D 02 02 05 35 CD 31 3F 07 [00:06:25]Write to MH i2c: E2 0D 00 C1 8F 80 0D 02 02 05 00 35 CD 31 3F 07 00 00 4D [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 03 00 C1 8F 00 90 00 C4 [00:06:25]RAPDU: 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 0D 03 02 [00:06:25]Write to MH i2c: E2 08 00 C2 8F 80 0D 03 02 00 00 00 00 CC [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 0B 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 0B 00 C2 8F 00 D1 1E 56 05 0B 54 ED BA 90 00 1D [00:06:25]RAPDU: D1 1E 56 05 0B 54 ED BA 90 00 [00:06:25]wFMCommunicate OK [00:06:25]SAM_PROTO_SignData done [00:06:25]FM_MakeSignedData done [00:06:25]CreateOFDProtocolMessage [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 11 00 00 [00:06:25]Write to MH i2c: E2 08 00 C3 8F 80 11 00 00 00 00 00 00 CC [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 17 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 17 00 C3 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 24 [00:06:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:06:25]wFMCommunicate OK [00:06:25]CreateOFDProtocolMessage done [00:06:25]OFDSenderStorePacket 166240 [00:06:25]StoreOFDPacket docnum=166240 [00:06:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 E0 07 01 4C 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 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 5F 01 00 00 F4 03 04 00 95 EC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 89 02 00 35 04 06 00 4C 35 CD 31 3F 07 D1 1E 56 05 0B 54 ED BA [00:06:25]CheckFolder [00:06:25]dirname=/storage/ofd_packets [00:06:25]CheckFolder done [00:06:25]ProducePacketName [00:06:25]name=ofd_packets/00166240 [00:06:25]NVStorageSaveData ofd_packets/00166240 [00:06:25]File name is /storage/ofd_packets/00166240 [00:06:25]Write 301 bytes [00:06:25]NVStorageSaveData done [00:06:25]OFDSenderStorePacket done [00:06:25]KKMCreateOFDPacket done [00:06:25]NVStorageSaveData kkm_last_timestamp [00:06:25]File name is /storage/kkm_last_timestamp [00:06:25]Write 4 bytes [00:06:25]NVStorageSaveData done [00:06:25]ExternCall_PrintAddStr [00:06:25]wPrintStart [00:06:25]Write to MH i2c: 01 00 00 C4 8F 53 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: 01 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: 01 07 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: 01 07 00 C4 8F 00 00 00 00 00 FF 0F 68 [00:06:25]RasterBufferAndPrint [00:06:25]line Счет N : (1)220814 [00:06:25]line ИНН: 02508201610067 [00:06:25]line Контрольно-Кассовый Чек [00:06:25]line ПРОДАЖА [00:06:25]line ТРК (МРК, ГНК) : 14 [00:06:25]line Товар: 2710124500 [00:06:25]line Аи-95-К-5 [00:06:25]line 6.740 * 74.20 [00:06:25]line = 500.11 [00:06:25]line НДС 12% НСП 1% [00:06:25]line > о реализуемом товаре [00:06:25]line ОКРУГЛЕНИЕ: -0.11 [00:06:25]line ИТОГО: 500.00 [00:06:25]line Внесено: 500.00 [00:06:25]line СДАЧА: 0.00 [00:06:25]line НСП 1% : 4.43 [00:06:25]line НДС 12% : 53.11 [00:06:25]line Наличными: 500.00 [00:06:25]line Безнал.: 0.00 [00:06:25]line Место: АЗС № 161 "Партнер Нефть" [00:06:25]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:06:25]line СНО: Общий режим [00:06:25]line Чек 351 22.10.2024 00:06 [00:06:25]line Смена: 535 ФФД: 1.0 [00:06:25]line ЗНМ: 0300000104 [00:06:25]line РНМ: 0000000000091764 [00:06:25]line Версия ККМ: 001 [00:06:25]line ФМ: 0000000000871759 [00:06:25]line ФД: 166240 [00:06:25]line ФПД: 83793959534343 [00:06:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T000645&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166240&fm=83793959534343&tin=02508201610067®Number=0000000000091764&sum=50000 [00:06:26]OFD Sender: Processing packet 166240 [packets to send 48, broken 47] [00:06:26]ProducePacketName [00:06:26]name=ofd_packets/00166240 [00:06:26]OFD Sender: To server: pG, [00:06:26]CommunicateWithHost lk.salyk.kg:30040 [00:06:26]ConnectInit lk.salyk.kg [00:06:26]written 0, free lines is 4095 [00:06:26]Connected sock=7 [00:06:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B5 E0 07 01 4C 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 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 5F 01 00 00 F4 03 04 00 95 EC 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 89 02 00 35 04 06 00 4C 35 CD 31 3F 07 D1 1E 56 05 0B 54 ED BA [00:06:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 DD F6 47 00 3E 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 60 89 02 00 F4 03 04 00 02 93 16 67 B6 04 01 00 00 DD BA 5E 7F C9 81 A8 2C [00:06:26]CommunicateWithHost err = 0 [00:06:26]CheckOFDResponse [00:06:26]1017 (14) - 77093643461234 [00:06:26]1041 (16) - 0000000000871759 [00:06:26]1040 (4) - 166240 [00:06:26]1012 (4) - 21.10.2024 17:44 [00:06:26]1206 (1) - 0 [00:06:26]OFD Sender: Remove packet 166240 [00:06:26]ProducePacketName [00:06:26]name=ofd_packets/00166240 [00:06:26]NVStorageDeleteData [00:06:26]Write to MH i2c: 01 00 00 EF 8F 7E [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: 01 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: 01 07 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: 01 07 00 EF 8F 00 00 00 00 00 B5 0C 46 [00:06:26]RasterBufferAndPrint [00:06:26]line [00:06:26]line [00:06:26]line [00:06:26]line [00:06:26]line [00:06:26]written 0, free lines is 3263 [00:06:26]MH_Cut [00:06:26]Write to MH i2c: D1 01 00 F6 8F 01 57 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: D1 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: D1 01 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: D1 01 00 F6 8F 00 56 [00:06:26]Write to MH i2c: 01 00 00 F7 8F 86 [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:27]OFD Sender: No OFD packet to send [00:06:27]*** Cut start [00:06:27]*** Partial cut [00:06:27]*** CUTSNS_PIN = 1 [00:06:27]*** CUTSNS_PIN = 0 [00:06:27]*** Brake cut motor [00:06:28]Read from MH i2c: 01 [00:06:28]MH_I2C_Read... [00:06:28]*** Stop cut motor [00:06:28]*** Cut end [00:06:28]Read from MH i2c: 01 07 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: 01 07 00 F7 8F 00 00 00 00 00 FF 0F 9B [00:06:28]process_action close_receipt done [00:06:28]requested_data is exist [00:06:28]produce_requested_data [00:06:28]requested_item fm.sn is exist - process it [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 11 00 00 [00:06:28]Write to MH i2c: E2 08 00 F8 8F 80 11 00 00 00 00 00 00 01 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 17 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 17 00 F8 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 59 [00:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:06:28]wFMCommunicate OK [00:06:28]requested_item fd.num is exist - process it [00:06:28]SAM_PROTO_GetFieldsCounters [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 13 00 00 [00:06:28]Write to MH i2c: E2 08 00 F9 8F 80 13 00 00 00 00 00 00 04 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 62 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 62 00 F9 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [00:06:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 60 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:28]wFMCommunicate OK [00:06:28]SAM_PROTO_GetFieldsCounters done [00:06:28]requested_item shift.num is exist - process it [00:06:28]requested_item shift.opened is exist - process it [00:06:28]req_shift_opened [00:06:28]FM_GetShiftState [00:06:28]SAM_PROTO_GetShiftState [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 13 01 00 [00:06:28]Write to MH i2c: E2 08 00 FA 8F 80 13 01 00 00 00 00 00 06 [00:06:28]Write i2c OK [00:06:28]MH_I2C_Read... [00:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:28]Read from MH i2c: E2 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 0E 00 [00:06:28]MH_I2C_Read... [00:06:28]Read from MH i2c: E2 0E 00 FA 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0F [00:06:28]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:06:28]wFMCommunicate OK [00:06:28]SAM_PROTO_GetShiftState done [00:06:28]FM_GetShiftState done [00:06:28]req_shift_opened done [00:06:28]requested_item shift.open_date is exist - process it [00:06:28]req_shift_open_date [00:06:28]req_shift_open_date done [00:06:28]produce_requested_data done [00:06:28]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166240,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:06:28]process_action_free close_receipt [00:06:28]json_value_free [00:06:28]json_value_free done [00:06:28]process_json_proto returns [00:06:28]Send response to host [00:06:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166240,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:06:28]free response buf [00:06:28]execute_script done [00:06:28]execute_script returns [00:06:28]free content buf [00:06:28]Sock 5.Close socket [00:06:28]Sock 5.Thread stoped [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:40]accept exits with 6 [00:14:40]New connection [00:14:40]New thread 3066776932 created [00:14:40]Thread 3066920292 joined [00:14:40]Waiting for new connection... [00:14:40] Sock 6.Parse request [00:14:40]Sock 6.Check first char [00:14:40]Sock 6.First char is OK [00:14:40]request: POST /json_proto HTTP/1.0 [00:14:40]Method: POST [00:14:40]URL: /json_proto [00:14:40]Method is POST - this is cgi request [00:14:40]url: /json_proto [00:14:40]query_string will be loaded in cgi processing [00:14:40]execute_cgi json_proto POST (null) [00:14:40]execute_cgi path=json_proto method=POST [00:14:40]POST find Content-Length [00:14:40]Host: 172.17.53.195:8080 [00:14:40]Content-Length: 682 [00:14:40]Content-Type: application/json [00:14:40] [00:14:40]POST finish read [00:14:40]Found Content-Length = 682 [00:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:40]execute_script... [00:14: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)220815", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:14:40]POST & json_proto [00:14:40]process_json_proto [00:14:40]json parsed OK: [00:14:40]protocol is kg_v1.0 [00:14:40]action value=close_receipt [00:14:40]process_action close_receipt [00:14:40]cmd_close_receipt [00:14:40]MH_GetDate [00:14:40]Write to MH i2c: F0 00 00 FB 8F 79 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: F0 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: F0 09 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: F0 09 00 FB 8F 00 85 EE 16 67 21 48 4A 65 8A [00:14:40]GetLastDocTimeStamp 1729555605 [00:14:40]current date 1729556101 [00:14:40]FM_GetShiftState [00:14:40]SAM_PROTO_GetShiftState [00:14:40]wFMCommunicate request_size=4 [00:14:40]MH_SAM_APDU [00:14:40]CAPDU: 80 13 01 00 [00:14:40]Write to MH i2c: E2 08 00 FC 8F 80 13 01 00 00 00 00 00 08 [00:14:40]Write i2c OK [00:14:40]MH_I2C_Read... [00:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:40]Read from MH i2c: E2 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 0E 00 [00:14:40]MH_I2C_Read... [00:14:40]Read from MH i2c: E2 0E 00 FC 8F 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 11 [00:14:40]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:14:40]wFMCommunicate OK [00:14:40]SAM_PROTO_GetShiftState done [00:14:40]FM_GetShiftState done [00:14:40]opened in 1729470944 [00:14:40]opened+sec_in_day 1729557344 [00:14:40]quantity*price = 100015 [00:14:40]sum+1 = 100017 [00:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 352 22.10.2024 00:15 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166241 ФПД: 160053300069603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166241&fm=160053300069603&tin=02508201610067®Number=0000000000091764&sum=100000 [00:14:41]StoreToDocumentArchive [00:14:41]shift 535 fd 166241 [00:14:41]save to /storage/0535/doc_00166241 [00:14:41]save last doc name /storage/0535/doc_00166241 to /storage/kkm_last_doc_name [00:14:41]save OK [00:14:41]Clear old archive folders... [00:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:14:41]tlvbuf is 0163F9C0 [00:14:41]SAM_PROTO_ClearQueue [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 09 00 00 [00:14:41]Write to MH i2c: E2 08 00 09 90 80 09 00 00 00 00 00 00 0B [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:14:41]Read from MH i2c: E2 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 03 00 [00:14:41]MH_I2C_Read... [00:14:41]Read from MH i2c: E2 03 00 09 90 00 90 00 0D [00:14:41]RAPDU: 90 00 [00:14:41]wFMCommunicate OK [00:14:41]SAM_PROTO_ClearQueue done [00:14:41]KKMCreateOFDPacket [00:14:41]OFDProtocolAddRootSTLVToBuf [00:14:41]FM_MakeSignedData [00:14:41]FM_MakeSignedData [00:14:41]SAM_PROTO_SignData [00:14:41]wFMCommunicate request_size=4 [00:14:41]MH_SAM_APDU [00:14:41]CAPDU: 80 0D 01 02 [00:14:41]Write to MH i2c: E2 08 00 0A 90 80 0D 01 02 00 00 00 00 13 [00:14:41]Write i2c OK [00:14:41]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 03 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 03 00 0A 90 00 90 00 0E [00:14:42]RAPDU: 90 00 [00:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=255 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 85 EE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 89 02 00 35 04 06 00 91 [00:14:42]Write to MH i2c: E2 02 01 0B 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 85 EE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 89 02 00 35 04 06 00 91 00 00 8A [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 03 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 03 00 0B 90 00 90 00 0F [00:14:42]RAPDU: 90 00 [00:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=10 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 0D 02 02 05 91 50 18 84 E3 [00:14:42]Write to MH i2c: E2 0D 00 0C 90 80 0D 02 02 05 00 91 50 18 84 E3 00 00 80 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 03 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 03 00 0C 90 00 90 00 10 [00:14:42]RAPDU: 90 00 [00:14:42]wFMCommunicate OK [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 0D 03 02 [00:14:42]Write to MH i2c: E2 08 00 0D 90 80 0D 03 02 00 00 00 00 18 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 0B 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 0B 00 0D 90 00 2F F2 77 41 32 2A BD D4 90 00 DF [00:14:42]RAPDU: 2F F2 77 41 32 2A BD D4 90 00 [00:14:42]wFMCommunicate OK [00:14:42]SAM_PROTO_SignData done [00:14:42]FM_MakeSignedData done [00:14:42]CreateOFDProtocolMessage [00:14:42]wFMCommunicate request_size=4 [00:14:42]MH_SAM_APDU [00:14:42]CAPDU: 80 11 00 00 [00:14:42]Write to MH i2c: E2 08 00 0E 90 80 11 00 00 00 00 00 00 18 [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:42]Read from MH i2c: E2 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 17 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: E2 17 00 0E 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 70 [00:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:14:42]wFMCommunicate OK [00:14:42]CreateOFDProtocolMessage done [00:14:42]OFDSenderStorePacket 166241 [00:14:42]StoreOFDPacket docnum=166241 [00:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 33 07 01 92 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 85 EE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 89 02 00 35 04 06 00 91 91 50 18 84 E3 2F F2 77 41 32 2A BD D4 [00:14:42]CheckFolder [00:14:42]dirname=/storage/ofd_packets [00:14:42]CheckFolder done [00:14:42]ProducePacketName [00:14:42]name=ofd_packets/00166241 [00:14:42]NVStorageSaveData ofd_packets/00166241 [00:14:42]File name is /storage/ofd_packets/00166241 [00:14:42]Write 301 bytes [00:14:42]NVStorageSaveData done [00:14:42]OFDSenderStorePacket done [00:14:42]KKMCreateOFDPacket done [00:14:42]NVStorageSaveData kkm_last_timestamp [00:14:42]File name is /storage/kkm_last_timestamp [00:14:42]Write 4 bytes [00:14:42]NVStorageSaveData done [00:14:42]ExternCall_PrintAddStr [00:14:42]wPrintStart [00:14:42]Write to MH i2c: 01 00 00 0F 90 9F [00:14:42]Write i2c OK [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: 01 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: 01 07 00 [00:14:42]MH_I2C_Read... [00:14:42]Read from MH i2c: 01 07 00 0F 90 00 00 00 00 00 FF 0F B4 [00:14:42]RasterBufferAndPrint [00:14:42]line Счет N : (1)220815 [00:14:42]line ИНН: 02508201610067 [00:14:42]line Контрольно-Кассовый Чек [00:14:42]line ПРОДАЖА [00:14:42]line ТРК (МРК, ГНК) : 23 [00:14:42]line Товар: 2710124130 [00:14:42]line Аи-92-К-5 [00:14:42]line 14.950 * 66.90 [00:14:42]line = 1000.16 [00:14:42]line НДС 12% НСП 1% [00:14:42]line > о реализуемом товаре [00:14:42]line ОКРУГЛЕНИЕ: -0.16 [00:14:42]line ИТОГО: 1000.00 [00:14:42]line Внесено: 1000.00 [00:14:42]line СДАЧА: 0.00 [00:14:42]line НСП 1% : 8.85 [00:14:42]line НДС 12% : 106.21 [00:14:42]line Наличными: 1000.00 [00:14:42]line Безнал.: 0.00 [00:14:42]line Место: АЗС № 161 "Партнер Нефть" [00:14:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:14:42]line СНО: Общий режим [00:14:42]line Чек 352 22.10.2024 00:15 [00:14:42]line Смена: 535 ФФД: 1.0 [00:14:42]line ЗНМ: 0300000104 [00:14:42]line РНМ: 0000000000091764 [00:14:42]line Версия ККМ: 001 [00:14:42]line ФМ: 0000000000871759 [00:14:42]line ФД: 166241 [00:14:42]line ФПД: 160053300069603 [00:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001501&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166241&fm=160053300069603&tin=02508201610067®Number=0000000000091764&sum=100000 [00:14:42]OFD Sender: Processing packet 166241 [packets to send 48, broken 47] [00:14:42]ProducePacketName [00:14:42]name=ofd_packets/00166241 [00:14:42]OFD Sender: To server: pG, [00:14:42]CommunicateWithHost lk.salyk.kg:30040 [00:14:42]ConnectInit lk.salyk.kg [00:14:42]written 0, free lines is 4095 [00:14:42]Connected sock=9 [00:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 E8 33 07 01 92 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 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 85 EE 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 89 02 00 35 04 06 00 91 91 50 18 84 E3 2F F2 77 41 32 2A BD D4 [00:14:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5E D0 47 00 76 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 61 89 02 00 F4 03 04 00 F2 94 16 67 B6 04 01 00 00 B5 FF A0 3C 89 2E 6D 5B [00:14:43]CommunicateWithHost err = 0 [00:14:43]CheckOFDResponse [00:14:43]1017 (14) - 77093643461234 [00:14:43]1041 (16) - 0000000000871759 [00:14:43]1040 (4) - 166241 [00:14:43]1012 (4) - 21.10.2024 17:52 [00:14:43]1206 (1) - 0 [00:14:43]OFD Sender: Remove packet 166241 [00:14:43]ProducePacketName [00:14:43]name=ofd_packets/00166241 [00:14:43]NVStorageDeleteData [00:14:43]Write to MH i2c: 01 00 00 3A 90 CA [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: 01 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: 01 07 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: 01 07 00 3A 90 00 00 00 00 00 BB 0C 98 [00:14:43]RasterBufferAndPrint [00:14:43]line [00:14:43]line [00:14:43]line [00:14:43]line [00:14:43]line [00:14:43]written 0, free lines is 3265 [00:14:43]MH_Cut [00:14:43]Write to MH i2c: D1 01 00 41 90 01 A3 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: D1 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: D1 01 00 [00:14:43]MH_I2C_Read... [00:14:43]Read from MH i2c: D1 01 00 41 90 00 A2 [00:14:43]Write to MH i2c: 01 00 00 42 90 D2 [00:14:43]Write i2c OK [00:14:43]MH_I2C_Read... [00:14:43]OFD Sender: No OFD packet to send [00:14:44]*** Cut start [00:14:44]*** Partial cut [00:14:44]*** CUTSNS_PIN = 1 [00:14:44]*** CUTSNS_PIN = 0 [00:14:44]*** Brake cut motor [00:14:44]Read from MH i2c: 01 [00:14:44]MH_I2C_Read... [00:14:44]*** Stop cut motor [00:14:44]*** Cut end [00:14:44]Read from MH i2c: 01 07 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: 01 07 00 42 90 00 00 00 00 00 FF 0F E7 [00:14:44]process_action close_receipt done [00:14:44]requested_data is exist [00:14:44]produce_requested_data [00:14:44]requested_item fm.sn is exist - process it [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 11 00 00 [00:14:44]Write to MH i2c: E2 08 00 43 90 80 11 00 00 00 00 00 00 4D [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 [00:14:44]MH_I2C_Read... [00:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:14:44]Read from MH i2c: E2 17 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 17 00 43 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A5 [00:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:14:44]wFMCommunicate OK [00:14:44]requested_item fd.num is exist - process it [00:14:44]SAM_PROTO_GetFieldsCounters [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 13 00 00 [00:14:44]Write to MH i2c: E2 08 00 44 90 80 13 00 00 00 00 00 00 50 [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:14:44]Read from MH i2c: E2 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 62 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 62 00 44 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [00:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 61 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:14:44]wFMCommunicate OK [00:14:44]SAM_PROTO_GetFieldsCounters done [00:14:44]requested_item shift.num is exist - process it [00:14:44]requested_item shift.opened is exist - process it [00:14:44]req_shift_opened [00:14:44]FM_GetShiftState [00:14:44]SAM_PROTO_GetShiftState [00:14:44]wFMCommunicate request_size=4 [00:14:44]MH_SAM_APDU [00:14:44]CAPDU: 80 13 01 00 [00:14:44]Write to MH i2c: E2 08 00 45 90 80 13 01 00 00 00 00 00 52 [00:14:44]Write i2c OK [00:14:44]MH_I2C_Read... [00:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:14:44]Read from MH i2c: E2 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 0E 00 [00:14:44]MH_I2C_Read... [00:14:44]Read from MH i2c: E2 0E 00 45 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5B [00:14:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:14:44]wFMCommunicate OK [00:14:44]SAM_PROTO_GetShiftState done [00:14:44]FM_GetShiftState done [00:14:44]req_shift_opened done [00:14:44]requested_item shift.open_date is exist - process it [00:14:44]req_shift_open_date [00:14:44]req_shift_open_date done [00:14:44]produce_requested_data done [00:14:44]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166241,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:14:44]process_action_free close_receipt [00:14:44]json_value_free [00:14:44]json_value_free done [00:14:44]process_json_proto returns [00:14:44]Send response to host [00:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166241,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:14:44]free response buf [00:14:44]execute_script done [00:14:44]execute_script returns [00:14:44]free content buf [00:14:44]Sock 6.Close socket [00:14:44]Sock 6.Thread stoped [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:44]accept exits with 5 [00:16:44]New connection [00:16:44]New thread 3066920292 created [00:16:44]Thread 3066776932 joined [00:16:44]Waiting for new connection... [00:16:44] Sock 5.Parse request [00:16:44]Sock 5.Check first char [00:16:44]Sock 5.First char is OK [00:16:44]request: POST /json_proto HTTP/1.0 [00:16:44]Method: POST [00:16:44]URL: /json_proto [00:16:44]Method is POST - this is cgi request [00:16:44]url: /json_proto [00:16:44]query_string will be loaded in cgi processing [00:16:44]execute_cgi json_proto POST (null) [00:16:44]execute_cgi path=json_proto method=POST [00:16:44]POST find Content-Length [00:16:44]Host: 172.17.53.195:8080 [00:16:44]Content-Length: 679 [00:16:44]Content-Type: application/json [00:16:44] [00:16:44]POST finish read [00:16:44]Found Content-Length = 679 [00:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:44]execute_script... [00: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)220816", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.940, "sum" : 999.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:16:44]POST & json_proto [00:16:44]process_json_proto [00:16:44]json parsed OK: [00:16:44]protocol is kg_v1.0 [00:16:44]action value=close_receipt [00:16:44]process_action close_receipt [00:16:44]cmd_close_receipt [00:16:44]MH_GetDate [00:16:44]Write to MH i2c: F0 00 00 46 90 C5 [00:16:44]Write i2c OK [00:16:44]MH_I2C_Read... [00:16:44]Read from MH i2c: F0 [00:16:44]MH_I2C_Read... [00:16:44]Read from MH i2c: F0 09 00 [00:16:44]MH_I2C_Read... [00:16:44]Read from MH i2c: F0 09 00 46 90 00 01 EF 16 67 21 48 4A 65 53 [00:16:44]GetLastDocTimeStamp 1729556101 [00:16:44]current date 1729556225 [00:16:44]FM_GetShiftState [00:16:44]SAM_PROTO_GetShiftState [00:16:44]wFMCommunicate request_size=4 [00:16:44]MH_SAM_APDU [00:16:44]CAPDU: 80 13 01 00 [00:16:44]Write to MH i2c: E2 08 00 47 90 80 13 01 00 00 00 00 00 54 [00:16:44]Write i2c OK [00:16:44]MH_I2C_Read... [00:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:44]Read from MH i2c: E2 [00:16:44]MH_I2C_Read... [00:16:44]Read from MH i2c: E2 0E 00 [00:16:44]MH_I2C_Read... [00:16:44]Read from MH i2c: E2 0E 00 47 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 5D [00:16:44]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:16:44]wFMCommunicate OK [00:16:44]SAM_PROTO_GetShiftState done [00:16:44]FM_GetShiftState done [00:16:44]opened in 1729470944 [00:16:44]opened+sec_in_day 1729557344 [00:16:44]quantity*price = 99948 [00:16:44]sum+1 = 99950 [00:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 353 22.10.2024 00:17 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166242 ФПД: 141330009693414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166242&fm=141330009693414&tin=02508201610067®Number=0000000000091764&sum=99900 [00:16:45]StoreToDocumentArchive [00:16:45]shift 535 fd 166242 [00:16:45]save to /storage/0535/doc_00166242 [00:16:45]save last doc name /storage/0535/doc_00166242 to /storage/kkm_last_doc_name [00:16:45]save OK [00:16:45]Clear old archive folders... [00:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:16:45]tlvbuf is 017B0B10 [00:16:45]SAM_PROTO_ClearQueue [00:16:45]wFMCommunicate request_size=4 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 09 00 00 [00:16:45]Write to MH i2c: E2 08 00 54 90 80 09 00 00 00 00 00 00 56 [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:16:45]Read from MH i2c: E2 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 03 00 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 03 00 54 90 00 90 00 58 [00:16:45]RAPDU: 90 00 [00:16:45]wFMCommunicate OK [00:16:45]SAM_PROTO_ClearQueue done [00:16:45]KKMCreateOFDPacket [00:16:45]OFDProtocolAddRootSTLVToBuf [00:16:45]FM_MakeSignedData [00:16:45]FM_MakeSignedData [00:16:45]SAM_PROTO_SignData [00:16:45]wFMCommunicate request_size=4 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 0D 01 02 [00:16:45]Write to MH i2c: E2 08 00 55 90 80 0D 01 02 00 00 00 00 5E [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:16:45]Read from MH i2c: E2 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 03 00 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 03 00 55 90 00 90 00 59 [00:16:45]RAPDU: 90 00 [00:16:45]wFMCommunicate OK [00:16:45]wFMCommunicate request_size=255 [00:16:45]MH_SAM_APDU [00:16: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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 01 EF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 89 02 00 35 04 06 00 80 [00:16:45]Write to MH i2c: E2 02 01 56 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 01 EF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 89 02 00 35 04 06 00 80 00 00 26 [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:45]Read from MH i2c: E2 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 03 00 [00:16:45]MH_I2C_Read... [00:16:45]Read from MH i2c: E2 03 00 56 90 00 90 00 5A [00:16:45]RAPDU: 90 00 [00:16:45]wFMCommunicate OK [00:16:45]wFMCommunicate request_size=10 [00:16:45]MH_SAM_APDU [00:16:45]CAPDU: 80 0D 02 02 05 89 F5 06 1C E6 [00:16:45]Write to MH i2c: E2 0D 00 57 90 80 0D 02 02 05 00 89 F5 06 1C E6 00 00 F1 [00:16:45]Write i2c OK [00:16:45]MH_I2C_Read... [00:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:16:46]Read from MH i2c: E2 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 03 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 03 00 57 90 00 90 00 5B [00:16:46]RAPDU: 90 00 [00:16:46]wFMCommunicate OK [00:16:46]wFMCommunicate request_size=4 [00:16:46]MH_SAM_APDU [00:16:46]CAPDU: 80 0D 03 02 [00:16:46]Write to MH i2c: E2 08 00 58 90 80 0D 03 02 00 00 00 00 63 [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:16:46]Read from MH i2c: E2 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 0B 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 0B 00 58 90 00 6D A5 F5 5A 15 9A DD CE 90 00 1F [00:16:46]RAPDU: 6D A5 F5 5A 15 9A DD CE 90 00 [00:16:46]wFMCommunicate OK [00:16:46]SAM_PROTO_SignData done [00:16:46]FM_MakeSignedData done [00:16:46]CreateOFDProtocolMessage [00:16:46]wFMCommunicate request_size=4 [00:16:46]MH_SAM_APDU [00:16:46]CAPDU: 80 11 00 00 [00:16:46]Write to MH i2c: E2 08 00 59 90 80 11 00 00 00 00 00 00 63 [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:46]Read from MH i2c: E2 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 17 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: E2 17 00 59 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BB [00:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:16:46]wFMCommunicate OK [00:16:46]CreateOFDProtocolMessage done [00:16:46]OFDSenderStorePacket 166242 [00:16:46]StoreOFDPacket docnum=166242 [00:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C4 20 07 01 D8 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 01 EF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 89 02 00 35 04 06 00 80 89 F5 06 1C E6 6D A5 F5 5A 15 9A DD CE [00:16:46]CheckFolder [00:16:46]dirname=/storage/ofd_packets [00:16:46]CheckFolder done [00:16:46]ProducePacketName [00:16:46]name=ofd_packets/00166242 [00:16:46]NVStorageSaveData ofd_packets/00166242 [00:16:46]File name is /storage/ofd_packets/00166242 [00:16:46]Write 301 bytes [00:16:46]NVStorageSaveData done [00:16:46]OFDSenderStorePacket done [00:16:46]KKMCreateOFDPacket done [00:16:46]NVStorageSaveData kkm_last_timestamp [00:16:46]File name is /storage/kkm_last_timestamp [00:16:46]Write 4 bytes [00:16:46]NVStorageSaveData done [00:16:46]ExternCall_PrintAddStr [00:16:46]wPrintStart [00:16:46]Write to MH i2c: 01 00 00 5A 90 EA [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: 01 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: 01 07 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: 01 07 00 5A 90 00 00 00 00 00 FF 0F FF [00:16:46]RasterBufferAndPrint [00:16:46]line Счет N : (1)220816 [00:16:46]line ИНН: 02508201610067 [00:16:46]line Контрольно-Кассовый Чек [00:16:46]line ПРОДАЖА [00:16:46]line ТРК (МРК, ГНК) : 43 [00:16:46]line Товар: 2710124130 [00:16:46]line Аи-92-К-5 [00:16:46]line 14.940 * 66.90 [00:16:46]line = 999.49 [00:16:46]line НДС 12% НСП 1% [00:16:46]line > о реализуемом товаре [00:16:46]line ОКРУГЛЕНИЕ: -0.49 [00:16:46]line ИТОГО: 999.00 [00:16:46]line Внесено: 1000.00 [00:16:46]line СДАЧА: 1.00 [00:16:46]line НСП 1% : 8.84 [00:16:46]line НДС 12% : 106.14 [00:16:46]line Наличными: 999.00 [00:16:46]line Безнал.: 0.00 [00:16:46]line Место: АЗС № 161 "Партнер Нефть" [00:16:46]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:16:46]line СНО: Общий режим [00:16:46]line Чек 353 22.10.2024 00:17 [00:16:46]line Смена: 535 ФФД: 1.0 [00:16:46]line ЗНМ: 0300000104 [00:16:46]line РНМ: 0000000000091764 [00:16:46]line Версия ККМ: 001 [00:16:46]line ФМ: 0000000000871759 [00:16:46]line ФД: 166242 [00:16:46]line ФПД: 141330009693414 [00:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T001705&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166242&fm=141330009693414&tin=02508201610067®Number=0000000000091764&sum=99900 [00:16:46]OFD Sender: Processing packet 166242 [packets to send 48, broken 47] [00:16:46]ProducePacketName [00:16:46]name=ofd_packets/00166242 [00:16:46]OFD Sender: To server: pG, [00:16:46]CommunicateWithHost lk.salyk.kg:30040 [00:16:46]ConnectInit lk.salyk.kg [00:16:46]written 0, free lines is 4095 [00:16:46]Connected sock=6 [00:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 C4 20 07 01 D8 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 5C 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6D 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 01 EF 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 89 02 00 35 04 06 00 80 89 F5 06 1C E6 6D A5 F5 5A 15 9A DD CE [00:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 B3 0E 47 00 38 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 62 89 02 00 F4 03 04 00 6E 95 16 67 B6 04 01 00 00 C3 7E EF 19 A6 FF 61 96 [00:16:46]CommunicateWithHost err = 0 [00:16:46]CheckOFDResponse [00:16:46]1017 (14) - 77093643461234 [00:16:46]1041 (16) - 0000000000871759 [00:16:46]1040 (4) - 166242 [00:16:46]1012 (4) - 21.10.2024 17:54 [00:16:46]1206 (1) - 0 [00:16:46]OFD Sender: Remove packet 166242 [00:16:46]ProducePacketName [00:16:46]name=ofd_packets/00166242 [00:16:46]NVStorageDeleteData [00:16:46]Write to MH i2c: 01 00 00 85 90 15 [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: 01 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: 01 07 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: 01 07 00 85 90 00 00 00 00 00 BA 0C E2 [00:16:46]RasterBufferAndPrint [00:16:46]line [00:16:46]line [00:16:46]line [00:16:46]line [00:16:46]line [00:16:46]written 0, free lines is 3267 [00:16:46]MH_Cut [00:16:46]Write to MH i2c: D1 01 00 8C 90 01 EE [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: D1 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: D1 01 00 [00:16:46]MH_I2C_Read... [00:16:46]Read from MH i2c: D1 01 00 8C 90 00 ED [00:16:46]Write to MH i2c: 01 00 00 8D 90 1D [00:16:46]Write i2c OK [00:16:46]MH_I2C_Read... [00:16:47]OFD Sender: No OFD packet to send [00:16:47]*** Cut start [00:16:47]*** Partial cut [00:16:47]*** CUTSNS_PIN = 1 [00:16:47]*** CUTSNS_PIN = 0 [00:16:48]*** Brake cut motor [00:16:48]Read from MH i2c: 01 [00:16:48]MH_I2C_Read... [00:16:48]*** Stop cut motor [00:16:48]*** Cut end [00:16:48]Read from MH i2c: 01 07 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: 01 07 00 8D 90 00 00 00 00 00 FF 0F 32 [00:16:48]process_action close_receipt done [00:16:48]requested_data is exist [00:16:48]produce_requested_data [00:16:48]requested_item fm.sn is exist - process it [00:16:48]wFMCommunicate request_size=4 [00:16:48]MH_SAM_APDU [00:16:48]CAPDU: 80 11 00 00 [00:16:48]Write to MH i2c: E2 08 00 8E 90 80 11 00 00 00 00 00 00 98 [00:16:48]Write i2c OK [00:16:48]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 17 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 17 00 8E 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F0 [00:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:16:48]wFMCommunicate OK [00:16:48]requested_item fd.num is exist - process it [00:16:48]SAM_PROTO_GetFieldsCounters [00:16:48]wFMCommunicate request_size=4 [00:16:48]MH_SAM_APDU [00:16:48]CAPDU: 80 13 00 00 [00:16:48]Write to MH i2c: E2 08 00 8F 90 80 13 00 00 00 00 00 00 9B [00:16:48]Write i2c OK [00:16:48]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 62 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 62 00 8F 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [00: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 62 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:16:48]wFMCommunicate OK [00:16:48]SAM_PROTO_GetFieldsCounters done [00:16:48]requested_item shift.num is exist - process it [00:16:48]requested_item shift.opened is exist - process it [00:16:48]req_shift_opened [00:16:48]FM_GetShiftState [00:16:48]SAM_PROTO_GetShiftState [00:16:48]wFMCommunicate request_size=4 [00:16:48]MH_SAM_APDU [00:16:48]CAPDU: 80 13 01 00 [00:16:48]Write to MH i2c: E2 08 00 90 90 80 13 01 00 00 00 00 00 9D [00:16:48]Write i2c OK [00:16:48]MH_I2C_Read... [00:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:16:48]Read from MH i2c: E2 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 0E 00 [00:16:48]MH_I2C_Read... [00:16:48]Read from MH i2c: E2 0E 00 90 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A6 [00:16:48]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:16:48]wFMCommunicate OK [00:16:48]SAM_PROTO_GetShiftState done [00:16:48]FM_GetShiftState done [00:16:48]req_shift_opened done [00:16:48]requested_item shift.open_date is exist - process it [00:16:48]req_shift_open_date [00:16:48]req_shift_open_date done [00:16:48]produce_requested_data done [00:16:48]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166242,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:16:48]process_action_free close_receipt [00:16:48]json_value_free [00:16:48]json_value_free done [00:16:48]process_json_proto returns [00:16:48]Send response to host [00:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166242,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:16:48]free response buf [00:16:48]execute_script done [00:16:48]execute_script returns [00:16:48]free content buf [00:16:48]Sock 5.Close socket [00:16:48]Sock 5.Thread stoped [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]OFD Sender: No OFD packet to send [00:20:02]OFD Sender: No OFD packet to send [00:20:07]OFD Sender: No OFD packet to send [00:20:12]OFD Sender: No OFD packet to send [00:20:17]OFD Sender: No OFD packet to send [00:20:22]OFD Sender: No OFD packet to send [00:20:27]OFD Sender: No OFD packet to send [00:20:32]OFD Sender: No OFD packet to send [00:20:37]OFD Sender: No OFD packet to send [00:20:42]OFD Sender: No OFD packet to send [00:20:47]OFD Sender: No OFD packet to send [00:20:52]OFD Sender: No OFD packet to send [00:20:57]OFD Sender: No OFD packet to send [00:21:02]OFD Sender: No OFD packet to send [00:21:07]OFD Sender: No OFD packet to send [00:21:12]OFD Sender: No OFD packet to send [00:21:17]OFD Sender: No OFD packet to send [00:21:22]OFD Sender: No OFD packet to send [00:21:27]OFD Sender: No OFD packet to send [00:21:32]OFD Sender: No OFD packet to send [00:21:37]OFD Sender: No OFD packet to send [00:21:42]OFD Sender: No OFD packet to send [00:21:47]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:49]accept exits with 7 [00:26:49]New connection [00:26:49]New thread 3066776932 created [00:26:49]Thread 3066920292 joined [00:26:49]Waiting for new connection... [00:26:49] Sock 7.Parse request [00:26:49]Sock 7.Check first char [00:26:49]Sock 7.First char is OK [00:26:49]request: POST /json_proto HTTP/1.0 [00:26:49]Method: POST [00:26:49]URL: /json_proto [00:26:49]Method is POST - this is cgi request [00:26:49]url: /json_proto [00:26:49]query_string will be loaded in cgi processing [00:26:49]execute_cgi json_proto POST (null) [00:26:49]execute_cgi path=json_proto method=POST [00:26:49]POST find Content-Length [00:26:49]Host: 172.17.53.195:8080 [00:26:49]Content-Length: 677 [00:26:49]Content-Type: application/json [00:26:49] [00:26:49]POST finish read [00:26:49]Found Content-Length = 677 [00:26:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:49]execute_script... [00:26:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220817", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:49]POST & json_proto [00:26:49]process_json_proto [00:26:49]json parsed OK: [00:26:49]protocol is kg_v1.0 [00:26:49]action value=close_receipt [00:26:49]process_action close_receipt [00:26:49]cmd_close_receipt [00:26:49]MH_GetDate [00:26:49]Write to MH i2c: F0 00 00 91 90 10 [00:26:49]Write i2c OK [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: F0 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: F0 09 00 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: F0 09 00 91 90 00 5E F1 16 67 21 48 4A 65 FD [00:26:49]GetLastDocTimeStamp 1729556225 [00:26:49]current date 1729556830 [00:26:49]FM_GetShiftState [00:26:49]SAM_PROTO_GetShiftState [00:26:49]wFMCommunicate request_size=4 [00:26:49]MH_SAM_APDU [00:26:49]CAPDU: 80 13 01 00 [00:26:49]Write to MH i2c: E2 08 00 92 90 80 13 01 00 00 00 00 00 9F [00:26:49]Write i2c OK [00:26:49]MH_I2C_Read... [00:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:49]Read from MH i2c: E2 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 0E 00 [00:26:49]MH_I2C_Read... [00:26:49]Read from MH i2c: E2 0E 00 92 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 A8 [00:26:49]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:26:49]wFMCommunicate OK [00:26:49]SAM_PROTO_GetShiftState done [00:26:49]FM_GetShiftState done [00:26:49]opened in 1729470944 [00:26:49]opened+sec_in_day 1729557344 [00:26:49]quantity*price = 20003 [00:26:49]sum+1 = 20004 [00:26:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 354 22.10.2024 00:27 Смена: 535 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166243 ФПД: 81733537649291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002710&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166243&fm=81733537649291&tin=02508201610067®Number=0000000000091764&sum=20000 [00:26:50]StoreToDocumentArchive [00:26:50]shift 535 fd 166243 [00:26:50]save to /storage/0535/doc_00166243 [00:26:50]save last doc name /storage/0535/doc_00166243 to /storage/kkm_last_doc_name [00:26:50]save OK [00:26:50]Clear old archive folders... [00:26:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:26:50]tlvbuf is 01A8C840 [00:26:50]SAM_PROTO_ClearQueue [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 09 00 00 [00:26:50]Write to MH i2c: E2 08 00 9F 90 80 09 00 00 00 00 00 00 A1 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:50]Read from MH i2c: E2 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 03 00 [00:26:50]MH_I2C_Read... [00:26:50]Read from MH i2c: E2 03 00 9F 90 00 90 00 A3 [00:26:50]RAPDU: 90 00 [00:26:50]wFMCommunicate OK [00:26:50]SAM_PROTO_ClearQueue done [00:26:50]KKMCreateOFDPacket [00:26:50]OFDProtocolAddRootSTLVToBuf [00:26:50]FM_MakeSignedData [00:26:50]FM_MakeSignedData [00:26:50]SAM_PROTO_SignData [00:26:50]wFMCommunicate request_size=4 [00:26:50]MH_SAM_APDU [00:26:50]CAPDU: 80 0D 01 02 [00:26:50]Write to MH i2c: E2 08 00 A0 90 80 0D 01 02 00 00 00 00 A9 [00:26:50]Write i2c OK [00:26:50]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 A0 90 00 90 00 A4 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=255 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 5E F1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 89 02 00 35 04 06 00 4A [00:26:51]Write to MH i2c: E2 02 01 A1 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 5E F1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 89 02 00 35 04 06 00 4A 00 00 81 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 A1 90 00 90 00 A5 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=10 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 0D 02 02 05 56 12 7A 52 8B [00:26:51]Write to MH i2c: E2 0D 00 A2 90 80 0D 02 02 05 00 56 12 7A 52 8B 00 00 75 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 03 00 A2 90 00 90 00 A6 [00:26:51]RAPDU: 90 00 [00:26:51]wFMCommunicate OK [00:26:51]wFMCommunicate request_size=4 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 0D 03 02 [00:26:51]Write to MH i2c: E2 08 00 A3 90 80 0D 03 02 00 00 00 00 AE [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0B 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 0B 00 A3 90 00 D4 83 D7 03 0B 69 3D B6 90 00 47 [00:26:51]RAPDU: D4 83 D7 03 0B 69 3D B6 90 00 [00:26:51]wFMCommunicate OK [00:26:51]SAM_PROTO_SignData done [00:26:51]FM_MakeSignedData done [00:26:51]CreateOFDProtocolMessage [00:26:51]wFMCommunicate request_size=4 [00:26:51]MH_SAM_APDU [00:26:51]CAPDU: 80 11 00 00 [00:26:51]Write to MH i2c: E2 08 00 A4 90 80 11 00 00 00 00 00 00 AE [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:51]Read from MH i2c: E2 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 17 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: E2 17 00 A4 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 06 [00:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:26:51]wFMCommunicate OK [00:26:51]CreateOFDProtocolMessage done [00:26:51]OFDSenderStorePacket 166243 [00:26:51]StoreOFDPacket docnum=166243 [00:26:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B 67 07 01 FE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 5E F1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 89 02 00 35 04 06 00 4A 56 12 7A 52 8B D4 83 D7 03 0B 69 3D B6 [00:26:51]CheckFolder [00:26:51]dirname=/storage/ofd_packets [00:26:51]CheckFolder done [00:26:51]ProducePacketName [00:26:51]name=ofd_packets/00166243 [00:26:51]NVStorageSaveData ofd_packets/00166243 [00:26:51]File name is /storage/ofd_packets/00166243 [00:26:51]Write 301 bytes [00:26:51]NVStorageSaveData done [00:26:51]OFDSenderStorePacket done [00:26:51]KKMCreateOFDPacket done [00:26:51]NVStorageSaveData kkm_last_timestamp [00:26:51]File name is /storage/kkm_last_timestamp [00:26:51]Write 4 bytes [00:26:51]NVStorageSaveData done [00:26:51]ExternCall_PrintAddStr [00:26:51]wPrintStart [00:26:51]Write to MH i2c: 01 00 00 A5 90 35 [00:26:51]Write i2c OK [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: 01 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: 01 07 00 [00:26:51]MH_I2C_Read... [00:26:51]Read from MH i2c: 01 07 00 A5 90 00 00 00 00 00 FF 0F 4A [00:26:51]RasterBufferAndPrint [00:26:51]line Счет N : (1)220817 [00:26:51]line ИНН: 02508201610067 [00:26:51]line Контрольно-Кассовый Чек [00:26:51]line ПРОДАЖА [00:26:51]line ТРК (МРК, ГНК) : 33 [00:26:51]line Товар: 2710124130 [00:26:51]line Аи-92-К-5 [00:26:51]line 2.990 * 66.90 [00:26:51]line = 200.03 [00:26:51]line НДС 12% НСП 1% [00:26:51]line > о реализуемом товаре [00:26:51]line ОКРУГЛЕНИЕ: -0.03 [00:26:51]line ИТОГО: 200.00 [00:26:51]line Внесено: 200.00 [00:26:51]line СДАЧА: 0.00 [00:26:51]line НСП 1% : 1.77 [00:26:51]line НДС 12% : 21.24 [00:26:51]line Наличными: 200.00 [00:26:51]line Безнал.: 0.00 [00:26:51]line Место: АЗС № 161 "Партнер Нефть" [00:26:51]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:26:51]line СНО: Общий режим [00:26:51]line Чек 354 22.10.2024 00:27 [00:26:51]line Смена: 535 ФФД: 1.0 [00:26:51]line ЗНМ: 0300000104 [00:26:51]line РНМ: 0000000000091764 [00:26:51]line Версия ККМ: 001 [00:26:51]line ФМ: 0000000000871759 [00:26:51]line ФД: 166243 [00:26:51]line ФПД: 81733537649291 [00:26:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T002710&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166243&fm=81733537649291&tin=02508201610067®Number=0000000000091764&sum=20000 [00:26:51]OFD Sender: Processing packet 166243 [packets to send 48, broken 47] [00:26:51]ProducePacketName [00:26:51]name=ofd_packets/00166243 [00:26:51]OFD Sender: To server: pG, [00:26:51]CommunicateWithHost lk.salyk.kg:30040 [00:26:51]ConnectInit lk.salyk.kg [00:26:51]written 0, free lines is 4095 [00:26:51]Connected sock=6 [00:26:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 6B 67 07 01 FE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 5E F1 16 67 0E 04 04 00 17 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 89 02 00 35 04 06 00 4A 56 12 7A 52 8B D4 83 D7 03 0B 69 3D B6 [00:26:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 99 EB 47 00 C9 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 63 89 02 00 F4 03 04 00 CB 97 16 67 B6 04 01 00 00 BD 8C FA E0 EB C2 8C B1 [00:26:52]CommunicateWithHost err = 0 [00:26:52]CheckOFDResponse [00:26:52]1017 (14) - 77093643461234 [00:26:52]1041 (16) - 0000000000871759 [00:26:52]1040 (4) - 166243 [00:26:52]1012 (4) - 21.10.2024 18:04 [00:26:52]1206 (1) - 0 [00:26:52]OFD Sender: Remove packet 166243 [00:26:52]ProducePacketName [00:26:52]name=ofd_packets/00166243 [00:26:52]NVStorageDeleteData [00:26:52]Write to MH i2c: 01 00 00 D0 90 60 [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: 01 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: 01 07 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: 01 07 00 D0 90 00 00 00 00 00 AB 0C 1E [00:26:52]RasterBufferAndPrint [00:26:52]line [00:26:52]line [00:26:52]line [00:26:52]line [00:26:52]line [00:26:52]written 0, free lines is 3248 [00:26:52]MH_Cut [00:26:52]Write to MH i2c: D1 01 00 D7 90 01 39 [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: D1 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: D1 01 00 [00:26:52]MH_I2C_Read... [00:26:52]Read from MH i2c: D1 01 00 D7 90 00 38 [00:26:52]Write to MH i2c: 01 00 00 D8 90 68 [00:26:52]Write i2c OK [00:26:52]MH_I2C_Read... [00:26:52]OFD Sender: No OFD packet to send [00:26:53]*** Cut start [00:26:53]*** Partial cut [00:26:53]*** CUTSNS_PIN = 1 [00:26:53]*** CUTSNS_PIN = 0 [00:26:53]*** Brake cut motor [00:26:53]Read from MH i2c: 01 [00:26:53]MH_I2C_Read... [00:26:53]*** Stop cut motor [00:26:53]*** Cut end [00:26:53]Read from MH i2c: 01 07 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: 01 07 00 D8 90 00 00 00 00 00 FF 0F 7D [00:26:53]process_action close_receipt done [00:26:53]requested_data is exist [00:26:53]produce_requested_data [00:26:53]requested_item fm.sn is exist - process it [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 11 00 00 [00:26:53]Write to MH i2c: E2 08 00 D9 90 80 11 00 00 00 00 00 00 E3 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 17 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 17 00 D9 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3B [00:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:26:53]wFMCommunicate OK [00:26:53]requested_item fd.num is exist - process it [00:26:53]SAM_PROTO_GetFieldsCounters [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 13 00 00 [00:26:53]Write to MH i2c: E2 08 00 DA 90 80 13 00 00 00 00 00 00 E6 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 62 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 62 00 DA 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [00:26:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_GetFieldsCounters done [00:26:53]requested_item shift.num is exist - process it [00:26:53]requested_item shift.opened is exist - process it [00:26:53]req_shift_opened [00:26:53]FM_GetShiftState [00:26:53]SAM_PROTO_GetShiftState [00:26:53]wFMCommunicate request_size=4 [00:26:53]MH_SAM_APDU [00:26:53]CAPDU: 80 13 01 00 [00:26:53]Write to MH i2c: E2 08 00 DB 90 80 13 01 00 00 00 00 00 E8 [00:26:53]Write i2c OK [00:26:53]MH_I2C_Read... [00:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:53]Read from MH i2c: E2 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0E 00 [00:26:53]MH_I2C_Read... [00:26:53]Read from MH i2c: E2 0E 00 DB 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F1 [00:26:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:26:53]wFMCommunicate OK [00:26:53]SAM_PROTO_GetShiftState done [00:26:53]FM_GetShiftState done [00:26:53]req_shift_opened done [00:26:53]requested_item shift.open_date is exist - process it [00:26:53]req_shift_open_date [00:26:53]req_shift_open_date done [00:26:53]produce_requested_data done [00:26:53]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:26:53]process_action_free close_receipt [00:26:53]json_value_free [00:26:53]json_value_free done [00:26:53]process_json_proto returns [00:26:53]Send response to host [00:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:26:53]free response buf [00:26:53]execute_script done [00:26:53]execute_script returns [00:26:53]free content buf [00:26:53]Sock 7.Close socket [00:26:53]Sock 7.Thread stoped [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]accept exits with 5 [00:28:57]New connection [00:28:57]New thread 3066920292 created [00:28:57]Thread 3066776932 joined [00:28:57]Waiting for new connection... [00:28:57] Sock 5.Parse request [00:28:57]Sock 5.Check first char [00:28:57]Sock 5.First char is OK [00:28:57]request: POST /json_proto HTTP/1.0 [00:28:57]Method: POST [00:28:57]URL: /json_proto [00:28:57]Method is POST - this is cgi request [00:28:57]url: /json_proto [00:28:57]query_string will be loaded in cgi processing [00:28:57]execute_cgi json_proto POST (null) [00:28:57]execute_cgi path=json_proto method=POST [00:28:57]POST find Content-Length [00:28:57]Host: 172.17.53.195:8080 [00:28:57]Content-Length: 215 [00:28:57]Content-Type: application/json [00:28:57] [00:28:57]POST finish read [00:28:57]Found Content-Length = 215 [00:28:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:57]execute_script... [00:28:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:28:57]POST & json_proto [00:28:57]process_json_proto [00:28:57]json parsed OK: [00:28:57]protocol is kg_v1.0 [00:28:57]action value=get_value [00:28:57]process_action get_value [00:28:57]cmd_get_value [00:28:57]process_action get_value done [00:28:57]requested_data is exist [00:28:57]produce_requested_data [00:28:57]requested_item kkm.sn is exist - process it [00:28:57]requested_item kkm.ver is exist - process it [00:28:57]requested_item fm.sn is exist - process it [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 11 00 00 [00:28:57]Write to MH i2c: E2 08 00 DC 90 80 11 00 00 00 00 00 00 E6 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 17 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 17 00 DC 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3E [00:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:28:57]wFMCommunicate OK [00:28:57]requested_item fd.num is exist - process it [00:28:57]SAM_PROTO_GetFieldsCounters [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 13 00 00 [00:28:57]Write to MH i2c: E2 08 00 DD 90 80 13 00 00 00 00 00 00 E9 [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 62 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 62 00 DD 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [00:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:57]wFMCommunicate OK [00:28:57]SAM_PROTO_GetFieldsCounters done [00:28:57]requested_item shift.num is exist - process it [00:28:57]requested_item shift.opened is exist - process it [00:28:57]req_shift_opened [00:28:57]FM_GetShiftState [00:28:57]SAM_PROTO_GetShiftState [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 13 01 00 [00:28:57]Write to MH i2c: E2 08 00 DE 90 80 13 01 00 00 00 00 00 EB [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:57]Read from MH i2c: E2 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 0E 00 [00:28:57]MH_I2C_Read... [00:28:57]Read from MH i2c: E2 0E 00 DE 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 F4 [00:28:57]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:28:57]wFMCommunicate OK [00:28:57]SAM_PROTO_GetShiftState done [00:28:57]FM_GetShiftState done [00:28:57]req_shift_opened done [00:28:57]requested_item shift.open_date is exist - process it [00:28:57]req_shift_open_date [00:28:57]req_shift_open_date done [00:28:57]produce_requested_data done [00:28:57]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:28:57]process_action_free get_value [00:28:57]json_value_free [00:28:57]json_value_free done [00:28:57]process_json_proto returns [00:28:57]Send response to host [00:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:28:57]free response buf [00:28:57]execute_script done [00:28:57]execute_script returns [00:28:57]free content buf [00:28:57]Sock 5.Close socket [00:28:57]Sock 5.Thread stoped [00:28:57]accept exits with 6 [00:28:57]New connection [00:28:57]New thread 3066776932 created [00:28:57]Thread 3066920292 joined [00:28:57]Waiting for new connection... [00:28:57] Sock 6.Parse request [00:28:57]Sock 6.Check first char [00:28:57]Sock 6.First char is OK [00:28:57]request: POST /json_proto HTTP/1.0 [00:28:57]Method: POST [00:28:57]URL: /json_proto [00:28:57]Method is POST - this is cgi request [00:28:57]url: /json_proto [00:28:57]query_string will be loaded in cgi processing [00:28:57]execute_cgi json_proto POST (null) [00:28:57]execute_cgi path=json_proto method=POST [00:28:57]POST find Content-Length [00:28:57]Host: 172.17.53.195:8080 [00:28:57]Content-Length: 331 [00:28:57]Content-Type: application/json [00:28:57] [00:28:57]POST finish read [00:28:57]Found Content-Length = 331 [00:28:57]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:28:57]execute_script... [00:28:57]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:28:57]POST & json_proto [00:28:57]process_json_proto [00:28:57]json parsed OK: [00:28:57]protocol is kg_v1.0 [00:28:57]action value=get_value [00:28:57]process_action get_value [00:28:57]cmd_get_value [00:28:57]process_action get_value done [00:28:57]requested_data is exist [00:28:57]produce_requested_data [00:28:57]requested_item fm.sale.total is exist - process it [00:28:57]SAM_PROTO_GetFMData [00:28:57]wFMCommunicate request_size=4 [00:28:57]MH_SAM_APDU [00:28:57]CAPDU: 80 13 03 00 [00:28:57]Write to MH i2c: E2 08 00 DF 90 80 13 03 00 00 00 00 00 EE [00:28:57]OFD Sender: No OFD packet to send [00:28:57]Write i2c OK [00:28:57]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 DF 90 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 E0 [00:28:58]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:28:58]wFMCommunicate OK [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 17 00 00 [00:28:58]Write to MH i2c: E2 08 00 E0 90 80 17 00 00 00 00 00 00 F0 [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 E0 90 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 BC [00:28:58]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:28:58]wFMCommunicate OK [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 17 00 00 [00:28:58]Write to MH i2c: E2 08 00 E1 90 80 17 00 00 00 00 00 00 F1 [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:58]Read from MH i2c: E2 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 [00:28:58]MH_I2C_Read... [00:28:58]Read from MH i2c: E2 FD 00 E1 90 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 03 [00:28:58]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:28:58]wFMCommunicate OK [00:28:58]wFMCommunicate request_size=4 [00:28:58]MH_SAM_APDU [00:28:58]CAPDU: 80 17 00 00 [00:28:58]Write to MH i2c: E2 08 00 E2 90 80 17 00 00 00 00 00 00 F2 [00:28:58]Write i2c OK [00:28:58]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 E2 90 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 7E [00:28:59]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:28:59]wFMCommunicate OK [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 17 00 00 [00:28:59]Write to MH i2c: E2 08 00 E3 90 80 17 00 00 00 00 00 00 F3 [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 E2 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 E2 00 E3 90 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D1 [00:28:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:28:59]wFMCommunicate OK [00:28:59]SAM_PROTO_GetFMData done [00:28:59]requested_item fm.sale_refund.total is exist - process it [00:28:59]requested_item fm.buy.total is exist - process it [00:28:59]requested_item shift.sale.total is exist - process it [00:28:59]SAM_PROTO_GetShiftData [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 13 02 00 [00:28:59]Write to MH i2c: E2 08 00 E4 90 80 13 02 00 00 00 00 00 F2 [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:28:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:28:59]Read from MH i2c: E2 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 [00:28:59]MH_I2C_Read... [00:28:59]Read from MH i2c: E2 FD 00 E4 90 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 E5 [00:28:59]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:28:59]wFMCommunicate OK [00:28:59]wFMCommunicate request_size=4 [00:28:59]MH_SAM_APDU [00:28:59]CAPDU: 80 17 00 00 [00:28:59]Write to MH i2c: E2 08 00 E5 90 80 17 00 00 00 00 00 00 F5 [00:28:59]Write i2c OK [00:28:59]MH_I2C_Read... [00:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:00]Read from MH i2c: E2 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 E5 90 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:29:00]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:00]wFMCommunicate OK [00:29:00]wFMCommunicate request_size=4 [00:29:00]MH_SAM_APDU [00:29:00]CAPDU: 80 17 00 00 [00:29:00]Write to MH i2c: E2 08 00 E6 90 80 17 00 00 00 00 00 00 F6 [00:29:00]Write i2c OK [00:29:00]MH_I2C_Read... [00:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:00]Read from MH i2c: E2 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 E6 90 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:29:00]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:00]wFMCommunicate OK [00:29:00]wFMCommunicate request_size=4 [00:29:00]MH_SAM_APDU [00:29:00]CAPDU: 80 17 00 00 [00:29:00]Write to MH i2c: E2 08 00 E7 90 80 17 00 00 00 00 00 00 F7 [00:29:00]Write i2c OK [00:29:00]MH_I2C_Read... [00:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:00]Read from MH i2c: E2 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 [00:29:00]MH_I2C_Read... [00:29:00]Read from MH i2c: E2 FD 00 E7 90 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:29:00]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:00]wFMCommunicate OK [00:29:00]wFMCommunicate request_size=4 [00:29:00]MH_SAM_APDU [00:29:00]CAPDU: 80 17 00 00 [00:29:00]Write to MH i2c: E2 08 00 E8 90 80 17 00 00 00 00 00 00 F8 [00:29:00]Write i2c OK [00:29:00]MH_I2C_Read... [00:29:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 CE 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 CE 00 E8 90 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:29:01]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:01]wFMCommunicate OK [00:29:01]SAM_PROTO_GetShiftData done [00:29:01]requested_item shift.sale.total_cash is exist - process it [00:29:01]requested_item shift.sale_refund.total is exist - process it [00:29:01]requested_item shift.sale_refund.total_cash is exist - process it [00:29:01]requested_item shift.buy.total is exist - process it [00:29:01]requested_item shift.buy.total_cash is exist - process it [00:29:01]produce_requested_data done [00:29:01]produce_requested_data return {"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:01]process_action_free get_value [00:29:01]json_value_free [00:29:01]json_value_free done [00:29:01]process_json_proto returns [00:29:01]Send response to host [00:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:01]free response buf [00:29:01]execute_script done [00:29:01]execute_script returns [00:29:01]free content buf [00:29:01]Sock 6.Close socket [00:29:01]Sock 6.Thread stoped [00:29:01]accept exits with 5 [00:29:01]New connection [00:29:01]New thread 3066920292 created [00:29:01]Thread 3066776932 joined [00:29:01]Waiting for new connection... [00:29:01] Sock 5.Parse request [00:29:01]Sock 5.Check first char [00:29:01]Sock 5.First char is OK [00:29:01]request: POST /json_proto HTTP/1.0 [00:29:01]Method: POST [00:29:01]URL: /json_proto [00:29:01]Method is POST - this is cgi request [00:29:01]url: /json_proto [00:29:01]query_string will be loaded in cgi processing [00:29:01]execute_cgi json_proto POST (null) [00:29:01]execute_cgi path=json_proto method=POST [00:29:01]POST find Content-Length [00:29:01]Host: 172.17.53.195:8080 [00:29:01]Content-Length: 331 [00:29:01]Content-Type: application/json [00:29:01] [00:29:01]POST finish read [00:29:01]Found Content-Length = 331 [00:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:01]execute_script... [00:29:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:01]POST & json_proto [00:29:01]process_json_proto [00:29:01]json parsed OK: [00:29:01]protocol is kg_v1.0 [00:29:01]action value=get_value [00:29:01]process_action get_value [00:29:01]cmd_get_value [00:29:01]process_action get_value done [00:29:01]requested_data is exist [00:29:01]produce_requested_data [00:29:01]requested_item fm.sale.total is exist - process it [00:29:01]SAM_PROTO_GetFMData [00:29:01]wFMCommunicate request_size=4 [00:29:01]MH_SAM_APDU [00:29:01]CAPDU: 80 13 03 00 [00:29:01]Write to MH i2c: E2 08 00 E9 90 80 13 03 00 00 00 00 00 F8 [00:29:01]Write i2c OK [00:29:01]MH_I2C_Read... [00:29:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:01]Read from MH i2c: E2 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 FD 00 [00:29:01]MH_I2C_Read... [00:29:01]Read from MH i2c: E2 FD 00 E9 90 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 EA [00:29:01]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:29:02]wFMCommunicate OK [00:29:02]wFMCommunicate request_size=4 [00:29:02]MH_SAM_APDU [00:29:02]CAPDU: 80 17 00 00 [00:29:02]Write to MH i2c: E2 08 00 EA 90 80 17 00 00 00 00 00 00 FA [00:29:02]Write i2c OK [00:29:02]MH_I2C_Read... [00:29:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:02]Read from MH i2c: E2 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 EA 90 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 C6 [00:29:02]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:29:02]wFMCommunicate OK [00:29:02]wFMCommunicate request_size=4 [00:29:02]MH_SAM_APDU [00:29:02]CAPDU: 80 17 00 00 [00:29:02]Write to MH i2c: E2 08 00 EB 90 80 17 00 00 00 00 00 00 FB [00:29:02]Write i2c OK [00:29:02]MH_I2C_Read... [00:29:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:02]Read from MH i2c: E2 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 [00:29:02]MH_I2C_Read... [00:29:02]Read from MH i2c: E2 FD 00 EB 90 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 0D [00:29:02]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:29:02]wFMCommunicate OK [00:29:02]wFMCommunicate request_size=4 [00:29:02]MH_SAM_APDU [00:29:02]CAPDU: 80 17 00 00 [00:29:02]Write to MH i2c: E2 08 00 EC 90 80 17 00 00 00 00 00 00 FC [00:29:02]Write i2c OK [00:29:02]MH_I2C_Read... [00:29:03]OFD Sender: No OFD packet to send [00:29:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:03]Read from MH i2c: E2 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 FD 00 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 FD 00 EC 90 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 88 [00:29:03]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:29:03]wFMCommunicate OK [00:29:03]wFMCommunicate request_size=4 [00:29:03]MH_SAM_APDU [00:29:03]CAPDU: 80 17 00 00 [00:29:03]Write to MH i2c: E2 08 00 ED 90 80 17 00 00 00 00 00 00 FD [00:29:03]Write i2c OK [00:29:03]MH_I2C_Read... [00:29:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:29:03]Read from MH i2c: E2 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 E2 00 [00:29:03]MH_I2C_Read... [00:29:03]Read from MH i2c: E2 E2 00 ED 90 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [00:29:03]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:03]wFMCommunicate OK [00:29:03]SAM_PROTO_GetFMData done [00:29:03]requested_item fm.sale_refund.total is exist - process it [00:29:03]requested_item fm.buy.total is exist - process it [00:29:03]requested_item shift.sale.total is exist - process it [00:29:03]SAM_PROTO_GetShiftData [00:29:03]wFMCommunicate request_size=4 [00:29:03]MH_SAM_APDU [00:29:03]CAPDU: 80 13 02 00 [00:29:03]Write to MH i2c: E2 08 00 EE 90 80 13 02 00 00 00 00 00 FC [00:29:03]Write i2c OK [00:29:03]MH_I2C_Read... [00:29:04]Read from MH i2c: E2 [00:29:04]MH_I2C_Read... [00:29:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:04]Read from MH i2c: E2 FD 00 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: E2 FD 00 EE 90 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 EF [00:29:04]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:04]wFMCommunicate OK [00:29:04]wFMCommunicate request_size=4 [00:29:04]MH_SAM_APDU [00:29:04]CAPDU: 80 17 00 00 [00:29:04]Write to MH i2c: E2 08 00 EF 90 80 17 00 00 00 00 00 00 FF [00:29:04]Write i2c OK [00:29:04]MH_I2C_Read... [00:29:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:04]Read from MH i2c: E2 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: E2 FD 00 [00:29:04]MH_I2C_Read... [00:29:04]Read from MH i2c: E2 FD 00 EF 90 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:29:04]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:04]wFMCommunicate OK [00:29:04]wFMCommunicate request_size=4 [00:29:04]MH_SAM_APDU [00:29:04]CAPDU: 80 17 00 00 [00:29:04]Write to MH i2c: E2 08 00 F0 90 80 17 00 00 00 00 00 00 00 [00:29:04]Write i2c OK [00:29:04]MH_I2C_Read... [00:29:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:05]Read from MH i2c: E2 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 F0 90 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:29:05]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:05]wFMCommunicate OK [00:29:05]wFMCommunicate request_size=4 [00:29:05]MH_SAM_APDU [00:29:05]CAPDU: 80 17 00 00 [00:29:05]Write to MH i2c: E2 08 00 F1 90 80 17 00 00 00 00 00 00 01 [00:29:05]Write i2c OK [00:29:05]MH_I2C_Read... [00:29:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:05]Read from MH i2c: E2 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 FD 00 F1 90 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:29:05]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:05]wFMCommunicate OK [00:29:05]wFMCommunicate request_size=4 [00:29:05]MH_SAM_APDU [00:29:05]CAPDU: 80 17 00 00 [00:29:05]Write to MH i2c: E2 08 00 F2 90 80 17 00 00 00 00 00 00 02 [00:29:05]Write i2c OK [00:29:05]MH_I2C_Read... [00:29:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:05]Read from MH i2c: E2 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 CE 00 [00:29:05]MH_I2C_Read... [00:29:05]Read from MH i2c: E2 CE 00 F2 90 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:29:05]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:06]wFMCommunicate OK [00:29:06]SAM_PROTO_GetShiftData done [00:29:06]requested_item shift.sale.total_cash is exist - process it [00:29:06]requested_item shift.sale_refund.total is exist - process it [00:29:06]requested_item shift.sale_refund.total_cash is exist - process it [00:29:06]requested_item shift.buy.total is exist - process it [00:29:06]requested_item shift.buy.total_cash is exist - process it [00:29:06]produce_requested_data done [00:29:06]produce_requested_data return {"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:06]process_action_free get_value [00:29:06]json_value_free [00:29:06]json_value_free done [00:29:06]process_json_proto returns [00:29:06]Send response to host [00:29:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:06]free response buf [00:29:06]execute_script done [00:29:06]execute_script returns [00:29:06]free content buf [00:29:06]Sock 5.Close socket [00:29:06]Sock 5.Thread stoped [00:29:06]accept exits with 6 [00:29:06]New connection [00:29:06]New thread 3066776932 created [00:29:06]Thread 3066920292 joined [00:29:06]Waiting for new connection... [00:29:06] Sock 6.Parse request [00:29:06]Sock 6.Check first char [00:29:06]Sock 6.First char is OK [00:29:06]request: POST /json_proto HTTP/1.0 [00:29:06]Method: POST [00:29:06]URL: /json_proto [00:29:06]Method is POST - this is cgi request [00:29:06]url: /json_proto [00:29:06]query_string will be loaded in cgi processing [00:29:06]execute_cgi json_proto POST (null) [00:29:06]execute_cgi path=json_proto method=POST [00:29:06]POST find Content-Length [00:29:06]Host: 172.17.53.195:8080 [00:29:06]Content-Length: 263 [00:29:06]Content-Type: application/json [00:29:06] [00:29:06]POST finish read [00:29:06]Found Content-Length = 263 [00:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:06]execute_script... [00:29:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:06]POST & json_proto [00:29:06]process_json_proto [00:29:06]json parsed OK: [00:29:06]protocol is kg_v1.0 [00:29:06]action value=x_report [00:29:06]process_action x_report [00:29:06]cmd_x_report [00:29:06]MH_GetDate [00:29:06]Write to MH i2c: F0 00 00 F3 90 72 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: F0 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: F0 09 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: F0 09 00 F3 90 00 E7 F1 16 67 21 48 4A 65 E8 [00:29:06]GetLastDocTimeStamp 1729556830 [00:29:06]current date 1729556967 [00:29:06]FM_GetShiftState [00:29:06]SAM_PROTO_GetShiftState [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 13 01 00 [00:29:06]Write to MH i2c: E2 08 00 F4 90 80 13 01 00 00 00 00 00 01 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 0E 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 0E 00 F4 90 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 0A [00:29:06]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:29:06]wFMCommunicate OK [00:29:06]SAM_PROTO_GetShiftState done [00:29:06]FM_GetShiftState done [00:29:06]KKMCreateXReportDocument [00:29:06]Load OK [00:29:06]Malloc new data [00:29:06]MH_GetDate [00:29:06]Write to MH i2c: F0 00 00 F5 90 74 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: F0 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: F0 09 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: F0 09 00 F5 90 00 E7 F1 16 67 21 48 4A 65 EA [00:29:06]Malloc new data [00:29:06]Malloc new data [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 11 00 00 [00:29:06]Write to MH i2c: E2 08 00 F6 90 80 11 00 00 00 00 00 00 00 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 17 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 17 00 F6 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 58 [00:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:29:06]wFMCommunicate OK [00:29:06]SAM_PROTO_GetFieldsCounters [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 13 00 00 [00:29:06]Write to MH i2c: E2 08 00 F7 90 80 13 00 00 00 00 00 00 03 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:06]Read from MH i2c: E2 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 62 00 [00:29:06]MH_I2C_Read... [00:29:06]Read from MH i2c: E2 62 00 F7 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [00:29:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:06]wFMCommunicate OK [00:29:06]SAM_PROTO_GetFieldsCounters done [00:29:06]Malloc new data [00:29:06]Malloc new data [00:29:06]Malloc new data [00:29:06]KKMCreateXReportDocument OK [00:29:06]KKMSetXReportData OK [00:29:06]KKMPrepareXReportFMData [00:29:06]SAM_PROTO_GetShiftData [00:29:06]wFMCommunicate request_size=4 [00:29:06]MH_SAM_APDU [00:29:06]CAPDU: 80 13 02 00 [00:29:06]Write to MH i2c: E2 08 00 F8 90 80 13 02 00 00 00 00 00 06 [00:29:06]Write i2c OK [00:29:06]MH_I2C_Read... [00:29:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:07]Read from MH i2c: E2 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 FD 00 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 FD 00 F8 90 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F9 [00:29:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:07]wFMCommunicate OK [00:29:07]wFMCommunicate request_size=4 [00:29:07]MH_SAM_APDU [00:29:07]CAPDU: 80 17 00 00 [00:29:07]Write to MH i2c: E2 08 00 F9 90 80 17 00 00 00 00 00 00 09 [00:29:07]Write i2c OK [00:29:07]MH_I2C_Read... [00:29:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:07]Read from MH i2c: E2 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 FD 00 [00:29:07]MH_I2C_Read... [00:29:07]Read from MH i2c: E2 FD 00 F9 90 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 22 [00:29:07]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:07]wFMCommunicate OK [00:29:07]wFMCommunicate request_size=4 [00:29:07]MH_SAM_APDU [00:29:07]CAPDU: 80 17 00 00 [00:29:07]Write to MH i2c: E2 08 00 FA 90 80 17 00 00 00 00 00 00 0A [00:29:07]Write i2c OK [00:29:07]MH_I2C_Read... [00:29:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:08]Read from MH i2c: E2 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 FD 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 FD 00 FA 90 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 OFD Sender: No OFD packet to send [00:29:08]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 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 C3 [00:29:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:08]wFMCommunicate OK [00:29:08]wFMCommunicate request_size=4 [00:29:08]MH_SAM_APDU [00:29:08]CAPDU: 80 17 00 00 [00:29:08]Write to MH i2c: E2 08 00 FB 90 80 17 00 00 00 00 00 00 0B [00:29:08]Write i2c OK [00:29:08]MH_I2C_Read... [00:29:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:08]Read from MH i2c: E2 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 FD 00 [00:29:08]MH_I2C_Read... [00:29:08]Read from MH i2c: E2 FD 00 FB 90 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 83 [00:29:08]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:09]wFMCommunicate OK [00:29:09]wFMCommunicate request_size=4 [00:29:09]MH_SAM_APDU [00:29:09]CAPDU: 80 17 00 00 [00:29:09]Write to MH i2c: E2 08 00 FC 90 80 17 00 00 00 00 00 00 0C [00:29:09]Write i2c OK [00:29:09]MH_I2C_Read... [00:29:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:09]Read from MH i2c: E2 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 CE 00 [00:29:09]MH_I2C_Read... [00:29:09]Read from MH i2c: E2 CE 00 FC 90 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 F1 [00:29:09]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:09]wFMCommunicate OK [00:29:09]SAM_PROTO_GetShiftData done [00:29:09]1194 (1197) - счетчики итогов смены [00:29:09] 1134 (4) - 354 - количество чеков со всеми признаками расчетов [00:29:09] 1129 (158) - счетчики операций «приход» [00:29:09] 1135 (4) - 354 - количество чеков по признаку расчетов [00:29:09] 1201 (4) - 309950.40 - общая итоговая сумма в чеках [00:29:09] 1136 (4) - 227983.00 - итоговая сумма в чеках наличными [00:29:09] 1138 (3) - 81967.40 - итоговая сумма в чеках безналичными [00:29:09] 1024 (123) - суммы налогов [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 0% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1006 (12) - суммы НДС [00:29:09] 1010 (1) - 12% - код ставки НДС [00:29:09] 1011 (3) - 32925.75 - сумма НДС по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (12) - суммы НСП [00:29:09] 1014 (1) - 1% - код ставки НСП [00:29:09] 1015 (3) - 2743.68 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 2% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 3% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 5% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1130 (141) - счетчики операций «возврат прихода» [00:29:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:09] 1024 (117) - суммы налогов [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 0% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 12% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 2% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 3% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 5% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1131 (141) - счетчики операций «расход» [00:29:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:09] 1024 (117) - суммы налогов [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 0% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 12% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 2% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 3% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 5% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1132 (141) - счетчики операций «возврат расхода» [00:29:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:29:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:29:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:29:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:29:09] 1024 (117) - суммы налогов [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 0% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1006 (9) - суммы НДС [00:29:09] 1010 (1) - 12% - код ставки НДС [00:29:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 2% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 3% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 5% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 0,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1007 (9) - суммы НСП [00:29:09] 1014 (1) - 1,50% - код ставки НСП [00:29:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:29:09] 1133 (588) - - счетчики коррекции - не используются [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1194 (04AA) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1134 (046E) [00:29:09]Malloc new data [00:29:09]Processing tag 1129 (0469) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1135 (046F) [00:29:09]Malloc new data [00:29:09]Processing tag 1201 (04B1) [00:29:09]Malloc new data [00:29:09]Processing tag 1136 (0470) [00:29:09]Malloc new data [00:29:09]Processing tag 1138 (0472) [00:29:09]Malloc new data [00:29:09]Processing tag 1024 (0400) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1006 (03EE) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1010 (03F2) [00:29:09]Malloc new data [00:29:09]Processing tag 1011 (03F3) [00:29:09]Malloc new data [00:29:09]SetTLVBufToDocument err=0 [00:29:09]Processing tag 1006 (03EE) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1010 (03F2) [00:29:09]Malloc new data [00:29:09]Processing tag 1011 (03F3) [00:29:09]Malloc new data [00:29:09]SetTLVBufToDocument err=0 [00:29:09]Processing tag 1007 (03EF) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:09]Processing tag 1014 (03F6) [00:29:09]Malloc new data [00:29:09]Processing tag 1015 (03F7) [00:29:09]Malloc new data [00:29:09]SetTLVBufToDocument err=0 [00:29:09]Processing tag 1007 (03EF) [00:29:09]Load OK [00:29:09]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1130 (046A) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1135 (046F) [00:29:10]Malloc new data [00:29:10]Processing tag 1201 (04B1) [00:29:10]Malloc new data [00:29:10]Processing tag 1136 (0470) [00:29:10]Malloc new data [00:29:10]Processing tag 1138 (0472) [00:29:10]Malloc new data [00:29:10]Processing tag 1024 (0400) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1006 (03EE) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1010 (03F2) [00:29:10]Malloc new data [00:29:10]Processing tag 1011 (03F3) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1006 (03EE) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1010 (03F2) [00:29:10]Malloc new data [00:29:10]Processing tag 1011 (03F3) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1131 (046B) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1135 (046F) [00:29:10]Malloc new data [00:29:10]Processing tag 1201 (04B1) [00:29:10]Malloc new data [00:29:10]Processing tag 1136 (0470) [00:29:10]Malloc new data [00:29:10]Processing tag 1138 (0472) [00:29:10]Malloc new data [00:29:10]Processing tag 1024 (0400) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1006 (03EE) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1010 (03F2) [00:29:10]Malloc new data [00:29:10]Processing tag 1011 (03F3) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1006 (03EE) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1010 (03F2) [00:29:10]Malloc new data [00:29:10]Processing tag 1011 (03F3) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1132 (046C) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1135 (046F) [00:29:10]Malloc new data [00:29:10]Processing tag 1201 (04B1) [00:29:10]Malloc new data [00:29:10]Processing tag 1136 (0470) [00:29:10]Malloc new data [00:29:10]Processing tag 1138 (0472) [00:29:10]Malloc new data [00:29:10]Processing tag 1024 (0400) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1006 (03EE) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1010 (03F2) [00:29:10]Malloc new data [00:29:10]Processing tag 1011 (03F3) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1006 (03EE) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1010 (03F2) [00:29:10]Malloc new data [00:29:10]Processing tag 1011 (03F3) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1007 (03EF) [00:29:10]Load OK [00:29:10]SetTLVBufToDocument [00:29:10]Processing tag 1014 (03F6) [00:29:10]Malloc new data [00:29:10]Processing tag 1015 (03F7) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Processing tag 1133 (046D) [00:29:10]Malloc new data [00:29:10]SetTLVBufToDocument err=0 [00:29:10]SetTLVBufToDocument err=0 [00:29:10]Malloc new data [00:29:10]SAM_PROTO_GetFMData [00:29:10]wFMCommunicate request_size=4 [00:29:10]MH_SAM_APDU [00:29:10]CAPDU: 80 13 03 00 [00:29:10]Write to MH i2c: E2 08 00 FD 90 80 13 03 00 00 00 00 00 0C [00:29:10]Write i2c OK [00:29:10]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 FD 90 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 FE [00:29:11]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:29:11]wFMCommunicate OK [00:29:11]wFMCommunicate request_size=4 [00:29:11]MH_SAM_APDU [00:29:11]CAPDU: 80 17 00 00 [00:29:11]Write to MH i2c: E2 08 00 FE 90 80 17 00 00 00 00 00 00 0E [00:29:11]Write i2c OK [00:29:11]MH_I2C_Read... [00:29:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:11]Read from MH i2c: E2 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 [00:29:11]MH_I2C_Read... [00:29:11]Read from MH i2c: E2 FD 00 FE 90 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 DA [00:29:11]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 17 00 00 [00:29:12]Write to MH i2c: E2 08 00 FF 90 80 17 00 00 00 00 00 00 0F [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 FF 90 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 21 [00:29:12]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:29:12]wFMCommunicate OK [00:29:12]wFMCommunicate request_size=4 [00:29:12]MH_SAM_APDU [00:29:12]CAPDU: 80 17 00 00 [00:29:12]Write to MH i2c: E2 08 00 00 91 80 17 00 00 00 00 00 00 11 [00:29:12]Write i2c OK [00:29:12]MH_I2C_Read... [00:29:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:12]Read from MH i2c: E2 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 [00:29:12]MH_I2C_Read... [00:29:12]Read from MH i2c: E2 FD 00 00 91 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 9D [00:29:13]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:29:13]wFMCommunicate OK [00:29:13]wFMCommunicate request_size=4 [00:29:13]MH_SAM_APDU [00:29:13]CAPDU: 80 17 00 00 [00:29:13]Write to MH i2c: E2 08 00 01 91 80 17 00 00 00 00 00 00 12 [00:29:13]Write i2c OK [00:29:13]MH_I2C_Read... [00:29:13]OFD Sender: No OFD packet to send [00:29:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:29:13]Read from MH i2c: E2 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 E2 00 [00:29:13]MH_I2C_Read... [00:29:13]Read from MH i2c: E2 E2 00 01 91 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:13]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:13]wFMCommunicate OK [00:29:13]SAM_PROTO_GetFMData done [00:29:13]FM_GetFMData:85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:14]oper:6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:14]total:B4 CE 74 B2 03 [00:29:14]Malloc new data [00:29:14]oper:6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:14]total:A0 FF AF 0A [00:29:14]Malloc new data [00:29:14]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:15]total: [00:29:15]Malloc new data [00:29:15]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:29:15]total: [00:29:15]Malloc new data [00:29:15]KKMPrepareXReportFMData err=0 [00:29:15]Х отчет ИНН: 02508201610067 Кассир: Алыкулова К. 22.10.2024 00:29 Смена: 522 РНМ: 0000000000091764 ЗНМ: 0300000104 СНО: Общий режим Всего чеков: 354 ИТОГИ ПРИХОД Чеков: 354 Общий итог: 309950.40 Итого наличными: 227983.00 Итого безнал.: 81967.40 НДС 0% : 0.00 НДС 12% : 32925.75 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2743.68 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 227983.00 НС Приход: 158789014.28 НС Возвр.Прихода: 1793064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871759 [00:29:15]StoreToDocumentArchive [00:29:15]MH_GetDate [00:29:15]Write to MH i2c: F0 00 00 02 91 82 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: F0 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: F0 09 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: F0 09 00 02 91 00 F0 F1 16 67 21 48 4A 65 01 [00:29:15]shift 522 fd 1729556976 [00:29:15]Create dir for shift 0522 [00:29:15]save to /storage/0522/doc_1729556976 [00:29:15]save last doc name /storage/0522/doc_1729556976 to /storage/kkm_last_doc_name [00:29:15]save OK [00:29:15]Clear old archive folders... [00:29:15]NVStorageSaveData kkm_last_timestamp [00:29:15]File name is /storage/kkm_last_timestamp [00:29:15]Write 4 bytes [00:29:15]NVStorageSaveData done [00:29:15]ExternCall_PrintAddStr [00:29:15]wPrintStart [00:29:15]Write to MH i2c: 01 00 00 03 91 94 [00:29:15]Write i2c OK [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 07 00 [00:29:15]MH_I2C_Read... [00:29:15]Read from MH i2c: 01 07 00 03 91 00 00 00 00 00 FF 0F A9 [00:29:15]RasterBufferAndPrint [00:29:15]line Х отчет [00:29:15]line ИНН: 02508201610067 [00:29:15]line Кассир: Алыкулова К. [00:29:15]line 22.10.2024 00:29 [00:29:15]line Смена: 522 [00:29:15]line РНМ: 0000000000091764 [00:29:15]line ЗНМ: 0300000104 [00:29:15]line СНО: Общий режим [00:29:15]line Всего чеков: 354 [00:29:15]line ИТОГИ ПРИХОД [00:29:15]line Чеков: 354 [00:29:15]line Общий итог: 309950.40 [00:29:15]line Итого наличными: 227983.00 [00:29:15]line Итого безнал.: 81967.40 [00:29:15]line НДС 0% : 0.00 [00:29:15]line НДС 12% : 32925.75 [00:29:15]line НСП 0% : 0.00 [00:29:15]line НСП 1,50% : 0.00 [00:29:15]line НСП 0,50% : 0.00 [00:29:15]line НСП 5% : 0.00 [00:29:15]line НСП 3% : 0.00 [00:29:15]line НСП 2% : 0.00 [00:29:15]line НСП 1% : 2743.68 [00:29:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:29:15]line Чеков: 0 [00:29:15]line Общий итог: 0.00 [00:29:15]line Итого наличными: 0.00 [00:29:15]line Итого безнал.: 0.00 [00:29:15]line НДС 0% : 0.00 [00:29:15]line НДС 12% : 0.00 [00:29:15]line НСП 0% : 0.00 [00:29:15]line НСП 1,50% : 0.00 [00:29:15]line НСП 0,50% : 0.00 [00:29:15]line НСП 5% : 0.00 [00:29:15]line НСП 3% : 0.00 [00:29:15]line НСП 2% : 0.00 [00:29:15]line НСП 1% : 0.00 [00:29:15]line ИТОГИ РАСХОД [00:29:15]line Чеков: 0 [00:29:15]line Общий итог: 0.00 [00:29:15]line Итого наличными: 0.00 [00:29:15]line Итого безнал.: 0.00 [00:29:15]line НДС 0% : 0.00 [00:29:15]line НДС 12% : 0.00 [00:29:15]line НСП 0% : 0.00 [00:29:15]line НСП 1,50% : 0.00 [00:29:15]line НСП 0,50% : 0.00 [00:29:15]line НСП 5% : 0.00 [00:29:15]line НСП 3% : 0.00 [00:29:15]line НСП 2% : 0.00 [00:29:15]line НСП 1% : 0.00 [00:29:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:29:15]line Чеков: 0 [00:29:15]line Общий итог: 0.00 [00:29:15]line Итого наличными: 0.00 [00:29:15]line Итого безнал.: 0.00 [00:29:15]line НДС 0% : 0.00 [00:29:15]line НДС 12% : 0.00 [00:29:15]line НСП 0% : 0.00 [00:29:15]line НСП 1,50% : 0.00 [00:29:15]line НСП 0,50% : 0.00 [00:29:15]line НСП 5% : 0.00 [00:29:15]line НСП 3% : 0.00 [00:29:15]line НСП 2% : 0.00 [00:29:15]line НСП 1% : 0.00 [00:29:15]line Сумма внесений: 0.00 [00:29:15]line Сумма выплат: 0.00 [00:29:15]line Нал. в кассе: 227983.00 [00:29:15]line НС Приход: 158789014.28 [00:29:15]line НС Возвр.Прихода: 1793064.00 [00:29:15]line НС Расход: 0.00 [00:29:15]line НС Возвр.Расхода: 0.00 [00:29:15]line ФМ: 0000000000871759 [00:29:15]written 0, free lines is 4095 [00:29:16]Write to MH i2c: 01 00 00 4E 91 DF [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: 01 07 00 4E 91 00 00 00 00 00 88 0A 78 [00:29:16]RasterBufferAndPrint [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]line [00:29:16]written 0, free lines is 2730 [00:29:16]MH_Cut [00:29:16]Write to MH i2c: D1 01 00 55 91 01 B8 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 01 00 [00:29:16]MH_I2C_Read... [00:29:16]Read from MH i2c: D1 01 00 55 91 00 B7 [00:29:16]Write to MH i2c: 01 00 00 56 91 E7 [00:29:16]Write i2c OK [00:29:16]MH_I2C_Read... [00:29:17]*** Cut start [00:29:17]*** Partial cut [00:29:17]*** CUTSNS_PIN = 1 [00:29:17]*** CUTSNS_PIN = 0 [00:29:17]*** Brake cut motor [00:29:17]Read from MH i2c: 01 [00:29:17]MH_I2C_Read... [00:29:17]*** Stop cut motor [00:29:17]*** Cut end [00:29:17]Read from MH i2c: 01 07 00 [00:29:17]MH_I2C_Read... [00:29:17]Read from MH i2c: 01 07 00 56 91 00 00 00 00 00 FF 0F FC [00:29:17]process_action x_report done [00:29:17]requested_data is exist [00:29:17]produce_requested_data [00:29:17]requested_item fd.num is exist - process it [00:29:17]SAM_PROTO_GetFieldsCounters [00:29:17]wFMCommunicate request_size=4 [00:29:17]MH_SAM_APDU [00:29:17]CAPDU: 80 13 00 00 [00:29:17]Write to MH i2c: E2 08 00 57 91 80 13 00 00 00 00 00 00 64 [00:29:17]Write i2c OK [00:29:17]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 [00:29:18]MH_I2C_Read... [00:29:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:18]Read from MH i2c: E2 62 00 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 62 00 57 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [00:29:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:18]wFMCommunicate OK [00:29:18]SAM_PROTO_GetFieldsCounters done [00:29:18]requested_item shift.num is exist - process it [00:29:18]requested_item shift.opened is exist - process it [00:29:18]req_shift_opened [00:29:18]FM_GetShiftState [00:29:18]SAM_PROTO_GetShiftState [00:29:18]wFMCommunicate request_size=4 [00:29:18]MH_SAM_APDU [00:29:18]CAPDU: 80 13 01 00 [00:29:18]Write to MH i2c: E2 08 00 58 91 80 13 01 00 00 00 00 00 66 [00:29:18]Write i2c OK [00:29:18]MH_I2C_Read... [00:29:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:18]Read from MH i2c: E2 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 0E 00 [00:29:18]MH_I2C_Read... [00:29:18]Read from MH i2c: E2 0E 00 58 91 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 6F [00:29:18]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:29:18]wFMCommunicate OK [00:29:18]SAM_PROTO_GetShiftState done [00:29:18]FM_GetShiftState done [00:29:18]req_shift_opened done [00:29:18]requested_item shift.open_date is exist - process it [00:29:18]req_shift_open_date [00:29:18]req_shift_open_date done [00:29:18]produce_requested_data done [00:29:18]produce_requested_data return {"fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:29:18]process_action_free x_report [00:29:18]json_value_free [00:29:18]json_value_free done [00:29:18]process_json_proto returns [00:29:18]Send response to host [00:29:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:29:18]free response buf [00:29:18]execute_script done [00:29:18]execute_script returns [00:29:18]free content buf [00:29:18]Sock 6.Close socket [00:29:18]Sock 6.Thread stoped [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:52]accept exits with 5 [00:29:52]New connection [00:29:52]New thread 3066920292 created [00:29:52]Thread 3066776932 joined [00:29:52]Waiting for new connection... [00:29:52] Sock 5.Parse request [00:29:52]Sock 5.Check first char [00:29:52]Sock 5.First char is OK [00:29:52]request: POST /json_proto HTTP/1.0 [00:29:52]Method: POST [00:29:52]URL: /json_proto [00:29:52]Method is POST - this is cgi request [00:29:52]url: /json_proto [00:29:52]query_string will be loaded in cgi processing [00:29:52]execute_cgi json_proto POST (null) [00:29:52]execute_cgi path=json_proto method=POST [00:29:52]POST find Content-Length [00:29:52]Host: 172.17.53.195:8080 [00:29:52]Content-Length: 215 [00:29:52]Content-Type: application/json [00:29:52] [00:29:52]POST finish read [00:29:52]Found Content-Length = 215 [00:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:52]execute_script... [00:29:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:29:52]POST & json_proto [00:29:52]process_json_proto [00:29:52]json parsed OK: [00:29:52]protocol is kg_v1.0 [00:29:52]action value=get_value [00:29:52]process_action get_value [00:29:52]cmd_get_value [00:29:52]process_action get_value done [00:29:52]requested_data is exist [00:29:52]produce_requested_data [00:29:52]requested_item kkm.sn is exist - process it [00:29:52]requested_item kkm.ver is exist - process it [00:29:52]requested_item fm.sn is exist - process it [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 11 00 00 [00:29:52]Write to MH i2c: E2 08 00 59 91 80 11 00 00 00 00 00 00 64 [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:29:52]Read from MH i2c: E2 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 17 00 [00:29:52]MH_I2C_Read... [00:29:52]Read from MH i2c: E2 17 00 59 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BC [00:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:29:52]wFMCommunicate OK [00:29:52]requested_item fd.num is exist - process it [00:29:52]SAM_PROTO_GetFieldsCounters [00:29:52]wFMCommunicate request_size=4 [00:29:52]MH_SAM_APDU [00:29:52]CAPDU: 80 13 00 00 [00:29:52]Write to MH i2c: E2 08 00 5A 91 80 13 00 00 00 00 00 00 67 [00:29:52]Write i2c OK [00:29:52]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 62 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 62 00 5A 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [00:29:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 63 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:29:53]wFMCommunicate OK [00:29:53]SAM_PROTO_GetFieldsCounters done [00:29:53]requested_item shift.num is exist - process it [00:29:53]requested_item shift.opened is exist - process it [00:29:53]req_shift_opened [00:29:53]FM_GetShiftState [00:29:53]SAM_PROTO_GetShiftState [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 13 01 00 [00:29:53]Write to MH i2c: E2 08 00 5B 91 80 13 01 00 00 00 00 00 69 [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:29:53]Read from MH i2c: E2 0E 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 0E 00 5B 91 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 72 [00:29:53]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:29:53]wFMCommunicate OK [00:29:53]SAM_PROTO_GetShiftState done [00:29:53]FM_GetShiftState done [00:29:53]req_shift_opened done [00:29:53]requested_item shift.open_date is exist - process it [00:29:53]req_shift_open_date [00:29:53]req_shift_open_date done [00:29:53]produce_requested_data done [00:29:53]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944} [00:29:53]process_action_free get_value [00:29:53]json_value_free [00:29:53]json_value_free done [00:29:53]process_json_proto returns [00:29:53]Send response to host [00:29:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166243,"shift.num":535,"shift.opened":1,"shift.open_date":1729470944}}} [00:29:53]free response buf [00:29:53]execute_script done [00:29:53]execute_script returns [00:29:53]free content buf [00:29:53]Sock 5.Close socket [00:29:53]Sock 5.Thread stoped [00:29:53]accept exits with 6 [00:29:53]New connection [00:29:53]New thread 3066776932 created [00:29:53]Thread 3066920292 joined [00:29:53]Waiting for new connection... [00:29:53] Sock 6.Parse request [00:29:53]Sock 6.Check first char [00:29:53]Sock 6.First char is OK [00:29:53]request: POST /json_proto HTTP/1.0 [00:29:53]Method: POST [00:29:53]URL: /json_proto [00:29:53]Method is POST - this is cgi request [00:29:53]url: /json_proto [00:29:53]query_string will be loaded in cgi processing [00:29:53]execute_cgi json_proto POST (null) [00:29:53]execute_cgi path=json_proto method=POST [00:29:53]POST find Content-Length [00:29:53]Host: 172.17.53.195:8080 [00:29:53]Content-Length: 331 [00:29:53]Content-Type: application/json [00:29:53] [00:29:53]POST finish read [00:29:53]Found Content-Length = 331 [00:29:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:53]execute_script... [00:29:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:53]POST & json_proto [00:29:53]process_json_proto [00:29:53]json parsed OK: [00:29:53]protocol is kg_v1.0 [00:29:53]action value=get_value [00:29:53]process_action get_value [00:29:53]cmd_get_value [00:29:53]process_action get_value done [00:29:53]requested_data is exist [00:29:53]produce_requested_data [00:29:53]requested_item fm.sale.total is exist - process it [00:29:53]SAM_PROTO_GetFMData [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 13 03 00 [00:29:53]Write to MH i2c: E2 08 00 5C 91 80 13 03 00 00 00 00 00 6C [00:29:53]OFD Sender: No OFD packet to send [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:53]Read from MH i2c: E2 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 [00:29:53]MH_I2C_Read... [00:29:53]Read from MH i2c: E2 FD 00 5C 91 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 5E [00:29:53]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:29:53]wFMCommunicate OK [00:29:53]wFMCommunicate request_size=4 [00:29:53]MH_SAM_APDU [00:29:53]CAPDU: 80 17 00 00 [00:29:53]Write to MH i2c: E2 08 00 5D 91 80 17 00 00 00 00 00 00 6E [00:29:53]Write i2c OK [00:29:53]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 5D 91 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 3A [00:29:54]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 17 00 00 [00:29:54]Write to MH i2c: E2 08 00 5E 91 80 17 00 00 00 00 00 00 6F [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 5E 91 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 81 [00:29:54]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 17 00 00 [00:29:54]Write to MH i2c: E2 08 00 5F 91 80 17 00 00 00 00 00 00 70 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 FD 00 5F 91 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 FC [00:29:54]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:29:54]wFMCommunicate OK [00:29:54]wFMCommunicate request_size=4 [00:29:54]MH_SAM_APDU [00:29:54]CAPDU: 80 17 00 00 [00:29:54]Write to MH i2c: E2 08 00 60 91 80 17 00 00 00 00 00 00 71 [00:29:54]Write i2c OK [00:29:54]MH_I2C_Read... [00:29:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:29:54]Read from MH i2c: E2 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 E2 00 [00:29:54]MH_I2C_Read... [00:29:54]Read from MH i2c: E2 E2 00 60 91 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [00:29:54]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:55]wFMCommunicate OK [00:29:55]SAM_PROTO_GetFMData done [00:29:55]requested_item fm.sale_refund.total is exist - process it [00:29:55]requested_item fm.buy.total is exist - process it [00:29:55]requested_item shift.sale.total is exist - process it [00:29:55]SAM_PROTO_GetShiftData [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 13 02 00 [00:29:55]Write to MH i2c: E2 08 00 61 91 80 13 02 00 00 00 00 00 70 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 61 91 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 63 [00:29:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 17 00 00 [00:29:55]Write to MH i2c: E2 08 00 62 91 80 17 00 00 00 00 00 00 73 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:55]Read from MH i2c: E2 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 [00:29:55]MH_I2C_Read... [00:29:55]Read from MH i2c: E2 FD 00 62 91 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 8C [00:29:55]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:29:55]wFMCommunicate OK [00:29:55]wFMCommunicate request_size=4 [00:29:55]MH_SAM_APDU [00:29:55]CAPDU: 80 17 00 00 [00:29:55]Write to MH i2c: E2 08 00 63 91 80 17 00 00 00 00 00 00 74 [00:29:55]Write i2c OK [00:29:55]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 63 91 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 2D [00:29:56]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:29:56]wFMCommunicate OK [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 17 00 00 [00:29:56]Write to MH i2c: E2 08 00 64 91 80 17 00 00 00 00 00 00 75 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 FD 00 64 91 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 ED [00:29:56]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:29:56]wFMCommunicate OK [00:29:56]wFMCommunicate request_size=4 [00:29:56]MH_SAM_APDU [00:29:56]CAPDU: 80 17 00 00 [00:29:56]Write to MH i2c: E2 08 00 65 91 80 17 00 00 00 00 00 00 76 [00:29:56]Write i2c OK [00:29:56]MH_I2C_Read... [00:29:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:29:56]Read from MH i2c: E2 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 CE 00 [00:29:56]MH_I2C_Read... [00:29:56]Read from MH i2c: E2 CE 00 65 91 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 5B [00:29:56]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:56]wFMCommunicate OK [00:29:56]SAM_PROTO_GetShiftData done [00:29:56]requested_item shift.sale.total_cash is exist - process it [00:29:56]requested_item shift.sale_refund.total is exist - process it [00:29:56]requested_item shift.sale_refund.total_cash is exist - process it [00:29:56]requested_item shift.buy.total is exist - process it [00:29:56]requested_item shift.buy.total_cash is exist - process it [00:29:56]produce_requested_data done [00:29:56]produce_requested_data return {"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:29:56]process_action_free get_value [00:29:56]json_value_free [00:29:56]json_value_free done [00:29:56]process_json_proto returns [00:29:56]Send response to host [00:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:29:56]free response buf [00:29:56]execute_script done [00:29:56]execute_script returns [00:29:56]free content buf [00:29:56]Sock 6.Close socket [00:29:56]Sock 6.Thread stoped [00:29:57]accept exits with 5 [00:29:57]New connection [00:29:57]New thread 3066920292 created [00:29:57]Thread 3066776932 joined [00:29:57]Waiting for new connection... [00:29:57] Sock 5.Parse request [00:29:57]Sock 5.Check first char [00:29:57]Sock 5.First char is OK [00:29:57]request: POST /json_proto HTTP/1.0 [00:29:57]Method: POST [00:29:57]URL: /json_proto [00:29:57]Method is POST - this is cgi request [00:29:57]url: /json_proto [00:29:57]query_string will be loaded in cgi processing [00:29:57]execute_cgi json_proto POST (null) [00:29:57]execute_cgi path=json_proto method=POST [00:29:57]POST find Content-Length [00:29:57]Host: 172.17.53.195:8080 [00:29:57]Content-Length: 331 [00:29:57]Content-Type: application/json [00:29:57] [00:29:57]POST finish read [00:29:57]Found Content-Length = 331 [00:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:57]execute_script... [00:29:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:29:57]POST & json_proto [00:29:57]process_json_proto [00:29:57]json parsed OK: [00:29:57]protocol is kg_v1.0 [00:29:57]action value=get_value [00:29:57]process_action get_value [00:29:57]cmd_get_value [00:29:57]process_action get_value done [00:29:57]requested_data is exist [00:29:57]produce_requested_data [00:29:57]requested_item fm.sale.total is exist - process it [00:29:57]SAM_PROTO_GetFMData [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 13 03 00 [00:29:57]Write to MH i2c: E2 08 00 66 91 80 13 03 00 00 00 00 00 76 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 66 91 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 68 [00:29:57]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:29:57]wFMCommunicate OK [00:29:57]wFMCommunicate request_size=4 [00:29:57]MH_SAM_APDU [00:29:57]CAPDU: 80 17 00 00 [00:29:57]Write to MH i2c: E2 08 00 67 91 80 17 00 00 00 00 00 00 78 [00:29:57]Write i2c OK [00:29:57]MH_I2C_Read... [00:29:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:57]Read from MH i2c: E2 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 [00:29:57]MH_I2C_Read... [00:29:57]Read from MH i2c: E2 FD 00 67 91 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 44 [00:29:57]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:29:58]wFMCommunicate OK [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 17 00 00 [00:29:58]Write to MH i2c: E2 08 00 68 91 80 17 00 00 00 00 00 00 79 [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 FD 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 FD 00 68 91 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 8B [00:29:58]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:29:58]wFMCommunicate OK [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 17 00 00 [00:29:58]Write to MH i2c: E2 08 00 69 91 80 17 00 00 00 00 00 00 7A [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:58]OFD Sender: No OFD packet to send [00:29:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:29:58]Read from MH i2c: E2 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 FD 00 [00:29:58]MH_I2C_Read... [00:29:58]Read from MH i2c: E2 FD 00 69 91 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 06 [00:29:58]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:29:58]wFMCommunicate OK [00:29:58]wFMCommunicate request_size=4 [00:29:58]MH_SAM_APDU [00:29:58]CAPDU: 80 17 00 00 [00:29:58]Write to MH i2c: E2 08 00 6A 91 80 17 00 00 00 00 00 00 7B [00:29:58]Write i2c OK [00:29:58]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 E2 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 E2 00 6A 91 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:29:59]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:29:59]wFMCommunicate OK [00:29:59]SAM_PROTO_GetFMData done [00:29:59]requested_item fm.sale_refund.total is exist - process it [00:29:59]requested_item fm.buy.total is exist - process it [00:29:59]requested_item shift.sale.total is exist - process it [00:29:59]SAM_PROTO_GetShiftData [00:29:59]wFMCommunicate request_size=4 [00:29:59]MH_SAM_APDU [00:29:59]CAPDU: 80 13 02 00 [00:29:59]Write to MH i2c: E2 08 00 6B 91 80 13 02 00 00 00 00 00 7A [00:29:59]Write i2c OK [00:29:59]MH_I2C_Read... [00:29:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:29:59]Read from MH i2c: E2 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 FD 00 [00:29:59]MH_I2C_Read... [00:29:59]Read from MH i2c: E2 FD 00 6B 91 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 6D [00:29:59]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:00]wFMCommunicate OK [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 17 00 00 [00:30:00]Write to MH i2c: E2 08 00 6C 91 80 17 00 00 00 00 00 00 7D [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 6C 91 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 96 [00:30:00]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 90 00 [00:30:00]wFMCommunicate OK [00:30:00]wFMCommunicate request_size=4 [00:30:00]MH_SAM_APDU [00:30:00]CAPDU: 80 17 00 00 [00:30:00]Write to MH i2c: E2 08 00 6D 91 80 17 00 00 00 00 00 00 7E [00:30:00]Write i2c OK [00:30:00]MH_I2C_Read... [00:30:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:00]Read from MH i2c: E2 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 [00:30:00]MH_I2C_Read... [00:30:00]Read from MH i2c: E2 FD 00 6D 91 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 37 [00:30:00]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 6E 91 80 17 00 00 00 00 00 00 7F [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 FD 00 6E 91 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 F7 [00:30:01]RAPDU: 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:30:01]wFMCommunicate OK [00:30:01]wFMCommunicate request_size=4 [00:30:01]MH_SAM_APDU [00:30:01]CAPDU: 80 17 00 00 [00:30:01]Write to MH i2c: E2 08 00 6F 91 80 17 00 00 00 00 00 00 80 [00:30:01]Write i2c OK [00:30:01]MH_I2C_Read... [00:30:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:30:01]Read from MH i2c: E2 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 CE 00 [00:30:01]MH_I2C_Read... [00:30:01]Read from MH i2c: E2 CE 00 6F 91 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 65 [00:30:01]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_GetShiftData done [00:30:02]requested_item shift.sale.total_cash is exist - process it [00:30:02]requested_item shift.sale_refund.total is exist - process it [00:30:02]requested_item shift.sale_refund.total_cash is exist - process it [00:30:02]requested_item shift.buy.total is exist - process it [00:30:02]requested_item shift.buy.total_cash is exist - process it [00:30:02]produce_requested_data done [00:30:02]produce_requested_data return {"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:30:02]process_action_free get_value [00:30:02]json_value_free [00:30:02]json_value_free done [00:30:02]process_json_proto returns [00:30:02]Send response to host [00:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:30:02]free response buf [00:30:02]execute_script done [00:30:02]execute_script returns [00:30:02]free content buf [00:30:02]Sock 5.Close socket [00:30:02]Sock 5.Thread stoped [00:30:02]accept exits with 6 [00:30:02]New connection [00:30:02]New thread 3066776932 created [00:30:02]Thread 3066920292 joined [00:30:02]Waiting for new connection... [00:30:02] Sock 6.Parse request [00:30:02]Sock 6.Check first char [00:30:02]Sock 6.First char is OK [00:30:02]request: POST /json_proto HTTP/1.0 [00:30:02]Method: POST [00:30:02]URL: /json_proto [00:30:02]Method is POST - this is cgi request [00:30:02]url: /json_proto [00:30:02]query_string will be loaded in cgi processing [00:30:02]execute_cgi json_proto POST (null) [00:30:02]execute_cgi path=json_proto method=POST [00:30:02]POST find Content-Length [00:30:02]Host: 172.17.53.195:8080 [00:30:02]Content-Length: 266 [00:30:02]Content-Type: application/json [00:30:02] [00:30:02]POST finish read [00:30:02]Found Content-Length = 266 [00:30:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:02]execute_script... [00:30:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u043B\u044B\u043A\u0443\u043B\u043E\u0432\u0430 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:02]POST & json_proto [00:30:02]process_json_proto [00:30:02]json parsed OK: [00:30:02]protocol is kg_v1.0 [00:30:02]action value=close_shift [00:30:02]process_action close_shift [00:30:02]cmd_close_shift [00:30:02]MH_GetDate [00:30:02]Write to MH i2c: F0 00 00 70 91 F0 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 70 91 00 1F F2 16 67 21 48 4A 65 9F [00:30:02]GetLastDocTimeStamp 1729556967 [00:30:02]current date 1729557023 [00:30:02]FM_GetShiftState [00:30:02]SAM_PROTO_GetShiftState [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 13 01 00 [00:30:02]Write to MH i2c: E2 08 00 71 91 80 13 01 00 00 00 00 00 7F [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 0E 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 0E 00 71 91 00 09 00 01 E0 A1 15 67 00 00 00 00 90 00 88 [00:30:02]RAPDU: 09 00 01 E0 A1 15 67 00 00 00 00 90 00 [00:30:02]wFMCommunicate OK [00:30:02]SAM_PROTO_GetShiftState done [00:30:02]FM_GetShiftState done [00:30:02]KKMCreateCloseShiftDocument [00:30:02]Load OK [00:30:02]Malloc new data [00:30:02]MH_GetDate [00:30:02]Write to MH i2c: F0 00 00 72 91 F2 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: F0 09 00 72 91 00 1F F2 16 67 21 48 4A 65 A1 [00:30:02]Malloc new data [00:30:02]Malloc new data [00:30:02]Malloc new data [00:30:02]Malloc new data [00:30:02]KKMCreateCloseShiftDocument OK [00:30:02]KKMSetCloseShiftData OK [00:30:02]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:30:02]tlvbuf is 019FBC40 [00:30:02]KKMLoadAndSignCloseShiftData [00:30:02]SAM_PROTO_ProcessDocument [00:30:02]wFMCommunicate request_size=9 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 15 01 00 04 05 00 49 00 [00:30:02]Write to MH i2c: E2 0C 00 73 91 80 15 01 00 04 00 05 00 49 00 00 00 D9 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 73 91 00 90 00 78 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=23 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:30:02]Write to MH i2c: E2 1A 00 74 91 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 7A [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 74 91 00 90 00 79 [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=32 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 [00:30:02]Write to MH i2c: E2 23 00 75 91 80 15 02 00 1B 00 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 00 00 EB [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 75 91 00 90 00 7A [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=13 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 15 02 00 08 F4 03 04 00 1F F2 16 67 [00:30:02]Write to MH i2c: E2 10 00 76 91 80 15 02 00 08 00 F4 03 04 00 1F F2 16 67 00 00 20 [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 76 91 00 90 00 7B [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=25 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 [00:30:02]Write to MH i2c: E2 1C 00 77 91 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 00 00 EC [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:30:02]Read from MH i2c: E2 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 [00:30:02]MH_I2C_Read... [00:30:02]Read from MH i2c: E2 03 00 77 91 00 90 00 7C [00:30:02]RAPDU: 90 00 [00:30:02]wFMCommunicate OK [00:30:02]wFMCommunicate request_size=4 [00:30:02]MH_SAM_APDU [00:30:02]CAPDU: 80 15 03 00 [00:30:02]Write to MH i2c: E2 08 00 78 91 80 15 03 00 00 00 00 00 8A [00:30:02]Write i2c OK [00:30:02]MH_I2C_Read... [00:30:03]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 78 91 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 89 02 00 0E 04 04 00 17 02 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 E5 [00:30:03]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 89 02 00 0E 04 04 00 17 02 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:30:03]wFMCommunicate OK [00:30:03]SAM_PROTO_ProcessDocument answer len = 1268 [00:30:03]SAM_PROTO_ProcessDocument remain to read = 1020 [00:30:03]wFMCommunicate request_size=4 [00:30:03]MH_SAM_APDU [00:30:03]CAPDU: 80 17 00 00 [00:30:03]Write to MH i2c: E2 08 00 79 91 80 17 00 00 00 00 00 00 8A [00:30:03]Write i2c OK [00:30:03]MH_I2C_Read... [00:30:03]OFD Sender: No OFD packet to send [00:30:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:03]Read from MH i2c: E2 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 [00:30:03]MH_I2C_Read... [00:30:03]Read from MH i2c: E2 FD 00 79 91 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 DE [00:30:04]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:04]SAM_PROTO_ProcessDocument remain to read = 770 [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 17 00 00 [00:30:04]Write to MH i2c: E2 08 00 7A 91 80 17 00 00 00 00 00 00 8B [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 7A 91 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 ED [00:30:04]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:04]SAM_PROTO_ProcessDocument remain to read = 520 [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 17 00 00 [00:30:04]Write to MH i2c: E2 08 00 7B 91 80 17 00 00 00 00 00 00 8C [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 FD 00 7B 91 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 14 [00:30:05]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:05]SAM_PROTO_ProcessDocument remain to read = 270 [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 7C 91 80 17 00 00 00 00 00 00 8D [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 FD 00 7C 91 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 57 [00:30:05]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:30:05]SAM_PROTO_ProcessDocument remain to read = 20 [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 17 00 00 [00:30:05]Write to MH i2c: E2 08 00 7D 91 80 17 00 00 00 00 00 00 8E [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 17 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 17 00 7D 91 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 78 CD B8 46 42 E3 90 00 37 [00:30:05]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 78 CD B8 46 42 E3 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:30:05]SAM_PROTO_ProcessDocument done [00:30:05]1209 (1) - 1.0 - номер версии ФФД [00:30:05]1041 (16) - 0000000000871759 - номер ФМ [00:30:05]1040 (4) - 166244 - номер ФД [00:30:05]1038 (4) - 535 - номер смены [00:30:05]1118 (4) - 354 - количество кассовых чеков за смену [00:30:05]1111 (4) - 356 - общее количество ФД за смену [00:30:05]1194 (1197) - счетчики итогов смены [00:30:05] 1134 (4) - 354 - количество чеков со всеми признаками расчетов [00:30:05] 1129 (158) - счетчики операций «приход» [00:30:05] 1135 (4) - 354 - количество чеков по признаку расчетов [00:30:05] 1201 (4) - 309950.40 - общая итоговая сумма в чеках [00:30:05] 1136 (4) - 227983.00 - итоговая сумма в чеках наличными [00:30:05] 1138 (3) - 81967.40 - итоговая сумма в чеках безналичными [00:30:05] 1024 (123) - суммы налогов [00:30:05] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 0% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1006 (12) - суммы НДС [00:30:06] 1010 (1) - 12% - код ставки НДС [00:30:06] 1011 (3) - 32925.75 - сумма НДС по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (12) - суммы НСП [00:30:06] 1014 (1) - 1% - код ставки НСП [00:30:06] 1015 (3) - 2743.68 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 2% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 3% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 5% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1130 (141) - счетчики операций «возврат прихода» [00:30:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:06] 1024 (117) - суммы налогов [00:30:06] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 0% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 12% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 2% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 3% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 5% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1131 (141) - счетчики операций «расход» [00:30:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:06] 1024 (117) - суммы налогов [00:30:06] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 0% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 12% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 2% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 3% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 5% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1132 (141) - счетчики операций «возврат расхода» [00:30:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:30:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:30:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:30:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:30:06] 1024 (117) - суммы налогов [00:30:06] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 0% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1006 (9) - суммы НДС [00:30:06] 1010 (1) - 12% - код ставки НДС [00:30:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 2% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 3% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 5% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 0,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1007 (9) - суммы НСП [00:30:06] 1014 (1) - 1,50% - код ставки НСП [00:30:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:30:06] 1133 (588) - - счетчики коррекции - не используются [00:30:06]1077 (6) - 132824955241187 - ФПД [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1209 (04B9) [00:30:06]Malloc new data [00:30:06]Processing tag 1041 (0411) [00:30:06]Processing tag 1040 (0410) [00:30:06]Malloc new data [00:30:06]Processing tag 1038 (040E) [00:30:06]Malloc new data [00:30:06]Processing tag 1118 (045E) [00:30:06]Malloc new data [00:30:06]Processing tag 1111 (0457) [00:30:06]Malloc new data [00:30:06]Processing tag 1194 (04AA) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1134 (046E) [00:30:06]Malloc new data [00:30:06]Processing tag 1129 (0469) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1135 (046F) [00:30:06]Malloc new data [00:30:06]Processing tag 1201 (04B1) [00:30:06]Malloc new data [00:30:06]Processing tag 1136 (0470) [00:30:06]Malloc new data [00:30:06]Processing tag 1138 (0472) [00:30:06]Malloc new data [00:30:06]Processing tag 1024 (0400) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]SetTLVBufToDocument err=0 [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1130 (046A) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1135 (046F) [00:30:06]Malloc new data [00:30:06]Processing tag 1201 (04B1) [00:30:06]Malloc new data [00:30:06]Processing tag 1136 (0470) [00:30:06]Malloc new data [00:30:06]Processing tag 1138 (0472) [00:30:06]Malloc new data [00:30:06]Processing tag 1024 (0400) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]SetTLVBufToDocument err=0 [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1131 (046B) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1135 (046F) [00:30:06]Malloc new data [00:30:06]Processing tag 1201 (04B1) [00:30:06]Malloc new data [00:30:06]Processing tag 1136 (0470) [00:30:06]Malloc new data [00:30:06]Processing tag 1138 (0472) [00:30:06]Malloc new data [00:30:06]Processing tag 1024 (0400) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]SetTLVBufToDocument err=0 [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1132 (046C) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1135 (046F) [00:30:06]Malloc new data [00:30:06]Processing tag 1201 (04B1) [00:30:06]Malloc new data [00:30:06]Processing tag 1136 (0470) [00:30:06]Malloc new data [00:30:06]Processing tag 1138 (0472) [00:30:06]Malloc new data [00:30:06]Processing tag 1024 (0400) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1006 (03EE) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1010 (03F2) [00:30:06]Malloc new data [00:30:06]Processing tag 1011 (03F3) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:06]Malloc new data [00:30:06]SetTLVBufToDocument err=0 [00:30:06]Processing tag 1007 (03EF) [00:30:06]Load OK [00:30:06]SetTLVBufToDocument [00:30:06]Processing tag 1014 (03F6) [00:30:06]Malloc new data [00:30:06]Processing tag 1015 (03F7) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1007 (03EF) [00:30:07]Load OK [00:30:07]SetTLVBufToDocument [00:30:07]Processing tag 1014 (03F6) [00:30:07]Malloc new data [00:30:07]Processing tag 1015 (03F7) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1007 (03EF) [00:30:07]Load OK [00:30:07]SetTLVBufToDocument [00:30:07]Processing tag 1014 (03F6) [00:30:07]Malloc new data [00:30:07]Processing tag 1015 (03F7) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1007 (03EF) [00:30:07]Load OK [00:30:07]SetTLVBufToDocument [00:30:07]Processing tag 1014 (03F6) [00:30:07]Malloc new data [00:30:07]Processing tag 1015 (03F7) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1007 (03EF) [00:30:07]Load OK [00:30:07]SetTLVBufToDocument [00:30:07]Processing tag 1014 (03F6) [00:30:07]Malloc new data [00:30:07]Processing tag 1015 (03F7) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1007 (03EF) [00:30:07]Load OK [00:30:07]SetTLVBufToDocument [00:30:07]Processing tag 1014 (03F6) [00:30:07]Malloc new data [00:30:07]Processing tag 1015 (03F7) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]SetTLVBufToDocument err=0 [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1133 (046D) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Processing tag 1077 (0435) [00:30:07]Malloc new data [00:30:07]SetTLVBufToDocument err=0 [00:30:07]Malloc new data [00:30:07]SAM_PROTO_GetFMData [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 13 03 00 [00:30:07]Write to MH i2c: E2 08 00 7E 91 80 13 03 00 00 00 00 00 8E [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:30:07]Read from MH i2c: E2 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 [00:30:07]MH_I2C_Read... [00:30:07]Read from MH i2c: E2 FD 00 7E 91 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 80 [00:30:07]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:30:07]wFMCommunicate OK [00:30:07]wFMCommunicate request_size=4 [00:30:07]MH_SAM_APDU [00:30:07]CAPDU: 80 17 00 00 [00:30:07]Write to MH i2c: E2 08 00 7F 91 80 17 00 00 00 00 00 00 90 [00:30:07]Write i2c OK [00:30:07]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 7F 91 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 5C [00:30:08]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:30:08]wFMCommunicate OK [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 17 00 00 [00:30:08]Write to MH i2c: E2 08 00 80 91 80 17 00 00 00 00 00 00 91 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 FD 00 80 91 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 OFD Sender: No OFD packet to send [00:30:08]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 A3 [00:30:08]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 17 00 00 [00:30:09]Write to MH i2c: E2 08 00 81 91 80 17 00 00 00 00 00 00 92 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 FD 00 81 91 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 1E [00:30:09]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:30:09]wFMCommunicate OK [00:30:09]wFMCommunicate request_size=4 [00:30:09]MH_SAM_APDU [00:30:09]CAPDU: 80 17 00 00 [00:30:09]Write to MH i2c: E2 08 00 82 91 80 17 00 00 00 00 00 00 93 [00:30:09]Write i2c OK [00:30:09]MH_I2C_Read... [00:30:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:30:09]Read from MH i2c: E2 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 E2 00 [00:30:09]MH_I2C_Read... [00:30:09]Read from MH i2c: E2 E2 00 82 91 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 71 [00:30:10]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:30:10]wFMCommunicate OK [00:30:10]SAM_PROTO_GetFMData done [00:30:10]Malloc new data [00:30:10]Malloc new data [00:30:10]Malloc new data [00:30:10]Malloc new data [00:30:10]KKMLoadAndSignCloseShiftData err=0 [00:30:10]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Алыкулова К. 22.10.2024 00:30 Смена: 535 РНМ: 0000000000091764 ЗНМ: 0300000104 СНО: Общий режим Чеков за смену: 354 ФД за смену: 356 Всего чеков: 354 ИТОГИ ПРИХОД Чеков: 354 Общий итог: 309950.40 Итого наличными: 227983.00 Итого безнал.: 81967.40 НДС 0% : 0.00 НДС 12% : 32925.75 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2743.68 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 227983.00 НС Приход: 158789014.28 НС Возвр.Прихода: 1793064.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 166244 ФМ: 0000000000871759 ФПД: 132824955241187 [00:30:10]StoreToDocumentArchive [00:30:10]shift 535 fd 166244 [00:30:10]save to /storage/0535/doc_00166244 [00:30:10]save last doc name /storage/0535/doc_00166244 to /storage/kkm_last_doc_name [00:30:10]save OK [00:30:10]Clear old archive folders... [00:30:10]Remove dir /storage/0522 [00:30:10]opendir ok [00:30:10]file . [00:30:10]file .. [00:30:10]file doc_1729556976 [00:30:10]remove file /storage/0522/doc_1729556976 [00:30:10]remove dir /storage/0522 [00:30:10]NVStorageSaveData kkm_registers [00:30:10]File name is /storage/kkm_registers [00:30:10]Write 24 bytes [00:30:10]NVStorageSaveData done [00:30:10]NVStorageSaveData kkm_registers [00:30:10]File name is /storage/kkm_registers [00:30:10]Write 24 bytes [00:30:10]NVStorageSaveData done [00:30:10]ProcessDocumentItem done err = 0, tmpTLVsize=1384 [00:30:10]tlvbuf is 01D21510 [00:30:10]SAM_PROTO_ClearQueue [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 09 00 00 [00:30:10]Write to MH i2c: E2 08 00 83 91 80 09 00 00 00 00 00 00 86 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 03 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 03 00 83 91 00 90 00 88 [00:30:10]RAPDU: 90 00 [00:30:10]wFMCommunicate OK [00:30:10]SAM_PROTO_ClearQueue done [00:30:10]KKMCreateOFDPacket [00:30:10]OFDProtocolAddRootSTLVToBuf [00:30:10]FM_MakeSignedData [00:30:10]FM_MakeSignedData [00:30:10]SAM_PROTO_SignData [00:30:10]wFMCommunicate request_size=4 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 0D 01 02 [00:30:10]Write to MH i2c: E2 08 00 84 91 80 0D 01 02 00 00 00 00 8E [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:10]Read from MH i2c: E2 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 03 00 [00:30:10]MH_I2C_Read... [00:30:10]Read from MH i2c: E2 03 00 84 91 00 90 00 89 [00:30:10]RAPDU: 90 00 [00:30:10]wFMCommunicate OK [00:30:10]wFMCommunicate request_size=255 [00:30:10]MH_SAM_APDU [00:30:10]CAPDU: 80 0D 02 02 FA 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F4 03 04 00 1F F2 16 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 [00:30:10]Write to MH i2c: E2 02 01 85 91 80 0D 02 02 FA 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F4 03 04 00 1F F2 16 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 B7 [00:30:10]Write i2c OK [00:30:10]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 03 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 03 00 85 91 00 90 00 8A [00:30:11]RAPDU: 90 00 [00:30:11]wFMCommunicate OK [00:30:11]wFMCommunicate request_size=255 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C0 2F 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 [00:30:11]Write to MH i2c: E2 02 01 86 91 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C0 2F 04 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 00 00 F2 [00:30:11]Write i2c OK [00:30:11]MH_I2C_Read... [00:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:11]Read from MH i2c: E2 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 03 00 [00:30:11]MH_I2C_Read... [00:30:11]Read from MH i2c: E2 03 00 86 91 00 90 00 8B [00:30:11]RAPDU: 90 00 [00:30:11]wFMCommunicate OK [00:30:11]wFMCommunicate request_size=255 [00:30:11]MH_SAM_APDU [00:30:11]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 [00:30:11]Write to MH i2c: E2 02 01 87 91 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 00 00 58 [00:30:12]Write i2c OK [00:30:12]MH_I2C_Read... [00:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:12]Read from MH i2c: E2 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 03 00 [00:30:12]MH_I2C_Read... [00:30:12]Read from MH i2c: E2 03 00 87 91 00 90 00 8C [00:30:12]RAPDU: 90 00 [00:30:12]wFMCommunicate OK [00:30:12]wFMCommunicate request_size=255 [00:30:12]MH_SAM_APDU [00:30:12]CAPDU: 80 0D 02 02 FA 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 [00:30:12]Write to MH i2c: E2 02 01 88 91 80 0D 02 02 FA 00 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 00 00 55 [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 03 00 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 03 00 88 91 00 90 00 8D [00:30:13]RAPDU: 90 00 [00:30:13]wFMCommunicate OK [00:30:13]wFMCommunicate request_size=255 [00:30:13]MH_SAM_APDU [00:30:13]CAPDU: 80 0D 02 02 FA 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 [00:30:13]Write to MH i2c: E2 02 01 89 91 80 0D 02 02 FA 00 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 00 00 2D [00:30:13]Write i2c OK [00:30:13]MH_I2C_Read... [00:30:13]OFD Sender: No OFD packet to send [00:30:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:13]Read from MH i2c: E2 [00:30:13]MH_I2C_Read... [00:30:13]Read from MH i2c: E2 03 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 89 91 00 90 00 8E [00:30:14]RAPDU: 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=143 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 0D 02 02 8A F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 64 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 78 CD B8 46 42 E3 [00:30:14]Write to MH i2c: E2 92 00 8A 91 80 0D 02 02 8A 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 64 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 78 CD B8 46 42 E3 00 00 2C [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 03 00 8A 91 00 90 00 8F [00:30:14]RAPDU: 90 00 [00:30:14]wFMCommunicate OK [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 0D 03 02 [00:30:14]Write to MH i2c: E2 08 00 8B 91 80 0D 03 02 00 00 00 00 97 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0B 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 0B 00 8B 91 00 F3 9C 6B 26 B2 B2 3D 3F 90 00 98 [00:30:14]RAPDU: F3 9C 6B 26 B2 B2 3D 3F 90 00 [00:30:14]wFMCommunicate OK [00:30:14]SAM_PROTO_SignData done [00:30:14]FM_MakeSignedData done [00:30:14]CreateOFDProtocolMessage [00:30:14]wFMCommunicate request_size=4 [00:30:14]MH_SAM_APDU [00:30:14]CAPDU: 80 11 00 00 [00:30:14]Write to MH i2c: E2 08 00 8C 91 80 11 00 00 00 00 00 00 97 [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:14]Read from MH i2c: E2 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 17 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: E2 17 00 8C 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EF [00:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:30:14]wFMCommunicate OK [00:30:14]CreateOFDProtocolMessage done [00:30:14]OFDSenderStorePacket 166244 [00:30:14]StoreOFDPacket docnum=166244 [00:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 7C 05 00 00 B5 38 74 05 05 1D 5A 05 01 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F4 03 04 00 1F F2 16 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 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 64 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 78 CD B8 46 42 E3 F3 9C 6B 26 B2 B2 3D 3F [00:30:14]CheckFolder [00:30:14]dirname=/storage/ofd_packets [00:30:14]CheckFolder done [00:30:14]ProducePacketName [00:30:14]name=ofd_packets/00166244 [00:30:14]NVStorageSaveData ofd_packets/00166244 [00:30:14]File name is /storage/ofd_packets/00166244 [00:30:14]Write 1434 bytes [00:30:14]NVStorageSaveData done [00:30:14]OFDSenderStorePacket done [00:30:14]KKMCreateOFDPacket done [00:30:14]NVStorageSaveData kkm_last_timestamp [00:30:14]File name is /storage/kkm_last_timestamp [00:30:14]Write 4 bytes [00:30:14]NVStorageSaveData done [00:30:14]ExternCall_PrintAddStr [00:30:14]wPrintStart [00:30:14]Write to MH i2c: 01 00 00 8D 91 1E [00:30:14]Write i2c OK [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: 01 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: 01 07 00 [00:30:14]MH_I2C_Read... [00:30:14]Read from MH i2c: 01 07 00 8D 91 00 00 00 00 00 FF 0F 33 [00:30:15]RasterBufferAndPrint [00:30:15]line Отчет о закрытии смены [00:30:15]line ФФД: 1.0 [00:30:15]line ИНН: 02508201610067 [00:30:15]line Кассир: Алыкулова К. [00:30:15]line 22.10.2024 00:30 [00:30:15]line Смена: 535 [00:30:15]line РНМ: 0000000000091764 [00:30:15]line ЗНМ: 0300000104 [00:30:15]line СНО: Общий режим [00:30:15]line Чеков за смену: 354 [00:30:15]OFD Sender: Processing packet 166244 [packets to send 48, broken 47] [00:30:15]ProducePacketName [00:30:15]name=ofd_packets/00166244 [00:30:15]OFD Sender: To server: pG, [00:30:15]CommunicateWithHost lk.salyk.kg:30040 [00:30:15]ConnectInit lk.salyk.kg [00:30:15]line ФД за смену: 356 [00:30:15]line Всего чеков: 354 [00:30:15]line ИТОГИ ПРИХОД [00:30:15]line Чеков: 354 [00:30:15]line Общий итог: 309950.40 [00:30:15]line Итого наличными: 227983.00 [00:30:15]line Итого безнал.: 81967.40 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 32925.75 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 2743.68 [00:30:15]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:30:15]line Чеков: 0 [00:30:15]line Общий итог: 0.00 [00:30:15]line Итого наличными: 0.00 [00:30:15]line Итого безнал.: 0.00 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 0.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 0.00 [00:30:15]line ИТОГИ РАСХОД [00:30:15]line Чеков: 0 [00:30:15]line Общий итог: 0.00 [00:30:15]line Итого наличными: 0.00 [00:30:15]line Итого безнал.: 0.00 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 0.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 0.00 [00:30:15]line ИТОГИ ВОЗВРАТ РАСХОДА [00:30:15]line Чеков: 0 [00:30:15]line Общий итог: 0.00 [00:30:15]line Итого наличными: 0.00 [00:30:15]line Итого безнал.: 0.00 [00:30:15]line НДС 0% : 0.00 [00:30:15]line НДС 12% : 0.00 [00:30:15]line НСП 0% : 0.00 [00:30:15]line НСП 1,50% : 0.00 [00:30:15]line НСП 0,50% : 0.00 [00:30:15]line НСП 5% : 0.00 [00:30:15]line НСП 3% : 0.00 [00:30:15]line НСП 2% : 0.00 [00:30:15]line НСП 1% : 0.00 [00:30:15]line Сумма внесений: 0.00 [00:30:15]line Сумма выплат: 0.00 [00:30:15]line Нал. в кассе: 227983.00 [00:30:15]line НС Приход: 158789014.28 [00:30:15]line НС Возвр.Прихода: 1793064.00 [00:30:15]line НС Расход: 0.00 [00:30:15]line НС Возвр.Расхода: 0.00 [00:30:15]line ФД: 166244 [00:30:15]line ФМ: 0000000000871759 [00:30:15]line ФПД: 132824955241187 [00:30:15]written 0, free lines is 4095 [00:30:15]Connected sock=7 [00:30:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 7C 05 00 00 B5 38 74 05 05 1D 5A 05 01 00 05 00 68 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D0 BB D1 8B D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 D0 9A 2E 20 F4 03 04 00 1F F2 16 67 0E 04 04 00 17 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 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 Write to MH i2c: 03 01 01 00 00 00 05 DD F7 91 03 6E 01 [00:30:16]00 Write i2c OK [00:30:16]00 MH_I2C_Read... [00:30:16]EF Read from MH i2c: 03 01 0A [00:30:16]00 MH_I2C_Read... [00:30:16]F6 03 01 00 04 F7 03 01 00 00 EF Read from MH i2c: 01 03 07 0A 00 00 [00:30:16]F6 MH_I2C_Read... [00:30:16]03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 Read from MH i2c: 03 01 01 07 00 00 02 DD F7 91 03 00 01 00 00 00 00 00 EF 00 03 D9 0A 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 58 02 [00:30:16]78 RasterBufferAndPrint [00:30:16]04 line [00:30:16]04 line [00:30:16]00 line [00:30:16]00 00 00 00 79 04 8D 00 6F 04 04 00 00 line [00:30:16]00 line [00:30:16]00 00 written 0, free lines is 2942 [00:30:16]B1 04 00 00 70 04 00 00 72 04 00 00 00 MH_Cut [00:30:16]04 Write to MH i2c: 75 D1 00 01 EE 00 03 E4 09 91 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 01 00 47 EF [00:30:16]03 Write i2c OK [00:30:16]09 MH_I2C_Read... [00:30:16]00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 Read from MH i2c: 03 D1 01 [00:30:16]00 MH_I2C_Read... [00:30:16]06 Read from MH i2c: F7 D1 03 01 00 00 00 [00:30:16]D0 MH_I2C_Read... [00:30:16]04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 Read from MH i2c: 00 D1 72 01 04 00 00 E4 00 91 00 00 46 04 [00:30:16]75 Write to MH i2c: 00 01 EE 00 03 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 E5 09 91 00 76 F2 [00:30:16]03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 Write i2c OK [00:30:16]03 MH_I2C_Read... [00:30:16]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 78 CD B8 46 42 E3 F3 9C 6B 26 B2 B2 3D 3F [00:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 94 DC 47 00 89 *** Cut start [00:30:17]7B A5 07 01 00 07 00 *** Partial cut [00:30:17]3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 64 89 02 00 *** CUTSNS_PIN = 1 [00:30:17]F4 03 04 00 98 98 16 67 *** CUTSNS_PIN = 0 [00:30:17]B6 04 01 00 00 C9 A5 9A D3 CE *** Brake cut motor [00:30:17]F0 01 B0 [00:30:17]CommunicateWithHost err = 0 [00:30:17]CheckOFDResponse [00:30:17]1017 (14) - 77093643461234 [00:30:17]1041 (16) - 0000000000871759 [00:30:17]1040 (4) - 166244 [00:30:17]1012 (4) - 21.10.2024 18:08 [00:30:17]1206 (1) - 0 [00:30:17]OFD Sender: Remove packet 166244 [00:30:17]ProducePacketName [00:30:17]name=ofd_packets/00166244 [00:30:17]NVStorageDeleteData [00:30:17]Read from MH i2c: *** Stop cut motor [00:30:17]01 *** Cut end [00:30:17] [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: 01 07 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: 01 07 00 E5 91 00 00 00 00 00 FF 0F 8B [00:30:17]process_action close_shift done [00:30:17]requested_data is exist [00:30:17]produce_requested_data [00:30:17]requested_item fd.num is exist - process it [00:30:17]SAM_PROTO_GetFieldsCounters [00:30:17]wFMCommunicate request_size=4 [00:30:17]MH_SAM_APDU [00:30:17]CAPDU: 80 13 00 00 [00:30:17]Write to MH i2c: E2 08 00 E6 91 80 13 00 00 00 00 00 00 F3 [00:30:17]Write i2c OK [00:30:17]MH_I2C_Read... [00:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:17]Read from MH i2c: E2 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 62 00 [00:30:17]MH_I2C_Read... [00:30:17]Read from MH i2c: E2 62 00 E6 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [00:30:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetFieldsCounters done [00:30:18]requested_item shift.num is exist - process it [00:30:18]requested_item shift.opened is exist - process it [00:30:18]req_shift_opened [00:30:18]FM_GetShiftState [00:30:18]SAM_PROTO_GetShiftState [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]OFD Sender: No OFD packet to send [00:30:18]CAPDU: 80 13 01 00 [00:30:18]Write to MH i2c: E2 08 00 E7 91 80 13 01 00 00 00 00 00 F5 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 E7 91 00 09 00 00 00 00 00 00 00 00 00 00 90 00 00 [00:30:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetShiftState done [00:30:18]FM_GetShiftState done [00:30:18]req_shift_opened done [00:30:18]requested_item shift.open_date is exist - process it [00:30:18]req_shift_open_date [00:30:18]FM_GetShiftState [00:30:18]SAM_PROTO_GetShiftState [00:30:18]wFMCommunicate request_size=4 [00:30:18]MH_SAM_APDU [00:30:18]CAPDU: 80 13 01 00 [00:30:18]Write to MH i2c: E2 08 00 E8 91 80 13 01 00 00 00 00 00 F6 [00:30:18]Write i2c OK [00:30:18]MH_I2C_Read... [00:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:18]Read from MH i2c: E2 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 [00:30:18]MH_I2C_Read... [00:30:18]Read from MH i2c: E2 0E 00 E8 91 00 09 00 00 00 00 00 00 00 00 00 00 90 00 01 [00:30:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:30:18]wFMCommunicate OK [00:30:18]SAM_PROTO_GetShiftState done [00:30:18]FM_GetShiftState done [00:30:18]req_shift_open_date done [00:30:18]produce_requested_data done [00:30:18]produce_requested_data return {"fd.num":166244,"shift.num":535,"shift.opened":0,"shift.open_date":0} [00:30:18]process_action_free close_shift [00:30:18]json_value_free [00:30:18]json_value_free done [00:30:18]process_json_proto returns [00:30:18]Send response to host [00:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":166244,"shift.num":535,"shift.opened":0,"shift.open_date":0}}} [00:30:18]free response buf [00:30:18]execute_script done [00:30:18]execute_script returns [00:30:18]free content buf [00:30:18]Sock 6.Close socket [00:30:18]Sock 6.Thread stoped [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:19]accept exits with 5 [00:37:19]New connection [00:37:19]New thread 3066920292 created [00:37:19]Thread 3066776932 joined [00:37:19]Waiting for new connection... [00:37:19] Sock 5.Parse request [00:37:19]Sock 5.Check first char [00:37:19]Sock 5.First char is OK [00:37:19]request: POST /json_proto HTTP/1.0 [00:37:19]Method: POST [00:37:19]URL: /json_proto [00:37:19]Method is POST - this is cgi request [00:37:19]url: /json_proto [00:37:19]query_string will be loaded in cgi processing [00:37:19]execute_cgi json_proto POST (null) [00:37:19]execute_cgi path=json_proto method=POST [00:37:19]POST find Content-Length [00:37:19]Host: 172.17.53.195:8080 [00:37:19]Content-Length: 215 [00:37:19]Content-Type: application/json [00:37:19] [00:37:19]POST finish read [00:37:19]Found Content-Length = 215 [00:37:19]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:37:19]execute_script... [00:37:19]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:37:19]POST & json_proto [00:37:19]process_json_proto [00:37:19]json parsed OK: [00:37:19]protocol is kg_v1.0 [00:37:19]action value=get_value [00:37:19]process_action get_value [00:37:19]cmd_get_value [00:37:19]process_action get_value done [00:37:19]requested_data is exist [00:37:19]produce_requested_data [00:37:19]requested_item kkm.sn is exist - process it [00:37:19]requested_item kkm.ver is exist - process it [00:37:19]requested_item fm.sn is exist - process it [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 11 00 00 [00:37:19]Write to MH i2c: E2 08 00 E9 91 80 11 00 00 00 00 00 00 F4 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 17 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 17 00 E9 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 4C [00:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:37:19]wFMCommunicate OK [00:37:19]requested_item fd.num is exist - process it [00:37:19]SAM_PROTO_GetFieldsCounters [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 13 00 00 [00:37:19]Write to MH i2c: E2 08 00 EA 91 80 13 00 00 00 00 00 00 F7 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 62 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 62 00 EA 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [00:37:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 64 89 02 00 0E 04 04 00 17 02 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:19]wFMCommunicate OK [00:37:19]SAM_PROTO_GetFieldsCounters done [00:37:19]requested_item shift.num is exist - process it [00:37:19]requested_item shift.opened is exist - process it [00:37:19]req_shift_opened [00:37:19]FM_GetShiftState [00:37:19]SAM_PROTO_GetShiftState [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 13 01 00 [00:37:19]Write to MH i2c: E2 08 00 EB 91 80 13 01 00 00 00 00 00 F9 [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0E 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0E 00 EB 91 00 09 00 00 00 00 00 00 00 00 00 00 90 00 04 [00:37:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:19]wFMCommunicate OK [00:37:19]SAM_PROTO_GetShiftState done [00:37:19]FM_GetShiftState done [00:37:19]req_shift_opened done [00:37:19]requested_item shift.open_date is exist - process it [00:37:19]req_shift_open_date [00:37:19]FM_GetShiftState [00:37:19]SAM_PROTO_GetShiftState [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 13 01 00 [00:37:19]Write to MH i2c: E2 08 00 EC 91 80 13 01 00 00 00 00 00 FA [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:19]Read from MH i2c: E2 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0E 00 [00:37:19]MH_I2C_Read... [00:37:19]Read from MH i2c: E2 0E 00 EC 91 00 09 00 00 00 00 00 00 00 00 00 00 90 00 05 [00:37:19]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:19]wFMCommunicate OK [00:37:19]SAM_PROTO_GetShiftState done [00:37:19]FM_GetShiftState done [00:37:19]req_shift_open_date done [00:37:19]produce_requested_data done [00:37:19]produce_requested_data return {"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166244,"shift.num":535,"shift.opened":0,"shift.open_date":0} [00:37:19]process_action_free get_value [00:37:19]json_value_free [00:37:19]json_value_free done [00:37:19]process_json_proto returns [00:37:19]Send response to host [00:37:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000104","kkm.ver":"001","fm.sn":"0000000000871759","fd.num":166244,"shift.num":535,"shift.opened":0,"shift.open_date":0}}} [00:37:19]free response buf [00:37:19]execute_script done [00:37:19]execute_script returns [00:37:19]free content buf [00:37:19]Sock 5.Close socket [00:37:19]Sock 5.Thread stoped [00:37:19]accept exits with 6 [00:37:19]New connection [00:37:19]New thread 3066776932 created [00:37:19]Thread 3066920292 joined [00:37:19]Waiting for new connection... [00:37:19] Sock 6.Parse request [00:37:19]Sock 6.Check first char [00:37:19]Sock 6.First char is OK [00:37:19]request: POST /json_proto HTTP/1.0 [00:37:19]Method: POST [00:37:19]URL: /json_proto [00:37:19]Method is POST - this is cgi request [00:37:19]url: /json_proto [00:37:19]query_string will be loaded in cgi processing [00:37:19]execute_cgi json_proto POST (null) [00:37:19]execute_cgi path=json_proto method=POST [00:37:19]POST find Content-Length [00:37:19]Host: 172.17.53.195:8080 [00:37:19]Content-Length: 331 [00:37:19]Content-Type: application/json [00:37:19] [00:37:19]POST finish read [00:37:19]Found Content-Length = 331 [00:37: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:37:19]execute_script... [00:37: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:37:19]POST & json_proto [00:37:19]process_json_proto [00:37:19]json parsed OK: [00:37:19]protocol is kg_v1.0 [00:37:19]action value=get_value [00:37:19]process_action get_value [00:37:19]cmd_get_value [00:37:19]process_action get_value done [00:37:19]requested_data is exist [00:37:19]produce_requested_data [00:37:19]requested_item fm.sale.total is exist - process it [00:37:19]SAM_PROTO_GetFMData [00:37:19]wFMCommunicate request_size=4 [00:37:19]MH_SAM_APDU [00:37:19]CAPDU: 80 13 03 00 [00:37:19]Write to MH i2c: E2 08 00 ED 91 80 13 03 00 00 00 00 00 FD [00:37:19]Write i2c OK [00:37:19]MH_I2C_Read... [00:37:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:20]Read from MH i2c: E2 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 ED 91 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 EF [00:37:20]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:37:20]wFMCommunicate OK [00:37:20]wFMCommunicate request_size=4 [00:37:20]MH_SAM_APDU [00:37:20]CAPDU: 80 17 00 00 [00:37:20]Write to MH i2c: E2 08 00 EE 91 80 17 00 00 00 00 00 00 FF [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:20]Read from MH i2c: E2 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 EE 91 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 CB [00:37:20]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:37:20]wFMCommunicate OK [00:37:20]wFMCommunicate request_size=4 [00:37:20]MH_SAM_APDU [00:37:20]CAPDU: 80 17 00 00 [00:37:20]Write to MH i2c: E2 08 00 EF 91 80 17 00 00 00 00 00 00 00 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:20]Read from MH i2c: E2 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 EF 91 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 12 [00:37:20]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:37:20]wFMCommunicate OK [00:37:20]wFMCommunicate request_size=4 [00:37:20]MH_SAM_APDU [00:37:20]CAPDU: 80 17 00 00 [00:37:20]Write to MH i2c: E2 08 00 F0 91 80 17 00 00 00 00 00 00 01 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:20]Read from MH i2c: E2 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 [00:37:20]MH_I2C_Read... [00:37:20]Read from MH i2c: E2 FD 00 F0 91 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 8D [00:37:20]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:37:20]wFMCommunicate OK [00:37:20]wFMCommunicate request_size=4 [00:37:20]MH_SAM_APDU [00:37:20]CAPDU: 80 17 00 00 [00:37:20]Write to MH i2c: E2 08 00 F1 91 80 17 00 00 00 00 00 00 02 [00:37:20]Write i2c OK [00:37:20]MH_I2C_Read... [00:37:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:37:21]Read from MH i2c: E2 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 E2 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 E2 00 F1 91 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E0 [00:37:21]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:21]wFMCommunicate OK [00:37:21]SAM_PROTO_GetFMData done [00:37:21]requested_item fm.sale_refund.total is exist - process it [00:37:21]requested_item fm.buy.total is exist - process it [00:37:21]requested_item shift.sale.total is exist - process it [00:37:21]SAM_PROTO_GetShiftData [00:37:21]wFMCommunicate request_size=4 [00:37:21]MH_SAM_APDU [00:37:21]CAPDU: 80 13 02 00 [00:37:21]Write to MH i2c: E2 08 00 F2 91 80 13 02 00 00 00 00 00 01 [00:37:21]Write i2c OK [00:37:21]MH_I2C_Read... [00:37:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:21]Read from MH i2c: E2 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 FD 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 FD 00 F2 91 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 F4 [00:37:21]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 60 F2 D8 01 70 04 04 00 DC DF 5B 01 72 04 03 00 84 12 7D 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 9F 3D 32 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 C0 2F 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:37:21]wFMCommunicate OK [00:37:21]wFMCommunicate request_size=4 [00:37:21]MH_SAM_APDU [00:37:21]CAPDU: 80 17 00 00 [00:37:21]Write to MH i2c: E2 08 00 F3 91 80 17 00 00 00 00 00 00 04 [00:37:21]Write i2c OK [00:37:21]MH_I2C_Read... [00:37:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:21]Read from MH i2c: E2 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 FD 00 [00:37:21]MH_I2C_Read... [00:37:21]Read from MH i2c: E2 FD 00 F3 91 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:37:21]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:37:21]wFMCommunicate OK [00:37:21]wFMCommunicate request_size=4 [00:37:21]MH_SAM_APDU [00:37:21]CAPDU: 80 17 00 00 [00:37:21]Write to MH i2c: E2 08 00 F4 91 80 17 00 00 00 00 00 00 05 [00:37:21]Write i2c OK [00:37:21]MH_I2C_Read... [00:37:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:22]Read from MH i2c: E2 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 FD 00 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 FD 00 F4 91 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:37: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:37:22]wFMCommunicate OK [00:37:22]wFMCommunicate request_size=4 [00:37:22]MH_SAM_APDU [00:37:22]CAPDU: 80 17 00 00 [00:37:22]Write to MH i2c: E2 08 00 F5 91 80 17 00 00 00 00 00 00 06 [00:37:22]Write i2c OK [00:37:22]MH_I2C_Read... [00:37:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:22]Read from MH i2c: E2 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 FD 00 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 FD 00 F5 91 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:37: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:37:22]wFMCommunicate OK [00:37:22]wFMCommunicate request_size=4 [00:37:22]MH_SAM_APDU [00:37:22]CAPDU: 80 17 00 00 [00:37:22]Write to MH i2c: E2 08 00 F6 91 80 17 00 00 00 00 00 00 07 [00:37:22]Write i2c OK [00:37:22]MH_I2C_Read... [00:37:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:37:22]Read from MH i2c: E2 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 CE 00 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 CE 00 F6 91 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:37:22]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:37:22]wFMCommunicate OK [00:37:22]SAM_PROTO_GetShiftData done [00:37:22]requested_item shift.sale.total_cash is exist - process it [00:37:22]requested_item shift.sale_refund.total is exist - process it [00:37:22]requested_item shift.sale_refund.total_cash is exist - process it [00:37:22]requested_item shift.buy.total is exist - process it [00:37:22]requested_item shift.buy.total_cash is exist - process it [00:37:22]produce_requested_data done [00:37:22]produce_requested_data return {"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.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:37:22]process_action_free get_value [00:37:22]json_value_free [00:37:22]json_value_free done [00:37:22]process_json_proto returns [00:37:22]Send response to host [00:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.00,"fm.buy.total":0.00,"shift.sale.total":309950.40,"shift.sale.total_cash":227983.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:37:22]free response buf [00:37:22]execute_script done [00:37:22]execute_script returns [00:37:22]free content buf [00:37:22]Sock 6.Close socket [00:37:22]Sock 6.Thread stoped [00:37:22]accept exits with 5 [00:37:22]New connection [00:37:22]New thread 3066920292 created [00:37:22]Thread 3066776932 joined [00:37:22]Waiting for new connection... [00:37:22] Sock 5.Parse request [00:37:22]Sock 5.Check first char [00:37:22]Sock 5.First char is OK [00:37:22]request: POST /json_proto HTTP/1.0 [00:37:22]Method: POST [00:37:22]URL: /json_proto [00:37:22]Method is POST - this is cgi request [00:37:22]url: /json_proto [00:37:22]query_string will be loaded in cgi processing [00:37:22]execute_cgi json_proto POST (null) [00:37:22]execute_cgi path=json_proto method=POST [00:37:22]POST find Content-Length [00:37:22]Host: 172.17.53.195:8080 [00:37:22]Content-Length: 247 [00:37:22]Content-Type: application/json [00:37:22] [00:37:22]POST finish read [00:37:22]Found Content-Length = 247 [00:37:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u043B\u0438\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:22]execute_script... [00:37:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0421\u0430\u043B\u0438\u0435\u0432 \u042D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:22]POST & json_proto [00:37:22]process_json_proto [00:37:22]json parsed OK: [00:37:22]protocol is kg_v1.0 [00:37:22]action value=open_shift [00:37:22]process_action open_shift [00:37:22]cmd_open_shift [00:37:22]MH_GetDate [00:37:22]Write to MH i2c: F0 00 00 F7 91 77 [00:37:22]Write i2c OK [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: F0 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: F0 09 00 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: F0 09 00 F7 91 00 D7 F3 16 67 21 48 4A 65 DF [00:37:22]GetLastDocTimeStamp 1729557023 [00:37:22]current date 1729557463 [00:37:22]FM_GetShiftState [00:37:22]SAM_PROTO_GetShiftState [00:37:22]wFMCommunicate request_size=4 [00:37:22]MH_SAM_APDU [00:37:22]CAPDU: 80 13 01 00 [00:37:22]Write to MH i2c: E2 08 00 F8 91 80 13 01 00 00 00 00 00 06 [00:37:22]Write i2c OK [00:37:22]MH_I2C_Read... [00:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:22]Read from MH i2c: E2 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 0E 00 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: E2 0E 00 F8 91 00 09 00 00 00 00 00 00 00 00 00 00 90 00 11 [00:37:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:37:22]wFMCommunicate OK [00:37:22]SAM_PROTO_GetShiftState done [00:37:22]FM_GetShiftState done [00:37:22]KKMCreateOpenShiftDocument [00:37:22]Load OK [00:37:22]Malloc new data [00:37:22]MH_GetDate [00:37:22]Write to MH i2c: F0 00 00 F9 91 79 [00:37:22]Write i2c OK [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: F0 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: F0 09 00 [00:37:22]MH_I2C_Read... [00:37:22]Read from MH i2c: F0 09 00 F9 91 00 D7 F3 16 67 21 48 4A 65 E1 [00:37:22]Malloc new data [00:37:22]KKMCreateOpenShiftDocument OK [00:37:22]KKMSetOpenShiftData OK [00:37:22]ProcessDocumentItem done err = 0, tmpTLVsize=200 [00:37:22]tlvbuf is 014C3A60 [00:37:22]KKMLoadAndSignOpenShiftData [00:37:22]SAM_PROTO_ProcessDocument [00:37:22]wFMCommunicate request_size=9 [00:37:22]MH_SAM_APDU [00:37:22]CAPDU: 80 15 01 00 04 02 00 C8 00 [00:37:22]Write to MH i2c: E2 0C 00 FA 91 80 15 01 00 04 00 02 00 C8 00 00 00 DC [00:37:22]Write i2c OK [00:37:22]MH_I2C_Read... [00:37:22]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 FA 91 00 90 00 FF [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=23 [00:37:23]MH_SAM_APDU [00:37: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:37:23]Write to MH i2c: E2 1A 00 FB 91 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:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 FB 91 00 90 00 00 [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=26 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 [00:37:23]Write to MH i2c: E2 1D 00 FC 91 80 15 02 00 15 00 FD 03 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 00 00 3E [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 FC 91 00 90 00 01 [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=92 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 [00:37:23]Write to MH i2c: E2 5F 00 FD 91 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 00 00 74 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 FD 91 00 90 00 02 [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=51 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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:37:23]Write to MH i2c: E2 36 00 FE 91 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 B9 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 FE 91 00 90 00 03 [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=13 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 15 02 00 08 F4 03 04 00 D7 F3 16 67 [00:37:23]Write to MH i2c: E2 10 00 FF 91 80 15 02 00 08 00 F4 03 04 00 D7 F3 16 67 00 00 62 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 FF 91 00 90 00 04 [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=25 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 [00:37:23]Write to MH i2c: E2 1C 00 00 92 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 00 00 76 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:37:23]Read from MH i2c: E2 03 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 03 00 00 92 00 90 00 06 [00:37:23]RAPDU: 90 00 [00:37:23]wFMCommunicate OK [00:37:23]wFMCommunicate request_size=4 [00:37:23]MH_SAM_APDU [00:37:23]CAPDU: 80 15 03 00 [00:37:23]Write to MH i2c: E2 08 00 01 92 80 15 03 00 00 00 00 00 14 [00:37:23]Write i2c OK [00:37:23]MH_I2C_Read... [00:37:23]OFD Sender: No OFD packet to send [00:37:23]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:37:23]Read from MH i2c: E2 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 38 00 [00:37:23]MH_I2C_Read... [00:37:23]Read from MH i2c: E2 38 00 01 92 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 89 02 00 0E 04 04 00 18 02 00 00 35 04 06 00 CF 4D 37 F9 E0 5B 90 00 76 [00:37:23]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 89 02 00 0E 04 04 00 18 02 00 00 35 04 06 00 CF 4D 37 F9 E0 5B 90 00 [00:37:23]wFMCommunicate OK [00:37:23]SAM_PROTO_ProcessDocument answer len = 51 [00:37:23]SAM_PROTO_ProcessDocument done [00:37:23]SetTLVBufToDocument [00:37:23]Processing tag 1209 (04B9) [00:37:23]Malloc new data [00:37:23]Processing tag 1041 (0411) [00:37:23]Processing tag 1040 (0410) [00:37:23]Malloc new data [00:37:23]Processing tag 1038 (040E) [00:37:23]Malloc new data [00:37:23]Processing tag 1077 (0435) [00:37:23]Malloc new data [00:37:23]SetTLVBufToDocument err=0 [00:37:23]KKMLoadAndSignOpenShiftData store KKM data [00:37:23]KKMLoadAndSignOpenShiftData err=0 [00:37:23]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Салиев Э. Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 Место: АЗС № 161 "Партнер Нефть" 22.10.2024 00:37 Смена: 536 РНМ: 0000000000091764 ЗНМ: 0300000104 ФД: 166245 ФМ: 0000000000871759 ФПД: 227930558554203 [00:37:23]StoreToDocumentArchive [00:37:23]shift 536 fd 166245 [00:37:23]Create dir for shift 0536 [00:37:23]save to /storage/0536/doc_00166245 [00:37:23]save last doc name /storage/0536/doc_00166245 to /storage/kkm_last_doc_name [00:37:23]save OK [00:37:23]Clear old archive folders... [00:37:23]Remove dir /storage/0535 [00:37:23]opendir ok [00:37:23]file . [00:37:23]file .. [00:37:23]file doc_00165889 [00:37:23]remove file /storage/0535/doc_00165889 [00:37:23]file doc_00165890 [00:37:23]remove file /storage/0535/doc_00165890 [00:37:23]file doc_00165891 [00:37:23]remove file /storage/0535/doc_00165891 [00:37:23]file doc_00165892 [00:37:23]remove file /storage/0535/doc_00165892 [00:37:23]file doc_00165893 [00:37:23]remove file /storage/0535/doc_00165893 [00:37:23]file doc_00165894 [00:37:23]remove file /storage/0535/doc_00165894 [00:37:23]file doc_00165895 [00:37:23]remove file /storage/0535/doc_00165895 [00:37:23]file doc_00165896 [00:37:23]remove file /storage/0535/doc_00165896 [00:37:23]file doc_00165897 [00:37:23]remove file /storage/0535/doc_00165897 [00:37:23]file doc_00165898 [00:37:23]remove file /storage/0535/doc_00165898 [00:37:23]file doc_00165899 [00:37:23]remove file /storage/0535/doc_00165899 [00:37:23]file doc_00165900 [00:37:23]remove file /storage/0535/doc_00165900 [00:37:23]file doc_00165901 [00:37:23]remove file /storage/0535/doc_00165901 [00:37:23]file doc_00165902 [00:37:23]remove file /storage/0535/doc_00165902 [00:37:23]file doc_00165903 [00:37:23]remove file /storage/0535/doc_00165903 [00:37:23]file doc_00165904 [00:37:23]remove file /storage/0535/doc_00165904 [00:37:23]file doc_00165905 [00:37:23]remove file /storage/0535/doc_00165905 [00:37:23]file doc_00165906 [00:37:23]remove file /storage/0535/doc_00165906 [00:37:23]file doc_00165907 [00:37:23]remove file /storage/0535/doc_00165907 [00:37:23]file doc_00165908 [00:37:23]remove file /storage/0535/doc_00165908 [00:37:23]file doc_00165909 [00:37:23]remove file /storage/0535/doc_00165909 [00:37:23]file doc_00165910 [00:37:23]remove file /storage/0535/doc_00165910 [00:37:23]file doc_00165911 [00:37:23]remove file /storage/0535/doc_00165911 [00:37:23]file doc_00165912 [00:37:23]remove file /storage/0535/doc_00165912 [00:37:23]file doc_00165913 [00:37:23]remove file /storage/0535/doc_00165913 [00:37:23]file doc_00165914 [00:37:23]remove file /storage/0535/doc_00165914 [00:37:23]file doc_00165915 [00:37:23]remove file /storage/0535/doc_00165915 [00:37:23]file doc_00165916 [00:37:23]remove file /storage/0535/doc_00165916 [00:37:23]file doc_00165917 [00:37:23]remove file /storage/0535/doc_00165917 [00:37:23]file doc_00165918 [00:37:23]remove file /storage/0535/doc_00165918 [00:37:23]file doc_00165919 [00:37:23]remove file /storage/0535/doc_00165919 [00:37:23]file doc_00165920 [00:37:23]remove file /storage/0535/doc_00165920 [00:37:23]file doc_00165921 [00:37:23]remove file /storage/0535/doc_00165921 [00:37:23]file doc_00165922 [00:37:23]remove file /storage/0535/doc_00165922 [00:37:23]file doc_00165923 [00:37:23]remove file /storage/0535/doc_00165923 [00:37:23]file doc_00165924 [00:37:23]remove file /storage/0535/doc_00165924 [00:37:23]file doc_00165925 [00:37:23]remove file /storage/0535/doc_00165925 [00:37:23]file doc_00165926 [00:37:23]remove file /storage/0535/doc_00165926 [00:37:23]file doc_00165927 [00:37:23]remove file /storage/0535/doc_00165927 [00:37:23]file doc_00165928 [00:37:23]remove file /storage/0535/doc_00165928 [00:37:23]file doc_00165929 [00:37:23]remove file /storage/0535/doc_00165929 [00:37:23]file doc_00165930 [00:37:23]remove file /storage/0535/doc_00165930 [00:37:23]file doc_00165931 [00:37:23]remove file /storage/0535/doc_00165931 [00:37:23]file doc_00165932 [00:37:23]remove file /storage/0535/doc_00165932 [00:37:23]file doc_00165933 [00:37:23]remove file /storage/0535/doc_00165933 [00:37:23]file doc_00165934 [00:37:23]remove file /storage/0535/doc_00165934 [00:37:23]file doc_00165935 [00:37:23]remove file /storage/0535/doc_00165935 [00:37:23]file doc_00165936 [00:37:23]remove file /storage/0535/doc_00165936 [00:37:23]file doc_00165937 [00:37:23]remove file /storage/0535/doc_00165937 [00:37:23]file doc_00165938 [00:37:23]remove file /storage/0535/doc_00165938 [00:37:23]file doc_00165939 [00:37:23]remove file /storage/0535/doc_00165939 [00:37:23]file doc_00165940 [00:37:23]remove file /storage/0535/doc_00165940 [00:37:23]file doc_00165941 [00:37:23]remove file /storage/0535/doc_00165941 [00:37:23]file doc_00165942 [00:37:23]remove file /storage/0535/doc_00165942 [00:37:23]file doc_00165943 [00:37:23]remove file /storage/0535/doc_00165943 [00:37:23]file doc_00165944 [00:37:23]remove file /storage/0535/doc_00165944 [00:37:23]file doc_00165945 [00:37:23]remove file /storage/0535/doc_00165945 [00:37:23]file doc_00165946 [00:37:23]remove file /storage/0535/doc_00165946 [00:37:23]file doc_00165947 [00:37:23]remove file /storage/0535/doc_00165947 [00:37:23]file doc_00165948 [00:37:23]remove file /storage/0535/doc_00165948 [00:37:23]file doc_00165949 [00:37:23]remove file /storage/0535/doc_00165949 [00:37:23]file doc_00165950 [00:37:23]remove file /storage/0535/doc_00165950 [00:37:24]file doc_00165951 [00:37:24]remove file /storage/0535/doc_00165951 [00:37:24]file doc_00165952 [00:37:24]remove file /storage/0535/doc_00165952 [00:37:24]file doc_00165953 [00:37:24]remove file /storage/0535/doc_00165953 [00:37:24]file doc_00165954 [00:37:24]remove file /storage/0535/doc_00165954 [00:37:24]file doc_00165955 [00:37:24]remove file /storage/0535/doc_00165955 [00:37:24]file doc_00165956 [00:37:24]remove file /storage/0535/doc_00165956 [00:37:24]file doc_00165957 [00:37:24]remove file /storage/0535/doc_00165957 [00:37:24]file doc_00165958 [00:37:24]remove file /storage/0535/doc_00165958 [00:37:24]file doc_00165959 [00:37:24]remove file /storage/0535/doc_00165959 [00:37:24]file doc_00165960 [00:37:24]remove file /storage/0535/doc_00165960 [00:37:24]file doc_00165961 [00:37:24]remove file /storage/0535/doc_00165961 [00:37:24]file doc_00165962 [00:37:24]remove file /storage/0535/doc_00165962 [00:37:24]file doc_00165963 [00:37:24]remove file /storage/0535/doc_00165963 [00:37:24]file doc_00165964 [00:37:24]remove file /storage/0535/doc_00165964 [00:37:24]file doc_00165965 [00:37:24]remove file /storage/0535/doc_00165965 [00:37:24]file doc_00165966 [00:37:24]remove file /storage/0535/doc_00165966 [00:37:24]file doc_00165967 [00:37:24]remove file /storage/0535/doc_00165967 [00:37:24]file doc_00165968 [00:37:24]remove file /storage/0535/doc_00165968 [00:37:24]file doc_00165969 [00:37:24]remove file /storage/0535/doc_00165969 [00:37:24]file doc_00165970 [00:37:24]remove file /storage/0535/doc_00165970 [00:37:24]file doc_00165971 [00:37:24]remove file /storage/0535/doc_00165971 [00:37:24]file doc_00165972 [00:37:24]remove file /storage/0535/doc_00165972 [00:37:24]file doc_00165973 [00:37:24]remove file /storage/0535/doc_00165973 [00:37:24]file doc_00165974 [00:37:24]remove file /storage/0535/doc_00165974 [00:37:24]file doc_00165975 [00:37:24]remove file /storage/0535/doc_00165975 [00:37:24]file doc_00165976 [00:37:24]remove file /storage/0535/doc_00165976 [00:37:24]file doc_00165977 [00:37:24]remove file /storage/0535/doc_00165977 [00:37:24]file doc_00165978 [00:37:24]remove file /storage/0535/doc_00165978 [00:37:24]file doc_00165979 [00:37:24]remove file /storage/0535/doc_00165979 [00:37:24]file doc_00165980 [00:37:24]remove file /storage/0535/doc_00165980 [00:37:24]file doc_00165981 [00:37:24]remove file /storage/0535/doc_00165981 [00:37:24]file doc_00165982 [00:37:24]remove file /storage/0535/doc_00165982 [00:37:24]file doc_00165983 [00:37:24]remove file /storage/0535/doc_00165983 [00:37:24]file doc_00165984 [00:37:24]remove file /storage/0535/doc_00165984 [00:37:24]file doc_00165985 [00:37:24]remove file /storage/0535/doc_00165985 [00:37:24]file doc_00165986 [00:37:24]remove file /storage/0535/doc_00165986 [00:37:24]file doc_00165987 [00:37:24]remove file /storage/0535/doc_00165987 [00:37:24]file doc_00165988 [00:37:24]remove file /storage/0535/doc_00165988 [00:37:24]file doc_00165989 [00:37:24]remove file /storage/0535/doc_00165989 [00:37:24]file doc_00165990 [00:37:24]remove file /storage/0535/doc_00165990 [00:37:24]file doc_00165991 [00:37:24]remove file /storage/0535/doc_00165991 [00:37:24]file doc_00165992 [00:37:24]remove file /storage/0535/doc_00165992 [00:37:24]file doc_00165993 [00:37:24]remove file /storage/0535/doc_00165993 [00:37:24]file doc_00165994 [00:37:24]remove file /storage/0535/doc_00165994 [00:37:24]file doc_00165995 [00:37:24]remove file /storage/0535/doc_00165995 [00:37:24]file doc_00165996 [00:37:24]remove file /storage/0535/doc_00165996 [00:37:24]file doc_00165997 [00:37:24]remove file /storage/0535/doc_00165997 [00:37:24]file doc_00165998 [00:37:24]remove file /storage/0535/doc_00165998 [00:37:24]file doc_00165999 [00:37:24]remove file /storage/0535/doc_00165999 [00:37:24]file doc_00166000 [00:37:24]remove file /storage/0535/doc_00166000 [00:37:24]file doc_00166001 [00:37:24]remove file /storage/0535/doc_00166001 [00:37:24]file doc_00166002 [00:37:24]remove file /storage/0535/doc_00166002 [00:37:24]file doc_00166003 [00:37:24]remove file /storage/0535/doc_00166003 [00:37:24]file doc_00166004 [00:37:24]remove file /storage/0535/doc_00166004 [00:37:24]file doc_00166005 [00:37:24]remove file /storage/0535/doc_00166005 [00:37:24]file doc_00166006 [00:37:24]remove file /storage/0535/doc_00166006 [00:37:24]file doc_00166007 [00:37:24]remove file /storage/0535/doc_00166007 [00:37:24]file doc_00166008 [00:37:24]remove file /storage/0535/doc_00166008 [00:37:24]file doc_00166009 [00:37:24]remove file /storage/0535/doc_00166009 [00:37:24]file doc_00166010 [00:37:24]remove file /storage/0535/doc_00166010 [00:37:24]file doc_00166011 [00:37:24]remove file /storage/0535/doc_00166011 [00:37:24]file doc_00166012 [00:37:24]remove file /storage/0535/doc_00166012 [00:37:24]file doc_00166013 [00:37:24]remove file /storage/0535/doc_00166013 [00:37:24]file doc_00166014 [00:37:24]remove file /storage/0535/doc_00166014 [00:37:24]file doc_00166015 [00:37:24]remove file /storage/0535/doc_00166015 [00:37:24]file doc_00166016 [00:37:24]remove file /storage/0535/doc_00166016 [00:37:24]file doc_00166017 [00:37:24]remove file /storage/0535/doc_00166017 [00:37:24]file doc_00166018 [00:37:24]remove file /storage/0535/doc_00166018 [00:37:24]file doc_00166019 [00:37:24]remove file /storage/0535/doc_00166019 [00:37:24]file doc_00166020 [00:37:24]remove file /storage/0535/doc_00166020 [00:37:24]file doc_00166021 [00:37:24]remove file /storage/0535/doc_00166021 [00:37:24]file doc_00166022 [00:37:24]remove file /storage/0535/doc_00166022 [00:37:24]file doc_00166023 [00:37:24]remove file /storage/0535/doc_00166023 [00:37:24]file doc_00166024 [00:37:24]remove file /storage/0535/doc_00166024 [00:37:24]file doc_00166025 [00:37:24]remove file /storage/0535/doc_00166025 [00:37:24]file doc_00166026 [00:37:24]remove file /storage/0535/doc_00166026 [00:37:24]file doc_00166027 [00:37:24]remove file /storage/0535/doc_00166027 [00:37:24]file doc_00166028 [00:37:24]remove file /storage/0535/doc_00166028 [00:37:24]file doc_00166029 [00:37:24]remove file /storage/0535/doc_00166029 [00:37:24]file doc_00166030 [00:37:24]remove file /storage/0535/doc_00166030 [00:37:24]file doc_00166031 [00:37:24]remove file /storage/0535/doc_00166031 [00:37:24]file doc_00166032 [00:37:24]remove file /storage/0535/doc_00166032 [00:37:24]file doc_00166033 [00:37:24]remove file /storage/0535/doc_00166033 [00:37:24]file doc_00166034 [00:37:24]remove file /storage/0535/doc_00166034 [00:37:24]file doc_00166035 [00:37:24]remove file /storage/0535/doc_00166035 [00:37:24]file doc_00166036 [00:37:24]remove file /storage/0535/doc_00166036 [00:37:24]file doc_00166037 [00:37:24]remove file /storage/0535/doc_00166037 [00:37:24]file doc_00166038 [00:37:24]remove file /storage/0535/doc_00166038 [00:37:24]file doc_00166039 [00:37:24]remove file /storage/0535/doc_00166039 [00:37:24]file doc_00166040 [00:37:24]remove file /storage/0535/doc_00166040 [00:37:24]file doc_00166041 [00:37:24]remove file /storage/0535/doc_00166041 [00:37:24]file doc_00166042 [00:37:24]remove file /storage/0535/doc_00166042 [00:37:24]file doc_00166043 [00:37:24]remove file /storage/0535/doc_00166043 [00:37:24]file doc_00166044 [00:37:24]remove file /storage/0535/doc_00166044 [00:37:24]file doc_00166045 [00:37:24]remove file /storage/0535/doc_00166045 [00:37:24]file doc_00166046 [00:37:24]remove file /storage/0535/doc_00166046 [00:37:24]file doc_00166047 [00:37:24]remove file /storage/0535/doc_00166047 [00:37:24]file doc_00166048 [00:37:24]remove file /storage/0535/doc_00166048 [00:37:24]file doc_00166049 [00:37:24]remove file /storage/0535/doc_00166049 [00:37:24]file doc_00166050 [00:37:24]remove file /storage/0535/doc_00166050 [00:37:24]file doc_00166051 [00:37:24]remove file /storage/0535/doc_00166051 [00:37:24]file doc_00166052 [00:37:24]remove file /storage/0535/doc_00166052 [00:37:24]file doc_00166053 [00:37:24]remove file /storage/0535/doc_00166053 [00:37:24]file doc_00166054 [00:37:24]remove file /storage/0535/doc_00166054 [00:37:24]file doc_00166055 [00:37:24]remove file /storage/0535/doc_00166055 [00:37:24]file doc_00166056 [00:37:24]remove file /storage/0535/doc_00166056 [00:37:24]file doc_00166057 [00:37:24]remove file /storage/0535/doc_00166057 [00:37:24]file doc_00166058 [00:37:24]remove file /storage/0535/doc_00166058 [00:37:24]file doc_00166059 [00:37:24]remove file /storage/0535/doc_00166059 [00:37:24]file doc_00166060 [00:37:24]remove file /storage/0535/doc_00166060 [00:37:24]file doc_00166061 [00:37:24]remove file /storage/0535/doc_00166061 [00:37:24]file doc_00166062 [00:37:24]remove file /storage/0535/doc_00166062 [00:37:24]file doc_00166063 [00:37:24]remove file /storage/0535/doc_00166063 [00:37:24]file doc_00166064 [00:37:24]remove file /storage/0535/doc_00166064 [00:37:24]file doc_00166065 [00:37:24]remove file /storage/0535/doc_00166065 [00:37:24]file doc_00166066 [00:37:24]remove file /storage/0535/doc_00166066 [00:37:24]file doc_00166067 [00:37:24]remove file /storage/0535/doc_00166067 [00:37:24]file doc_00166068 [00:37:24]remove file /storage/0535/doc_00166068 [00:37:24]file doc_00166069 [00:37:24]remove file /storage/0535/doc_00166069 [00:37:24]file doc_00166070 [00:37:24]remove file /storage/0535/doc_00166070 [00:37:24]file doc_00166071 [00:37:24]remove file /storage/0535/doc_00166071 [00:37:24]file doc_00166072 [00:37:24]remove file /storage/0535/doc_00166072 [00:37:24]file doc_00166073 [00:37:24]remove file /storage/0535/doc_00166073 [00:37:24]file doc_00166074 [00:37:24]remove file /storage/0535/doc_00166074 [00:37:24]file doc_00166075 [00:37:24]remove file /storage/0535/doc_00166075 [00:37:24]file doc_00166076 [00:37:24]remove file /storage/0535/doc_00166076 [00:37:24]file doc_00166077 [00:37:24]remove file /storage/0535/doc_00166077 [00:37:24]file doc_00166078 [00:37:24]remove file /storage/0535/doc_00166078 [00:37:24]file doc_00166079 [00:37:24]remove file /storage/0535/doc_00166079 [00:37:24]file doc_00166080 [00:37:24]remove file /storage/0535/doc_00166080 [00:37:24]file doc_00166081 [00:37:24]remove file /storage/0535/doc_00166081 [00:37:24]file doc_00166082 [00:37:24]remove file /storage/0535/doc_00166082 [00:37:24]file doc_00166083 [00:37:24]remove file /storage/0535/doc_00166083 [00:37:24]file doc_00166084 [00:37:24]remove file /storage/0535/doc_00166084 [00:37:24]file doc_00166085 [00:37:24]remove file /storage/0535/doc_00166085 [00:37:24]file doc_00166086 [00:37:24]remove file /storage/0535/doc_00166086 [00:37:24]file doc_00166087 [00:37:24]remove file /storage/0535/doc_00166087 [00:37:24]file doc_00166088 [00:37:24]remove file /storage/0535/doc_00166088 [00:37:24]file doc_00166089 [00:37:24]remove file /storage/0535/doc_00166089 [00:37:24]file doc_00166090 [00:37:24]remove file /storage/0535/doc_00166090 [00:37:24]file doc_00166091 [00:37:24]remove file /storage/0535/doc_00166091 [00:37:24]file doc_00166092 [00:37:24]remove file /storage/0535/doc_00166092 [00:37:24]file doc_00166093 [00:37:24]remove file /storage/0535/doc_00166093 [00:37:24]file doc_00166094 [00:37:24]remove file /storage/0535/doc_00166094 [00:37:24]file doc_00166095 [00:37:24]remove file /storage/0535/doc_00166095 [00:37:24]file doc_00166096 [00:37:24]remove file /storage/0535/doc_00166096 [00:37:24]file doc_00166097 [00:37:24]remove file /storage/0535/doc_00166097 [00:37:24]file doc_00166098 [00:37:24]remove file /storage/0535/doc_00166098 [00:37:25]file doc_00166099 [00:37:25]remove file /storage/0535/doc_00166099 [00:37:25]file doc_00166100 [00:37:25]remove file /storage/0535/doc_00166100 [00:37:25]file doc_00166101 [00:37:25]remove file /storage/0535/doc_00166101 [00:37:25]file doc_00166102 [00:37:25]remove file /storage/0535/doc_00166102 [00:37:25]file doc_00166103 [00:37:25]remove file /storage/0535/doc_00166103 [00:37:25]file doc_00166104 [00:37:25]remove file /storage/0535/doc_00166104 [00:37:25]file doc_00166105 [00:37:25]remove file /storage/0535/doc_00166105 [00:37:25]file doc_00166106 [00:37:25]remove file /storage/0535/doc_00166106 [00:37:25]file doc_00166107 [00:37:25]remove file /storage/0535/doc_00166107 [00:37:25]file doc_00166108 [00:37:25]remove file /storage/0535/doc_00166108 [00:37:25]file doc_00166109 [00:37:25]remove file /storage/0535/doc_00166109 [00:37:25]file doc_00166110 [00:37:25]remove file /storage/0535/doc_00166110 [00:37:25]file doc_00166111 [00:37:25]remove file /storage/0535/doc_00166111 [00:37:25]file doc_00166112 [00:37:25]remove file /storage/0535/doc_00166112 [00:37:25]file doc_00166113 [00:37:25]remove file /storage/0535/doc_00166113 [00:37:25]file doc_00166114 [00:37:25]remove file /storage/0535/doc_00166114 [00:37:25]file doc_00166115 [00:37:25]remove file /storage/0535/doc_00166115 [00:37:25]file doc_00166116 [00:37:25]remove file /storage/0535/doc_00166116 [00:37:25]file doc_00166117 [00:37:25]remove file /storage/0535/doc_00166117 [00:37:25]file doc_00166118 [00:37:25]remove file /storage/0535/doc_00166118 [00:37:25]file doc_00166119 [00:37:25]remove file /storage/0535/doc_00166119 [00:37:25]file doc_00166120 [00:37:25]remove file /storage/0535/doc_00166120 [00:37:25]file doc_00166121 [00:37:25]remove file /storage/0535/doc_00166121 [00:37:25]file doc_00166122 [00:37:25]remove file /storage/0535/doc_00166122 [00:37:25]file doc_00166123 [00:37:25]remove file /storage/0535/doc_00166123 [00:37:25]file doc_00166124 [00:37:25]remove file /storage/0535/doc_00166124 [00:37:25]file doc_00166125 [00:37:25]remove file /storage/0535/doc_00166125 [00:37:25]file doc_00166126 [00:37:25]remove file /storage/0535/doc_00166126 [00:37:25]file doc_00166127 [00:37:25]remove file /storage/0535/doc_00166127 [00:37:25]file doc_00166128 [00:37:25]remove file /storage/0535/doc_00166128 [00:37:25]file doc_00166129 [00:37:25]remove file /storage/0535/doc_00166129 [00:37:25]file doc_00166130 [00:37:25]remove file /storage/0535/doc_00166130 [00:37:25]file doc_00166131 [00:37:25]remove file /storage/0535/doc_00166131 [00:37:25]file doc_00166132 [00:37:25]remove file /storage/0535/doc_00166132 [00:37:25]file doc_00166133 [00:37:25]remove file /storage/0535/doc_00166133 [00:37:25]file doc_00166134 [00:37:25]remove file /storage/0535/doc_00166134 [00:37:25]file doc_00166135 [00:37:25]remove file /storage/0535/doc_00166135 [00:37:25]file doc_00166136 [00:37:25]remove file /storage/0535/doc_00166136 [00:37:25]file doc_00166137 [00:37:25]remove file /storage/0535/doc_00166137 [00:37:25]file doc_00166138 [00:37:25]remove file /storage/0535/doc_00166138 [00:37:25]file doc_00166139 [00:37:25]remove file /storage/0535/doc_00166139 [00:37:25]file doc_00166140 [00:37:25]remove file /storage/0535/doc_00166140 [00:37:25]file doc_00166141 [00:37:25]remove file /storage/0535/doc_00166141 [00:37:25]file doc_00166142 [00:37:25]remove file /storage/0535/doc_00166142 [00:37:25]file doc_00166143 [00:37:25]remove file /storage/0535/doc_00166143 [00:37:25]file doc_00166144 [00:37:25]remove file /storage/0535/doc_00166144 [00:37:25]file doc_00166145 [00:37:25]remove file /storage/0535/doc_00166145 [00:37:25]file doc_00166146 [00:37:25]remove file /storage/0535/doc_00166146 [00:37:25]file doc_00166147 [00:37:25]remove file /storage/0535/doc_00166147 [00:37:25]file doc_00166148 [00:37:25]remove file /storage/0535/doc_00166148 [00:37:25]file doc_00166149 [00:37:25]remove file /storage/0535/doc_00166149 [00:37:25]file doc_00166150 [00:37:25]remove file /storage/0535/doc_00166150 [00:37:25]file doc_00166151 [00:37:25]remove file /storage/0535/doc_00166151 [00:37:25]file doc_00166152 [00:37:25]remove file /storage/0535/doc_00166152 [00:37:25]file doc_00166153 [00:37:25]remove file /storage/0535/doc_00166153 [00:37:25]file doc_00166154 [00:37:25]remove file /storage/0535/doc_00166154 [00:37:25]file doc_00166155 [00:37:25]remove file /storage/0535/doc_00166155 [00:37:25]file doc_00166156 [00:37:25]remove file /storage/0535/doc_00166156 [00:37:25]file doc_00166157 [00:37:25]remove file /storage/0535/doc_00166157 [00:37:25]file doc_00166158 [00:37:25]remove file /storage/0535/doc_00166158 [00:37:25]file doc_00166159 [00:37:25]remove file /storage/0535/doc_00166159 [00:37:25]file doc_00166160 [00:37:25]remove file /storage/0535/doc_00166160 [00:37:25]file doc_00166161 [00:37:25]remove file /storage/0535/doc_00166161 [00:37:25]file doc_00166162 [00:37:25]remove file /storage/0535/doc_00166162 [00:37:25]file doc_00166163 [00:37:25]remove file /storage/0535/doc_00166163 [00:37:25]file doc_00166164 [00:37:25]remove file /storage/0535/doc_00166164 [00:37:25]file doc_00166165 [00:37:25]remove file /storage/0535/doc_00166165 [00:37:25]file doc_00166166 [00:37:25]remove file /storage/0535/doc_00166166 [00:37:25]file doc_00166167 [00:37:25]remove file /storage/0535/doc_00166167 [00:37:25]file doc_00166168 [00:37:25]remove file /storage/0535/doc_00166168 [00:37:25]file doc_00166169 [00:37:25]remove file /storage/0535/doc_00166169 [00:37:25]file doc_00166170 [00:37:25]remove file /storage/0535/doc_00166170 [00:37:25]file doc_00166171 [00:37:25]remove file /storage/0535/doc_00166171 [00:37:25]file doc_00166172 [00:37:25]remove file /storage/0535/doc_00166172 [00:37:25]file doc_00166173 [00:37:25]remove file /storage/0535/doc_00166173 [00:37:25]file doc_00166174 [00:37:25]remove file /storage/0535/doc_00166174 [00:37:25]file doc_00166175 [00:37:25]remove file /storage/0535/doc_00166175 [00:37:25]file doc_00166176 [00:37:25]remove file /storage/0535/doc_00166176 [00:37:25]file doc_00166177 [00:37:25]remove file /storage/0535/doc_00166177 [00:37:25]file doc_00166178 [00:37:25]remove file /storage/0535/doc_00166178 [00:37:25]file doc_00166179 [00:37:25]remove file /storage/0535/doc_00166179 [00:37:25]file doc_00166180 [00:37:25]remove file /storage/0535/doc_00166180 [00:37:25]file doc_00166181 [00:37:25]remove file /storage/0535/doc_00166181 [00:37:25]file doc_00166182 [00:37:25]remove file /storage/0535/doc_00166182 [00:37:25]file doc_00166183 [00:37:25]remove file /storage/0535/doc_00166183 [00:37:25]file doc_00166184 [00:37:25]remove file /storage/0535/doc_00166184 [00:37:25]file doc_00166185 [00:37:25]remove file /storage/0535/doc_00166185 [00:37:25]file doc_00166186 [00:37:25]remove file /storage/0535/doc_00166186 [00:37:25]file doc_00166187 [00:37:25]remove file /storage/0535/doc_00166187 [00:37:25]file doc_00166188 [00:37:25]remove file /storage/0535/doc_00166188 [00:37:25]file doc_00166189 [00:37:25]remove file /storage/0535/doc_00166189 [00:37:25]file doc_00166190 [00:37:25]remove file /storage/0535/doc_00166190 [00:37:25]file doc_00166191 [00:37:25]remove file /storage/0535/doc_00166191 [00:37:25]file doc_00166192 [00:37:25]remove file /storage/0535/doc_00166192 [00:37:25]file doc_00166193 [00:37:25]remove file /storage/0535/doc_00166193 [00:37:25]file doc_00166194 [00:37:25]remove file /storage/0535/doc_00166194 [00:37:25]file doc_00166195 [00:37:25]remove file /storage/0535/doc_00166195 [00:37:25]file doc_00166196 [00:37:25]remove file /storage/0535/doc_00166196 [00:37:25]file doc_00166197 [00:37:25]remove file /storage/0535/doc_00166197 [00:37:25]file doc_00166198 [00:37:25]remove file /storage/0535/doc_00166198 [00:37:25]file doc_00166199 [00:37:25]remove file /storage/0535/doc_00166199 [00:37:25]file doc_00166200 [00:37:25]remove file /storage/0535/doc_00166200 [00:37:25]file doc_00166201 [00:37:25]remove file /storage/0535/doc_00166201 [00:37:25]file doc_00166202 [00:37:25]remove file /storage/0535/doc_00166202 [00:37:25]file doc_00166203 [00:37:25]remove file /storage/0535/doc_00166203 [00:37:25]file doc_00166204 [00:37:25]remove file /storage/0535/doc_00166204 [00:37:25]file doc_00166205 [00:37:25]remove file /storage/0535/doc_00166205 [00:37:25]file doc_00166206 [00:37:25]remove file /storage/0535/doc_00166206 [00:37:25]file doc_00166207 [00:37:25]remove file /storage/0535/doc_00166207 [00:37:25]file doc_00166208 [00:37:25]remove file /storage/0535/doc_00166208 [00:37:25]file doc_00166209 [00:37:25]remove file /storage/0535/doc_00166209 [00:37:25]file doc_00166210 [00:37:25]remove file /storage/0535/doc_00166210 [00:37:25]file doc_00166211 [00:37:25]remove file /storage/0535/doc_00166211 [00:37:25]file doc_00166212 [00:37:25]remove file /storage/0535/doc_00166212 [00:37:25]file doc_00166213 [00:37:25]remove file /storage/0535/doc_00166213 [00:37:25]file doc_00166214 [00:37:25]remove file /storage/0535/doc_00166214 [00:37:25]file doc_00166215 [00:37:25]remove file /storage/0535/doc_00166215 [00:37:25]file doc_00166216 [00:37:25]remove file /storage/0535/doc_00166216 [00:37:25]file doc_00166217 [00:37:25]remove file /storage/0535/doc_00166217 [00:37:25]file doc_00166218 [00:37:25]remove file /storage/0535/doc_00166218 [00:37:25]file doc_00166219 [00:37:25]remove file /storage/0535/doc_00166219 [00:37:25]file doc_00166220 [00:37:25]remove file /storage/0535/doc_00166220 [00:37:25]file doc_00166221 [00:37:25]remove file /storage/0535/doc_00166221 [00:37:25]file doc_00166222 [00:37:25]remove file /storage/0535/doc_00166222 [00:37:25]file doc_00166223 [00:37:25]remove file /storage/0535/doc_00166223 [00:37:25]file doc_00166224 [00:37:25]remove file /storage/0535/doc_00166224 [00:37:25]file doc_00166225 [00:37:25]remove file /storage/0535/doc_00166225 [00:37:25]file doc_00166226 [00:37:25]remove file /storage/0535/doc_00166226 [00:37:25]file doc_00166227 [00:37:25]remove file /storage/0535/doc_00166227 [00:37:25]file doc_00166228 [00:37:25]remove file /storage/0535/doc_00166228 [00:37:25]file doc_00166229 [00:37:25]remove file /storage/0535/doc_00166229 [00:37:25]file doc_00166230 [00:37:25]remove file /storage/0535/doc_00166230 [00:37:25]file doc_00166231 [00:37:25]remove file /storage/0535/doc_00166231 [00:37:25]file doc_00166232 [00:37:25]remove file /storage/0535/doc_00166232 [00:37:25]file doc_00166233 [00:37:25]remove file /storage/0535/doc_00166233 [00:37:25]file doc_00166234 [00:37:25]remove file /storage/0535/doc_00166234 [00:37:25]file doc_00166235 [00:37:25]remove file /storage/0535/doc_00166235 [00:37:25]file doc_00166236 [00:37:25]remove file /storage/0535/doc_00166236 [00:37:25]file doc_00166237 [00:37:25]remove file /storage/0535/doc_00166237 [00:37:25]file doc_00166238 [00:37:25]remove file /storage/0535/doc_00166238 [00:37:25]file doc_00166239 [00:37:25]remove file /storage/0535/doc_00166239 [00:37:25]file doc_00166240 [00:37:25]remove file /storage/0535/doc_00166240 [00:37:25]file doc_00166241 [00:37:25]remove file /storage/0535/doc_00166241 [00:37:25]file doc_00166242 [00:37:25]remove file /storage/0535/doc_00166242 [00:37:25]file doc_00166243 [00:37:25]remove file /storage/0535/doc_00166243 [00:37:25]file doc_00166244 [00:37:25]remove file /storage/0535/doc_00166244 [00:37:25]remove dir /storage/0535 [00:37:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:37:25]tlvbuf is 0159D960 [00:37:25]SAM_PROTO_ClearQueue [00:37:25]wFMCommunicate request_size=4 [00:37:25]MH_SAM_APDU [00:37:25]CAPDU: 80 09 00 00 [00:37:25]Write to MH i2c: E2 08 00 02 92 80 09 00 00 00 00 00 00 06 [00:37:25]Write i2c OK [00:37:25]MH_I2C_Read... [00:37:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:25]Read from MH i2c: E2 [00:37:25]MH_I2C_Read... [00:37:25]Read from MH i2c: E2 03 00 [00:37:25]MH_I2C_Read... [00:37:25]Read from MH i2c: E2 03 00 02 92 00 90 00 08 [00:37:25]RAPDU: 90 00 [00:37:25]wFMCommunicate OK [00:37:25]SAM_PROTO_ClearQueue done [00:37:25]KKMCreateOFDPacket [00:37:25]OFDProtocolAddRootSTLVToBuf [00:37:25]FM_MakeSignedData [00:37:25]FM_MakeSignedData [00:37:25]SAM_PROTO_SignData [00:37:25]wFMCommunicate request_size=4 [00:37:25]MH_SAM_APDU [00:37:25]CAPDU: 80 0D 01 02 [00:37:25]Write to MH i2c: E2 08 00 03 92 80 0D 01 02 00 00 00 00 0E [00:37:25]Write i2c OK [00:37:25]MH_I2C_Read... [00:37:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:25]Read from MH i2c: E2 [00:37:25]MH_I2C_Read... [00:37:25]Read from MH i2c: E2 03 00 [00:37:25]MH_I2C_Read... [00:37:25]Read from MH i2c: E2 03 00 03 92 00 90 00 09 [00:37:25]RAPDU: 90 00 [00:37:25]wFMCommunicate OK [00:37:25]wFMCommunicate request_size=255 [00:37:25]MH_SAM_APDU [00:37:25]CAPDU: 80 0D 02 02 FA 02 00 FB 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 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 D7 F3 16 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 CF [00:37:25]Write to MH i2c: E2 02 01 04 92 80 0D 02 02 FA 00 02 00 FB 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 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 D7 F3 16 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 CF 00 00 AD [00:37:25]Write i2c OK [00:37:25]MH_I2C_Read... [00:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:26]Read from MH i2c: E2 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 03 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 03 00 04 92 00 90 00 0A [00:37:26]RAPDU: 90 00 [00:37:26]wFMCommunicate OK [00:37:26]wFMCommunicate request_size=10 [00:37:26]MH_SAM_APDU [00:37:26]CAPDU: 80 0D 02 02 05 4D 37 F9 E0 5B [00:37:26]Write to MH i2c: E2 0D 00 05 92 80 0D 02 02 05 00 4D 37 F9 E0 5B 00 00 D3 [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:26]Read from MH i2c: E2 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 03 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 03 00 05 92 00 90 00 0B [00:37:26]RAPDU: 90 00 [00:37:26]wFMCommunicate OK [00:37:26]wFMCommunicate request_size=4 [00:37:26]MH_SAM_APDU [00:37:26]CAPDU: 80 0D 03 02 [00:37:26]Write to MH i2c: E2 08 00 06 92 80 0D 03 02 00 00 00 00 13 [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:26]Read from MH i2c: E2 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 0B 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 0B 00 06 92 00 78 CA 12 31 A5 26 79 0B 90 00 E8 [00:37:26]RAPDU: 78 CA 12 31 A5 26 79 0B 90 00 [00:37:26]wFMCommunicate OK [00:37:26]SAM_PROTO_SignData done [00:37:26]FM_MakeSignedData done [00:37:26]CreateOFDProtocolMessage [00:37:26]wFMCommunicate request_size=4 [00:37:26]MH_SAM_APDU [00:37:26]CAPDU: 80 11 00 00 [00:37:26]Write to MH i2c: E2 08 00 07 92 80 11 00 00 00 00 00 00 13 [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:26]Read from MH i2c: E2 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 17 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: E2 17 00 07 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 6B [00:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:37:26]wFMCommunicate OK [00:37:26]CreateOFDProtocolMessage done [00:37:26]OFDSenderStorePacket 166245 [00:37:26]StoreOFDPacket docnum=166245 [00:37:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 B9 1C 07 01 A1 B6 5A 02 01 00 02 00 FB 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 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 D7 F3 16 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 CF 4D 37 F9 E0 5B 78 CA 12 31 A5 26 79 0B [00:37:26]CheckFolder [00:37:26]dirname=/storage/ofd_packets [00:37:26]CheckFolder done [00:37:26]ProducePacketName [00:37:26]name=ofd_packets/00166245 [00:37:26]NVStorageSaveData ofd_packets/00166245 [00:37:26]File name is /storage/ofd_packets/00166245 [00:37:26]Write 301 bytes [00:37:26]NVStorageSaveData done [00:37:26]OFDSenderStorePacket done [00:37:26]KKMCreateOFDPacket done [00:37:26]NVStorageSaveData kkm_last_timestamp [00:37:26]File name is /storage/kkm_last_timestamp [00:37:26]Write 4 bytes [00:37:26]NVStorageSaveData done [00:37:26]ExternCall_PrintAddStr [00:37:26]wPrintStart [00:37:26]Write to MH i2c: 01 00 00 08 92 9A [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: 01 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: 01 07 00 [00:37:26]MH_I2C_Read... [00:37:26]OFD Sender: Processing packet 166245 [packets to send 48, broken 47] [00:37:26]ProducePacketName [00:37:26]name=ofd_packets/00166245 [00:37:26]OFD Sender: To server: pG, [00:37:26]CommunicateWithHost lk.salyk.kg:30040 [00:37:26]ConnectInit lk.salyk.kg [00:37:26]Read from MH i2c: 01 07 00 08 92 00 00 00 00 00 FF 0F AF [00:37:26]RasterBufferAndPrint [00:37:26]line Отчет об открытии смены [00:37:26]line ФФД: 1.0 [00:37:26]line ИНН: 02508201610067 [00:37:26]line Кассир: Салиев Э. [00:37:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:37:26]line Место: АЗС № 161 "Партнер Нефть" [00:37:26]line 22.10.2024 00:37 [00:37:26]line Смена: 536 [00:37:26]line РНМ: 0000000000091764 [00:37:26]line ЗНМ: 0300000104 [00:37:26]line ФД: 166245 [00:37:26]line ФМ: 0000000000871759 [00:37:26]line ФПД: 227930558554203 [00:37:26]written 0, free lines is 4095 [00:37:26]Connected sock=7 [00: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 35 39 0F 01 00 00 B9 1C 07 01 A1 B6 5A 02 01 00 02 00 FB 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 11 00 D0 A1 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 AD 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9C D0 B0 D1 81 D1 8B 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 20 35 32 31 20 D0 BA D0 BC 2C 20 34 31 2E 39 32 39 38 33 34 2C 20 37 32 2E 38 38 38 38 35 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 31 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 D7 F3 16 67 0E 04 04 00 18 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 35 04 06 00 CF 4D 37 F9 E0 5B 78 CA 12 31 A5 26 79 0B [00:37:26]Write to MH i2c: 01 00 00 1A 92 AC [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: 01 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: 01 07 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: 01 07 00 1A 92 00 00 00 00 00 60 0E 21 [00:37:26]RasterBufferAndPrint [00:37:26]line [00:37:26]line [00:37:26]line [00:37:26]line [00:37:26]line [00:37:26]written 0, free lines is 3692 [00:37:26]MH_Cut [00:37:26]Write to MH i2c: D1 01 00 21 92 01 85 [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: D1 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: D1 01 00 [00:37:26]MH_I2C_Read... [00:37:26]Read from MH i2c: D1 01 00 21 92 00 84 [00:37:26]Write to MH i2c: 01 00 00 22 92 B4 [00:37:26]Write i2c OK [00:37:26]MH_I2C_Read... [00:37:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0E A8 47 00 7B 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 65 89 02 00 F4 03 04 00 46 9A 16 67 B6 04 01 00 00 6D 87 18 04 25 72 44 15 [00:37:26]CommunicateWithHost err = 0 [00:37:26]CheckOFDResponse [00:37:26]1017 (14) - 77093643461234 [00:37:26]1041 (16) - 0000000000871759 [00:37:26]1040 (4) - 166245 [00:37:26]1012 (4) - 21.10.2024 18:15 [00:37:26]1206 (1) - 0 [00:37:26]OFD Sender: Remove packet 166245 [00:37:26]ProducePacketName [00:37:26]name=ofd_packets/00166245 [00:37:26]NVStorageDeleteData [00:37:27]*** Cut start [00:37:27]*** Partial cut [00:37:27]*** CUTSNS_PIN = 1 [00:37:27]*** CUTSNS_PIN = 0 [00:37:27]OFD Sender: No OFD packet to send [00:37:27]*** Brake cut motor [00:37:27]Read from MH i2c: 01 [00:37:27]MH_I2C_Read... [00:37:27]*** Stop cut motor [00:37:27]*** Cut end [00:37:27]Read from MH i2c: 01 07 00 [00:37:27]MH_I2C_Read... [00:37:27]Read from MH i2c: 01 07 00 22 92 00 00 00 00 00 FF 0F C9 [00:37:27]process_action open_shift done [00:37:27]requested_data is exist [00:37:27]produce_requested_data [00:37:27]requested_item fd.num is exist - process it [00:37:27]SAM_PROTO_GetFieldsCounters [00:37:27]wFMCommunicate request_size=4 [00:37:27]MH_SAM_APDU [00:37:27]CAPDU: 80 13 00 00 [00:37:27]Write to MH i2c: E2 08 00 23 92 80 13 00 00 00 00 00 00 31 [00:37:27]Write i2c OK [00:37:27]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 62 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 62 00 23 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [00: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 65 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:28]wFMCommunicate OK [00:37:28]SAM_PROTO_GetFieldsCounters done [00:37:28]requested_item shift.num is exist - process it [00:37:28]requested_item shift.opened is exist - process it [00:37:28]req_shift_opened [00:37:28]FM_GetShiftState [00:37:28]SAM_PROTO_GetShiftState [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 13 01 00 [00:37:28]Write to MH i2c: E2 08 00 24 92 80 13 01 00 00 00 00 00 33 [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 0E 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 0E 00 24 92 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 86 [00:37:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:37:28]wFMCommunicate OK [00:37:28]SAM_PROTO_GetShiftState done [00:37:28]FM_GetShiftState done [00:37:28]req_shift_opened done [00:37:28]requested_item shift.open_date is exist - process it [00:37:28]req_shift_open_date [00:37:28]req_shift_open_date done [00:37:28]produce_requested_data done [00:37:28]produce_requested_data return {"fd.num":166245,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:37:28]process_action_free open_shift [00:37:28]json_value_free [00:37:28]json_value_free done [00:37:28]process_json_proto returns [00:37:28]Send response to host [00:37:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":166245,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:37:28]free response buf [00:37:28]execute_script done [00:37:28]execute_script returns [00:37:28]free content buf [00:37:28]Sock 5.Close socket [00:37:28]Sock 5.Thread stoped [00:37:28]accept exits with 6 [00:37:28]New connection [00:37:28]New thread 3066776932 created [00:37:28]Thread 3066920292 joined [00:37:28]Waiting for new connection... [00:37:28] Sock 6.Parse request [00:37:28]Sock 6.Check first char [00:37:28]Sock 6.First char is OK [00:37:28]request: POST /json_proto HTTP/1.0 [00:37:28]Method: POST [00:37:28]URL: /json_proto [00:37:28]Method is POST - this is cgi request [00:37:28]url: /json_proto [00:37:28]query_string will be loaded in cgi processing [00:37:28]execute_cgi json_proto POST (null) [00:37:28]execute_cgi path=json_proto method=POST [00:37:28]POST find Content-Length [00:37:28]Host: 172.17.53.195:8080 [00:37:28]Content-Length: 331 [00:37:28]Content-Type: application/json [00:37:28] [00:37:28]POST finish read [00:37:28]Found Content-Length = 331 [00:37:28]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:37:28]execute_script... [00:37:28]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:37:28]POST & json_proto [00:37:28]process_json_proto [00:37:28]json parsed OK: [00:37:28]protocol is kg_v1.0 [00:37:28]action value=get_value [00:37:28]process_action get_value [00:37:28]cmd_get_value [00:37:28]process_action get_value done [00:37:28]requested_data is exist [00:37:28]produce_requested_data [00:37:28]requested_item fm.sale.total is exist - process it [00:37:28]SAM_PROTO_GetFMData [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 13 03 00 [00:37:28]Write to MH i2c: E2 08 00 25 92 80 13 03 00 00 00 00 00 36 [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:37:28]Read from MH i2c: E2 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 FD 00 [00:37:28]MH_I2C_Read... [00:37:28]Read from MH i2c: E2 FD 00 25 92 00 C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 28 [00:37:28]RAPDU: C5 04 85 04 C1 04 6E 04 04 00 35 85 02 00 69 04 A3 00 6F 04 04 00 36 84 02 00 B1 04 05 00 B4 CE 74 B2 03 70 04 05 00 18 6E D0 28 03 72 04 04 00 9C 60 A4 89 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 53 18 8D 64 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 C5 FE 60 08 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 9C 00 6F 04 04 00 FF 00 00 00 B1 04 04 00 A0 FF AF 0A 70 04 04 00 A0 FF AF 0A 72 04 00 00 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 17 91 22 01 EF 03 09 90 00 [00:37:28]wFMCommunicate OK [00:37:28]wFMCommunicate request_size=4 [00:37:28]MH_SAM_APDU [00:37:28]CAPDU: 80 17 00 00 [00:37:28]Write to MH i2c: E2 08 00 26 92 80 17 00 00 00 00 00 00 38 [00:37:28]Write i2c OK [00:37:28]MH_I2C_Read... [00:37:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:29]Read from MH i2c: E2 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: E2 FD 00 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: E2 FD 00 26 92 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 04 [00:37:29]RAPDU: 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 C8 36 18 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 90 00 [00:37:29]wFMCommunicate OK [00:37:29]wFMCommunicate request_size=4 [00:37:29]MH_SAM_APDU [00:37:29]CAPDU: 80 17 00 00 [00:37:29]Write to MH i2c: E2 08 00 27 92 80 17 00 00 00 00 00 00 39 [00:37:29]Write i2c OK [00:37:29]MH_I2C_Read... [00:37:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:29]Read from MH i2c: E2 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: E2 FD 00 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: E2 FD 00 27 92 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 4B [00:37:29]RAPDU: 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 90 00 [00:37:29]wFMCommunicate OK [00:37:29]wFMCommunicate request_size=4 [00:37:29]MH_SAM_APDU [00:37:29]CAPDU: 80 17 00 00 [00:37:29]Write to MH i2c: E2 08 00 28 92 80 17 00 00 00 00 00 00 3A [00:37:29]Write i2c OK [00:37:29]MH_I2C_Read... [00:37:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:29]Read from MH i2c: E2 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: E2 FD 00 [00:37:29]MH_I2C_Read... [00:37:29]Read from MH i2c: E2 FD 00 28 92 00 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 C6 [00:37:30]RAPDU: 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [00:37:30]wFMCommunicate OK [00:37:30]wFMCommunicate request_size=4 [00:37:30]MH_SAM_APDU [00:37:30]CAPDU: 80 17 00 00 [00:37:30]Write to MH i2c: E2 08 00 29 92 80 17 00 00 00 00 00 00 3B [00:37:30]Write i2c OK [00:37:30]MH_I2C_Read... [00:37:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 223! [00:37:30]Read from MH i2c: E2 [00:37:30]MH_I2C_Read... [00:37:30]Read from MH i2c: E2 E2 00 [00:37:30]MH_I2C_Read... [00:37:30]Read from MH i2c: E2 E2 00 29 92 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 [00:37:30]RAPDU: EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:37:30]wFMCommunicate OK [00:37:30]SAM_PROTO_GetFMData done [00:37:30]requested_item fm.sale_refund.total is exist - process it [00:37:30]requested_item fm.buy.total is exist - process it [00:37:30]requested_item shift.sale.total is exist - process it [00:37:30]SAM_PROTO_GetShiftData [00:37:30]wFMCommunicate request_size=4 [00:37:30]MH_SAM_APDU [00:37:30]CAPDU: 80 13 02 00 [00:37:30]Write to MH i2c: E2 08 00 2A 92 80 13 02 00 00 00 00 00 3A [00:37:30]Write i2c OK [00:37:30]MH_I2C_Read... [00:37:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:37:31]Read from MH i2c: E2 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 FD 00 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 FD 00 2A 92 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 AD [00:37:31]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:37:31]wFMCommunicate OK [00:37:31]wFMCommunicate request_size=4 [00:37:31]MH_SAM_APDU [00:37:31]CAPDU: 80 17 00 00 [00:37:31]Write to MH i2c: E2 08 00 2B 92 80 17 00 00 00 00 00 00 3D [00:37:31]Write i2c OK [00:37:31]MH_I2C_Read... [00:37:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:31]Read from MH i2c: E2 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 FD 00 [00:37:31]MH_I2C_Read... [00:37:31]Read from MH i2c: E2 FD 00 2B 92 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 45 [00:37:31]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:37:31]wFMCommunicate OK [00:37:31]wFMCommunicate request_size=4 [00:37:31]MH_SAM_APDU [00:37:31]CAPDU: 80 17 00 00 [00:37:31]Write to MH i2c: E2 08 00 2C 92 80 17 00 00 00 00 00 00 3E [00:37:31]Write i2c OK [00:37:31]MH_I2C_Read... [00:37:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 FD 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 FD 00 2C 92 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 10 [00:37:32]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:37:32]wFMCommunicate OK [00:37:32]wFMCommunicate request_size=4 [00:37:32]MH_SAM_APDU [00:37:32]CAPDU: 80 17 00 00 [00:37:32]Write to MH i2c: E2 08 00 2D 92 80 17 00 00 00 00 00 00 3F [00:37:32]Write i2c OK [00:37:32]MH_I2C_Read... [00:37:32]OFD Sender: No OFD packet to send [00:37:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 FD 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 FD 00 2D 92 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 B1 [00:37:32]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:37:32]wFMCommunicate OK [00:37:32]wFMCommunicate request_size=4 [00:37:32]MH_SAM_APDU [00:37:32]CAPDU: 80 17 00 00 [00:37:32]Write to MH i2c: E2 08 00 2E 92 80 17 00 00 00 00 00 00 40 [00:37:32]Write i2c OK [00:37:32]MH_I2C_Read... [00:37:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:37:32]Read from MH i2c: E2 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 BD 00 [00:37:32]MH_I2C_Read... [00:37:32]Read from MH i2c: E2 BD 00 2E 92 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 26 [00:37:33]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:37:33]wFMCommunicate OK [00:37:33]SAM_PROTO_GetShiftData done [00:37:33]requested_item shift.sale.total_cash is exist - process it [00:37:33]requested_item shift.sale_refund.total is exist - process it [00:37:33]requested_item shift.sale_refund.total_cash is exist - process it [00:37:33]requested_item shift.buy.total is exist - process it [00:37:33]requested_item shift.buy.total_cash is exist - process it [00:37:33]produce_requested_data done [00:37:33]produce_requested_data return {"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.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:37:33]process_action_free get_value [00:37:33]json_value_free [00:37:33]json_value_free done [00:37:33]process_json_proto returns [00:37:33]Send response to host [00:37:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":158789014.28,"fm.sale_refund.total":1793064.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:37:33]free response buf [00:37:33]execute_script done [00:37:33]execute_script returns [00:37:33]free content buf [00:37:33]Sock 6.Close socket [00:37:33]Sock 6.Thread stoped [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:38]accept exits with 5 [00:40:38]New connection [00:40:38]New thread 3066920292 created [00:40:38]Thread 3066776932 joined [00:40:38]Waiting for new connection... [00:40:38] Sock 5.Parse request [00:40:38]Sock 5.Check first char [00:40:38]Sock 5.First char is OK [00:40:38]request: POST /json_proto HTTP/1.0 [00:40:38]Method: POST [00:40:38]URL: /json_proto [00:40:38]Method is POST - this is cgi request [00:40:38]url: /json_proto [00:40:38]query_string will be loaded in cgi processing [00:40:38]execute_cgi json_proto POST (null) [00:40:38]execute_cgi path=json_proto method=POST [00:40:38]POST find Content-Length [00:40:38]Host: 172.17.53.195:8080 [00:40:38]Content-Length: 679 [00:40:38]Content-Type: application/json [00:40:38] [00:40:38]POST finish read [00:40:38]Found Content-Length = 679 [00:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:38]execute_script... [00:40:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220819", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.470, "sum" : 999.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 999.00, "payments": [ { "type": 0, "sum" : 999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:38]POST & json_proto [00:40:38]process_json_proto [00:40:38]json parsed OK: [00:40:38]protocol is kg_v1.0 [00:40:38]action value=close_receipt [00:40:38]process_action close_receipt [00:40:38]cmd_close_receipt [00:40:38]MH_GetDate [00:40:38]Write to MH i2c: F0 00 00 2F 92 B0 [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: F0 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: F0 09 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: F0 09 00 2F 92 00 9B F4 16 67 21 48 4A 65 DD [00:40:38]GetLastDocTimeStamp 1729557463 [00:40:38]current date 1729557659 [00:40:38]FM_GetShiftState [00:40:38]SAM_PROTO_GetShiftState [00:40:38]wFMCommunicate request_size=4 [00:40:38]MH_SAM_APDU [00:40:38]CAPDU: 80 13 01 00 [00:40:38]Write to MH i2c: E2 08 00 30 92 80 13 01 00 00 00 00 00 3F [00:40:38]Write i2c OK [00:40:38]MH_I2C_Read... [00:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:38]Read from MH i2c: E2 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 0E 00 [00:40:38]MH_I2C_Read... [00:40:38]Read from MH i2c: E2 0E 00 30 92 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 92 [00:40:38]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:40:38]wFMCommunicate OK [00:40:38]SAM_PROTO_GetShiftState done [00:40:38]FM_GetShiftState done [00:40:38]opened in 1729557463 [00:40:38]opened+sec_in_day 1729643863 [00:40:38]quantity*price = 99947 [00:40:38]sum+1 = 99948 [00:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 999.00 Внесено: 1000.00 СДАЧА: 1.00 НСП 1% : 8.84 НДС 12% : 106.14 Наличными: 999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 1 22.10.2024 00:40 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166246 ФПД: 113754146428918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166246&fm=113754146428918&tin=02508201610067®Number=0000000000091764&sum=99900 [00:40:39]StoreToDocumentArchive [00:40:39]shift 536 fd 166246 [00:40:39]save to /storage/0536/doc_00166246 [00:40:39]save last doc name /storage/0536/doc_00166246 to /storage/kkm_last_doc_name [00:40:39]save OK [00:40:39]Clear old archive folders... [00:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:40:39]tlvbuf is 019A5F70 [00:40:39]SAM_PROTO_ClearQueue [00:40:39]wFMCommunicate request_size=4 [00:40:39]MH_SAM_APDU [00:40:39]CAPDU: 80 09 00 00 [00:40:39]Write to MH i2c: E2 08 00 3D 92 80 09 00 00 00 00 00 00 41 [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:39]Read from MH i2c: E2 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 3D 92 00 90 00 43 [00:40:39]RAPDU: 90 00 [00:40:39]wFMCommunicate OK [00:40:39]SAM_PROTO_ClearQueue done [00:40:39]KKMCreateOFDPacket [00:40:39]OFDProtocolAddRootSTLVToBuf [00:40:39]FM_MakeSignedData [00:40:39]FM_MakeSignedData [00:40:39]SAM_PROTO_SignData [00:40:39]wFMCommunicate request_size=4 [00:40:39]MH_SAM_APDU [00:40:39]CAPDU: 80 0D 01 02 [00:40:39]Write to MH i2c: E2 08 00 3E 92 80 0D 01 02 00 00 00 00 49 [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:39]Read from MH i2c: E2 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 3E 92 00 90 00 44 [00:40:39]RAPDU: 90 00 [00:40:39]wFMCommunicate OK [00:40:39]wFMCommunicate request_size=255 [00:40:39]MH_SAM_APDU [00:40:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9B F4 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 89 02 00 35 04 06 00 67 [00:40:39]Write to MH i2c: E2 02 01 3F 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9B F4 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 89 02 00 35 04 06 00 67 00 00 55 [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:39]Read from MH i2c: E2 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 3F 92 00 90 00 45 [00:40:39]RAPDU: 90 00 [00:40:39]wFMCommunicate OK [00:40:39]wFMCommunicate request_size=10 [00:40:39]MH_SAM_APDU [00:40:39]CAPDU: 80 0D 02 02 05 75 73 7D 57 F6 [00:40:39]Write to MH i2c: E2 0D 00 40 92 80 0D 02 02 05 00 75 73 7D 57 F6 00 00 08 [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:39]Read from MH i2c: E2 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 03 00 40 92 00 90 00 46 [00:40:39]RAPDU: 90 00 [00:40:39]wFMCommunicate OK [00:40:39]wFMCommunicate request_size=4 [00:40:39]MH_SAM_APDU [00:40:39]CAPDU: 80 0D 03 02 [00:40:39]Write to MH i2c: E2 08 00 41 92 80 0D 03 02 00 00 00 00 4E [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:39]Read from MH i2c: E2 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 0B 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 0B 00 41 92 00 4C 90 D6 77 BB 6B D6 C0 90 00 34 [00:40:39]RAPDU: 4C 90 D6 77 BB 6B D6 C0 90 00 [00:40:39]wFMCommunicate OK [00:40:39]SAM_PROTO_SignData done [00:40:39]FM_MakeSignedData done [00:40:39]CreateOFDProtocolMessage [00:40:39]wFMCommunicate request_size=4 [00:40:39]MH_SAM_APDU [00:40:39]CAPDU: 80 11 00 00 [00:40:39]Write to MH i2c: E2 08 00 42 92 80 11 00 00 00 00 00 00 4E [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:39]Read from MH i2c: E2 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 17 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: E2 17 00 42 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A6 [00:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:40:39]wFMCommunicate OK [00:40:39]CreateOFDProtocolMessage done [00:40:39]OFDSenderStorePacket 166246 [00:40:39]StoreOFDPacket docnum=166246 [00:40:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 9D 07 01 3A 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9B F4 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 89 02 00 35 04 06 00 67 75 73 7D 57 F6 4C 90 D6 77 BB 6B D6 C0 [00:40:39]CheckFolder [00:40:39]dirname=/storage/ofd_packets [00:40:39]CheckFolder done [00:40:39]ProducePacketName [00:40:39]name=ofd_packets/00166246 [00:40:39]NVStorageSaveData ofd_packets/00166246 [00:40:39]File name is /storage/ofd_packets/00166246 [00:40:39]Write 301 bytes [00:40:39]NVStorageSaveData done [00:40:39]OFDSenderStorePacket done [00:40:39]KKMCreateOFDPacket done [00:40:39]NVStorageSaveData kkm_last_timestamp [00:40:39]File name is /storage/kkm_last_timestamp [00:40:39]Write 4 bytes [00:40:39]NVStorageSaveData done [00:40:39]ExternCall_PrintAddStr [00:40:39]wPrintStart [00:40:39]Write to MH i2c: 01 00 00 43 92 D5 [00:40:39]Write i2c OK [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: 01 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: 01 07 00 [00:40:39]MH_I2C_Read... [00:40:39]Read from MH i2c: 01 07 00 43 92 00 00 00 00 00 FF 0F EA [00:40:39]RasterBufferAndPrint [00:40:39]line Счет N : (1)220819 [00:40:39]line ИНН: 02508201610067 [00:40:39]line Контрольно-Кассовый Чек [00:40:39]line ПРОДАЖА [00:40:39]line ТРК (МРК, ГНК) : 44 [00:40:39]line Товар: 2710124500 [00:40:39]line Аи-95-К-5 [00:40:39]line 13.470 * 74.20 [00:40:39]line = 999.47 [00:40:39]line НДС 12% НСП 1% [00:40:39]line > о реализуемом товаре [00:40:39]line ОКРУГЛЕНИЕ: -0.47 [00:40:39]line ИТОГО: 999.00 [00:40:39]line Внесено: 1000.00 [00:40:39]line СДАЧА: 1.00 [00:40:39]line НСП 1% : 8.84 [00:40:39]line НДС 12% : 106.14 [00:40:39]line Наличными: 999.00 [00:40:39]line Безнал.: 0.00 [00:40:39]line Место: АЗС № 161 "Партнер Нефть" [00:40:39]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:40:39]line СНО: Общий режим [00:40:39]line Чек 1 22.10.2024 00:40 [00:40:39]line Смена: 536 ФФД: 1.0 [00:40:39]line ЗНМ: 0300000104 [00:40:39]line РНМ: 0000000000091764 [00:40:39]line Версия ККМ: 001 [00:40:39]line ФМ: 0000000000871759 [00:40:39]line ФД: 166246 [00:40:39]line ФПД: 113754146428918 [00:40:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004059&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166246&fm=113754146428918&tin=02508201610067®Number=0000000000091764&sum=99900 [00:40:40]OFD Sender: Processing packet 166246 [packets to send 48, broken 47] [00:40:40]ProducePacketName [00:40:40]name=ofd_packets/00166246 [00:40:40]OFD Sender: To server: pG, [00:40:40]CommunicateWithHost lk.salyk.kg:30040 [00:40:40]ConnectInit lk.salyk.kg [00:40:40]written 0, free lines is 4095 [00:40:40]Connected sock=7 [00:40:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9D 9D 07 01 3A 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 9E 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 29 00 00 00 00 07 04 06 00 3C 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 9B F4 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 89 02 00 35 04 06 00 67 75 73 7D 57 F6 4C 90 D6 77 BB 6B D6 C0 [00:40:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 42 84 47 00 AD 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 66 89 02 00 F4 03 04 00 08 9B 16 67 B6 04 01 00 00 B2 B8 B5 92 60 24 C5 B0 [00:40:40]CommunicateWithHost err = 0 [00:40:40]CheckOFDResponse [00:40:40]1017 (14) - 77093643461234 [00:40:40]1041 (16) - 0000000000871759 [00:40:40]1040 (4) - 166246 [00:40:40]1012 (4) - 21.10.2024 18:18 [00:40:40]1206 (1) - 0 [00:40:40]OFD Sender: Remove packet 166246 [00:40:40]ProducePacketName [00:40:40]name=ofd_packets/00166246 [00:40:40]NVStorageDeleteData [00:40:40]Write to MH i2c: 01 00 00 6E 92 00 [00:40:40]Write i2c OK [00:40:40]MH_I2C_Read... [00:40:40]Read from MH i2c: 01 [00:40:40]MH_I2C_Read... [00:40:40]Read from MH i2c: 01 07 00 [00:40:40]MH_I2C_Read... [00:40:40]Read from MH i2c: 01 07 00 6E 92 00 00 00 00 00 CB 0C DE [00:40:40]RasterBufferAndPrint [00:40:40]line [00:40:40]line [00:40:40]line [00:40:40]line [00:40:40]line [00:40:40]written 0, free lines is 3282 [00:40:40]MH_Cut [00:40:40]Write to MH i2c: D1 01 00 75 92 01 D9 [00:40:40]Write i2c OK [00:40:40]MH_I2C_Read... [00:40:40]Read from MH i2c: D1 [00:40:40]MH_I2C_Read... [00:40:40]Read from MH i2c: D1 01 00 [00:40:40]MH_I2C_Read... [00:40:40]Read from MH i2c: D1 01 00 75 92 00 D8 [00:40:40]Write to MH i2c: 01 00 00 76 92 08 [00:40:40]Write i2c OK [00:40:40]MH_I2C_Read... [00:40:41]OFD Sender: No OFD packet to send [00:40:41]*** Cut start [00:40:41]*** Partial cut [00:40:41]*** CUTSNS_PIN = 1 [00:40:41]*** CUTSNS_PIN = 0 [00:40:41]*** Brake cut motor [00:40:42]Read from MH i2c: 01 [00:40:42]MH_I2C_Read... [00:40:42]*** Stop cut motor [00:40:42]*** Cut end [00:40:42]Read from MH i2c: 01 07 00 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: 01 07 00 76 92 00 00 00 00 00 FF 0F 1D [00:40:42]process_action close_receipt done [00:40:42]requested_data is exist [00:40:42]produce_requested_data [00:40:42]requested_item fm.sn is exist - process it [00:40:42]wFMCommunicate request_size=4 [00:40:42]MH_SAM_APDU [00:40:42]CAPDU: 80 11 00 00 [00:40:42]Write to MH i2c: E2 08 00 77 92 80 11 00 00 00 00 00 00 83 [00:40:42]Write i2c OK [00:40:42]MH_I2C_Read... [00:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:42]Read from MH i2c: E2 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: E2 17 00 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: E2 17 00 77 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 DB [00:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:40:42]wFMCommunicate OK [00:40:42]requested_item fd.num is exist - process it [00:40:42]SAM_PROTO_GetFieldsCounters [00:40:42]wFMCommunicate request_size=4 [00:40:42]MH_SAM_APDU [00:40:42]CAPDU: 80 13 00 00 [00:40:42]Write to MH i2c: E2 08 00 78 92 80 13 00 00 00 00 00 00 86 [00:40:42]Write i2c OK [00:40:42]MH_I2C_Read... [00:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:42]Read from MH i2c: E2 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: E2 62 00 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: E2 62 00 78 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [00:40:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 66 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:42]wFMCommunicate OK [00:40:42]SAM_PROTO_GetFieldsCounters done [00:40:42]requested_item shift.num is exist - process it [00:40:42]requested_item shift.opened is exist - process it [00:40:42]req_shift_opened [00:40:42]FM_GetShiftState [00:40:42]SAM_PROTO_GetShiftState [00:40:42]wFMCommunicate request_size=4 [00:40:42]MH_SAM_APDU [00:40:42]CAPDU: 80 13 01 00 [00:40:42]Write to MH i2c: E2 08 00 79 92 80 13 01 00 00 00 00 00 88 [00:40:42]Write i2c OK [00:40:42]MH_I2C_Read... [00:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:42]Read from MH i2c: E2 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: E2 0E 00 [00:40:42]MH_I2C_Read... [00:40:42]Read from MH i2c: E2 0E 00 79 92 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DB [00:40:42]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:40:42]wFMCommunicate OK [00:40:42]SAM_PROTO_GetShiftState done [00:40:42]FM_GetShiftState done [00:40:42]req_shift_opened done [00:40:42]requested_item shift.open_date is exist - process it [00:40:42]req_shift_open_date [00:40:42]req_shift_open_date done [00:40:42]produce_requested_data done [00:40:42]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166246,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:40:42]process_action_free close_receipt [00:40:42]json_value_free [00:40:42]json_value_free done [00:40:42]process_json_proto returns [00:40:42]Send response to host [00:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166246,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:40:42]free response buf [00:40:42]execute_script done [00:40:42]execute_script returns [00:40:42]free content buf [00:40:42]Sock 5.Close socket [00:40:42]Sock 5.Thread stoped [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]accept exits with 6 [00:44:41]New connection [00:44:41]New thread 3066776932 created [00:44:41]Thread 3066920292 joined [00:44:41]Waiting for new connection... [00:44:41] Sock 6.Parse request [00:44:41]Sock 6.Check first char [00:44:41]Sock 6.First char is OK [00:44:41]request: POST /json_proto HTTP/1.0 [00:44:41]Method: POST [00:44:41]URL: /json_proto [00:44:41]Method is POST - this is cgi request [00:44:41]url: /json_proto [00:44:41]query_string will be loaded in cgi processing [00:44:41]execute_cgi json_proto POST (null) [00:44:41]execute_cgi path=json_proto method=POST [00:44:41]POST find Content-Length [00:44:41]Host: 172.17.53.195:8080 [00:44:41]Content-Length: 984 [00:44:41]Content-Type: application/json [00:44:41] [00:44:41]POST finish read [00:44:41]Found Content-Length = 984 [00:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 265.960, "sum" : 20000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 265.96 \u0441\u043E\u043C", "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:41]execute_script... [00:44: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)220818", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 265.960, "sum" : 20000.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 265.96 \u0441\u043E\u043C", "deposit" : 20000.00, "total" : 20000.00, "payments": [ { "type": 0, "sum" : 20000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:44:41]POST & json_proto [00:44:41]process_json_proto [00:44:41]json parsed OK: [00:44:41]protocol is kg_v1.0 [00:44:41]action value=close_receipt [00:44:41]process_action close_receipt [00:44:41]cmd_close_receipt [00:44:41]MH_GetDate [00:44:41]Write to MH i2c: F0 00 00 7A 92 FB [00:44:41]Write i2c OK [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: F0 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: F0 09 00 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: F0 09 00 7A 92 00 8E F5 16 67 21 48 4A 65 1C [00:44:41]GetLastDocTimeStamp 1729557659 [00:44:41]current date 1729557902 [00:44:41]FM_GetShiftState [00:44:41]SAM_PROTO_GetShiftState [00:44:41]wFMCommunicate request_size=4 [00:44:41]MH_SAM_APDU [00:44:41]CAPDU: 80 13 01 00 [00:44:41]Write to MH i2c: E2 08 00 7B 92 80 13 01 00 00 00 00 00 8A [00:44:41]Write i2c OK [00:44:41]MH_I2C_Read... [00:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:41]Read from MH i2c: E2 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: E2 0E 00 [00:44:41]MH_I2C_Read... [00:44:41]Read from MH i2c: E2 0E 00 7B 92 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 DD [00:44:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:44:41]wFMCommunicate OK [00:44:41]SAM_PROTO_GetShiftState done [00:44:41]FM_GetShiftState done [00:44:41]opened in 1729557463 [00:44:41]opened+sec_in_day 1729643863 [00:44:41]quantity*price = 2000019 [00:44:41]sum+1 = 2000020 [00:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 20000.00 Внесено: 20000.00 СДАЧА: 0.00 НСП 1% : 176.99 НДС 12% : 2123.91 Наличными: 20000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 2 22.10.2024 00:45 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Дисконтная программа ДТ номер 161 сэкономлено 265.96 сом ФМ: 0000000000871759 ФД: 166247 ФПД: 45520273008122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004502&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166247&fm=45520273008122&tin=02508201610067®Number=0000000000091764&sum=2000000 [00:44:42]StoreToDocumentArchive [00:44:42]shift 536 fd 166247 [00:44:42]save to /storage/0536/doc_00166247 [00:44:42]save last doc name /storage/0536/doc_00166247 to /storage/kkm_last_doc_name [00:44:42]save OK [00:44:42]Clear old archive folders... [00:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:44:42]tlvbuf is 019A6410 [00:44:42]SAM_PROTO_ClearQueue [00:44:42]wFMCommunicate request_size=4 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 09 00 00 [00:44:42]Write to MH i2c: E2 08 00 88 92 80 09 00 00 00 00 00 00 8C [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 88 92 00 90 00 8E [00:44:42]RAPDU: 90 00 [00:44:42]wFMCommunicate OK [00:44:42]SAM_PROTO_ClearQueue done [00:44:42]KKMCreateOFDPacket [00:44:42]OFDProtocolAddRootSTLVToBuf [00:44:42]FM_MakeSignedData [00:44:42]FM_MakeSignedData [00:44:42]SAM_PROTO_SignData [00:44:42]wFMCommunicate request_size=4 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 0D 01 02 [00:44:42]Write to MH i2c: E2 08 00 89 92 80 0D 01 02 00 00 00 00 94 [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 89 92 00 90 00 8F [00:44:42]RAPDU: 90 00 [00:44:42]wFMCommunicate OK [00:44:42]wFMCommunicate request_size=255 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 0E 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 93 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 8E F5 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 89 02 00 35 04 06 00 29 66 83 B3 [00:44:42]Write to MH i2c: E2 02 01 8A 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 0E 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 93 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 8E F5 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 89 02 00 35 04 06 00 29 66 83 B3 00 00 0A [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 8A 92 00 90 00 90 [00:44:42]RAPDU: 90 00 [00:44:42]wFMCommunicate OK [00:44:42]wFMCommunicate request_size=7 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 0D 02 02 02 E5 FA [00:44:42]Write to MH i2c: E2 0A 00 8B 92 80 0D 02 02 02 00 E5 FA 00 00 7A [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 03 00 8B 92 00 90 00 91 [00:44:42]RAPDU: 90 00 [00:44:42]wFMCommunicate OK [00:44:42]wFMCommunicate request_size=4 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 0D 03 02 [00:44:42]Write to MH i2c: E2 08 00 8C 92 80 0D 03 02 00 00 00 00 99 [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 0B 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 0B 00 8C 92 00 F0 9A EA A4 53 60 64 A2 90 00 6B [00:44:42]RAPDU: F0 9A EA A4 53 60 64 A2 90 00 [00:44:42]wFMCommunicate OK [00:44:42]SAM_PROTO_SignData done [00:44:42]FM_MakeSignedData done [00:44:42]CreateOFDProtocolMessage [00:44:42]wFMCommunicate request_size=4 [00:44:42]MH_SAM_APDU [00:44:42]CAPDU: 80 11 00 00 [00:44:42]Write to MH i2c: E2 08 00 8D 92 80 11 00 00 00 00 00 00 99 [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:42]Read from MH i2c: E2 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 17 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: E2 17 00 8D 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F1 [00:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:44:42]wFMCommunicate OK [00:44:42]CreateOFDProtocolMessage done [00:44:42]OFDSenderStorePacket 166247 [00:44:42]StoreOFDPacket docnum=166247 [00:44:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 98 04 01 B8 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 0E 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 93 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 8E F5 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 89 02 00 35 04 06 00 29 66 83 B3 E5 FA F0 9A EA A4 53 60 64 A2 [00:44:42]CheckFolder [00:44:42]dirname=/storage/ofd_packets [00:44:42]CheckFolder done [00:44:42]ProducePacketName [00:44:42]name=ofd_packets/00166247 [00:44:42]NVStorageSaveData ofd_packets/00166247 [00:44:42]File name is /storage/ofd_packets/00166247 [00:44:42]Write 298 bytes [00:44:42]NVStorageSaveData done [00:44:42]OFDSenderStorePacket done [00:44:42]KKMCreateOFDPacket done [00:44:42]NVStorageSaveData kkm_last_timestamp [00:44:42]File name is /storage/kkm_last_timestamp [00:44:42]Write 4 bytes [00:44:42]NVStorageSaveData done [00:44:42]ExternCall_PrintAddStr [00:44:42]wPrintStart [00:44:42]Write to MH i2c: 01 00 00 8E 92 20 [00:44:42]Write i2c OK [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: 01 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: 01 07 00 [00:44:42]MH_I2C_Read... [00:44:42]Read from MH i2c: 01 07 00 8E 92 00 00 00 00 00 FF 0F 35 [00:44:42]RasterBufferAndPrint [00:44:42]line Счет N : (1)220818 [00:44:42]line ИНН: 02508201610067 [00:44:42]line Контрольно-Кассовый Чек [00:44:42]line ПРОДАЖА [00:44:42]line ТРК (МРК, ГНК) : 21 [00:44:42]line Товар: 2710194210 [00:44:42]line ДТ-К-5 [00:44:42]line 265.960 * 75.20 [00:44:42]line = 20000.19 [00:44:42]line НДС 12% НСП 1% [00:44:42]line > о реализуемом товаре [00:44:42]line ОКРУГЛЕНИЕ: -0.19 [00:44:42]line ИТОГО: 20000.00 [00:44:42]line Внесено: 20000.00 [00:44:42]line СДАЧА: 0.00 [00:44:42]line НСП 1% : 176.99 [00:44:42]line НДС 12% : 2123.91 [00:44:42]line Наличными: 20000.00 [00:44:42]line Безнал.: 0.00 [00:44:42]line Место: АЗС № 161 "Партнер Нефть" [00:44:42]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:44:42]line СНО: Общий режим [00:44:42]line Чек 2 22.10.2024 00:45 [00:44:42]line Смена: 536 ФФД: 1.0 [00:44:42]line ЗНМ: 0300000104 [00:44:42]line РНМ: 0000000000091764 [00:44:42]line Версия ККМ: 001 [00:44:42]line [00:44:42]line Дисконтная программа [00:44:42]line ДТ [00:44:42]line номер 161 [00:44:42]line сэкономлено 265.96 сом [00:44:42]line ФМ: 0000000000871759 [00:44:42]line ФД: 166247 [00:44:42]line ФПД: 45520273008122 [00:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T004502&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166247&fm=45520273008122&tin=02508201610067®Number=0000000000091764&sum=2000000 [00:44:43]OFD Sender: Processing packet 166247 [packets to send 48, broken 47] [00:44:43]ProducePacketName [00:44:43]name=ofd_packets/00166247 [00:44:43]OFD Sender: To server: pG, [00:44:43]CommunicateWithHost lk.salyk.kg:30040 [00:44:43]ConnectInit lk.salyk.kg [00:44:43]written 0, free lines is 4095 [00:44:43]Connected sock=7 [00:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 25 98 04 01 B8 3C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E8 0E 04 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 93 84 1E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 1E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 45 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 3D 03 00 00 00 07 04 06 00 80 84 1E 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 8E F5 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 89 02 00 35 04 06 00 29 66 83 B3 E5 FA F0 9A EA A4 53 60 64 A2 [00:44:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 05 BD 47 00 F9 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 67 89 02 00 F4 03 04 00 FB 9B 16 67 B6 04 01 00 00 C1 44 87 7E 87 CC 79 C8 [00:44:43]CommunicateWithHost err = 0 [00:44:43]CheckOFDResponse [00:44:43]1017 (14) - 77093643461234 [00:44:43]1041 (16) - 0000000000871759 [00:44:43]1040 (4) - 166247 [00:44:43]1012 (4) - 21.10.2024 18:22 [00:44:43]1206 (1) - 0 [00:44:43]OFD Sender: Remove packet 166247 [00:44:43]ProducePacketName [00:44:43]name=ofd_packets/00166247 [00:44:43]NVStorageDeleteData [00:44:43]Write to MH i2c: 01 00 00 BE 92 50 [00:44:43]Write i2c OK [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: 01 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: 01 07 00 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: 01 07 00 BE 92 00 00 00 00 00 61 0C C4 [00:44:43]RasterBufferAndPrint [00:44:43]line [00:44:43]line [00:44:43]line [00:44:43]line [00:44:43]line [00:44:43]written 0, free lines is 3180 [00:44:43]MH_Cut [00:44:43]Write to MH i2c: D1 01 00 C5 92 01 29 [00:44:43]Write i2c OK [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: D1 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: D1 01 00 [00:44:43]MH_I2C_Read... [00:44:43]Read from MH i2c: D1 01 00 C5 92 00 28 [00:44:43]Write to MH i2c: 01 00 00 C6 92 58 [00:44:43]Write i2c OK [00:44:43]MH_I2C_Read... [00:44:43]OFD Sender: No OFD packet to send [00:44:44]*** Cut start [00:44:44]*** Partial cut [00:44:44]*** CUTSNS_PIN = 1 [00:44:44]*** CUTSNS_PIN = 0 [00:44:44]*** Brake cut motor [00:44:45]Read from MH i2c: 01 [00:44:45]MH_I2C_Read... [00:44:45]*** Stop cut motor [00:44:45]*** Cut end [00:44:45]Read from MH i2c: 01 07 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: 01 07 00 C6 92 00 00 00 00 00 FF 0F 6D [00:44:45]process_action close_receipt done [00:44:45]requested_data is exist [00:44:45]produce_requested_data [00:44:45]requested_item fm.sn is exist - process it [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 11 00 00 [00:44:45]Write to MH i2c: E2 08 00 C7 92 80 11 00 00 00 00 00 00 D3 [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 17 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 17 00 C7 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 2B [00:44:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:44:45]wFMCommunicate OK [00:44:45]requested_item fd.num is exist - process it [00:44:45]SAM_PROTO_GetFieldsCounters [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 13 00 00 [00:44:45]Write to MH i2c: E2 08 00 C8 92 80 13 00 00 00 00 00 00 D6 [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 62 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 62 00 C8 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [00:44:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 67 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:44:45]wFMCommunicate OK [00:44:45]SAM_PROTO_GetFieldsCounters done [00:44:45]requested_item shift.num is exist - process it [00:44:45]requested_item shift.opened is exist - process it [00:44:45]req_shift_opened [00:44:45]FM_GetShiftState [00:44:45]SAM_PROTO_GetShiftState [00:44:45]wFMCommunicate request_size=4 [00:44:45]MH_SAM_APDU [00:44:45]CAPDU: 80 13 01 00 [00:44:45]Write to MH i2c: E2 08 00 C9 92 80 13 01 00 00 00 00 00 D8 [00:44:45]Write i2c OK [00:44:45]MH_I2C_Read... [00:44:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:44:45]Read from MH i2c: E2 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 0E 00 [00:44:45]MH_I2C_Read... [00:44:45]Read from MH i2c: E2 0E 00 C9 92 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2B [00:44:45]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:44:45]wFMCommunicate OK [00:44:45]SAM_PROTO_GetShiftState done [00:44:45]FM_GetShiftState done [00:44:45]req_shift_opened done [00:44:45]requested_item shift.open_date is exist - process it [00:44:45]req_shift_open_date [00:44:45]req_shift_open_date done [00:44:45]produce_requested_data done [00:44:45]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166247,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:44:45]process_action_free close_receipt [00:44:45]json_value_free [00:44:45]json_value_free done [00:44:45]process_json_proto returns [00:44:45]Send response to host [00:44:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166247,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:44:45]free response buf [00:44:45]execute_script done [00:44:45]execute_script returns [00:44:45]free content buf [00:44:45]Sock 6.Close socket [00:44:45]Sock 6.Thread stoped [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:04]OFD Sender: No OFD packet to send [00:49:09]OFD Sender: No OFD packet to send [00:49:14]OFD Sender: No OFD packet to send [00:49:19]OFD Sender: No OFD packet to send [00:49:24]OFD Sender: No OFD packet to send [00:49:29]OFD Sender: No OFD packet to send [00:49:34]OFD Sender: No OFD packet to send [00:49:39]OFD Sender: No OFD packet to send [00:49:44]OFD Sender: No OFD packet to send [00:49:49]OFD Sender: No OFD packet to send [00:49:54]OFD Sender: No OFD packet to send [00:49:59]OFD Sender: No OFD packet to send [00:50:04]OFD Sender: No OFD packet to send [00:50:09]OFD Sender: No OFD packet to send [00:50:13]accept exits with 5 [00:50:13]New connection [00:50:13]New thread 3066920292 created [00:50:13]Thread 3066776932 joined [00:50:13]Waiting for new connection... [00:50:13] Sock 5.Parse request [00:50:13]Sock 5.Check first char [00:50:13]Sock 5.First char is OK [00:50:13]request: POST /json_proto HTTP/1.0 [00:50:13]Method: POST [00:50:13]URL: /json_proto [00:50:13]Method is POST - this is cgi request [00:50:13]url: /json_proto [00:50:13]query_string will be loaded in cgi processing [00:50:13]execute_cgi json_proto POST (null) [00:50:13]execute_cgi path=json_proto method=POST [00:50:13]POST find Content-Length [00:50:13]Host: 172.17.53.195:8080 [00:50:13]Content-Length: 677 [00:50:13]Content-Type: application/json [00:50:13] [00:50:13]POST finish read [00:50:13]Found Content-Length = 677 [00:50:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:13]execute_script... [00:50: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)220820", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:13]POST & json_proto [00:50:13]process_json_proto [00:50:13]json parsed OK: [00:50:13]protocol is kg_v1.0 [00:50:13]action value=close_receipt [00:50:13]process_action close_receipt [00:50:13]cmd_close_receipt [00:50:13]MH_GetDate [00:50:13]Write to MH i2c: F0 00 00 CA 92 4B [00:50:13]Write i2c OK [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: F0 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: F0 09 00 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: F0 09 00 CA 92 00 DA F6 16 67 21 48 4A 65 B9 [00:50:13]GetLastDocTimeStamp 1729557902 [00:50:13]current date 1729558234 [00:50:13]FM_GetShiftState [00:50:13]SAM_PROTO_GetShiftState [00:50:13]wFMCommunicate request_size=4 [00:50:13]MH_SAM_APDU [00:50:13]CAPDU: 80 13 01 00 [00:50:13]Write to MH i2c: E2 08 00 CB 92 80 13 01 00 00 00 00 00 DA [00:50:13]Write i2c OK [00:50:13]MH_I2C_Read... [00:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:13]Read from MH i2c: E2 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: E2 0E 00 [00:50:13]MH_I2C_Read... [00:50:13]Read from MH i2c: E2 0E 00 CB 92 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 2D [00:50:13]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:50:13]wFMCommunicate OK [00:50:13]SAM_PROTO_GetShiftState done [00:50:13]FM_GetShiftState done [00:50:13]opened in 1729557463 [00:50:13]opened+sec_in_day 1729643863 [00:50:13]quantity*price = 50041 [00:50:13]sum+1 = 50042 [00:50:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 3 22.10.2024 00:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166248 ФПД: 45057736399504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005034&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166248&fm=45057736399504&tin=02508201610067®Number=0000000000091764&sum=50000 [00:50:14]StoreToDocumentArchive [00:50:14]shift 536 fd 166248 [00:50:14]save to /storage/0536/doc_00166248 [00:50:14]save last doc name /storage/0536/doc_00166248 to /storage/kkm_last_doc_name [00:50:14]save OK [00:50:14]Clear old archive folders... [00:50:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:50:14]tlvbuf is 0163FB00 [00:50:14]SAM_PROTO_ClearQueue [00:50:14]wFMCommunicate request_size=4 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 09 00 00 [00:50:14]Write to MH i2c: E2 08 00 D8 92 80 09 00 00 00 00 00 00 DC [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:14]OFD Sender: No OFD packet to send [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 D8 92 00 90 00 DE [00:50:14]RAPDU: 90 00 [00:50:14]wFMCommunicate OK [00:50:14]SAM_PROTO_ClearQueue done [00:50:14]KKMCreateOFDPacket [00:50:14]OFDProtocolAddRootSTLVToBuf [00:50:14]FM_MakeSignedData [00:50:14]FM_MakeSignedData [00:50:14]SAM_PROTO_SignData [00:50:14]wFMCommunicate request_size=4 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 0D 01 02 [00:50:14]Write to MH i2c: E2 08 00 D9 92 80 0D 01 02 00 00 00 00 E4 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 D9 92 00 90 00 DF [00:50:14]RAPDU: 90 00 [00:50:14]wFMCommunicate OK [00:50:14]wFMCommunicate request_size=255 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 DA F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 89 02 00 35 04 06 00 28 [00:50:14]Write to MH i2c: E2 02 01 DA 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 DA F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 89 02 00 35 04 06 00 28 00 00 FF [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 DA 92 00 90 00 E0 [00:50:14]RAPDU: 90 00 [00:50:14]wFMCommunicate OK [00:50:14]wFMCommunicate request_size=10 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 0D 02 02 05 FA D2 5F 5A 90 [00:50:14]Write to MH i2c: E2 0D 00 DB 92 80 0D 02 02 05 00 FA D2 5F 5A 90 00 00 06 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 03 00 DB 92 00 90 00 E1 [00:50:14]RAPDU: 90 00 [00:50:14]wFMCommunicate OK [00:50:14]wFMCommunicate request_size=4 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 0D 03 02 [00:50:14]Write to MH i2c: E2 08 00 DC 92 80 0D 03 02 00 00 00 00 E9 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 0B 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 0B 00 DC 92 00 06 7F 10 66 B7 07 FF BE 90 00 60 [00:50:14]RAPDU: 06 7F 10 66 B7 07 FF BE 90 00 [00:50:14]wFMCommunicate OK [00:50:14]SAM_PROTO_SignData done [00:50:14]FM_MakeSignedData done [00:50:14]CreateOFDProtocolMessage [00:50:14]wFMCommunicate request_size=4 [00:50:14]MH_SAM_APDU [00:50:14]CAPDU: 80 11 00 00 [00:50:14]Write to MH i2c: E2 08 00 DD 92 80 11 00 00 00 00 00 00 E9 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:14]Read from MH i2c: E2 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 17 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: E2 17 00 DD 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 41 [00:50:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:50:14]wFMCommunicate OK [00:50:14]CreateOFDProtocolMessage done [00:50:14]OFDSenderStorePacket 166248 [00:50:14]StoreOFDPacket docnum=166248 [00:50:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 54 07 01 F3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 DA F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 89 02 00 35 04 06 00 28 FA D2 5F 5A 90 06 7F 10 66 B7 07 FF BE [00:50:14]CheckFolder [00:50:14]dirname=/storage/ofd_packets [00:50:14]CheckFolder done [00:50:14]ProducePacketName [00:50:14]name=ofd_packets/00166248 [00:50:14]NVStorageSaveData ofd_packets/00166248 [00:50:14]File name is /storage/ofd_packets/00166248 [00:50:14]Write 301 bytes [00:50:14]NVStorageSaveData done [00:50:14]OFDSenderStorePacket done [00:50:14]KKMCreateOFDPacket done [00:50:14]NVStorageSaveData kkm_last_timestamp [00:50:14]File name is /storage/kkm_last_timestamp [00:50:14]Write 4 bytes [00:50:14]NVStorageSaveData done [00:50:14]ExternCall_PrintAddStr [00:50:14]wPrintStart [00:50:14]Write to MH i2c: 01 00 00 DE 92 70 [00:50:14]Write i2c OK [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: 01 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: 01 07 00 [00:50:14]MH_I2C_Read... [00:50:14]Read from MH i2c: 01 07 00 DE 92 00 00 00 00 00 FF 0F 85 [00:50:14]RasterBufferAndPrint [00:50:14]line Счет N : (1)220820 [00:50:14]line ИНН: 02508201610067 [00:50:14]line Контрольно-Кассовый Чек [00:50:14]line ПРОДАЖА [00:50:14]line ТРК (МРК, ГНК) : 43 [00:50:14]line Товар: 2710124130 [00:50:14]line Аи-92-К-5 [00:50:14]line 7.480 * 66.90 [00:50:14]line = 500.41 [00:50:14]line НДС 12% НСП 1% [00:50:14]line > о реализуемом товаре [00:50:14]line ОКРУГЛЕНИЕ: -0.41 [00:50:14]line ИТОГО: 500.00 [00:50:14]line Внесено: 500.00 [00:50:14]line СДАЧА: 0.00 [00:50:14]line НСП 1% : 4.43 [00:50:14]line НДС 12% : 53.14 [00:50:14]line Наличными: 500.00 [00:50:14]line Безнал.: 0.00 [00:50:14]line Место: АЗС № 161 "Партнер Нефть" [00:50:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:50:14]line СНО: Общий режим [00:50:14]line Чек 3 22.10.2024 00:50 [00:50:14]line Смена: 536 ФФД: 1.0 [00:50:14]line ЗНМ: 0300000104 [00:50:14]line РНМ: 0000000000091764 [00:50:14]line Версия ККМ: 001 [00:50:14]line ФМ: 0000000000871759 [00:50:14]line ФД: 166248 [00:50:14]line ФПД: 45057736399504 [00:50:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005034&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166248&fm=45057736399504&tin=02508201610067®Number=0000000000091764&sum=50000 [00:50:14]written 0, free lines is 4095 [00:50:14]OFD Sender: Processing packet 166248 [packets to send 48, broken 47] [00:50:14]ProducePacketName [00:50:14]name=ofd_packets/00166248 [00:50:15]OFD Sender: To server: pG, [00:50:15]CommunicateWithHost lk.salyk.kg:30040 [00:50:15]ConnectInit lk.salyk.kg [00:50:15]Connected sock=7 [00:50:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 20 54 07 01 F3 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 DA F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 89 02 00 35 04 06 00 28 FA D2 5F 5A 90 06 7F 10 66 B7 07 FF BE [00:50:15]Write to MH i2c: 01 00 00 09 93 9C [00:50:15]Write i2c OK [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: 01 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: 01 07 00 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: 01 07 00 09 93 00 00 00 00 00 C7 0C 76 [00:50:15]RasterBufferAndPrint [00:50:15]line [00:50:15]line [00:50:15]line [00:50:15]line [00:50:15]line [00:50:15]written 0, free lines is 3277 [00:50:15]MH_Cut [00:50:15]Write to MH i2c: D1 01 00 10 93 01 75 [00:50:15]Write i2c OK [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: D1 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: D1 01 00 [00:50:15]MH_I2C_Read... [00:50:15]Read from MH i2c: D1 01 00 10 93 00 74 [00:50:15]Write to MH i2c: 01 00 00 11 93 A4 [00:50:15]Write i2c OK [00:50:15]MH_I2C_Read... [00:50:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 81 06 47 00 90 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 68 89 02 00 F4 03 04 00 47 9D 16 67 B6 04 01 00 00 15 E9 CC DC AD E3 8A DF [00:50:15]CommunicateWithHost err = 0 [00:50:15]CheckOFDResponse [00:50:15]1017 (14) - 77093643461234 [00:50:15]1041 (16) - 0000000000871759 [00:50:15]1040 (4) - 166248 [00:50:15]1012 (4) - 21.10.2024 18:28 [00:50:15]1206 (1) - 0 [00:50:15]OFD Sender: Remove packet 166248 [00:50:15]ProducePacketName [00:50:15]name=ofd_packets/00166248 [00:50:15]NVStorageDeleteData [00:50:15]OFD Sender: No OFD packet to send [00:50:16]*** Cut start [00:50:16]*** Partial cut [00:50:16]*** CUTSNS_PIN = 1 [00:50:16]*** CUTSNS_PIN = 0 [00:50:16]*** Brake cut motor [00:50:16]Read from MH i2c: 01 [00:50:16]MH_I2C_Read... [00:50:16]*** Stop cut motor [00:50:16]*** Cut end [00:50:16]Read from MH i2c: 01 07 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: 01 07 00 11 93 00 00 00 00 00 FF 0F B9 [00:50:16]process_action close_receipt done [00:50:16]requested_data is exist [00:50:16]produce_requested_data [00:50:16]requested_item fm.sn is exist - process it [00:50:16]wFMCommunicate request_size=4 [00:50:16]MH_SAM_APDU [00:50:16]CAPDU: 80 11 00 00 [00:50:16]Write to MH i2c: E2 08 00 12 93 80 11 00 00 00 00 00 00 1F [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:16]Read from MH i2c: E2 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 17 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 17 00 12 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 77 [00:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:50:16]wFMCommunicate OK [00:50:16]requested_item fd.num is exist - process it [00:50:16]SAM_PROTO_GetFieldsCounters [00:50:16]wFMCommunicate request_size=4 [00:50:16]MH_SAM_APDU [00:50:16]CAPDU: 80 13 00 00 [00:50:16]Write to MH i2c: E2 08 00 13 93 80 13 00 00 00 00 00 00 22 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:16]Read from MH i2c: E2 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 62 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 62 00 13 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [00:50:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 68 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:16]wFMCommunicate OK [00:50:16]SAM_PROTO_GetFieldsCounters done [00:50:16]requested_item shift.num is exist - process it [00:50:16]requested_item shift.opened is exist - process it [00:50:16]req_shift_opened [00:50:16]FM_GetShiftState [00:50:16]SAM_PROTO_GetShiftState [00:50:16]wFMCommunicate request_size=4 [00:50:16]MH_SAM_APDU [00:50:16]CAPDU: 80 13 01 00 [00:50:16]Write to MH i2c: E2 08 00 14 93 80 13 01 00 00 00 00 00 24 [00:50:16]Write i2c OK [00:50:16]MH_I2C_Read... [00:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:16]Read from MH i2c: E2 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 0E 00 [00:50:16]MH_I2C_Read... [00:50:16]Read from MH i2c: E2 0E 00 14 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 77 [00:50:16]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:50:16]wFMCommunicate OK [00:50:16]SAM_PROTO_GetShiftState done [00:50:16]FM_GetShiftState done [00:50:16]req_shift_opened done [00:50:16]requested_item shift.open_date is exist - process it [00:50:16]req_shift_open_date [00:50:16]req_shift_open_date done [00:50:16]produce_requested_data done [00:50:16]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166248,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:50:16]process_action_free close_receipt [00:50:16]json_value_free [00:50:16]json_value_free done [00:50:16]process_json_proto returns [00:50:16]Send response to host [00:50:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166248,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:50:16]free response buf [00:50:16]execute_script done [00:50:16]execute_script returns [00:50:16]free content buf [00:50:16]Sock 5.Close socket [00:50:16]Sock 5.Thread stoped [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:28]accept exits with 6 [00:50:28]New connection [00:50:28]New thread 3066776932 created [00:50:28]Thread 3066920292 joined [00:50:28]Waiting for new connection... [00:50:28] Sock 6.Parse request [00:50:28]Sock 6.Check first char [00:50:28]Sock 6.First char is OK [00:50:28]request: POST /json_proto HTTP/1.0 [00:50:28]Method: POST [00:50:28]URL: /json_proto [00:50:28]Method is POST - this is cgi request [00:50:28]url: /json_proto [00:50:28]query_string will be loaded in cgi processing [00:50:28]execute_cgi json_proto POST (null) [00:50:28]execute_cgi path=json_proto method=POST [00:50:28]POST find Content-Length [00:50:28]Host: 172.17.53.195:8080 [00:50:28]Content-Length: 678 [00:50:28]Content-Type: application/json [00:50:28] [00:50:28]POST finish read [00:50:28]Found Content-Length = 678 [00:50:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:28]execute_script... [00:50: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)220821", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:50:28]POST & json_proto [00:50:28]process_json_proto [00:50:28]json parsed OK: [00:50:28]protocol is kg_v1.0 [00:50:28]action value=close_receipt [00:50:28]process_action close_receipt [00:50:28]cmd_close_receipt [00:50:28]MH_GetDate [00:50:28]Write to MH i2c: F0 00 00 15 93 97 [00:50:28]Write i2c OK [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: F0 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: F0 09 00 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: F0 09 00 15 93 00 E9 F6 16 67 21 48 4A 65 14 [00:50:28]GetLastDocTimeStamp 1729558234 [00:50:28]current date 1729558249 [00:50:28]FM_GetShiftState [00:50:28]SAM_PROTO_GetShiftState [00:50:28]wFMCommunicate request_size=4 [00:50:28]MH_SAM_APDU [00:50:28]CAPDU: 80 13 01 00 [00:50:28]Write to MH i2c: E2 08 00 16 93 80 13 01 00 00 00 00 00 26 [00:50:28]Write i2c OK [00:50:28]MH_I2C_Read... [00:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:28]Read from MH i2c: E2 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: E2 0E 00 [00:50:28]MH_I2C_Read... [00:50:28]Read from MH i2c: E2 0E 00 16 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 79 [00:50:28]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:50:28]wFMCommunicate OK [00:50:28]SAM_PROTO_GetShiftState done [00:50:28]FM_GetShiftState done [00:50:28]opened in 1729557463 [00:50:28]opened+sec_in_day 1729643863 [00:50:28]quantity*price = 80061 [00:50:28]sum+1 = 80063 [00:50:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 4 22.10.2024 00:50 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166249 ФПД: 263266962169613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005049&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166249&fm=263266962169613&tin=02508201610067®Number=0000000000091764&sum=80000 [00:50:29]StoreToDocumentArchive [00:50:29]shift 536 fd 166249 [00:50:29]save to /storage/0536/doc_00166249 [00:50:29]save last doc name /storage/0536/doc_00166249 to /storage/kkm_last_doc_name [00:50:29]save OK [00:50:29]Clear old archive folders... [00:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:50:29]tlvbuf is 01522620 [00:50:29]SAM_PROTO_ClearQueue [00:50:29]wFMCommunicate request_size=4 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 09 00 00 [00:50:29]Write to MH i2c: E2 08 00 23 93 80 09 00 00 00 00 00 00 28 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 23 93 00 90 00 2A [00:50:29]RAPDU: 90 00 [00:50:29]wFMCommunicate OK [00:50:29]SAM_PROTO_ClearQueue done [00:50:29]KKMCreateOFDPacket [00:50:29]OFDProtocolAddRootSTLVToBuf [00:50:29]FM_MakeSignedData [00:50:29]FM_MakeSignedData [00:50:29]SAM_PROTO_SignData [00:50:29]wFMCommunicate request_size=4 [00:50:29]MH_SAM_APDU [00:50:29]CAPDU: 80 0D 01 02 [00:50:29]Write to MH i2c: E2 08 00 24 93 80 0D 01 02 00 00 00 00 30 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:50:29]Read from MH i2c: E2 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 [00:50:29]MH_I2C_Read... [00:50:29]Read from MH i2c: E2 03 00 24 93 00 90 00 2B [00:50:29]RAPDU: 90 00 [00:50:29]wFMCommunicate OK [00:50:29]wFMCommunicate request_size=255 [00:50:29]MH_SAM_APDU [00:50: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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E9 F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 89 02 00 35 04 06 00 EF [00:50:29]Write to MH i2c: E2 02 01 25 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E9 F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 89 02 00 35 04 06 00 EF 00 00 90 [00:50:29]Write i2c OK [00:50:29]MH_I2C_Read... [00:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:30]Read from MH i2c: E2 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 03 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 03 00 25 93 00 90 00 2C [00:50:30]RAPDU: 90 00 [00:50:30]wFMCommunicate OK [00:50:30]wFMCommunicate request_size=10 [00:50:30]MH_SAM_APDU [00:50:30]CAPDU: 80 0D 02 02 05 70 9D C2 DF 0D [00:50:30]Write to MH i2c: E2 0D 00 26 93 80 0D 02 02 05 00 70 9D C2 DF 0D 00 00 F8 [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:50:30]Read from MH i2c: E2 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 03 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 03 00 26 93 00 90 00 2D [00:50:30]RAPDU: 90 00 [00:50:30]wFMCommunicate OK [00:50:30]wFMCommunicate request_size=4 [00:50:30]MH_SAM_APDU [00:50:30]CAPDU: 80 0D 03 02 [00:50:30]Write to MH i2c: E2 08 00 27 93 80 0D 03 02 00 00 00 00 35 [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:50:30]Read from MH i2c: E2 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 0B 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 0B 00 27 93 00 B5 E7 E9 1F 70 81 CD 9B 90 00 33 [00:50:30]RAPDU: B5 E7 E9 1F 70 81 CD 9B 90 00 [00:50:30]wFMCommunicate OK [00:50:30]SAM_PROTO_SignData done [00:50:30]FM_MakeSignedData done [00:50:30]CreateOFDProtocolMessage [00:50:30]wFMCommunicate request_size=4 [00:50:30]MH_SAM_APDU [00:50:30]CAPDU: 80 11 00 00 [00:50:30]Write to MH i2c: E2 08 00 28 93 80 11 00 00 00 00 00 00 35 [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:30]Read from MH i2c: E2 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 17 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: E2 17 00 28 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 8D [00:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:50:30]wFMCommunicate OK [00:50:30]CreateOFDProtocolMessage done [00:50:30]OFDSenderStorePacket 166249 [00:50:30]StoreOFDPacket docnum=166249 [00:50:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 2A 07 01 C2 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E9 F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 89 02 00 35 04 06 00 EF 70 9D C2 DF 0D B5 E7 E9 1F 70 81 CD 9B [00:50:30]CheckFolder [00:50:30]dirname=/storage/ofd_packets [00:50:30]CheckFolder done [00:50:30]ProducePacketName [00:50:30]name=ofd_packets/00166249 [00:50:30]NVStorageSaveData ofd_packets/00166249 [00:50:30]File name is /storage/ofd_packets/00166249 [00:50:30]Write 301 bytes [00:50:30]NVStorageSaveData done [00:50:30]OFDSenderStorePacket done [00:50:30]KKMCreateOFDPacket done [00:50:30]NVStorageSaveData kkm_last_timestamp [00:50:30]File name is /storage/kkm_last_timestamp [00:50:30]Write 4 bytes [00:50:30]NVStorageSaveData done [00:50:30]ExternCall_PrintAddStr [00:50:30]wPrintStart [00:50:30]Write to MH i2c: 01 00 00 29 93 BC [00:50:30]Write i2c OK [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: 01 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: 01 07 00 [00:50:30]MH_I2C_Read... [00:50:30]Read from MH i2c: 01 07 00 29 93 00 00 00 00 00 FF 0F D1 [00:50:30]RasterBufferAndPrint [00:50:30]line Счет N : (1)220821 [00:50:30]line ИНН: 02508201610067 [00:50:30]line Контрольно-Кассовый Чек [00:50:30]line ПРОДАЖА [00:50:30]line ТРК (МРК, ГНК) : 24 [00:50:30]line Товар: 2710124500 [00:50:30]line Аи-95-К-5 [00:50:30]line 10.790 * 74.20 [00:50:30]line = 800.62 [00:50:30]line НДС 12% НСП 1% [00:50:30]line > о реализуемом товаре [00:50:30]line ОКРУГЛЕНИЕ: -0.62 [00:50:30]line ИТОГО: 800.00 [00:50:30]line Внесено: 800.00 [00:50:30]line СДАЧА: 0.00 [00:50:30]line НСП 1% : 7.08 [00:50:30]line НДС 12% : 85.02 [00:50:30]line Наличными: 800.00 [00:50:30]line Безнал.: 0.00 [00:50:30]line Место: АЗС № 161 "Партнер Нефть" [00:50:30]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [00:50:30]line СНО: Общий режим [00:50:30]line Чек 4 22.10.2024 00:50 [00:50:30]line Смена: 536 ФФД: 1.0 [00:50:30]line ЗНМ: 0300000104 [00:50:30]line РНМ: 0000000000091764 [00:50:30]line Версия ККМ: 001 [00:50:30]line ФМ: 0000000000871759 [00:50:30]line ФД: 166249 [00:50:30]line ФПД: 263266962169613 [00:50:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T005049&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166249&fm=263266962169613&tin=02508201610067®Number=0000000000091764&sum=80000 [00:50:30]OFD Sender: Processing packet 166249 [packets to send 48, broken 47] [00:50:30]ProducePacketName [00:50:30]name=ofd_packets/00166249 [00:50:30]OFD Sender: To server: pG, [00:50:30]CommunicateWithHost lk.salyk.kg:30040 [00:50:30]ConnectInit lk.salyk.kg [00:50:30]written 0, free lines is 4095 [00:50:30]Connected sock=7 [00:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 7F 2A 07 01 C2 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E9 F6 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 89 02 00 35 04 06 00 EF 70 9D C2 DF 0D B5 E7 E9 1F 70 81 CD 9B [00:50:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 26 91 47 00 84 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 69 89 02 00 F4 03 04 00 56 9D 16 67 B6 04 01 00 00 CB 81 56 BE 59 7C 81 8D [00:50:31]CommunicateWithHost err = 0 [00:50:31]CheckOFDResponse [00:50:31]1017 (14) - 77093643461234 [00:50:31]1041 (16) - 0000000000871759 [00:50:31]1040 (4) - 166249 [00:50:31]1012 (4) - 21.10.2024 18:28 [00:50:31]1206 (1) - 0 [00:50:31]OFD Sender: Remove packet 166249 [00:50:31]ProducePacketName [00:50:31]name=ofd_packets/00166249 [00:50:31]NVStorageDeleteData [00:50:31]Write to MH i2c: 01 00 00 54 93 E7 [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: 01 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: 01 07 00 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: 01 07 00 54 93 00 00 00 00 00 D3 0C CD [00:50:31]RasterBufferAndPrint [00:50:31]line [00:50:31]line [00:50:31]line [00:50:31]line [00:50:31]line [00:50:31]written 0, free lines is 3293 [00:50:31]MH_Cut [00:50:31]Write to MH i2c: D1 01 00 5B 93 01 C0 [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: D1 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: D1 01 00 [00:50:31]MH_I2C_Read... [00:50:31]Read from MH i2c: D1 01 00 5B 93 00 BF [00:50:31]Write to MH i2c: 01 00 00 5C 93 EF [00:50:31]Write i2c OK [00:50:31]MH_I2C_Read... [00:50:31]OFD Sender: No OFD packet to send [00:50:31]*** Cut start [00:50:31]*** Partial cut [00:50:31]*** CUTSNS_PIN = 1 [00:50:31]*** CUTSNS_PIN = 0 [00:50:32]*** Brake cut motor [00:50:32]Read from MH i2c: 01 [00:50:32]MH_I2C_Read... [00:50:32]*** Stop cut motor [00:50:32]*** Cut end [00:50:32]Read from MH i2c: 01 07 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: 01 07 00 5C 93 00 00 00 00 00 FF 0F 04 [00:50:32]process_action close_receipt done [00:50:32]requested_data is exist [00:50:32]produce_requested_data [00:50:32]requested_item fm.sn is exist - process it [00:50:32]wFMCommunicate request_size=4 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 11 00 00 [00:50:32]Write to MH i2c: E2 08 00 5D 93 80 11 00 00 00 00 00 00 6A [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 17 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 17 00 5D 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 C2 [00:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [00:50:32]wFMCommunicate OK [00:50:32]requested_item fd.num is exist - process it [00:50:32]SAM_PROTO_GetFieldsCounters [00:50:32]wFMCommunicate request_size=4 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 13 00 00 [00:50:32]Write to MH i2c: E2 08 00 5E 93 80 13 00 00 00 00 00 00 6D [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 62 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 62 00 5E 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [00:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 69 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:50:32]wFMCommunicate OK [00:50:32]SAM_PROTO_GetFieldsCounters done [00:50:32]requested_item shift.num is exist - process it [00:50:32]requested_item shift.opened is exist - process it [00:50:32]req_shift_opened [00:50:32]FM_GetShiftState [00:50:32]SAM_PROTO_GetShiftState [00:50:32]wFMCommunicate request_size=4 [00:50:32]MH_SAM_APDU [00:50:32]CAPDU: 80 13 01 00 [00:50:32]Write to MH i2c: E2 08 00 5F 93 80 13 01 00 00 00 00 00 6F [00:50:32]Write i2c OK [00:50:32]MH_I2C_Read... [00:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:50:32]Read from MH i2c: E2 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 0E 00 [00:50:32]MH_I2C_Read... [00:50:32]Read from MH i2c: E2 0E 00 5F 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C2 [00:50:32]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [00:50:32]wFMCommunicate OK [00:50:32]SAM_PROTO_GetShiftState done [00:50:32]FM_GetShiftState done [00:50:32]req_shift_opened done [00:50:32]requested_item shift.open_date is exist - process it [00:50:32]req_shift_open_date [00:50:32]req_shift_open_date done [00:50:32]produce_requested_data done [00:50:32]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166249,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [00:50:32]process_action_free close_receipt [00:50:32]json_value_free [00:50:32]json_value_free done [00:50:32]process_json_proto returns [00:50:32]Send response to host [00:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166249,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [00:50:32]free response buf [00:50:32]execute_script done [00:50:32]execute_script returns [00:50:32]free content buf [00:50:32]Sock 6.Close socket [00:50:32]Sock 6.Thread stoped [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:55]accept exits with 5 [01:02:55]New connection [01:02:55]New thread 3066920292 created [01:02:55]Thread 3066776932 joined [01:02:55]Waiting for new connection... [01:02:55] Sock 5.Parse request [01:02:55]Sock 5.Check first char [01:02:55]Sock 5.First char is OK [01:02:55]request: POST /json_proto HTTP/1.0 [01:02:55]Method: POST [01:02:55]URL: /json_proto [01:02:55]Method is POST - this is cgi request [01:02:55]url: /json_proto [01:02:55]query_string will be loaded in cgi processing [01:02:55]execute_cgi json_proto POST (null) [01:02:55]execute_cgi path=json_proto method=POST [01:02:55]POST find Content-Length [01:02:55]Host: 172.17.53.195:8080 [01:02:55]Content-Length: 677 [01:02:55]Content-Type: application/json [01:02:55] [01:02:55]POST finish read [01:02:55]Found Content-Length = 677 [01:02:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:55]execute_script... [01: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)220822", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.470, "sum" : 499.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 499.00, "payments": [ { "type": 0, "sum" : 499.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:55]POST & json_proto [01:02:55]process_json_proto [01:02:55]json parsed OK: [01:02:55]protocol is kg_v1.0 [01:02:55]action value=close_receipt [01:02:55]process_action close_receipt [01:02:55]cmd_close_receipt [01:02:55]MH_GetDate [01:02:55]Write to MH i2c: F0 00 00 60 93 E2 [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: F0 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: F0 09 00 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: F0 09 00 60 93 00 D5 F9 16 67 21 48 4A 65 4E [01:02:55]GetLastDocTimeStamp 1729558249 [01:02:55]current date 1729558997 [01:02:55]FM_GetShiftState [01:02:55]SAM_PROTO_GetShiftState [01:02:55]wFMCommunicate request_size=4 [01:02:55]MH_SAM_APDU [01:02:55]CAPDU: 80 13 01 00 [01:02:55]Write to MH i2c: E2 08 00 61 93 80 13 01 00 00 00 00 00 71 [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:55]Read from MH i2c: E2 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 0E 00 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 0E 00 61 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 C4 [01:02:55]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:02:55]wFMCommunicate OK [01:02:55]SAM_PROTO_GetShiftState done [01:02:55]FM_GetShiftState done [01:02:55]opened in 1729557463 [01:02:55]opened+sec_in_day 1729643863 [01:02:55]quantity*price = 49974 [01:02:55]sum+1 = 49975 [01:02:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 499.00 Внесено: 500.00 СДАЧА: 1.00 НСП 1% : 4.42 НДС 12% : 53.07 Наличными: 499.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 5 22.10.2024 01:03 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166250 ФПД: 218345861651325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166250&fm=218345861651325&tin=02508201610067®Number=0000000000091764&sum=49900 [01:02:57]StoreToDocumentArchive [01:02:57]shift 536 fd 166250 [01:02:57]save to /storage/0536/doc_00166250 [01:02:57]save last doc name /storage/0536/doc_00166250 to /storage/kkm_last_doc_name [01:02:57]save OK [01:02:57]Clear old archive folders... [01:02:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:02:57]tlvbuf is 01493410 [01:02:57]SAM_PROTO_ClearQueue [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 09 00 00 [01:02:57]Write to MH i2c: E2 08 00 6E 93 80 09 00 00 00 00 00 00 73 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 6E 93 00 90 00 75 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]SAM_PROTO_ClearQueue done [01:02:57]KKMCreateOFDPacket [01:02:57]OFDProtocolAddRootSTLVToBuf [01:02:57]FM_MakeSignedData [01:02:57]FM_MakeSignedData [01:02:57]SAM_PROTO_SignData [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 01 02 [01:02:57]Write to MH i2c: E2 08 00 6F 93 80 0D 01 02 00 00 00 00 7B [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 6F 93 00 90 00 76 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]wFMCommunicate request_size=255 [01:02:57]MH_SAM_APDU [01: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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D5 F9 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 89 02 00 35 04 06 00 C6 [01:02:57]Write to MH i2c: E2 02 01 70 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D5 F9 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 89 02 00 35 04 06 00 C6 00 00 17 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]OFD Sender: No OFD packet to send [01:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 70 93 00 90 00 77 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]wFMCommunicate request_size=10 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 02 02 05 95 9B 85 9B 7D [01:02:57]Write to MH i2c: E2 0D 00 71 93 80 0D 02 02 05 00 95 9B 85 9B 7D 00 00 55 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 03 00 71 93 00 90 00 78 [01:02:57]RAPDU: 90 00 [01:02:57]wFMCommunicate OK [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 0D 03 02 [01:02:57]Write to MH i2c: E2 08 00 72 93 80 0D 03 02 00 00 00 00 80 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 0B 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 0B 00 72 93 00 FB 6A 71 38 A7 DF 3C 5D 90 00 AE [01:02:57]RAPDU: FB 6A 71 38 A7 DF 3C 5D 90 00 [01:02:57]wFMCommunicate OK [01:02:57]SAM_PROTO_SignData done [01:02:57]FM_MakeSignedData done [01:02:57]CreateOFDProtocolMessage [01:02:57]wFMCommunicate request_size=4 [01:02:57]MH_SAM_APDU [01:02:57]CAPDU: 80 11 00 00 [01:02:57]Write to MH i2c: E2 08 00 73 93 80 11 00 00 00 00 00 00 80 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:57]Read from MH i2c: E2 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 17 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: E2 17 00 73 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D8 [01:02:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:02:57]wFMCommunicate OK [01:02:57]CreateOFDProtocolMessage done [01:02:57]OFDSenderStorePacket 166250 [01:02:57]StoreOFDPacket docnum=166250 [01:02:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 75 07 01 7D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D5 F9 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 89 02 00 35 04 06 00 C6 95 9B 85 9B 7D FB 6A 71 38 A7 DF 3C 5D [01:02:57]CheckFolder [01:02:57]dirname=/storage/ofd_packets [01:02:57]CheckFolder done [01:02:57]ProducePacketName [01:02:57]name=ofd_packets/00166250 [01:02:57]NVStorageSaveData ofd_packets/00166250 [01:02:57]File name is /storage/ofd_packets/00166250 [01:02:57]Write 301 bytes [01:02:57]NVStorageSaveData done [01:02:57]OFDSenderStorePacket done [01:02:57]KKMCreateOFDPacket done [01:02:57]NVStorageSaveData kkm_last_timestamp [01:02:57]File name is /storage/kkm_last_timestamp [01:02:57]Write 4 bytes [01:02:57]NVStorageSaveData done [01:02:57]ExternCall_PrintAddStr [01:02:57]wPrintStart [01:02:57]Write to MH i2c: 01 00 00 74 93 07 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 07 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 07 00 74 93 00 00 00 00 00 FF 0F 1C [01:02:57]RasterBufferAndPrint [01:02:57]line Счет N : (1)220822 [01:02:57]line ИНН: 02508201610067 [01:02:57]line Контрольно-Кассовый Чек [01:02:57]line ПРОДАЖА [01:02:57]line ТРК (МРК, ГНК) : 13 [01:02:57]line Товар: 2710124130 [01:02:57]line Аи-92-К-5 [01:02:57]line 7.470 * 66.90 [01:02:57]line = 499.74 [01:02:57]line НДС 12% НСП 1% [01:02:57]line > о реализуемом товаре [01:02:57]line ОКРУГЛЕНИЕ: -0.74 [01:02:57]line ИТОГО: 499.00 [01:02:57]line Внесено: 500.00 [01:02:57]line СДАЧА: 1.00 [01:02:57]line НСП 1% : 4.42 [01:02:57]line НДС 12% : 53.07 [01:02:57]line Наличными: 499.00 [01:02:57]line Безнал.: 0.00 [01:02:57]line Место: АЗС № 161 "Партнер Нефть" [01:02:57]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:02:57]line СНО: Общий режим [01:02:57]line Чек 5 22.10.2024 01:03 [01:02:57]line Смена: 536 ФФД: 1.0 [01:02:57]line ЗНМ: 0300000104 [01:02:57]line РНМ: 0000000000091764 [01:02:57]line Версия ККМ: 001 [01:02:57]line ФМ: 0000000000871759 [01:02:57]line ФД: 166250 [01:02:57]line ФПД: 218345861651325 [01:02:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T010317&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166250&fm=218345861651325&tin=02508201610067®Number=0000000000091764&sum=49900 [01:02:57]OFD Sender: Processing packet 166250 [packets to send 48, broken 47] [01:02:57]ProducePacketName [01:02:57]name=ofd_packets/00166250 [01:02:57]OFD Sender: To server: pG, [01:02:57]CommunicateWithHost lk.salyk.kg:30040 [01:02:57]ConnectInit lk.salyk.kg [01:02:57]written 0, free lines is 4095 [01:02:58]Connected sock=7 [01:02:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F7 75 07 01 7D 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 2E 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC C2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 14 00 00 00 00 07 04 06 00 EC C2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 D5 F9 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 89 02 00 35 04 06 00 C6 95 9B 85 9B 7D FB 6A 71 38 A7 DF 3C 5D [01: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 35 39 4F 00 00 00 BD 5A 47 00 B6 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6A 89 02 00 F4 03 04 00 41 A0 16 67 B6 04 01 00 00 17 72 2B B2 D1 84 DE B7 [01:02:58]CommunicateWithHost err = 0 [01:02:58]CheckOFDResponse [01:02:58]1017 (14) - 77093643461234 [01:02:58]1041 (16) - 0000000000871759 [01:02:58]1040 (4) - 166250 [01:02:58]1012 (4) - 21.10.2024 18:41 [01:02:58]1206 (1) - 0 [01:02:58]OFD Sender: Remove packet 166250 [01:02:58]ProducePacketName [01:02:58]name=ofd_packets/00166250 [01:02:58]NVStorageDeleteData [01:02:58]Write to MH i2c: 01 00 00 9F 93 32 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 07 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 07 00 9F 93 00 00 00 00 00 C6 0C 0B [01:02:58]RasterBufferAndPrint [01:02:58]line [01:02:58]line [01:02:58]line [01:02:58]line [01:02:58]line [01:02:58]written 0, free lines is 3276 [01:02:58]MH_Cut [01:02:58]Write to MH i2c: D1 01 00 A6 93 01 0B [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: D1 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: D1 01 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: D1 01 00 A6 93 00 0A [01:02:58]Write to MH i2c: 01 00 00 A7 93 3A [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]OFD Sender: No OFD packet to send [01:02:59]*** Cut start [01:02:59]*** Partial cut [01:02:59]*** CUTSNS_PIN = 1 [01:02:59]*** CUTSNS_PIN = 0 [01:02:59]*** Brake cut motor [01:02:59]Read from MH i2c: 01 [01:02:59]MH_I2C_Read... [01:02:59]*** Stop cut motor [01:02:59]*** Cut end [01:02:59]Read from MH i2c: 01 07 00 [01:02:59]MH_I2C_Read... [01:02:59]Read from MH i2c: 01 07 00 A7 93 00 00 00 00 00 FF 0F 4F [01:02:59]process_action close_receipt done [01:02:59]requested_data is exist [01:02:59]produce_requested_data [01:02:59]requested_item fm.sn is exist - process it [01:02:59]wFMCommunicate request_size=4 [01:02:59]MH_SAM_APDU [01:02:59]CAPDU: 80 11 00 00 [01:02:59]Write to MH i2c: E2 08 00 A8 93 80 11 00 00 00 00 00 00 B5 [01:02:59]Write i2c OK [01:02:59]MH_I2C_Read... [01:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:59]Read from MH i2c: E2 [01:02:59]MH_I2C_Read... [01:02:59]Read from MH i2c: E2 17 00 [01:02:59]MH_I2C_Read... [01:02:59]Read from MH i2c: E2 17 00 A8 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0D [01:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:02:59]wFMCommunicate OK [01:02:59]requested_item fd.num is exist - process it [01:02:59]SAM_PROTO_GetFieldsCounters [01:02:59]wFMCommunicate request_size=4 [01:02:59]MH_SAM_APDU [01:02:59]CAPDU: 80 13 00 00 [01:02:59]Write to MH i2c: E2 08 00 A9 93 80 13 00 00 00 00 00 00 B8 [01:02:59]Write i2c OK [01:02:59]MH_I2C_Read... [01:03:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:03:00]Read from MH i2c: E2 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 62 00 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 62 00 A9 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [01:03:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6A 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:03:00]wFMCommunicate OK [01:03:00]SAM_PROTO_GetFieldsCounters done [01:03:00]requested_item shift.num is exist - process it [01:03:00]requested_item shift.opened is exist - process it [01:03:00]req_shift_opened [01:03:00]FM_GetShiftState [01:03:00]SAM_PROTO_GetShiftState [01:03:00]wFMCommunicate request_size=4 [01:03:00]MH_SAM_APDU [01:03:00]CAPDU: 80 13 01 00 [01:03:00]Write to MH i2c: E2 08 00 AA 93 80 13 01 00 00 00 00 00 BA [01:03:00]Write i2c OK [01:03:00]MH_I2C_Read... [01:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:03:00]Read from MH i2c: E2 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 0E 00 [01:03:00]MH_I2C_Read... [01:03:00]Read from MH i2c: E2 0E 00 AA 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0D [01:03:00]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:03:00]wFMCommunicate OK [01:03:00]SAM_PROTO_GetShiftState done [01:03:00]FM_GetShiftState done [01:03:00]req_shift_opened done [01:03:00]requested_item shift.open_date is exist - process it [01:03:00]req_shift_open_date [01:03:00]req_shift_open_date done [01:03:00]produce_requested_data done [01:03:00]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166250,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [01:03:00]process_action_free close_receipt [01:03:00]json_value_free [01:03:00]json_value_free done [01:03:00]process_json_proto returns [01:03:00]Send response to host [01:03:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166250,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [01:03:00]free response buf [01:03:00]execute_script done [01:03:00]execute_script returns [01:03:00]free content buf [01:03:00]Sock 5.Close socket [01:03:00]Sock 5.Thread stoped [01:03:03]OFD Sender: No OFD packet to send [01:03:08]OFD Sender: No OFD packet to send [01:03:13]OFD Sender: No OFD packet to send [01:03:18]OFD Sender: No OFD packet to send [01:03:23]OFD Sender: No OFD packet to send [01:03:28]OFD Sender: No OFD packet to send [01:03:33]OFD Sender: No OFD packet to send [01:03:38]OFD Sender: No OFD packet to send [01:03:43]OFD Sender: No OFD packet to send [01:03:48]OFD Sender: No OFD packet to send [01:03:53]OFD Sender: No OFD packet to send [01:03:58]OFD Sender: No OFD packet to send [01:04:03]OFD Sender: No OFD packet to send [01:04:08]OFD Sender: No OFD packet to send [01:04:13]OFD Sender: No OFD packet to send [01:04:18]OFD Sender: No OFD packet to send [01:04:23]OFD Sender: No OFD packet to send [01:04:28]OFD Sender: No OFD packet to send [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:05:08]OFD Sender: No OFD packet to send [01:05:13]OFD Sender: No OFD packet to send [01:05:18]OFD Sender: No OFD packet to send [01:05:23]OFD Sender: No OFD packet to send [01:05:28]OFD Sender: No OFD packet to send [01:05:33]OFD Sender: No OFD packet to send [01:05:38]OFD Sender: No OFD packet to send [01:05:43]OFD Sender: No OFD packet to send [01:05:48]OFD Sender: No OFD packet to send [01:05:53]OFD Sender: No OFD packet to send [01:05:58]OFD Sender: No OFD packet to send [01:06:03]OFD Sender: No OFD packet to send [01:06:08]OFD Sender: No OFD packet to send [01:06:13]OFD Sender: No OFD packet to send [01:06:18]OFD Sender: No OFD packet to send [01:06:23]OFD Sender: No OFD packet to send [01:06:28]OFD Sender: No OFD packet to send [01:06:33]OFD Sender: No OFD packet to send [01:06:38]OFD Sender: No OFD packet to send [01:06:43]OFD Sender: No OFD packet to send [01:06:48]OFD Sender: No OFD packet to send [01:06:53]OFD Sender: No OFD packet to send [01:06:58]OFD Sender: No OFD packet to send [01:07:03]OFD Sender: No OFD packet to send [01:07:08]OFD Sender: No OFD packet to send [01:07:13]OFD Sender: No OFD packet to send [01:07:18]OFD Sender: No OFD packet to send [01:07:23]OFD Sender: No OFD packet to send [01:07:29]OFD Sender: No OFD packet to send [01:07:34]OFD Sender: No OFD packet to send [01:07:39]OFD Sender: No OFD packet to send [01:07:44]OFD Sender: No OFD packet to send [01:07:49]OFD Sender: No OFD packet to send [01:07:54]OFD Sender: No OFD packet to send [01:07:59]OFD Sender: No OFD packet to send [01:08:04]OFD Sender: No OFD packet to send [01:08:09]OFD Sender: No OFD packet to send [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:39]OFD Sender: No OFD packet to send [01:08:44]OFD Sender: No OFD packet to send [01:08:49]OFD Sender: No OFD packet to send [01:08:54]OFD Sender: No OFD packet to send [01:08:59]OFD Sender: No OFD packet to send [01:09:04]OFD Sender: No OFD packet to send [01:09:09]OFD Sender: No OFD packet to send [01:09:14]OFD Sender: No OFD packet to send [01:09:19]OFD Sender: No OFD packet to send [01:09:24]OFD Sender: No OFD packet to send [01:09:29]OFD Sender: No OFD packet to send [01:09:34]OFD Sender: No OFD packet to send [01:09:39]OFD Sender: No OFD packet to send [01:09:44]OFD Sender: No OFD packet to send [01:09:49]OFD Sender: No OFD packet to send [01:09:54]OFD Sender: No OFD packet to send [01:09:59]OFD Sender: No OFD packet to send [01:10:04]OFD Sender: No OFD packet to send [01:10:04]accept exits with 6 [01:10:04]New connection [01:10:04]New thread 3066776932 created [01:10:04]Thread 3066920292 joined [01:10:04]Waiting for new connection... [01:10:04] Sock 6.Parse request [01:10:04]Sock 6.Check first char [01:10:04]Sock 6.First char is OK [01:10:04]request: POST /json_proto HTTP/1.0 [01:10:04]Method: POST [01:10:04]URL: /json_proto [01:10:04]Method is POST - this is cgi request [01:10:04]url: /json_proto [01:10:04]query_string will be loaded in cgi processing [01:10:04]execute_cgi json_proto POST (null) [01:10:04]execute_cgi path=json_proto method=POST [01:10:04]POST find Content-Length [01:10:04]Host: 172.17.53.195:8080 [01:10:04]Content-Length: 984 [01:10:04]Content-Type: application/json [01:10:04] [01:10:04]POST finish read [01:10:04]Found Content-Length = 984 [01:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 199.470, "sum" : 15000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 199.47 \u0441\u043E\u043C", "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:04]execute_script... [01:10: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)220823", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 199.470, "sum" : 15000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 161\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 199.47 \u0441\u043E\u043C", "deposit" : 15000.00, "total" : 15000.00, "payments": [ { "type": 0, "sum" : 15000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:10:04]POST & json_proto [01:10:04]process_json_proto [01:10:04]json parsed OK: [01:10:04]protocol is kg_v1.0 [01:10:04]action value=close_receipt [01:10:04]process_action close_receipt [01:10:04]cmd_close_receipt [01:10:04]MH_GetDate [01:10:04]Write to MH i2c: F0 00 00 AB 93 2D [01:10:04]Write i2c OK [01:10:04]MH_I2C_Read... [01:10:04]Read from MH i2c: F0 [01:10:04]MH_I2C_Read... [01:10:04]Read from MH i2c: F0 09 00 [01:10:04]MH_I2C_Read... [01:10:04]Read from MH i2c: F0 09 00 AB 93 00 82 FB 16 67 21 48 4A 65 48 [01:10:04]GetLastDocTimeStamp 1729558997 [01:10:04]current date 1729559426 [01:10:04]FM_GetShiftState [01:10:04]SAM_PROTO_GetShiftState [01:10:04]wFMCommunicate request_size=4 [01:10:04]MH_SAM_APDU [01:10:04]CAPDU: 80 13 01 00 [01:10:04]Write to MH i2c: E2 08 00 AC 93 80 13 01 00 00 00 00 00 BC [01:10:04]Write i2c OK [01:10:04]MH_I2C_Read... [01:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:04]Read from MH i2c: E2 [01:10:04]MH_I2C_Read... [01:10:04]Read from MH i2c: E2 0E 00 [01:10:04]MH_I2C_Read... [01:10:04]Read from MH i2c: E2 0E 00 AC 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 0F [01:10:04]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:10:04]wFMCommunicate OK [01:10:04]SAM_PROTO_GetShiftState done [01:10:04]FM_GetShiftState done [01:10:04]opened in 1729557463 [01:10:04]opened+sec_in_day 1729643863 [01:10:04]quantity*price = 1500014 [01:10:04]sum+1 = 1500015 [01:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 15000.00 Внесено: 15000.00 СДАЧА: 0.00 НСП 1% : 132.74 НДС 12% : 1592.93 Наличными: 15000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 6 22.10.2024 01:10 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Дисконтная программа ДТ номер 161 сэкономлено 199.47 сом ФМ: 0000000000871759 ФД: 166251 ФПД: 102991039643418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166251&fm=102991039643418&tin=02508201610067®Number=0000000000091764&sum=1500000 [01:10:06]StoreToDocumentArchive [01:10:06]shift 536 fd 166251 [01:10:06]save to /storage/0536/doc_00166251 [01:10:06]save last doc name /storage/0536/doc_00166251 to /storage/kkm_last_doc_name [01:10:06]save OK [01:10:06]Clear old archive folders... [01:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:10:06]tlvbuf is 01A4DFE0 [01:10:06]SAM_PROTO_ClearQueue [01:10:06]wFMCommunicate request_size=4 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 09 00 00 [01:10:06]Write to MH i2c: E2 08 00 B9 93 80 09 00 00 00 00 00 00 BE [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 B9 93 00 90 00 C0 [01:10:06]RAPDU: 90 00 [01:10:06]wFMCommunicate OK [01:10:06]SAM_PROTO_ClearQueue done [01:10:06]KKMCreateOFDPacket [01:10:06]OFDProtocolAddRootSTLVToBuf [01:10:06]FM_MakeSignedData [01:10:06]FM_MakeSignedData [01:10:06]SAM_PROTO_SignData [01:10:06]wFMCommunicate request_size=4 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 0D 01 02 [01:10:06]Write to MH i2c: E2 08 00 BA 93 80 0D 01 02 00 00 00 00 C6 [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 BA 93 00 90 00 C1 [01:10:06]RAPDU: 90 00 [01:10:06]wFMCommunicate OK [01:10:06]wFMCommunicate request_size=255 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 0B 03 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 6E 02 00 00 00 07 04 06 00 60 E3 16 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 82 FB 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 89 02 00 35 04 06 00 5D AB 78 55 [01:10:06]Write to MH i2c: E2 02 01 BB 93 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 0B 03 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 6E 02 00 00 00 07 04 06 00 60 E3 16 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 82 FB 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 89 02 00 35 04 06 00 5D AB 78 55 00 00 9B [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 BB 93 00 90 00 C2 [01:10:06]RAPDU: 90 00 [01:10:06]wFMCommunicate OK [01:10:06]wFMCommunicate request_size=7 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 0D 02 02 02 3F 1A [01:10:06]Write to MH i2c: E2 0A 00 BC 93 80 0D 02 02 02 00 3F 1A 00 00 26 [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 03 00 BC 93 00 90 00 C3 [01:10:06]RAPDU: 90 00 [01:10:06]wFMCommunicate OK [01:10:06]wFMCommunicate request_size=4 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 0D 03 02 [01:10:06]Write to MH i2c: E2 08 00 BD 93 80 0D 03 02 00 00 00 00 CB [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 0B 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 0B 00 BD 93 00 AF 3C A2 B7 F6 27 02 51 90 00 80 [01:10:06]RAPDU: AF 3C A2 B7 F6 27 02 51 90 00 [01:10:06]wFMCommunicate OK [01:10:06]SAM_PROTO_SignData done [01:10:06]FM_MakeSignedData done [01:10:06]CreateOFDProtocolMessage [01:10:06]wFMCommunicate request_size=4 [01:10:06]MH_SAM_APDU [01:10:06]CAPDU: 80 11 00 00 [01:10:06]Write to MH i2c: E2 08 00 BE 93 80 11 00 00 00 00 00 00 CB [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:06]Read from MH i2c: E2 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 17 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: E2 17 00 BE 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 23 [01:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:10:06]wFMCommunicate OK [01:10:06]CreateOFDProtocolMessage done [01:10:06]OFDSenderStorePacket 166251 [01:10:06]StoreOFDPacket docnum=166251 [01:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E2 F5 04 01 25 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 0B 03 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 6E 02 00 00 00 07 04 06 00 60 E3 16 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 82 FB 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 89 02 00 35 04 06 00 5D AB 78 55 3F 1A AF 3C A2 B7 F6 27 02 51 [01:10:06]CheckFolder [01:10:06]dirname=/storage/ofd_packets [01:10:06]CheckFolder done [01:10:06]ProducePacketName [01:10:06]name=ofd_packets/00166251 [01:10:06]NVStorageSaveData ofd_packets/00166251 [01:10:06]File name is /storage/ofd_packets/00166251 [01:10:06]Write 298 bytes [01:10:06]NVStorageSaveData done [01:10:06]OFDSenderStorePacket done [01:10:06]KKMCreateOFDPacket done [01:10:06]NVStorageSaveData kkm_last_timestamp [01:10:06]File name is /storage/kkm_last_timestamp [01:10:06]Write 4 bytes [01:10:06]NVStorageSaveData done [01:10:06]ExternCall_PrintAddStr [01:10:06]wPrintStart [01:10:06]Write to MH i2c: 01 00 00 BF 93 52 [01:10:06]Write i2c OK [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: 01 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: 01 07 00 [01:10:06]MH_I2C_Read... [01:10:06]Read from MH i2c: 01 07 00 BF 93 00 00 00 00 00 FF 0F 67 [01:10:06]RasterBufferAndPrint [01:10:06]line Счет N : (1)220823 [01:10:06]line ИНН: 02508201610067 [01:10:06]line Контрольно-Кассовый Чек [01:10:06]line ПРОДАЖА [01:10:06]line ТРК (МРК, ГНК) : 11 [01:10:06]line Товар: 2710194210 [01:10:06]line ДТ-К-5 [01:10:06]line 199.470 * 75.20 [01:10:06]line = 15000.14 [01:10:06]line НДС 12% НСП 1% [01:10:06]line > о реализуемом товаре [01:10:06]line ОКРУГЛЕНИЕ: -0.14 [01:10:06]line ИТОГО: 15000.00 [01:10:06]line Внесено: 15000.00 [01:10:06]line СДАЧА: 0.00 [01:10:06]line НСП 1% : 132.74 [01:10:06]line НДС 12% : 1592.93 [01:10:06]line Наличными: 15000.00 [01:10:06]line Безнал.: 0.00 [01:10:06]line Место: АЗС № 161 "Партнер Нефть" [01:10:06]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:10:06]line СНО: Общий режим [01:10:06]line Чек 6 22.10.2024 01:10 [01:10:06]line Смена: 536 ФФД: 1.0 [01:10:06]line ЗНМ: 0300000104 [01:10:06]line РНМ: 0000000000091764 [01:10:06]line Версия ККМ: 001 [01:10:06]line [01:10:06]line Дисконтная программа [01:10:06]line ДТ [01:10:06]line номер 161 [01:10:06]line сэкономлено 199.47 сом [01:10:06]line ФМ: 0000000000871759 [01:10:06]line ФД: 166251 [01:10:06]line ФПД: 102991039643418 [01:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011026&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166251&fm=102991039643418&tin=02508201610067®Number=0000000000091764&sum=1500000 [01:10:06]OFD Sender: Processing packet 166251 [packets to send 48, broken 47] [01:10:06]ProducePacketName [01:10:06]name=ofd_packets/00166251 [01:10:06]OFD Sender: To server: pG, [01:10:06]CommunicateWithHost lk.salyk.kg:30040 [01:10:06]ConnectInit lk.salyk.kg [01:10:06]written 0, free lines is 4095 [01:10:07]Connected sock=7 [01:10:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 E2 F5 04 01 25 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2E 0B 03 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 6E E3 16 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 E3 16 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 33 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 6E 02 00 00 00 07 04 06 00 60 E3 16 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 82 FB 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 89 02 00 35 04 06 00 5D AB 78 55 3F 1A AF 3C A2 B7 F6 27 02 51 [01:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 C9 71 47 00 DD AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6B 89 02 00 F4 03 04 00 EE A1 16 67 B6 04 01 00 00 18 F1 96 98 9D 85 70 DD [01:10:07]CommunicateWithHost err = 0 [01:10:07]CheckOFDResponse [01:10:07]1017 (14) - 77093643461234 [01:10:07]1041 (16) - 0000000000871759 [01:10:07]1040 (4) - 166251 [01:10:07]1012 (4) - 21.10.2024 18:48 [01:10:07]1206 (1) - 0 [01:10:07]OFD Sender: Remove packet 166251 [01:10:07]ProducePacketName [01:10:07]name=ofd_packets/00166251 [01:10:07]NVStorageDeleteData [01:10:07]Write to MH i2c: 01 00 00 EF 93 82 [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 07 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: 01 07 00 EF 93 00 00 00 00 00 5E 0C F3 [01:10:07]RasterBufferAndPrint [01:10:07]line [01:10:07]line [01:10:07]line [01:10:07]line [01:10:07]line [01:10:07]written 0, free lines is 3173 [01:10:07]MH_Cut [01:10:07]Write to MH i2c: D1 01 00 F6 93 01 5B [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: D1 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: D1 01 00 [01:10:07]MH_I2C_Read... [01:10:07]Read from MH i2c: D1 01 00 F6 93 00 5A [01:10:07]Write to MH i2c: 01 00 00 F7 93 8A [01:10:07]Write i2c OK [01:10:07]MH_I2C_Read... [01:10:07]OFD Sender: No OFD packet to send [01:10:08]*** Cut start [01:10:08]*** Partial cut [01:10:08]*** CUTSNS_PIN = 1 [01:10:08]*** CUTSNS_PIN = 0 [01:10:08]*** Brake cut motor [01:10:08]Read from MH i2c: 01 [01:10:08]MH_I2C_Read... [01:10:08]*** Stop cut motor [01:10:08]*** Cut end [01:10:08]Read from MH i2c: 01 07 00 [01:10:08]MH_I2C_Read... [01:10:08]Read from MH i2c: 01 07 00 F7 93 00 00 00 00 00 FF 0F 9F [01:10:08]process_action close_receipt done [01:10:08]requested_data is exist [01:10:08]produce_requested_data [01:10:08]requested_item fm.sn is exist - process it [01:10:08]wFMCommunicate request_size=4 [01:10:08]MH_SAM_APDU [01:10:08]CAPDU: 80 11 00 00 [01:10:08]Write to MH i2c: E2 08 00 F8 93 80 11 00 00 00 00 00 00 05 [01:10:08]Write i2c OK [01:10:08]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 17 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 17 00 F8 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 5D [01:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:10:09]wFMCommunicate OK [01:10:09]requested_item fd.num is exist - process it [01:10:09]SAM_PROTO_GetFieldsCounters [01:10:09]wFMCommunicate request_size=4 [01:10:09]MH_SAM_APDU [01:10:09]CAPDU: 80 13 00 00 [01:10:09]Write to MH i2c: E2 08 00 F9 93 80 13 00 00 00 00 00 00 08 [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 62 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 62 00 F9 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 89 02 00 0E 04 04 00 18 02 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 52 [01:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6B 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:10:09]wFMCommunicate OK [01:10:09]SAM_PROTO_GetFieldsCounters done [01:10:09]requested_item shift.num is exist - process it [01:10:09]requested_item shift.opened is exist - process it [01:10:09]req_shift_opened [01:10:09]FM_GetShiftState [01:10:09]SAM_PROTO_GetShiftState [01:10:09]wFMCommunicate request_size=4 [01:10:09]MH_SAM_APDU [01:10:09]CAPDU: 80 13 01 00 [01:10:09]Write to MH i2c: E2 08 00 FA 93 80 13 01 00 00 00 00 00 0A [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:10:09]Read from MH i2c: E2 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 0E 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: E2 0E 00 FA 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5D [01:10:09]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:10:09]wFMCommunicate OK [01:10:09]SAM_PROTO_GetShiftState done [01:10:09]FM_GetShiftState done [01:10:09]req_shift_opened done [01:10:09]requested_item shift.open_date is exist - process it [01:10:09]req_shift_open_date [01:10:09]req_shift_open_date done [01:10:09]produce_requested_data done [01:10:09]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166251,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [01:10:09]process_action_free close_receipt [01:10:09]json_value_free [01:10:09]json_value_free done [01:10:09]process_json_proto returns [01:10:09]Send response to host [01:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166251,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [01:10:09]free response buf [01:10:09]execute_script done [01:10:09]execute_script returns [01:10:09]free content buf [01:10:09]Sock 6.Close socket [01:10:09]Sock 6.Thread stoped [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:10]accept exits with 5 [01:12:10]New connection [01:12:10]New thread 3066920292 created [01:12:10]Thread 3066776932 joined [01:12:10]Waiting for new connection... [01:12:10] Sock 5.Parse request [01:12:10]Sock 5.Check first char [01:12:10]Sock 5.First char is OK [01:12:10]request: POST /json_proto HTTP/1.0 [01:12:10]Method: POST [01:12:10]URL: /json_proto [01:12:10]Method is POST - this is cgi request [01:12:10]url: /json_proto [01:12:10]query_string will be loaded in cgi processing [01:12:10]execute_cgi json_proto POST (null) [01:12:10]execute_cgi path=json_proto method=POST [01:12:10]POST find Content-Length [01:12:10]Host: 172.17.53.195:8080 [01:12:10]Content-Length: 677 [01:12:10]Content-Type: application/json [01:12:10] [01:12:10]POST finish read [01:12:10]Found Content-Length = 677 [01:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:10]execute_script... [01:12: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)220824", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:12:10]POST & json_proto [01:12:10]process_json_proto [01:12:10]json parsed OK: [01:12:10]protocol is kg_v1.0 [01:12:10]action value=close_receipt [01:12:10]process_action close_receipt [01:12:10]cmd_close_receipt [01:12:10]MH_GetDate [01:12:10]Write to MH i2c: F0 00 00 FB 93 7D [01:12:10]Write i2c OK [01:12:10]MH_I2C_Read... [01:12:10]Read from MH i2c: F0 [01:12:10]MH_I2C_Read... [01:12:10]Read from MH i2c: F0 09 00 [01:12:10]MH_I2C_Read... [01:12:10]Read from MH i2c: F0 09 00 FB 93 00 00 FC 16 67 21 48 4A 65 17 [01:12:10]GetLastDocTimeStamp 1729559426 [01:12:10]current date 1729559552 [01:12:10]FM_GetShiftState [01:12:10]SAM_PROTO_GetShiftState [01:12:10]wFMCommunicate request_size=4 [01:12:10]MH_SAM_APDU [01:12:10]CAPDU: 80 13 01 00 [01:12:10]Write to MH i2c: E2 08 00 FC 93 80 13 01 00 00 00 00 00 0C [01:12:10]Write i2c OK [01:12:10]MH_I2C_Read... [01:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:10]Read from MH i2c: E2 [01:12:10]MH_I2C_Read... [01:12:10]Read from MH i2c: E2 0E 00 [01:12:10]MH_I2C_Read... [01:12:10]Read from MH i2c: E2 0E 00 FC 93 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 5F [01:12:10]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:12:10]wFMCommunicate OK [01:12:10]SAM_PROTO_GetShiftState done [01:12:10]FM_GetShiftState done [01:12:10]opened in 1729557463 [01:12:10]opened+sec_in_day 1729643863 [01:12:10]quantity*price = 60009 [01:12:10]sum+1 = 60010 [01:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 7 22.10.2024 01:12 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166252 ФПД: 29167651288482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011232&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166252&fm=29167651288482&tin=02508201610067®Number=0000000000091764&sum=60000 [01:12:12]StoreToDocumentArchive [01:12:12]shift 536 fd 166252 [01:12:12]save to /storage/0536/doc_00166252 [01:12:12]save last doc name /storage/0536/doc_00166252 to /storage/kkm_last_doc_name [01:12:12]save OK [01:12:12]Clear old archive folders... [01:12:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:12:12]tlvbuf is 014457B0 [01:12:12]SAM_PROTO_ClearQueue [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 09 00 00 [01:12:12]Write to MH i2c: E2 08 00 09 94 80 09 00 00 00 00 00 00 0F [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 09 94 00 90 00 11 [01:12:12]RAPDU: 90 00 [01:12:12]wFMCommunicate OK [01:12:12]SAM_PROTO_ClearQueue done [01:12:12]KKMCreateOFDPacket [01:12:12]OFDProtocolAddRootSTLVToBuf [01:12:12]FM_MakeSignedData [01:12:12]FM_MakeSignedData [01:12:12]SAM_PROTO_SignData [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 0D 01 02 [01:12:12]Write to MH i2c: E2 08 00 0A 94 80 0D 01 02 00 00 00 00 17 [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 0A 94 00 90 00 12 [01:12:12]RAPDU: 90 00 [01:12:12]wFMCommunicate OK [01:12:12]wFMCommunicate request_size=255 [01:12:12]MH_SAM_APDU [01:12: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 00 FC 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 89 02 00 35 04 06 00 1A [01:12:12]Write to MH i2c: E2 02 01 0B 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 00 FC 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 89 02 00 35 04 06 00 1A 00 00 35 [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 0B 94 00 90 00 13 [01:12:12]RAPDU: 90 00 [01:12:12]wFMCommunicate OK [01:12:12]wFMCommunicate request_size=10 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 0D 02 02 05 87 1F 7E 75 A2 [01:12:12]Write to MH i2c: E2 0D 00 0C 94 80 0D 02 02 05 00 87 1F 7E 75 A2 00 00 5F [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 03 00 0C 94 00 90 00 14 [01:12:12]RAPDU: 90 00 [01:12:12]wFMCommunicate OK [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 0D 03 02 [01:12:12]Write to MH i2c: E2 08 00 0D 94 80 0D 03 02 00 00 00 00 1C [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 0B 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 0B 00 0D 94 00 C2 58 D1 72 70 0E 38 A1 90 00 D1 [01:12:12]RAPDU: C2 58 D1 72 70 0E 38 A1 90 00 [01:12:12]wFMCommunicate OK [01:12:12]SAM_PROTO_SignData done [01:12:12]FM_MakeSignedData done [01:12:12]CreateOFDProtocolMessage [01:12:12]wFMCommunicate request_size=4 [01:12:12]MH_SAM_APDU [01:12:12]CAPDU: 80 11 00 00 [01:12:12]Write to MH i2c: E2 08 00 0E 94 80 11 00 00 00 00 00 00 1C [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:12]Read from MH i2c: E2 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 17 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: E2 17 00 0E 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 74 [01:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:12:12]wFMCommunicate OK [01:12:12]CreateOFDProtocolMessage done [01:12:12]OFDSenderStorePacket 166252 [01:12:12]StoreOFDPacket docnum=166252 [01:12:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 93 BE 07 01 30 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 00 FC 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 89 02 00 35 04 06 00 1A 87 1F 7E 75 A2 C2 58 D1 72 70 0E 38 A1 [01:12:12]CheckFolder [01:12:12]dirname=/storage/ofd_packets [01:12:12]CheckFolder done [01:12:12]ProducePacketName [01:12:12]name=ofd_packets/00166252 [01:12:12]NVStorageSaveData ofd_packets/00166252 [01:12:12]File name is /storage/ofd_packets/00166252 [01:12:12]Write 301 bytes [01:12:12]NVStorageSaveData done [01:12:12]OFDSenderStorePacket done [01:12:12]KKMCreateOFDPacket done [01:12:12]NVStorageSaveData kkm_last_timestamp [01:12:12]File name is /storage/kkm_last_timestamp [01:12:12]Write 4 bytes [01:12:12]NVStorageSaveData done [01:12:12]ExternCall_PrintAddStr [01:12:12]wPrintStart [01:12:12]Write to MH i2c: 01 00 00 0F 94 A3 [01:12:12]Write i2c OK [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 07 00 [01:12:12]MH_I2C_Read... [01:12:12]Read from MH i2c: 01 07 00 0F 94 00 00 00 00 00 FF 0F B8 [01:12:12]RasterBufferAndPrint [01:12:12]line Счет N : (1)220824 [01:12:12]line ИНН: 02508201610067 [01:12:12]line Контрольно-Кассовый Чек [01:12:12]line ПРОДАЖА [01:12:12]line ТРК (МРК, ГНК) : 33 [01:12:12]line Товар: 2710124130 [01:12:12]line Аи-92-К-5 [01:12:12]line 8.970 * 66.90 [01:12:12]line = 600.09 [01:12:12]line НДС 12% НСП 1% [01:12:12]line > о реализуемом товаре [01:12:12]line ОКРУГЛЕНИЕ: -0.09 [01:12:12]line ИТОГО: 600.00 [01:12:12]line Внесено: 600.00 [01:12:12]line СДАЧА: 0.00 [01:12:12]line НСП 1% : 5.31 [01:12:12]line НДС 12% : 63.73 [01:12:12]line Наличными: 600.00 [01:12:12]line Безнал.: 0.00 [01:12:12]line Место: АЗС № 161 "Партнер Нефть" [01:12:12]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:12:12]line СНО: Общий режим [01:12:12]line Чек 7 22.10.2024 01:12 [01:12:12]line Смена: 536 ФФД: 1.0 [01:12:12]line ЗНМ: 0300000104 [01:12:12]line РНМ: 0000000000091764 [01:12:12]line Версия ККМ: 001 [01:12:12]line ФМ: 0000000000871759 [01:12:12]line ФД: 166252 [01:12:12]line ФПД: 29167651288482 [01:12:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T011232&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166252&fm=29167651288482&tin=02508201610067®Number=0000000000091764&sum=60000 [01:12:12]OFD Sender: Processing packet 166252 [packets to send 48, broken 47] [01:12:12]ProducePacketName [01:12:12]name=ofd_packets/00166252 [01:12:12]OFD Sender: To server: pG, [01:12:12]CommunicateWithHost lk.salyk.kg:30040 [01:12:12]ConnectInit lk.salyk.kg [01:12:12]written 0, free lines is 4095 [01:12:13]Connected sock=7 [01: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 35 39 0F 01 00 00 93 BE 07 01 30 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 00 FC 16 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 89 02 00 35 04 06 00 1A 87 1F 7E 75 A2 C2 58 D1 72 70 0E 38 A1 [01:12:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 4C 51 47 00 50 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6C 89 02 00 F4 03 04 00 6C A2 16 67 B6 04 01 00 00 E6 66 30 2E 86 EA 38 97 [01:12:13]CommunicateWithHost err = 0 [01:12:13]CheckOFDResponse [01:12:13]1017 (14) - 77093643461234 [01:12:13]1041 (16) - 0000000000871759 [01:12:13]1040 (4) - 166252 [01:12:13]1012 (4) - 21.10.2024 18:50 [01:12:13]1206 (1) - 0 [01:12:13]OFD Sender: Remove packet 166252 [01:12:13]ProducePacketName [01:12:13]name=ofd_packets/00166252 [01:12:13]NVStorageDeleteData [01:12:13]Write to MH i2c: 01 00 00 3A 94 CE [01:12:13]Write i2c OK [01:12:13]MH_I2C_Read... [01:12:13]Read from MH i2c: 01 [01:12:13]MH_I2C_Read... [01:12:13]Read from MH i2c: 01 07 00 [01:12:13]MH_I2C_Read... [01:12:13]Read from MH i2c: 01 07 00 3A 94 00 00 00 00 00 C2 0C A3 [01:12:13]RasterBufferAndPrint [01:12:13]line [01:12:13]line [01:12:13]line [01:12:13]line [01:12:13]line [01:12:13]written 0, free lines is 3275 [01:12:13]MH_Cut [01:12:13]Write to MH i2c: D1 01 00 41 94 01 A7 [01:12:13]Write i2c OK [01:12:13]MH_I2C_Read... [01:12:13]Read from MH i2c: D1 [01:12:13]MH_I2C_Read... [01:12:13]Read from MH i2c: D1 01 00 [01:12:13]MH_I2C_Read... [01:12:13]Read from MH i2c: D1 01 00 41 94 00 A6 [01:12:13]Write to MH i2c: 01 00 00 42 94 D6 [01:12:13]Write i2c OK [01:12:13]MH_I2C_Read... [01:12:13]OFD Sender: No OFD packet to send [01:12:14]*** Cut start [01:12:14]*** Partial cut [01:12:14]*** CUTSNS_PIN = 1 [01:12:14]*** CUTSNS_PIN = 0 [01:12:14]*** Brake cut motor [01:12:14]Read from MH i2c: 01 [01:12:14]MH_I2C_Read... [01:12:14]*** Stop cut motor [01:12:14]*** Cut end [01:12:14]Read from MH i2c: 01 07 00 [01:12:14]MH_I2C_Read... [01:12:14]Read from MH i2c: 01 07 00 42 94 00 00 00 00 00 FF 0F EB [01:12:14]process_action close_receipt done [01:12:14]requested_data is exist [01:12:14]produce_requested_data [01:12:14]requested_item fm.sn is exist - process it [01:12:14]wFMCommunicate request_size=4 [01:12:14]MH_SAM_APDU [01:12:14]CAPDU: 80 11 00 00 [01:12:14]Write to MH i2c: E2 08 00 43 94 80 11 00 00 00 00 00 00 51 [01:12:14]Write i2c OK [01:12:14]MH_I2C_Read... [01:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:12:14]Read from MH i2c: E2 [01:12:14]MH_I2C_Read... [01:12:14]Read from MH i2c: E2 17 00 [01:12:14]MH_I2C_Read... [01:12:14]Read from MH i2c: E2 17 00 43 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 A9 [01:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:12:14]wFMCommunicate OK [01:12:14]requested_item fd.num is exist - process it [01:12:14]SAM_PROTO_GetFieldsCounters [01:12:14]wFMCommunicate request_size=4 [01:12:14]MH_SAM_APDU [01:12:14]CAPDU: 80 13 00 00 [01:12:14]Write to MH i2c: E2 08 00 44 94 80 13 00 00 00 00 00 00 54 [01:12:14]Write i2c OK [01:12:14]MH_I2C_Read... [01:12:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:12:15]Read from MH i2c: E2 [01:12:15]MH_I2C_Read... [01:12:15]Read from MH i2c: E2 62 00 [01:12:15]MH_I2C_Read... [01:12:15]Read from MH i2c: E2 62 00 44 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [01: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 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6C 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:12:15]wFMCommunicate OK [01:12:15]SAM_PROTO_GetFieldsCounters done [01:12:15]requested_item shift.num is exist - process it [01:12:15]requested_item shift.opened is exist - process it [01:12:15]req_shift_opened [01:12:15]FM_GetShiftState [01:12:15]SAM_PROTO_GetShiftState [01:12:15]wFMCommunicate request_size=4 [01:12:15]MH_SAM_APDU [01:12:15]CAPDU: 80 13 01 00 [01:12:15]Write to MH i2c: E2 08 00 45 94 80 13 01 00 00 00 00 00 56 [01:12:15]Write i2c OK [01:12:15]MH_I2C_Read... [01:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:12:15]Read from MH i2c: E2 [01:12:15]MH_I2C_Read... [01:12:15]Read from MH i2c: E2 0E 00 [01:12:15]MH_I2C_Read... [01:12:15]Read from MH i2c: E2 0E 00 45 94 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 A9 [01:12:15]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:12:15]wFMCommunicate OK [01:12:15]SAM_PROTO_GetShiftState done [01:12:15]FM_GetShiftState done [01:12:15]req_shift_opened done [01:12:15]requested_item shift.open_date is exist - process it [01:12:15]req_shift_open_date [01:12:15]req_shift_open_date done [01:12:15]produce_requested_data done [01:12:15]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166252,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [01:12:15]process_action_free close_receipt [01:12:15]json_value_free [01:12:15]json_value_free done [01:12:15]process_json_proto returns [01:12:15]Send response to host [01:12:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166252,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [01:12:15]free response buf [01:12:15]execute_script done [01:12:15]execute_script returns [01:12:15]free content buf [01:12:15]Sock 5.Close socket [01:12:15]Sock 5.Thread stoped [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:44]OFD Sender: No OFD packet to send [01:19:49]OFD Sender: No OFD packet to send [01:19:54]OFD Sender: No OFD packet to send [01:19:59]OFD Sender: No OFD packet to send [01:20:04]OFD Sender: No OFD packet to send [01:20:09]OFD Sender: No OFD packet to send [01:20:14]OFD Sender: No OFD packet to send [01:20:19]OFD Sender: No OFD packet to send [01:20:24]OFD Sender: No OFD packet to send [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:49]OFD Sender: No OFD packet to send [01:20:54]OFD Sender: No OFD packet to send [01:20:59]OFD Sender: No OFD packet to send [01:21:04]OFD Sender: No OFD packet to send [01:21:09]OFD Sender: No OFD packet to send [01:21:14]OFD Sender: No OFD packet to send [01:21:19]OFD Sender: No OFD packet to send [01:21:24]OFD Sender: No OFD packet to send [01:21:29]OFD Sender: No OFD packet to send [01:21:34]OFD Sender: No OFD packet to send [01:21:39]OFD Sender: No OFD packet to send [01:21:44]OFD Sender: No OFD packet to send [01:21:49]OFD Sender: No OFD packet to send [01:21:54]OFD Sender: No OFD packet to send [01:21:59]OFD Sender: No OFD packet to send [01:22:04]OFD Sender: No OFD packet to send [01:22:09]OFD Sender: No OFD packet to send [01:22:14]OFD Sender: No OFD packet to send [01:22:19]OFD Sender: No OFD packet to send [01:22:24]OFD Sender: No OFD packet to send [01:22:29]OFD Sender: No OFD packet to send [01:22:34]OFD Sender: No OFD packet to send [01:22:39]OFD Sender: No OFD packet to send [01:22:44]OFD Sender: No OFD packet to send [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]OFD Sender: No OFD packet to send [01:24:09]OFD Sender: No OFD packet to send [01:24:14]OFD Sender: No OFD packet to send [01:24:19]OFD Sender: No OFD packet to send [01:24:24]OFD Sender: No OFD packet to send [01:24:29]OFD Sender: No OFD packet to send [01:24:34]OFD Sender: No OFD packet to send [01:24:39]OFD Sender: No OFD packet to send [01:24:44]OFD Sender: No OFD packet to send [01:24:49]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:25]accept exits with 6 [01:36:25]New connection [01:36:25]New thread 3066776932 created [01:36:25]Thread 3066920292 joined [01:36:25]Waiting for new connection... [01:36:25] Sock 6.Parse request [01:36:25]Sock 6.Check first char [01:36:25]Sock 6.First char is OK [01:36:25]request: POST /json_proto HTTP/1.0 [01:36:25]Method: POST [01:36:25]URL: /json_proto [01:36:25]Method is POST - this is cgi request [01:36:25]url: /json_proto [01:36:25]query_string will be loaded in cgi processing [01:36:25]execute_cgi json_proto POST (null) [01:36:25]execute_cgi path=json_proto method=POST [01:36:25]POST find Content-Length [01:36:25]Host: 172.17.53.195:8080 [01:36:25]Content-Length: 674 [01:36:25]Content-Type: application/json [01:36:25] [01:36:25]POST finish read [01:36:25]Found Content-Length = 674 [01:36:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:25]execute_script... [01:36: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)220825", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:36:25]POST & json_proto [01:36:25]process_json_proto [01:36:25]json parsed OK: [01:36:25]protocol is kg_v1.0 [01:36:25]action value=close_receipt [01:36:25]process_action close_receipt [01:36:25]cmd_close_receipt [01:36:25]MH_GetDate [01:36:25]Write to MH i2c: F0 00 00 46 94 C9 [01:36:25]Write i2c OK [01:36:25]MH_I2C_Read... [01:36:25]Read from MH i2c: F0 [01:36:25]MH_I2C_Read... [01:36:25]Read from MH i2c: F0 09 00 [01:36:25]MH_I2C_Read... [01:36:25]Read from MH i2c: F0 09 00 46 94 00 AE 01 17 67 21 48 4A 65 17 [01:36:25]GetLastDocTimeStamp 1729559552 [01:36:25]current date 1729561006 [01:36:25]FM_GetShiftState [01:36:25]SAM_PROTO_GetShiftState [01:36:25]wFMCommunicate request_size=4 [01:36:25]MH_SAM_APDU [01:36:25]CAPDU: 80 13 01 00 [01:36:25]Write to MH i2c: E2 08 00 47 94 80 13 01 00 00 00 00 00 58 [01:36:25]Write i2c OK [01:36:25]MH_I2C_Read... [01:36:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:25]Read from MH i2c: E2 [01:36:25]MH_I2C_Read... [01:36:25]Read from MH i2c: E2 0E 00 [01:36:25]MH_I2C_Read... [01:36:25]Read from MH i2c: E2 0E 00 47 94 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 AB [01:36:25]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:36:25]wFMCommunicate OK [01:36:25]SAM_PROTO_GetShiftState done [01:36:25]FM_GetShiftState done [01:36:25]opened in 1729557463 [01:36:25]opened+sec_in_day 1729643863 [01:36:25]quantity*price = 70027 [01:36:25]sum+1 = 70029 [01:36:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 8 22.10.2024 01:36 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166253 ФПД: 70901101510455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013646&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166253&fm=70901101510455&tin=02508201610067®Number=0000000000091764&sum=70000 [01:36:26]StoreToDocumentArchive [01:36:26]shift 536 fd 166253 [01:36:26]save to /storage/0536/doc_00166253 [01:36:26]save last doc name /storage/0536/doc_00166253 to /storage/kkm_last_doc_name [01:36:26]save OK [01:36:26]Clear old archive folders... [01:36:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [01:36:26]tlvbuf is 0157EC40 [01:36:26]SAM_PROTO_ClearQueue [01:36:26]wFMCommunicate request_size=4 [01:36:26]MH_SAM_APDU [01:36:26]CAPDU: 80 09 00 00 [01:36:26]Write to MH i2c: E2 08 00 54 94 80 09 00 00 00 00 00 00 5A [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:36:26]Read from MH i2c: E2 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 54 94 00 90 00 5C [01:36:26]RAPDU: 90 00 [01:36:26]wFMCommunicate OK [01:36:26]SAM_PROTO_ClearQueue done [01:36:26]KKMCreateOFDPacket [01:36:26]OFDProtocolAddRootSTLVToBuf [01:36:26]FM_MakeSignedData [01:36:26]FM_MakeSignedData [01:36:26]SAM_PROTO_SignData [01:36:26]wFMCommunicate request_size=4 [01:36:26]MH_SAM_APDU [01:36:26]CAPDU: 80 0D 01 02 [01:36:26]Write to MH i2c: E2 08 00 55 94 80 0D 01 02 00 00 00 00 62 [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:36:26]Read from MH i2c: E2 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 55 94 00 90 00 5D [01:36:26]RAPDU: 90 00 [01:36:26]wFMCommunicate OK [01:36:26]wFMCommunicate request_size=255 [01:36:26]MH_SAM_APDU [01:36:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 AE 01 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 89 02 00 35 04 06 00 40 7B F2 F8 [01:36:26]Write to MH i2c: E2 02 01 56 94 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 AE 01 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 89 02 00 35 04 06 00 40 7B F2 F8 00 00 D6 [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:26]Read from MH i2c: E2 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 56 94 00 90 00 5E [01:36:26]RAPDU: 90 00 [01:36:26]wFMCommunicate OK [01:36:26]wFMCommunicate request_size=7 [01:36:26]MH_SAM_APDU [01:36:26]CAPDU: 80 0D 02 02 02 3F 37 [01:36:26]Write to MH i2c: E2 0A 00 57 94 80 0D 02 02 02 00 3F 37 00 00 DF [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:36:26]Read from MH i2c: E2 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 03 00 57 94 00 90 00 5F [01:36:26]RAPDU: 90 00 [01:36:26]wFMCommunicate OK [01:36:26]wFMCommunicate request_size=4 [01:36:26]MH_SAM_APDU [01:36:26]CAPDU: 80 0D 03 02 [01:36:26]Write to MH i2c: E2 08 00 58 94 80 0D 03 02 00 00 00 00 67 [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:36:26]Read from MH i2c: E2 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 0B 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 0B 00 58 94 00 38 50 F0 AF D4 E4 07 59 90 00 A7 [01:36:26]RAPDU: 38 50 F0 AF D4 E4 07 59 90 00 [01:36:26]wFMCommunicate OK [01:36:26]SAM_PROTO_SignData done [01:36:26]FM_MakeSignedData done [01:36:26]CreateOFDProtocolMessage [01:36:26]wFMCommunicate request_size=4 [01:36:26]MH_SAM_APDU [01:36:26]CAPDU: 80 11 00 00 [01:36:26]Write to MH i2c: E2 08 00 59 94 80 11 00 00 00 00 00 00 67 [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:26]Read from MH i2c: E2 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 17 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: E2 17 00 59 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 BF [01:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:36:26]wFMCommunicate OK [01:36:26]CreateOFDProtocolMessage done [01:36:26]OFDSenderStorePacket 166253 [01:36:26]StoreOFDPacket docnum=166253 [01:36:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BD 47 04 01 98 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 AE 01 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 89 02 00 35 04 06 00 40 7B F2 F8 3F 37 38 50 F0 AF D4 E4 07 59 [01:36:26]CheckFolder [01:36:26]dirname=/storage/ofd_packets [01:36:26]CheckFolder done [01:36:26]ProducePacketName [01:36:26]name=ofd_packets/00166253 [01:36:26]NVStorageSaveData ofd_packets/00166253 [01:36:26]File name is /storage/ofd_packets/00166253 [01:36:26]Write 298 bytes [01:36:26]NVStorageSaveData done [01:36:26]OFDSenderStorePacket done [01:36:26]KKMCreateOFDPacket done [01:36:26]NVStorageSaveData kkm_last_timestamp [01:36:26]File name is /storage/kkm_last_timestamp [01:36:26]Write 4 bytes [01:36:26]NVStorageSaveData done [01:36:26]ExternCall_PrintAddStr [01:36:26]wPrintStart [01:36:26]Write to MH i2c: 01 00 00 5A 94 EE [01:36:26]Write i2c OK [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: 01 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: 01 07 00 [01:36:26]MH_I2C_Read... [01:36:26]Read from MH i2c: 01 07 00 5A 94 00 00 00 00 00 FF 0F 03 [01:36:26]RasterBufferAndPrint [01:36:26]line Счет N : (1)220825 [01:36:26]line ИНН: 02508201610067 [01:36:26]line Контрольно-Кассовый Чек [01:36:26]line ПРОДАЖА [01:36:26]line ТРК (МРК, ГНК) : 11 [01:36:26]line Товар: 2710194210 [01:36:26]line ДТ-К-5 [01:36:26]line 9.190 * 76.20 [01:36:26]line = 700.28 [01:36:26]line НДС 12% НСП 1% [01:36:26]line > о реализуемом товаре [01:36:26]line ОКРУГЛЕНИЕ: -0.28 [01:36:26]line ИТОГО: 700.00 [01:36:26]line Внесено: 700.00 [01:36:26]line СДАЧА: 0.00 [01:36:26]line НСП 1% : 6.20 [01:36:26]line НДС 12% : 74.37 [01:36:26]line Наличными: 700.00 [01:36:26]line Безнал.: 0.00 [01:36:26]line Место: АЗС № 161 "Партнер Нефть" [01:36:26]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:36:26]line СНО: Общий режим [01:36:26]line Чек 8 22.10.2024 01:36 [01:36:26]line Смена: 536 ФФД: 1.0 [01:36:26]line ЗНМ: 0300000104 [01:36:26]line РНМ: 0000000000091764 [01:36:26]line Версия ККМ: 001 [01:36:26]line ФМ: 0000000000871759 [01:36:26]line ФД: 166253 [01:36:26]line ФПД: 70901101510455 [01:36:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T013646&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166253&fm=70901101510455&tin=02508201610067®Number=0000000000091764&sum=70000 [01:36:27]OFD Sender: Processing packet 166253 [packets to send 48, broken 47] [01:36:27]ProducePacketName [01:36:27]name=ofd_packets/00166253 [01:36:27]OFD Sender: To server: pG, [01:36:27]CommunicateWithHost lk.salyk.kg:30040 [01:36:27]ConnectInit lk.salyk.kg [01:36:27]written 0, free lines is 4095 [01:36:27]Connected sock=7 [01:36:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 BD 47 04 01 98 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 08 00 00 00 F4 03 04 00 AE 01 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 89 02 00 35 04 06 00 40 7B F2 F8 3F 37 38 50 F0 AF D4 E4 07 59 [01:36:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 5D DF 47 00 1E 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6D 89 02 00 F4 03 04 00 1B A8 16 67 B6 04 01 00 00 F0 8E 65 9E 27 A7 38 EB [01:36:27]CommunicateWithHost err = 0 [01:36:27]CheckOFDResponse [01:36:27]1017 (14) - 77093643461234 [01:36:27]1041 (16) - 0000000000871759 [01:36:27]1040 (4) - 166253 [01:36:27]1012 (4) - 21.10.2024 19:14 [01:36:27]1206 (1) - 0 [01:36:27]OFD Sender: Remove packet 166253 [01:36:27]ProducePacketName [01:36:27]name=ofd_packets/00166253 [01:36:27]NVStorageDeleteData [01:36:27]Write to MH i2c: 01 00 00 85 94 19 [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: 01 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: 01 07 00 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: 01 07 00 85 94 00 00 00 00 00 B7 0C E3 [01:36:27]RasterBufferAndPrint [01:36:27]line [01:36:27]line [01:36:27]line [01:36:27]line [01:36:27]line [01:36:27]written 0, free lines is 3263 [01:36:27]MH_Cut [01:36:27]Write to MH i2c: D1 01 00 8C 94 01 F2 [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: D1 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: D1 01 00 [01:36:27]MH_I2C_Read... [01:36:27]Read from MH i2c: D1 01 00 8C 94 00 F1 [01:36:27]Write to MH i2c: 01 00 00 8D 94 21 [01:36:27]Write i2c OK [01:36:27]MH_I2C_Read... [01:36:28]OFD Sender: No OFD packet to send [01:36:28]*** Cut start [01:36:28]*** Partial cut [01:36:28]*** CUTSNS_PIN = 1 [01:36:28]*** CUTSNS_PIN = 0 [01:36:28]*** Brake cut motor [01:36:29]Read from MH i2c: 01 [01:36:29]MH_I2C_Read... [01:36:29]*** Stop cut motor [01:36:29]*** Cut end [01:36:29]Read from MH i2c: 01 07 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: 01 07 00 8D 94 00 00 00 00 00 FF 0F 36 [01:36:29]process_action close_receipt done [01:36:29]requested_data is exist [01:36:29]produce_requested_data [01:36:29]requested_item fm.sn is exist - process it [01:36:29]wFMCommunicate request_size=4 [01:36:29]MH_SAM_APDU [01:36:29]CAPDU: 80 11 00 00 [01:36:29]Write to MH i2c: E2 08 00 8E 94 80 11 00 00 00 00 00 00 9C [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:36:29]Read from MH i2c: E2 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: E2 17 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: E2 17 00 8E 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 F4 [01:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:36:29]wFMCommunicate OK [01:36:29]requested_item fd.num is exist - process it [01:36:29]SAM_PROTO_GetFieldsCounters [01:36:29]wFMCommunicate request_size=4 [01:36:29]MH_SAM_APDU [01:36:29]CAPDU: 80 13 00 00 [01:36:29]Write to MH i2c: E2 08 00 8F 94 80 13 00 00 00 00 00 00 9F [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:36:29]Read from MH i2c: E2 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: E2 62 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: E2 62 00 8F 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [01:36:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6D 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:36:29]wFMCommunicate OK [01:36:29]SAM_PROTO_GetFieldsCounters done [01:36:29]requested_item shift.num is exist - process it [01:36:29]requested_item shift.opened is exist - process it [01:36:29]req_shift_opened [01:36:29]FM_GetShiftState [01:36:29]SAM_PROTO_GetShiftState [01:36:29]wFMCommunicate request_size=4 [01:36:29]MH_SAM_APDU [01:36:29]CAPDU: 80 13 01 00 [01:36:29]Write to MH i2c: E2 08 00 90 94 80 13 01 00 00 00 00 00 A1 [01:36:29]Write i2c OK [01:36:29]MH_I2C_Read... [01:36:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:36:29]Read from MH i2c: E2 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: E2 0E 00 [01:36:29]MH_I2C_Read... [01:36:29]Read from MH i2c: E2 0E 00 90 94 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F4 [01:36:29]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:36:29]wFMCommunicate OK [01:36:29]SAM_PROTO_GetShiftState done [01:36:29]FM_GetShiftState done [01:36:29]req_shift_opened done [01:36:29]requested_item shift.open_date is exist - process it [01:36:29]req_shift_open_date [01:36:29]req_shift_open_date done [01:36:29]produce_requested_data done [01:36:29]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166253,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [01:36:29]process_action_free close_receipt [01:36:29]json_value_free [01:36:29]json_value_free done [01:36:29]process_json_proto returns [01:36:29]Send response to host [01:36:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166253,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [01:36:29]free response buf [01:36:29]execute_script done [01:36:29]execute_script returns [01:36:29]free content buf [01:36:29]Sock 6.Close socket [01:36:29]Sock 6.Thread stoped [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:48]accept exits with 5 [01:56:48]New connection [01:56:48]New thread 3066920292 created [01:56:48]Thread 3066776932 joined [01:56:48]Waiting for new connection... [01:56:48] Sock 5.Parse request [01:56:48]Sock 5.Check first char [01:56:48]Sock 5.First char is OK [01:56:48]request: POST /json_proto HTTP/1.0 [01:56:48]Method: POST [01:56:48]URL: /json_proto [01:56:48]Method is POST - this is cgi request [01:56:48]url: /json_proto [01:56:48]query_string will be loaded in cgi processing [01:56:48]execute_cgi json_proto POST (null) [01:56:48]execute_cgi path=json_proto method=POST [01:56:48]POST find Content-Length [01:56:48]Host: 172.17.53.195:8080 [01:56:48]Content-Length: 766 [01:56:48]Content-Type: application/json [01:56:48] [01:56:48]POST finish read [01:56:48]Found Content-Length = 766 [01:56:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:48]execute_script... [01:56:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220826", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:48]POST & json_proto [01:56:48]process_json_proto [01:56:48]json parsed OK: [01:56:48]protocol is kg_v1.0 [01:56:48]action value=close_receipt [01:56:48]process_action close_receipt [01:56:48]cmd_close_receipt [01:56:48]MH_GetDate [01:56:48]Write to MH i2c: F0 00 00 91 94 14 [01:56:48]Write i2c OK [01:56:48]MH_I2C_Read... [01:56:48]Read from MH i2c: F0 [01:56:48]MH_I2C_Read... [01:56:48]Read from MH i2c: F0 09 00 [01:56:48]MH_I2C_Read... [01:56:48]Read from MH i2c: F0 09 00 91 94 00 76 06 17 67 21 48 4A 65 2F [01:56:48]GetLastDocTimeStamp 1729561006 [01:56:48]current date 1729562230 [01:56:48]FM_GetShiftState [01:56:48]SAM_PROTO_GetShiftState [01:56:48]wFMCommunicate request_size=4 [01:56:48]MH_SAM_APDU [01:56:48]CAPDU: 80 13 01 00 [01:56:48]Write to MH i2c: E2 08 00 92 94 80 13 01 00 00 00 00 00 A3 [01:56:48]Write i2c OK [01:56:48]MH_I2C_Read... [01:56:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:48]Read from MH i2c: E2 [01:56:48]MH_I2C_Read... [01:56:48]Read from MH i2c: E2 0E 00 [01:56:48]MH_I2C_Read... [01:56:48]Read from MH i2c: E2 0E 00 92 94 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 F6 [01:56:48]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:56:48]wFMCommunicate OK [01:56:48]SAM_PROTO_GetShiftState done [01:56:48]FM_GetShiftState done [01:56:48]opened in 1729557463 [01:56:48]opened+sec_in_day 1729643863 [01:56:48]quantity*price = 50041 [01:56:48]sum+1 = 50042 [01:56:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 9 22.10.2024 01:57 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871759 ФД: 166254 ФПД: 20586161239783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T015710&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166254&fm=20586161239783&tin=02508201610067®Number=0000000000091764&sum=50041 [01:56:49]StoreToDocumentArchive [01:56:49]shift 536 fd 166254 [01:56:49]save to /storage/0536/doc_00166254 [01:56:49]save last doc name /storage/0536/doc_00166254 to /storage/kkm_last_doc_name [01:56:49]save OK [01:56:49]Clear old archive folders... [01:56:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:56:49]tlvbuf is 01640050 [01:56:49]SAM_PROTO_ClearQueue [01:56:49]wFMCommunicate request_size=4 [01:56:49]MH_SAM_APDU [01:56:49]CAPDU: 80 09 00 00 [01:56:49]Write to MH i2c: E2 08 00 9F 94 80 09 00 00 00 00 00 00 A5 [01:56:49]Write i2c OK [01:56:49]MH_I2C_Read... [01:56:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:56:49]Read from MH i2c: E2 [01:56:49]MH_I2C_Read... [01:56:49]Read from MH i2c: E2 03 00 [01:56:49]MH_I2C_Read... [01:56:49]Read from MH i2c: E2 03 00 9F 94 00 90 00 A7 [01:56:49]RAPDU: 90 00 [01:56:49]wFMCommunicate OK [01:56:49]SAM_PROTO_ClearQueue done [01:56:49]KKMCreateOFDPacket [01:56:49]OFDProtocolAddRootSTLVToBuf [01:56:49]FM_MakeSignedData [01:56:49]FM_MakeSignedData [01:56:49]SAM_PROTO_SignData [01:56:49]wFMCommunicate request_size=4 [01:56:49]MH_SAM_APDU [01:56:49]CAPDU: 80 0D 01 02 [01:56:49]Write to MH i2c: E2 08 00 A0 94 80 0D 01 02 00 00 00 00 AD [01:56:49]Write i2c OK [01:56:49]MH_I2C_Read... [01:56:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:56:50]Read from MH i2c: E2 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 03 00 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 03 00 A0 94 00 90 00 A8 [01:56:50]RAPDU: 90 00 [01:56:50]wFMCommunicate OK [01:56:50]wFMCommunicate request_size=255 [01:56:50]MH_SAM_APDU [01:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 06 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 89 02 00 35 04 06 00 12 [01:56:50]Write to MH i2c: E2 02 01 A1 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 06 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 89 02 00 35 04 06 00 12 00 00 BD [01:56:50]Write i2c OK [01:56:50]MH_I2C_Read... [01:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:50]Read from MH i2c: E2 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 03 00 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 03 00 A1 94 00 90 00 A9 [01:56:50]RAPDU: 90 00 [01:56:50]wFMCommunicate OK [01:56:50]wFMCommunicate request_size=10 [01:56:50]MH_SAM_APDU [01:56:50]CAPDU: 80 0D 02 02 05 B9 16 D3 F6 E7 [01:56:50]Write to MH i2c: E2 0D 00 A2 94 80 0D 02 02 05 00 B9 16 D3 F6 E7 00 00 39 [01:56:50]Write i2c OK [01:56:50]MH_I2C_Read... [01:56:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:50]Read from MH i2c: E2 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 03 00 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 03 00 A2 94 00 90 00 AA [01:56:50]RAPDU: 90 00 [01:56:50]wFMCommunicate OK [01:56:50]wFMCommunicate request_size=4 [01:56:50]MH_SAM_APDU [01:56:50]CAPDU: 80 0D 03 02 [01:56:50]Write to MH i2c: E2 08 00 A3 94 80 0D 03 02 00 00 00 00 B2 [01:56:50]Write i2c OK [01:56:50]MH_I2C_Read... [01:56:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:56:50]Read from MH i2c: E2 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 0B 00 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 0B 00 A3 94 00 9D 4B 60 FE 6F 60 AE B9 90 00 2F [01:56:50]RAPDU: 9D 4B 60 FE 6F 60 AE B9 90 00 [01:56:50]wFMCommunicate OK [01:56:50]SAM_PROTO_SignData done [01:56:50]FM_MakeSignedData done [01:56:50]CreateOFDProtocolMessage [01:56:50]wFMCommunicate request_size=4 [01:56:50]MH_SAM_APDU [01:56:50]CAPDU: 80 11 00 00 [01:56:50]Write to MH i2c: E2 08 00 A4 94 80 11 00 00 00 00 00 00 B2 [01:56:50]Write i2c OK [01:56:50]MH_I2C_Read... [01:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:50]Read from MH i2c: E2 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 17 00 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: E2 17 00 A4 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 0A [01:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:56:50]wFMCommunicate OK [01:56:50]CreateOFDProtocolMessage done [01:56:50]OFDSenderStorePacket 166254 [01:56:50]StoreOFDPacket docnum=166254 [01:56:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9A 42 07 01 DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 06 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 89 02 00 35 04 06 00 12 B9 16 D3 F6 E7 9D 4B 60 FE 6F 60 AE B9 [01:56:50]CheckFolder [01:56:50]dirname=/storage/ofd_packets [01:56:50]CheckFolder done [01:56:50]ProducePacketName [01:56:50]name=ofd_packets/00166254 [01:56:50]NVStorageSaveData ofd_packets/00166254 [01:56:50]File name is /storage/ofd_packets/00166254 [01:56:50]Write 301 bytes [01:56:50]NVStorageSaveData done [01:56:50]OFDSenderStorePacket done [01:56:50]KKMCreateOFDPacket done [01:56:50]NVStorageSaveData kkm_last_timestamp [01:56:50]File name is /storage/kkm_last_timestamp [01:56:50]Write 4 bytes [01:56:50]NVStorageSaveData done [01:56:50]ExternCall_PrintAddStr [01:56:50]wPrintStart [01:56:50]Write to MH i2c: 01 00 00 A5 94 39 [01:56:50]Write i2c OK [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: 01 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: 01 07 00 [01:56:50]MH_I2C_Read... [01:56:50]Read from MH i2c: 01 07 00 A5 94 00 00 00 00 00 FF 0F 4E [01:56:50]RasterBufferAndPrint [01:56:50]line Счет N : (1)220826 [01:56:50]line ИНН: 02508201610067 [01:56:50]line Контрольно-Кассовый Чек [01:56:50]line ПРОДАЖА [01:56:50]line ТРК (МРК, ГНК) : 13 [01:56:50]line Товар: 2710124130 [01:56:50]line Аи-92-К-5 [01:56:50]line 7.480 * 66.90 [01:56:50]line = 500.41 [01:56:50]line НДС 12% НСП 1% [01:56:50]line > о реализуемом товаре [01:56:50]line ИТОГО: 500.41 [01:56:50]line НСП 1% : 4.43 [01:56:50]line НДС 12% : 53.14 [01:56:50]line Наличными: 0.00 [01:56:50]line Безнал.: 500.41 [01:56:50]line Место: АЗС № 161 "Партнер Нефть" [01:56:50]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [01:56:50]line СНО: Общий режим [01:56:50]line Чек 9 22.10.2024 01:57 [01:56:50]line Смена: 536 ФФД: 1.0 [01:56:50]line ЗНМ: 0300000104 [01:56:50]line РНМ: 0000000000091764 [01:56:50]line Версия ККМ: 001 [01:56:50]line Платежная система: Mbank [01:56:50]line ФМ: 0000000000871759 [01:56:50]line ФД: 166254 [01:56:50]line ФПД: 20586161239783 [01:56:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T015710&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166254&fm=20586161239783&tin=02508201610067®Number=0000000000091764&sum=50041 [01:56:50]OFD Sender: Processing packet 166254 [packets to send 48, broken 47] [01:56:50]ProducePacketName [01:56:50]name=ofd_packets/00166254 [01:56:50]OFD Sender: To server: pG, [01:56:50]CommunicateWithHost lk.salyk.kg:30040 [01:56:50]ConnectInit lk.salyk.kg [01:56:50]written 0, free lines is 4095 [01:56:50]Connected sock=7 [01:56:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 9A 42 07 01 DE 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 76 06 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 89 02 00 35 04 06 00 12 B9 16 D3 F6 E7 9D 4B 60 FE 6F 60 AE B9 [01:56:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 0B 9E 47 00 30 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6E 89 02 00 F4 03 04 00 E2 AC 16 67 B6 04 01 00 00 97 B7 8F E1 E0 B7 F9 DE [01:56:51]CommunicateWithHost err = 0 [01:56:51]CheckOFDResponse [01:56:51]1017 (14) - 77093643461234 [01:56:51]1041 (16) - 0000000000871759 [01:56:51]1040 (4) - 166254 [01:56:51]1012 (4) - 21.10.2024 19:34 [01:56:51]1206 (1) - 0 [01:56:51]OFD Sender: Remove packet 166254 [01:56:51]ProducePacketName [01:56:51]name=ofd_packets/00166254 [01:56:51]NVStorageDeleteData [01:56:51]Write to MH i2c: 01 00 00 CE 94 62 [01:56:51]Write i2c OK [01:56:51]MH_I2C_Read... [01:56:51]Read from MH i2c: 01 [01:56:51]MH_I2C_Read... [01:56:51]Read from MH i2c: 01 07 00 [01:56:51]MH_I2C_Read... [01:56:51]Read from MH i2c: 01 07 00 CE 94 00 00 00 00 00 D3 0C 48 [01:56:51]RasterBufferAndPrint [01:56:51]line [01:56:51]line [01:56:51]line [01:56:51]line [01:56:51]line [01:56:51]written 0, free lines is 3289 [01:56:51]MH_Cut [01:56:51]Write to MH i2c: D1 01 00 D5 94 01 3B [01:56:51]Write i2c OK [01:56:51]MH_I2C_Read... [01:56:51]Read from MH i2c: D1 [01:56:51]MH_I2C_Read... [01:56:51]Read from MH i2c: D1 01 00 [01:56:51]MH_I2C_Read... [01:56:51]Read from MH i2c: D1 01 00 D5 94 00 3A [01:56:51]Write to MH i2c: 01 00 00 D6 94 6A [01:56:51]Write i2c OK [01:56:51]MH_I2C_Read... [01:56:51]OFD Sender: No OFD packet to send [01:56:52]*** Cut start [01:56:52]*** Partial cut [01:56:52]*** CUTSNS_PIN = 1 [01:56:52]*** CUTSNS_PIN = 0 [01:56:52]*** Brake cut motor [01:56:52]Read from MH i2c: 01 [01:56:52]MH_I2C_Read... [01:56:52]*** Stop cut motor [01:56:52]*** Cut end [01:56:52]Read from MH i2c: 01 07 00 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: 01 07 00 D6 94 00 00 00 00 00 FF 0F 7F [01:56:52]process_action close_receipt done [01:56:52]requested_data is exist [01:56:52]produce_requested_data [01:56:52]requested_item fm.sn is exist - process it [01:56:52]wFMCommunicate request_size=4 [01:56:52]MH_SAM_APDU [01:56:52]CAPDU: 80 11 00 00 [01:56:52]Write to MH i2c: E2 08 00 D7 94 80 11 00 00 00 00 00 00 E5 [01:56:52]Write i2c OK [01:56:52]MH_I2C_Read... [01:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:52]Read from MH i2c: E2 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: E2 17 00 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: E2 17 00 D7 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 3D [01:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [01:56:52]wFMCommunicate OK [01:56:52]requested_item fd.num is exist - process it [01:56:52]SAM_PROTO_GetFieldsCounters [01:56:52]wFMCommunicate request_size=4 [01:56:52]MH_SAM_APDU [01:56:52]CAPDU: 80 13 00 00 [01:56:52]Write to MH i2c: E2 08 00 D8 94 80 13 00 00 00 00 00 00 E8 [01:56:52]Write i2c OK [01:56:52]MH_I2C_Read... [01:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:56:52]Read from MH i2c: E2 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: E2 62 00 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: E2 62 00 D8 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [01:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6E 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:56:52]wFMCommunicate OK [01:56:52]SAM_PROTO_GetFieldsCounters done [01:56:52]requested_item shift.num is exist - process it [01:56:52]requested_item shift.opened is exist - process it [01:56:52]req_shift_opened [01:56:52]FM_GetShiftState [01:56:52]SAM_PROTO_GetShiftState [01:56:52]wFMCommunicate request_size=4 [01:56:52]MH_SAM_APDU [01:56:52]CAPDU: 80 13 01 00 [01:56:52]Write to MH i2c: E2 08 00 D9 94 80 13 01 00 00 00 00 00 EA [01:56:52]Write i2c OK [01:56:52]MH_I2C_Read... [01:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:52]Read from MH i2c: E2 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: E2 0E 00 [01:56:52]MH_I2C_Read... [01:56:52]Read from MH i2c: E2 0E 00 D9 94 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3D [01:56:52]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [01:56:52]wFMCommunicate OK [01:56:52]SAM_PROTO_GetShiftState done [01:56:52]FM_GetShiftState done [01:56:52]req_shift_opened done [01:56:52]requested_item shift.open_date is exist - process it [01:56:52]req_shift_open_date [01:56:52]req_shift_open_date done [01:56:52]produce_requested_data done [01:56:52]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166254,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [01:56:52]process_action_free close_receipt [01:56:52]json_value_free [01:56:52]json_value_free done [01:56:52]process_json_proto returns [01:56:52]Send response to host [01:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166254,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [01:56:52]free response buf [01:56:52]execute_script done [01:56:52]execute_script returns [01:56:52]free content buf [01:56:52]Sock 5.Close socket [01:56:52]Sock 5.Thread stoped [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:31]OFD Sender: No OFD packet to send [02:04:36]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:52]OFD Sender: No OFD packet to send [02:08:57]OFD Sender: No OFD packet to send [02:09:02]OFD Sender: No OFD packet to send [02:09:07]OFD Sender: No OFD packet to send [02:09:12]OFD Sender: No OFD packet to send [02:09:17]OFD Sender: No OFD packet to send [02:09:22]OFD Sender: No OFD packet to send [02:09:27]OFD Sender: No OFD packet to send [02:09:32]OFD Sender: No OFD packet to send [02:09:37]OFD Sender: No OFD packet to send [02:09:42]OFD Sender: No OFD packet to send [02:09:47]OFD Sender: No OFD packet to send [02:09:52]OFD Sender: No OFD packet to send [02:09:57]OFD Sender: No OFD packet to send [02:10:02]OFD Sender: No OFD packet to send [02:10:07]OFD Sender: No OFD packet to send [02:10:12]OFD Sender: No OFD packet to send [02:10:17]OFD Sender: No OFD packet to send [02:10:22]OFD Sender: No OFD packet to send [02:10:27]OFD Sender: No OFD packet to send [02:10:32]OFD Sender: No OFD packet to send [02:10:37]OFD Sender: No OFD packet to send [02:10:42]OFD Sender: No OFD packet to send [02:10:47]OFD Sender: No OFD packet to send [02:10:52]OFD Sender: No OFD packet to send [02:10:57]OFD Sender: No OFD packet to send [02:11:02]OFD Sender: No OFD packet to send [02:11:07]OFD Sender: No OFD packet to send [02:11:12]OFD Sender: No OFD packet to send [02:11:17]OFD Sender: No OFD packet to send [02:11:22]OFD Sender: No OFD packet to send [02:11:27]OFD Sender: No OFD packet to send [02:11:32]OFD Sender: No OFD packet to send [02:11:37]OFD Sender: No OFD packet to send [02:11:42]OFD Sender: No OFD packet to send [02:11:47]OFD Sender: No OFD packet to send [02:11:52]OFD Sender: No OFD packet to send [02:11:57]OFD Sender: No OFD packet to send [02:12:02]OFD Sender: No OFD packet to send [02:12:07]OFD Sender: No OFD packet to send [02:12:12]OFD Sender: No OFD packet to send [02:12:17]OFD Sender: No OFD packet to send [02:12:22]OFD Sender: No OFD packet to send [02:12:27]OFD Sender: No OFD packet to send [02:12:32]OFD Sender: No OFD packet to send [02:12:37]OFD Sender: No OFD packet to send [02:12:42]OFD Sender: No OFD packet to send [02:12:47]OFD Sender: No OFD packet to send [02:12:52]OFD Sender: No OFD packet to send [02:12:57]OFD Sender: No OFD packet to send [02:13:02]OFD Sender: No OFD packet to send [02:13:07]OFD Sender: No OFD packet to send [02:13:12]OFD Sender: No OFD packet to send [02:13:17]OFD Sender: No OFD packet to send [02:13:22]OFD Sender: No OFD packet to send [02:13:27]OFD Sender: No OFD packet to send [02:13:32]OFD Sender: No OFD packet to send [02:13:37]OFD Sender: No OFD packet to send [02:13:42]OFD Sender: No OFD packet to send [02:13:47]OFD Sender: No OFD packet to send [02:13:52]OFD Sender: No OFD packet to send [02:13:57]OFD Sender: No OFD packet to send [02:14:02]OFD Sender: No OFD packet to send [02:14:07]OFD Sender: No OFD packet to send [02:14:12]OFD Sender: No OFD packet to send [02:14:17]OFD Sender: No OFD packet to send [02:14:22]OFD Sender: No OFD packet to send [02:14:27]OFD Sender: No OFD packet to send [02:14:32]OFD Sender: No OFD packet to send [02:14:37]OFD Sender: No OFD packet to send [02:14:42]OFD Sender: No OFD packet to send [02:14:47]OFD Sender: No OFD packet to send [02:14:52]OFD Sender: No OFD packet to send [02:14:57]OFD Sender: No OFD packet to send [02:15:02]OFD Sender: No OFD packet to send [02:15:07]OFD Sender: No OFD packet to send [02:15:12]OFD Sender: No OFD packet to send [02:15:17]OFD Sender: No OFD packet to send [02:15:22]OFD Sender: No OFD packet to send [02:15:27]OFD Sender: No OFD packet to send [02:15:32]OFD Sender: No OFD packet to send [02:15:37]OFD Sender: No OFD packet to send [02:15:42]OFD Sender: No OFD packet to send [02:15:47]OFD Sender: No OFD packet to send [02:15:52]OFD Sender: No OFD packet to send [02:15:57]OFD Sender: No OFD packet to send [02:16:02]OFD Sender: No OFD packet to send [02:16:07]OFD Sender: No OFD packet to send [02:16:12]OFD Sender: No OFD packet to send [02:16:17]OFD Sender: No OFD packet to send [02:16:22]OFD Sender: No OFD packet to send [02:16:27]OFD Sender: No OFD packet to send [02:16:32]OFD Sender: No OFD packet to send [02:16:37]OFD Sender: No OFD packet to send [02:16:42]OFD Sender: No OFD packet to send [02:16:47]OFD Sender: No OFD packet to send [02:16:52]OFD Sender: No OFD packet to send [02:16:57]OFD Sender: No OFD packet to send [02:17:02]OFD Sender: No OFD packet to send [02:17:07]OFD Sender: No OFD packet to send [02:17:12]OFD Sender: No OFD packet to send [02:17:17]OFD Sender: No OFD packet to send [02:17:22]OFD Sender: No OFD packet to send [02:17:27]OFD Sender: No OFD packet to send [02:17:32]OFD Sender: No OFD packet to send [02:17:37]OFD Sender: No OFD packet to send [02:17:42]OFD Sender: No OFD packet to send [02:17:47]OFD Sender: No OFD packet to send [02:17:52]OFD Sender: No OFD packet to send [02:17:57]OFD Sender: No OFD packet to send [02:18:02]OFD Sender: No OFD packet to send [02:18:07]OFD Sender: No OFD packet to send [02:18:12]OFD Sender: No OFD packet to send [02:18:17]OFD Sender: No OFD packet to send [02:18:22]OFD Sender: No OFD packet to send [02:18:27]OFD Sender: No OFD packet to send [02:18:32]OFD Sender: No OFD packet to send [02:18:37]OFD Sender: No OFD packet to send [02:18:41]accept exits with 6 [02:18:41]New connection [02:18:41]New thread 3066776932 created [02:18:41]Thread 3066920292 joined [02:18:41]Waiting for new connection... [02:18:41] Sock 6.Parse request [02:18:41]Sock 6.Check first char [02:18:41]Sock 6.First char is OK [02:18:41]request: POST /json_proto HTTP/1.0 [02:18:41]Method: POST [02:18:41]URL: /json_proto [02:18:41]Method is POST - this is cgi request [02:18:41]url: /json_proto [02:18:41]query_string will be loaded in cgi processing [02:18:41]execute_cgi json_proto POST (null) [02:18:41]execute_cgi path=json_proto method=POST [02:18:41]POST find Content-Length [02:18:41]Host: 172.17.53.195:8080 [02:18:41]Content-Length: 682 [02:18:41]Content-Type: application/json [02:18:41] [02:18:41]POST finish read [02:18:41]Found Content-Length = 682 [02:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.890, "sum" : 1999.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:41]execute_script... [02:18: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)220828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.890, "sum" : 1999.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1999.00, "payments": [ { "type": 0, "sum" : 1999.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:18:41]POST & json_proto [02:18:41]process_json_proto [02:18:41]json parsed OK: [02:18:41]protocol is kg_v1.0 [02:18:41]action value=close_receipt [02:18:41]process_action close_receipt [02:18:41]cmd_close_receipt [02:18:41]MH_GetDate [02:18:41]Write to MH i2c: F0 00 00 DA 94 5D [02:18:41]Write i2c OK [02:18:41]MH_I2C_Read... [02:18:41]Read from MH i2c: F0 [02:18:41]MH_I2C_Read... [02:18:41]Read from MH i2c: F0 09 00 [02:18:41]MH_I2C_Read... [02:18:41]Read from MH i2c: F0 09 00 DA 94 00 97 0B 17 67 21 48 4A 65 9E [02:18:41]GetLastDocTimeStamp 1729562230 [02:18:41]current date 1729563543 [02:18:41]FM_GetShiftState [02:18:41]SAM_PROTO_GetShiftState [02:18:41]wFMCommunicate request_size=4 [02:18:41]MH_SAM_APDU [02:18:41]CAPDU: 80 13 01 00 [02:18:41]Write to MH i2c: E2 08 00 DB 94 80 13 01 00 00 00 00 00 EC [02:18:41]Write i2c OK [02:18:41]MH_I2C_Read... [02:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:41]Read from MH i2c: E2 [02:18:41]MH_I2C_Read... [02:18:41]Read from MH i2c: E2 0E 00 [02:18:41]MH_I2C_Read... [02:18:41]Read from MH i2c: E2 0E 00 DB 94 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 3F [02:18:41]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [02:18:41]wFMCommunicate OK [02:18:41]SAM_PROTO_GetShiftState done [02:18:41]FM_GetShiftState done [02:18:41]opened in 1729557463 [02:18:41]opened+sec_in_day 1729643863 [02:18:41]quantity*price = 199964 [02:18:41]sum+1 = 199965 [02:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1999.00 Внесено: 2000.00 СДАЧА: 1.00 НСП 1% : 17.70 НДС 12% : 212.35 Наличными: 1999.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 10 22.10.2024 02:19 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166255 ФПД: 242314332670832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T021903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166255&fm=242314332670832&tin=02508201610067®Number=0000000000091764&sum=199900 [02:18:43]StoreToDocumentArchive [02:18:43]shift 536 fd 166255 [02:18:43]save to /storage/0536/doc_00166255 [02:18:43]save last doc name /storage/0536/doc_00166255 to /storage/kkm_last_doc_name [02:18:43]save OK [02:18:43]Clear old archive folders... [02:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:18:43]tlvbuf is 01A8C760 [02:18:43]SAM_PROTO_ClearQueue [02:18:43]wFMCommunicate request_size=4 [02:18:43]MH_SAM_APDU [02:18:43]CAPDU: 80 09 00 00 [02:18:43]Write to MH i2c: E2 08 00 E8 94 80 09 00 00 00 00 00 00 EE [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:18:43]Read from MH i2c: E2 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 E8 94 00 90 00 F0 [02:18:43]RAPDU: 90 00 [02:18:43]wFMCommunicate OK [02:18:43]SAM_PROTO_ClearQueue done [02:18:43]KKMCreateOFDPacket [02:18:43]OFDProtocolAddRootSTLVToBuf [02:18:43]FM_MakeSignedData [02:18:43]FM_MakeSignedData [02:18:43]SAM_PROTO_SignData [02:18:43]wFMCommunicate request_size=4 [02:18:43]MH_SAM_APDU [02:18:43]CAPDU: 80 0D 01 02 [02:18:43]Write to MH i2c: E2 08 00 E9 94 80 0D 01 02 00 00 00 00 F6 [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:18:43]Read from MH i2c: E2 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 E9 94 00 90 00 F1 [02:18:43]RAPDU: 90 00 [02:18:43]wFMCommunicate OK [02:18:43]wFMCommunicate request_size=255 [02:18:43]MH_SAM_APDU [02:18: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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 97 0B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 89 02 00 35 04 06 00 DC [02:18:43]Write to MH i2c: E2 02 01 EA 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 97 0B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 89 02 00 35 04 06 00 DC 00 00 CA [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:43]Read from MH i2c: E2 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 EA 94 00 90 00 F2 [02:18:43]RAPDU: 90 00 [02:18:43]wFMCommunicate OK [02:18:43]wFMCommunicate request_size=10 [02:18:43]MH_SAM_APDU [02:18:43]CAPDU: 80 0D 02 02 05 62 33 B9 0B 70 [02:18:43]Write to MH i2c: E2 0D 00 EB 94 80 0D 02 02 05 00 62 33 B9 0B 70 00 00 CC [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:18:43]Read from MH i2c: E2 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 03 00 EB 94 00 90 00 F3 [02:18:43]RAPDU: 90 00 [02:18:43]wFMCommunicate OK [02:18:43]wFMCommunicate request_size=4 [02:18:43]MH_SAM_APDU [02:18:43]CAPDU: 80 0D 03 02 [02:18:43]Write to MH i2c: E2 08 00 EC 94 80 0D 03 02 00 00 00 00 FB [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:18:43]Read from MH i2c: E2 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 0B 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 0B 00 EC 94 00 E6 C8 5F DA 0E F7 7F D3 90 00 3A [02:18:43]RAPDU: E6 C8 5F DA 0E F7 7F D3 90 00 [02:18:43]wFMCommunicate OK [02:18:43]SAM_PROTO_SignData done [02:18:43]FM_MakeSignedData done [02:18:43]CreateOFDProtocolMessage [02:18:43]wFMCommunicate request_size=4 [02:18:43]MH_SAM_APDU [02:18:43]CAPDU: 80 11 00 00 [02:18:43]Write to MH i2c: E2 08 00 ED 94 80 11 00 00 00 00 00 00 FB [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:43]Read from MH i2c: E2 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 17 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: E2 17 00 ED 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 53 [02:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:18:43]wFMCommunicate OK [02:18:43]CreateOFDProtocolMessage done [02:18:43]OFDSenderStorePacket 166255 [02:18:43]StoreOFDPacket docnum=166255 [02:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 58 07 01 7E 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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 97 0B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 89 02 00 35 04 06 00 DC 62 33 B9 0B 70 E6 C8 5F DA 0E F7 7F D3 [02:18:43]CheckFolder [02:18:43]dirname=/storage/ofd_packets [02:18:43]CheckFolder done [02:18:43]ProducePacketName [02:18:43]name=ofd_packets/00166255 [02:18:43]NVStorageSaveData ofd_packets/00166255 [02:18:43]File name is /storage/ofd_packets/00166255 [02:18:43]Write 301 bytes [02:18:43]NVStorageSaveData done [02:18:43]OFDSenderStorePacket done [02:18:43]KKMCreateOFDPacket done [02:18:43]NVStorageSaveData kkm_last_timestamp [02:18:43]File name is /storage/kkm_last_timestamp [02:18:43]Write 4 bytes [02:18:43]NVStorageSaveData done [02:18:43]ExternCall_PrintAddStr [02:18:43]wPrintStart [02:18:43]Write to MH i2c: 01 00 00 EE 94 82 [02:18:43]Write i2c OK [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: 01 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: 01 07 00 [02:18:43]MH_I2C_Read... [02:18:43]Read from MH i2c: 01 07 00 EE 94 00 00 00 00 00 FF 0F 97 [02:18:43]RasterBufferAndPrint [02:18:43]line Счет N : (1)220828 [02:18:43]line ИНН: 02508201610067 [02:18:43]line Контрольно-Кассовый Чек [02:18:43]line ПРОДАЖА [02:18:43]line ТРК (МРК, ГНК) : 43 [02:18:43]line Товар: 2710124130 [02:18:43]line Аи-92-К-5 [02:18:43]line 29.890 * 66.90 [02:18:43]line = 1999.64 [02:18:43]line НДС 12% НСП 1% [02:18:43]line > о реализуемом товаре [02:18:43]line ОКРУГЛЕНИЕ: -0.64 [02:18:43]line ИТОГО: 1999.00 [02:18:43]line Внесено: 2000.00 [02:18:43]line СДАЧА: 1.00 [02:18:43]line НСП 1% : 17.70 [02:18:43]line НДС 12% : 212.35 [02:18:43]line Наличными: 1999.00 [02:18:43]line Безнал.: 0.00 [02:18:43]line Место: АЗС № 161 "Партнер Нефть" [02:18:43]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:18:43]line СНО: Общий режим [02:18:43]line Чек 10 22.10.2024 02:19 [02:18:43]line Смена: 536 ФФД: 1.0 [02:18:43]line ЗНМ: 0300000104 [02:18:43]line РНМ: 0000000000091764 [02:18:43]line Версия ККМ: 001 [02:18:43]line ФМ: 0000000000871759 [02:18:43]line ФД: 166255 [02:18:43]line ФПД: 242314332670832 [02:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T021903&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166255&fm=242314332670832&tin=02508201610067®Number=0000000000091764&sum=199900 [02:18:43]OFD Sender: Processing packet 166255 [packets to send 48, broken 47] [02:18:43]ProducePacketName [02:18:43]name=ofd_packets/00166255 [02:18:43]OFD Sender: To server: pG, [02:18:43]CommunicateWithHost lk.salyk.kg:30040 [02:18:43]ConnectInit lk.salyk.kg [02:18:43]written 0, free lines is 4095 [02:18:44]Connected sock=7 [02:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 F4 58 07 01 7E 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 C2 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1C 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 52 00 00 00 00 07 04 06 00 DC 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 97 0B 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 89 02 00 35 04 06 00 DC 62 33 B9 0B 70 E6 C8 5F DA 0E F7 7F D3 [02:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 37 4F 47 00 38 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 6F 89 02 00 F4 03 04 00 04 B2 16 67 B6 04 01 00 00 B5 EA 6B 03 2F 1F D4 DC [02:18:44]CommunicateWithHost err = 0 [02:18:44]CheckOFDResponse [02:18:44]1017 (14) - 77093643461234 [02:18:44]1041 (16) - 0000000000871759 [02:18:44]1040 (4) - 166255 [02:18:44]1012 (4) - 21.10.2024 19:56 [02:18:44]1206 (1) - 0 [02:18:44]OFD Sender: Remove packet 166255 [02:18:44]ProducePacketName [02:18:44]name=ofd_packets/00166255 [02:18:44]NVStorageDeleteData [02:18:44]Write to MH i2c: 01 00 00 19 95 AE [02:18:44]Write i2c OK [02:18:44]MH_I2C_Read... [02:18:44]Read from MH i2c: 01 [02:18:44]MH_I2C_Read... [02:18:44]Read from MH i2c: 01 07 00 [02:18:44]MH_I2C_Read... [02:18:44]Read from MH i2c: 01 07 00 19 95 00 00 00 00 00 C1 0C 82 [02:18:44]RasterBufferAndPrint [02:18:44]line [02:18:44]line [02:18:44]line [02:18:44]line [02:18:44]line [02:18:44]written 0, free lines is 3270 [02:18:44]MH_Cut [02:18:44]Write to MH i2c: D1 01 00 20 95 01 87 [02:18:44]Write i2c OK [02:18:44]MH_I2C_Read... [02:18:44]Read from MH i2c: D1 [02:18:44]MH_I2C_Read... [02:18:44]Read from MH i2c: D1 01 00 [02:18:44]MH_I2C_Read... [02:18:44]Read from MH i2c: D1 01 00 20 95 00 86 [02:18:44]Write to MH i2c: 01 00 00 21 95 B6 [02:18:44]Write i2c OK [02:18:44]MH_I2C_Read... [02:18:44]OFD Sender: No OFD packet to send [02:18:45]*** Cut start [02:18:45]*** Partial cut [02:18:45]*** CUTSNS_PIN = 1 [02:18:45]*** CUTSNS_PIN = 0 [02:18:45]*** Brake cut motor [02:18:45]Read from MH i2c: 01 [02:18:45]MH_I2C_Read... [02:18:45]*** Stop cut motor [02:18:45]*** Cut end [02:18:45]Read from MH i2c: 01 07 00 [02:18:45]MH_I2C_Read... [02:18:45]Read from MH i2c: 01 07 00 21 95 00 00 00 00 00 FF 0F CB [02:18:45]process_action close_receipt done [02:18:45]requested_data is exist [02:18:45]produce_requested_data [02:18:45]requested_item fm.sn is exist - process it [02:18:45]wFMCommunicate request_size=4 [02:18:45]MH_SAM_APDU [02:18:45]CAPDU: 80 11 00 00 [02:18:45]Write to MH i2c: E2 08 00 22 95 80 11 00 00 00 00 00 00 31 [02:18:45]Write i2c OK [02:18:45]MH_I2C_Read... [02:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:18:45]Read from MH i2c: E2 [02:18:45]MH_I2C_Read... [02:18:45]Read from MH i2c: E2 17 00 [02:18:45]MH_I2C_Read... [02:18:45]Read from MH i2c: E2 17 00 22 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 89 [02:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:18:45]wFMCommunicate OK [02:18:45]requested_item fd.num is exist - process it [02:18:45]SAM_PROTO_GetFieldsCounters [02:18:45]wFMCommunicate request_size=4 [02:18:45]MH_SAM_APDU [02:18:45]CAPDU: 80 13 00 00 [02:18:45]Write to MH i2c: E2 08 00 23 95 80 13 00 00 00 00 00 00 34 [02:18:45]Write i2c OK [02:18:45]MH_I2C_Read... [02:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:18:46]Read from MH i2c: E2 [02:18:46]MH_I2C_Read... [02:18:46]Read from MH i2c: E2 62 00 [02:18:46]MH_I2C_Read... [02:18:46]Read from MH i2c: E2 62 00 23 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [02:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 6F 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:18:46]wFMCommunicate OK [02:18:46]SAM_PROTO_GetFieldsCounters done [02:18:46]requested_item shift.num is exist - process it [02:18:46]requested_item shift.opened is exist - process it [02:18:46]req_shift_opened [02:18:46]FM_GetShiftState [02:18:46]SAM_PROTO_GetShiftState [02:18:46]wFMCommunicate request_size=4 [02:18:46]MH_SAM_APDU [02:18:46]CAPDU: 80 13 01 00 [02:18:46]Write to MH i2c: E2 08 00 24 95 80 13 01 00 00 00 00 00 36 [02:18:46]Write i2c OK [02:18:46]MH_I2C_Read... [02:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:18:46]Read from MH i2c: E2 [02:18:46]MH_I2C_Read... [02:18:46]Read from MH i2c: E2 0E 00 [02:18:46]MH_I2C_Read... [02:18:46]Read from MH i2c: E2 0E 00 24 95 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 89 [02:18:46]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [02:18:46]wFMCommunicate OK [02:18:46]SAM_PROTO_GetShiftState done [02:18:46]FM_GetShiftState done [02:18:46]req_shift_opened done [02:18:46]requested_item shift.open_date is exist - process it [02:18:46]req_shift_open_date [02:18:46]req_shift_open_date done [02:18:46]produce_requested_data done [02:18:46]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166255,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [02:18:46]process_action_free close_receipt [02:18:46]json_value_free [02:18:46]json_value_free done [02:18:46]process_json_proto returns [02:18:46]Send response to host [02:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166255,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [02:18:46]free response buf [02:18:46]execute_script done [02:18:46]execute_script returns [02:18:46]free content buf [02:18:46]Sock 6.Close socket [02:18:46]Sock 6.Thread stoped [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:07]accept exits with 5 [02:22:07]New connection [02:22:07]New thread 3066920292 created [02:22:07]Thread 3066776932 joined [02:22:07]Waiting for new connection... [02:22:07] Sock 5.Parse request [02:22:07]Sock 5.Check first char [02:22:07]Sock 5.First char is OK [02:22:07]request: POST /json_proto HTTP/1.0 [02:22:07]Method: POST [02:22:07]URL: /json_proto [02:22:07]Method is POST - this is cgi request [02:22:07]url: /json_proto [02:22:07]query_string will be loaded in cgi processing [02:22:07]execute_cgi json_proto POST (null) [02:22:07]execute_cgi path=json_proto method=POST [02:22:07]POST find Content-Length [02:22:07]Host: 172.17.53.195:8080 [02:22:07]Content-Length: 677 [02:22:07]Content-Type: application/json [02:22:07] [02:22:07]POST finish read [02:22:07]Found Content-Length = 677 [02:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:07]execute_script... [02:22: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)220829", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.540, "sum" : 370.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:22:07]POST & json_proto [02:22:07]process_json_proto [02:22:07]json parsed OK: [02:22:07]protocol is kg_v1.0 [02:22:07]action value=close_receipt [02:22:07]process_action close_receipt [02:22:07]cmd_close_receipt [02:22:07]MH_GetDate [02:22:07]Write to MH i2c: F0 00 00 25 95 A9 [02:22:07]Write i2c OK [02:22:07]MH_I2C_Read... [02:22:07]Read from MH i2c: F0 [02:22:07]MH_I2C_Read... [02:22:07]Read from MH i2c: F0 09 00 [02:22:07]MH_I2C_Read... [02:22:07]Read from MH i2c: F0 09 00 25 95 00 64 0C 17 67 21 48 4A 65 B8 [02:22:07]GetLastDocTimeStamp 1729563543 [02:22:07]current date 1729563748 [02:22:07]FM_GetShiftState [02:22:07]SAM_PROTO_GetShiftState [02:22:07]wFMCommunicate request_size=4 [02:22:07]MH_SAM_APDU [02:22:07]CAPDU: 80 13 01 00 [02:22:07]Write to MH i2c: E2 08 00 26 95 80 13 01 00 00 00 00 00 38 [02:22:07]Write i2c OK [02:22:07]MH_I2C_Read... [02:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:07]Read from MH i2c: E2 [02:22:07]MH_I2C_Read... [02:22:07]Read from MH i2c: E2 0E 00 [02:22:07]MH_I2C_Read... [02:22:07]Read from MH i2c: E2 0E 00 26 95 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 8B [02:22:07]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [02:22:07]wFMCommunicate OK [02:22:07]SAM_PROTO_GetShiftState done [02:22:07]FM_GetShiftState done [02:22:07]opened in 1729557463 [02:22:07]opened+sec_in_day 1729643863 [02:22:07]quantity*price = 37062 [02:22:07]sum+1 = 37064 [02:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.36 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 11 22.10.2024 02:22 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166256 ФПД: 280796643686544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166256&fm=280796643686544&tin=02508201610067®Number=0000000000091764&sum=37000 [02:22:08]StoreToDocumentArchive [02:22:08]shift 536 fd 166256 [02:22:08]save to /storage/0536/doc_00166256 [02:22:08]save last doc name /storage/0536/doc_00166256 to /storage/kkm_last_doc_name [02:22:08]save OK [02:22:08]Clear old archive folders... [02:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:22:08]tlvbuf is 0186AE60 [02:22:08]SAM_PROTO_ClearQueue [02:22:08]wFMCommunicate request_size=4 [02:22:08]MH_SAM_APDU [02:22:08]CAPDU: 80 09 00 00 [02:22:08]Write to MH i2c: E2 08 00 33 95 80 09 00 00 00 00 00 00 3A [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:22:08]Read from MH i2c: E2 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 33 95 00 90 00 3C [02:22:08]RAPDU: 90 00 [02:22:08]wFMCommunicate OK [02:22:08]SAM_PROTO_ClearQueue done [02:22:08]KKMCreateOFDPacket [02:22:08]OFDProtocolAddRootSTLVToBuf [02:22:08]FM_MakeSignedData [02:22:08]FM_MakeSignedData [02:22:08]SAM_PROTO_SignData [02:22:08]wFMCommunicate request_size=4 [02:22:08]MH_SAM_APDU [02:22:08]CAPDU: 80 0D 01 02 [02:22:08]Write to MH i2c: E2 08 00 34 95 80 0D 01 02 00 00 00 00 42 [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:22:08]Read from MH i2c: E2 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 34 95 00 90 00 3D [02:22:08]RAPDU: 90 00 [02:22:08]wFMCommunicate OK [02:22:08]wFMCommunicate request_size=255 [02:22:08]MH_SAM_APDU [02:22: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 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 64 0C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 89 02 00 35 04 06 00 FF [02:22:08]Write to MH i2c: E2 02 01 35 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 64 0C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 89 02 00 35 04 06 00 FF 00 00 94 [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:08]Read from MH i2c: E2 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 35 95 00 90 00 3E [02:22:08]RAPDU: 90 00 [02:22:08]wFMCommunicate OK [02:22:08]wFMCommunicate request_size=10 [02:22:08]MH_SAM_APDU [02:22:08]CAPDU: 80 0D 02 02 05 62 10 33 78 90 [02:22:08]Write to MH i2c: E2 0D 00 36 95 80 0D 02 02 05 00 62 10 33 78 90 00 00 FC [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:22:08]Read from MH i2c: E2 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 03 00 36 95 00 90 00 3F [02:22:08]RAPDU: 90 00 [02:22:08]wFMCommunicate OK [02:22:08]wFMCommunicate request_size=4 [02:22:08]MH_SAM_APDU [02:22:08]CAPDU: 80 0D 03 02 [02:22:08]Write to MH i2c: E2 08 00 37 95 80 0D 03 02 00 00 00 00 47 [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:22:08]Read from MH i2c: E2 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 0B 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 0B 00 37 95 00 D4 69 9E 29 57 07 DE 12 90 00 9A [02:22:08]RAPDU: D4 69 9E 29 57 07 DE 12 90 00 [02:22:08]wFMCommunicate OK [02:22:08]SAM_PROTO_SignData done [02:22:08]FM_MakeSignedData done [02:22:08]CreateOFDProtocolMessage [02:22:08]wFMCommunicate request_size=4 [02:22:08]MH_SAM_APDU [02:22:08]CAPDU: 80 11 00 00 [02:22:08]Write to MH i2c: E2 08 00 38 95 80 11 00 00 00 00 00 00 47 [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:08]Read from MH i2c: E2 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 17 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: E2 17 00 38 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 9F [02:22:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:22:08]wFMCommunicate OK [02:22:08]CreateOFDProtocolMessage done [02:22:08]OFDSenderStorePacket 166256 [02:22:08]StoreOFDPacket docnum=166256 [02:22:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 07 07 01 33 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 64 0C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 89 02 00 35 04 06 00 FF 62 10 33 78 90 D4 69 9E 29 57 07 DE 12 [02:22:08]CheckFolder [02:22:08]dirname=/storage/ofd_packets [02:22:08]CheckFolder done [02:22:08]ProducePacketName [02:22:08]name=ofd_packets/00166256 [02:22:08]NVStorageSaveData ofd_packets/00166256 [02:22:08]File name is /storage/ofd_packets/00166256 [02:22:08]Write 301 bytes [02:22:08]NVStorageSaveData done [02:22:08]OFDSenderStorePacket done [02:22:08]KKMCreateOFDPacket done [02:22:08]NVStorageSaveData kkm_last_timestamp [02:22:08]File name is /storage/kkm_last_timestamp [02:22:08]Write 4 bytes [02:22:08]NVStorageSaveData done [02:22:08]ExternCall_PrintAddStr [02:22:08]wPrintStart [02:22:08]Write to MH i2c: 01 00 00 39 95 CE [02:22:08]Write i2c OK [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: 01 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: 01 07 00 [02:22:08]MH_I2C_Read... [02:22:08]Read from MH i2c: 01 07 00 39 95 00 00 00 00 00 FF 0F E3 [02:22:08]RasterBufferAndPrint [02:22:08]line Счет N : (1)220829 [02:22:08]line ИНН: 02508201610067 [02:22:08]line Контрольно-Кассовый Чек [02:22:08]line ПРОДАЖА [02:22:08]line ТРК (МРК, ГНК) : 23 [02:22:08]line Товар: 2710124130 [02:22:08]line Аи-92-К-5 [02:22:08]line 5.540 * 66.90 [02:22:08]line = 370.63 [02:22:08]line НДС 12% НСП 1% [02:22:08]line > о реализуемом товаре [02:22:08]line ОКРУГЛЕНИЕ: -0.63 [02:22:08]line ИТОГО: 370.00 [02:22:08]line Внесено: 370.00 [02:22:08]line СДАЧА: 0.00 [02:22:08]line НСП 1% : 3.28 [02:22:08]line НДС 12% : 39.36 [02:22:08]line Наличными: 370.00 [02:22:08]line Безнал.: 0.00 [02:22:08]line Место: АЗС № 161 "Партнер Нефть" [02:22:08]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:22:08]line СНО: Общий режим [02:22:08]line Чек 11 22.10.2024 02:22 [02:22:08]line Смена: 536 ФФД: 1.0 [02:22:08]line ЗНМ: 0300000104 [02:22:08]line РНМ: 0000000000091764 [02:22:08]line Версия ККМ: 001 [02:22:08]line ФМ: 0000000000871759 [02:22:08]line ФД: 166256 [02:22:08]line ФПД: 280796643686544 [02:22:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T022228&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166256&fm=280796643686544&tin=02508201610067®Number=0000000000091764&sum=37000 [02:22:09]OFD Sender: Processing packet 166256 [packets to send 48, broken 47] [02:22:09]ProducePacketName [02:22:09]name=ofd_packets/00166256 [02:22:09]OFD Sender: To server: pG, [02:22:09]CommunicateWithHost lk.salyk.kg:30040 [02:22:09]ConnectInit lk.salyk.kg [02:22:09]written 0, free lines is 4095 [02:22:09]Connected sock=7 [02:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0F 01 00 00 64 07 07 01 33 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A4 15 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C7 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 64 0C 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 89 02 00 35 04 06 00 FF 62 10 33 78 90 D4 69 9E 29 57 07 DE 12 [02:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 E3 A8 47 00 1D D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 70 89 02 00 F4 03 04 00 D1 B2 16 67 B6 04 01 00 00 39 A9 B9 5A 0A 6E F8 A8 [02:22:09]CommunicateWithHost err = 0 [02:22:09]CheckOFDResponse [02:22:09]1017 (14) - 77093643461234 [02:22:09]1041 (16) - 0000000000871759 [02:22:09]1040 (4) - 166256 [02:22:09]1012 (4) - 21.10.2024 20:00 [02:22:09]1206 (1) - 0 [02:22:09]OFD Sender: Remove packet 166256 [02:22:09]ProducePacketName [02:22:09]name=ofd_packets/00166256 [02:22:09]NVStorageDeleteData [02:22:09]Write to MH i2c: 01 00 00 64 95 F9 [02:22:09]Write i2c OK [02:22:09]MH_I2C_Read... [02:22:09]Read from MH i2c: 01 [02:22:09]MH_I2C_Read... [02:22:09]Read from MH i2c: 01 07 00 [02:22:09]MH_I2C_Read... [02:22:09]Read from MH i2c: 01 07 00 64 95 00 00 00 00 00 C1 0C CD [02:22:09]RasterBufferAndPrint [02:22:09]line [02:22:09]line [02:22:09]line [02:22:09]line [02:22:09]line [02:22:09]written 0, free lines is 3271 [02:22:09]MH_Cut [02:22:09]Write to MH i2c: D1 01 00 6B 95 01 D2 [02:22:09]Write i2c OK [02:22:09]MH_I2C_Read... [02:22:09]Read from MH i2c: D1 [02:22:09]MH_I2C_Read... [02:22:09]Read from MH i2c: D1 01 00 [02:22:09]MH_I2C_Read... [02:22:09]Read from MH i2c: D1 01 00 6B 95 00 D1 [02:22:09]Write to MH i2c: 01 00 00 6C 95 01 [02:22:09]Write i2c OK [02:22:09]MH_I2C_Read... [02:22:09]OFD Sender: No OFD packet to send [02:22:10]*** Cut start [02:22:10]*** Partial cut [02:22:10]*** CUTSNS_PIN = 1 [02:22:10]*** CUTSNS_PIN = 0 [02:22:10]*** Brake cut motor [02:22:11]Read from MH i2c: 01 [02:22:11]MH_I2C_Read... [02:22:11]*** Stop cut motor [02:22:11]*** Cut end [02:22:11]Read from MH i2c: 01 07 00 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: 01 07 00 6C 95 00 00 00 00 00 FF 0F 16 [02:22:11]process_action close_receipt done [02:22:11]requested_data is exist [02:22:11]produce_requested_data [02:22:11]requested_item fm.sn is exist - process it [02:22:11]wFMCommunicate request_size=4 [02:22:11]MH_SAM_APDU [02:22:11]CAPDU: 80 11 00 00 [02:22:11]Write to MH i2c: E2 08 00 6D 95 80 11 00 00 00 00 00 00 7C [02:22:11]Write i2c OK [02:22:11]MH_I2C_Read... [02:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:11]Read from MH i2c: E2 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: E2 17 00 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: E2 17 00 6D 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 D4 [02:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:22:11]wFMCommunicate OK [02:22:11]requested_item fd.num is exist - process it [02:22:11]SAM_PROTO_GetFieldsCounters [02:22:11]wFMCommunicate request_size=4 [02:22:11]MH_SAM_APDU [02:22:11]CAPDU: 80 13 00 00 [02:22:11]Write to MH i2c: E2 08 00 6E 95 80 13 00 00 00 00 00 00 7F [02:22:11]Write i2c OK [02:22:11]MH_I2C_Read... [02:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:11]Read from MH i2c: E2 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: E2 62 00 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: E2 62 00 6E 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [02:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 70 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:22:11]wFMCommunicate OK [02:22:11]SAM_PROTO_GetFieldsCounters done [02:22:11]requested_item shift.num is exist - process it [02:22:11]requested_item shift.opened is exist - process it [02:22:11]req_shift_opened [02:22:11]FM_GetShiftState [02:22:11]SAM_PROTO_GetShiftState [02:22:11]wFMCommunicate request_size=4 [02:22:11]MH_SAM_APDU [02:22:11]CAPDU: 80 13 01 00 [02:22:11]Write to MH i2c: E2 08 00 6F 95 80 13 01 00 00 00 00 00 81 [02:22:11]Write i2c OK [02:22:11]MH_I2C_Read... [02:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:11]Read from MH i2c: E2 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: E2 0E 00 [02:22:11]MH_I2C_Read... [02:22:11]Read from MH i2c: E2 0E 00 6F 95 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D4 [02:22:11]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [02:22:11]wFMCommunicate OK [02:22:11]SAM_PROTO_GetShiftState done [02:22:11]FM_GetShiftState done [02:22:11]req_shift_opened done [02:22:11]requested_item shift.open_date is exist - process it [02:22:11]req_shift_open_date [02:22:11]req_shift_open_date done [02:22:11]produce_requested_data done [02:22:11]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166256,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [02:22:11]process_action_free close_receipt [02:22:11]json_value_free [02:22:11]json_value_free done [02:22:11]process_json_proto returns [02:22:11]Send response to host [02:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166256,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [02:22:11]free response buf [02:22:11]execute_script done [02:22:11]execute_script returns [02:22:11]free content buf [02:22:11]Sock 5.Close socket [02:22:11]Sock 5.Thread stoped [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:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28: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:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]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:12]accept exits with 6 [02:52:12]New connection [02:52:12]New thread 3066776932 created [02:52:12]Thread 3066920292 joined [02:52:12]Waiting for new connection... [02:52:12] Sock 6.Parse request [02:52:12]Sock 6.Check first char [02:52:12]Sock 6.First char is OK [02:52:12]request: POST /json_proto HTTP/1.0 [02:52:12]Method: POST [02:52:12]URL: /json_proto [02:52:12]Method is POST - this is cgi request [02:52:12]url: /json_proto [02:52:12]query_string will be loaded in cgi processing [02:52:12]execute_cgi json_proto POST (null) [02:52:12]execute_cgi path=json_proto method=POST [02:52:12]POST find Content-Length [02:52:12]Host: 172.17.53.195:8080 [02:52:12]Content-Length: 679 [02:52:12]Content-Type: application/json [02:52:12] [02:52:12]POST finish read [02:52:12]Found Content-Length = 679 [02:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [02:52:12]execute_script... [02:52:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)220830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 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" ] } } [02:52:12]POST & json_proto [02:52:12]process_json_proto [02:52:12]json parsed OK: [02:52:12]protocol is kg_v1.0 [02:52:12]action value=close_receipt [02:52:12]process_action close_receipt [02:52:12]cmd_close_receipt [02:52:12]MH_GetDate [02:52:12]Write to MH i2c: F0 00 00 70 95 F4 [02:52:12]Write i2c OK [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: F0 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: F0 09 00 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: F0 09 00 70 95 00 72 13 17 67 21 48 4A 65 18 [02:52:12]GetLastDocTimeStamp 1729563748 [02:52:12]current date 1729565554 [02:52:12]FM_GetShiftState [02:52:12]SAM_PROTO_GetShiftState [02:52:12]wFMCommunicate request_size=4 [02:52:12]MH_SAM_APDU [02:52:12]CAPDU: 80 13 01 00 [02:52:12]Write to MH i2c: E2 08 00 71 95 80 13 01 00 00 00 00 00 83 [02:52:12]Write i2c OK [02:52:12]MH_I2C_Read... [02:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:12]Read from MH i2c: E2 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: E2 0E 00 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: E2 0E 00 71 95 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 D6 [02:52:12]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [02:52:12]wFMCommunicate OK [02:52:12]SAM_PROTO_GetShiftState done [02:52:12]FM_GetShiftState done [02:52:12]opened in 1729557463 [02:52:12]opened+sec_in_day 1729643863 [02:52:12]quantity*price = 100050 [02:52:12]sum+1 = 100052 [02:52:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 161 "Партнер Нефть" Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 СНО: Общий режим Чек 12 22.10.2024 02:52 Смена: 536 ФФД: 1.0 ЗНМ: 0300000104 РНМ: 0000000000091764 Версия ККМ: 001 ФМ: 0000000000871759 ФД: 166257 ФПД: 132744349689832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025234&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166257&fm=132744349689832&tin=02508201610067®Number=0000000000091764&sum=100000 [02:52:14]StoreToDocumentArchive [02:52:14]shift 536 fd 166257 [02:52:14]save to /storage/0536/doc_00166257 [02:52:14]save last doc name /storage/0536/doc_00166257 to /storage/kkm_last_doc_name [02:52:14]save OK [02:52:14]Clear old archive folders... [02:52:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:52:14]tlvbuf is 0179A140 [02:52:14]SAM_PROTO_ClearQueue [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 09 00 00 [02:52:14]Write to MH i2c: E2 08 00 7E 95 80 09 00 00 00 00 00 00 85 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 7E 95 00 90 00 87 [02:52:14]RAPDU: 90 00 [02:52:14]wFMCommunicate OK [02:52:14]SAM_PROTO_ClearQueue done [02:52:14]KKMCreateOFDPacket [02:52:14]OFDProtocolAddRootSTLVToBuf [02:52:14]FM_MakeSignedData [02:52:14]FM_MakeSignedData [02:52:14]SAM_PROTO_SignData [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 0D 01 02 [02:52:14]Write to MH i2c: E2 08 00 7F 95 80 0D 01 02 00 00 00 00 8D [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 7F 95 00 90 00 88 [02:52:14]RAPDU: 90 00 [02:52:14]wFMCommunicate OK [02:52:14]wFMCommunicate request_size=255 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 0C 00 00 00 F4 03 04 00 72 13 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 89 02 00 35 04 06 00 78 BA F3 CF [02:52:14]Write to MH i2c: E2 02 01 80 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 72 13 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 89 02 00 35 04 06 00 78 BA F3 CF 00 00 32 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 80 95 00 90 00 89 [02:52:14]RAPDU: 90 00 [02:52:14]wFMCommunicate OK [02:52:14]wFMCommunicate request_size=7 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 0D 02 02 02 27 E8 [02:52:14]Write to MH i2c: E2 0A 00 81 95 80 0D 02 02 02 00 27 E8 00 00 A3 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 03 00 81 95 00 90 00 8A [02:52:14]RAPDU: 90 00 [02:52:14]wFMCommunicate OK [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 0D 03 02 [02:52:14]Write to MH i2c: E2 08 00 82 95 80 0D 03 02 00 00 00 00 92 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 0B 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 0B 00 82 95 00 9C 2B 87 EA E0 A1 17 92 90 00 F5 [02:52:14]RAPDU: 9C 2B 87 EA E0 A1 17 92 90 00 [02:52:14]wFMCommunicate OK [02:52:14]SAM_PROTO_SignData done [02:52:14]FM_MakeSignedData done [02:52:14]CreateOFDProtocolMessage [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 11 00 00 [02:52:14]Write to MH i2c: E2 08 00 83 95 80 11 00 00 00 00 00 00 92 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 17 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 17 00 83 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 EA [02:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:52:14]wFMCommunicate OK [02:52:14]CreateOFDProtocolMessage done [02:52:14]OFDSenderStorePacket 166257 [02:52:14]StoreOFDPacket docnum=166257 [02:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 47 48 04 01 A1 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 72 13 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 89 02 00 35 04 06 00 78 BA F3 CF 27 E8 9C 2B 87 EA E0 A1 17 92 [02:52:14]CheckFolder [02:52:14]dirname=/storage/ofd_packets [02:52:14]CheckFolder done [02:52:14]ProducePacketName [02:52:14]name=ofd_packets/00166257 [02:52:14]NVStorageSaveData ofd_packets/00166257 [02:52:14]File name is /storage/ofd_packets/00166257 [02:52:14]Write 298 bytes [02:52:14]NVStorageSaveData done [02:52:14]OFDSenderStorePacket done [02:52:14]KKMCreateOFDPacket done [02:52:14]NVStorageSaveData kkm_last_timestamp [02:52:14]File name is /storage/kkm_last_timestamp [02:52:14]Write 4 bytes [02:52:14]NVStorageSaveData done [02:52:14]ExternCall_PrintAddStr [02:52:14]wPrintStart [02:52:14]Write to MH i2c: 01 00 00 84 95 19 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: 01 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: 01 07 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: 01 07 00 84 95 00 00 00 00 00 FF 0F 2E [02:52:14]RasterBufferAndPrint [02:52:14]line Счет N : (1)220830 [02:52:14]line ИНН: 02508201610067 [02:52:14]line Контрольно-Кассовый Чек [02:52:14]line ПРОДАЖА [02:52:14]line ТРК (МРК, ГНК) : 21 [02:52:14]line Товар: 2710194210 [02:52:14]line ДТ-К-5 [02:52:14]line 13.130 * 76.20 [02:52:14]line = 1000.51 [02:52:14]line НДС 12% НСП 1% [02:52:14]line > о реализуемом товаре [02:52:14]line ОКРУГЛЕНИЕ: -0.51 [02:52:14]line ИТОГО: 1000.00 [02:52:14]line Внесено: 1000.00 [02:52:14]line СДАЧА: 0.00 [02:52:14]line НСП 1% : 8.85 [02:52:14]line НДС 12% : 106.25 [02:52:14]line Наличными: 1000.00 [02:52:14]line Безнал.: 0.00 [02:52:14]line Место: АЗС № 161 "Партнер Нефть" [02:52:14]line Адрес: 720001, с. Масы, трасса Бишкек-Ош 521 км, 41.929834, 72.888856 [02:52:14]line СНО: Общий режим [02:52:14]line Чек 12 22.10.2024 02:52 [02:52:14]line Смена: 536 ФФД: 1.0 [02:52:14]line ЗНМ: 0300000104 [02:52:14]line РНМ: 0000000000091764 [02:52:14]line Версия ККМ: 001 [02:52:14]line ФМ: 0000000000871759 [02:52:14]line ФД: 166257 [02:52:14]line ФПД: 132744349689832 [02:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T025234&type=1&operation_type=1&fn_number=0000000000871759&fd_number=166257&fm=132744349689832&tin=02508201610067®Number=0000000000091764&sum=100000 [02:52:14]OFD Sender: Processing packet 166257 [packets to send 48, broken 47] [02:52:14]ProducePacketName [02:52:14]name=ofd_packets/00166257 [02:52:14]OFD Sender: To server: pG, [02:52:14]CommunicateWithHost lk.salyk.kg:30040 [02:52:14]ConnectInit lk.salyk.kg [02:52:14]written 0, free lines is 4095 [02:52:15]Connected sock=7 [02:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0C 01 00 00 47 48 04 01 A1 E0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 72 13 17 67 0E 04 04 00 18 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 89 02 00 35 04 06 00 78 BA F3 CF 27 E8 9C 2B 87 EA E0 A1 17 92 [02:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 4F 00 00 00 F4 B9 47 00 D3 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 10 04 04 00 71 89 02 00 F4 03 04 00 DF B9 16 67 B6 04 01 00 00 74 C9 CA 19 20 F9 6C E9 [02:52:15]CommunicateWithHost err = 0 [02:52:15]CheckOFDResponse [02:52:15]1017 (14) - 77093643461234 [02:52:15]1041 (16) - 0000000000871759 [02:52:15]1040 (4) - 166257 [02:52:15]1012 (4) - 21.10.2024 20:30 [02:52:15]1206 (1) - 0 [02:52:15]OFD Sender: Remove packet 166257 [02:52:15]ProducePacketName [02:52:15]name=ofd_packets/00166257 [02:52:15]NVStorageDeleteData [02:52:15]Write to MH i2c: 01 00 00 AF 95 44 [02:52:15]Write i2c OK [02:52:15]MH_I2C_Read... [02:52:15]Read from MH i2c: 01 [02:52:15]MH_I2C_Read... [02:52:15]Read from MH i2c: 01 07 00 [02:52:15]MH_I2C_Read... [02:52:15]Read from MH i2c: 01 07 00 AF 95 00 00 00 00 00 B5 0C 0C [02:52:15]RasterBufferAndPrint [02:52:15]line [02:52:15]line [02:52:15]line [02:52:15]line [02:52:15]line [02:52:15]written 0, free lines is 3260 [02:52:15]MH_Cut [02:52:15]Write to MH i2c: D1 01 00 B6 95 01 1D [02:52:15]Write i2c OK [02:52:15]MH_I2C_Read... [02:52:15]Read from MH i2c: D1 [02:52:15]MH_I2C_Read... [02:52:15]Read from MH i2c: D1 01 00 [02:52:15]MH_I2C_Read... [02:52:15]Read from MH i2c: D1 01 00 B6 95 00 1C [02:52:15]Write to MH i2c: 01 00 00 B7 95 4C [02:52:15]Write i2c OK [02:52:15]MH_I2C_Read... [02:52:15]OFD Sender: No OFD packet to send [02:52:16]*** Cut start [02:52:16]*** Partial cut [02:52:16]*** CUTSNS_PIN = 1 [02:52:16]*** CUTSNS_PIN = 0 [02:52:16]*** Brake cut motor [02:52:16]Read from MH i2c: 01 [02:52:16]MH_I2C_Read... [02:52:16]*** Stop cut motor [02:52:16]*** Cut end [02:52:16]Read from MH i2c: 01 07 00 [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: 01 07 00 B7 95 00 00 00 00 00 FF 0F 61 [02:52:16]process_action close_receipt done [02:52:16]requested_data is exist [02:52:16]produce_requested_data [02:52:16]requested_item fm.sn is exist - process it [02:52:16]wFMCommunicate request_size=4 [02:52:16]MH_SAM_APDU [02:52:16]CAPDU: 80 11 00 00 [02:52:16]Write to MH i2c: E2 08 00 B8 95 80 11 00 00 00 00 00 00 C7 [02:52:16]Write i2c OK [02:52:16]MH_I2C_Read... [02:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:16]Read from MH i2c: E2 [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: E2 17 00 [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: E2 17 00 B8 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 1F [02:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 90 00 [02:52:16]wFMCommunicate OK [02:52:16]requested_item fd.num is exist - process it [02:52:16]SAM_PROTO_GetFieldsCounters [02:52:16]wFMCommunicate request_size=4 [02:52:16]MH_SAM_APDU [02:52:16]CAPDU: 80 13 00 00 [02:52:16]Write to MH i2c: E2 08 00 B9 95 80 13 00 00 00 00 00 00 CA [02:52:16]Write i2c OK [02:52:16]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 62 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 62 00 B9 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [02:52:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 37 36 34 10 04 04 00 71 89 02 00 0E 04 04 00 18 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:52:17]wFMCommunicate OK [02:52:17]SAM_PROTO_GetFieldsCounters done [02:52:17]requested_item shift.num is exist - process it [02:52:17]requested_item shift.opened is exist - process it [02:52:17]req_shift_opened [02:52:17]FM_GetShiftState [02:52:17]SAM_PROTO_GetShiftState [02:52:17]wFMCommunicate request_size=4 [02:52:17]MH_SAM_APDU [02:52:17]CAPDU: 80 13 01 00 [02:52:17]Write to MH i2c: E2 08 00 BA 95 80 13 01 00 00 00 00 00 CC [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 0E 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 0E 00 BA 95 00 09 00 01 D7 F3 16 67 00 00 00 00 90 00 1F [02:52:17]RAPDU: 09 00 01 D7 F3 16 67 00 00 00 00 90 00 [02:52:17]wFMCommunicate OK [02:52:17]SAM_PROTO_GetShiftState done [02:52:17]FM_GetShiftState done [02:52:17]req_shift_opened done [02:52:17]requested_item shift.open_date is exist - process it [02:52:17]req_shift_open_date [02:52:17]req_shift_open_date done [02:52:17]produce_requested_data done [02:52:17]produce_requested_data return {"fm.sn":"0000000000871759","fd.num":166257,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463} [02:52:17]process_action_free close_receipt [02:52:17]json_value_free [02:52:17]json_value_free done [02:52:17]process_json_proto returns [02:52:17]Send response to host [02:52:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871759","fd.num":166257,"shift.num":536,"shift.opened":1,"shift.open_date":1729557463}}} [02:52:17]free response buf [02:52:17]execute_script done [02:52:17]execute_script returns [02:52:17]free content buf [02:52:17]Sock 6.Close socket [02:52:17]Sock 6.Thread stoped [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send [03:03:36]OFD Sender: No OFD packet to send [03:03:41]OFD Sender: No OFD packet to send [03:03:46]OFD Sender: No OFD packet to send [03:03:51]OFD Sender: No OFD packet to send [03:03:56]OFD Sender: No OFD packet to send [03:04:01]OFD Sender: No OFD packet to send [03:04:06]OFD Sender: No OFD packet to send [03:04:11]OFD Sender: No OFD packet to send [03:04:16]OFD Sender: No OFD packet to send [03:04:21]OFD Sender: No OFD packet to send [03:04:26]OFD Sender: No OFD packet to send [03:04:31]OFD Sender: No OFD packet to send [03:04:36]OFD Sender: No OFD packet to send [03:04:41]OFD Sender: No OFD packet to send [03:04:46]OFD Sender: No OFD packet to send [03:04:51]OFD Sender: No OFD packet to send [03:04:56]OFD Sender: No OFD packet to send [03:05:01]OFD Sender: No OFD packet to send [03:05:06]OFD Sender: No OFD packet to send [03:05:11]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]OFD Sender: No OFD packet to send [03:07:31]OFD Sender: No OFD packet to send [03:07:36]OFD Sender: No OFD packet to send [03:07:41]OFD Sender: No OFD packet to send [03:07:46]OFD Sender: No OFD packet to send [03:07:51]OFD Sender: No OFD packet to send [03:07:56]OFD Sender: No OFD packet to send [03:08:01]OFD Sender: No OFD packet to send [03:08:06]OFD Sender: No OFD packet to send [03:08:11]OFD Sender: No OFD packet to send [03:08:16]OFD Sender: No OFD packet to send [03:08:21]OFD Sender: No OFD packet to send [03:08:26]OFD Sender: No OFD packet to send [03:08:31]OFD Sender: No OFD packet to send [03:08:36]OFD Sender: No OFD packet to send [03:08:41]OFD Sender: No OFD packet to send [03:08:46]OFD Sender: No OFD packet to send [03:08:51]OFD Sender: No OFD packet to send [03:08:56]OFD Sender: No OFD packet to send [03:09:01]OFD Sender: No OFD packet to send [03:09:06]OFD Sender: No OFD packet to send [03:09:11]OFD Sender: No OFD packet to send [03:09:16]OFD Sender: No OFD packet to send [03:09:21]OFD Sender: No OFD packet to send [03:09:26]OFD Sender: No OFD packet to send [03:09:31]OFD Sender: No OFD packet to send [03:09:36]OFD Sender: No OFD packet to send [03:09:41]OFD Sender: No OFD packet to send [03:09:46]OFD Sender: No OFD packet to send [03:09:51]OFD Sender: No OFD packet to send [03:09:56]OFD Sender: No OFD packet to send [03:10:01]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:51]OFD Sender: No OFD packet to send [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:26]OFD Sender: No OFD packet to send [03:13:31]OFD Sender: No OFD packet to send [03:13:36]OFD Sender: No OFD packet to send [03:13:41]OFD Sender: No OFD packet to send [03:13:46]OFD Sender: No OFD packet to send [03:13:51]OFD Sender: No OFD packet to send [03:13:56]OFD Sender: No OFD packet to send [03:14:01]OFD Sender: No OFD packet to send [03:14:06]OFD Sender: No OFD packet to send [03:14:11]OFD Sender: No OFD packet to send [03:14:16]OFD Sender: No OFD packet to send [03:14:21]OFD Sender: No OFD packet to send [03:14:26]OFD Sender: No OFD packet to send [03:14:31]OFD Sender: No OFD packet to send [03:14:36]OFD Sender: No OFD packet to send [03:14:41]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:22]OFD Sender: No OFD packet to send [03:15:27]OFD Sender: No OFD packet to send [03:15:32]OFD Sender: No OFD packet to send [03:15:37]OFD Sender: No OFD packet to send [03:15:42]OFD Sender: No OFD packet to send [03:15:47]OFD Sender: No OFD packet to send [03:15:52]OFD Sender: No OFD packet to send [03:15:57]OFD Sender: No OFD packet to send [03:16:02]OFD Sender: No OFD packet to send [03:16:07]OFD Sender: No OFD packet to send [03:16:12]OFD Sender: No OFD packet to send [03:16:17]OFD Sender: No OFD packet to send [03:16:22]OFD Sender: No OFD packet to send [03:16:27]OFD Sender: No OFD packet to send [03:16:32]OFD Sender: No OFD packet to send [03:16:37]OFD Sender: No OFD packet to send [03:16:42]OFD Sender: No OFD packet to send [03:16:47]OFD Sender: No OFD packet to send [03:16:52]OFD Sender: No OFD packet to send [03:16:57]OFD Sender: No OFD packet to send [03:17:02]OFD Sender: No OFD packet to send [03:17:07]OFD Sender: No OFD packet to send [03:17:12]OFD Sender: No OFD packet to send [03:17:17]OFD Sender: No OFD packet to send [03:17:22]OFD Sender: No OFD packet to send [03:17:27]OFD Sender: No OFD packet to send [03:17:32]OFD Sender: No OFD packet to send [03:17:37]OFD Sender: No OFD packet to send [03:17:42]OFD Sender: No OFD packet to send [03:17:47]OFD Sender: No OFD packet to send [03:17:52]OFD Sender: No OFD packet to send [03:17:57]OFD Sender: No OFD packet to send [03:18:02]OFD Sender: No OFD packet to send [03:18:07]OFD Sender: No OFD packet to send [03:18:12]OFD Sender: No OFD packet to send [03:18:17]OFD Sender: No OFD packet to send [03:18:22]OFD Sender: No OFD packet to send [03:18:27]OFD Sender: No OFD packet to send [03:18:32]OFD Sender: No OFD packet to send [03:18:37]OFD Sender: No OFD packet to send [03:18:42]OFD Sender: No OFD packet to send [03:18:47]OFD Sender: No OFD packet to send [03:18:52]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 [03:21:32]OFD Sender: No OFD packet to send [03:21:37]OFD Sender: No OFD packet to send [03:21:42]OFD Sender: No OFD packet to send [03:21:47]OFD Sender: No OFD packet to send